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 libcutl 1.10.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='libcutl'
592 PACKAGE_TARNAME='libcutl'
593 PACKAGE_VERSION='1.10.0'
594 PACKAGE_STRING='libcutl 1.10.0'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 ac_unique_file="cutl/exception.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 LIBCUTL_EXTERNAL_EXPAT_FALSE
641 LIBCUTL_EXTERNAL_EXPAT_TRUE
642 PTHREAD_CXX
643 PTHREAD_CXXFLAGS
644 PTHREAD_LIBS
645 acx_pthread_config
646 LIBCUTL_EXTERNAL_BOOST_FALSE
647 LIBCUTL_EXTERNAL_BOOST_TRUE
648 CXXCPP
649 am__fastdepCXX_FALSE
650 am__fastdepCXX_TRUE
651 CXXDEPMODE
652 ac_ct_CXX
653 CXXFLAGS
654 CXX
655 CPP
656 OTOOL64
657 OTOOL
658 LIPO
659 NMEDIT
660 DSYMUTIL
661 MANIFEST_TOOL
662 RANLIB
663 LN_S
664 NM
665 ac_ct_DUMPBIN
666 DUMPBIN
667 LD
668 FGREP
669 EGREP
670 GREP
671 SED
672 host_os
673 host_vendor
674 host_cpu
675 host
676 build_os
677 build_vendor
678 build_cpu
679 build
680 LIBTOOL
681 OBJDUMP
682 DLLTOOL
683 AS
684 am__fastdepCC_FALSE
685 am__fastdepCC_TRUE
686 CCDEPMODE
687 am__nodep
688 AMDEPBACKSLASH
689 AMDEP_FALSE
690 AMDEP_TRUE
691 am__quote
692 am__include
693 DEPDIR
694 OBJEXT
695 EXEEXT
696 ac_ct_CC
697 CPPFLAGS
698 LDFLAGS
699 CFLAGS
700 CC
701 ac_ct_AR
702 AR
703 AM_BACKSLASH
704 AM_DEFAULT_VERBOSITY
705 AM_DEFAULT_V
706 AM_V
707 am__untar
708 am__tar
709 AMTAR
710 am__leading_dot
711 SET_MAKE
712 AWK
713 mkdir_p
714 MKDIR_P
715 INSTALL_STRIP_PROGRAM
716 STRIP
717 install_sh
718 MAKEINFO
719 AUTOHEADER
720 AUTOMAKE
721 AUTOCONF
722 ACLOCAL
723 VERSION
724 PACKAGE
725 CYGPATH_W
726 am__isrc
727 INSTALL_DATA
728 INSTALL_SCRIPT
729 INSTALL_PROGRAM
730 target_alias
731 host_alias
732 build_alias
733 LIBS
734 ECHO_T
735 ECHO_N
736 ECHO_C
737 DEFS
738 mandir
739 localedir
740 libdir
741 psdir
742 pdfdir
743 dvidir
744 htmldir
745 infodir
746 docdir
747 oldincludedir
748 includedir
749 localstatedir
750 sharedstatedir
751 sysconfdir
752 datadir
753 datarootdir
754 libexecdir
755 sbindir
756 bindir
757 program_transform_name
758 prefix
759 exec_prefix
760 PACKAGE_URL
761 PACKAGE_BUGREPORT
762 PACKAGE_STRING
763 PACKAGE_VERSION
764 PACKAGE_TARNAME
765 PACKAGE_NAME
766 PATH_SEPARATOR
767 SHELL'
768 ac_subst_files=''
769 ac_user_opts='
770 enable_option_checking
771 enable_silent_rules
772 enable_dependency_tracking
773 enable_shared
774 enable_static
775 with_pic
776 enable_fast_install
777 with_gnu_ld
778 with_sysroot
779 enable_libtool_lock
780 with_external_boost
781 with_boost
782 enable_threads
783 with_external_expat
784 with_pkgconfigdir
785 enable_rpath
786 '
787 ac_precious_vars='build_alias
788 host_alias
789 target_alias
790 CC
791 CFLAGS
792 LDFLAGS
793 LIBS
794 CPPFLAGS
795 CPP
796 CXX
797 CXXFLAGS
798 CCC
799 CXXCPP'
800
801
802 # Initialize some variables set by options.
803 ac_init_help=
804 ac_init_version=false
805 ac_unrecognized_opts=
806 ac_unrecognized_sep=
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
809 cache_file=/dev/null
810 exec_prefix=NONE
811 no_create=
812 no_recursion=
813 prefix=NONE
814 program_prefix=NONE
815 program_suffix=NONE
816 program_transform_name=s,x,x,
817 silent=
818 site=
819 srcdir=
820 verbose=
821 x_includes=NONE
822 x_libraries=NONE
823
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
842 htmldir='${docdir}'
843 dvidir='${docdir}'
844 pdfdir='${docdir}'
845 psdir='${docdir}'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
849
850 ac_prev=
851 ac_dashdash=
852 for ac_option
853 do
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
856 eval $ac_prev=\$ac_option
857 ac_prev=
858 continue
859 fi
860
861 case $ac_option in
862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 *=) ac_optarg= ;;
864 *) ac_optarg=yes ;;
865 esac
866
867 # Accept the important Cygnus configure options, so we can diagnose typos.
868
869 case $ac_dashdash$ac_option in
870 --)
871 ac_dashdash=yes ;;
872
873 -bindir | --bindir | --bindi | --bind | --bin | --bi)
874 ac_prev=bindir ;;
875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876 bindir=$ac_optarg ;;
877
878 -build | --build | --buil | --bui | --bu)
879 ac_prev=build_alias ;;
880 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881 build_alias=$ac_optarg ;;
882
883 -cache-file | --cache-file | --cache-fil | --cache-fi \
884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885 ac_prev=cache_file ;;
886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888 cache_file=$ac_optarg ;;
889
890 --config-cache | -C)
891 cache_file=config.cache ;;
892
893 -datadir | --datadir | --datadi | --datad)
894 ac_prev=datadir ;;
895 -datadir=* | --datadir=* | --datadi=* | --datad=*)
896 datadir=$ac_optarg ;;
897
898 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899 | --dataroo | --dataro | --datar)
900 ac_prev=datarootdir ;;
901 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903 datarootdir=$ac_optarg ;;
904
905 -disable-* | --disable-*)
906 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909 as_fn_error $? "invalid feature name: $ac_useropt"
910 ac_useropt_orig=$ac_useropt
911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
913 *"
914 "enable_$ac_useropt"
915 "*) ;;
916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
917 ac_unrecognized_sep=', ';;
918 esac
919 eval enable_$ac_useropt=no ;;
920
921 -docdir | --docdir | --docdi | --doc | --do)
922 ac_prev=docdir ;;
923 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
924 docdir=$ac_optarg ;;
925
926 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
927 ac_prev=dvidir ;;
928 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
929 dvidir=$ac_optarg ;;
930
931 -enable-* | --enable-*)
932 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935 as_fn_error $? "invalid feature name: $ac_useropt"
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
939 *"
940 "enable_$ac_useropt"
941 "*) ;;
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
944 esac
945 eval enable_$ac_useropt=\$ac_optarg ;;
946
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
955
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
958 with_gas=yes ;;
959
960 -help | --help | --hel | --he | -h)
961 ac_init_help=long ;;
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
966
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
971
972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 ac_prev=htmldir ;;
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 | --ht=*)
976 htmldir=$ac_optarg ;;
977
978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
984
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 ac_prev=infodir ;;
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
989
990 -libdir | --libdir | --libdi | --libd)
991 ac_prev=libdir ;;
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 libdir=$ac_optarg ;;
994
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1001
1002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1006
1007 -localstatedir | --localstatedir | --localstatedi | --localstated \
1008 | --localstate | --localstat | --localsta | --localst | --locals)
1009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012 localstatedir=$ac_optarg ;;
1013
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 ac_prev=mandir ;;
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1018
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1021 with_fp=no ;;
1022
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1025 no_create=yes ;;
1026
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 no_recursion=yes ;;
1030
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1039
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 ac_prev=prefix ;;
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1044
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1051
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1058
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1075
1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 ac_prev=pdfdir ;;
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1080
1081 -psdir | --psdir | --psdi | --psd | --ps)
1082 ac_prev=psdir ;;
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 psdir=$ac_optarg ;;
1085
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1088 silent=yes ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1111
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1134
1135 -with-* | --with-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=\$ac_optarg ;;
1150
1151 -without-* | --without-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=no ;;
1166
1167 --x)
1168 # Obsolete; use --with-x.
1169 with_x=yes ;;
1170
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1177
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1184
1185 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1186 Try \`$0 --help' for more information"
1187 ;;
1188
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 case $ac_envvar in #(
1193 '' | [0-9]* | *[!_$as_cr_alnum]* )
1194 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1195 esac
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1198
1199 *)
1200 # FIXME: should be removed in autoconf 3.0.
1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1205 ;;
1206
1207 esac
1208 done
1209
1210 if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212 as_fn_error $? "missing argument to $ac_option"
1213 fi
1214
1215 if test -n "$ac_unrecognized_opts"; then
1216 case $enable_option_checking in
1217 no) ;;
1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1219 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220 esac
1221 fi
1222
1223 # Check all directory arguments for consistency.
1224 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225 datadir sysconfdir sharedstatedir localstatedir includedir \
1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227 libdir localedir mandir
1228 do
1229 eval ac_val=\$$ac_var
1230 # Remove trailing slashes.
1231 case $ac_val in
1232 */ )
1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234 eval $ac_var=\$ac_val;;
1235 esac
1236 # Be sure to have absolute directory names.
1237 case $ac_val in
1238 [\\/$]* | ?:[\\/]* ) continue;;
1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1240 esac
1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1242 done
1243
1244 # There might be people who depend on the old broken behavior: `$host'
1245 # used to hold the argument of --host etc.
1246 # FIXME: To remove some day.
1247 build=$build_alias
1248 host=$host_alias
1249 target=$target_alias
1250
1251 # FIXME: To remove some day.
1252 if test "x$host_alias" != x; then
1253 if test "x$build_alias" = x; then
1254 cross_compiling=maybe
1255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1257 fi
1258 fi
1259
1260 ac_tool_prefix=
1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263 test "$silent" = yes && exec 6>/dev/null
1264
1265
1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di=`ls -di .` &&
1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error $? "working directory cannot be determined"
1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error $? "pwd does not report name of working directory"
1272
1273
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283 $as_echo X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)[^/].*/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\).*/{
1297 s//\1/
1298 q
1299 }
1300 s/.*/./; q'`
1301 srcdir=$ac_confdir
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 srcdir=..
1304 fi
1305 else
1306 ac_srcdir_defaulted=no
1307 fi
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311 fi
1312 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313 ac_abs_confdir=`(
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315 pwd)`
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 srcdir=.
1319 fi
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1323 case $srcdir in
1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325 esac
1326 for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 done
1332
1333 #
1334 # Report the --help message.
1335 #
1336 if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1339 cat <<_ACEOF
1340 \`configure' configures libcutl 1.10.0 to adapt to many kinds of systems.
1341
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1343
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE. See below for descriptions of some of the useful variables.
1346
1347 Defaults for the options are specified in brackets.
1348
1349 Configuration:
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print \`checking ...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359
1360 Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 [PREFIX]
1365
1366 By default, \`make install' will install all the files in
1367 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369 for instance \`--prefix=\$HOME'.
1370
1371 For better control, use the options below.
1372
1373 Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --libdir=DIR object code libraries [EPREFIX/lib]
1381 --includedir=DIR C header files [PREFIX/include]
1382 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1385 --infodir=DIR info documentation [DATAROOTDIR/info]
1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1387 --mandir=DIR man documentation [DATAROOTDIR/man]
1388 --docdir=DIR documentation root [DATAROOTDIR/doc/libcutl]
1389 --htmldir=DIR html documentation [DOCDIR]
1390 --dvidir=DIR dvi documentation [DOCDIR]
1391 --pdfdir=DIR pdf documentation [DOCDIR]
1392 --psdir=DIR ps documentation [DOCDIR]
1393 _ACEOF
1394
1395 cat <<\_ACEOF
1396
1397 Program names:
1398 --program-prefix=PREFIX prepend PREFIX to installed program names
1399 --program-suffix=SUFFIX append SUFFIX to installed program names
1400 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1401
1402 System types:
1403 --build=BUILD configure for building on BUILD [guessed]
1404 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1405 _ACEOF
1406 fi
1407
1408 if test -n "$ac_init_help"; then
1409 case $ac_init_help in
1410 short | recursive ) echo "Configuration of libcutl 1.10.0:";;
1411 esac
1412 cat <<\_ACEOF
1413
1414 Optional Features:
1415 --disable-option-checking ignore unrecognized --enable/--with options
1416 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1417 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1418 --enable-silent-rules less verbose build output (undo: "make V=1")
1419 --disable-silent-rules verbose build output (undo: "make V=0")
1420 --enable-dependency-tracking
1421 do not reject slow dependency extractors
1422 --disable-dependency-tracking
1423 speeds up one-time build
1424 --enable-shared[=PKGS] build shared libraries [default=yes]
1425 --enable-static[=PKGS] build static libraries [default=yes]
1426 --enable-fast-install[=PKGS]
1427 optimize for fast installation [default=yes]
1428 --disable-libtool-lock avoid locking (might break parallel builds)
1429 --disable-threads disable threads (enabled by default)
1430 --disable-rpath patch libtool to not use rpath
1431
1432 Optional Packages:
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1436 both]
1437 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1438 --with-sysroot=DIR Search for dependent libraries within DIR
1439 (or the compiler's sysroot if not specified).
1440 --with-external-boost use external boost instead of the internal subset
1441 --with-boost=DIR location of boost build directory
1442 --with-external-expat use external expat instead of the internal subset
1443 --with-pkgconfigdir=DIR location of pkgconfig dir (default is
1444 libdir/pkgconfig)
1445
1446 Some influential environment variables:
1447 CC C compiler command
1448 CFLAGS C compiler flags
1449 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1450 nonstandard directory <lib dir>
1451 LIBS libraries to pass to the linker, e.g. -l<library>
1452 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1453 you have headers in a nonstandard directory <include dir>
1454 CPP C preprocessor
1455 CXX C++ compiler command
1456 CXXFLAGS C++ compiler flags
1457 CXXCPP C++ preprocessor
1458
1459 Use these variables to override the choices made by `configure' or to help
1460 it to find libraries and programs with nonstandard names/locations.
1461
1462 Report bugs to <[email protected]>.
1463 _ACEOF
1464 ac_status=$?
1465 fi
1466
1467 if test "$ac_init_help" = "recursive"; then
1468 # If there are subdirs, report their specific --help.
1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470 test -d "$ac_dir" ||
1471 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1472 continue
1473 ac_builddir=.
1474
1475 case "$ac_dir" in
1476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *)
1478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1479 # A ".." for each directory in $ac_dir_suffix.
1480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1481 case $ac_top_builddir_sub in
1482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1484 esac ;;
1485 esac
1486 ac_abs_top_builddir=$ac_pwd
1487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1488 # for backward compatibility:
1489 ac_top_builddir=$ac_top_build_prefix
1490
1491 case $srcdir in
1492 .) # We are building in place.
1493 ac_srcdir=.
1494 ac_top_srcdir=$ac_top_builddir_sub
1495 ac_abs_top_srcdir=$ac_pwd ;;
1496 [\\/]* | ?:[\\/]* ) # Absolute name.
1497 ac_srcdir=$srcdir$ac_dir_suffix;
1498 ac_top_srcdir=$srcdir
1499 ac_abs_top_srcdir=$srcdir ;;
1500 *) # Relative name.
1501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1502 ac_top_srcdir=$ac_top_build_prefix$srcdir
1503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1504 esac
1505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1506
1507 cd "$ac_dir" || { ac_status=$?; continue; }
1508 # Check for guested configure.
1509 if test -f "$ac_srcdir/configure.gnu"; then
1510 echo &&
1511 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1512 elif test -f "$ac_srcdir/configure"; then
1513 echo &&
1514 $SHELL "$ac_srcdir/configure" --help=recursive
1515 else
1516 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1517 fi || ac_status=$?
1518 cd "$ac_pwd" || { ac_status=$?; break; }
1519 done
1520 fi
1521
1522 test -n "$ac_init_help" && exit $ac_status
1523 if $ac_init_version; then
1524 cat <<\_ACEOF
1525 libcutl configure 1.10.0
1526 generated by GNU Autoconf 2.69
1527
1528 Copyright (C) 2012 Free Software Foundation, Inc.
1529 This configure script is free software; the Free Software Foundation
1530 gives unlimited permission to copy, distribute and modify it.
1531 _ACEOF
1532 exit
1533 fi
1534
1535 ## ------------------------ ##
1536 ## Autoconf initialization. ##
1537 ## ------------------------ ##
1538
1539 # ac_fn_c_try_compile LINENO
1540 # --------------------------
1541 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1542 ac_fn_c_try_compile ()
1543 {
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 rm -f conftest.$ac_objext
1546 if { { ac_try="$ac_compile"
1547 case "(($ac_try" in
1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1550 esac
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553 (eval "$ac_compile") 2>conftest.err
1554 ac_status=$?
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1559 fi
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } && {
1562 test -z "$ac_c_werror_flag" ||
1563 test ! -s conftest.err
1564 } && test -s conftest.$ac_objext; then :
1565 ac_retval=0
1566 else
1567 $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1569
1570 ac_retval=1
1571 fi
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573 as_fn_set_status $ac_retval
1574
1575 } # ac_fn_c_try_compile
1576
1577 # ac_fn_c_try_link LINENO
1578 # -----------------------
1579 # Try to link conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_link ()
1581 {
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext conftest$ac_exeext
1584 if { { ac_try="$ac_link"
1585 case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_link") 2>conftest.err
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1597 fi
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest$ac_exeext && {
1603 test "$cross_compiling" = yes ||
1604 test -x conftest$ac_exeext
1605 }; then :
1606 ac_retval=0
1607 else
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1610
1611 ac_retval=1
1612 fi
1613 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1614 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1615 # interfere with the next link command; also delete a directory that is
1616 # left behind by Apple's compiler. We do this before executing the actions.
1617 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 as_fn_set_status $ac_retval
1620
1621 } # ac_fn_c_try_link
1622
1623 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1624 # -------------------------------------------------------
1625 # Tests whether HEADER exists and can be compiled using the include files in
1626 # INCLUDES, setting the cache variable VAR accordingly.
1627 ac_fn_c_check_header_compile ()
1628 {
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1631 $as_echo_n "checking for $2... " >&6; }
1632 if eval \${$3+:} false; then :
1633 $as_echo_n "(cached) " >&6
1634 else
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1637 $4
1638 #include <$2>
1639 _ACEOF
1640 if ac_fn_c_try_compile "$LINENO"; then :
1641 eval "$3=yes"
1642 else
1643 eval "$3=no"
1644 fi
1645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1646 fi
1647 eval ac_res=\$$3
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649 $as_echo "$ac_res" >&6; }
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651
1652 } # ac_fn_c_check_header_compile
1653
1654 # ac_fn_c_try_cpp LINENO
1655 # ----------------------
1656 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1657 ac_fn_c_try_cpp ()
1658 {
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if { { ac_try="$ac_cpp conftest.$ac_ext"
1661 case "(($ac_try" in
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1668 ac_status=$?
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1673 fi
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } > conftest.i && {
1676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1677 test ! -s conftest.err
1678 }; then :
1679 ac_retval=0
1680 else
1681 $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1683
1684 ac_retval=1
1685 fi
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 as_fn_set_status $ac_retval
1688
1689 } # ac_fn_c_try_cpp
1690
1691 # ac_fn_c_try_run LINENO
1692 # ----------------------
1693 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1694 # that executables *can* be run.
1695 ac_fn_c_try_run ()
1696 {
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_link"
1699 case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_link") 2>&5
1706 ac_status=$?
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1709 { { case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_try") 2>&5
1716 ac_status=$?
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; }; }; then :
1719 ac_retval=0
1720 else
1721 $as_echo "$as_me: program exited with status $ac_status" >&5
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=$ac_status
1726 fi
1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 as_fn_set_status $ac_retval
1730
1731 } # ac_fn_c_try_run
1732
1733 # ac_fn_c_check_func LINENO FUNC VAR
1734 # ----------------------------------
1735 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1736 ac_fn_c_check_func ()
1737 {
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if eval \${$3+:} false; then :
1742 $as_echo_n "(cached) " >&6
1743 else
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1746 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1748 #define $2 innocuous_$2
1749
1750 /* System header to define __stub macros and hopefully few prototypes,
1751 which can conflict with char $2 (); below.
1752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1753 <limits.h> exists even on freestanding compilers. */
1754
1755 #ifdef __STDC__
1756 # include <limits.h>
1757 #else
1758 # include <assert.h>
1759 #endif
1760
1761 #undef $2
1762
1763 /* Override any GCC internal prototype to avoid an error.
1764 Use char because int might match the return type of a GCC
1765 builtin and then its argument prototype would still apply. */
1766 #ifdef __cplusplus
1767 extern "C"
1768 #endif
1769 char $2 ();
1770 /* The GNU C library defines this for functions which it implements
1771 to always fail with ENOSYS. Some functions are actually named
1772 something starting with __ and the normal name is an alias. */
1773 #if defined __stub_$2 || defined __stub___$2
1774 choke me
1775 #endif
1776
1777 int
1778 main ()
1779 {
1780 return $2 ();
1781 ;
1782 return 0;
1783 }
1784 _ACEOF
1785 if ac_fn_c_try_link "$LINENO"; then :
1786 eval "$3=yes"
1787 else
1788 eval "$3=no"
1789 fi
1790 rm -f core conftest.err conftest.$ac_objext \
1791 conftest$ac_exeext conftest.$ac_ext
1792 fi
1793 eval ac_res=\$$3
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797
1798 } # ac_fn_c_check_func
1799
1800 # ac_fn_cxx_try_compile LINENO
1801 # ----------------------------
1802 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_cxx_try_compile ()
1804 {
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 rm -f conftest.$ac_objext
1807 if { { ac_try="$ac_compile"
1808 case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811 esac
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_compile") 2>conftest.err
1815 ac_status=$?
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1820 fi
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && {
1823 test -z "$ac_cxx_werror_flag" ||
1824 test ! -s conftest.err
1825 } && test -s conftest.$ac_objext; then :
1826 ac_retval=0
1827 else
1828 $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1830
1831 ac_retval=1
1832 fi
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 as_fn_set_status $ac_retval
1835
1836 } # ac_fn_cxx_try_compile
1837
1838 # ac_fn_cxx_try_cpp LINENO
1839 # ------------------------
1840 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1841 ac_fn_cxx_try_cpp ()
1842 {
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 if { { ac_try="$ac_cpp conftest.$ac_ext"
1845 case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1852 ac_status=$?
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1857 fi
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } > conftest.i && {
1860 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1861 test ! -s conftest.err
1862 }; then :
1863 ac_retval=0
1864 else
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=1
1869 fi
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
1872
1873 } # ac_fn_cxx_try_cpp
1874
1875 # ac_fn_cxx_try_link LINENO
1876 # -------------------------
1877 # Try to link conftest.$ac_ext, and return whether this succeeded.
1878 ac_fn_cxx_try_link ()
1879 {
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 rm -f conftest.$ac_objext conftest$ac_exeext
1882 if { { ac_try="$ac_link"
1883 case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886 esac
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>conftest.err
1890 ac_status=$?
1891 if test -s conftest.err; then
1892 grep -v '^ *+' conftest.err >conftest.er1
1893 cat conftest.er1 >&5
1894 mv -f conftest.er1 conftest.err
1895 fi
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } && {
1898 test -z "$ac_cxx_werror_flag" ||
1899 test ! -s conftest.err
1900 } && test -s conftest$ac_exeext && {
1901 test "$cross_compiling" = yes ||
1902 test -x conftest$ac_exeext
1903 }; then :
1904 ac_retval=0
1905 else
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1908
1909 ac_retval=1
1910 fi
1911 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1912 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1913 # interfere with the next link command; also delete a directory that is
1914 # left behind by Apple's compiler. We do this before executing the actions.
1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status $ac_retval
1918
1919 } # ac_fn_cxx_try_link
1920
1921 # ac_fn_cxx_try_run LINENO
1922 # ------------------------
1923 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1924 # that executables *can* be run.
1925 ac_fn_cxx_try_run ()
1926 {
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 if { { ac_try="$ac_link"
1929 case "(($ac_try" in
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1932 esac
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_link") 2>&5
1936 ac_status=$?
1937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1939 { { case "(($ac_try" in
1940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941 *) ac_try_echo=$ac_try;;
1942 esac
1943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944 $as_echo "$ac_try_echo"; } >&5
1945 (eval "$ac_try") 2>&5
1946 ac_status=$?
1947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1948 test $ac_status = 0; }; }; then :
1949 ac_retval=0
1950 else
1951 $as_echo "$as_me: program exited with status $ac_status" >&5
1952 $as_echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1954
1955 ac_retval=$ac_status
1956 fi
1957 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status $ac_retval
1960
1961 } # ac_fn_cxx_try_run
1962 cat >config.log <<_ACEOF
1963 This file contains any messages produced by compilers while
1964 running configure, to aid debugging if configure makes a mistake.
1965
1966 It was created by libcutl $as_me 1.10.0, which was
1967 generated by GNU Autoconf 2.69. Invocation command line was
1968
1969 $ $0 $@
1970
1971 _ACEOF
1972 exec 5>>config.log
1973 {
1974 cat <<_ASUNAME
1975 ## --------- ##
1976 ## Platform. ##
1977 ## --------- ##
1978
1979 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1980 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1981 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1982 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1983 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1984
1985 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1986 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1987
1988 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1989 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1990 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1991 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1992 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1993 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1994 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1995
1996 _ASUNAME
1997
1998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 for as_dir in $PATH
2000 do
2001 IFS=$as_save_IFS
2002 test -z "$as_dir" && as_dir=.
2003 $as_echo "PATH: $as_dir"
2004 done
2005 IFS=$as_save_IFS
2006
2007 } >&5
2008
2009 cat >&5 <<_ACEOF
2010
2011
2012 ## ----------- ##
2013 ## Core tests. ##
2014 ## ----------- ##
2015
2016 _ACEOF
2017
2018
2019 # Keep a trace of the command line.
2020 # Strip out --no-create and --no-recursion so they do not pile up.
2021 # Strip out --silent because we don't want to record it for future runs.
2022 # Also quote any args containing shell meta-characters.
2023 # Make two passes to allow for proper duplicate-argument suppression.
2024 ac_configure_args=
2025 ac_configure_args0=
2026 ac_configure_args1=
2027 ac_must_keep_next=false
2028 for ac_pass in 1 2
2029 do
2030 for ac_arg
2031 do
2032 case $ac_arg in
2033 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2035 | -silent | --silent | --silen | --sile | --sil)
2036 continue ;;
2037 *\'*)
2038 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2039 esac
2040 case $ac_pass in
2041 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2042 2)
2043 as_fn_append ac_configure_args1 " '$ac_arg'"
2044 if test $ac_must_keep_next = true; then
2045 ac_must_keep_next=false # Got value, back to normal.
2046 else
2047 case $ac_arg in
2048 *=* | --config-cache | -C | -disable-* | --disable-* \
2049 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2050 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2051 | -with-* | --with-* | -without-* | --without-* | --x)
2052 case "$ac_configure_args0 " in
2053 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2054 esac
2055 ;;
2056 -* ) ac_must_keep_next=true ;;
2057 esac
2058 fi
2059 as_fn_append ac_configure_args " '$ac_arg'"
2060 ;;
2061 esac
2062 done
2063 done
2064 { ac_configure_args0=; unset ac_configure_args0;}
2065 { ac_configure_args1=; unset ac_configure_args1;}
2066
2067 # When interrupted or exit'd, cleanup temporary files, and complete
2068 # config.log. We remove comments because anyway the quotes in there
2069 # would cause problems or look ugly.
2070 # WARNING: Use '\'' to represent an apostrophe within the trap.
2071 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2072 trap 'exit_status=$?
2073 # Save into config.log some information that might help in debugging.
2074 {
2075 echo
2076
2077 $as_echo "## ---------------- ##
2078 ## Cache variables. ##
2079 ## ---------------- ##"
2080 echo
2081 # The following way of writing the cache mishandles newlines in values,
2082 (
2083 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2084 eval ac_val=\$$ac_var
2085 case $ac_val in #(
2086 *${as_nl}*)
2087 case $ac_var in #(
2088 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2089 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2090 esac
2091 case $ac_var in #(
2092 _ | IFS | as_nl) ;; #(
2093 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2094 *) { eval $ac_var=; unset $ac_var;} ;;
2095 esac ;;
2096 esac
2097 done
2098 (set) 2>&1 |
2099 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2100 *${as_nl}ac_space=\ *)
2101 sed -n \
2102 "s/'\''/'\''\\\\'\'''\''/g;
2103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2104 ;; #(
2105 *)
2106 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2107 ;;
2108 esac |
2109 sort
2110 )
2111 echo
2112
2113 $as_echo "## ----------------- ##
2114 ## Output variables. ##
2115 ## ----------------- ##"
2116 echo
2117 for ac_var in $ac_subst_vars
2118 do
2119 eval ac_val=\$$ac_var
2120 case $ac_val in
2121 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2122 esac
2123 $as_echo "$ac_var='\''$ac_val'\''"
2124 done | sort
2125 echo
2126
2127 if test -n "$ac_subst_files"; then
2128 $as_echo "## ------------------- ##
2129 ## File substitutions. ##
2130 ## ------------------- ##"
2131 echo
2132 for ac_var in $ac_subst_files
2133 do
2134 eval ac_val=\$$ac_var
2135 case $ac_val in
2136 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2137 esac
2138 $as_echo "$ac_var='\''$ac_val'\''"
2139 done | sort
2140 echo
2141 fi
2142
2143 if test -s confdefs.h; then
2144 $as_echo "## ----------- ##
2145 ## confdefs.h. ##
2146 ## ----------- ##"
2147 echo
2148 cat confdefs.h
2149 echo
2150 fi
2151 test "$ac_signal" != 0 &&
2152 $as_echo "$as_me: caught signal $ac_signal"
2153 $as_echo "$as_me: exit $exit_status"
2154 } >&5
2155 rm -f core *.core core.conftest.* &&
2156 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2157 exit $exit_status
2158 ' 0
2159 for ac_signal in 1 2 13 15; do
2160 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2161 done
2162 ac_signal=0
2163
2164 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2165 rm -f -r conftest* confdefs.h
2166
2167 $as_echo "/* confdefs.h */" > confdefs.h
2168
2169 # Predefined preprocessor variables.
2170
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_NAME "$PACKAGE_NAME"
2173 _ACEOF
2174
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2177 _ACEOF
2178
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2181 _ACEOF
2182
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_STRING "$PACKAGE_STRING"
2185 _ACEOF
2186
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2189 _ACEOF
2190
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_URL "$PACKAGE_URL"
2193 _ACEOF
2194
2195
2196 # Let the site file select an alternate cache file if it wants to.
2197 # Prefer an explicitly selected file to automatically selected ones.
2198 ac_site_file1=NONE
2199 ac_site_file2=NONE
2200 if test -n "$CONFIG_SITE"; then
2201 # We do not want a PATH search for config.site.
2202 case $CONFIG_SITE in #((
2203 -*) ac_site_file1=./$CONFIG_SITE;;
2204 */*) ac_site_file1=$CONFIG_SITE;;
2205 *) ac_site_file1=./$CONFIG_SITE;;
2206 esac
2207 elif test "x$prefix" != xNONE; then
2208 ac_site_file1=$prefix/share/config.site
2209 ac_site_file2=$prefix/etc/config.site
2210 else
2211 ac_site_file1=$ac_default_prefix/share/config.site
2212 ac_site_file2=$ac_default_prefix/etc/config.site
2213 fi
2214 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2215 do
2216 test "x$ac_site_file" = xNONE && continue
2217 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2219 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2220 sed 's/^/| /' "$ac_site_file" >&5
2221 . "$ac_site_file" \
2222 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2224 as_fn_error $? "failed to load site script $ac_site_file
2225 See \`config.log' for more details" "$LINENO" 5; }
2226 fi
2227 done
2228
2229 if test -r "$cache_file"; then
2230 # Some versions of bash will fail to source /dev/null (special files
2231 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2232 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2234 $as_echo "$as_me: loading cache $cache_file" >&6;}
2235 case $cache_file in
2236 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2237 *) . "./$cache_file";;
2238 esac
2239 fi
2240 else
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2242 $as_echo "$as_me: creating cache $cache_file" >&6;}
2243 >$cache_file
2244 fi
2245
2246 # Check that the precious variables saved in the cache have kept the same
2247 # value.
2248 ac_cache_corrupted=false
2249 for ac_var in $ac_precious_vars; do
2250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2251 eval ac_new_set=\$ac_env_${ac_var}_set
2252 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2253 eval ac_new_val=\$ac_env_${ac_var}_value
2254 case $ac_old_set,$ac_new_set in
2255 set,)
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2257 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2258 ac_cache_corrupted=: ;;
2259 ,set)
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2261 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2262 ac_cache_corrupted=: ;;
2263 ,);;
2264 *)
2265 if test "x$ac_old_val" != "x$ac_new_val"; then
2266 # differences in whitespace do not lead to failure.
2267 ac_old_val_w=`echo x $ac_old_val`
2268 ac_new_val_w=`echo x $ac_new_val`
2269 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2271 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2272 ac_cache_corrupted=:
2273 else
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2275 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2276 eval $ac_var=\$ac_old_val
2277 fi
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2279 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2281 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2282 fi;;
2283 esac
2284 # Pass precious variables to config.status.
2285 if test "$ac_new_set" = set; then
2286 case $ac_new_val in
2287 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2288 *) ac_arg=$ac_var=$ac_new_val ;;
2289 esac
2290 case " $ac_configure_args " in
2291 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2292 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2293 esac
2294 fi
2295 done
2296 if $ac_cache_corrupted; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2300 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2301 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2302 fi
2303 ## -------------------- ##
2304 ## Main body of script. ##
2305 ## -------------------- ##
2306
2307 ac_ext=c
2308 ac_cpp='$CPP $CPPFLAGS'
2309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2312
2313
2314 ac_aux_dir=
2315 for ac_dir in config "$srcdir"/config; do
2316 if test -f "$ac_dir/install-sh"; then
2317 ac_aux_dir=$ac_dir
2318 ac_install_sh="$ac_aux_dir/install-sh -c"
2319 break
2320 elif test -f "$ac_dir/install.sh"; then
2321 ac_aux_dir=$ac_dir
2322 ac_install_sh="$ac_aux_dir/install.sh -c"
2323 break
2324 elif test -f "$ac_dir/shtool"; then
2325 ac_aux_dir=$ac_dir
2326 ac_install_sh="$ac_aux_dir/shtool install -c"
2327 break
2328 fi
2329 done
2330 if test -z "$ac_aux_dir"; then
2331 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2332 fi
2333
2334 # These three variables are undocumented and unsupported,
2335 # and are intended to be withdrawn in a future Autoconf release.
2336 # They can cause serious problems if a builder's source tree is in a directory
2337 # whose full name contains unusual characters.
2338 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2339 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2340 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2341
2342
2343
2344
2345
2346 am__api_version='1.14'
2347
2348 # Find a good install program. We prefer a C program (faster),
2349 # so one script is as good as another. But avoid the broken or
2350 # incompatible versions:
2351 # SysV /etc/install, /usr/sbin/install
2352 # SunOS /usr/etc/install
2353 # IRIX /sbin/install
2354 # AIX /bin/install
2355 # AmigaOS /C/install, which installs bootblocks on floppy discs
2356 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2357 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2358 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2359 # OS/2's system install, which has a completely different semantic
2360 # ./install, which can be erroneously created by make from ./install.sh.
2361 # Reject install programs that cannot install multiple files.
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2363 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2364 if test -z "$INSTALL"; then
2365 if ${ac_cv_path_install+:} false; then :
2366 $as_echo_n "(cached) " >&6
2367 else
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371 IFS=$as_save_IFS
2372 test -z "$as_dir" && as_dir=.
2373 # Account for people who put trailing slashes in PATH elements.
2374 case $as_dir/ in #((
2375 ./ | .// | /[cC]/* | \
2376 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2377 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2378 /usr/ucb/* ) ;;
2379 *)
2380 # OSF1 and SCO ODT 3.0 have their own names for install.
2381 # Don't use installbsd from OSF since it installs stuff as root
2382 # by default.
2383 for ac_prog in ginstall scoinst install; do
2384 for ac_exec_ext in '' $ac_executable_extensions; do
2385 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2386 if test $ac_prog = install &&
2387 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2388 # AIX install. It has an incompatible calling convention.
2389 :
2390 elif test $ac_prog = install &&
2391 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2392 # program-specific install script used by HP pwplus--don't use.
2393 :
2394 else
2395 rm -rf conftest.one conftest.two conftest.dir
2396 echo one > conftest.one
2397 echo two > conftest.two
2398 mkdir conftest.dir
2399 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2400 test -s conftest.one && test -s conftest.two &&
2401 test -s conftest.dir/conftest.one &&
2402 test -s conftest.dir/conftest.two
2403 then
2404 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2405 break 3
2406 fi
2407 fi
2408 fi
2409 done
2410 done
2411 ;;
2412 esac
2413
2414 done
2415 IFS=$as_save_IFS
2416
2417 rm -rf conftest.one conftest.two conftest.dir
2418
2419 fi
2420 if test "${ac_cv_path_install+set}" = set; then
2421 INSTALL=$ac_cv_path_install
2422 else
2423 # As a last resort, use the slow shell script. Don't cache a
2424 # value for INSTALL within a source directory, because that will
2425 # break other packages using the cache if that directory is
2426 # removed, or if the value is a relative name.
2427 INSTALL=$ac_install_sh
2428 fi
2429 fi
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2431 $as_echo "$INSTALL" >&6; }
2432
2433 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2434 # It thinks the first close brace ends the variable substitution.
2435 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2436
2437 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2438
2439 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2440
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2442 $as_echo_n "checking whether build environment is sane... " >&6; }
2443 # Reject unsafe characters in $srcdir or the absolute working directory
2444 # name. Accept space and tab only in the latter.
2445 am_lf='
2446 '
2447 case `pwd` in
2448 *[\\\"\#\$\&\'\`$am_lf]*)
2449 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2450 esac
2451 case $srcdir in
2452 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2453 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2454 esac
2455
2456 # Do 'set' in a subshell so we don't clobber the current shell's
2457 # arguments. Must try -L first in case configure is actually a
2458 # symlink; some systems play weird games with the mod time of symlinks
2459 # (eg FreeBSD returns the mod time of the symlink's containing
2460 # directory).
2461 if (
2462 am_has_slept=no
2463 for am_try in 1 2; do
2464 echo "timestamp, slept: $am_has_slept" > conftest.file
2465 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2466 if test "$*" = "X"; then
2467 # -L didn't work.
2468 set X `ls -t "$srcdir/configure" conftest.file`
2469 fi
2470 if test "$*" != "X $srcdir/configure conftest.file" \
2471 && test "$*" != "X conftest.file $srcdir/configure"; then
2472
2473 # If neither matched, then we have a broken ls. This can happen
2474 # if, for instance, CONFIG_SHELL is bash and it inherits a
2475 # broken ls alias from the environment. This has actually
2476 # happened. Such a system could not be considered "sane".
2477 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2478 alias in your environment" "$LINENO" 5
2479 fi
2480 if test "$2" = conftest.file || test $am_try -eq 2; then
2481 break
2482 fi
2483 # Just in case.
2484 sleep 1
2485 am_has_slept=yes
2486 done
2487 test "$2" = conftest.file
2488 )
2489 then
2490 # Ok.
2491 :
2492 else
2493 as_fn_error $? "newly created file is older than distributed files!
2494 Check your system clock" "$LINENO" 5
2495 fi
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2497 $as_echo "yes" >&6; }
2498 # If we didn't sleep, we still need to ensure time stamps of config.status and
2499 # generated files are strictly newer.
2500 am_sleep_pid=
2501 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2502 ( sleep 1 ) &
2503 am_sleep_pid=$!
2504 fi
2505
2506 rm -f conftest.file
2507
2508 test "$program_prefix" != NONE &&
2509 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2510 # Use a double $ so make ignores it.
2511 test "$program_suffix" != NONE &&
2512 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2513 # Double any \ or $.
2514 # By default was `s,x,x', remove it if useless.
2515 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2516 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2517
2518 # expand $ac_aux_dir to an absolute path
2519 am_aux_dir=`cd $ac_aux_dir && pwd`
2520
2521 if test x"${MISSING+set}" != xset; then
2522 case $am_aux_dir in
2523 *\ * | *\ *)
2524 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2525 *)
2526 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2527 esac
2528 fi
2529 # Use eval to expand $SHELL
2530 if eval "$MISSING --is-lightweight"; then
2531 am_missing_run="$MISSING "
2532 else
2533 am_missing_run=
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2535 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2536 fi
2537
2538 if test x"${install_sh}" != xset; then
2539 case $am_aux_dir in
2540 *\ * | *\ *)
2541 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2542 *)
2543 install_sh="\${SHELL} $am_aux_dir/install-sh"
2544 esac
2545 fi
2546
2547 # Installed binaries are usually stripped using 'strip' when the user
2548 # run "make install-strip". However 'strip' might not be the right
2549 # tool to use in cross-compilation environments, therefore Automake
2550 # will honor the 'STRIP' environment variable to overrule this program.
2551 if test "$cross_compiling" != no; then
2552 if test -n "$ac_tool_prefix"; then
2553 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2554 set dummy ${ac_tool_prefix}strip; ac_word=$2
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556 $as_echo_n "checking for $ac_word... " >&6; }
2557 if ${ac_cv_prog_STRIP+:} false; then :
2558 $as_echo_n "(cached) " >&6
2559 else
2560 if test -n "$STRIP"; then
2561 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2562 else
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH
2565 do
2566 IFS=$as_save_IFS
2567 test -z "$as_dir" && as_dir=.
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2570 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2572 break 2
2573 fi
2574 done
2575 done
2576 IFS=$as_save_IFS
2577
2578 fi
2579 fi
2580 STRIP=$ac_cv_prog_STRIP
2581 if test -n "$STRIP"; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2583 $as_echo "$STRIP" >&6; }
2584 else
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2586 $as_echo "no" >&6; }
2587 fi
2588
2589
2590 fi
2591 if test -z "$ac_cv_prog_STRIP"; then
2592 ac_ct_STRIP=$STRIP
2593 # Extract the first word of "strip", so it can be a program name with args.
2594 set dummy strip; ac_word=$2
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2596 $as_echo_n "checking for $ac_word... " >&6; }
2597 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2598 $as_echo_n "(cached) " >&6
2599 else
2600 if test -n "$ac_ct_STRIP"; then
2601 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2602 else
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2605 do
2606 IFS=$as_save_IFS
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2610 ac_cv_prog_ac_ct_STRIP="strip"
2611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2612 break 2
2613 fi
2614 done
2615 done
2616 IFS=$as_save_IFS
2617
2618 fi
2619 fi
2620 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2621 if test -n "$ac_ct_STRIP"; then
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2623 $as_echo "$ac_ct_STRIP" >&6; }
2624 else
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2626 $as_echo "no" >&6; }
2627 fi
2628
2629 if test "x$ac_ct_STRIP" = x; then
2630 STRIP=":"
2631 else
2632 case $cross_compiling:$ac_tool_warned in
2633 yes:)
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2636 ac_tool_warned=yes ;;
2637 esac
2638 STRIP=$ac_ct_STRIP
2639 fi
2640 else
2641 STRIP="$ac_cv_prog_STRIP"
2642 fi
2643
2644 fi
2645 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2646
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2648 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2649 if test -z "$MKDIR_P"; then
2650 if ${ac_cv_path_mkdir+:} false; then :
2651 $as_echo_n "(cached) " >&6
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2655 do
2656 IFS=$as_save_IFS
2657 test -z "$as_dir" && as_dir=.
2658 for ac_prog in mkdir gmkdir; do
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2661 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2662 'mkdir (GNU coreutils) '* | \
2663 'mkdir (coreutils) '* | \
2664 'mkdir (fileutils) '4.1*)
2665 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2666 break 3;;
2667 esac
2668 done
2669 done
2670 done
2671 IFS=$as_save_IFS
2672
2673 fi
2674
2675 test -d ./--version && rmdir ./--version
2676 if test "${ac_cv_path_mkdir+set}" = set; then
2677 MKDIR_P="$ac_cv_path_mkdir -p"
2678 else
2679 # As a last resort, use the slow shell script. Don't cache a
2680 # value for MKDIR_P within a source directory, because that will
2681 # break other packages using the cache if that directory is
2682 # removed, or if the value is a relative name.
2683 MKDIR_P="$ac_install_sh -d"
2684 fi
2685 fi
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2687 $as_echo "$MKDIR_P" >&6; }
2688
2689 for ac_prog in gawk mawk nawk awk
2690 do
2691 # Extract the first word of "$ac_prog", so it can be a program name with args.
2692 set dummy $ac_prog; ac_word=$2
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if ${ac_cv_prog_AWK+:} false; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 if test -n "$AWK"; then
2699 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2703 do
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708 ac_cv_prog_AWK="$ac_prog"
2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2711 fi
2712 done
2713 done
2714 IFS=$as_save_IFS
2715
2716 fi
2717 fi
2718 AWK=$ac_cv_prog_AWK
2719 if test -n "$AWK"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2721 $as_echo "$AWK" >&6; }
2722 else
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 $as_echo "no" >&6; }
2725 fi
2726
2727
2728 test -n "$AWK" && break
2729 done
2730
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2732 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2733 set x ${MAKE-make}
2734 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2735 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 cat >conftest.make <<\_ACEOF
2739 SHELL = /bin/sh
2740 all:
2741 @echo '@@@%%%=$(MAKE)=@@@%%%'
2742 _ACEOF
2743 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2744 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2745 *@@@%%%=?*=@@@%%%*)
2746 eval ac_cv_prog_make_${ac_make}_set=yes;;
2747 *)
2748 eval ac_cv_prog_make_${ac_make}_set=no;;
2749 esac
2750 rm -f conftest.make
2751 fi
2752 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2754 $as_echo "yes" >&6; }
2755 SET_MAKE=
2756 else
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758 $as_echo "no" >&6; }
2759 SET_MAKE="MAKE=${MAKE-make}"
2760 fi
2761
2762 rm -rf .tst 2>/dev/null
2763 mkdir .tst 2>/dev/null
2764 if test -d .tst; then
2765 am__leading_dot=.
2766 else
2767 am__leading_dot=_
2768 fi
2769 rmdir .tst 2>/dev/null
2770
2771 # Check whether --enable-silent-rules was given.
2772 if test "${enable_silent_rules+set}" = set; then :
2773 enableval=$enable_silent_rules;
2774 fi
2775
2776 case $enable_silent_rules in # (((
2777 yes) AM_DEFAULT_VERBOSITY=0;;
2778 no) AM_DEFAULT_VERBOSITY=1;;
2779 *) AM_DEFAULT_VERBOSITY=1;;
2780 esac
2781 am_make=${MAKE-make}
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2783 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2784 if ${am_cv_make_support_nested_variables+:} false; then :
2785 $as_echo_n "(cached) " >&6
2786 else
2787 if $as_echo 'TRUE=$(BAR$(V))
2788 BAR0=false
2789 BAR1=true
2790 V=1
2791 am__doit:
2792 @$(TRUE)
2793 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2794 am_cv_make_support_nested_variables=yes
2795 else
2796 am_cv_make_support_nested_variables=no
2797 fi
2798 fi
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2800 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2801 if test $am_cv_make_support_nested_variables = yes; then
2802 AM_V='$(V)'
2803 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2804 else
2805 AM_V=$AM_DEFAULT_VERBOSITY
2806 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2807 fi
2808 AM_BACKSLASH='\'
2809
2810 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2811 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2812 # is not polluted with repeated "-I."
2813 am__isrc=' -I$(srcdir)'
2814 # test to see if srcdir already configured
2815 if test -f $srcdir/config.status; then
2816 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2817 fi
2818 fi
2819
2820 # test whether we have cygpath
2821 if test -z "$CYGPATH_W"; then
2822 if (cygpath --version) >/dev/null 2>/dev/null; then
2823 CYGPATH_W='cygpath -w'
2824 else
2825 CYGPATH_W=echo
2826 fi
2827 fi
2828
2829
2830 # Define the identity of the package.
2831 PACKAGE='libcutl'
2832 VERSION='1.10.0'
2833
2834
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE "$PACKAGE"
2837 _ACEOF
2838
2839
2840 cat >>confdefs.h <<_ACEOF
2841 #define VERSION "$VERSION"
2842 _ACEOF
2843
2844 # Some tools Automake needs.
2845
2846 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2847
2848
2849 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2850
2851
2852 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2853
2854
2855 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2856
2857
2858 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2859
2860 # For better backward compatibility. To be removed once Automake 1.9.x
2861 # dies out for good. For more background, see:
2862 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2863 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2864 mkdir_p='$(MKDIR_P)'
2865
2866 # We need awk for the "check" target. The system "awk" is bad on
2867 # some platforms.
2868 # Always define AMTAR for backward compatibility. Yes, it's still used
2869 # in the wild :-( We should find a proper way to deprecate it ...
2870 AMTAR='$${TAR-tar}'
2871
2872
2873 # We'll loop over all known methods to create a tar archive until one works.
2874 _am_tools='gnutar plaintar pax cpio none'
2875
2876 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
2877 # There is notably a 21 bits limit for the UID and the GID. In fact,
2878 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
2879 # and bug#13588).
2880 am_max_uid=2097151 # 2^21 - 1
2881 am_max_gid=$am_max_uid
2882 # The $UID and $GID variables are not portable, so we need to resort
2883 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
2884 # below are definitely unexpected, so allow the users to see them
2885 # (that is, avoid stderr redirection).
2886 am_uid=`id -u || echo unknown`
2887 am_gid=`id -g || echo unknown`
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
2889 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
2890 if test $am_uid -le $am_max_uid; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2892 $as_echo "yes" >&6; }
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2896 _am_tools=none
2897 fi
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
2899 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
2900 if test $am_gid -le $am_max_gid; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2902 $as_echo "yes" >&6; }
2903 else
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905 $as_echo "no" >&6; }
2906 _am_tools=none
2907 fi
2908
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2910 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2911
2912 # Go ahead even if we have the value already cached. We do so because we
2913 # need to set the values for the 'am__tar' and 'am__untar' variables.
2914 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2915
2916 for _am_tool in $_am_tools; do
2917 case $_am_tool in
2918 gnutar)
2919 for _am_tar in tar gnutar gtar; do
2920 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2921 ($_am_tar --version) >&5 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } && break
2925 done
2926 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2927 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2928 am__untar="$_am_tar -xf -"
2929 ;;
2930 plaintar)
2931 # Must skip GNU tar: if it does not support --format= it doesn't create
2932 # ustar tarball either.
2933 (tar --version) >/dev/null 2>&1 && continue
2934 am__tar='tar chf - "$$tardir"'
2935 am__tar_='tar chf - "$tardir"'
2936 am__untar='tar xf -'
2937 ;;
2938 pax)
2939 am__tar='pax -L -x ustar -w "$$tardir"'
2940 am__tar_='pax -L -x ustar -w "$tardir"'
2941 am__untar='pax -r'
2942 ;;
2943 cpio)
2944 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2945 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2946 am__untar='cpio -i -H ustar -d'
2947 ;;
2948 none)
2949 am__tar=false
2950 am__tar_=false
2951 am__untar=false
2952 ;;
2953 esac
2954
2955 # If the value was cached, stop now. We just wanted to have am__tar
2956 # and am__untar set.
2957 test -n "${am_cv_prog_tar_ustar}" && break
2958
2959 # tar/untar a dummy directory, and stop if the command works.
2960 rm -rf conftest.dir
2961 mkdir conftest.dir
2962 echo GrepMe > conftest.dir/file
2963 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2964 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2965 ac_status=$?
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }
2968 rm -rf conftest.dir
2969 if test -s conftest.tar; then
2970 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2971 ($am__untar <conftest.tar) >&5 2>&5
2972 ac_status=$?
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }
2975 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
2976 (cat conftest.dir/file) >&5 2>&5
2977 ac_status=$?
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }
2980 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2981 fi
2982 done
2983 rm -rf conftest.dir
2984
2985 if ${am_cv_prog_tar_ustar+:} false; then :
2986 $as_echo_n "(cached) " >&6
2987 else
2988 am_cv_prog_tar_ustar=$_am_tool
2989 fi
2990
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2992 $as_echo "$am_cv_prog_tar_ustar" >&6; }
2993
2994
2995
2996
2997
2998
2999 # POSIX will say in a future version that running "rm -f" with no argument
3000 # is OK; and we want to be able to make that assumption in our Makefile
3001 # recipes. So use an aggressive probe to check that the usage we want is
3002 # actually supported "in the wild" to an acceptable degree.
3003 # See automake bug#10828.
3004 # To make any issue more visible, cause the running configure to be aborted
3005 # by default if the 'rm' program in use doesn't match our expectations; the
3006 # user can still override this though.
3007 if rm -f && rm -fr && rm -rf; then : OK; else
3008 cat >&2 <<'END'
3009 Oops!
3010
3011 Your 'rm' program seems unable to run without file operands specified
3012 on the command line, even when the '-f' option is present. This is contrary
3013 to the behaviour of most rm programs out there, and not conforming with
3014 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3015
3016 Please tell [email protected] about your system, including the value
3017 of your $PATH and any error possibly output before this message. This
3018 can help us improve future automake versions.
3019
3020 END
3021 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3022 echo 'Configuration will proceed anyway, since you have set the' >&2
3023 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3024 echo >&2
3025 else
3026 cat >&2 <<'END'
3027 Aborting the configuration process, to ensure you take notice of the issue.
3028
3029 You can download and install GNU coreutils to get an 'rm' implementation
3030 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3031
3032 If you want to complete the configuration process using your problematic
3033 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3034 to "yes", and re-run configure.
3035
3036 END
3037 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3038 fi
3039 fi
3040 DEPDIR="${am__leading_dot}deps"
3041
3042 ac_config_commands="$ac_config_commands depfiles"
3043
3044
3045 am_make=${MAKE-make}
3046 cat > confinc << 'END'
3047 am__doit:
3048 @echo this is the am__doit target
3049 .PHONY: am__doit
3050 END
3051 # If we don't find an include directive, just comment out the code.
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3053 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3054 am__include="#"
3055 am__quote=
3056 _am_result=none
3057 # First try GNU make style include.
3058 echo "include confinc" > confmf
3059 # Ignore all kinds of additional output from 'make'.
3060 case `$am_make -s -f confmf 2> /dev/null` in #(
3061 *the\ am__doit\ target*)
3062 am__include=include
3063 am__quote=
3064 _am_result=GNU
3065 ;;
3066 esac
3067 # Now try BSD make style include.
3068 if test "$am__include" = "#"; then
3069 echo '.include "confinc"' > confmf
3070 case `$am_make -s -f confmf 2> /dev/null` in #(
3071 *the\ am__doit\ target*)
3072 am__include=.include
3073 am__quote="\""
3074 _am_result=BSD
3075 ;;
3076 esac
3077 fi
3078
3079
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3081 $as_echo "$_am_result" >&6; }
3082 rm -f confinc confmf
3083
3084 # Check whether --enable-dependency-tracking was given.
3085 if test "${enable_dependency_tracking+set}" = set; then :
3086 enableval=$enable_dependency_tracking;
3087 fi
3088
3089 if test "x$enable_dependency_tracking" != xno; then
3090 am_depcomp="$ac_aux_dir/depcomp"
3091 AMDEPBACKSLASH='\'
3092 am__nodep='_no'
3093 fi
3094 if test "x$enable_dependency_tracking" != xno; then
3095 AMDEP_TRUE=
3096 AMDEP_FALSE='#'
3097 else
3098 AMDEP_TRUE='#'
3099 AMDEP_FALSE=
3100 fi
3101
3102
3103 ac_ext=c
3104 ac_cpp='$CPP $CPPFLAGS'
3105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3108 if test -n "$ac_tool_prefix"; then
3109 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3110 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112 $as_echo_n "checking for $ac_word... " >&6; }
3113 if ${ac_cv_prog_CC+:} false; then :
3114 $as_echo_n "(cached) " >&6
3115 else
3116 if test -n "$CC"; then
3117 ac_cv_prog_CC="$CC" # Let the user override the test.
3118 else
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH
3121 do
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3126 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 break 2
3129 fi
3130 done
3131 done
3132 IFS=$as_save_IFS
3133
3134 fi
3135 fi
3136 CC=$ac_cv_prog_CC
3137 if test -n "$CC"; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3139 $as_echo "$CC" >&6; }
3140 else
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3143 fi
3144
3145
3146 fi
3147 if test -z "$ac_cv_prog_CC"; then
3148 ac_ct_CC=$CC
3149 # Extract the first word of "gcc", so it can be a program name with args.
3150 set dummy gcc; ac_word=$2
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152 $as_echo_n "checking for $ac_word... " >&6; }
3153 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3154 $as_echo_n "(cached) " >&6
3155 else
3156 if test -n "$ac_ct_CC"; then
3157 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3158 else
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 for as_dir in $PATH
3161 do
3162 IFS=$as_save_IFS
3163 test -z "$as_dir" && as_dir=.
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166 ac_cv_prog_ac_ct_CC="gcc"
3167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 break 2
3169 fi
3170 done
3171 done
3172 IFS=$as_save_IFS
3173
3174 fi
3175 fi
3176 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3177 if test -n "$ac_ct_CC"; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3179 $as_echo "$ac_ct_CC" >&6; }
3180 else
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3183 fi
3184
3185 if test "x$ac_ct_CC" = x; then
3186 CC=""
3187 else
3188 case $cross_compiling:$ac_tool_warned in
3189 yes:)
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3192 ac_tool_warned=yes ;;
3193 esac
3194 CC=$ac_ct_CC
3195 fi
3196 else
3197 CC="$ac_cv_prog_CC"
3198 fi
3199
3200 if test -z "$CC"; then
3201 if test -n "$ac_tool_prefix"; then
3202 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3203 set dummy ${ac_tool_prefix}cc; ac_word=$2
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205 $as_echo_n "checking for $ac_word... " >&6; }
3206 if ${ac_cv_prog_CC+:} false; then :
3207 $as_echo_n "(cached) " >&6
3208 else
3209 if test -n "$CC"; then
3210 ac_cv_prog_CC="$CC" # Let the user override the test.
3211 else
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH
3214 do
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219 ac_cv_prog_CC="${ac_tool_prefix}cc"
3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 break 2
3222 fi
3223 done
3224 done
3225 IFS=$as_save_IFS
3226
3227 fi
3228 fi
3229 CC=$ac_cv_prog_CC
3230 if test -n "$CC"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3232 $as_echo "$CC" >&6; }
3233 else
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3236 fi
3237
3238
3239 fi
3240 fi
3241 if test -z "$CC"; then
3242 # Extract the first word of "cc", so it can be a program name with args.
3243 set dummy cc; ac_word=$2
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245 $as_echo_n "checking for $ac_word... " >&6; }
3246 if ${ac_cv_prog_CC+:} false; then :
3247 $as_echo_n "(cached) " >&6
3248 else
3249 if test -n "$CC"; then
3250 ac_cv_prog_CC="$CC" # Let the user override the test.
3251 else
3252 ac_prog_rejected=no
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3255 do
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3261 ac_prog_rejected=yes
3262 continue
3263 fi
3264 ac_cv_prog_CC="cc"
3265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 break 2
3267 fi
3268 done
3269 done
3270 IFS=$as_save_IFS
3271
3272 if test $ac_prog_rejected = yes; then
3273 # We found a bogon in the path, so make sure we never use it.
3274 set dummy $ac_cv_prog_CC
3275 shift
3276 if test $# != 0; then
3277 # We chose a different compiler from the bogus one.
3278 # However, it has the same basename, so the bogon will be chosen
3279 # first if we set CC to just the basename; use the full file name.
3280 shift
3281 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3282 fi
3283 fi
3284 fi
3285 fi
3286 CC=$ac_cv_prog_CC
3287 if test -n "$CC"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3289 $as_echo "$CC" >&6; }
3290 else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3293 fi
3294
3295
3296 fi
3297 if test -z "$CC"; then
3298 if test -n "$ac_tool_prefix"; then
3299 for ac_prog in cl.exe
3300 do
3301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3302 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304 $as_echo_n "checking for $ac_word... " >&6; }
3305 if ${ac_cv_prog_CC+:} false; then :
3306 $as_echo_n "(cached) " >&6
3307 else
3308 if test -n "$CC"; then
3309 ac_cv_prog_CC="$CC" # Let the user override the test.
3310 else
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 for as_dir in $PATH
3313 do
3314 IFS=$as_save_IFS
3315 test -z "$as_dir" && as_dir=.
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3318 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 break 2
3321 fi
3322 done
3323 done
3324 IFS=$as_save_IFS
3325
3326 fi
3327 fi
3328 CC=$ac_cv_prog_CC
3329 if test -n "$CC"; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3331 $as_echo "$CC" >&6; }
3332 else
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3335 fi
3336
3337
3338 test -n "$CC" && break
3339 done
3340 fi
3341 if test -z "$CC"; then
3342 ac_ct_CC=$CC
3343 for ac_prog in cl.exe
3344 do
3345 # Extract the first word of "$ac_prog", so it can be a program name with args.
3346 set dummy $ac_prog; ac_word=$2
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348 $as_echo_n "checking for $ac_word... " >&6; }
3349 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3350 $as_echo_n "(cached) " >&6
3351 else
3352 if test -n "$ac_ct_CC"; then
3353 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3354 else
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 for as_dir in $PATH
3357 do
3358 IFS=$as_save_IFS
3359 test -z "$as_dir" && as_dir=.
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362 ac_cv_prog_ac_ct_CC="$ac_prog"
3363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 break 2
3365 fi
3366 done
3367 done
3368 IFS=$as_save_IFS
3369
3370 fi
3371 fi
3372 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3373 if test -n "$ac_ct_CC"; then
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3375 $as_echo "$ac_ct_CC" >&6; }
3376 else
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 $as_echo "no" >&6; }
3379 fi
3380
3381
3382 test -n "$ac_ct_CC" && break
3383 done
3384
3385 if test "x$ac_ct_CC" = x; then
3386 CC=""
3387 else
3388 case $cross_compiling:$ac_tool_warned in
3389 yes:)
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3392 ac_tool_warned=yes ;;
3393 esac
3394 CC=$ac_ct_CC
3395 fi
3396 fi
3397
3398 fi
3399
3400
3401 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403 as_fn_error $? "no acceptable C compiler found in \$PATH
3404 See \`config.log' for more details" "$LINENO" 5; }
3405
3406 # Provide some information about the compiler.
3407 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3408 set X $ac_compile
3409 ac_compiler=$2
3410 for ac_option in --version -v -V -qversion; do
3411 { { ac_try="$ac_compiler $ac_option >&5"
3412 case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3415 esac
3416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417 $as_echo "$ac_try_echo"; } >&5
3418 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3419 ac_status=$?
3420 if test -s conftest.err; then
3421 sed '10a\
3422 ... rest of stderr output deleted ...
3423 10q' conftest.err >conftest.er1
3424 cat conftest.er1 >&5
3425 fi
3426 rm -f conftest.er1 conftest.err
3427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428 test $ac_status = 0; }
3429 done
3430
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3433
3434 int
3435 main ()
3436 {
3437
3438 ;
3439 return 0;
3440 }
3441 _ACEOF
3442 ac_clean_files_save=$ac_clean_files
3443 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3444 # Try to create an executable without -o first, disregard a.out.
3445 # It will help us diagnose broken compilers, and finding out an intuition
3446 # of exeext.
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3448 $as_echo_n "checking whether the C compiler works... " >&6; }
3449 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3450
3451 # The possible output files:
3452 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3453
3454 ac_rmfiles=
3455 for ac_file in $ac_files
3456 do
3457 case $ac_file in
3458 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3459 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3460 esac
3461 done
3462 rm -f $ac_rmfiles
3463
3464 if { { ac_try="$ac_link_default"
3465 case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3468 esac
3469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3470 $as_echo "$ac_try_echo"; } >&5
3471 (eval "$ac_link_default") 2>&5
3472 ac_status=$?
3473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474 test $ac_status = 0; }; then :
3475 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3476 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3477 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3478 # so that the user can short-circuit this test for compilers unknown to
3479 # Autoconf.
3480 for ac_file in $ac_files ''
3481 do
3482 test -f "$ac_file" || continue
3483 case $ac_file in
3484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3485 ;;
3486 [ab].out )
3487 # We found the default executable, but exeext='' is most
3488 # certainly right.
3489 break;;
3490 *.* )
3491 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3492 then :; else
3493 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3494 fi
3495 # We set ac_cv_exeext here because the later test for it is not
3496 # safe: cross compilers may not add the suffix if given an `-o'
3497 # argument, so we may need to know it at that point already.
3498 # Even if this section looks crufty: it has the advantage of
3499 # actually working.
3500 break;;
3501 * )
3502 break;;
3503 esac
3504 done
3505 test "$ac_cv_exeext" = no && ac_cv_exeext=
3506
3507 else
3508 ac_file=''
3509 fi
3510 if test -z "$ac_file"; then :
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3513 $as_echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3515
3516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518 as_fn_error 77 "C compiler cannot create executables
3519 See \`config.log' for more details" "$LINENO" 5; }
3520 else
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3522 $as_echo "yes" >&6; }
3523 fi
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3525 $as_echo_n "checking for C compiler default output file name... " >&6; }
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3527 $as_echo "$ac_file" >&6; }
3528 ac_exeext=$ac_cv_exeext
3529
3530 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3531 ac_clean_files=$ac_clean_files_save
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3533 $as_echo_n "checking for suffix of executables... " >&6; }
3534 if { { ac_try="$ac_link"
3535 case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3538 esac
3539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3540 $as_echo "$ac_try_echo"; } >&5
3541 (eval "$ac_link") 2>&5
3542 ac_status=$?
3543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3544 test $ac_status = 0; }; then :
3545 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3546 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3547 # work properly (i.e., refer to `conftest.exe'), while it won't with
3548 # `rm'.
3549 for ac_file in conftest.exe conftest conftest.*; do
3550 test -f "$ac_file" || continue
3551 case $ac_file in
3552 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3553 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3554 break;;
3555 * ) break;;
3556 esac
3557 done
3558 else
3559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3562 See \`config.log' for more details" "$LINENO" 5; }
3563 fi
3564 rm -f conftest conftest$ac_cv_exeext
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3566 $as_echo "$ac_cv_exeext" >&6; }
3567
3568 rm -f conftest.$ac_ext
3569 EXEEXT=$ac_cv_exeext
3570 ac_exeext=$EXEEXT
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3573 #include <stdio.h>
3574 int
3575 main ()
3576 {
3577 FILE *f = fopen ("conftest.out", "w");
3578 return ferror (f) || fclose (f) != 0;
3579
3580 ;
3581 return 0;
3582 }
3583 _ACEOF
3584 ac_clean_files="$ac_clean_files conftest.out"
3585 # Check that the compiler produces executables we can run. If not, either
3586 # the compiler is broken, or we cross compile.
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3588 $as_echo_n "checking whether we are cross compiling... " >&6; }
3589 if test "$cross_compiling" != yes; then
3590 { { ac_try="$ac_link"
3591 case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594 esac
3595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3596 $as_echo "$ac_try_echo"; } >&5
3597 (eval "$ac_link") 2>&5
3598 ac_status=$?
3599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3600 test $ac_status = 0; }
3601 if { ac_try='./conftest$ac_cv_exeext'
3602 { { case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605 esac
3606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607 $as_echo "$ac_try_echo"; } >&5
3608 (eval "$ac_try") 2>&5
3609 ac_status=$?
3610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3611 test $ac_status = 0; }; }; then
3612 cross_compiling=no
3613 else
3614 if test "$cross_compiling" = maybe; then
3615 cross_compiling=yes
3616 else
3617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3619 as_fn_error $? "cannot run C compiled programs.
3620 If you meant to cross compile, use \`--host'.
3621 See \`config.log' for more details" "$LINENO" 5; }
3622 fi
3623 fi
3624 fi
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3626 $as_echo "$cross_compiling" >&6; }
3627
3628 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3629 ac_clean_files=$ac_clean_files_save
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3631 $as_echo_n "checking for suffix of object files... " >&6; }
3632 if ${ac_cv_objext+:} false; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h. */
3637
3638 int
3639 main ()
3640 {
3641
3642 ;
3643 return 0;
3644 }
3645 _ACEOF
3646 rm -f conftest.o conftest.obj
3647 if { { ac_try="$ac_compile"
3648 case "(($ac_try" in
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3651 esac
3652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3653 $as_echo "$ac_try_echo"; } >&5
3654 (eval "$ac_compile") 2>&5
3655 ac_status=$?
3656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3657 test $ac_status = 0; }; then :
3658 for ac_file in conftest.o conftest.obj conftest.*; do
3659 test -f "$ac_file" || continue;
3660 case $ac_file in
3661 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3662 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3663 break;;
3664 esac
3665 done
3666 else
3667 $as_echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.$ac_ext >&5
3669
3670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3672 as_fn_error $? "cannot compute suffix of object files: cannot compile
3673 See \`config.log' for more details" "$LINENO" 5; }
3674 fi
3675 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3676 fi
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3678 $as_echo "$ac_cv_objext" >&6; }
3679 OBJEXT=$ac_cv_objext
3680 ac_objext=$OBJEXT
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3682 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3683 if ${ac_cv_c_compiler_gnu+:} false; then :
3684 $as_echo_n "(cached) " >&6
3685 else
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3688
3689 int
3690 main ()
3691 {
3692 #ifndef __GNUC__
3693 choke me
3694 #endif
3695
3696 ;
3697 return 0;
3698 }
3699 _ACEOF
3700 if ac_fn_c_try_compile "$LINENO"; then :
3701 ac_compiler_gnu=yes
3702 else
3703 ac_compiler_gnu=no
3704 fi
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3707
3708 fi
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3710 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3711 if test $ac_compiler_gnu = yes; then
3712 GCC=yes
3713 else
3714 GCC=
3715 fi
3716 ac_test_CFLAGS=${CFLAGS+set}
3717 ac_save_CFLAGS=$CFLAGS
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3719 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3720 if ${ac_cv_prog_cc_g+:} false; then :
3721 $as_echo_n "(cached) " >&6
3722 else
3723 ac_save_c_werror_flag=$ac_c_werror_flag
3724 ac_c_werror_flag=yes
3725 ac_cv_prog_cc_g=no
3726 CFLAGS="-g"
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3729
3730 int
3731 main ()
3732 {
3733
3734 ;
3735 return 0;
3736 }
3737 _ACEOF
3738 if ac_fn_c_try_compile "$LINENO"; then :
3739 ac_cv_prog_cc_g=yes
3740 else
3741 CFLAGS=""
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3744
3745 int
3746 main ()
3747 {
3748
3749 ;
3750 return 0;
3751 }
3752 _ACEOF
3753 if ac_fn_c_try_compile "$LINENO"; then :
3754
3755 else
3756 ac_c_werror_flag=$ac_save_c_werror_flag
3757 CFLAGS="-g"
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3760
3761 int
3762 main ()
3763 {
3764
3765 ;
3766 return 0;
3767 }
3768 _ACEOF
3769 if ac_fn_c_try_compile "$LINENO"; then :
3770 ac_cv_prog_cc_g=yes
3771 fi
3772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3773 fi
3774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3775 fi
3776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3777 ac_c_werror_flag=$ac_save_c_werror_flag
3778 fi
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3780 $as_echo "$ac_cv_prog_cc_g" >&6; }
3781 if test "$ac_test_CFLAGS" = set; then
3782 CFLAGS=$ac_save_CFLAGS
3783 elif test $ac_cv_prog_cc_g = yes; then
3784 if test "$GCC" = yes; then
3785 CFLAGS="-g -O2"
3786 else
3787 CFLAGS="-g"
3788 fi
3789 else
3790 if test "$GCC" = yes; then
3791 CFLAGS="-O2"
3792 else
3793 CFLAGS=
3794 fi
3795 fi
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3797 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3798 if ${ac_cv_prog_cc_c89+:} false; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 ac_cv_prog_cc_c89=no
3802 ac_save_CC=$CC
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3805 #include <stdarg.h>
3806 #include <stdio.h>
3807 struct stat;
3808 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3809 struct buf { int x; };
3810 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3811 static char *e (p, i)
3812 char **p;
3813 int i;
3814 {
3815 return p[i];
3816 }
3817 static char *f (char * (*g) (char **, int), char **p, ...)
3818 {
3819 char *s;
3820 va_list v;
3821 va_start (v,p);
3822 s = g (p, va_arg (v,int));
3823 va_end (v);
3824 return s;
3825 }
3826
3827 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3828 function prototypes and stuff, but not '\xHH' hex character constants.
3829 These don't provoke an error unfortunately, instead are silently treated
3830 as 'x'. The following induces an error, until -std is added to get
3831 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3832 array size at least. It's necessary to write '\x00'==0 to get something
3833 that's true only with -std. */
3834 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3835
3836 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3837 inside strings and character constants. */
3838 #define FOO(x) 'x'
3839 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3840
3841 int test (int i, double x);
3842 struct s1 {int (*f) (int a);};
3843 struct s2 {int (*f) (double a);};
3844 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3845 int argc;
3846 char **argv;
3847 int
3848 main ()
3849 {
3850 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3851 ;
3852 return 0;
3853 }
3854 _ACEOF
3855 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3856 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3857 do
3858 CC="$ac_save_CC $ac_arg"
3859 if ac_fn_c_try_compile "$LINENO"; then :
3860 ac_cv_prog_cc_c89=$ac_arg
3861 fi
3862 rm -f core conftest.err conftest.$ac_objext
3863 test "x$ac_cv_prog_cc_c89" != "xno" && break
3864 done
3865 rm -f conftest.$ac_ext
3866 CC=$ac_save_CC
3867
3868 fi
3869 # AC_CACHE_VAL
3870 case "x$ac_cv_prog_cc_c89" in
3871 x)
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3873 $as_echo "none needed" >&6; } ;;
3874 xno)
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3876 $as_echo "unsupported" >&6; } ;;
3877 *)
3878 CC="$CC $ac_cv_prog_cc_c89"
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3880 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3881 esac
3882 if test "x$ac_cv_prog_cc_c89" != xno; then :
3883
3884 fi
3885
3886 ac_ext=c
3887 ac_cpp='$CPP $CPPFLAGS'
3888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3891
3892 ac_ext=c
3893 ac_cpp='$CPP $CPPFLAGS'
3894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3898 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3899 if ${am_cv_prog_cc_c_o+:} false; then :
3900 $as_echo_n "(cached) " >&6
3901 else
3902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h. */
3904
3905 int
3906 main ()
3907 {
3908
3909 ;
3910 return 0;
3911 }
3912 _ACEOF
3913 # Make sure it works both with $CC and with simple cc.
3914 # Following AC_PROG_CC_C_O, we do the test twice because some
3915 # compilers refuse to overwrite an existing .o file with -o,
3916 # though they will create one.
3917 am_cv_prog_cc_c_o=yes
3918 for am_i in 1 2; do
3919 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3920 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); } \
3924 && test -f conftest2.$ac_objext; then
3925 : OK
3926 else
3927 am_cv_prog_cc_c_o=no
3928 break
3929 fi
3930 done
3931 rm -f core conftest*
3932 unset am_i
3933 fi
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3935 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3936 if test "$am_cv_prog_cc_c_o" != yes; then
3937 # Losing compiler, so override with the script.
3938 # FIXME: It is wrong to rewrite CC.
3939 # But if we don't then we get into trouble of one sort or another.
3940 # A longer-term fix would be to have automake use am__CC in this case,
3941 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3942 CC="$am_aux_dir/compile $CC"
3943 fi
3944 ac_ext=c
3945 ac_cpp='$CPP $CPPFLAGS'
3946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949
3950
3951 depcc="$CC" am_compiler_list=
3952
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3954 $as_echo_n "checking dependency style of $depcc... " >&6; }
3955 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3956 $as_echo_n "(cached) " >&6
3957 else
3958 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3959 # We make a subdir and do the tests there. Otherwise we can end up
3960 # making bogus files that we don't know about and never remove. For
3961 # instance it was reported that on HP-UX the gcc test will end up
3962 # making a dummy file named 'D' -- because '-MD' means "put the output
3963 # in D".
3964 rm -rf conftest.dir
3965 mkdir conftest.dir
3966 # Copy depcomp to subdir because otherwise we won't find it if we're
3967 # using a relative directory.
3968 cp "$am_depcomp" conftest.dir
3969 cd conftest.dir
3970 # We will build objects and dependencies in a subdirectory because
3971 # it helps to detect inapplicable dependency modes. For instance
3972 # both Tru64's cc and ICC support -MD to output dependencies as a
3973 # side effect of compilation, but ICC will put the dependencies in
3974 # the current directory while Tru64 will put them in the object
3975 # directory.
3976 mkdir sub
3977
3978 am_cv_CC_dependencies_compiler_type=none
3979 if test "$am_compiler_list" = ""; then
3980 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3981 fi
3982 am__universal=false
3983 case " $depcc " in #(
3984 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3985 esac
3986
3987 for depmode in $am_compiler_list; do
3988 # Setup a source with many dependencies, because some compilers
3989 # like to wrap large dependency lists on column 80 (with \), and
3990 # we should not choose a depcomp mode which is confused by this.
3991 #
3992 # We need to recreate these files for each test, as the compiler may
3993 # overwrite some of them when testing with obscure command lines.
3994 # This happens at least with the AIX C compiler.
3995 : > sub/conftest.c
3996 for i in 1 2 3 4 5 6; do
3997 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3998 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3999 # Solaris 10 /bin/sh.
4000 echo '/* dummy */' > sub/conftst$i.h
4001 done
4002 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4003
4004 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4005 # mode. It turns out that the SunPro C++ compiler does not properly
4006 # handle '-M -o', and we need to detect this. Also, some Intel
4007 # versions had trouble with output in subdirs.
4008 am__obj=sub/conftest.${OBJEXT-o}
4009 am__minus_obj="-o $am__obj"
4010 case $depmode in
4011 gcc)
4012 # This depmode causes a compiler race in universal mode.
4013 test "$am__universal" = false || continue
4014 ;;
4015 nosideeffect)
4016 # After this tag, mechanisms are not by side-effect, so they'll
4017 # only be used when explicitly requested.
4018 if test "x$enable_dependency_tracking" = xyes; then
4019 continue
4020 else
4021 break
4022 fi
4023 ;;
4024 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4025 # This compiler won't grok '-c -o', but also, the minuso test has
4026 # not run yet. These depmodes are late enough in the game, and
4027 # so weak that their functioning should not be impacted.
4028 am__obj=conftest.${OBJEXT-o}
4029 am__minus_obj=
4030 ;;
4031 none) break ;;
4032 esac
4033 if depmode=$depmode \
4034 source=sub/conftest.c object=$am__obj \
4035 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4036 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4037 >/dev/null 2>conftest.err &&
4038 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4039 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4040 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4041 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4042 # icc doesn't choke on unknown options, it will just issue warnings
4043 # or remarks (even with -Werror). So we grep stderr for any message
4044 # that says an option was ignored or not supported.
4045 # When given -MP, icc 7.0 and 7.1 complain thusly:
4046 # icc: Command line warning: ignoring option '-M'; no argument required
4047 # The diagnosis changed in icc 8.0:
4048 # icc: Command line remark: option '-MP' not supported
4049 if (grep 'ignoring option' conftest.err ||
4050 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4051 am_cv_CC_dependencies_compiler_type=$depmode
4052 break
4053 fi
4054 fi
4055 done
4056
4057 cd ..
4058 rm -rf conftest.dir
4059 else
4060 am_cv_CC_dependencies_compiler_type=none
4061 fi
4062
4063 fi
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4065 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4066 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4067
4068 if
4069 test "x$enable_dependency_tracking" != xno \
4070 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4071 am__fastdepCC_TRUE=
4072 am__fastdepCC_FALSE='#'
4073 else
4074 am__fastdepCC_TRUE='#'
4075 am__fastdepCC_FALSE=
4076 fi
4077
4078
4079
4080 if test -n "$ac_tool_prefix"; then
4081 for ac_prog in ar lib "link -lib"
4082 do
4083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4084 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086 $as_echo_n "checking for $ac_word... " >&6; }
4087 if ${ac_cv_prog_AR+:} false; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 if test -n "$AR"; then
4091 ac_cv_prog_AR="$AR" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4095 do
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4102 break 2
4103 fi
4104 done
4105 done
4106 IFS=$as_save_IFS
4107
4108 fi
4109 fi
4110 AR=$ac_cv_prog_AR
4111 if test -n "$AR"; then
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4113 $as_echo "$AR" >&6; }
4114 else
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 $as_echo "no" >&6; }
4117 fi
4118
4119
4120 test -n "$AR" && break
4121 done
4122 fi
4123 if test -z "$AR"; then
4124 ac_ct_AR=$AR
4125 for ac_prog in ar lib "link -lib"
4126 do
4127 # Extract the first word of "$ac_prog", so it can be a program name with args.
4128 set dummy $ac_prog; ac_word=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 if test -n "$ac_ct_AR"; then
4135 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4139 do
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4144 ac_cv_prog_ac_ct_AR="$ac_prog"
4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 break 2
4147 fi
4148 done
4149 done
4150 IFS=$as_save_IFS
4151
4152 fi
4153 fi
4154 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4155 if test -n "$ac_ct_AR"; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4157 $as_echo "$ac_ct_AR" >&6; }
4158 else
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4161 fi
4162
4163
4164 test -n "$ac_ct_AR" && break
4165 done
4166
4167 if test "x$ac_ct_AR" = x; then
4168 AR="false"
4169 else
4170 case $cross_compiling:$ac_tool_warned in
4171 yes:)
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4174 ac_tool_warned=yes ;;
4175 esac
4176 AR=$ac_ct_AR
4177 fi
4178 fi
4179
4180 : ${AR=ar}
4181
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4183 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4184 if ${am_cv_ar_interface+:} false; then :
4185 $as_echo_n "(cached) " >&6
4186 else
4187 ac_ext=c
4188 ac_cpp='$CPP $CPPFLAGS'
4189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4192
4193 am_cv_ar_interface=ar
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4196 int some_variable = 0;
4197 _ACEOF
4198 if ac_fn_c_try_compile "$LINENO"; then :
4199 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4201 (eval $am_ar_try) 2>&5
4202 ac_status=$?
4203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4204 test $ac_status = 0; }
4205 if test "$ac_status" -eq 0; then
4206 am_cv_ar_interface=ar
4207 else
4208 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4210 (eval $am_ar_try) 2>&5
4211 ac_status=$?
4212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4213 test $ac_status = 0; }
4214 if test "$ac_status" -eq 0; then
4215 am_cv_ar_interface=lib
4216 else
4217 am_cv_ar_interface=unknown
4218 fi
4219 fi
4220 rm -f conftest.lib libconftest.a
4221
4222 fi
4223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 ac_ext=c
4225 ac_cpp='$CPP $CPPFLAGS'
4226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4229
4230 fi
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4232 $as_echo "$am_cv_ar_interface" >&6; }
4233
4234 case $am_cv_ar_interface in
4235 ar)
4236 ;;
4237 lib)
4238 # Microsoft lib, so override with the ar-lib wrapper script.
4239 # FIXME: It is wrong to rewrite AR.
4240 # But if we don't then we get into trouble of one sort or another.
4241 # A longer-term fix would be to have automake use am__AR in this case,
4242 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4243 # similar.
4244 AR="$am_aux_dir/ar-lib $AR"
4245 ;;
4246 unknown)
4247 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4248 ;;
4249 esac
4250 # Required by automake 1.12.
4251
4252 case `pwd` in
4253 *\ * | *\ *)
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4255 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4256 esac
4257
4258
4259
4260 macro_version='2.4.2'
4261 macro_revision='1.3337'
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275 ltmain="$ac_aux_dir/ltmain.sh"
4276
4277 # Make sure we can run config.sub.
4278 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4279 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4280
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4282 $as_echo_n "checking build system type... " >&6; }
4283 if ${ac_cv_build+:} false; then :
4284 $as_echo_n "(cached) " >&6
4285 else
4286 ac_build_alias=$build_alias
4287 test "x$ac_build_alias" = x &&
4288 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4289 test "x$ac_build_alias" = x &&
4290 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4291 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4292 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4293
4294 fi
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4296 $as_echo "$ac_cv_build" >&6; }
4297 case $ac_cv_build in
4298 *-*-*) ;;
4299 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4300 esac
4301 build=$ac_cv_build
4302 ac_save_IFS=$IFS; IFS='-'
4303 set x $ac_cv_build
4304 shift
4305 build_cpu=$1
4306 build_vendor=$2
4307 shift; shift
4308 # Remember, the first character of IFS is used to create $*,
4309 # except with old shells:
4310 build_os=$*
4311 IFS=$ac_save_IFS
4312 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4313
4314
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4316 $as_echo_n "checking host system type... " >&6; }
4317 if ${ac_cv_host+:} false; then :
4318 $as_echo_n "(cached) " >&6
4319 else
4320 if test "x$host_alias" = x; then
4321 ac_cv_host=$ac_cv_build
4322 else
4323 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4324 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4325 fi
4326
4327 fi
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4329 $as_echo "$ac_cv_host" >&6; }
4330 case $ac_cv_host in
4331 *-*-*) ;;
4332 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4333 esac
4334 host=$ac_cv_host
4335 ac_save_IFS=$IFS; IFS='-'
4336 set x $ac_cv_host
4337 shift
4338 host_cpu=$1
4339 host_vendor=$2
4340 shift; shift
4341 # Remember, the first character of IFS is used to create $*,
4342 # except with old shells:
4343 host_os=$*
4344 IFS=$ac_save_IFS
4345 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4346
4347
4348 # Backslashify metacharacters that are still active within
4349 # double-quoted strings.
4350 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4351
4352 # Same as above, but do not quote variable references.
4353 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4354
4355 # Sed substitution to delay expansion of an escaped shell variable in a
4356 # double_quote_subst'ed string.
4357 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4358
4359 # Sed substitution to delay expansion of an escaped single quote.
4360 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4361
4362 # Sed substitution to avoid accidental globbing in evaled expressions
4363 no_glob_subst='s/\*/\\\*/g'
4364
4365 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4366 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4367 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4368
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4370 $as_echo_n "checking how to print strings... " >&6; }
4371 # Test print first, because it will be a builtin if present.
4372 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4373 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4374 ECHO='print -r --'
4375 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4376 ECHO='printf %s\n'
4377 else
4378 # Use this function as a fallback that always works.
4379 func_fallback_echo ()
4380 {
4381 eval 'cat <<_LTECHO_EOF
4382 $1
4383 _LTECHO_EOF'
4384 }
4385 ECHO='func_fallback_echo'
4386 fi
4387
4388 # func_echo_all arg...
4389 # Invoke $ECHO with all args, space-separated.
4390 func_echo_all ()
4391 {
4392 $ECHO ""
4393 }
4394
4395 case "$ECHO" in
4396 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4397 $as_echo "printf" >&6; } ;;
4398 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4399 $as_echo "print -r" >&6; } ;;
4400 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4401 $as_echo "cat" >&6; } ;;
4402 esac
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4418 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4419 if ${ac_cv_path_SED+:} false; then :
4420 $as_echo_n "(cached) " >&6
4421 else
4422 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4423 for ac_i in 1 2 3 4 5 6 7; do
4424 ac_script="$ac_script$as_nl$ac_script"
4425 done
4426 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4427 { ac_script=; unset ac_script;}
4428 if test -z "$SED"; then
4429 ac_path_SED_found=false
4430 # Loop through the user's path and test for each of PROGNAME-LIST
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 for ac_prog in sed gsed; do
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4439 as_fn_executable_p "$ac_path_SED" || continue
4440 # Check for GNU ac_path_SED and select it if it is found.
4441 # Check for GNU $ac_path_SED
4442 case `"$ac_path_SED" --version 2>&1` in
4443 *GNU*)
4444 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4445 *)
4446 ac_count=0
4447 $as_echo_n 0123456789 >"conftest.in"
4448 while :
4449 do
4450 cat "conftest.in" "conftest.in" >"conftest.tmp"
4451 mv "conftest.tmp" "conftest.in"
4452 cp "conftest.in" "conftest.nl"
4453 $as_echo '' >> "conftest.nl"
4454 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4456 as_fn_arith $ac_count + 1 && ac_count=$as_val
4457 if test $ac_count -gt ${ac_path_SED_max-0}; then
4458 # Best one so far, save it but keep looking for a better one
4459 ac_cv_path_SED="$ac_path_SED"
4460 ac_path_SED_max=$ac_count
4461 fi
4462 # 10*(2^10) chars as input seems more than enough
4463 test $ac_count -gt 10 && break
4464 done
4465 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4466 esac
4467
4468 $ac_path_SED_found && break 3
4469 done
4470 done
4471 done
4472 IFS=$as_save_IFS
4473 if test -z "$ac_cv_path_SED"; then
4474 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4475 fi
4476 else
4477 ac_cv_path_SED=$SED
4478 fi
4479
4480 fi
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4482 $as_echo "$ac_cv_path_SED" >&6; }
4483 SED="$ac_cv_path_SED"
4484 rm -f conftest.sed
4485
4486 test -z "$SED" && SED=sed
4487 Xsed="$SED -e 1s/^X//"
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4500 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4501 if ${ac_cv_path_GREP+:} false; then :
4502 $as_echo_n "(cached) " >&6
4503 else
4504 if test -z "$GREP"; then
4505 ac_path_GREP_found=false
4506 # Loop through the user's path and test for each of PROGNAME-LIST
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4509 do
4510 IFS=$as_save_IFS
4511 test -z "$as_dir" && as_dir=.
4512 for ac_prog in grep ggrep; do
4513 for ac_exec_ext in '' $ac_executable_extensions; do
4514 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4515 as_fn_executable_p "$ac_path_GREP" || continue
4516 # Check for GNU ac_path_GREP and select it if it is found.
4517 # Check for GNU $ac_path_GREP
4518 case `"$ac_path_GREP" --version 2>&1` in
4519 *GNU*)
4520 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4521 *)
4522 ac_count=0
4523 $as_echo_n 0123456789 >"conftest.in"
4524 while :
4525 do
4526 cat "conftest.in" "conftest.in" >"conftest.tmp"
4527 mv "conftest.tmp" "conftest.in"
4528 cp "conftest.in" "conftest.nl"
4529 $as_echo 'GREP' >> "conftest.nl"
4530 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4531 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4532 as_fn_arith $ac_count + 1 && ac_count=$as_val
4533 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4534 # Best one so far, save it but keep looking for a better one
4535 ac_cv_path_GREP="$ac_path_GREP"
4536 ac_path_GREP_max=$ac_count
4537 fi
4538 # 10*(2^10) chars as input seems more than enough
4539 test $ac_count -gt 10 && break
4540 done
4541 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4542 esac
4543
4544 $ac_path_GREP_found && break 3
4545 done
4546 done
4547 done
4548 IFS=$as_save_IFS
4549 if test -z "$ac_cv_path_GREP"; then
4550 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4551 fi
4552 else
4553 ac_cv_path_GREP=$GREP
4554 fi
4555
4556 fi
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4558 $as_echo "$ac_cv_path_GREP" >&6; }
4559 GREP="$ac_cv_path_GREP"
4560
4561
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4563 $as_echo_n "checking for egrep... " >&6; }
4564 if ${ac_cv_path_EGREP+:} false; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4568 then ac_cv_path_EGREP="$GREP -E"
4569 else
4570 if test -z "$EGREP"; then
4571 ac_path_EGREP_found=false
4572 # Loop through the user's path and test for each of PROGNAME-LIST
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4575 do
4576 IFS=$as_save_IFS
4577 test -z "$as_dir" && as_dir=.
4578 for ac_prog in egrep; do
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4581 as_fn_executable_p "$ac_path_EGREP" || continue
4582 # Check for GNU ac_path_EGREP and select it if it is found.
4583 # Check for GNU $ac_path_EGREP
4584 case `"$ac_path_EGREP" --version 2>&1` in
4585 *GNU*)
4586 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4587 *)
4588 ac_count=0
4589 $as_echo_n 0123456789 >"conftest.in"
4590 while :
4591 do
4592 cat "conftest.in" "conftest.in" >"conftest.tmp"
4593 mv "conftest.tmp" "conftest.in"
4594 cp "conftest.in" "conftest.nl"
4595 $as_echo 'EGREP' >> "conftest.nl"
4596 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4597 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4598 as_fn_arith $ac_count + 1 && ac_count=$as_val
4599 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4600 # Best one so far, save it but keep looking for a better one
4601 ac_cv_path_EGREP="$ac_path_EGREP"
4602 ac_path_EGREP_max=$ac_count
4603 fi
4604 # 10*(2^10) chars as input seems more than enough
4605 test $ac_count -gt 10 && break
4606 done
4607 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4608 esac
4609
4610 $ac_path_EGREP_found && break 3
4611 done
4612 done
4613 done
4614 IFS=$as_save_IFS
4615 if test -z "$ac_cv_path_EGREP"; then
4616 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4617 fi
4618 else
4619 ac_cv_path_EGREP=$EGREP
4620 fi
4621
4622 fi
4623 fi
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4625 $as_echo "$ac_cv_path_EGREP" >&6; }
4626 EGREP="$ac_cv_path_EGREP"
4627
4628
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4630 $as_echo_n "checking for fgrep... " >&6; }
4631 if ${ac_cv_path_FGREP+:} false; then :
4632 $as_echo_n "(cached) " >&6
4633 else
4634 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4635 then ac_cv_path_FGREP="$GREP -F"
4636 else
4637 if test -z "$FGREP"; then
4638 ac_path_FGREP_found=false
4639 # Loop through the user's path and test for each of PROGNAME-LIST
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4642 do
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
4645 for ac_prog in fgrep; do
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4648 as_fn_executable_p "$ac_path_FGREP" || continue
4649 # Check for GNU ac_path_FGREP and select it if it is found.
4650 # Check for GNU $ac_path_FGREP
4651 case `"$ac_path_FGREP" --version 2>&1` in
4652 *GNU*)
4653 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4654 *)
4655 ac_count=0
4656 $as_echo_n 0123456789 >"conftest.in"
4657 while :
4658 do
4659 cat "conftest.in" "conftest.in" >"conftest.tmp"
4660 mv "conftest.tmp" "conftest.in"
4661 cp "conftest.in" "conftest.nl"
4662 $as_echo 'FGREP' >> "conftest.nl"
4663 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4664 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4665 as_fn_arith $ac_count + 1 && ac_count=$as_val
4666 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4667 # Best one so far, save it but keep looking for a better one
4668 ac_cv_path_FGREP="$ac_path_FGREP"
4669 ac_path_FGREP_max=$ac_count
4670 fi
4671 # 10*(2^10) chars as input seems more than enough
4672 test $ac_count -gt 10 && break
4673 done
4674 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4675 esac
4676
4677 $ac_path_FGREP_found && break 3
4678 done
4679 done
4680 done
4681 IFS=$as_save_IFS
4682 if test -z "$ac_cv_path_FGREP"; then
4683 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4684 fi
4685 else
4686 ac_cv_path_FGREP=$FGREP
4687 fi
4688
4689 fi
4690 fi
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4692 $as_echo "$ac_cv_path_FGREP" >&6; }
4693 FGREP="$ac_cv_path_FGREP"
4694
4695
4696 test -z "$GREP" && GREP=grep
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716 # Check whether --with-gnu-ld was given.
4717 if test "${with_gnu_ld+set}" = set; then :
4718 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4719 else
4720 with_gnu_ld=no
4721 fi
4722
4723 ac_prog=ld
4724 if test "$GCC" = yes; then
4725 # Check if gcc -print-prog-name=ld gives a path.
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4727 $as_echo_n "checking for ld used by $CC... " >&6; }
4728 case $host in
4729 *-*-mingw*)
4730 # gcc leaves a trailing carriage return which upsets mingw
4731 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4732 *)
4733 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4734 esac
4735 case $ac_prog in
4736 # Accept absolute paths.
4737 [\\/]* | ?:[\\/]*)
4738 re_direlt='/[^/][^/]*/\.\./'
4739 # Canonicalize the pathname of ld
4740 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4741 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4742 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4743 done
4744 test -z "$LD" && LD="$ac_prog"
4745 ;;
4746 "")
4747 # If it fails, then pretend we aren't using GCC.
4748 ac_prog=ld
4749 ;;
4750 *)
4751 # If it is relative, then search for the first ld in PATH.
4752 with_gnu_ld=unknown
4753 ;;
4754 esac
4755 elif test "$with_gnu_ld" = yes; then
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4757 $as_echo_n "checking for GNU ld... " >&6; }
4758 else
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4760 $as_echo_n "checking for non-GNU ld... " >&6; }
4761 fi
4762 if ${lt_cv_path_LD+:} false; then :
4763 $as_echo_n "(cached) " >&6
4764 else
4765 if test -z "$LD"; then
4766 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4767 for ac_dir in $PATH; do
4768 IFS="$lt_save_ifs"
4769 test -z "$ac_dir" && ac_dir=.
4770 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4771 lt_cv_path_LD="$ac_dir/$ac_prog"
4772 # Check to see if the program is GNU ld. I'd rather use --version,
4773 # but apparently some variants of GNU ld only accept -v.
4774 # Break only if it was the GNU/non-GNU ld that we prefer.
4775 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4776 *GNU* | *'with BFD'*)
4777 test "$with_gnu_ld" != no && break
4778 ;;
4779 *)
4780 test "$with_gnu_ld" != yes && break
4781 ;;
4782 esac
4783 fi
4784 done
4785 IFS="$lt_save_ifs"
4786 else
4787 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4788 fi
4789 fi
4790
4791 LD="$lt_cv_path_LD"
4792 if test -n "$LD"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4794 $as_echo "$LD" >&6; }
4795 else
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4798 fi
4799 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4801 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4802 if ${lt_cv_prog_gnu_ld+:} false; then :
4803 $as_echo_n "(cached) " >&6
4804 else
4805 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4806 case `$LD -v 2>&1 </dev/null` in
4807 *GNU* | *'with BFD'*)
4808 lt_cv_prog_gnu_ld=yes
4809 ;;
4810 *)
4811 lt_cv_prog_gnu_ld=no
4812 ;;
4813 esac
4814 fi
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4816 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4817 with_gnu_ld=$lt_cv_prog_gnu_ld
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4828 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4829 if ${lt_cv_path_NM+:} false; then :
4830 $as_echo_n "(cached) " >&6
4831 else
4832 if test -n "$NM"; then
4833 # Let the user override the test.
4834 lt_cv_path_NM="$NM"
4835 else
4836 lt_nm_to_check="${ac_tool_prefix}nm"
4837 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4838 lt_nm_to_check="$lt_nm_to_check nm"
4839 fi
4840 for lt_tmp_nm in $lt_nm_to_check; do
4841 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4842 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4843 IFS="$lt_save_ifs"
4844 test -z "$ac_dir" && ac_dir=.
4845 tmp_nm="$ac_dir/$lt_tmp_nm"
4846 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4847 # Check to see if the nm accepts a BSD-compat flag.
4848 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4849 # nm: unknown option "B" ignored
4850 # Tru64's nm complains that /dev/null is an invalid object file
4851 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4852 */dev/null* | *'Invalid file or object type'*)
4853 lt_cv_path_NM="$tmp_nm -B"
4854 break
4855 ;;
4856 *)
4857 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4858 */dev/null*)
4859 lt_cv_path_NM="$tmp_nm -p"
4860 break
4861 ;;
4862 *)
4863 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4864 continue # so that we can try to find one that supports BSD flags
4865 ;;
4866 esac
4867 ;;
4868 esac
4869 fi
4870 done
4871 IFS="$lt_save_ifs"
4872 done
4873 : ${lt_cv_path_NM=no}
4874 fi
4875 fi
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4877 $as_echo "$lt_cv_path_NM" >&6; }
4878 if test "$lt_cv_path_NM" != "no"; then
4879 NM="$lt_cv_path_NM"
4880 else
4881 # Didn't find any BSD compatible name lister, look for dumpbin.
4882 if test -n "$DUMPBIN"; then :
4883 # Let the user override the test.
4884 else
4885 if test -n "$ac_tool_prefix"; then
4886 for ac_prog in dumpbin "link -dump"
4887 do
4888 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4889 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if ${ac_cv_prog_DUMPBIN+:} false; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 if test -n "$DUMPBIN"; then
4896 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4897 else
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4900 do
4901 IFS=$as_save_IFS
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4905 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 break 2
4908 fi
4909 done
4910 done
4911 IFS=$as_save_IFS
4912
4913 fi
4914 fi
4915 DUMPBIN=$ac_cv_prog_DUMPBIN
4916 if test -n "$DUMPBIN"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4918 $as_echo "$DUMPBIN" >&6; }
4919 else
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4922 fi
4923
4924
4925 test -n "$DUMPBIN" && break
4926 done
4927 fi
4928 if test -z "$DUMPBIN"; then
4929 ac_ct_DUMPBIN=$DUMPBIN
4930 for ac_prog in dumpbin "link -dump"
4931 do
4932 # Extract the first word of "$ac_prog", so it can be a program name with args.
4933 set dummy $ac_prog; ac_word=$2
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4935 $as_echo_n "checking for $ac_word... " >&6; }
4936 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4937 $as_echo_n "(cached) " >&6
4938 else
4939 if test -n "$ac_ct_DUMPBIN"; then
4940 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4941 else
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4944 do
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4949 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 break 2
4952 fi
4953 done
4954 done
4955 IFS=$as_save_IFS
4956
4957 fi
4958 fi
4959 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4960 if test -n "$ac_ct_DUMPBIN"; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4962 $as_echo "$ac_ct_DUMPBIN" >&6; }
4963 else
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4966 fi
4967
4968
4969 test -n "$ac_ct_DUMPBIN" && break
4970 done
4971
4972 if test "x$ac_ct_DUMPBIN" = x; then
4973 DUMPBIN=":"
4974 else
4975 case $cross_compiling:$ac_tool_warned in
4976 yes:)
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4979 ac_tool_warned=yes ;;
4980 esac
4981 DUMPBIN=$ac_ct_DUMPBIN
4982 fi
4983 fi
4984
4985 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4986 *COFF*)
4987 DUMPBIN="$DUMPBIN -symbols"
4988 ;;
4989 *)
4990 DUMPBIN=:
4991 ;;
4992 esac
4993 fi
4994
4995 if test "$DUMPBIN" != ":"; then
4996 NM="$DUMPBIN"
4997 fi
4998 fi
4999 test -z "$NM" && NM=nm
5000
5001
5002
5003
5004
5005
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5007 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5008 if ${lt_cv_nm_interface+:} false; then :
5009 $as_echo_n "(cached) " >&6
5010 else
5011 lt_cv_nm_interface="BSD nm"
5012 echo "int some_variable = 0;" > conftest.$ac_ext
5013 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5014 (eval "$ac_compile" 2>conftest.err)
5015 cat conftest.err >&5
5016 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5017 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5018 cat conftest.err >&5
5019 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5020 cat conftest.out >&5
5021 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5022 lt_cv_nm_interface="MS dumpbin"
5023 fi
5024 rm -f conftest*
5025 fi
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5027 $as_echo "$lt_cv_nm_interface" >&6; }
5028
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5030 $as_echo_n "checking whether ln -s works... " >&6; }
5031 LN_S=$as_ln_s
5032 if test "$LN_S" = "ln -s"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5034 $as_echo "yes" >&6; }
5035 else
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5037 $as_echo "no, using $LN_S" >&6; }
5038 fi
5039
5040 # find the maximum length of command line arguments
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5042 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5043 if ${lt_cv_sys_max_cmd_len+:} false; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 i=0
5047 teststring="ABCD"
5048
5049 case $build_os in
5050 msdosdjgpp*)
5051 # On DJGPP, this test can blow up pretty badly due to problems in libc
5052 # (any single argument exceeding 2000 bytes causes a buffer overrun
5053 # during glob expansion). Even if it were fixed, the result of this
5054 # check would be larger than it should be.
5055 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5056 ;;
5057
5058 gnu*)
5059 # Under GNU Hurd, this test is not required because there is
5060 # no limit to the length of command line arguments.
5061 # Libtool will interpret -1 as no limit whatsoever
5062 lt_cv_sys_max_cmd_len=-1;
5063 ;;
5064
5065 cygwin* | mingw* | cegcc*)
5066 # On Win9x/ME, this test blows up -- it succeeds, but takes
5067 # about 5 minutes as the teststring grows exponentially.
5068 # Worse, since 9x/ME are not pre-emptively multitasking,
5069 # you end up with a "frozen" computer, even though with patience
5070 # the test eventually succeeds (with a max line length of 256k).
5071 # Instead, let's just punt: use the minimum linelength reported by
5072 # all of the supported platforms: 8192 (on NT/2K/XP).
5073 lt_cv_sys_max_cmd_len=8192;
5074 ;;
5075
5076 mint*)
5077 # On MiNT this can take a long time and run out of memory.
5078 lt_cv_sys_max_cmd_len=8192;
5079 ;;
5080
5081 amigaos*)
5082 # On AmigaOS with pdksh, this test takes hours, literally.
5083 # So we just punt and use a minimum line length of 8192.
5084 lt_cv_sys_max_cmd_len=8192;
5085 ;;
5086
5087 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5088 # This has been around since 386BSD, at least. Likely further.
5089 if test -x /sbin/sysctl; then
5090 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5091 elif test -x /usr/sbin/sysctl; then
5092 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5093 else
5094 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5095 fi
5096 # And add a safety zone
5097 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5098 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5099 ;;
5100
5101 interix*)
5102 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5103 lt_cv_sys_max_cmd_len=196608
5104 ;;
5105
5106 os2*)
5107 # The test takes a long time on OS/2.
5108 lt_cv_sys_max_cmd_len=8192
5109 ;;
5110
5111 osf*)
5112 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5113 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5114 # nice to cause kernel panics so lets avoid the loop below.
5115 # First set a reasonable default.
5116 lt_cv_sys_max_cmd_len=16384
5117 #
5118 if test -x /sbin/sysconfig; then
5119 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5120 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5121 esac
5122 fi
5123 ;;
5124 sco3.2v5*)
5125 lt_cv_sys_max_cmd_len=102400
5126 ;;
5127 sysv5* | sco5v6* | sysv4.2uw2*)
5128 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5129 if test -n "$kargmax"; then
5130 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5131 else
5132 lt_cv_sys_max_cmd_len=32768
5133 fi
5134 ;;
5135 *)
5136 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5137 if test -n "$lt_cv_sys_max_cmd_len" && \
5138 test undefined != "$lt_cv_sys_max_cmd_len"; then
5139 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5140 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5141 else
5142 # Make teststring a little bigger before we do anything with it.
5143 # a 1K string should be a reasonable start.
5144 for i in 1 2 3 4 5 6 7 8 ; do
5145 teststring=$teststring$teststring
5146 done
5147 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5148 # If test is not a shell built-in, we'll probably end up computing a
5149 # maximum length that is only half of the actual maximum length, but
5150 # we can't tell.
5151 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5152 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5153 test $i != 17 # 1/2 MB should be enough
5154 do
5155 i=`expr $i + 1`
5156 teststring=$teststring$teststring
5157 done
5158 # Only check the string length outside the loop.
5159 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5160 teststring=
5161 # Add a significant safety factor because C++ compilers can tack on
5162 # massive amounts of additional arguments before passing them to the
5163 # linker. It appears as though 1/2 is a usable value.
5164 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5165 fi
5166 ;;
5167 esac
5168
5169 fi
5170
5171 if test -n $lt_cv_sys_max_cmd_len ; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5173 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5174 else
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5176 $as_echo "none" >&6; }
5177 fi
5178 max_cmd_len=$lt_cv_sys_max_cmd_len
5179
5180
5181
5182
5183
5184
5185 : ${CP="cp -f"}
5186 : ${MV="mv -f"}
5187 : ${RM="rm -f"}
5188
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5190 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5191 # Try some XSI features
5192 xsi_shell=no
5193 ( _lt_dummy="a/b/c"
5194 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5195 = c,a/b,b/c, \
5196 && eval 'test $(( 1 + 1 )) -eq 2 \
5197 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5198 && xsi_shell=yes
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5200 $as_echo "$xsi_shell" >&6; }
5201
5202
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5204 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5205 lt_shell_append=no
5206 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5207 >/dev/null 2>&1 \
5208 && lt_shell_append=yes
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5210 $as_echo "$lt_shell_append" >&6; }
5211
5212
5213 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5214 lt_unset=unset
5215 else
5216 lt_unset=false
5217 fi
5218
5219
5220
5221
5222
5223 # test EBCDIC or ASCII
5224 case `echo X|tr X '\101'` in
5225 A) # ASCII based system
5226 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5227 lt_SP2NL='tr \040 \012'
5228 lt_NL2SP='tr \015\012 \040\040'
5229 ;;
5230 *) # EBCDIC based system
5231 lt_SP2NL='tr \100 \n'
5232 lt_NL2SP='tr \r\n \100\100'
5233 ;;
5234 esac
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5245 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5246 if ${lt_cv_to_host_file_cmd+:} false; then :
5247 $as_echo_n "(cached) " >&6
5248 else
5249 case $host in
5250 *-*-mingw* )
5251 case $build in
5252 *-*-mingw* ) # actually msys
5253 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5254 ;;
5255 *-*-cygwin* )
5256 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5257 ;;
5258 * ) # otherwise, assume *nix
5259 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5260 ;;
5261 esac
5262 ;;
5263 *-*-cygwin* )
5264 case $build in
5265 *-*-mingw* ) # actually msys
5266 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5267 ;;
5268 *-*-cygwin* )
5269 lt_cv_to_host_file_cmd=func_convert_file_noop
5270 ;;
5271 * ) # otherwise, assume *nix
5272 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5273 ;;
5274 esac
5275 ;;
5276 * ) # unhandled hosts (and "normal" native builds)
5277 lt_cv_to_host_file_cmd=func_convert_file_noop
5278 ;;
5279 esac
5280
5281 fi
5282
5283 to_host_file_cmd=$lt_cv_to_host_file_cmd
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5285 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5286
5287
5288
5289
5290
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5292 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5293 if ${lt_cv_to_tool_file_cmd+:} false; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296 #assume ordinary cross tools, or native build.
5297 lt_cv_to_tool_file_cmd=func_convert_file_noop
5298 case $host in
5299 *-*-mingw* )
5300 case $build in
5301 *-*-mingw* ) # actually msys
5302 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5303 ;;
5304 esac
5305 ;;
5306 esac
5307
5308 fi
5309
5310 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5312 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5313
5314
5315
5316
5317
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5319 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5320 if ${lt_cv_ld_reload_flag+:} false; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 lt_cv_ld_reload_flag='-r'
5324 fi
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5326 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5327 reload_flag=$lt_cv_ld_reload_flag
5328 case $reload_flag in
5329 "" | " "*) ;;
5330 *) reload_flag=" $reload_flag" ;;
5331 esac
5332 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5333 case $host_os in
5334 cygwin* | mingw* | pw32* | cegcc*)
5335 if test "$GCC" != yes; then
5336 reload_cmds=false
5337 fi
5338 ;;
5339 darwin*)
5340 if test "$GCC" = yes; then
5341 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5342 else
5343 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5344 fi
5345 ;;
5346 esac
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356 if test -n "$ac_tool_prefix"; then
5357 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5358 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if ${ac_cv_prog_OBJDUMP+:} false; then :
5362 $as_echo_n "(cached) " >&6
5363 else
5364 if test -n "$OBJDUMP"; then
5365 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5366 else
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 for as_dir in $PATH
5369 do
5370 IFS=$as_save_IFS
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5374 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 break 2
5377 fi
5378 done
5379 done
5380 IFS=$as_save_IFS
5381
5382 fi
5383 fi
5384 OBJDUMP=$ac_cv_prog_OBJDUMP
5385 if test -n "$OBJDUMP"; then
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5387 $as_echo "$OBJDUMP" >&6; }
5388 else
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 $as_echo "no" >&6; }
5391 fi
5392
5393
5394 fi
5395 if test -z "$ac_cv_prog_OBJDUMP"; then
5396 ac_ct_OBJDUMP=$OBJDUMP
5397 # Extract the first word of "objdump", so it can be a program name with args.
5398 set dummy objdump; ac_word=$2
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5402 $as_echo_n "(cached) " >&6
5403 else
5404 if test -n "$ac_ct_OBJDUMP"; then
5405 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5406 else
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5409 do
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5414 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 break 2
5417 fi
5418 done
5419 done
5420 IFS=$as_save_IFS
5421
5422 fi
5423 fi
5424 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5425 if test -n "$ac_ct_OBJDUMP"; then
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5427 $as_echo "$ac_ct_OBJDUMP" >&6; }
5428 else
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430 $as_echo "no" >&6; }
5431 fi
5432
5433 if test "x$ac_ct_OBJDUMP" = x; then
5434 OBJDUMP="false"
5435 else
5436 case $cross_compiling:$ac_tool_warned in
5437 yes:)
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5440 ac_tool_warned=yes ;;
5441 esac
5442 OBJDUMP=$ac_ct_OBJDUMP
5443 fi
5444 else
5445 OBJDUMP="$ac_cv_prog_OBJDUMP"
5446 fi
5447
5448 test -z "$OBJDUMP" && OBJDUMP=objdump
5449
5450
5451
5452
5453
5454
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5456 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5457 if ${lt_cv_deplibs_check_method+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 lt_cv_file_magic_cmd='$MAGIC_CMD'
5461 lt_cv_file_magic_test_file=
5462 lt_cv_deplibs_check_method='unknown'
5463 # Need to set the preceding variable on all platforms that support
5464 # interlibrary dependencies.
5465 # 'none' -- dependencies not supported.
5466 # `unknown' -- same as none, but documents that we really don't know.
5467 # 'pass_all' -- all dependencies passed with no checks.
5468 # 'test_compile' -- check by making test program.
5469 # 'file_magic [[regex]]' -- check by looking for files in library path
5470 # which responds to the $file_magic_cmd with a given extended regex.
5471 # If you have `file' or equivalent on your system and you're not sure
5472 # whether `pass_all' will *always* work, you probably want this one.
5473
5474 case $host_os in
5475 aix[4-9]*)
5476 lt_cv_deplibs_check_method=pass_all
5477 ;;
5478
5479 beos*)
5480 lt_cv_deplibs_check_method=pass_all
5481 ;;
5482
5483 bsdi[45]*)
5484 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5485 lt_cv_file_magic_cmd='/usr/bin/file -L'
5486 lt_cv_file_magic_test_file=/shlib/libc.so
5487 ;;
5488
5489 cygwin*)
5490 # func_win32_libid is a shell function defined in ltmain.sh
5491 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5492 lt_cv_file_magic_cmd='func_win32_libid'
5493 ;;
5494
5495 mingw* | pw32*)
5496 # Base MSYS/MinGW do not provide the 'file' command needed by
5497 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5498 # unless we find 'file', for example because we are cross-compiling.
5499 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5500 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5501 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5502 lt_cv_file_magic_cmd='func_win32_libid'
5503 else
5504 # Keep this pattern in sync with the one in func_win32_libid.
5505 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5506 lt_cv_file_magic_cmd='$OBJDUMP -f'
5507 fi
5508 ;;
5509
5510 cegcc*)
5511 # use the weaker test based on 'objdump'. See mingw*.
5512 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5513 lt_cv_file_magic_cmd='$OBJDUMP -f'
5514 ;;
5515
5516 darwin* | rhapsody*)
5517 lt_cv_deplibs_check_method=pass_all
5518 ;;
5519
5520 freebsd* | dragonfly*)
5521 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5522 case $host_cpu in
5523 i*86 )
5524 # Not sure whether the presence of OpenBSD here was a mistake.
5525 # Let's accept both of them until this is cleared up.
5526 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5527 lt_cv_file_magic_cmd=/usr/bin/file
5528 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5529 ;;
5530 esac
5531 else
5532 lt_cv_deplibs_check_method=pass_all
5533 fi
5534 ;;
5535
5536 haiku*)
5537 lt_cv_deplibs_check_method=pass_all
5538 ;;
5539
5540 hpux10.20* | hpux11*)
5541 lt_cv_file_magic_cmd=/usr/bin/file
5542 case $host_cpu in
5543 ia64*)
5544 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5545 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5546 ;;
5547 hppa*64*)
5548 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]'
5549 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5550 ;;
5551 *)
5552 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5553 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5554 ;;
5555 esac
5556 ;;
5557
5558 interix[3-9]*)
5559 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5560 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5561 ;;
5562
5563 irix5* | irix6* | nonstopux*)
5564 case $LD in
5565 *-32|*"-32 ") libmagic=32-bit;;
5566 *-n32|*"-n32 ") libmagic=N32;;
5567 *-64|*"-64 ") libmagic=64-bit;;
5568 *) libmagic=never-match;;
5569 esac
5570 lt_cv_deplibs_check_method=pass_all
5571 ;;
5572
5573 # This must be glibc/ELF.
5574 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5575 lt_cv_deplibs_check_method=pass_all
5576 ;;
5577
5578 netbsd* | netbsdelf*-gnu)
5579 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5581 else
5582 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5583 fi
5584 ;;
5585
5586 newos6*)
5587 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5588 lt_cv_file_magic_cmd=/usr/bin/file
5589 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5590 ;;
5591
5592 *nto* | *qnx*)
5593 lt_cv_deplibs_check_method=pass_all
5594 ;;
5595
5596 openbsd*)
5597 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5598 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5599 else
5600 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5601 fi
5602 ;;
5603
5604 osf3* | osf4* | osf5*)
5605 lt_cv_deplibs_check_method=pass_all
5606 ;;
5607
5608 rdos*)
5609 lt_cv_deplibs_check_method=pass_all
5610 ;;
5611
5612 solaris*)
5613 lt_cv_deplibs_check_method=pass_all
5614 ;;
5615
5616 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5617 lt_cv_deplibs_check_method=pass_all
5618 ;;
5619
5620 sysv4 | sysv4.3*)
5621 case $host_vendor in
5622 motorola)
5623 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]'
5624 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5625 ;;
5626 ncr)
5627 lt_cv_deplibs_check_method=pass_all
5628 ;;
5629 sequent)
5630 lt_cv_file_magic_cmd='/bin/file'
5631 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5632 ;;
5633 sni)
5634 lt_cv_file_magic_cmd='/bin/file'
5635 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5636 lt_cv_file_magic_test_file=/lib/libc.so
5637 ;;
5638 siemens)
5639 lt_cv_deplibs_check_method=pass_all
5640 ;;
5641 pc)
5642 lt_cv_deplibs_check_method=pass_all
5643 ;;
5644 esac
5645 ;;
5646
5647 tpf*)
5648 lt_cv_deplibs_check_method=pass_all
5649 ;;
5650 esac
5651
5652 fi
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5654 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5655
5656 file_magic_glob=
5657 want_nocaseglob=no
5658 if test "$build" = "$host"; then
5659 case $host_os in
5660 mingw* | pw32*)
5661 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5662 want_nocaseglob=yes
5663 else
5664 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5665 fi
5666 ;;
5667 esac
5668 fi
5669
5670 file_magic_cmd=$lt_cv_file_magic_cmd
5671 deplibs_check_method=$lt_cv_deplibs_check_method
5672 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695 if test -n "$ac_tool_prefix"; then
5696 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5697 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699 $as_echo_n "checking for $ac_word... " >&6; }
5700 if ${ac_cv_prog_DLLTOOL+:} false; then :
5701 $as_echo_n "(cached) " >&6
5702 else
5703 if test -n "$DLLTOOL"; then
5704 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5705 else
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5708 do
5709 IFS=$as_save_IFS
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5713 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 break 2
5716 fi
5717 done
5718 done
5719 IFS=$as_save_IFS
5720
5721 fi
5722 fi
5723 DLLTOOL=$ac_cv_prog_DLLTOOL
5724 if test -n "$DLLTOOL"; then
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5726 $as_echo "$DLLTOOL" >&6; }
5727 else
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729 $as_echo "no" >&6; }
5730 fi
5731
5732
5733 fi
5734 if test -z "$ac_cv_prog_DLLTOOL"; then
5735 ac_ct_DLLTOOL=$DLLTOOL
5736 # Extract the first word of "dlltool", so it can be a program name with args.
5737 set dummy dlltool; ac_word=$2
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739 $as_echo_n "checking for $ac_word... " >&6; }
5740 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5741 $as_echo_n "(cached) " >&6
5742 else
5743 if test -n "$ac_ct_DLLTOOL"; then
5744 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5745 else
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 for as_dir in $PATH
5748 do
5749 IFS=$as_save_IFS
5750 test -z "$as_dir" && as_dir=.
5751 for ac_exec_ext in '' $ac_executable_extensions; do
5752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5753 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5755 break 2
5756 fi
5757 done
5758 done
5759 IFS=$as_save_IFS
5760
5761 fi
5762 fi
5763 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5764 if test -n "$ac_ct_DLLTOOL"; then
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5766 $as_echo "$ac_ct_DLLTOOL" >&6; }
5767 else
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769 $as_echo "no" >&6; }
5770 fi
5771
5772 if test "x$ac_ct_DLLTOOL" = x; then
5773 DLLTOOL="false"
5774 else
5775 case $cross_compiling:$ac_tool_warned in
5776 yes:)
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5779 ac_tool_warned=yes ;;
5780 esac
5781 DLLTOOL=$ac_ct_DLLTOOL
5782 fi
5783 else
5784 DLLTOOL="$ac_cv_prog_DLLTOOL"
5785 fi
5786
5787 test -z "$DLLTOOL" && DLLTOOL=dlltool
5788
5789
5790
5791
5792
5793
5794
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5796 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5797 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5798 $as_echo_n "(cached) " >&6
5799 else
5800 lt_cv_sharedlib_from_linklib_cmd='unknown'
5801
5802 case $host_os in
5803 cygwin* | mingw* | pw32* | cegcc*)
5804 # two different shell functions defined in ltmain.sh
5805 # decide which to use based on capabilities of $DLLTOOL
5806 case `$DLLTOOL --help 2>&1` in
5807 *--identify-strict*)
5808 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5809 ;;
5810 *)
5811 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5812 ;;
5813 esac
5814 ;;
5815 *)
5816 # fallback: assume linklib IS sharedlib
5817 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5818 ;;
5819 esac
5820
5821 fi
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5823 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5824 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5825 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5826
5827
5828
5829
5830
5831
5832
5833 if test -n "$ac_tool_prefix"; then
5834 for ac_prog in ar
5835 do
5836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5837 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839 $as_echo_n "checking for $ac_word... " >&6; }
5840 if ${ac_cv_prog_AR+:} false; then :
5841 $as_echo_n "(cached) " >&6
5842 else
5843 if test -n "$AR"; then
5844 ac_cv_prog_AR="$AR" # Let the user override the test.
5845 else
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 for as_dir in $PATH
5848 do
5849 IFS=$as_save_IFS
5850 test -z "$as_dir" && as_dir=.
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5853 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5855 break 2
5856 fi
5857 done
5858 done
5859 IFS=$as_save_IFS
5860
5861 fi
5862 fi
5863 AR=$ac_cv_prog_AR
5864 if test -n "$AR"; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5866 $as_echo "$AR" >&6; }
5867 else
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869 $as_echo "no" >&6; }
5870 fi
5871
5872
5873 test -n "$AR" && break
5874 done
5875 fi
5876 if test -z "$AR"; then
5877 ac_ct_AR=$AR
5878 for ac_prog in ar
5879 do
5880 # Extract the first word of "$ac_prog", so it can be a program name with args.
5881 set dummy $ac_prog; ac_word=$2
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883 $as_echo_n "checking for $ac_word... " >&6; }
5884 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5885 $as_echo_n "(cached) " >&6
5886 else
5887 if test -n "$ac_ct_AR"; then
5888 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5889 else
5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891 for as_dir in $PATH
5892 do
5893 IFS=$as_save_IFS
5894 test -z "$as_dir" && as_dir=.
5895 for ac_exec_ext in '' $ac_executable_extensions; do
5896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5897 ac_cv_prog_ac_ct_AR="$ac_prog"
5898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 break 2
5900 fi
5901 done
5902 done
5903 IFS=$as_save_IFS
5904
5905 fi
5906 fi
5907 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5908 if test -n "$ac_ct_AR"; then
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5910 $as_echo "$ac_ct_AR" >&6; }
5911 else
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913 $as_echo "no" >&6; }
5914 fi
5915
5916
5917 test -n "$ac_ct_AR" && break
5918 done
5919
5920 if test "x$ac_ct_AR" = x; then
5921 AR="false"
5922 else
5923 case $cross_compiling:$ac_tool_warned in
5924 yes:)
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5927 ac_tool_warned=yes ;;
5928 esac
5929 AR=$ac_ct_AR
5930 fi
5931 fi
5932
5933 : ${AR=ar}
5934 : ${AR_FLAGS=cru}
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5947 $as_echo_n "checking for archiver @FILE support... " >&6; }
5948 if ${lt_cv_ar_at_file+:} false; then :
5949 $as_echo_n "(cached) " >&6
5950 else
5951 lt_cv_ar_at_file=no
5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5954
5955 int
5956 main ()
5957 {
5958
5959 ;
5960 return 0;
5961 }
5962 _ACEOF
5963 if ac_fn_c_try_compile "$LINENO"; then :
5964 echo conftest.$ac_objext > conftest.lst
5965 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5967 (eval $lt_ar_try) 2>&5
5968 ac_status=$?
5969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5970 test $ac_status = 0; }
5971 if test "$ac_status" -eq 0; then
5972 # Ensure the archiver fails upon bogus file names.
5973 rm -f conftest.$ac_objext libconftest.a
5974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5975 (eval $lt_ar_try) 2>&5
5976 ac_status=$?
5977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5978 test $ac_status = 0; }
5979 if test "$ac_status" -ne 0; then
5980 lt_cv_ar_at_file=@
5981 fi
5982 fi
5983 rm -f conftest.* libconftest.a
5984
5985 fi
5986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5987
5988 fi
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5990 $as_echo "$lt_cv_ar_at_file" >&6; }
5991
5992 if test "x$lt_cv_ar_at_file" = xno; then
5993 archiver_list_spec=
5994 else
5995 archiver_list_spec=$lt_cv_ar_at_file
5996 fi
5997
5998
5999
6000
6001
6002
6003
6004 if test -n "$ac_tool_prefix"; then
6005 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6006 set dummy ${ac_tool_prefix}strip; ac_word=$2
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008 $as_echo_n "checking for $ac_word... " >&6; }
6009 if ${ac_cv_prog_STRIP+:} false; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 if test -n "$STRIP"; then
6013 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6014 else
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 for as_dir in $PATH
6017 do
6018 IFS=$as_save_IFS
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6022 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 break 2
6025 fi
6026 done
6027 done
6028 IFS=$as_save_IFS
6029
6030 fi
6031 fi
6032 STRIP=$ac_cv_prog_STRIP
6033 if test -n "$STRIP"; then
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6035 $as_echo "$STRIP" >&6; }
6036 else
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038 $as_echo "no" >&6; }
6039 fi
6040
6041
6042 fi
6043 if test -z "$ac_cv_prog_STRIP"; then
6044 ac_ct_STRIP=$STRIP
6045 # Extract the first word of "strip", so it can be a program name with args.
6046 set dummy strip; ac_word=$2
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6048 $as_echo_n "checking for $ac_word... " >&6; }
6049 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6050 $as_echo_n "(cached) " >&6
6051 else
6052 if test -n "$ac_ct_STRIP"; then
6053 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6054 else
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6057 do
6058 IFS=$as_save_IFS
6059 test -z "$as_dir" && as_dir=.
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6062 ac_cv_prog_ac_ct_STRIP="strip"
6063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6064 break 2
6065 fi
6066 done
6067 done
6068 IFS=$as_save_IFS
6069
6070 fi
6071 fi
6072 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6073 if test -n "$ac_ct_STRIP"; then
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6075 $as_echo "$ac_ct_STRIP" >&6; }
6076 else
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6078 $as_echo "no" >&6; }
6079 fi
6080
6081 if test "x$ac_ct_STRIP" = x; then
6082 STRIP=":"
6083 else
6084 case $cross_compiling:$ac_tool_warned in
6085 yes:)
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6088 ac_tool_warned=yes ;;
6089 esac
6090 STRIP=$ac_ct_STRIP
6091 fi
6092 else
6093 STRIP="$ac_cv_prog_STRIP"
6094 fi
6095
6096 test -z "$STRIP" && STRIP=:
6097
6098
6099
6100
6101
6102
6103 if test -n "$ac_tool_prefix"; then
6104 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6105 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if ${ac_cv_prog_RANLIB+:} false; then :
6109 $as_echo_n "(cached) " >&6
6110 else
6111 if test -n "$RANLIB"; then
6112 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117 IFS=$as_save_IFS
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 break 2
6124 fi
6125 done
6126 done
6127 IFS=$as_save_IFS
6128
6129 fi
6130 fi
6131 RANLIB=$ac_cv_prog_RANLIB
6132 if test -n "$RANLIB"; then
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6134 $as_echo "$RANLIB" >&6; }
6135 else
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137 $as_echo "no" >&6; }
6138 fi
6139
6140
6141 fi
6142 if test -z "$ac_cv_prog_RANLIB"; then
6143 ac_ct_RANLIB=$RANLIB
6144 # Extract the first word of "ranlib", so it can be a program name with args.
6145 set dummy ranlib; ac_word=$2
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147 $as_echo_n "checking for $ac_word... " >&6; }
6148 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6149 $as_echo_n "(cached) " >&6
6150 else
6151 if test -n "$ac_ct_RANLIB"; then
6152 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6153 else
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 for as_dir in $PATH
6156 do
6157 IFS=$as_save_IFS
6158 test -z "$as_dir" && as_dir=.
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6161 ac_cv_prog_ac_ct_RANLIB="ranlib"
6162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6163 break 2
6164 fi
6165 done
6166 done
6167 IFS=$as_save_IFS
6168
6169 fi
6170 fi
6171 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6172 if test -n "$ac_ct_RANLIB"; then
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6174 $as_echo "$ac_ct_RANLIB" >&6; }
6175 else
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177 $as_echo "no" >&6; }
6178 fi
6179
6180 if test "x$ac_ct_RANLIB" = x; then
6181 RANLIB=":"
6182 else
6183 case $cross_compiling:$ac_tool_warned in
6184 yes:)
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6187 ac_tool_warned=yes ;;
6188 esac
6189 RANLIB=$ac_ct_RANLIB
6190 fi
6191 else
6192 RANLIB="$ac_cv_prog_RANLIB"
6193 fi
6194
6195 test -z "$RANLIB" && RANLIB=:
6196
6197
6198
6199
6200
6201
6202 # Determine commands to create old-style static archives.
6203 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6204 old_postinstall_cmds='chmod 644 $oldlib'
6205 old_postuninstall_cmds=
6206
6207 if test -n "$RANLIB"; then
6208 case $host_os in
6209 openbsd*)
6210 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6211 ;;
6212 *)
6213 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6214 ;;
6215 esac
6216 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6217 fi
6218
6219 case $host_os in
6220 darwin*)
6221 lock_old_archive_extraction=yes ;;
6222 *)
6223 lock_old_archive_extraction=no ;;
6224 esac
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264 # If no C compiler was specified, use CC.
6265 LTCC=${LTCC-"$CC"}
6266
6267 # If no C compiler flags were specified, use CFLAGS.
6268 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6269
6270 # Allow CC to be a program name with arguments.
6271 compiler=$CC
6272
6273
6274 # Check for command to grab the raw symbol name followed by C symbol from nm.
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6276 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6277 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6278 $as_echo_n "(cached) " >&6
6279 else
6280
6281 # These are sane defaults that work on at least a few old systems.
6282 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6283
6284 # Character class describing NM global symbol codes.
6285 symcode='[BCDEGRST]'
6286
6287 # Regexp to match symbols that can be accessed directly from C.
6288 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6289
6290 # Define system-specific variables.
6291 case $host_os in
6292 aix*)
6293 symcode='[BCDT]'
6294 ;;
6295 cygwin* | mingw* | pw32* | cegcc*)
6296 symcode='[ABCDGISTW]'
6297 ;;
6298 hpux*)
6299 if test "$host_cpu" = ia64; then
6300 symcode='[ABCDEGRST]'
6301 fi
6302 ;;
6303 irix* | nonstopux*)
6304 symcode='[BCDEGRST]'
6305 ;;
6306 osf*)
6307 symcode='[BCDEGQRST]'
6308 ;;
6309 solaris*)
6310 symcode='[BDRT]'
6311 ;;
6312 sco3.2v5*)
6313 symcode='[DT]'
6314 ;;
6315 sysv4.2uw2*)
6316 symcode='[DT]'
6317 ;;
6318 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6319 symcode='[ABDT]'
6320 ;;
6321 sysv4)
6322 symcode='[DFNSTU]'
6323 ;;
6324 esac
6325
6326 # If we're using GNU nm, then use its standard symbol codes.
6327 case `$NM -V 2>&1` in
6328 *GNU* | *'with BFD'*)
6329 symcode='[ABCDGIRSTW]' ;;
6330 esac
6331
6332 # Transform an extracted symbol line into a proper C declaration.
6333 # Some systems (esp. on ia64) link data and code symbols differently,
6334 # so use this general approach.
6335 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6336
6337 # Transform an extracted symbol line into symbol name and symbol address
6338 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6339 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'"
6340
6341 # Handle CRLF in mingw tool chain
6342 opt_cr=
6343 case $build_os in
6344 mingw*)
6345 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6346 ;;
6347 esac
6348
6349 # Try without a prefix underscore, then with it.
6350 for ac_symprfx in "" "_"; do
6351
6352 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6353 symxfrm="\\1 $ac_symprfx\\2 \\2"
6354
6355 # Write the raw and C identifiers.
6356 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6357 # Fake it for dumpbin and say T for any non-static function
6358 # and D for any global variable.
6359 # Also find C++ and __fastcall symbols from MSVC++,
6360 # which start with @ or ?.
6361 lt_cv_sys_global_symbol_pipe="$AWK '"\
6362 " {last_section=section; section=\$ 3};"\
6363 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6364 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6365 " \$ 0!~/External *\|/{next};"\
6366 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6367 " {if(hide[section]) next};"\
6368 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6369 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6370 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6371 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6372 " ' prfx=^$ac_symprfx"
6373 else
6374 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6375 fi
6376 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6377
6378 # Check to see that the pipe works correctly.
6379 pipe_works=no
6380
6381 rm -f conftest*
6382 cat > conftest.$ac_ext <<_LT_EOF
6383 #ifdef __cplusplus
6384 extern "C" {
6385 #endif
6386 char nm_test_var;
6387 void nm_test_func(void);
6388 void nm_test_func(void){}
6389 #ifdef __cplusplus
6390 }
6391 #endif
6392 int main(){nm_test_var='a';nm_test_func();return(0);}
6393 _LT_EOF
6394
6395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6396 (eval $ac_compile) 2>&5
6397 ac_status=$?
6398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6399 test $ac_status = 0; }; then
6400 # Now try to grab the symbols.
6401 nlist=conftest.nm
6402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6403 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6404 ac_status=$?
6405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6406 test $ac_status = 0; } && test -s "$nlist"; then
6407 # Try sorting and uniquifying the output.
6408 if sort "$nlist" | uniq > "$nlist"T; then
6409 mv -f "$nlist"T "$nlist"
6410 else
6411 rm -f "$nlist"T
6412 fi
6413
6414 # Make sure that we snagged all the symbols we need.
6415 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6416 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6417 cat <<_LT_EOF > conftest.$ac_ext
6418 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6419 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6420 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6421 relocations are performed -- see ld's documentation on pseudo-relocs. */
6422 # define LT_DLSYM_CONST
6423 #elif defined(__osf__)
6424 /* This system does not cope well with relocations in const data. */
6425 # define LT_DLSYM_CONST
6426 #else
6427 # define LT_DLSYM_CONST const
6428 #endif
6429
6430 #ifdef __cplusplus
6431 extern "C" {
6432 #endif
6433
6434 _LT_EOF
6435 # Now generate the symbol file.
6436 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6437
6438 cat <<_LT_EOF >> conftest.$ac_ext
6439
6440 /* The mapping between symbol names and symbols. */
6441 LT_DLSYM_CONST struct {
6442 const char *name;
6443 void *address;
6444 }
6445 lt__PROGRAM__LTX_preloaded_symbols[] =
6446 {
6447 { "@PROGRAM@", (void *) 0 },
6448 _LT_EOF
6449 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6450 cat <<\_LT_EOF >> conftest.$ac_ext
6451 {0, (void *) 0}
6452 };
6453
6454 /* This works around a problem in FreeBSD linker */
6455 #ifdef FREEBSD_WORKAROUND
6456 static const void *lt_preloaded_setup() {
6457 return lt__PROGRAM__LTX_preloaded_symbols;
6458 }
6459 #endif
6460
6461 #ifdef __cplusplus
6462 }
6463 #endif
6464 _LT_EOF
6465 # Now try linking the two files.
6466 mv conftest.$ac_objext conftstm.$ac_objext
6467 lt_globsym_save_LIBS=$LIBS
6468 lt_globsym_save_CFLAGS=$CFLAGS
6469 LIBS="conftstm.$ac_objext"
6470 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6472 (eval $ac_link) 2>&5
6473 ac_status=$?
6474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6475 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6476 pipe_works=yes
6477 fi
6478 LIBS=$lt_globsym_save_LIBS
6479 CFLAGS=$lt_globsym_save_CFLAGS
6480 else
6481 echo "cannot find nm_test_func in $nlist" >&5
6482 fi
6483 else
6484 echo "cannot find nm_test_var in $nlist" >&5
6485 fi
6486 else
6487 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6488 fi
6489 else
6490 echo "$progname: failed program was:" >&5
6491 cat conftest.$ac_ext >&5
6492 fi
6493 rm -rf conftest* conftst*
6494
6495 # Do not use the global_symbol_pipe unless it works.
6496 if test "$pipe_works" = yes; then
6497 break
6498 else
6499 lt_cv_sys_global_symbol_pipe=
6500 fi
6501 done
6502
6503 fi
6504
6505 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6506 lt_cv_sys_global_symbol_to_cdecl=
6507 fi
6508 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6510 $as_echo "failed" >&6; }
6511 else
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6513 $as_echo "ok" >&6; }
6514 fi
6515
6516 # Response file support.
6517 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6518 nm_file_list_spec='@'
6519 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6520 nm_file_list_spec='@'
6521 fi
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6550 $as_echo_n "checking for sysroot... " >&6; }
6551
6552 # Check whether --with-sysroot was given.
6553 if test "${with_sysroot+set}" = set; then :
6554 withval=$with_sysroot;
6555 else
6556 with_sysroot=no
6557 fi
6558
6559
6560 lt_sysroot=
6561 case ${with_sysroot} in #(
6562 yes)
6563 if test "$GCC" = yes; then
6564 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6565 fi
6566 ;; #(
6567 /*)
6568 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6569 ;; #(
6570 no|'')
6571 ;; #(
6572 *)
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6574 $as_echo "${with_sysroot}" >&6; }
6575 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6576 ;;
6577 esac
6578
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6580 $as_echo "${lt_sysroot:-no}" >&6; }
6581
6582
6583
6584
6585
6586 # Check whether --enable-libtool-lock was given.
6587 if test "${enable_libtool_lock+set}" = set; then :
6588 enableval=$enable_libtool_lock;
6589 fi
6590
6591 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6592
6593 # Some flags need to be propagated to the compiler or linker for good
6594 # libtool support.
6595 case $host in
6596 ia64-*-hpux*)
6597 # Find out which ABI we are using.
6598 echo 'int i;' > conftest.$ac_ext
6599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6600 (eval $ac_compile) 2>&5
6601 ac_status=$?
6602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6603 test $ac_status = 0; }; then
6604 case `/usr/bin/file conftest.$ac_objext` in
6605 *ELF-32*)
6606 HPUX_IA64_MODE="32"
6607 ;;
6608 *ELF-64*)
6609 HPUX_IA64_MODE="64"
6610 ;;
6611 esac
6612 fi
6613 rm -rf conftest*
6614 ;;
6615 *-*-irix6*)
6616 # Find out which ABI we are using.
6617 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6619 (eval $ac_compile) 2>&5
6620 ac_status=$?
6621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6622 test $ac_status = 0; }; then
6623 if test "$lt_cv_prog_gnu_ld" = yes; then
6624 case `/usr/bin/file conftest.$ac_objext` in
6625 *32-bit*)
6626 LD="${LD-ld} -melf32bsmip"
6627 ;;
6628 *N32*)
6629 LD="${LD-ld} -melf32bmipn32"
6630 ;;
6631 *64-bit*)
6632 LD="${LD-ld} -melf64bmip"
6633 ;;
6634 esac
6635 else
6636 case `/usr/bin/file conftest.$ac_objext` in
6637 *32-bit*)
6638 LD="${LD-ld} -32"
6639 ;;
6640 *N32*)
6641 LD="${LD-ld} -n32"
6642 ;;
6643 *64-bit*)
6644 LD="${LD-ld} -64"
6645 ;;
6646 esac
6647 fi
6648 fi
6649 rm -rf conftest*
6650 ;;
6651
6652 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6653 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6654 # Find out which ABI we are using.
6655 echo 'int i;' > conftest.$ac_ext
6656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6657 (eval $ac_compile) 2>&5
6658 ac_status=$?
6659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6660 test $ac_status = 0; }; then
6661 case `/usr/bin/file conftest.o` in
6662 *32-bit*)
6663 case $host in
6664 x86_64-*kfreebsd*-gnu)
6665 LD="${LD-ld} -m elf_i386_fbsd"
6666 ;;
6667 x86_64-*linux*)
6668 case `/usr/bin/file conftest.o` in
6669 *x86-64*)
6670 LD="${LD-ld} -m elf32_x86_64"
6671 ;;
6672 *)
6673 LD="${LD-ld} -m elf_i386"
6674 ;;
6675 esac
6676 ;;
6677 powerpc64le-*)
6678 LD="${LD-ld} -m elf32lppclinux"
6679 ;;
6680 powerpc64-*)
6681 LD="${LD-ld} -m elf32ppclinux"
6682 ;;
6683 s390x-*linux*)
6684 LD="${LD-ld} -m elf_s390"
6685 ;;
6686 sparc64-*linux*)
6687 LD="${LD-ld} -m elf32_sparc"
6688 ;;
6689 esac
6690 ;;
6691 *64-bit*)
6692 case $host in
6693 x86_64-*kfreebsd*-gnu)
6694 LD="${LD-ld} -m elf_x86_64_fbsd"
6695 ;;
6696 x86_64-*linux*)
6697 LD="${LD-ld} -m elf_x86_64"
6698 ;;
6699 powerpcle-*)
6700 LD="${LD-ld} -m elf64lppc"
6701 ;;
6702 powerpc-*)
6703 LD="${LD-ld} -m elf64ppc"
6704 ;;
6705 s390*-*linux*|s390*-*tpf*)
6706 LD="${LD-ld} -m elf64_s390"
6707 ;;
6708 sparc*-*linux*)
6709 LD="${LD-ld} -m elf64_sparc"
6710 ;;
6711 esac
6712 ;;
6713 esac
6714 fi
6715 rm -rf conftest*
6716 ;;
6717
6718 *-*-sco3.2v5*)
6719 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6720 SAVE_CFLAGS="$CFLAGS"
6721 CFLAGS="$CFLAGS -belf"
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6723 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6724 if ${lt_cv_cc_needs_belf+:} false; then :
6725 $as_echo_n "(cached) " >&6
6726 else
6727 ac_ext=c
6728 ac_cpp='$CPP $CPPFLAGS'
6729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6732
6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6735
6736 int
6737 main ()
6738 {
6739
6740 ;
6741 return 0;
6742 }
6743 _ACEOF
6744 if ac_fn_c_try_link "$LINENO"; then :
6745 lt_cv_cc_needs_belf=yes
6746 else
6747 lt_cv_cc_needs_belf=no
6748 fi
6749 rm -f core conftest.err conftest.$ac_objext \
6750 conftest$ac_exeext conftest.$ac_ext
6751 ac_ext=c
6752 ac_cpp='$CPP $CPPFLAGS'
6753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6756
6757 fi
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6759 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6760 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6761 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6762 CFLAGS="$SAVE_CFLAGS"
6763 fi
6764 ;;
6765 *-*solaris*)
6766 # Find out which ABI we are using.
6767 echo 'int i;' > conftest.$ac_ext
6768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6769 (eval $ac_compile) 2>&5
6770 ac_status=$?
6771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6772 test $ac_status = 0; }; then
6773 case `/usr/bin/file conftest.o` in
6774 *64-bit*)
6775 case $lt_cv_prog_gnu_ld in
6776 yes*)
6777 case $host in
6778 i?86-*-solaris*)
6779 LD="${LD-ld} -m elf_x86_64"
6780 ;;
6781 sparc*-*-solaris*)
6782 LD="${LD-ld} -m elf64_sparc"
6783 ;;
6784 esac
6785 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6786 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6787 LD="${LD-ld}_sol2"
6788 fi
6789 ;;
6790 *)
6791 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6792 LD="${LD-ld} -64"
6793 fi
6794 ;;
6795 esac
6796 ;;
6797 esac
6798 fi
6799 rm -rf conftest*
6800 ;;
6801 esac
6802
6803 need_locks="$enable_libtool_lock"
6804
6805 if test -n "$ac_tool_prefix"; then
6806 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6807 set dummy ${ac_tool_prefix}mt; 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_MANIFEST_TOOL+:} false; then :
6811 $as_echo_n "(cached) " >&6
6812 else
6813 if test -n "$MANIFEST_TOOL"; then
6814 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # 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_MANIFEST_TOOL="${ac_tool_prefix}mt"
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 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6834 if test -n "$MANIFEST_TOOL"; then
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6836 $as_echo "$MANIFEST_TOOL" >&6; }
6837 else
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839 $as_echo "no" >&6; }
6840 fi
6841
6842
6843 fi
6844 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6845 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6846 # Extract the first word of "mt", so it can be a program name with args.
6847 set dummy mt; ac_word=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6851 $as_echo_n "(cached) " >&6
6852 else
6853 if test -n "$ac_ct_MANIFEST_TOOL"; then
6854 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6855 else
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6858 do
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6863 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 break 2
6866 fi
6867 done
6868 done
6869 IFS=$as_save_IFS
6870
6871 fi
6872 fi
6873 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6874 if test -n "$ac_ct_MANIFEST_TOOL"; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6876 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6877 else
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6880 fi
6881
6882 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6883 MANIFEST_TOOL=":"
6884 else
6885 case $cross_compiling:$ac_tool_warned in
6886 yes:)
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6889 ac_tool_warned=yes ;;
6890 esac
6891 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6892 fi
6893 else
6894 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6895 fi
6896
6897 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6899 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6900 if ${lt_cv_path_mainfest_tool+:} false; then :
6901 $as_echo_n "(cached) " >&6
6902 else
6903 lt_cv_path_mainfest_tool=no
6904 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6905 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6906 cat conftest.err >&5
6907 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6908 lt_cv_path_mainfest_tool=yes
6909 fi
6910 rm -f conftest*
6911 fi
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6913 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6914 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6915 MANIFEST_TOOL=:
6916 fi
6917
6918
6919
6920
6921
6922
6923 case $host_os in
6924 rhapsody* | darwin*)
6925 if test -n "$ac_tool_prefix"; then
6926 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6927 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6929 $as_echo_n "checking for $ac_word... " >&6; }
6930 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6931 $as_echo_n "(cached) " >&6
6932 else
6933 if test -n "$DSYMUTIL"; then
6934 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6935 else
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 for as_dir in $PATH
6938 do
6939 IFS=$as_save_IFS
6940 test -z "$as_dir" && as_dir=.
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6943 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 break 2
6946 fi
6947 done
6948 done
6949 IFS=$as_save_IFS
6950
6951 fi
6952 fi
6953 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6954 if test -n "$DSYMUTIL"; then
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6956 $as_echo "$DSYMUTIL" >&6; }
6957 else
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959 $as_echo "no" >&6; }
6960 fi
6961
6962
6963 fi
6964 if test -z "$ac_cv_prog_DSYMUTIL"; then
6965 ac_ct_DSYMUTIL=$DSYMUTIL
6966 # Extract the first word of "dsymutil", so it can be a program name with args.
6967 set dummy dsymutil; ac_word=$2
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6969 $as_echo_n "checking for $ac_word... " >&6; }
6970 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6971 $as_echo_n "(cached) " >&6
6972 else
6973 if test -n "$ac_ct_DSYMUTIL"; then
6974 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6975 else
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979 IFS=$as_save_IFS
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6983 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 break 2
6986 fi
6987 done
6988 done
6989 IFS=$as_save_IFS
6990
6991 fi
6992 fi
6993 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6994 if test -n "$ac_ct_DSYMUTIL"; then
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6996 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6997 else
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6999 $as_echo "no" >&6; }
7000 fi
7001
7002 if test "x$ac_ct_DSYMUTIL" = x; then
7003 DSYMUTIL=":"
7004 else
7005 case $cross_compiling:$ac_tool_warned in
7006 yes:)
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7009 ac_tool_warned=yes ;;
7010 esac
7011 DSYMUTIL=$ac_ct_DSYMUTIL
7012 fi
7013 else
7014 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7015 fi
7016
7017 if test -n "$ac_tool_prefix"; then
7018 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7019 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021 $as_echo_n "checking for $ac_word... " >&6; }
7022 if ${ac_cv_prog_NMEDIT+:} false; then :
7023 $as_echo_n "(cached) " >&6
7024 else
7025 if test -n "$NMEDIT"; then
7026 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7027 else
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7030 do
7031 IFS=$as_save_IFS
7032 test -z "$as_dir" && as_dir=.
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 break 2
7038 fi
7039 done
7040 done
7041 IFS=$as_save_IFS
7042
7043 fi
7044 fi
7045 NMEDIT=$ac_cv_prog_NMEDIT
7046 if test -n "$NMEDIT"; then
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7048 $as_echo "$NMEDIT" >&6; }
7049 else
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051 $as_echo "no" >&6; }
7052 fi
7053
7054
7055 fi
7056 if test -z "$ac_cv_prog_NMEDIT"; then
7057 ac_ct_NMEDIT=$NMEDIT
7058 # Extract the first word of "nmedit", so it can be a program name with args.
7059 set dummy nmedit; ac_word=$2
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061 $as_echo_n "checking for $ac_word... " >&6; }
7062 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7063 $as_echo_n "(cached) " >&6
7064 else
7065 if test -n "$ac_ct_NMEDIT"; then
7066 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7067 else
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7070 do
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7075 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 break 2
7078 fi
7079 done
7080 done
7081 IFS=$as_save_IFS
7082
7083 fi
7084 fi
7085 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7086 if test -n "$ac_ct_NMEDIT"; then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7088 $as_echo "$ac_ct_NMEDIT" >&6; }
7089 else
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091 $as_echo "no" >&6; }
7092 fi
7093
7094 if test "x$ac_ct_NMEDIT" = x; then
7095 NMEDIT=":"
7096 else
7097 case $cross_compiling:$ac_tool_warned in
7098 yes:)
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7101 ac_tool_warned=yes ;;
7102 esac
7103 NMEDIT=$ac_ct_NMEDIT
7104 fi
7105 else
7106 NMEDIT="$ac_cv_prog_NMEDIT"
7107 fi
7108
7109 if test -n "$ac_tool_prefix"; then
7110 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7111 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113 $as_echo_n "checking for $ac_word... " >&6; }
7114 if ${ac_cv_prog_LIPO+:} false; then :
7115 $as_echo_n "(cached) " >&6
7116 else
7117 if test -n "$LIPO"; then
7118 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7119 else
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7122 do
7123 IFS=$as_save_IFS
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 break 2
7130 fi
7131 done
7132 done
7133 IFS=$as_save_IFS
7134
7135 fi
7136 fi
7137 LIPO=$ac_cv_prog_LIPO
7138 if test -n "$LIPO"; then
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7140 $as_echo "$LIPO" >&6; }
7141 else
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 $as_echo "no" >&6; }
7144 fi
7145
7146
7147 fi
7148 if test -z "$ac_cv_prog_LIPO"; then
7149 ac_ct_LIPO=$LIPO
7150 # Extract the first word of "lipo", so it can be a program name with args.
7151 set dummy lipo; ac_word=$2
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153 $as_echo_n "checking for $ac_word... " >&6; }
7154 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7155 $as_echo_n "(cached) " >&6
7156 else
7157 if test -n "$ac_ct_LIPO"; then
7158 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7159 else
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7162 do
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7167 ac_cv_prog_ac_ct_LIPO="lipo"
7168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 break 2
7170 fi
7171 done
7172 done
7173 IFS=$as_save_IFS
7174
7175 fi
7176 fi
7177 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7178 if test -n "$ac_ct_LIPO"; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7180 $as_echo "$ac_ct_LIPO" >&6; }
7181 else
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 $as_echo "no" >&6; }
7184 fi
7185
7186 if test "x$ac_ct_LIPO" = x; then
7187 LIPO=":"
7188 else
7189 case $cross_compiling:$ac_tool_warned in
7190 yes:)
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7193 ac_tool_warned=yes ;;
7194 esac
7195 LIPO=$ac_ct_LIPO
7196 fi
7197 else
7198 LIPO="$ac_cv_prog_LIPO"
7199 fi
7200
7201 if test -n "$ac_tool_prefix"; then
7202 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7203 set dummy ${ac_tool_prefix}otool; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if ${ac_cv_prog_OTOOL+:} false; then :
7207 $as_echo_n "(cached) " >&6
7208 else
7209 if test -n "$OTOOL"; then
7210 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7211 else
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 break 2
7222 fi
7223 done
7224 done
7225 IFS=$as_save_IFS
7226
7227 fi
7228 fi
7229 OTOOL=$ac_cv_prog_OTOOL
7230 if test -n "$OTOOL"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7232 $as_echo "$OTOOL" >&6; }
7233 else
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7236 fi
7237
7238
7239 fi
7240 if test -z "$ac_cv_prog_OTOOL"; then
7241 ac_ct_OTOOL=$OTOOL
7242 # Extract the first word of "otool", so it can be a program name with args.
7243 set dummy otool; ac_word=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7247 $as_echo_n "(cached) " >&6
7248 else
7249 if test -n "$ac_ct_OTOOL"; then
7250 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7251 else
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7254 do
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7259 ac_cv_prog_ac_ct_OTOOL="otool"
7260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7262 fi
7263 done
7264 done
7265 IFS=$as_save_IFS
7266
7267 fi
7268 fi
7269 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7270 if test -n "$ac_ct_OTOOL"; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7272 $as_echo "$ac_ct_OTOOL" >&6; }
7273 else
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7276 fi
7277
7278 if test "x$ac_ct_OTOOL" = x; then
7279 OTOOL=":"
7280 else
7281 case $cross_compiling:$ac_tool_warned in
7282 yes:)
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285 ac_tool_warned=yes ;;
7286 esac
7287 OTOOL=$ac_ct_OTOOL
7288 fi
7289 else
7290 OTOOL="$ac_cv_prog_OTOOL"
7291 fi
7292
7293 if test -n "$ac_tool_prefix"; then
7294 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7295 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_prog_OTOOL64+:} false; then :
7299 $as_echo_n "(cached) " >&6
7300 else
7301 if test -n "$OTOOL64"; then
7302 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7303 else
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307 IFS=$as_save_IFS
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 break 2
7314 fi
7315 done
7316 done
7317 IFS=$as_save_IFS
7318
7319 fi
7320 fi
7321 OTOOL64=$ac_cv_prog_OTOOL64
7322 if test -n "$OTOOL64"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7324 $as_echo "$OTOOL64" >&6; }
7325 else
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7328 fi
7329
7330
7331 fi
7332 if test -z "$ac_cv_prog_OTOOL64"; then
7333 ac_ct_OTOOL64=$OTOOL64
7334 # Extract the first word of "otool64", so it can be a program name with args.
7335 set dummy otool64; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 if test -n "$ac_ct_OTOOL64"; then
7342 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351 ac_cv_prog_ac_ct_OTOOL64="otool64"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7354 fi
7355 done
7356 done
7357 IFS=$as_save_IFS
7358
7359 fi
7360 fi
7361 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7362 if test -n "$ac_ct_OTOOL64"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7364 $as_echo "$ac_ct_OTOOL64" >&6; }
7365 else
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370 if test "x$ac_ct_OTOOL64" = x; then
7371 OTOOL64=":"
7372 else
7373 case $cross_compiling:$ac_tool_warned in
7374 yes:)
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7377 ac_tool_warned=yes ;;
7378 esac
7379 OTOOL64=$ac_ct_OTOOL64
7380 fi
7381 else
7382 OTOOL64="$ac_cv_prog_OTOOL64"
7383 fi
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7412 $as_echo_n "checking for -single_module linker flag... " >&6; }
7413 if ${lt_cv_apple_cc_single_mod+:} false; then :
7414 $as_echo_n "(cached) " >&6
7415 else
7416 lt_cv_apple_cc_single_mod=no
7417 if test -z "${LT_MULTI_MODULE}"; then
7418 # By default we will add the -single_module flag. You can override
7419 # by either setting the environment variable LT_MULTI_MODULE
7420 # non-empty at configure time, or by adding -multi_module to the
7421 # link flags.
7422 rm -rf libconftest.dylib*
7423 echo "int foo(void){return 1;}" > conftest.c
7424 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7425 -dynamiclib -Wl,-single_module conftest.c" >&5
7426 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7427 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7428 _lt_result=$?
7429 # If there is a non-empty error log, and "single_module"
7430 # appears in it, assume the flag caused a linker warning
7431 if test -s conftest.err && $GREP single_module conftest.err; then
7432 cat conftest.err >&5
7433 # Otherwise, if the output was created with a 0 exit code from
7434 # the compiler, it worked.
7435 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7436 lt_cv_apple_cc_single_mod=yes
7437 else
7438 cat conftest.err >&5
7439 fi
7440 rm -rf libconftest.dylib*
7441 rm -f conftest.*
7442 fi
7443 fi
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7445 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7446
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7448 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7449 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7450 $as_echo_n "(cached) " >&6
7451 else
7452 lt_cv_ld_exported_symbols_list=no
7453 save_LDFLAGS=$LDFLAGS
7454 echo "_main" > conftest.sym
7455 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h. */
7458
7459 int
7460 main ()
7461 {
7462
7463 ;
7464 return 0;
7465 }
7466 _ACEOF
7467 if ac_fn_c_try_link "$LINENO"; then :
7468 lt_cv_ld_exported_symbols_list=yes
7469 else
7470 lt_cv_ld_exported_symbols_list=no
7471 fi
7472 rm -f core conftest.err conftest.$ac_objext \
7473 conftest$ac_exeext conftest.$ac_ext
7474 LDFLAGS="$save_LDFLAGS"
7475
7476 fi
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7478 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7479
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7481 $as_echo_n "checking for -force_load linker flag... " >&6; }
7482 if ${lt_cv_ld_force_load+:} false; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485 lt_cv_ld_force_load=no
7486 cat > conftest.c << _LT_EOF
7487 int forced_loaded() { return 2;}
7488 _LT_EOF
7489 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7490 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7491 echo "$AR cru libconftest.a conftest.o" >&5
7492 $AR cru libconftest.a conftest.o 2>&5
7493 echo "$RANLIB libconftest.a" >&5
7494 $RANLIB libconftest.a 2>&5
7495 cat > conftest.c << _LT_EOF
7496 int main() { return 0;}
7497 _LT_EOF
7498 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7499 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7500 _lt_result=$?
7501 if test -s conftest.err && $GREP force_load conftest.err; then
7502 cat conftest.err >&5
7503 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7504 lt_cv_ld_force_load=yes
7505 else
7506 cat conftest.err >&5
7507 fi
7508 rm -f conftest.err libconftest.a conftest conftest.c
7509 rm -rf conftest.dSYM
7510
7511 fi
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7513 $as_echo "$lt_cv_ld_force_load" >&6; }
7514 case $host_os in
7515 rhapsody* | darwin1.[012])
7516 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7517 darwin1.*)
7518 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7519 darwin*) # darwin 5.x on
7520 # if running on 10.5 or later, the deployment target defaults
7521 # to the OS version, if on x86, and 10.4, the deployment
7522 # target defaults to 10.4. Don't you love it?
7523 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7524 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7525 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7526 10.[012]*)
7527 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7528 10.*)
7529 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7530 esac
7531 ;;
7532 esac
7533 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7534 _lt_dar_single_mod='$single_module'
7535 fi
7536 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7537 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7538 else
7539 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7540 fi
7541 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7542 _lt_dsymutil='~$DSYMUTIL $lib || :'
7543 else
7544 _lt_dsymutil=
7545 fi
7546 ;;
7547 esac
7548
7549 ac_ext=c
7550 ac_cpp='$CPP $CPPFLAGS'
7551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7555 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7556 # On Suns, sometimes $CPP names a directory.
7557 if test -n "$CPP" && test -d "$CPP"; then
7558 CPP=
7559 fi
7560 if test -z "$CPP"; then
7561 if ${ac_cv_prog_CPP+:} false; then :
7562 $as_echo_n "(cached) " >&6
7563 else
7564 # Double quotes because CPP needs to be expanded
7565 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7566 do
7567 ac_preproc_ok=false
7568 for ac_c_preproc_warn_flag in '' yes
7569 do
7570 # Use a header file that comes with gcc, so configuring glibc
7571 # with a fresh cross-compiler works.
7572 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7573 # <limits.h> exists even on freestanding compilers.
7574 # On the NeXT, cc -E runs the code through the compiler's parser,
7575 # not just through cpp. "Syntax error" is here to catch this case.
7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577 /* end confdefs.h. */
7578 #ifdef __STDC__
7579 # include <limits.h>
7580 #else
7581 # include <assert.h>
7582 #endif
7583 Syntax error
7584 _ACEOF
7585 if ac_fn_c_try_cpp "$LINENO"; then :
7586
7587 else
7588 # Broken: fails on valid input.
7589 continue
7590 fi
7591 rm -f conftest.err conftest.i conftest.$ac_ext
7592
7593 # OK, works on sane cases. Now check whether nonexistent headers
7594 # can be detected and how.
7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h. */
7597 #include <ac_nonexistent.h>
7598 _ACEOF
7599 if ac_fn_c_try_cpp "$LINENO"; then :
7600 # Broken: success on invalid input.
7601 continue
7602 else
7603 # Passes both tests.
7604 ac_preproc_ok=:
7605 break
7606 fi
7607 rm -f conftest.err conftest.i conftest.$ac_ext
7608
7609 done
7610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7611 rm -f conftest.i conftest.err conftest.$ac_ext
7612 if $ac_preproc_ok; then :
7613 break
7614 fi
7615
7616 done
7617 ac_cv_prog_CPP=$CPP
7618
7619 fi
7620 CPP=$ac_cv_prog_CPP
7621 else
7622 ac_cv_prog_CPP=$CPP
7623 fi
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7625 $as_echo "$CPP" >&6; }
7626 ac_preproc_ok=false
7627 for ac_c_preproc_warn_flag in '' yes
7628 do
7629 # Use a header file that comes with gcc, so configuring glibc
7630 # with a fresh cross-compiler works.
7631 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7632 # <limits.h> exists even on freestanding compilers.
7633 # On the NeXT, cc -E runs the code through the compiler's parser,
7634 # not just through cpp. "Syntax error" is here to catch this case.
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h. */
7637 #ifdef __STDC__
7638 # include <limits.h>
7639 #else
7640 # include <assert.h>
7641 #endif
7642 Syntax error
7643 _ACEOF
7644 if ac_fn_c_try_cpp "$LINENO"; then :
7645
7646 else
7647 # Broken: fails on valid input.
7648 continue
7649 fi
7650 rm -f conftest.err conftest.i conftest.$ac_ext
7651
7652 # OK, works on sane cases. Now check whether nonexistent headers
7653 # can be detected and how.
7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655 /* end confdefs.h. */
7656 #include <ac_nonexistent.h>
7657 _ACEOF
7658 if ac_fn_c_try_cpp "$LINENO"; then :
7659 # Broken: success on invalid input.
7660 continue
7661 else
7662 # Passes both tests.
7663 ac_preproc_ok=:
7664 break
7665 fi
7666 rm -f conftest.err conftest.i conftest.$ac_ext
7667
7668 done
7669 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7670 rm -f conftest.i conftest.err conftest.$ac_ext
7671 if $ac_preproc_ok; then :
7672
7673 else
7674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7676 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7677 See \`config.log' for more details" "$LINENO" 5; }
7678 fi
7679
7680 ac_ext=c
7681 ac_cpp='$CPP $CPPFLAGS'
7682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7685
7686
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7688 $as_echo_n "checking for ANSI C header files... " >&6; }
7689 if ${ac_cv_header_stdc+:} false; then :
7690 $as_echo_n "(cached) " >&6
7691 else
7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7694 #include <stdlib.h>
7695 #include <stdarg.h>
7696 #include <string.h>
7697 #include <float.h>
7698
7699 int
7700 main ()
7701 {
7702
7703 ;
7704 return 0;
7705 }
7706 _ACEOF
7707 if ac_fn_c_try_compile "$LINENO"; then :
7708 ac_cv_header_stdc=yes
7709 else
7710 ac_cv_header_stdc=no
7711 fi
7712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7713
7714 if test $ac_cv_header_stdc = yes; then
7715 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7718 #include <string.h>
7719
7720 _ACEOF
7721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7722 $EGREP "memchr" >/dev/null 2>&1; then :
7723
7724 else
7725 ac_cv_header_stdc=no
7726 fi
7727 rm -f conftest*
7728
7729 fi
7730
7731 if test $ac_cv_header_stdc = yes; then
7732 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734 /* end confdefs.h. */
7735 #include <stdlib.h>
7736
7737 _ACEOF
7738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7739 $EGREP "free" >/dev/null 2>&1; then :
7740
7741 else
7742 ac_cv_header_stdc=no
7743 fi
7744 rm -f conftest*
7745
7746 fi
7747
7748 if test $ac_cv_header_stdc = yes; then
7749 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7750 if test "$cross_compiling" = yes; then :
7751 :
7752 else
7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7754 /* end confdefs.h. */
7755 #include <ctype.h>
7756 #include <stdlib.h>
7757 #if ((' ' & 0x0FF) == 0x020)
7758 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7759 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7760 #else
7761 # define ISLOWER(c) \
7762 (('a' <= (c) && (c) <= 'i') \
7763 || ('j' <= (c) && (c) <= 'r') \
7764 || ('s' <= (c) && (c) <= 'z'))
7765 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7766 #endif
7767
7768 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7769 int
7770 main ()
7771 {
7772 int i;
7773 for (i = 0; i < 256; i++)
7774 if (XOR (islower (i), ISLOWER (i))
7775 || toupper (i) != TOUPPER (i))
7776 return 2;
7777 return 0;
7778 }
7779 _ACEOF
7780 if ac_fn_c_try_run "$LINENO"; then :
7781
7782 else
7783 ac_cv_header_stdc=no
7784 fi
7785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7786 conftest.$ac_objext conftest.beam conftest.$ac_ext
7787 fi
7788
7789 fi
7790 fi
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7792 $as_echo "$ac_cv_header_stdc" >&6; }
7793 if test $ac_cv_header_stdc = yes; then
7794
7795 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7796
7797 fi
7798
7799 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7800 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7801 inttypes.h stdint.h unistd.h
7802 do :
7803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7804 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7805 "
7806 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7807 cat >>confdefs.h <<_ACEOF
7808 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7809 _ACEOF
7810
7811 fi
7812
7813 done
7814
7815
7816 for ac_header in dlfcn.h
7817 do :
7818 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7819 "
7820 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7821 cat >>confdefs.h <<_ACEOF
7822 #define HAVE_DLFCN_H 1
7823 _ACEOF
7824
7825 fi
7826
7827 done
7828
7829
7830
7831
7832
7833 # Set options
7834 enable_win32_dll=yes
7835
7836 case $host in
7837 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7838 if test -n "$ac_tool_prefix"; then
7839 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7840 set dummy ${ac_tool_prefix}as; ac_word=$2
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7842 $as_echo_n "checking for $ac_word... " >&6; }
7843 if ${ac_cv_prog_AS+:} false; then :
7844 $as_echo_n "(cached) " >&6
7845 else
7846 if test -n "$AS"; then
7847 ac_cv_prog_AS="$AS" # Let the user override the test.
7848 else
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 for as_dir in $PATH
7851 do
7852 IFS=$as_save_IFS
7853 test -z "$as_dir" && as_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7856 ac_cv_prog_AS="${ac_tool_prefix}as"
7857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7858 break 2
7859 fi
7860 done
7861 done
7862 IFS=$as_save_IFS
7863
7864 fi
7865 fi
7866 AS=$ac_cv_prog_AS
7867 if test -n "$AS"; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7869 $as_echo "$AS" >&6; }
7870 else
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872 $as_echo "no" >&6; }
7873 fi
7874
7875
7876 fi
7877 if test -z "$ac_cv_prog_AS"; then
7878 ac_ct_AS=$AS
7879 # Extract the first word of "as", so it can be a program name with args.
7880 set dummy as; ac_word=$2
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7882 $as_echo_n "checking for $ac_word... " >&6; }
7883 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7884 $as_echo_n "(cached) " >&6
7885 else
7886 if test -n "$ac_ct_AS"; then
7887 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7888 else
7889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890 for as_dir in $PATH
7891 do
7892 IFS=$as_save_IFS
7893 test -z "$as_dir" && as_dir=.
7894 for ac_exec_ext in '' $ac_executable_extensions; do
7895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7896 ac_cv_prog_ac_ct_AS="as"
7897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7898 break 2
7899 fi
7900 done
7901 done
7902 IFS=$as_save_IFS
7903
7904 fi
7905 fi
7906 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7907 if test -n "$ac_ct_AS"; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7909 $as_echo "$ac_ct_AS" >&6; }
7910 else
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7913 fi
7914
7915 if test "x$ac_ct_AS" = x; then
7916 AS="false"
7917 else
7918 case $cross_compiling:$ac_tool_warned in
7919 yes:)
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7922 ac_tool_warned=yes ;;
7923 esac
7924 AS=$ac_ct_AS
7925 fi
7926 else
7927 AS="$ac_cv_prog_AS"
7928 fi
7929
7930 if test -n "$ac_tool_prefix"; then
7931 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7932 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934 $as_echo_n "checking for $ac_word... " >&6; }
7935 if ${ac_cv_prog_DLLTOOL+:} false; then :
7936 $as_echo_n "(cached) " >&6
7937 else
7938 if test -n "$DLLTOOL"; then
7939 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7940 else
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 for as_dir in $PATH
7943 do
7944 IFS=$as_save_IFS
7945 test -z "$as_dir" && as_dir=.
7946 for ac_exec_ext in '' $ac_executable_extensions; do
7947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7948 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950 break 2
7951 fi
7952 done
7953 done
7954 IFS=$as_save_IFS
7955
7956 fi
7957 fi
7958 DLLTOOL=$ac_cv_prog_DLLTOOL
7959 if test -n "$DLLTOOL"; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7961 $as_echo "$DLLTOOL" >&6; }
7962 else
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964 $as_echo "no" >&6; }
7965 fi
7966
7967
7968 fi
7969 if test -z "$ac_cv_prog_DLLTOOL"; then
7970 ac_ct_DLLTOOL=$DLLTOOL
7971 # Extract the first word of "dlltool", so it can be a program name with args.
7972 set dummy dlltool; ac_word=$2
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974 $as_echo_n "checking for $ac_word... " >&6; }
7975 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7976 $as_echo_n "(cached) " >&6
7977 else
7978 if test -n "$ac_ct_DLLTOOL"; then
7979 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7980 else
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 for as_dir in $PATH
7983 do
7984 IFS=$as_save_IFS
7985 test -z "$as_dir" && as_dir=.
7986 for ac_exec_ext in '' $ac_executable_extensions; do
7987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7988 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7990 break 2
7991 fi
7992 done
7993 done
7994 IFS=$as_save_IFS
7995
7996 fi
7997 fi
7998 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7999 if test -n "$ac_ct_DLLTOOL"; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8001 $as_echo "$ac_ct_DLLTOOL" >&6; }
8002 else
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8005 fi
8006
8007 if test "x$ac_ct_DLLTOOL" = x; then
8008 DLLTOOL="false"
8009 else
8010 case $cross_compiling:$ac_tool_warned in
8011 yes:)
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8014 ac_tool_warned=yes ;;
8015 esac
8016 DLLTOOL=$ac_ct_DLLTOOL
8017 fi
8018 else
8019 DLLTOOL="$ac_cv_prog_DLLTOOL"
8020 fi
8021
8022 if test -n "$ac_tool_prefix"; then
8023 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8024 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026 $as_echo_n "checking for $ac_word... " >&6; }
8027 if ${ac_cv_prog_OBJDUMP+:} false; then :
8028 $as_echo_n "(cached) " >&6
8029 else
8030 if test -n "$OBJDUMP"; then
8031 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8032 else
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 for as_dir in $PATH
8035 do
8036 IFS=$as_save_IFS
8037 test -z "$as_dir" && as_dir=.
8038 for ac_exec_ext in '' $ac_executable_extensions; do
8039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8040 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8042 break 2
8043 fi
8044 done
8045 done
8046 IFS=$as_save_IFS
8047
8048 fi
8049 fi
8050 OBJDUMP=$ac_cv_prog_OBJDUMP
8051 if test -n "$OBJDUMP"; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8053 $as_echo "$OBJDUMP" >&6; }
8054 else
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 $as_echo "no" >&6; }
8057 fi
8058
8059
8060 fi
8061 if test -z "$ac_cv_prog_OBJDUMP"; then
8062 ac_ct_OBJDUMP=$OBJDUMP
8063 # Extract the first word of "objdump", so it can be a program name with args.
8064 set dummy objdump; ac_word=$2
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066 $as_echo_n "checking for $ac_word... " >&6; }
8067 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8070 if test -n "$ac_ct_OBJDUMP"; then
8071 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8072 else
8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074 for as_dir in $PATH
8075 do
8076 IFS=$as_save_IFS
8077 test -z "$as_dir" && as_dir=.
8078 for ac_exec_ext in '' $ac_executable_extensions; do
8079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8080 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8082 break 2
8083 fi
8084 done
8085 done
8086 IFS=$as_save_IFS
8087
8088 fi
8089 fi
8090 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8091 if test -n "$ac_ct_OBJDUMP"; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8093 $as_echo "$ac_ct_OBJDUMP" >&6; }
8094 else
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8097 fi
8098
8099 if test "x$ac_ct_OBJDUMP" = x; then
8100 OBJDUMP="false"
8101 else
8102 case $cross_compiling:$ac_tool_warned in
8103 yes:)
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8106 ac_tool_warned=yes ;;
8107 esac
8108 OBJDUMP=$ac_ct_OBJDUMP
8109 fi
8110 else
8111 OBJDUMP="$ac_cv_prog_OBJDUMP"
8112 fi
8113
8114 ;;
8115 esac
8116
8117 test -z "$AS" && AS=as
8118
8119
8120
8121
8122
8123 test -z "$DLLTOOL" && DLLTOOL=dlltool
8124
8125
8126
8127
8128
8129 test -z "$OBJDUMP" && OBJDUMP=objdump
8130
8131
8132
8133
8134
8135
8136
8137 enable_dlopen=no
8138
8139
8140
8141 # Check whether --enable-shared was given.
8142 if test "${enable_shared+set}" = set; then :
8143 enableval=$enable_shared; p=${PACKAGE-default}
8144 case $enableval in
8145 yes) enable_shared=yes ;;
8146 no) enable_shared=no ;;
8147 *)
8148 enable_shared=no
8149 # Look at the argument we got. We use all the common list separators.
8150 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8151 for pkg in $enableval; do
8152 IFS="$lt_save_ifs"
8153 if test "X$pkg" = "X$p"; then
8154 enable_shared=yes
8155 fi
8156 done
8157 IFS="$lt_save_ifs"
8158 ;;
8159 esac
8160 else
8161 enable_shared=yes
8162 fi
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172 # Check whether --enable-static was given.
8173 if test "${enable_static+set}" = set; then :
8174 enableval=$enable_static; p=${PACKAGE-default}
8175 case $enableval in
8176 yes) enable_static=yes ;;
8177 no) enable_static=no ;;
8178 *)
8179 enable_static=no
8180 # Look at the argument we got. We use all the common list separators.
8181 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8182 for pkg in $enableval; do
8183 IFS="$lt_save_ifs"
8184 if test "X$pkg" = "X$p"; then
8185 enable_static=yes
8186 fi
8187 done
8188 IFS="$lt_save_ifs"
8189 ;;
8190 esac
8191 else
8192 enable_static=yes
8193 fi
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204 # Check whether --with-pic was given.
8205 if test "${with_pic+set}" = set; then :
8206 withval=$with_pic; lt_p=${PACKAGE-default}
8207 case $withval in
8208 yes|no) pic_mode=$withval ;;
8209 *)
8210 pic_mode=default
8211 # Look at the argument we got. We use all the common list separators.
8212 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8213 for lt_pkg in $withval; do
8214 IFS="$lt_save_ifs"
8215 if test "X$lt_pkg" = "X$lt_p"; then
8216 pic_mode=yes
8217 fi
8218 done
8219 IFS="$lt_save_ifs"
8220 ;;
8221 esac
8222 else
8223 pic_mode=default
8224 fi
8225
8226
8227 test -z "$pic_mode" && pic_mode=default
8228
8229
8230
8231
8232
8233
8234
8235 # Check whether --enable-fast-install was given.
8236 if test "${enable_fast_install+set}" = set; then :
8237 enableval=$enable_fast_install; p=${PACKAGE-default}
8238 case $enableval in
8239 yes) enable_fast_install=yes ;;
8240 no) enable_fast_install=no ;;
8241 *)
8242 enable_fast_install=no
8243 # Look at the argument we got. We use all the common list separators.
8244 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8245 for pkg in $enableval; do
8246 IFS="$lt_save_ifs"
8247 if test "X$pkg" = "X$p"; then
8248 enable_fast_install=yes
8249 fi
8250 done
8251 IFS="$lt_save_ifs"
8252 ;;
8253 esac
8254 else
8255 enable_fast_install=yes
8256 fi
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268 # This can be used to rebuild libtool when needed
8269 LIBTOOL_DEPS="$ltmain"
8270
8271 # Always use our own libtool.
8272 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303 test -z "$LN_S" && LN_S="ln -s"
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318 if test -n "${ZSH_VERSION+set}" ; then
8319 setopt NO_GLOB_SUBST
8320 fi
8321
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8323 $as_echo_n "checking for objdir... " >&6; }
8324 if ${lt_cv_objdir+:} false; then :
8325 $as_echo_n "(cached) " >&6
8326 else
8327 rm -f .libs 2>/dev/null
8328 mkdir .libs 2>/dev/null
8329 if test -d .libs; then
8330 lt_cv_objdir=.libs
8331 else
8332 # MS-DOS does not allow filenames that begin with a dot.
8333 lt_cv_objdir=_libs
8334 fi
8335 rmdir .libs 2>/dev/null
8336 fi
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8338 $as_echo "$lt_cv_objdir" >&6; }
8339 objdir=$lt_cv_objdir
8340
8341
8342
8343
8344
8345 cat >>confdefs.h <<_ACEOF
8346 #define LT_OBJDIR "$lt_cv_objdir/"
8347 _ACEOF
8348
8349
8350
8351
8352 case $host_os in
8353 aix3*)
8354 # AIX sometimes has problems with the GCC collect2 program. For some
8355 # reason, if we set the COLLECT_NAMES environment variable, the problems
8356 # vanish in a puff of smoke.
8357 if test "X${COLLECT_NAMES+set}" != Xset; then
8358 COLLECT_NAMES=
8359 export COLLECT_NAMES
8360 fi
8361 ;;
8362 esac
8363
8364 # Global variables:
8365 ofile=libtool
8366 can_build_shared=yes
8367
8368 # All known linkers require a `.a' archive for static linking (except MSVC,
8369 # which needs '.lib').
8370 libext=a
8371
8372 with_gnu_ld="$lt_cv_prog_gnu_ld"
8373
8374 old_CC="$CC"
8375 old_CFLAGS="$CFLAGS"
8376
8377 # Set sane defaults for various variables
8378 test -z "$CC" && CC=cc
8379 test -z "$LTCC" && LTCC=$CC
8380 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8381 test -z "$LD" && LD=ld
8382 test -z "$ac_objext" && ac_objext=o
8383
8384 for cc_temp in $compiler""; do
8385 case $cc_temp in
8386 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8387 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8388 \-*) ;;
8389 *) break;;
8390 esac
8391 done
8392 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8393
8394
8395 # Only perform the check for file, if the check method requires it
8396 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8397 case $deplibs_check_method in
8398 file_magic*)
8399 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8401 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8402 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8403 $as_echo_n "(cached) " >&6
8404 else
8405 case $MAGIC_CMD in
8406 [\\/*] | ?:[\\/]*)
8407 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8408 ;;
8409 *)
8410 lt_save_MAGIC_CMD="$MAGIC_CMD"
8411 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8412 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8413 for ac_dir in $ac_dummy; do
8414 IFS="$lt_save_ifs"
8415 test -z "$ac_dir" && ac_dir=.
8416 if test -f $ac_dir/${ac_tool_prefix}file; then
8417 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8418 if test -n "$file_magic_test_file"; then
8419 case $deplibs_check_method in
8420 "file_magic "*)
8421 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8422 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8423 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8424 $EGREP "$file_magic_regex" > /dev/null; then
8425 :
8426 else
8427 cat <<_LT_EOF 1>&2
8428
8429 *** Warning: the command libtool uses to detect shared libraries,
8430 *** $file_magic_cmd, produces output that libtool cannot recognize.
8431 *** The result is that libtool may fail to recognize shared libraries
8432 *** as such. This will affect the creation of libtool libraries that
8433 *** depend on shared libraries, but programs linked with such libtool
8434 *** libraries will work regardless of this problem. Nevertheless, you
8435 *** may want to report the problem to your system manager and/or to
8436 *** [email protected]
8437
8438 _LT_EOF
8439 fi ;;
8440 esac
8441 fi
8442 break
8443 fi
8444 done
8445 IFS="$lt_save_ifs"
8446 MAGIC_CMD="$lt_save_MAGIC_CMD"
8447 ;;
8448 esac
8449 fi
8450
8451 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8452 if test -n "$MAGIC_CMD"; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8454 $as_echo "$MAGIC_CMD" >&6; }
8455 else
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457 $as_echo "no" >&6; }
8458 fi
8459
8460
8461
8462
8463
8464 if test -z "$lt_cv_path_MAGIC_CMD"; then
8465 if test -n "$ac_tool_prefix"; then
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8467 $as_echo_n "checking for file... " >&6; }
8468 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8471 case $MAGIC_CMD in
8472 [\\/*] | ?:[\\/]*)
8473 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8474 ;;
8475 *)
8476 lt_save_MAGIC_CMD="$MAGIC_CMD"
8477 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8478 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8479 for ac_dir in $ac_dummy; do
8480 IFS="$lt_save_ifs"
8481 test -z "$ac_dir" && ac_dir=.
8482 if test -f $ac_dir/file; then
8483 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8484 if test -n "$file_magic_test_file"; then
8485 case $deplibs_check_method in
8486 "file_magic "*)
8487 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8488 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8489 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8490 $EGREP "$file_magic_regex" > /dev/null; then
8491 :
8492 else
8493 cat <<_LT_EOF 1>&2
8494
8495 *** Warning: the command libtool uses to detect shared libraries,
8496 *** $file_magic_cmd, produces output that libtool cannot recognize.
8497 *** The result is that libtool may fail to recognize shared libraries
8498 *** as such. This will affect the creation of libtool libraries that
8499 *** depend on shared libraries, but programs linked with such libtool
8500 *** libraries will work regardless of this problem. Nevertheless, you
8501 *** may want to report the problem to your system manager and/or to
8502 *** [email protected]
8503
8504 _LT_EOF
8505 fi ;;
8506 esac
8507 fi
8508 break
8509 fi
8510 done
8511 IFS="$lt_save_ifs"
8512 MAGIC_CMD="$lt_save_MAGIC_CMD"
8513 ;;
8514 esac
8515 fi
8516
8517 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8518 if test -n "$MAGIC_CMD"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8520 $as_echo "$MAGIC_CMD" >&6; }
8521 else
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523 $as_echo "no" >&6; }
8524 fi
8525
8526
8527 else
8528 MAGIC_CMD=:
8529 fi
8530 fi
8531
8532 fi
8533 ;;
8534 esac
8535
8536 # Use C for the default configuration in the libtool script
8537
8538 lt_save_CC="$CC"
8539 ac_ext=c
8540 ac_cpp='$CPP $CPPFLAGS'
8541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8544
8545
8546 # Source file extension for C test sources.
8547 ac_ext=c
8548
8549 # Object file extension for compiled C test sources.
8550 objext=o
8551 objext=$objext
8552
8553 # Code to be used in simple compile tests
8554 lt_simple_compile_test_code="int some_variable = 0;"
8555
8556 # Code to be used in simple link tests
8557 lt_simple_link_test_code='int main(){return(0);}'
8558
8559
8560
8561
8562
8563
8564
8565 # If no C compiler was specified, use CC.
8566 LTCC=${LTCC-"$CC"}
8567
8568 # If no C compiler flags were specified, use CFLAGS.
8569 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8570
8571 # Allow CC to be a program name with arguments.
8572 compiler=$CC
8573
8574 # Save the default compiler, since it gets overwritten when the other
8575 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8576 compiler_DEFAULT=$CC
8577
8578 # save warnings/boilerplate of simple test code
8579 ac_outfile=conftest.$ac_objext
8580 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8581 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8582 _lt_compiler_boilerplate=`cat conftest.err`
8583 $RM conftest*
8584
8585 ac_outfile=conftest.$ac_objext
8586 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8587 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8588 _lt_linker_boilerplate=`cat conftest.err`
8589 $RM -r conftest*
8590
8591
8592 ## CAVEAT EMPTOR:
8593 ## There is no encapsulation within the following macros, do not change
8594 ## the running order or otherwise move them around unless you know exactly
8595 ## what you are doing...
8596 if test -n "$compiler"; then
8597
8598 lt_prog_compiler_no_builtin_flag=
8599
8600 if test "$GCC" = yes; then
8601 case $cc_basename in
8602 nvcc*)
8603 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8604 *)
8605 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8606 esac
8607
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8609 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8610 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8611 $as_echo_n "(cached) " >&6
8612 else
8613 lt_cv_prog_compiler_rtti_exceptions=no
8614 ac_outfile=conftest.$ac_objext
8615 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8616 lt_compiler_flag="-fno-rtti -fno-exceptions"
8617 # Insert the option either (1) after the last *FLAGS variable, or
8618 # (2) before a word containing "conftest.", or (3) at the end.
8619 # Note that $ac_compile itself does not contain backslashes and begins
8620 # with a dollar sign (not a hyphen), so the echo should work correctly.
8621 # The option is referenced via a variable to avoid confusing sed.
8622 lt_compile=`echo "$ac_compile" | $SED \
8623 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8625 -e 's:$: $lt_compiler_flag:'`
8626 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8627 (eval "$lt_compile" 2>conftest.err)
8628 ac_status=$?
8629 cat conftest.err >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 if (exit $ac_status) && test -s "$ac_outfile"; then
8632 # The compiler can only warn and ignore the option if not recognized
8633 # So say no if there are warnings other than the usual output.
8634 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8635 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8636 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8637 lt_cv_prog_compiler_rtti_exceptions=yes
8638 fi
8639 fi
8640 $RM conftest*
8641
8642 fi
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8644 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8645
8646 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8647 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8648 else
8649 :
8650 fi
8651
8652 fi
8653
8654
8655
8656
8657
8658
8659 lt_prog_compiler_wl=
8660 lt_prog_compiler_pic=
8661 lt_prog_compiler_static=
8662
8663
8664 if test "$GCC" = yes; then
8665 lt_prog_compiler_wl='-Wl,'
8666 lt_prog_compiler_static='-static'
8667
8668 case $host_os in
8669 aix*)
8670 # All AIX code is PIC.
8671 if test "$host_cpu" = ia64; then
8672 # AIX 5 now supports IA64 processor
8673 lt_prog_compiler_static='-Bstatic'
8674 fi
8675 ;;
8676
8677 amigaos*)
8678 case $host_cpu in
8679 powerpc)
8680 # see comment about AmigaOS4 .so support
8681 lt_prog_compiler_pic='-fPIC'
8682 ;;
8683 m68k)
8684 # FIXME: we need at least 68020 code to build shared libraries, but
8685 # adding the `-m68020' flag to GCC prevents building anything better,
8686 # like `-m68040'.
8687 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8688 ;;
8689 esac
8690 ;;
8691
8692 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8693 # PIC is the default for these OSes.
8694 ;;
8695
8696 mingw* | cygwin* | pw32* | os2* | cegcc*)
8697 # This hack is so that the source file can tell whether it is being
8698 # built for inclusion in a dll (and should export symbols for example).
8699 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8700 # (--disable-auto-import) libraries
8701 lt_prog_compiler_pic='-DDLL_EXPORT'
8702 ;;
8703
8704 darwin* | rhapsody*)
8705 # PIC is the default on this platform
8706 # Common symbols not allowed in MH_DYLIB files
8707 lt_prog_compiler_pic='-fno-common'
8708 ;;
8709
8710 haiku*)
8711 # PIC is the default for Haiku.
8712 # The "-static" flag exists, but is broken.
8713 lt_prog_compiler_static=
8714 ;;
8715
8716 hpux*)
8717 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8718 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8719 # sets the default TLS model and affects inlining.
8720 case $host_cpu in
8721 hppa*64*)
8722 # +Z the default
8723 ;;
8724 *)
8725 lt_prog_compiler_pic='-fPIC'
8726 ;;
8727 esac
8728 ;;
8729
8730 interix[3-9]*)
8731 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8732 # Instead, we relocate shared libraries at runtime.
8733 ;;
8734
8735 msdosdjgpp*)
8736 # Just because we use GCC doesn't mean we suddenly get shared libraries
8737 # on systems that don't support them.
8738 lt_prog_compiler_can_build_shared=no
8739 enable_shared=no
8740 ;;
8741
8742 *nto* | *qnx*)
8743 # QNX uses GNU C++, but need to define -shared option too, otherwise
8744 # it will coredump.
8745 lt_prog_compiler_pic='-fPIC -shared'
8746 ;;
8747
8748 sysv4*MP*)
8749 if test -d /usr/nec; then
8750 lt_prog_compiler_pic=-Kconform_pic
8751 fi
8752 ;;
8753
8754 *)
8755 lt_prog_compiler_pic='-fPIC'
8756 ;;
8757 esac
8758
8759 case $cc_basename in
8760 nvcc*) # Cuda Compiler Driver 2.2
8761 lt_prog_compiler_wl='-Xlinker '
8762 if test -n "$lt_prog_compiler_pic"; then
8763 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8764 fi
8765 ;;
8766 esac
8767 else
8768 # PORTME Check for flag to pass linker flags through the system compiler.
8769 case $host_os in
8770 aix*)
8771 lt_prog_compiler_wl='-Wl,'
8772 if test "$host_cpu" = ia64; then
8773 # AIX 5 now supports IA64 processor
8774 lt_prog_compiler_static='-Bstatic'
8775 else
8776 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8777 fi
8778 ;;
8779
8780 mingw* | cygwin* | pw32* | os2* | cegcc*)
8781 # This hack is so that the source file can tell whether it is being
8782 # built for inclusion in a dll (and should export symbols for example).
8783 lt_prog_compiler_pic='-DDLL_EXPORT'
8784 ;;
8785
8786 hpux9* | hpux10* | hpux11*)
8787 lt_prog_compiler_wl='-Wl,'
8788 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8789 # not for PA HP-UX.
8790 case $host_cpu in
8791 hppa*64*|ia64*)
8792 # +Z the default
8793 ;;
8794 *)
8795 lt_prog_compiler_pic='+Z'
8796 ;;
8797 esac
8798 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8799 lt_prog_compiler_static='${wl}-a ${wl}archive'
8800 ;;
8801
8802 irix5* | irix6* | nonstopux*)
8803 lt_prog_compiler_wl='-Wl,'
8804 # PIC (with -KPIC) is the default.
8805 lt_prog_compiler_static='-non_shared'
8806 ;;
8807
8808 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8809 case $cc_basename in
8810 # old Intel for x86_64 which still supported -KPIC.
8811 ecc*)
8812 lt_prog_compiler_wl='-Wl,'
8813 lt_prog_compiler_pic='-KPIC'
8814 lt_prog_compiler_static='-static'
8815 ;;
8816 # icc used to be incompatible with GCC.
8817 # ICC 10 doesn't accept -KPIC any more.
8818 icc* | ifort*)
8819 lt_prog_compiler_wl='-Wl,'
8820 lt_prog_compiler_pic='-fPIC'
8821 lt_prog_compiler_static='-static'
8822 ;;
8823 # Lahey Fortran 8.1.
8824 lf95*)
8825 lt_prog_compiler_wl='-Wl,'
8826 lt_prog_compiler_pic='--shared'
8827 lt_prog_compiler_static='--static'
8828 ;;
8829 nagfor*)
8830 # NAG Fortran compiler
8831 lt_prog_compiler_wl='-Wl,-Wl,,'
8832 lt_prog_compiler_pic='-PIC'
8833 lt_prog_compiler_static='-Bstatic'
8834 ;;
8835 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8836 # Portland Group compilers (*not* the Pentium gcc compiler,
8837 # which looks to be a dead project)
8838 lt_prog_compiler_wl='-Wl,'
8839 lt_prog_compiler_pic='-fpic'
8840 lt_prog_compiler_static='-Bstatic'
8841 ;;
8842 ccc*)
8843 lt_prog_compiler_wl='-Wl,'
8844 # All Alpha code is PIC.
8845 lt_prog_compiler_static='-non_shared'
8846 ;;
8847 xl* | bgxl* | bgf* | mpixl*)
8848 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8849 lt_prog_compiler_wl='-Wl,'
8850 lt_prog_compiler_pic='-qpic'
8851 lt_prog_compiler_static='-qstaticlink'
8852 ;;
8853 *)
8854 case `$CC -V 2>&1 | sed 5q` in
8855 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8856 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8857 lt_prog_compiler_pic='-KPIC'
8858 lt_prog_compiler_static='-Bstatic'
8859 lt_prog_compiler_wl=''
8860 ;;
8861 *Sun\ F* | *Sun*Fortran*)
8862 lt_prog_compiler_pic='-KPIC'
8863 lt_prog_compiler_static='-Bstatic'
8864 lt_prog_compiler_wl='-Qoption ld '
8865 ;;
8866 *Sun\ C*)
8867 # Sun C 5.9
8868 lt_prog_compiler_pic='-KPIC'
8869 lt_prog_compiler_static='-Bstatic'
8870 lt_prog_compiler_wl='-Wl,'
8871 ;;
8872 *Intel*\ [CF]*Compiler*)
8873 lt_prog_compiler_wl='-Wl,'
8874 lt_prog_compiler_pic='-fPIC'
8875 lt_prog_compiler_static='-static'
8876 ;;
8877 *Portland\ Group*)
8878 lt_prog_compiler_wl='-Wl,'
8879 lt_prog_compiler_pic='-fpic'
8880 lt_prog_compiler_static='-Bstatic'
8881 ;;
8882 esac
8883 ;;
8884 esac
8885 ;;
8886
8887 newsos6)
8888 lt_prog_compiler_pic='-KPIC'
8889 lt_prog_compiler_static='-Bstatic'
8890 ;;
8891
8892 *nto* | *qnx*)
8893 # QNX uses GNU C++, but need to define -shared option too, otherwise
8894 # it will coredump.
8895 lt_prog_compiler_pic='-fPIC -shared'
8896 ;;
8897
8898 osf3* | osf4* | osf5*)
8899 lt_prog_compiler_wl='-Wl,'
8900 # All OSF/1 code is PIC.
8901 lt_prog_compiler_static='-non_shared'
8902 ;;
8903
8904 rdos*)
8905 lt_prog_compiler_static='-non_shared'
8906 ;;
8907
8908 solaris*)
8909 lt_prog_compiler_pic='-KPIC'
8910 lt_prog_compiler_static='-Bstatic'
8911 case $cc_basename in
8912 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8913 lt_prog_compiler_wl='-Qoption ld ';;
8914 *)
8915 lt_prog_compiler_wl='-Wl,';;
8916 esac
8917 ;;
8918
8919 sunos4*)
8920 lt_prog_compiler_wl='-Qoption ld '
8921 lt_prog_compiler_pic='-PIC'
8922 lt_prog_compiler_static='-Bstatic'
8923 ;;
8924
8925 sysv4 | sysv4.2uw2* | sysv4.3*)
8926 lt_prog_compiler_wl='-Wl,'
8927 lt_prog_compiler_pic='-KPIC'
8928 lt_prog_compiler_static='-Bstatic'
8929 ;;
8930
8931 sysv4*MP*)
8932 if test -d /usr/nec ;then
8933 lt_prog_compiler_pic='-Kconform_pic'
8934 lt_prog_compiler_static='-Bstatic'
8935 fi
8936 ;;
8937
8938 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8939 lt_prog_compiler_wl='-Wl,'
8940 lt_prog_compiler_pic='-KPIC'
8941 lt_prog_compiler_static='-Bstatic'
8942 ;;
8943
8944 unicos*)
8945 lt_prog_compiler_wl='-Wl,'
8946 lt_prog_compiler_can_build_shared=no
8947 ;;
8948
8949 uts4*)
8950 lt_prog_compiler_pic='-pic'
8951 lt_prog_compiler_static='-Bstatic'
8952 ;;
8953
8954 *)
8955 lt_prog_compiler_can_build_shared=no
8956 ;;
8957 esac
8958 fi
8959
8960 case $host_os in
8961 # For platforms which do not support PIC, -DPIC is meaningless:
8962 *djgpp*)
8963 lt_prog_compiler_pic=
8964 ;;
8965 *)
8966 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8967 ;;
8968 esac
8969
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8971 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8972 if ${lt_cv_prog_compiler_pic+:} false; then :
8973 $as_echo_n "(cached) " >&6
8974 else
8975 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8976 fi
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8978 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8979 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8980
8981 #
8982 # Check to make sure the PIC flag actually works.
8983 #
8984 if test -n "$lt_prog_compiler_pic"; then
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8986 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8987 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8988 $as_echo_n "(cached) " >&6
8989 else
8990 lt_cv_prog_compiler_pic_works=no
8991 ac_outfile=conftest.$ac_objext
8992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8993 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8994 # Insert the option either (1) after the last *FLAGS variable, or
8995 # (2) before a word containing "conftest.", or (3) at the end.
8996 # Note that $ac_compile itself does not contain backslashes and begins
8997 # with a dollar sign (not a hyphen), so the echo should work correctly.
8998 # The option is referenced via a variable to avoid confusing sed.
8999 lt_compile=`echo "$ac_compile" | $SED \
9000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9002 -e 's:$: $lt_compiler_flag:'`
9003 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9004 (eval "$lt_compile" 2>conftest.err)
9005 ac_status=$?
9006 cat conftest.err >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 if (exit $ac_status) && test -s "$ac_outfile"; then
9009 # The compiler can only warn and ignore the option if not recognized
9010 # So say no if there are warnings other than the usual output.
9011 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9012 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9013 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9014 lt_cv_prog_compiler_pic_works=yes
9015 fi
9016 fi
9017 $RM conftest*
9018
9019 fi
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9021 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9022
9023 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9024 case $lt_prog_compiler_pic in
9025 "" | " "*) ;;
9026 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9027 esac
9028 else
9029 lt_prog_compiler_pic=
9030 lt_prog_compiler_can_build_shared=no
9031 fi
9032
9033 fi
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045 #
9046 # Check to make sure the static flag actually works.
9047 #
9048 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9050 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9051 if ${lt_cv_prog_compiler_static_works+:} false; then :
9052 $as_echo_n "(cached) " >&6
9053 else
9054 lt_cv_prog_compiler_static_works=no
9055 save_LDFLAGS="$LDFLAGS"
9056 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9057 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9058 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9059 # The linker can only warn and ignore the option if not recognized
9060 # So say no if there are warnings
9061 if test -s conftest.err; then
9062 # Append any errors to the config.log.
9063 cat conftest.err 1>&5
9064 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9065 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9066 if diff conftest.exp conftest.er2 >/dev/null; then
9067 lt_cv_prog_compiler_static_works=yes
9068 fi
9069 else
9070 lt_cv_prog_compiler_static_works=yes
9071 fi
9072 fi
9073 $RM -r conftest*
9074 LDFLAGS="$save_LDFLAGS"
9075
9076 fi
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9078 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9079
9080 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9081 :
9082 else
9083 lt_prog_compiler_static=
9084 fi
9085
9086
9087
9088
9089
9090
9091
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9093 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9094 if ${lt_cv_prog_compiler_c_o+:} false; then :
9095 $as_echo_n "(cached) " >&6
9096 else
9097 lt_cv_prog_compiler_c_o=no
9098 $RM -r conftest 2>/dev/null
9099 mkdir conftest
9100 cd conftest
9101 mkdir out
9102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9103
9104 lt_compiler_flag="-o out/conftest2.$ac_objext"
9105 # Insert the option either (1) after the last *FLAGS variable, or
9106 # (2) before a word containing "conftest.", or (3) at the end.
9107 # Note that $ac_compile itself does not contain backslashes and begins
9108 # with a dollar sign (not a hyphen), so the echo should work correctly.
9109 lt_compile=`echo "$ac_compile" | $SED \
9110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9112 -e 's:$: $lt_compiler_flag:'`
9113 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9114 (eval "$lt_compile" 2>out/conftest.err)
9115 ac_status=$?
9116 cat out/conftest.err >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9119 then
9120 # The compiler can only warn and ignore the option if not recognized
9121 # So say no if there are warnings
9122 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9123 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9124 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9125 lt_cv_prog_compiler_c_o=yes
9126 fi
9127 fi
9128 chmod u+w . 2>&5
9129 $RM conftest*
9130 # SGI C++ compiler will create directory out/ii_files/ for
9131 # template instantiation
9132 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9133 $RM out/* && rmdir out
9134 cd ..
9135 $RM -r conftest
9136 $RM conftest*
9137
9138 fi
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9140 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9141
9142
9143
9144
9145
9146
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9148 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9149 if ${lt_cv_prog_compiler_c_o+:} false; then :
9150 $as_echo_n "(cached) " >&6
9151 else
9152 lt_cv_prog_compiler_c_o=no
9153 $RM -r conftest 2>/dev/null
9154 mkdir conftest
9155 cd conftest
9156 mkdir out
9157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9158
9159 lt_compiler_flag="-o out/conftest2.$ac_objext"
9160 # Insert the option either (1) after the last *FLAGS variable, or
9161 # (2) before a word containing "conftest.", or (3) at the end.
9162 # Note that $ac_compile itself does not contain backslashes and begins
9163 # with a dollar sign (not a hyphen), so the echo should work correctly.
9164 lt_compile=`echo "$ac_compile" | $SED \
9165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9167 -e 's:$: $lt_compiler_flag:'`
9168 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9169 (eval "$lt_compile" 2>out/conftest.err)
9170 ac_status=$?
9171 cat out/conftest.err >&5
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9174 then
9175 # The compiler can only warn and ignore the option if not recognized
9176 # So say no if there are warnings
9177 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9178 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9179 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9180 lt_cv_prog_compiler_c_o=yes
9181 fi
9182 fi
9183 chmod u+w . 2>&5
9184 $RM conftest*
9185 # SGI C++ compiler will create directory out/ii_files/ for
9186 # template instantiation
9187 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9188 $RM out/* && rmdir out
9189 cd ..
9190 $RM -r conftest
9191 $RM conftest*
9192
9193 fi
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9195 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9196
9197
9198
9199
9200 hard_links="nottested"
9201 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9202 # do not overwrite the value of need_locks provided by the user
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9204 $as_echo_n "checking if we can lock with hard links... " >&6; }
9205 hard_links=yes
9206 $RM conftest*
9207 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9208 touch conftest.a
9209 ln conftest.a conftest.b 2>&5 || hard_links=no
9210 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9212 $as_echo "$hard_links" >&6; }
9213 if test "$hard_links" = no; then
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9215 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9216 need_locks=warn
9217 fi
9218 else
9219 need_locks=no
9220 fi
9221
9222
9223
9224
9225
9226
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9228 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9229
9230 runpath_var=
9231 allow_undefined_flag=
9232 always_export_symbols=no
9233 archive_cmds=
9234 archive_expsym_cmds=
9235 compiler_needs_object=no
9236 enable_shared_with_static_runtimes=no
9237 export_dynamic_flag_spec=
9238 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9239 hardcode_automatic=no
9240 hardcode_direct=no
9241 hardcode_direct_absolute=no
9242 hardcode_libdir_flag_spec=
9243 hardcode_libdir_separator=
9244 hardcode_minus_L=no
9245 hardcode_shlibpath_var=unsupported
9246 inherit_rpath=no
9247 link_all_deplibs=unknown
9248 module_cmds=
9249 module_expsym_cmds=
9250 old_archive_from_new_cmds=
9251 old_archive_from_expsyms_cmds=
9252 thread_safe_flag_spec=
9253 whole_archive_flag_spec=
9254 # include_expsyms should be a list of space-separated symbols to be *always*
9255 # included in the symbol list
9256 include_expsyms=
9257 # exclude_expsyms can be an extended regexp of symbols to exclude
9258 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9259 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9260 # as well as any symbol that contains `d'.
9261 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9262 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9263 # platforms (ab)use it in PIC code, but their linkers get confused if
9264 # the symbol is explicitly referenced. Since portable code cannot
9265 # rely on this symbol name, it's probably fine to never include it in
9266 # preloaded symbol tables.
9267 # Exclude shared library initialization/finalization symbols.
9268 extract_expsyms_cmds=
9269
9270 case $host_os in
9271 cygwin* | mingw* | pw32* | cegcc*)
9272 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9273 # When not using gcc, we currently assume that we are using
9274 # Microsoft Visual C++.
9275 if test "$GCC" != yes; then
9276 with_gnu_ld=no
9277 fi
9278 ;;
9279 interix*)
9280 # we just hope/assume this is gcc and not c89 (= MSVC++)
9281 with_gnu_ld=yes
9282 ;;
9283 openbsd*)
9284 with_gnu_ld=no
9285 ;;
9286 linux* | k*bsd*-gnu | gnu*)
9287 link_all_deplibs=no
9288 ;;
9289 esac
9290
9291 ld_shlibs=yes
9292
9293 # On some targets, GNU ld is compatible enough with the native linker
9294 # that we're better off using the native interface for both.
9295 lt_use_gnu_ld_interface=no
9296 if test "$with_gnu_ld" = yes; then
9297 case $host_os in
9298 aix*)
9299 # The AIX port of GNU ld has always aspired to compatibility
9300 # with the native linker. However, as the warning in the GNU ld
9301 # block says, versions before 2.19.5* couldn't really create working
9302 # shared libraries, regardless of the interface used.
9303 case `$LD -v 2>&1` in
9304 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9305 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9306 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9307 *)
9308 lt_use_gnu_ld_interface=yes
9309 ;;
9310 esac
9311 ;;
9312 *)
9313 lt_use_gnu_ld_interface=yes
9314 ;;
9315 esac
9316 fi
9317
9318 if test "$lt_use_gnu_ld_interface" = yes; then
9319 # If archive_cmds runs LD, not CC, wlarc should be empty
9320 wlarc='${wl}'
9321
9322 # Set some defaults for GNU ld with shared library support. These
9323 # are reset later if shared libraries are not supported. Putting them
9324 # here allows them to be overridden if necessary.
9325 runpath_var=LD_RUN_PATH
9326 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9327 export_dynamic_flag_spec='${wl}--export-dynamic'
9328 # ancient GNU ld didn't support --whole-archive et. al.
9329 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9330 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9331 else
9332 whole_archive_flag_spec=
9333 fi
9334 supports_anon_versioning=no
9335 case `$LD -v 2>&1` in
9336 *GNU\ gold*) supports_anon_versioning=yes ;;
9337 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9338 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9339 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9340 *\ 2.11.*) ;; # other 2.11 versions
9341 *) supports_anon_versioning=yes ;;
9342 esac
9343
9344 # See if GNU ld supports shared libraries.
9345 case $host_os in
9346 aix[3-9]*)
9347 # On AIX/PPC, the GNU linker is very broken
9348 if test "$host_cpu" != ia64; then
9349 ld_shlibs=no
9350 cat <<_LT_EOF 1>&2
9351
9352 *** Warning: the GNU linker, at least up to release 2.19, is reported
9353 *** to be unable to reliably create shared libraries on AIX.
9354 *** Therefore, libtool is disabling shared libraries support. If you
9355 *** really care for shared libraries, you may want to install binutils
9356 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9357 *** You will then need to restart the configuration process.
9358
9359 _LT_EOF
9360 fi
9361 ;;
9362
9363 amigaos*)
9364 case $host_cpu in
9365 powerpc)
9366 # see comment about AmigaOS4 .so support
9367 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9368 archive_expsym_cmds=''
9369 ;;
9370 m68k)
9371 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)'
9372 hardcode_libdir_flag_spec='-L$libdir'
9373 hardcode_minus_L=yes
9374 ;;
9375 esac
9376 ;;
9377
9378 beos*)
9379 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9380 allow_undefined_flag=unsupported
9381 # Joseph Beckenbach <[email protected]> says some releases of gcc
9382 # support --undefined. This deserves some investigation. FIXME
9383 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9384 else
9385 ld_shlibs=no
9386 fi
9387 ;;
9388
9389 cygwin* | mingw* | pw32* | cegcc*)
9390 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9391 # as there is no search path for DLLs.
9392 hardcode_libdir_flag_spec='-L$libdir'
9393 export_dynamic_flag_spec='${wl}--export-all-symbols'
9394 allow_undefined_flag=unsupported
9395 always_export_symbols=no
9396 enable_shared_with_static_runtimes=yes
9397 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'
9398 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9399
9400 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9402 # If the export-symbols file already is a .def file (1st line
9403 # is EXPORTS), use it as is; otherwise, prepend...
9404 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9405 cp $export_symbols $output_objdir/$soname.def;
9406 else
9407 echo EXPORTS > $output_objdir/$soname.def;
9408 cat $export_symbols >> $output_objdir/$soname.def;
9409 fi~
9410 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9411 else
9412 ld_shlibs=no
9413 fi
9414 ;;
9415
9416 haiku*)
9417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9418 link_all_deplibs=yes
9419 ;;
9420
9421 interix[3-9]*)
9422 hardcode_direct=no
9423 hardcode_shlibpath_var=no
9424 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9425 export_dynamic_flag_spec='${wl}-E'
9426 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9427 # Instead, shared libraries are loaded at an image base (0x10000000 by
9428 # default) and relocated if they conflict, which is a slow very memory
9429 # consuming and fragmenting process. To avoid this, we pick a random,
9430 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9431 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9432 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9433 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'
9434 ;;
9435
9436 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9437 tmp_diet=no
9438 if test "$host_os" = linux-dietlibc; then
9439 case $cc_basename in
9440 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9441 esac
9442 fi
9443 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9444 && test "$tmp_diet" = no
9445 then
9446 tmp_addflag=' $pic_flag'
9447 tmp_sharedflag='-shared'
9448 case $cc_basename,$host_cpu in
9449 pgcc*) # Portland Group C compiler
9450 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'
9451 tmp_addflag=' $pic_flag'
9452 ;;
9453 pgf77* | pgf90* | pgf95* | pgfortran*)
9454 # Portland Group f77 and f90 compilers
9455 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'
9456 tmp_addflag=' $pic_flag -Mnomain' ;;
9457 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9458 tmp_addflag=' -i_dynamic' ;;
9459 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9460 tmp_addflag=' -i_dynamic -nofor_main' ;;
9461 ifc* | ifort*) # Intel Fortran compiler
9462 tmp_addflag=' -nofor_main' ;;
9463 lf95*) # Lahey Fortran 8.1
9464 whole_archive_flag_spec=
9465 tmp_sharedflag='--shared' ;;
9466 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9467 tmp_sharedflag='-qmkshrobj'
9468 tmp_addflag= ;;
9469 nvcc*) # Cuda Compiler Driver 2.2
9470 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'
9471 compiler_needs_object=yes
9472 ;;
9473 esac
9474 case `$CC -V 2>&1 | sed 5q` in
9475 *Sun\ C*) # Sun C 5.9
9476 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'
9477 compiler_needs_object=yes
9478 tmp_sharedflag='-G' ;;
9479 *Sun\ F*) # Sun Fortran 8.3
9480 tmp_sharedflag='-G' ;;
9481 esac
9482 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9483
9484 if test "x$supports_anon_versioning" = xyes; then
9485 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9486 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9487 echo "local: *; };" >> $output_objdir/$libname.ver~
9488 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9489 fi
9490
9491 case $cc_basename in
9492 xlf* | bgf* | bgxlf* | mpixlf*)
9493 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9494 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9495 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9496 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9497 if test "x$supports_anon_versioning" = xyes; then
9498 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9499 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9500 echo "local: *; };" >> $output_objdir/$libname.ver~
9501 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9502 fi
9503 ;;
9504 esac
9505 else
9506 ld_shlibs=no
9507 fi
9508 ;;
9509
9510 netbsd* | netbsdelf*-gnu)
9511 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9512 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9513 wlarc=
9514 else
9515 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9516 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9517 fi
9518 ;;
9519
9520 solaris*)
9521 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9522 ld_shlibs=no
9523 cat <<_LT_EOF 1>&2
9524
9525 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9526 *** create shared libraries on Solaris systems. Therefore, libtool
9527 *** is disabling shared libraries support. We urge you to upgrade GNU
9528 *** binutils to release 2.9.1 or newer. Another option is to modify
9529 *** your PATH or compiler configuration so that the native linker is
9530 *** used, and then restart.
9531
9532 _LT_EOF
9533 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9534 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9535 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9536 else
9537 ld_shlibs=no
9538 fi
9539 ;;
9540
9541 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9542 case `$LD -v 2>&1` in
9543 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9544 ld_shlibs=no
9545 cat <<_LT_EOF 1>&2
9546
9547 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9548 *** reliably create shared libraries on SCO systems. Therefore, libtool
9549 *** is disabling shared libraries support. We urge you to upgrade GNU
9550 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9551 *** your PATH or compiler configuration so that the native linker is
9552 *** used, and then restart.
9553
9554 _LT_EOF
9555 ;;
9556 *)
9557 # For security reasons, it is highly recommended that you always
9558 # use absolute paths for naming shared libraries, and exclude the
9559 # DT_RUNPATH tag from executables and libraries. But doing so
9560 # requires that you compile everything twice, which is a pain.
9561 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9562 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9564 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9565 else
9566 ld_shlibs=no
9567 fi
9568 ;;
9569 esac
9570 ;;
9571
9572 sunos4*)
9573 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9574 wlarc=
9575 hardcode_direct=yes
9576 hardcode_shlibpath_var=no
9577 ;;
9578
9579 *)
9580 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9581 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9582 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9583 else
9584 ld_shlibs=no
9585 fi
9586 ;;
9587 esac
9588
9589 if test "$ld_shlibs" = no; then
9590 runpath_var=
9591 hardcode_libdir_flag_spec=
9592 export_dynamic_flag_spec=
9593 whole_archive_flag_spec=
9594 fi
9595 else
9596 # PORTME fill in a description of your system's linker (not GNU ld)
9597 case $host_os in
9598 aix3*)
9599 allow_undefined_flag=unsupported
9600 always_export_symbols=yes
9601 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'
9602 # Note: this linker hardcodes the directories in LIBPATH if there
9603 # are no directories specified by -L.
9604 hardcode_minus_L=yes
9605 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9606 # Neither direct hardcoding nor static linking is supported with a
9607 # broken collect2.
9608 hardcode_direct=unsupported
9609 fi
9610 ;;
9611
9612 aix[4-9]*)
9613 if test "$host_cpu" = ia64; then
9614 # On IA64, the linker does run time linking by default, so we don't
9615 # have to do anything special.
9616 aix_use_runtimelinking=no
9617 exp_sym_flag='-Bexport'
9618 no_entry_flag=""
9619 else
9620 # If we're using GNU nm, then we don't want the "-C" option.
9621 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9622 # Also, AIX nm treats weak defined symbols like other global
9623 # defined symbols, whereas GNU nm marks them as "W".
9624 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9625 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'
9626 else
9627 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'
9628 fi
9629 aix_use_runtimelinking=no
9630
9631 # Test if we are trying to use run time linking or normal
9632 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9633 # need to do runtime linking.
9634 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9635 for ld_flag in $LDFLAGS; do
9636 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9637 aix_use_runtimelinking=yes
9638 break
9639 fi
9640 done
9641 ;;
9642 esac
9643
9644 exp_sym_flag='-bexport'
9645 no_entry_flag='-bnoentry'
9646 fi
9647
9648 # When large executables or shared objects are built, AIX ld can
9649 # have problems creating the table of contents. If linking a library
9650 # or program results in "error TOC overflow" add -mminimal-toc to
9651 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9652 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9653
9654 archive_cmds=''
9655 hardcode_direct=yes
9656 hardcode_direct_absolute=yes
9657 hardcode_libdir_separator=':'
9658 link_all_deplibs=yes
9659 file_list_spec='${wl}-f,'
9660
9661 if test "$GCC" = yes; then
9662 case $host_os in aix4.[012]|aix4.[012].*)
9663 # We only want to do this on AIX 4.2 and lower, the check
9664 # below for broken collect2 doesn't work under 4.3+
9665 collect2name=`${CC} -print-prog-name=collect2`
9666 if test -f "$collect2name" &&
9667 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9668 then
9669 # We have reworked collect2
9670 :
9671 else
9672 # We have old collect2
9673 hardcode_direct=unsupported
9674 # It fails to find uninstalled libraries when the uninstalled
9675 # path is not listed in the libpath. Setting hardcode_minus_L
9676 # to unsupported forces relinking
9677 hardcode_minus_L=yes
9678 hardcode_libdir_flag_spec='-L$libdir'
9679 hardcode_libdir_separator=
9680 fi
9681 ;;
9682 esac
9683 shared_flag='-shared'
9684 if test "$aix_use_runtimelinking" = yes; then
9685 shared_flag="$shared_flag "'${wl}-G'
9686 fi
9687 link_all_deplibs=no
9688 else
9689 # not using gcc
9690 if test "$host_cpu" = ia64; then
9691 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9692 # chokes on -Wl,-G. The following line is correct:
9693 shared_flag='-G'
9694 else
9695 if test "$aix_use_runtimelinking" = yes; then
9696 shared_flag='${wl}-G'
9697 else
9698 shared_flag='${wl}-bM:SRE'
9699 fi
9700 fi
9701 fi
9702
9703 export_dynamic_flag_spec='${wl}-bexpall'
9704 # It seems that -bexpall does not export symbols beginning with
9705 # underscore (_), so it is better to generate a list of symbols to export.
9706 always_export_symbols=yes
9707 if test "$aix_use_runtimelinking" = yes; then
9708 # Warning - without using the other runtime loading flags (-brtl),
9709 # -berok will link without error, but may produce a broken library.
9710 allow_undefined_flag='-berok'
9711 # Determine the default libpath from the value encoded in an
9712 # empty executable.
9713 if test "${lt_cv_aix_libpath+set}" = set; then
9714 aix_libpath=$lt_cv_aix_libpath
9715 else
9716 if ${lt_cv_aix_libpath_+:} false; then :
9717 $as_echo_n "(cached) " >&6
9718 else
9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h. */
9721
9722 int
9723 main ()
9724 {
9725
9726 ;
9727 return 0;
9728 }
9729 _ACEOF
9730 if ac_fn_c_try_link "$LINENO"; then :
9731
9732 lt_aix_libpath_sed='
9733 /Import File Strings/,/^$/ {
9734 /^0/ {
9735 s/^0 *\([^ ]*\) *$/\1/
9736 p
9737 }
9738 }'
9739 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9740 # Check for a 64-bit object if we didn't find anything.
9741 if test -z "$lt_cv_aix_libpath_"; then
9742 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9743 fi
9744 fi
9745 rm -f core conftest.err conftest.$ac_objext \
9746 conftest$ac_exeext conftest.$ac_ext
9747 if test -z "$lt_cv_aix_libpath_"; then
9748 lt_cv_aix_libpath_="/usr/lib:/lib"
9749 fi
9750
9751 fi
9752
9753 aix_libpath=$lt_cv_aix_libpath_
9754 fi
9755
9756 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9757 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"
9758 else
9759 if test "$host_cpu" = ia64; then
9760 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9761 allow_undefined_flag="-z nodefs"
9762 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"
9763 else
9764 # Determine the default libpath from the value encoded in an
9765 # empty executable.
9766 if test "${lt_cv_aix_libpath+set}" = set; then
9767 aix_libpath=$lt_cv_aix_libpath
9768 else
9769 if ${lt_cv_aix_libpath_+:} false; then :
9770 $as_echo_n "(cached) " >&6
9771 else
9772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9773 /* end confdefs.h. */
9774
9775 int
9776 main ()
9777 {
9778
9779 ;
9780 return 0;
9781 }
9782 _ACEOF
9783 if ac_fn_c_try_link "$LINENO"; then :
9784
9785 lt_aix_libpath_sed='
9786 /Import File Strings/,/^$/ {
9787 /^0/ {
9788 s/^0 *\([^ ]*\) *$/\1/
9789 p
9790 }
9791 }'
9792 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9793 # Check for a 64-bit object if we didn't find anything.
9794 if test -z "$lt_cv_aix_libpath_"; then
9795 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9796 fi
9797 fi
9798 rm -f core conftest.err conftest.$ac_objext \
9799 conftest$ac_exeext conftest.$ac_ext
9800 if test -z "$lt_cv_aix_libpath_"; then
9801 lt_cv_aix_libpath_="/usr/lib:/lib"
9802 fi
9803
9804 fi
9805
9806 aix_libpath=$lt_cv_aix_libpath_
9807 fi
9808
9809 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9810 # Warning - without using the other run time loading flags,
9811 # -berok will link without error, but may produce a broken library.
9812 no_undefined_flag=' ${wl}-bernotok'
9813 allow_undefined_flag=' ${wl}-berok'
9814 if test "$with_gnu_ld" = yes; then
9815 # We only use this code for GNU lds that support --whole-archive.
9816 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9817 else
9818 # Exported symbols can be pulled into shared objects from archives
9819 whole_archive_flag_spec='$convenience'
9820 fi
9821 archive_cmds_need_lc=yes
9822 # This is similar to how AIX traditionally builds its shared libraries.
9823 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'
9824 fi
9825 fi
9826 ;;
9827
9828 amigaos*)
9829 case $host_cpu in
9830 powerpc)
9831 # see comment about AmigaOS4 .so support
9832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9833 archive_expsym_cmds=''
9834 ;;
9835 m68k)
9836 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)'
9837 hardcode_libdir_flag_spec='-L$libdir'
9838 hardcode_minus_L=yes
9839 ;;
9840 esac
9841 ;;
9842
9843 bsdi[45]*)
9844 export_dynamic_flag_spec=-rdynamic
9845 ;;
9846
9847 cygwin* | mingw* | pw32* | cegcc*)
9848 # When not using gcc, we currently assume that we are using
9849 # Microsoft Visual C++.
9850 # hardcode_libdir_flag_spec is actually meaningless, as there is
9851 # no search path for DLLs.
9852 case $cc_basename in
9853 cl*)
9854 # Native MSVC
9855 hardcode_libdir_flag_spec=' '
9856 allow_undefined_flag=unsupported
9857 always_export_symbols=yes
9858 file_list_spec='@'
9859 # Tell ltmain to make .lib files, not .a files.
9860 libext=lib
9861 # Tell ltmain to make .dll files, not .so files.
9862 shrext_cmds=".dll"
9863 # FIXME: Setting linknames here is a bad hack.
9864 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9865 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9866 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9867 else
9868 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9869 fi~
9870 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9871 linknames='
9872 # The linker will not automatically build a static lib if we build a DLL.
9873 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9874 enable_shared_with_static_runtimes=yes
9875 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9876 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9877 # Don't use ranlib
9878 old_postinstall_cmds='chmod 644 $oldlib'
9879 postlink_cmds='lt_outputfile="@OUTPUT@"~
9880 lt_tool_outputfile="@TOOL_OUTPUT@"~
9881 case $lt_outputfile in
9882 *.exe|*.EXE) ;;
9883 *)
9884 lt_outputfile="$lt_outputfile.exe"
9885 lt_tool_outputfile="$lt_tool_outputfile.exe"
9886 ;;
9887 esac~
9888 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9889 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9890 $RM "$lt_outputfile.manifest";
9891 fi'
9892 ;;
9893 *)
9894 # Assume MSVC wrapper
9895 hardcode_libdir_flag_spec=' '
9896 allow_undefined_flag=unsupported
9897 # Tell ltmain to make .lib files, not .a files.
9898 libext=lib
9899 # Tell ltmain to make .dll files, not .so files.
9900 shrext_cmds=".dll"
9901 # FIXME: Setting linknames here is a bad hack.
9902 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9903 # The linker will automatically build a .lib file if we build a DLL.
9904 old_archive_from_new_cmds='true'
9905 # FIXME: Should let the user specify the lib program.
9906 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9907 enable_shared_with_static_runtimes=yes
9908 ;;
9909 esac
9910 ;;
9911
9912 darwin* | rhapsody*)
9913
9914
9915 archive_cmds_need_lc=no
9916 hardcode_direct=no
9917 hardcode_automatic=yes
9918 hardcode_shlibpath_var=unsupported
9919 if test "$lt_cv_ld_force_load" = "yes"; then
9920 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\"`'
9921
9922 else
9923 whole_archive_flag_spec=''
9924 fi
9925 link_all_deplibs=yes
9926 allow_undefined_flag="$_lt_dar_allow_undefined"
9927 case $cc_basename in
9928 ifort*) _lt_dar_can_shared=yes ;;
9929 *) _lt_dar_can_shared=$GCC ;;
9930 esac
9931 if test "$_lt_dar_can_shared" = "yes"; then
9932 output_verbose_link_cmd=func_echo_all
9933 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9934 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9935 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}"
9936 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}"
9937
9938 else
9939 ld_shlibs=no
9940 fi
9941
9942 ;;
9943
9944 dgux*)
9945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9946 hardcode_libdir_flag_spec='-L$libdir'
9947 hardcode_shlibpath_var=no
9948 ;;
9949
9950 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9951 # support. Future versions do this automatically, but an explicit c++rt0.o
9952 # does not break anything, and helps significantly (at the cost of a little
9953 # extra space).
9954 freebsd2.2*)
9955 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9956 hardcode_libdir_flag_spec='-R$libdir'
9957 hardcode_direct=yes
9958 hardcode_shlibpath_var=no
9959 ;;
9960
9961 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9962 freebsd2.*)
9963 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9964 hardcode_direct=yes
9965 hardcode_minus_L=yes
9966 hardcode_shlibpath_var=no
9967 ;;
9968
9969 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9970 freebsd* | dragonfly*)
9971 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9972 hardcode_libdir_flag_spec='-R$libdir'
9973 hardcode_direct=yes
9974 hardcode_shlibpath_var=no
9975 ;;
9976
9977 hpux9*)
9978 if test "$GCC" = yes; then
9979 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'
9980 else
9981 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'
9982 fi
9983 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9984 hardcode_libdir_separator=:
9985 hardcode_direct=yes
9986
9987 # hardcode_minus_L: Not really in the search PATH,
9988 # but as the default location of the library.
9989 hardcode_minus_L=yes
9990 export_dynamic_flag_spec='${wl}-E'
9991 ;;
9992
9993 hpux10*)
9994 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9995 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9996 else
9997 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9998 fi
9999 if test "$with_gnu_ld" = no; then
10000 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10001 hardcode_libdir_separator=:
10002 hardcode_direct=yes
10003 hardcode_direct_absolute=yes
10004 export_dynamic_flag_spec='${wl}-E'
10005 # hardcode_minus_L: Not really in the search PATH,
10006 # but as the default location of the library.
10007 hardcode_minus_L=yes
10008 fi
10009 ;;
10010
10011 hpux11*)
10012 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10013 case $host_cpu in
10014 hppa*64*)
10015 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10016 ;;
10017 ia64*)
10018 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10019 ;;
10020 *)
10021 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10022 ;;
10023 esac
10024 else
10025 case $host_cpu in
10026 hppa*64*)
10027 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10028 ;;
10029 ia64*)
10030 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10031 ;;
10032 *)
10033
10034 # Older versions of the 11.00 compiler do not understand -b yet
10035 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10037 $as_echo_n "checking if $CC understands -b... " >&6; }
10038 if ${lt_cv_prog_compiler__b+:} false; then :
10039 $as_echo_n "(cached) " >&6
10040 else
10041 lt_cv_prog_compiler__b=no
10042 save_LDFLAGS="$LDFLAGS"
10043 LDFLAGS="$LDFLAGS -b"
10044 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10045 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10046 # The linker can only warn and ignore the option if not recognized
10047 # So say no if there are warnings
10048 if test -s conftest.err; then
10049 # Append any errors to the config.log.
10050 cat conftest.err 1>&5
10051 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10053 if diff conftest.exp conftest.er2 >/dev/null; then
10054 lt_cv_prog_compiler__b=yes
10055 fi
10056 else
10057 lt_cv_prog_compiler__b=yes
10058 fi
10059 fi
10060 $RM -r conftest*
10061 LDFLAGS="$save_LDFLAGS"
10062
10063 fi
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10065 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10066
10067 if test x"$lt_cv_prog_compiler__b" = xyes; then
10068 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10069 else
10070 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10071 fi
10072
10073 ;;
10074 esac
10075 fi
10076 if test "$with_gnu_ld" = no; then
10077 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10078 hardcode_libdir_separator=:
10079
10080 case $host_cpu in
10081 hppa*64*|ia64*)
10082 hardcode_direct=no
10083 hardcode_shlibpath_var=no
10084 ;;
10085 *)
10086 hardcode_direct=yes
10087 hardcode_direct_absolute=yes
10088 export_dynamic_flag_spec='${wl}-E'
10089
10090 # hardcode_minus_L: Not really in the search PATH,
10091 # but as the default location of the library.
10092 hardcode_minus_L=yes
10093 ;;
10094 esac
10095 fi
10096 ;;
10097
10098 irix5* | irix6* | nonstopux*)
10099 if test "$GCC" = yes; then
10100 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'
10101 # Try to use the -exported_symbol ld option, if it does not
10102 # work, assume that -exports_file does not work either and
10103 # implicitly export all symbols.
10104 # This should be the same for all languages, so no per-tag cache variable.
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10106 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10107 if ${lt_cv_irix_exported_symbol+:} false; then :
10108 $as_echo_n "(cached) " >&6
10109 else
10110 save_LDFLAGS="$LDFLAGS"
10111 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10113 /* end confdefs.h. */
10114 int foo (void) { return 0; }
10115 _ACEOF
10116 if ac_fn_c_try_link "$LINENO"; then :
10117 lt_cv_irix_exported_symbol=yes
10118 else
10119 lt_cv_irix_exported_symbol=no
10120 fi
10121 rm -f core conftest.err conftest.$ac_objext \
10122 conftest$ac_exeext conftest.$ac_ext
10123 LDFLAGS="$save_LDFLAGS"
10124 fi
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10126 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10127 if test "$lt_cv_irix_exported_symbol" = yes; then
10128 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'
10129 fi
10130 else
10131 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'
10132 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'
10133 fi
10134 archive_cmds_need_lc='no'
10135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10136 hardcode_libdir_separator=:
10137 inherit_rpath=yes
10138 link_all_deplibs=yes
10139 ;;
10140
10141 netbsd* | netbsdelf*-gnu)
10142 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10143 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10144 else
10145 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10146 fi
10147 hardcode_libdir_flag_spec='-R$libdir'
10148 hardcode_direct=yes
10149 hardcode_shlibpath_var=no
10150 ;;
10151
10152 newsos6)
10153 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10154 hardcode_direct=yes
10155 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10156 hardcode_libdir_separator=:
10157 hardcode_shlibpath_var=no
10158 ;;
10159
10160 *nto* | *qnx*)
10161 ;;
10162
10163 openbsd*)
10164 if test -f /usr/libexec/ld.so; then
10165 hardcode_direct=yes
10166 hardcode_shlibpath_var=no
10167 hardcode_direct_absolute=yes
10168 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10169 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10170 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10171 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10172 export_dynamic_flag_spec='${wl}-E'
10173 else
10174 case $host_os in
10175 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10176 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10177 hardcode_libdir_flag_spec='-R$libdir'
10178 ;;
10179 *)
10180 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10181 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10182 ;;
10183 esac
10184 fi
10185 else
10186 ld_shlibs=no
10187 fi
10188 ;;
10189
10190 os2*)
10191 hardcode_libdir_flag_spec='-L$libdir'
10192 hardcode_minus_L=yes
10193 allow_undefined_flag=unsupported
10194 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'
10195 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10196 ;;
10197
10198 osf3*)
10199 if test "$GCC" = yes; then
10200 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10201 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'
10202 else
10203 allow_undefined_flag=' -expect_unresolved \*'
10204 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'
10205 fi
10206 archive_cmds_need_lc='no'
10207 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10208 hardcode_libdir_separator=:
10209 ;;
10210
10211 osf4* | osf5*) # as osf3* with the addition of -msym flag
10212 if test "$GCC" = yes; then
10213 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10214 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'
10215 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10216 else
10217 allow_undefined_flag=' -expect_unresolved \*'
10218 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'
10219 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~
10220 $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'
10221
10222 # Both c and cxx compiler support -rpath directly
10223 hardcode_libdir_flag_spec='-rpath $libdir'
10224 fi
10225 archive_cmds_need_lc='no'
10226 hardcode_libdir_separator=:
10227 ;;
10228
10229 solaris*)
10230 no_undefined_flag=' -z defs'
10231 if test "$GCC" = yes; then
10232 wlarc='${wl}'
10233 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10234 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10235 $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'
10236 else
10237 case `$CC -V 2>&1` in
10238 *"Compilers 5.0"*)
10239 wlarc=''
10240 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10241 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10242 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10243 ;;
10244 *)
10245 wlarc='${wl}'
10246 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10247 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10248 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10249 ;;
10250 esac
10251 fi
10252 hardcode_libdir_flag_spec='-R$libdir'
10253 hardcode_shlibpath_var=no
10254 case $host_os in
10255 solaris2.[0-5] | solaris2.[0-5].*) ;;
10256 *)
10257 # The compiler driver will combine and reorder linker options,
10258 # but understands `-z linker_flag'. GCC discards it without `$wl',
10259 # but is careful enough not to reorder.
10260 # Supported since Solaris 2.6 (maybe 2.5.1?)
10261 if test "$GCC" = yes; then
10262 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10263 else
10264 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10265 fi
10266 ;;
10267 esac
10268 link_all_deplibs=yes
10269 ;;
10270
10271 sunos4*)
10272 if test "x$host_vendor" = xsequent; then
10273 # Use $CC to link under sequent, because it throws in some extra .o
10274 # files that make .init and .fini sections work.
10275 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10276 else
10277 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10278 fi
10279 hardcode_libdir_flag_spec='-L$libdir'
10280 hardcode_direct=yes
10281 hardcode_minus_L=yes
10282 hardcode_shlibpath_var=no
10283 ;;
10284
10285 sysv4)
10286 case $host_vendor in
10287 sni)
10288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10289 hardcode_direct=yes # is this really true???
10290 ;;
10291 siemens)
10292 ## LD is ld it makes a PLAMLIB
10293 ## CC just makes a GrossModule.
10294 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10295 reload_cmds='$CC -r -o $output$reload_objs'
10296 hardcode_direct=no
10297 ;;
10298 motorola)
10299 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10300 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10301 ;;
10302 esac
10303 runpath_var='LD_RUN_PATH'
10304 hardcode_shlibpath_var=no
10305 ;;
10306
10307 sysv4.3*)
10308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10309 hardcode_shlibpath_var=no
10310 export_dynamic_flag_spec='-Bexport'
10311 ;;
10312
10313 sysv4*MP*)
10314 if test -d /usr/nec; then
10315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10316 hardcode_shlibpath_var=no
10317 runpath_var=LD_RUN_PATH
10318 hardcode_runpath_var=yes
10319 ld_shlibs=yes
10320 fi
10321 ;;
10322
10323 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10324 no_undefined_flag='${wl}-z,text'
10325 archive_cmds_need_lc=no
10326 hardcode_shlibpath_var=no
10327 runpath_var='LD_RUN_PATH'
10328
10329 if test "$GCC" = yes; then
10330 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10331 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10332 else
10333 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10334 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10335 fi
10336 ;;
10337
10338 sysv5* | sco3.2v5* | sco5v6*)
10339 # Note: We can NOT use -z defs as we might desire, because we do not
10340 # link with -lc, and that would cause any symbols used from libc to
10341 # always be unresolved, which means just about no library would
10342 # ever link correctly. If we're not using GNU ld we use -z text
10343 # though, which does catch some bad symbols but isn't as heavy-handed
10344 # as -z defs.
10345 no_undefined_flag='${wl}-z,text'
10346 allow_undefined_flag='${wl}-z,nodefs'
10347 archive_cmds_need_lc=no
10348 hardcode_shlibpath_var=no
10349 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10350 hardcode_libdir_separator=':'
10351 link_all_deplibs=yes
10352 export_dynamic_flag_spec='${wl}-Bexport'
10353 runpath_var='LD_RUN_PATH'
10354
10355 if test "$GCC" = yes; then
10356 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10357 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10358 else
10359 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10360 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10361 fi
10362 ;;
10363
10364 uts4*)
10365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10366 hardcode_libdir_flag_spec='-L$libdir'
10367 hardcode_shlibpath_var=no
10368 ;;
10369
10370 *)
10371 ld_shlibs=no
10372 ;;
10373 esac
10374
10375 if test x$host_vendor = xsni; then
10376 case $host in
10377 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10378 export_dynamic_flag_spec='${wl}-Blargedynsym'
10379 ;;
10380 esac
10381 fi
10382 fi
10383
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10385 $as_echo "$ld_shlibs" >&6; }
10386 test "$ld_shlibs" = no && can_build_shared=no
10387
10388 with_gnu_ld=$with_gnu_ld
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404 #
10405 # Do we need to explicitly link libc?
10406 #
10407 case "x$archive_cmds_need_lc" in
10408 x|xyes)
10409 # Assume -lc should be added
10410 archive_cmds_need_lc=yes
10411
10412 if test "$enable_shared" = yes && test "$GCC" = yes; then
10413 case $archive_cmds in
10414 *'~'*)
10415 # FIXME: we may have to deal with multi-command sequences.
10416 ;;
10417 '$CC '*)
10418 # Test whether the compiler implicitly links with -lc since on some
10419 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10420 # to ld, don't add -lc before -lgcc.
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10422 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10423 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10424 $as_echo_n "(cached) " >&6
10425 else
10426 $RM conftest*
10427 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10428
10429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10430 (eval $ac_compile) 2>&5
10431 ac_status=$?
10432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10433 test $ac_status = 0; } 2>conftest.err; then
10434 soname=conftest
10435 lib=conftest
10436 libobjs=conftest.$ac_objext
10437 deplibs=
10438 wl=$lt_prog_compiler_wl
10439 pic_flag=$lt_prog_compiler_pic
10440 compiler_flags=-v
10441 linker_flags=-v
10442 verstring=
10443 output_objdir=.
10444 libname=conftest
10445 lt_save_allow_undefined_flag=$allow_undefined_flag
10446 allow_undefined_flag=
10447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10448 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10449 ac_status=$?
10450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10451 test $ac_status = 0; }
10452 then
10453 lt_cv_archive_cmds_need_lc=no
10454 else
10455 lt_cv_archive_cmds_need_lc=yes
10456 fi
10457 allow_undefined_flag=$lt_save_allow_undefined_flag
10458 else
10459 cat conftest.err 1>&5
10460 fi
10461 $RM conftest*
10462
10463 fi
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10465 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10466 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10467 ;;
10468 esac
10469 fi
10470 ;;
10471 esac
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10625 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10626
10627 if test "$GCC" = yes; then
10628 case $host_os in
10629 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10630 *) lt_awk_arg="/^libraries:/" ;;
10631 esac
10632 case $host_os in
10633 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10634 *) lt_sed_strip_eq="s,=/,/,g" ;;
10635 esac
10636 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10637 case $lt_search_path_spec in
10638 *\;*)
10639 # if the path contains ";" then we assume it to be the separator
10640 # otherwise default to the standard path separator (i.e. ":") - it is
10641 # assumed that no part of a normal pathname contains ";" but that should
10642 # okay in the real world where ";" in dirpaths is itself problematic.
10643 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10644 ;;
10645 *)
10646 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10647 ;;
10648 esac
10649 # Ok, now we have the path, separated by spaces, we can step through it
10650 # and add multilib dir if necessary.
10651 lt_tmp_lt_search_path_spec=
10652 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10653 for lt_sys_path in $lt_search_path_spec; do
10654 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10655 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10656 else
10657 test -d "$lt_sys_path" && \
10658 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10659 fi
10660 done
10661 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10662 BEGIN {RS=" "; FS="/|\n";} {
10663 lt_foo="";
10664 lt_count=0;
10665 for (lt_i = NF; lt_i > 0; lt_i--) {
10666 if ($lt_i != "" && $lt_i != ".") {
10667 if ($lt_i == "..") {
10668 lt_count++;
10669 } else {
10670 if (lt_count == 0) {
10671 lt_foo="/" $lt_i lt_foo;
10672 } else {
10673 lt_count--;
10674 }
10675 }
10676 }
10677 }
10678 if (lt_foo != "") { lt_freq[lt_foo]++; }
10679 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10680 }'`
10681 # AWK program above erroneously prepends '/' to C:/dos/paths
10682 # for these hosts.
10683 case $host_os in
10684 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10685 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10686 esac
10687 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10688 else
10689 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10690 fi
10691 library_names_spec=
10692 libname_spec='lib$name'
10693 soname_spec=
10694 shrext_cmds=".so"
10695 postinstall_cmds=
10696 postuninstall_cmds=
10697 finish_cmds=
10698 finish_eval=
10699 shlibpath_var=
10700 shlibpath_overrides_runpath=unknown
10701 version_type=none
10702 dynamic_linker="$host_os ld.so"
10703 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10704 need_lib_prefix=unknown
10705 hardcode_into_libs=no
10706
10707 # when you set need_version to no, make sure it does not cause -set_version
10708 # flags to be left without arguments
10709 need_version=unknown
10710
10711 case $host_os in
10712 aix3*)
10713 version_type=linux # correct to gnu/linux during the next big refactor
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10715 shlibpath_var=LIBPATH
10716
10717 # AIX 3 has no versioning support, so we append a major version to the name.
10718 soname_spec='${libname}${release}${shared_ext}$major'
10719 ;;
10720
10721 aix[4-9]*)
10722 version_type=linux # correct to gnu/linux during the next big refactor
10723 need_lib_prefix=no
10724 need_version=no
10725 hardcode_into_libs=yes
10726 if test "$host_cpu" = ia64; then
10727 # AIX 5 supports IA64
10728 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10729 shlibpath_var=LD_LIBRARY_PATH
10730 else
10731 # With GCC up to 2.95.x, collect2 would create an import file
10732 # for dependence libraries. The import file would start with
10733 # the line `#! .'. This would cause the generated library to
10734 # depend on `.', always an invalid library. This was fixed in
10735 # development snapshots of GCC prior to 3.0.
10736 case $host_os in
10737 aix4 | aix4.[01] | aix4.[01].*)
10738 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10739 echo ' yes '
10740 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10741 :
10742 else
10743 can_build_shared=no
10744 fi
10745 ;;
10746 esac
10747 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10748 # soname into executable. Probably we can add versioning support to
10749 # collect2, so additional links can be useful in future.
10750 if test "$aix_use_runtimelinking" = yes; then
10751 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10752 # instead of lib<name>.a to let people know that these are not
10753 # typical AIX shared libraries.
10754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10755 else
10756 # We preserve .a as extension for shared libraries through AIX4.2
10757 # and later when we are not doing run time linking.
10758 library_names_spec='${libname}${release}.a $libname.a'
10759 soname_spec='${libname}${release}${shared_ext}$major'
10760 fi
10761 shlibpath_var=LIBPATH
10762 fi
10763 ;;
10764
10765 amigaos*)
10766 case $host_cpu in
10767 powerpc)
10768 # Since July 2007 AmigaOS4 officially supports .so libraries.
10769 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10771 ;;
10772 m68k)
10773 library_names_spec='$libname.ixlibrary $libname.a'
10774 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10775 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'
10776 ;;
10777 esac
10778 ;;
10779
10780 beos*)
10781 library_names_spec='${libname}${shared_ext}'
10782 dynamic_linker="$host_os ld.so"
10783 shlibpath_var=LIBRARY_PATH
10784 ;;
10785
10786 bsdi[45]*)
10787 version_type=linux # correct to gnu/linux during the next big refactor
10788 need_version=no
10789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10790 soname_spec='${libname}${release}${shared_ext}$major'
10791 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10792 shlibpath_var=LD_LIBRARY_PATH
10793 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10794 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10795 # the default ld.so.conf also contains /usr/contrib/lib and
10796 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10797 # libtool to hard-code these into programs
10798 ;;
10799
10800 cygwin* | mingw* | pw32* | cegcc*)
10801 version_type=windows
10802 shrext_cmds=".dll"
10803 need_version=no
10804 need_lib_prefix=no
10805
10806 case $GCC,$cc_basename in
10807 yes,*)
10808 # gcc
10809 library_names_spec='$libname.dll.a'
10810 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10811 postinstall_cmds='base_file=`basename \${file}`~
10812 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10813 dldir=$destdir/`dirname \$dlpath`~
10814 test -d \$dldir || mkdir -p \$dldir~
10815 $install_prog $dir/$dlname \$dldir/$dlname~
10816 chmod a+x \$dldir/$dlname~
10817 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10818 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10819 fi'
10820 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10821 dlpath=$dir/\$dldll~
10822 $RM \$dlpath'
10823 shlibpath_overrides_runpath=yes
10824
10825 case $host_os in
10826 cygwin*)
10827 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10828 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10829
10830 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10831 ;;
10832 mingw* | cegcc*)
10833 # MinGW DLLs use traditional 'lib' prefix
10834 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10835 ;;
10836 pw32*)
10837 # pw32 DLLs use 'pw' prefix rather than 'lib'
10838 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10839 ;;
10840 esac
10841 dynamic_linker='Win32 ld.exe'
10842 ;;
10843
10844 *,cl*)
10845 # Native MSVC
10846 libname_spec='$name'
10847 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10848 library_names_spec='${libname}.dll.lib'
10849
10850 case $build_os in
10851 mingw*)
10852 sys_lib_search_path_spec=
10853 lt_save_ifs=$IFS
10854 IFS=';'
10855 for lt_path in $LIB
10856 do
10857 IFS=$lt_save_ifs
10858 # Let DOS variable expansion print the short 8.3 style file name.
10859 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10860 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10861 done
10862 IFS=$lt_save_ifs
10863 # Convert to MSYS style.
10864 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10865 ;;
10866 cygwin*)
10867 # Convert to unix form, then to dos form, then back to unix form
10868 # but this time dos style (no spaces!) so that the unix form looks
10869 # like /cygdrive/c/PROGRA~1:/cygdr...
10870 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10871 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10872 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10873 ;;
10874 *)
10875 sys_lib_search_path_spec="$LIB"
10876 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10877 # It is most probably a Windows format PATH.
10878 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10879 else
10880 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10881 fi
10882 # FIXME: find the short name or the path components, as spaces are
10883 # common. (e.g. "Program Files" -> "PROGRA~1")
10884 ;;
10885 esac
10886
10887 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10888 postinstall_cmds='base_file=`basename \${file}`~
10889 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10890 dldir=$destdir/`dirname \$dlpath`~
10891 test -d \$dldir || mkdir -p \$dldir~
10892 $install_prog $dir/$dlname \$dldir/$dlname'
10893 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10894 dlpath=$dir/\$dldll~
10895 $RM \$dlpath'
10896 shlibpath_overrides_runpath=yes
10897 dynamic_linker='Win32 link.exe'
10898 ;;
10899
10900 *)
10901 # Assume MSVC wrapper
10902 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10903 dynamic_linker='Win32 ld.exe'
10904 ;;
10905 esac
10906 # FIXME: first we should search . and the directory the executable is in
10907 shlibpath_var=PATH
10908 ;;
10909
10910 darwin* | rhapsody*)
10911 dynamic_linker="$host_os dyld"
10912 version_type=darwin
10913 need_lib_prefix=no
10914 need_version=no
10915 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10916 soname_spec='${libname}${release}${major}$shared_ext'
10917 shlibpath_overrides_runpath=yes
10918 shlibpath_var=DYLD_LIBRARY_PATH
10919 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10920
10921 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10922 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10923 ;;
10924
10925 dgux*)
10926 version_type=linux # correct to gnu/linux during the next big refactor
10927 need_lib_prefix=no
10928 need_version=no
10929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10930 soname_spec='${libname}${release}${shared_ext}$major'
10931 shlibpath_var=LD_LIBRARY_PATH
10932 ;;
10933
10934 freebsd* | dragonfly*)
10935 # DragonFly does not have aout. When/if they implement a new
10936 # versioning mechanism, adjust this.
10937 if test -x /usr/bin/objformat; then
10938 objformat=`/usr/bin/objformat`
10939 else
10940 case $host_os in
10941 freebsd[23].*) objformat=aout ;;
10942 *) objformat=elf ;;
10943 esac
10944 fi
10945 version_type=freebsd-$objformat
10946 case $version_type in
10947 freebsd-elf*)
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10949 need_version=no
10950 need_lib_prefix=no
10951 ;;
10952 freebsd-*)
10953 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10954 need_version=yes
10955 ;;
10956 esac
10957 shlibpath_var=LD_LIBRARY_PATH
10958 case $host_os in
10959 freebsd2.*)
10960 shlibpath_overrides_runpath=yes
10961 ;;
10962 freebsd3.[01]* | freebsdelf3.[01]*)
10963 shlibpath_overrides_runpath=yes
10964 hardcode_into_libs=yes
10965 ;;
10966 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10967 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10968 shlibpath_overrides_runpath=no
10969 hardcode_into_libs=yes
10970 ;;
10971 *) # from 4.6 on, and DragonFly
10972 shlibpath_overrides_runpath=yes
10973 hardcode_into_libs=yes
10974 ;;
10975 esac
10976 ;;
10977
10978 haiku*)
10979 version_type=linux # correct to gnu/linux during the next big refactor
10980 need_lib_prefix=no
10981 need_version=no
10982 dynamic_linker="$host_os runtime_loader"
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10984 soname_spec='${libname}${release}${shared_ext}$major'
10985 shlibpath_var=LIBRARY_PATH
10986 shlibpath_overrides_runpath=yes
10987 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10988 hardcode_into_libs=yes
10989 ;;
10990
10991 hpux9* | hpux10* | hpux11*)
10992 # Give a soname corresponding to the major version so that dld.sl refuses to
10993 # link against other versions.
10994 version_type=sunos
10995 need_lib_prefix=no
10996 need_version=no
10997 case $host_cpu in
10998 ia64*)
10999 shrext_cmds='.so'
11000 hardcode_into_libs=yes
11001 dynamic_linker="$host_os dld.so"
11002 shlibpath_var=LD_LIBRARY_PATH
11003 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11005 soname_spec='${libname}${release}${shared_ext}$major'
11006 if test "X$HPUX_IA64_MODE" = X32; then
11007 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11008 else
11009 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11010 fi
11011 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11012 ;;
11013 hppa*64*)
11014 shrext_cmds='.sl'
11015 hardcode_into_libs=yes
11016 dynamic_linker="$host_os dld.sl"
11017 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11018 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11020 soname_spec='${libname}${release}${shared_ext}$major'
11021 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11022 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11023 ;;
11024 *)
11025 shrext_cmds='.sl'
11026 dynamic_linker="$host_os dld.sl"
11027 shlibpath_var=SHLIB_PATH
11028 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11030 soname_spec='${libname}${release}${shared_ext}$major'
11031 ;;
11032 esac
11033 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11034 postinstall_cmds='chmod 555 $lib'
11035 # or fails outright, so override atomically:
11036 install_override_mode=555
11037 ;;
11038
11039 interix[3-9]*)
11040 version_type=linux # correct to gnu/linux during the next big refactor
11041 need_lib_prefix=no
11042 need_version=no
11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11044 soname_spec='${libname}${release}${shared_ext}$major'
11045 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11046 shlibpath_var=LD_LIBRARY_PATH
11047 shlibpath_overrides_runpath=no
11048 hardcode_into_libs=yes
11049 ;;
11050
11051 irix5* | irix6* | nonstopux*)
11052 case $host_os in
11053 nonstopux*) version_type=nonstopux ;;
11054 *)
11055 if test "$lt_cv_prog_gnu_ld" = yes; then
11056 version_type=linux # correct to gnu/linux during the next big refactor
11057 else
11058 version_type=irix
11059 fi ;;
11060 esac
11061 need_lib_prefix=no
11062 need_version=no
11063 soname_spec='${libname}${release}${shared_ext}$major'
11064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11065 case $host_os in
11066 irix5* | nonstopux*)
11067 libsuff= shlibsuff=
11068 ;;
11069 *)
11070 case $LD in # libtool.m4 will add one of these switches to LD
11071 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11072 libsuff= shlibsuff= libmagic=32-bit;;
11073 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11074 libsuff=32 shlibsuff=N32 libmagic=N32;;
11075 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11076 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11077 *) libsuff= shlibsuff= libmagic=never-match;;
11078 esac
11079 ;;
11080 esac
11081 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11082 shlibpath_overrides_runpath=no
11083 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11084 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11085 hardcode_into_libs=yes
11086 ;;
11087
11088 # No shared lib support for Linux oldld, aout, or coff.
11089 linux*oldld* | linux*aout* | linux*coff*)
11090 dynamic_linker=no
11091 ;;
11092
11093 # This must be glibc/ELF.
11094 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11095 version_type=linux # correct to gnu/linux during the next big refactor
11096 need_lib_prefix=no
11097 need_version=no
11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11099 soname_spec='${libname}${release}${shared_ext}$major'
11100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11101 shlibpath_var=LD_LIBRARY_PATH
11102 shlibpath_overrides_runpath=no
11103
11104 # Some binutils ld are patched to set DT_RUNPATH
11105 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11106 $as_echo_n "(cached) " >&6
11107 else
11108 lt_cv_shlibpath_overrides_runpath=no
11109 save_LDFLAGS=$LDFLAGS
11110 save_libdir=$libdir
11111 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11112 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11114 /* end confdefs.h. */
11115
11116 int
11117 main ()
11118 {
11119
11120 ;
11121 return 0;
11122 }
11123 _ACEOF
11124 if ac_fn_c_try_link "$LINENO"; then :
11125 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11126 lt_cv_shlibpath_overrides_runpath=yes
11127 fi
11128 fi
11129 rm -f core conftest.err conftest.$ac_objext \
11130 conftest$ac_exeext conftest.$ac_ext
11131 LDFLAGS=$save_LDFLAGS
11132 libdir=$save_libdir
11133
11134 fi
11135
11136 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11137
11138 # This implies no fast_install, which is unacceptable.
11139 # Some rework will be needed to allow for fast_install
11140 # before this can be enabled.
11141 hardcode_into_libs=yes
11142
11143 # Append ld.so.conf contents to the search path
11144 if test -f /etc/ld.so.conf; then
11145 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' ' '`
11146 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11147 fi
11148
11149 # We used to test for /lib/ld.so.1 and disable shared libraries on
11150 # powerpc, because MkLinux only supported shared libraries with the
11151 # GNU dynamic linker. Since this was broken with cross compilers,
11152 # most powerpc-linux boxes support dynamic linking these days and
11153 # people can always --disable-shared, the test was removed, and we
11154 # assume the GNU/Linux dynamic linker is in use.
11155 dynamic_linker='GNU/Linux ld.so'
11156 ;;
11157
11158 netbsdelf*-gnu)
11159 version_type=linux
11160 need_lib_prefix=no
11161 need_version=no
11162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11163 soname_spec='${libname}${release}${shared_ext}$major'
11164 shlibpath_var=LD_LIBRARY_PATH
11165 shlibpath_overrides_runpath=no
11166 hardcode_into_libs=yes
11167 dynamic_linker='NetBSD ld.elf_so'
11168 ;;
11169
11170 netbsd*)
11171 version_type=sunos
11172 need_lib_prefix=no
11173 need_version=no
11174 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11176 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11177 dynamic_linker='NetBSD (a.out) ld.so'
11178 else
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11180 soname_spec='${libname}${release}${shared_ext}$major'
11181 dynamic_linker='NetBSD ld.elf_so'
11182 fi
11183 shlibpath_var=LD_LIBRARY_PATH
11184 shlibpath_overrides_runpath=yes
11185 hardcode_into_libs=yes
11186 ;;
11187
11188 newsos6)
11189 version_type=linux # correct to gnu/linux during the next big refactor
11190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11191 shlibpath_var=LD_LIBRARY_PATH
11192 shlibpath_overrides_runpath=yes
11193 ;;
11194
11195 *nto* | *qnx*)
11196 version_type=qnx
11197 need_lib_prefix=no
11198 need_version=no
11199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11200 soname_spec='${libname}${release}${shared_ext}$major'
11201 shlibpath_var=LD_LIBRARY_PATH
11202 shlibpath_overrides_runpath=no
11203 hardcode_into_libs=yes
11204 dynamic_linker='ldqnx.so'
11205 ;;
11206
11207 openbsd*)
11208 version_type=sunos
11209 sys_lib_dlsearch_path_spec="/usr/lib"
11210 need_lib_prefix=no
11211 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11212 case $host_os in
11213 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11214 *) need_version=no ;;
11215 esac
11216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11218 shlibpath_var=LD_LIBRARY_PATH
11219 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11220 case $host_os in
11221 openbsd2.[89] | openbsd2.[89].*)
11222 shlibpath_overrides_runpath=no
11223 ;;
11224 *)
11225 shlibpath_overrides_runpath=yes
11226 ;;
11227 esac
11228 else
11229 shlibpath_overrides_runpath=yes
11230 fi
11231 ;;
11232
11233 os2*)
11234 libname_spec='$name'
11235 shrext_cmds=".dll"
11236 need_lib_prefix=no
11237 library_names_spec='$libname${shared_ext} $libname.a'
11238 dynamic_linker='OS/2 ld.exe'
11239 shlibpath_var=LIBPATH
11240 ;;
11241
11242 osf3* | osf4* | osf5*)
11243 version_type=osf
11244 need_lib_prefix=no
11245 need_version=no
11246 soname_spec='${libname}${release}${shared_ext}$major'
11247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11248 shlibpath_var=LD_LIBRARY_PATH
11249 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11250 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11251 ;;
11252
11253 rdos*)
11254 dynamic_linker=no
11255 ;;
11256
11257 solaris*)
11258 version_type=linux # correct to gnu/linux during the next big refactor
11259 need_lib_prefix=no
11260 need_version=no
11261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11262 soname_spec='${libname}${release}${shared_ext}$major'
11263 shlibpath_var=LD_LIBRARY_PATH
11264 shlibpath_overrides_runpath=yes
11265 hardcode_into_libs=yes
11266 # ldd complains unless libraries are executable
11267 postinstall_cmds='chmod +x $lib'
11268 ;;
11269
11270 sunos4*)
11271 version_type=sunos
11272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11273 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11274 shlibpath_var=LD_LIBRARY_PATH
11275 shlibpath_overrides_runpath=yes
11276 if test "$with_gnu_ld" = yes; then
11277 need_lib_prefix=no
11278 fi
11279 need_version=yes
11280 ;;
11281
11282 sysv4 | sysv4.3*)
11283 version_type=linux # correct to gnu/linux during the next big refactor
11284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11285 soname_spec='${libname}${release}${shared_ext}$major'
11286 shlibpath_var=LD_LIBRARY_PATH
11287 case $host_vendor in
11288 sni)
11289 shlibpath_overrides_runpath=no
11290 need_lib_prefix=no
11291 runpath_var=LD_RUN_PATH
11292 ;;
11293 siemens)
11294 need_lib_prefix=no
11295 ;;
11296 motorola)
11297 need_lib_prefix=no
11298 need_version=no
11299 shlibpath_overrides_runpath=no
11300 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11301 ;;
11302 esac
11303 ;;
11304
11305 sysv4*MP*)
11306 if test -d /usr/nec ;then
11307 version_type=linux # correct to gnu/linux during the next big refactor
11308 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11309 soname_spec='$libname${shared_ext}.$major'
11310 shlibpath_var=LD_LIBRARY_PATH
11311 fi
11312 ;;
11313
11314 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11315 version_type=freebsd-elf
11316 need_lib_prefix=no
11317 need_version=no
11318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11319 soname_spec='${libname}${release}${shared_ext}$major'
11320 shlibpath_var=LD_LIBRARY_PATH
11321 shlibpath_overrides_runpath=yes
11322 hardcode_into_libs=yes
11323 if test "$with_gnu_ld" = yes; then
11324 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11325 else
11326 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11327 case $host_os in
11328 sco3.2v5*)
11329 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11330 ;;
11331 esac
11332 fi
11333 sys_lib_dlsearch_path_spec='/usr/lib'
11334 ;;
11335
11336 tpf*)
11337 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11338 version_type=linux # correct to gnu/linux during the next big refactor
11339 need_lib_prefix=no
11340 need_version=no
11341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11342 shlibpath_var=LD_LIBRARY_PATH
11343 shlibpath_overrides_runpath=no
11344 hardcode_into_libs=yes
11345 ;;
11346
11347 uts4*)
11348 version_type=linux # correct to gnu/linux during the next big refactor
11349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11350 soname_spec='${libname}${release}${shared_ext}$major'
11351 shlibpath_var=LD_LIBRARY_PATH
11352 ;;
11353
11354 *)
11355 dynamic_linker=no
11356 ;;
11357 esac
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11359 $as_echo "$dynamic_linker" >&6; }
11360 test "$dynamic_linker" = no && can_build_shared=no
11361
11362 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11363 if test "$GCC" = yes; then
11364 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11365 fi
11366
11367 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11368 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11369 fi
11370 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11371 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11372 fi
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11466 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11467 hardcode_action=
11468 if test -n "$hardcode_libdir_flag_spec" ||
11469 test -n "$runpath_var" ||
11470 test "X$hardcode_automatic" = "Xyes" ; then
11471
11472 # We can hardcode non-existent directories.
11473 if test "$hardcode_direct" != no &&
11474 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11475 # have to relink, otherwise we might link with an installed library
11476 # when we should be linking with a yet-to-be-installed one
11477 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11478 test "$hardcode_minus_L" != no; then
11479 # Linking always hardcodes the temporary library directory.
11480 hardcode_action=relink
11481 else
11482 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11483 hardcode_action=immediate
11484 fi
11485 else
11486 # We cannot hardcode anything, or else we can only hardcode existing
11487 # directories.
11488 hardcode_action=unsupported
11489 fi
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11491 $as_echo "$hardcode_action" >&6; }
11492
11493 if test "$hardcode_action" = relink ||
11494 test "$inherit_rpath" = yes; then
11495 # Fast installation is not supported
11496 enable_fast_install=no
11497 elif test "$shlibpath_overrides_runpath" = yes ||
11498 test "$enable_shared" = no; then
11499 # Fast installation is not necessary
11500 enable_fast_install=needless
11501 fi
11502
11503
11504
11505
11506
11507
11508 if test "x$enable_dlopen" != xyes; then
11509 enable_dlopen=unknown
11510 enable_dlopen_self=unknown
11511 enable_dlopen_self_static=unknown
11512 else
11513 lt_cv_dlopen=no
11514 lt_cv_dlopen_libs=
11515
11516 case $host_os in
11517 beos*)
11518 lt_cv_dlopen="load_add_on"
11519 lt_cv_dlopen_libs=
11520 lt_cv_dlopen_self=yes
11521 ;;
11522
11523 mingw* | pw32* | cegcc*)
11524 lt_cv_dlopen="LoadLibrary"
11525 lt_cv_dlopen_libs=
11526 ;;
11527
11528 cygwin*)
11529 lt_cv_dlopen="dlopen"
11530 lt_cv_dlopen_libs=
11531 ;;
11532
11533 darwin*)
11534 # if libdl is installed we need to link against it
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11536 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11537 if ${ac_cv_lib_dl_dlopen+:} false; then :
11538 $as_echo_n "(cached) " >&6
11539 else
11540 ac_check_lib_save_LIBS=$LIBS
11541 LIBS="-ldl $LIBS"
11542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11543 /* end confdefs.h. */
11544
11545 /* Override any GCC internal prototype to avoid an error.
11546 Use char because int might match the return type of a GCC
11547 builtin and then its argument prototype would still apply. */
11548 #ifdef __cplusplus
11549 extern "C"
11550 #endif
11551 char dlopen ();
11552 int
11553 main ()
11554 {
11555 return dlopen ();
11556 ;
11557 return 0;
11558 }
11559 _ACEOF
11560 if ac_fn_c_try_link "$LINENO"; then :
11561 ac_cv_lib_dl_dlopen=yes
11562 else
11563 ac_cv_lib_dl_dlopen=no
11564 fi
11565 rm -f core conftest.err conftest.$ac_objext \
11566 conftest$ac_exeext conftest.$ac_ext
11567 LIBS=$ac_check_lib_save_LIBS
11568 fi
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11570 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11571 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11572 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11573 else
11574
11575 lt_cv_dlopen="dyld"
11576 lt_cv_dlopen_libs=
11577 lt_cv_dlopen_self=yes
11578
11579 fi
11580
11581 ;;
11582
11583 *)
11584 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11585 if test "x$ac_cv_func_shl_load" = xyes; then :
11586 lt_cv_dlopen="shl_load"
11587 else
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11589 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11590 if ${ac_cv_lib_dld_shl_load+:} false; then :
11591 $as_echo_n "(cached) " >&6
11592 else
11593 ac_check_lib_save_LIBS=$LIBS
11594 LIBS="-ldld $LIBS"
11595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11596 /* end confdefs.h. */
11597
11598 /* Override any GCC internal prototype to avoid an error.
11599 Use char because int might match the return type of a GCC
11600 builtin and then its argument prototype would still apply. */
11601 #ifdef __cplusplus
11602 extern "C"
11603 #endif
11604 char shl_load ();
11605 int
11606 main ()
11607 {
11608 return shl_load ();
11609 ;
11610 return 0;
11611 }
11612 _ACEOF
11613 if ac_fn_c_try_link "$LINENO"; then :
11614 ac_cv_lib_dld_shl_load=yes
11615 else
11616 ac_cv_lib_dld_shl_load=no
11617 fi
11618 rm -f core conftest.err conftest.$ac_objext \
11619 conftest$ac_exeext conftest.$ac_ext
11620 LIBS=$ac_check_lib_save_LIBS
11621 fi
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11623 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11624 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11625 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11626 else
11627 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11628 if test "x$ac_cv_func_dlopen" = xyes; then :
11629 lt_cv_dlopen="dlopen"
11630 else
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11632 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11633 if ${ac_cv_lib_dl_dlopen+:} false; then :
11634 $as_echo_n "(cached) " >&6
11635 else
11636 ac_check_lib_save_LIBS=$LIBS
11637 LIBS="-ldl $LIBS"
11638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639 /* end confdefs.h. */
11640
11641 /* Override any GCC internal prototype to avoid an error.
11642 Use char because int might match the return type of a GCC
11643 builtin and then its argument prototype would still apply. */
11644 #ifdef __cplusplus
11645 extern "C"
11646 #endif
11647 char dlopen ();
11648 int
11649 main ()
11650 {
11651 return dlopen ();
11652 ;
11653 return 0;
11654 }
11655 _ACEOF
11656 if ac_fn_c_try_link "$LINENO"; then :
11657 ac_cv_lib_dl_dlopen=yes
11658 else
11659 ac_cv_lib_dl_dlopen=no
11660 fi
11661 rm -f core conftest.err conftest.$ac_objext \
11662 conftest$ac_exeext conftest.$ac_ext
11663 LIBS=$ac_check_lib_save_LIBS
11664 fi
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11666 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11667 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11668 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11669 else
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11671 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11672 if ${ac_cv_lib_svld_dlopen+:} false; then :
11673 $as_echo_n "(cached) " >&6
11674 else
11675 ac_check_lib_save_LIBS=$LIBS
11676 LIBS="-lsvld $LIBS"
11677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11678 /* end confdefs.h. */
11679
11680 /* Override any GCC internal prototype to avoid an error.
11681 Use char because int might match the return type of a GCC
11682 builtin and then its argument prototype would still apply. */
11683 #ifdef __cplusplus
11684 extern "C"
11685 #endif
11686 char dlopen ();
11687 int
11688 main ()
11689 {
11690 return dlopen ();
11691 ;
11692 return 0;
11693 }
11694 _ACEOF
11695 if ac_fn_c_try_link "$LINENO"; then :
11696 ac_cv_lib_svld_dlopen=yes
11697 else
11698 ac_cv_lib_svld_dlopen=no
11699 fi
11700 rm -f core conftest.err conftest.$ac_objext \
11701 conftest$ac_exeext conftest.$ac_ext
11702 LIBS=$ac_check_lib_save_LIBS
11703 fi
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11705 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11706 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11707 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11708 else
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11710 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11711 if ${ac_cv_lib_dld_dld_link+:} false; then :
11712 $as_echo_n "(cached) " >&6
11713 else
11714 ac_check_lib_save_LIBS=$LIBS
11715 LIBS="-ldld $LIBS"
11716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11717 /* end confdefs.h. */
11718
11719 /* Override any GCC internal prototype to avoid an error.
11720 Use char because int might match the return type of a GCC
11721 builtin and then its argument prototype would still apply. */
11722 #ifdef __cplusplus
11723 extern "C"
11724 #endif
11725 char dld_link ();
11726 int
11727 main ()
11728 {
11729 return dld_link ();
11730 ;
11731 return 0;
11732 }
11733 _ACEOF
11734 if ac_fn_c_try_link "$LINENO"; then :
11735 ac_cv_lib_dld_dld_link=yes
11736 else
11737 ac_cv_lib_dld_dld_link=no
11738 fi
11739 rm -f core conftest.err conftest.$ac_objext \
11740 conftest$ac_exeext conftest.$ac_ext
11741 LIBS=$ac_check_lib_save_LIBS
11742 fi
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11744 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11745 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11746 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11747 fi
11748
11749
11750 fi
11751
11752
11753 fi
11754
11755
11756 fi
11757
11758
11759 fi
11760
11761
11762 fi
11763
11764 ;;
11765 esac
11766
11767 if test "x$lt_cv_dlopen" != xno; then
11768 enable_dlopen=yes
11769 else
11770 enable_dlopen=no
11771 fi
11772
11773 case $lt_cv_dlopen in
11774 dlopen)
11775 save_CPPFLAGS="$CPPFLAGS"
11776 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11777
11778 save_LDFLAGS="$LDFLAGS"
11779 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11780
11781 save_LIBS="$LIBS"
11782 LIBS="$lt_cv_dlopen_libs $LIBS"
11783
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11785 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11786 if ${lt_cv_dlopen_self+:} false; then :
11787 $as_echo_n "(cached) " >&6
11788 else
11789 if test "$cross_compiling" = yes; then :
11790 lt_cv_dlopen_self=cross
11791 else
11792 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11793 lt_status=$lt_dlunknown
11794 cat > conftest.$ac_ext <<_LT_EOF
11795 #line $LINENO "configure"
11796 #include "confdefs.h"
11797
11798 #if HAVE_DLFCN_H
11799 #include <dlfcn.h>
11800 #endif
11801
11802 #include <stdio.h>
11803
11804 #ifdef RTLD_GLOBAL
11805 # define LT_DLGLOBAL RTLD_GLOBAL
11806 #else
11807 # ifdef DL_GLOBAL
11808 # define LT_DLGLOBAL DL_GLOBAL
11809 # else
11810 # define LT_DLGLOBAL 0
11811 # endif
11812 #endif
11813
11814 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11815 find out it does not work in some platform. */
11816 #ifndef LT_DLLAZY_OR_NOW
11817 # ifdef RTLD_LAZY
11818 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11819 # else
11820 # ifdef DL_LAZY
11821 # define LT_DLLAZY_OR_NOW DL_LAZY
11822 # else
11823 # ifdef RTLD_NOW
11824 # define LT_DLLAZY_OR_NOW RTLD_NOW
11825 # else
11826 # ifdef DL_NOW
11827 # define LT_DLLAZY_OR_NOW DL_NOW
11828 # else
11829 # define LT_DLLAZY_OR_NOW 0
11830 # endif
11831 # endif
11832 # endif
11833 # endif
11834 #endif
11835
11836 /* When -fvisbility=hidden is used, assume the code has been annotated
11837 correspondingly for the symbols needed. */
11838 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11839 int fnord () __attribute__((visibility("default")));
11840 #endif
11841
11842 int fnord () { return 42; }
11843 int main ()
11844 {
11845 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11846 int status = $lt_dlunknown;
11847
11848 if (self)
11849 {
11850 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11851 else
11852 {
11853 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11854 else puts (dlerror ());
11855 }
11856 /* dlclose (self); */
11857 }
11858 else
11859 puts (dlerror ());
11860
11861 return status;
11862 }
11863 _LT_EOF
11864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11865 (eval $ac_link) 2>&5
11866 ac_status=$?
11867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11868 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11869 (./conftest; exit; ) >&5 2>/dev/null
11870 lt_status=$?
11871 case x$lt_status in
11872 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11873 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11874 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11875 esac
11876 else :
11877 # compilation failed
11878 lt_cv_dlopen_self=no
11879 fi
11880 fi
11881 rm -fr conftest*
11882
11883
11884 fi
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11886 $as_echo "$lt_cv_dlopen_self" >&6; }
11887
11888 if test "x$lt_cv_dlopen_self" = xyes; then
11889 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11891 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11892 if ${lt_cv_dlopen_self_static+:} false; then :
11893 $as_echo_n "(cached) " >&6
11894 else
11895 if test "$cross_compiling" = yes; then :
11896 lt_cv_dlopen_self_static=cross
11897 else
11898 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11899 lt_status=$lt_dlunknown
11900 cat > conftest.$ac_ext <<_LT_EOF
11901 #line $LINENO "configure"
11902 #include "confdefs.h"
11903
11904 #if HAVE_DLFCN_H
11905 #include <dlfcn.h>
11906 #endif
11907
11908 #include <stdio.h>
11909
11910 #ifdef RTLD_GLOBAL
11911 # define LT_DLGLOBAL RTLD_GLOBAL
11912 #else
11913 # ifdef DL_GLOBAL
11914 # define LT_DLGLOBAL DL_GLOBAL
11915 # else
11916 # define LT_DLGLOBAL 0
11917 # endif
11918 #endif
11919
11920 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11921 find out it does not work in some platform. */
11922 #ifndef LT_DLLAZY_OR_NOW
11923 # ifdef RTLD_LAZY
11924 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11925 # else
11926 # ifdef DL_LAZY
11927 # define LT_DLLAZY_OR_NOW DL_LAZY
11928 # else
11929 # ifdef RTLD_NOW
11930 # define LT_DLLAZY_OR_NOW RTLD_NOW
11931 # else
11932 # ifdef DL_NOW
11933 # define LT_DLLAZY_OR_NOW DL_NOW
11934 # else
11935 # define LT_DLLAZY_OR_NOW 0
11936 # endif
11937 # endif
11938 # endif
11939 # endif
11940 #endif
11941
11942 /* When -fvisbility=hidden is used, assume the code has been annotated
11943 correspondingly for the symbols needed. */
11944 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11945 int fnord () __attribute__((visibility("default")));
11946 #endif
11947
11948 int fnord () { return 42; }
11949 int main ()
11950 {
11951 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11952 int status = $lt_dlunknown;
11953
11954 if (self)
11955 {
11956 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11957 else
11958 {
11959 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11960 else puts (dlerror ());
11961 }
11962 /* dlclose (self); */
11963 }
11964 else
11965 puts (dlerror ());
11966
11967 return status;
11968 }
11969 _LT_EOF
11970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11971 (eval $ac_link) 2>&5
11972 ac_status=$?
11973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11974 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11975 (./conftest; exit; ) >&5 2>/dev/null
11976 lt_status=$?
11977 case x$lt_status in
11978 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11979 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11980 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11981 esac
11982 else :
11983 # compilation failed
11984 lt_cv_dlopen_self_static=no
11985 fi
11986 fi
11987 rm -fr conftest*
11988
11989
11990 fi
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11992 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11993 fi
11994
11995 CPPFLAGS="$save_CPPFLAGS"
11996 LDFLAGS="$save_LDFLAGS"
11997 LIBS="$save_LIBS"
11998 ;;
11999 esac
12000
12001 case $lt_cv_dlopen_self in
12002 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12003 *) enable_dlopen_self=unknown ;;
12004 esac
12005
12006 case $lt_cv_dlopen_self_static in
12007 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12008 *) enable_dlopen_self_static=unknown ;;
12009 esac
12010 fi
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028 striplib=
12029 old_striplib=
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12031 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12032 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12033 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12034 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12036 $as_echo "yes" >&6; }
12037 else
12038 # FIXME - insert some real tests, host_os isn't really good enough
12039 case $host_os in
12040 darwin*)
12041 if test -n "$STRIP" ; then
12042 striplib="$STRIP -x"
12043 old_striplib="$STRIP -S"
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12045 $as_echo "yes" >&6; }
12046 else
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048 $as_echo "no" >&6; }
12049 fi
12050 ;;
12051 *)
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12053 $as_echo "no" >&6; }
12054 ;;
12055 esac
12056 fi
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069 # Report which library types will actually be built
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12071 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12073 $as_echo "$can_build_shared" >&6; }
12074
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12076 $as_echo_n "checking whether to build shared libraries... " >&6; }
12077 test "$can_build_shared" = "no" && enable_shared=no
12078
12079 # On AIX, shared libraries and static libraries use the same namespace, and
12080 # are all built from PIC.
12081 case $host_os in
12082 aix3*)
12083 test "$enable_shared" = yes && enable_static=no
12084 if test -n "$RANLIB"; then
12085 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12086 postinstall_cmds='$RANLIB $lib'
12087 fi
12088 ;;
12089
12090 aix[4-9]*)
12091 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12092 test "$enable_shared" = yes && enable_static=no
12093 fi
12094 ;;
12095 esac
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12097 $as_echo "$enable_shared" >&6; }
12098
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12100 $as_echo_n "checking whether to build static libraries... " >&6; }
12101 # Make sure either enable_shared or enable_static is yes.
12102 test "$enable_shared" = yes || enable_static=yes
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12104 $as_echo "$enable_static" >&6; }
12105
12106
12107
12108
12109 fi
12110 ac_ext=c
12111 ac_cpp='$CPP $CPPFLAGS'
12112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12115
12116 CC="$lt_save_CC"
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132 ac_config_commands="$ac_config_commands libtool"
12133
12134
12135
12136
12137 # Only expand once:
12138
12139
12140
12141
12142
12143 # Check for C++ compiler and use it to compile the tests.
12144 #
12145 ac_ext=cpp
12146 ac_cpp='$CXXCPP $CPPFLAGS'
12147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12150 if test -z "$CXX"; then
12151 if test -n "$CCC"; then
12152 CXX=$CCC
12153 else
12154 if test -n "$ac_tool_prefix"; then
12155 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12156 do
12157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12158 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12160 $as_echo_n "checking for $ac_word... " >&6; }
12161 if ${ac_cv_prog_CXX+:} false; then :
12162 $as_echo_n "(cached) " >&6
12163 else
12164 if test -n "$CXX"; then
12165 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12166 else
12167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12168 for as_dir in $PATH
12169 do
12170 IFS=$as_save_IFS
12171 test -z "$as_dir" && as_dir=.
12172 for ac_exec_ext in '' $ac_executable_extensions; do
12173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12174 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12176 break 2
12177 fi
12178 done
12179 done
12180 IFS=$as_save_IFS
12181
12182 fi
12183 fi
12184 CXX=$ac_cv_prog_CXX
12185 if test -n "$CXX"; then
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12187 $as_echo "$CXX" >&6; }
12188 else
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190 $as_echo "no" >&6; }
12191 fi
12192
12193
12194 test -n "$CXX" && break
12195 done
12196 fi
12197 if test -z "$CXX"; then
12198 ac_ct_CXX=$CXX
12199 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12200 do
12201 # Extract the first word of "$ac_prog", so it can be a program name with args.
12202 set dummy $ac_prog; ac_word=$2
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12204 $as_echo_n "checking for $ac_word... " >&6; }
12205 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12206 $as_echo_n "(cached) " >&6
12207 else
12208 if test -n "$ac_ct_CXX"; then
12209 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12210 else
12211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212 for as_dir in $PATH
12213 do
12214 IFS=$as_save_IFS
12215 test -z "$as_dir" && as_dir=.
12216 for ac_exec_ext in '' $ac_executable_extensions; do
12217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12218 ac_cv_prog_ac_ct_CXX="$ac_prog"
12219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12220 break 2
12221 fi
12222 done
12223 done
12224 IFS=$as_save_IFS
12225
12226 fi
12227 fi
12228 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12229 if test -n "$ac_ct_CXX"; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12231 $as_echo "$ac_ct_CXX" >&6; }
12232 else
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234 $as_echo "no" >&6; }
12235 fi
12236
12237
12238 test -n "$ac_ct_CXX" && break
12239 done
12240
12241 if test "x$ac_ct_CXX" = x; then
12242 CXX="g++"
12243 else
12244 case $cross_compiling:$ac_tool_warned in
12245 yes:)
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12248 ac_tool_warned=yes ;;
12249 esac
12250 CXX=$ac_ct_CXX
12251 fi
12252 fi
12253
12254 fi
12255 fi
12256 # Provide some information about the compiler.
12257 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12258 set X $ac_compile
12259 ac_compiler=$2
12260 for ac_option in --version -v -V -qversion; do
12261 { { ac_try="$ac_compiler $ac_option >&5"
12262 case "(($ac_try" in
12263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264 *) ac_try_echo=$ac_try;;
12265 esac
12266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12267 $as_echo "$ac_try_echo"; } >&5
12268 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12269 ac_status=$?
12270 if test -s conftest.err; then
12271 sed '10a\
12272 ... rest of stderr output deleted ...
12273 10q' conftest.err >conftest.er1
12274 cat conftest.er1 >&5
12275 fi
12276 rm -f conftest.er1 conftest.err
12277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12278 test $ac_status = 0; }
12279 done
12280
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12282 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12283 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12284 $as_echo_n "(cached) " >&6
12285 else
12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h. */
12288
12289 int
12290 main ()
12291 {
12292 #ifndef __GNUC__
12293 choke me
12294 #endif
12295
12296 ;
12297 return 0;
12298 }
12299 _ACEOF
12300 if ac_fn_cxx_try_compile "$LINENO"; then :
12301 ac_compiler_gnu=yes
12302 else
12303 ac_compiler_gnu=no
12304 fi
12305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12306 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12307
12308 fi
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12310 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12311 if test $ac_compiler_gnu = yes; then
12312 GXX=yes
12313 else
12314 GXX=
12315 fi
12316 ac_test_CXXFLAGS=${CXXFLAGS+set}
12317 ac_save_CXXFLAGS=$CXXFLAGS
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12319 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12320 if ${ac_cv_prog_cxx_g+:} false; then :
12321 $as_echo_n "(cached) " >&6
12322 else
12323 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12324 ac_cxx_werror_flag=yes
12325 ac_cv_prog_cxx_g=no
12326 CXXFLAGS="-g"
12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328 /* end confdefs.h. */
12329
12330 int
12331 main ()
12332 {
12333
12334 ;
12335 return 0;
12336 }
12337 _ACEOF
12338 if ac_fn_cxx_try_compile "$LINENO"; then :
12339 ac_cv_prog_cxx_g=yes
12340 else
12341 CXXFLAGS=""
12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h. */
12344
12345 int
12346 main ()
12347 {
12348
12349 ;
12350 return 0;
12351 }
12352 _ACEOF
12353 if ac_fn_cxx_try_compile "$LINENO"; then :
12354
12355 else
12356 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12357 CXXFLAGS="-g"
12358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12359 /* end confdefs.h. */
12360
12361 int
12362 main ()
12363 {
12364
12365 ;
12366 return 0;
12367 }
12368 _ACEOF
12369 if ac_fn_cxx_try_compile "$LINENO"; then :
12370 ac_cv_prog_cxx_g=yes
12371 fi
12372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373 fi
12374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12375 fi
12376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12377 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12378 fi
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12380 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12381 if test "$ac_test_CXXFLAGS" = set; then
12382 CXXFLAGS=$ac_save_CXXFLAGS
12383 elif test $ac_cv_prog_cxx_g = yes; then
12384 if test "$GXX" = yes; then
12385 CXXFLAGS="-g -O2"
12386 else
12387 CXXFLAGS="-g"
12388 fi
12389 else
12390 if test "$GXX" = yes; then
12391 CXXFLAGS="-O2"
12392 else
12393 CXXFLAGS=
12394 fi
12395 fi
12396 ac_ext=c
12397 ac_cpp='$CPP $CPPFLAGS'
12398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12401
12402 depcc="$CXX" am_compiler_list=
12403
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12405 $as_echo_n "checking dependency style of $depcc... " >&6; }
12406 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12407 $as_echo_n "(cached) " >&6
12408 else
12409 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12410 # We make a subdir and do the tests there. Otherwise we can end up
12411 # making bogus files that we don't know about and never remove. For
12412 # instance it was reported that on HP-UX the gcc test will end up
12413 # making a dummy file named 'D' -- because '-MD' means "put the output
12414 # in D".
12415 rm -rf conftest.dir
12416 mkdir conftest.dir
12417 # Copy depcomp to subdir because otherwise we won't find it if we're
12418 # using a relative directory.
12419 cp "$am_depcomp" conftest.dir
12420 cd conftest.dir
12421 # We will build objects and dependencies in a subdirectory because
12422 # it helps to detect inapplicable dependency modes. For instance
12423 # both Tru64's cc and ICC support -MD to output dependencies as a
12424 # side effect of compilation, but ICC will put the dependencies in
12425 # the current directory while Tru64 will put them in the object
12426 # directory.
12427 mkdir sub
12428
12429 am_cv_CXX_dependencies_compiler_type=none
12430 if test "$am_compiler_list" = ""; then
12431 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12432 fi
12433 am__universal=false
12434 case " $depcc " in #(
12435 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12436 esac
12437
12438 for depmode in $am_compiler_list; do
12439 # Setup a source with many dependencies, because some compilers
12440 # like to wrap large dependency lists on column 80 (with \), and
12441 # we should not choose a depcomp mode which is confused by this.
12442 #
12443 # We need to recreate these files for each test, as the compiler may
12444 # overwrite some of them when testing with obscure command lines.
12445 # This happens at least with the AIX C compiler.
12446 : > sub/conftest.c
12447 for i in 1 2 3 4 5 6; do
12448 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12449 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12450 # Solaris 10 /bin/sh.
12451 echo '/* dummy */' > sub/conftst$i.h
12452 done
12453 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12454
12455 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12456 # mode. It turns out that the SunPro C++ compiler does not properly
12457 # handle '-M -o', and we need to detect this. Also, some Intel
12458 # versions had trouble with output in subdirs.
12459 am__obj=sub/conftest.${OBJEXT-o}
12460 am__minus_obj="-o $am__obj"
12461 case $depmode in
12462 gcc)
12463 # This depmode causes a compiler race in universal mode.
12464 test "$am__universal" = false || continue
12465 ;;
12466 nosideeffect)
12467 # After this tag, mechanisms are not by side-effect, so they'll
12468 # only be used when explicitly requested.
12469 if test "x$enable_dependency_tracking" = xyes; then
12470 continue
12471 else
12472 break
12473 fi
12474 ;;
12475 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12476 # This compiler won't grok '-c -o', but also, the minuso test has
12477 # not run yet. These depmodes are late enough in the game, and
12478 # so weak that their functioning should not be impacted.
12479 am__obj=conftest.${OBJEXT-o}
12480 am__minus_obj=
12481 ;;
12482 none) break ;;
12483 esac
12484 if depmode=$depmode \
12485 source=sub/conftest.c object=$am__obj \
12486 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12487 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12488 >/dev/null 2>conftest.err &&
12489 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12490 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12491 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12492 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12493 # icc doesn't choke on unknown options, it will just issue warnings
12494 # or remarks (even with -Werror). So we grep stderr for any message
12495 # that says an option was ignored or not supported.
12496 # When given -MP, icc 7.0 and 7.1 complain thusly:
12497 # icc: Command line warning: ignoring option '-M'; no argument required
12498 # The diagnosis changed in icc 8.0:
12499 # icc: Command line remark: option '-MP' not supported
12500 if (grep 'ignoring option' conftest.err ||
12501 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12502 am_cv_CXX_dependencies_compiler_type=$depmode
12503 break
12504 fi
12505 fi
12506 done
12507
12508 cd ..
12509 rm -rf conftest.dir
12510 else
12511 am_cv_CXX_dependencies_compiler_type=none
12512 fi
12513
12514 fi
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12516 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12517 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12518
12519 if
12520 test "x$enable_dependency_tracking" != xno \
12521 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12522 am__fastdepCXX_TRUE=
12523 am__fastdepCXX_FALSE='#'
12524 else
12525 am__fastdepCXX_TRUE='#'
12526 am__fastdepCXX_FALSE=
12527 fi
12528
12529
12530
12531
12532 func_stripname_cnf ()
12533 {
12534 case ${2} in
12535 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12536 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12537 esac
12538 } # func_stripname_cnf
12539
12540 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12541 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12542 (test "X$CXX" != "Xg++"))) ; then
12543 ac_ext=cpp
12544 ac_cpp='$CXXCPP $CPPFLAGS'
12545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12549 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12550 if test -z "$CXXCPP"; then
12551 if ${ac_cv_prog_CXXCPP+:} false; then :
12552 $as_echo_n "(cached) " >&6
12553 else
12554 # Double quotes because CXXCPP needs to be expanded
12555 for CXXCPP in "$CXX -E" "/lib/cpp"
12556 do
12557 ac_preproc_ok=false
12558 for ac_cxx_preproc_warn_flag in '' yes
12559 do
12560 # Use a header file that comes with gcc, so configuring glibc
12561 # with a fresh cross-compiler works.
12562 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12563 # <limits.h> exists even on freestanding compilers.
12564 # On the NeXT, cc -E runs the code through the compiler's parser,
12565 # not just through cpp. "Syntax error" is here to catch this case.
12566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12567 /* end confdefs.h. */
12568 #ifdef __STDC__
12569 # include <limits.h>
12570 #else
12571 # include <assert.h>
12572 #endif
12573 Syntax error
12574 _ACEOF
12575 if ac_fn_cxx_try_cpp "$LINENO"; then :
12576
12577 else
12578 # Broken: fails on valid input.
12579 continue
12580 fi
12581 rm -f conftest.err conftest.i conftest.$ac_ext
12582
12583 # OK, works on sane cases. Now check whether nonexistent headers
12584 # can be detected and how.
12585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12586 /* end confdefs.h. */
12587 #include <ac_nonexistent.h>
12588 _ACEOF
12589 if ac_fn_cxx_try_cpp "$LINENO"; then :
12590 # Broken: success on invalid input.
12591 continue
12592 else
12593 # Passes both tests.
12594 ac_preproc_ok=:
12595 break
12596 fi
12597 rm -f conftest.err conftest.i conftest.$ac_ext
12598
12599 done
12600 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12601 rm -f conftest.i conftest.err conftest.$ac_ext
12602 if $ac_preproc_ok; then :
12603 break
12604 fi
12605
12606 done
12607 ac_cv_prog_CXXCPP=$CXXCPP
12608
12609 fi
12610 CXXCPP=$ac_cv_prog_CXXCPP
12611 else
12612 ac_cv_prog_CXXCPP=$CXXCPP
12613 fi
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12615 $as_echo "$CXXCPP" >&6; }
12616 ac_preproc_ok=false
12617 for ac_cxx_preproc_warn_flag in '' yes
12618 do
12619 # Use a header file that comes with gcc, so configuring glibc
12620 # with a fresh cross-compiler works.
12621 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12622 # <limits.h> exists even on freestanding compilers.
12623 # On the NeXT, cc -E runs the code through the compiler's parser,
12624 # not just through cpp. "Syntax error" is here to catch this case.
12625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12626 /* end confdefs.h. */
12627 #ifdef __STDC__
12628 # include <limits.h>
12629 #else
12630 # include <assert.h>
12631 #endif
12632 Syntax error
12633 _ACEOF
12634 if ac_fn_cxx_try_cpp "$LINENO"; then :
12635
12636 else
12637 # Broken: fails on valid input.
12638 continue
12639 fi
12640 rm -f conftest.err conftest.i conftest.$ac_ext
12641
12642 # OK, works on sane cases. Now check whether nonexistent headers
12643 # can be detected and how.
12644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12645 /* end confdefs.h. */
12646 #include <ac_nonexistent.h>
12647 _ACEOF
12648 if ac_fn_cxx_try_cpp "$LINENO"; then :
12649 # Broken: success on invalid input.
12650 continue
12651 else
12652 # Passes both tests.
12653 ac_preproc_ok=:
12654 break
12655 fi
12656 rm -f conftest.err conftest.i conftest.$ac_ext
12657
12658 done
12659 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12660 rm -f conftest.i conftest.err conftest.$ac_ext
12661 if $ac_preproc_ok; then :
12662
12663 else
12664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12666 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12667 See \`config.log' for more details" "$LINENO" 5; }
12668 fi
12669
12670 ac_ext=c
12671 ac_cpp='$CPP $CPPFLAGS'
12672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12675
12676 else
12677 _lt_caught_CXX_error=yes
12678 fi
12679
12680 ac_ext=cpp
12681 ac_cpp='$CXXCPP $CPPFLAGS'
12682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12685
12686 archive_cmds_need_lc_CXX=no
12687 allow_undefined_flag_CXX=
12688 always_export_symbols_CXX=no
12689 archive_expsym_cmds_CXX=
12690 compiler_needs_object_CXX=no
12691 export_dynamic_flag_spec_CXX=
12692 hardcode_direct_CXX=no
12693 hardcode_direct_absolute_CXX=no
12694 hardcode_libdir_flag_spec_CXX=
12695 hardcode_libdir_separator_CXX=
12696 hardcode_minus_L_CXX=no
12697 hardcode_shlibpath_var_CXX=unsupported
12698 hardcode_automatic_CXX=no
12699 inherit_rpath_CXX=no
12700 module_cmds_CXX=
12701 module_expsym_cmds_CXX=
12702 link_all_deplibs_CXX=unknown
12703 old_archive_cmds_CXX=$old_archive_cmds
12704 reload_flag_CXX=$reload_flag
12705 reload_cmds_CXX=$reload_cmds
12706 no_undefined_flag_CXX=
12707 whole_archive_flag_spec_CXX=
12708 enable_shared_with_static_runtimes_CXX=no
12709
12710 # Source file extension for C++ test sources.
12711 ac_ext=cpp
12712
12713 # Object file extension for compiled C++ test sources.
12714 objext=o
12715 objext_CXX=$objext
12716
12717 # No sense in running all these tests if we already determined that
12718 # the CXX compiler isn't working. Some variables (like enable_shared)
12719 # are currently assumed to apply to all compilers on this platform,
12720 # and will be corrupted by setting them based on a non-working compiler.
12721 if test "$_lt_caught_CXX_error" != yes; then
12722 # Code to be used in simple compile tests
12723 lt_simple_compile_test_code="int some_variable = 0;"
12724
12725 # Code to be used in simple link tests
12726 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12727
12728 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12729
12730
12731
12732
12733
12734
12735 # If no C compiler was specified, use CC.
12736 LTCC=${LTCC-"$CC"}
12737
12738 # If no C compiler flags were specified, use CFLAGS.
12739 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12740
12741 # Allow CC to be a program name with arguments.
12742 compiler=$CC
12743
12744
12745 # save warnings/boilerplate of simple test code
12746 ac_outfile=conftest.$ac_objext
12747 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12748 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12749 _lt_compiler_boilerplate=`cat conftest.err`
12750 $RM conftest*
12751
12752 ac_outfile=conftest.$ac_objext
12753 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12754 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12755 _lt_linker_boilerplate=`cat conftest.err`
12756 $RM -r conftest*
12757
12758
12759 # Allow CC to be a program name with arguments.
12760 lt_save_CC=$CC
12761 lt_save_CFLAGS=$CFLAGS
12762 lt_save_LD=$LD
12763 lt_save_GCC=$GCC
12764 GCC=$GXX
12765 lt_save_with_gnu_ld=$with_gnu_ld
12766 lt_save_path_LD=$lt_cv_path_LD
12767 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12768 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12769 else
12770 $as_unset lt_cv_prog_gnu_ld
12771 fi
12772 if test -n "${lt_cv_path_LDCXX+set}"; then
12773 lt_cv_path_LD=$lt_cv_path_LDCXX
12774 else
12775 $as_unset lt_cv_path_LD
12776 fi
12777 test -z "${LDCXX+set}" || LD=$LDCXX
12778 CC=${CXX-"c++"}
12779 CFLAGS=$CXXFLAGS
12780 compiler=$CC
12781 compiler_CXX=$CC
12782 for cc_temp in $compiler""; do
12783 case $cc_temp in
12784 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12785 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12786 \-*) ;;
12787 *) break;;
12788 esac
12789 done
12790 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12791
12792
12793 if test -n "$compiler"; then
12794 # We don't want -fno-exception when compiling C++ code, so set the
12795 # no_builtin_flag separately
12796 if test "$GXX" = yes; then
12797 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12798 else
12799 lt_prog_compiler_no_builtin_flag_CXX=
12800 fi
12801
12802 if test "$GXX" = yes; then
12803 # Set up default GNU C++ configuration
12804
12805
12806
12807 # Check whether --with-gnu-ld was given.
12808 if test "${with_gnu_ld+set}" = set; then :
12809 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12810 else
12811 with_gnu_ld=no
12812 fi
12813
12814 ac_prog=ld
12815 if test "$GCC" = yes; then
12816 # Check if gcc -print-prog-name=ld gives a path.
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12818 $as_echo_n "checking for ld used by $CC... " >&6; }
12819 case $host in
12820 *-*-mingw*)
12821 # gcc leaves a trailing carriage return which upsets mingw
12822 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12823 *)
12824 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12825 esac
12826 case $ac_prog in
12827 # Accept absolute paths.
12828 [\\/]* | ?:[\\/]*)
12829 re_direlt='/[^/][^/]*/\.\./'
12830 # Canonicalize the pathname of ld
12831 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12832 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12833 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12834 done
12835 test -z "$LD" && LD="$ac_prog"
12836 ;;
12837 "")
12838 # If it fails, then pretend we aren't using GCC.
12839 ac_prog=ld
12840 ;;
12841 *)
12842 # If it is relative, then search for the first ld in PATH.
12843 with_gnu_ld=unknown
12844 ;;
12845 esac
12846 elif test "$with_gnu_ld" = yes; then
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12848 $as_echo_n "checking for GNU ld... " >&6; }
12849 else
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12851 $as_echo_n "checking for non-GNU ld... " >&6; }
12852 fi
12853 if ${lt_cv_path_LD+:} false; then :
12854 $as_echo_n "(cached) " >&6
12855 else
12856 if test -z "$LD"; then
12857 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12858 for ac_dir in $PATH; do
12859 IFS="$lt_save_ifs"
12860 test -z "$ac_dir" && ac_dir=.
12861 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12862 lt_cv_path_LD="$ac_dir/$ac_prog"
12863 # Check to see if the program is GNU ld. I'd rather use --version,
12864 # but apparently some variants of GNU ld only accept -v.
12865 # Break only if it was the GNU/non-GNU ld that we prefer.
12866 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12867 *GNU* | *'with BFD'*)
12868 test "$with_gnu_ld" != no && break
12869 ;;
12870 *)
12871 test "$with_gnu_ld" != yes && break
12872 ;;
12873 esac
12874 fi
12875 done
12876 IFS="$lt_save_ifs"
12877 else
12878 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12879 fi
12880 fi
12881
12882 LD="$lt_cv_path_LD"
12883 if test -n "$LD"; then
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12885 $as_echo "$LD" >&6; }
12886 else
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12888 $as_echo "no" >&6; }
12889 fi
12890 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12892 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12893 if ${lt_cv_prog_gnu_ld+:} false; then :
12894 $as_echo_n "(cached) " >&6
12895 else
12896 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12897 case `$LD -v 2>&1 </dev/null` in
12898 *GNU* | *'with BFD'*)
12899 lt_cv_prog_gnu_ld=yes
12900 ;;
12901 *)
12902 lt_cv_prog_gnu_ld=no
12903 ;;
12904 esac
12905 fi
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12907 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12908 with_gnu_ld=$lt_cv_prog_gnu_ld
12909
12910
12911
12912
12913
12914
12915
12916 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12917 # archiving commands below assume that GNU ld is being used.
12918 if test "$with_gnu_ld" = yes; then
12919 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12920 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'
12921
12922 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12923 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12924
12925 # If archive_cmds runs LD, not CC, wlarc should be empty
12926 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12927 # investigate it a little bit more. (MM)
12928 wlarc='${wl}'
12929
12930 # ancient GNU ld didn't support --whole-archive et. al.
12931 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12932 $GREP 'no-whole-archive' > /dev/null; then
12933 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12934 else
12935 whole_archive_flag_spec_CXX=
12936 fi
12937 else
12938 with_gnu_ld=no
12939 wlarc=
12940
12941 # A generic and very simple default shared library creation
12942 # command for GNU C++ for the case where it uses the native
12943 # linker, instead of GNU ld. If possible, this setting should
12944 # overridden to take advantage of the native linker features on
12945 # the platform it is being used on.
12946 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12947 fi
12948
12949 # Commands to make compiler produce verbose output that lists
12950 # what "hidden" libraries, object files and flags are used when
12951 # linking a shared library.
12952 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12953
12954 else
12955 GXX=no
12956 with_gnu_ld=no
12957 wlarc=
12958 fi
12959
12960 # PORTME: fill in a description of your system's C++ link characteristics
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12962 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12963 ld_shlibs_CXX=yes
12964 case $host_os in
12965 aix3*)
12966 # FIXME: insert proper C++ library support
12967 ld_shlibs_CXX=no
12968 ;;
12969 aix[4-9]*)
12970 if test "$host_cpu" = ia64; then
12971 # On IA64, the linker does run time linking by default, so we don't
12972 # have to do anything special.
12973 aix_use_runtimelinking=no
12974 exp_sym_flag='-Bexport'
12975 no_entry_flag=""
12976 else
12977 aix_use_runtimelinking=no
12978
12979 # Test if we are trying to use run time linking or normal
12980 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12981 # need to do runtime linking.
12982 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12983 for ld_flag in $LDFLAGS; do
12984 case $ld_flag in
12985 *-brtl*)
12986 aix_use_runtimelinking=yes
12987 break
12988 ;;
12989 esac
12990 done
12991 ;;
12992 esac
12993
12994 exp_sym_flag='-bexport'
12995 no_entry_flag='-bnoentry'
12996 fi
12997
12998 # When large executables or shared objects are built, AIX ld can
12999 # have problems creating the table of contents. If linking a library
13000 # or program results in "error TOC overflow" add -mminimal-toc to
13001 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13002 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13003
13004 archive_cmds_CXX=''
13005 hardcode_direct_CXX=yes
13006 hardcode_direct_absolute_CXX=yes
13007 hardcode_libdir_separator_CXX=':'
13008 link_all_deplibs_CXX=yes
13009 file_list_spec_CXX='${wl}-f,'
13010
13011 if test "$GXX" = yes; then
13012 case $host_os in aix4.[012]|aix4.[012].*)
13013 # We only want to do this on AIX 4.2 and lower, the check
13014 # below for broken collect2 doesn't work under 4.3+
13015 collect2name=`${CC} -print-prog-name=collect2`
13016 if test -f "$collect2name" &&
13017 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13018 then
13019 # We have reworked collect2
13020 :
13021 else
13022 # We have old collect2
13023 hardcode_direct_CXX=unsupported
13024 # It fails to find uninstalled libraries when the uninstalled
13025 # path is not listed in the libpath. Setting hardcode_minus_L
13026 # to unsupported forces relinking
13027 hardcode_minus_L_CXX=yes
13028 hardcode_libdir_flag_spec_CXX='-L$libdir'
13029 hardcode_libdir_separator_CXX=
13030 fi
13031 esac
13032 shared_flag='-shared'
13033 if test "$aix_use_runtimelinking" = yes; then
13034 shared_flag="$shared_flag "'${wl}-G'
13035 fi
13036 else
13037 # not using gcc
13038 if test "$host_cpu" = ia64; then
13039 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13040 # chokes on -Wl,-G. The following line is correct:
13041 shared_flag='-G'
13042 else
13043 if test "$aix_use_runtimelinking" = yes; then
13044 shared_flag='${wl}-G'
13045 else
13046 shared_flag='${wl}-bM:SRE'
13047 fi
13048 fi
13049 fi
13050
13051 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13052 # It seems that -bexpall does not export symbols beginning with
13053 # underscore (_), so it is better to generate a list of symbols to
13054 # export.
13055 always_export_symbols_CXX=yes
13056 if test "$aix_use_runtimelinking" = yes; then
13057 # Warning - without using the other runtime loading flags (-brtl),
13058 # -berok will link without error, but may produce a broken library.
13059 allow_undefined_flag_CXX='-berok'
13060 # Determine the default libpath from the value encoded in an empty
13061 # executable.
13062 if test "${lt_cv_aix_libpath+set}" = set; then
13063 aix_libpath=$lt_cv_aix_libpath
13064 else
13065 if ${lt_cv_aix_libpath__CXX+:} false; then :
13066 $as_echo_n "(cached) " >&6
13067 else
13068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069 /* end confdefs.h. */
13070
13071 int
13072 main ()
13073 {
13074
13075 ;
13076 return 0;
13077 }
13078 _ACEOF
13079 if ac_fn_cxx_try_link "$LINENO"; then :
13080
13081 lt_aix_libpath_sed='
13082 /Import File Strings/,/^$/ {
13083 /^0/ {
13084 s/^0 *\([^ ]*\) *$/\1/
13085 p
13086 }
13087 }'
13088 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13089 # Check for a 64-bit object if we didn't find anything.
13090 if test -z "$lt_cv_aix_libpath__CXX"; then
13091 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13092 fi
13093 fi
13094 rm -f core conftest.err conftest.$ac_objext \
13095 conftest$ac_exeext conftest.$ac_ext
13096 if test -z "$lt_cv_aix_libpath__CXX"; then
13097 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13098 fi
13099
13100 fi
13101
13102 aix_libpath=$lt_cv_aix_libpath__CXX
13103 fi
13104
13105 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13106
13107 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"
13108 else
13109 if test "$host_cpu" = ia64; then
13110 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13111 allow_undefined_flag_CXX="-z nodefs"
13112 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"
13113 else
13114 # Determine the default libpath from the value encoded in an
13115 # empty executable.
13116 if test "${lt_cv_aix_libpath+set}" = set; then
13117 aix_libpath=$lt_cv_aix_libpath
13118 else
13119 if ${lt_cv_aix_libpath__CXX+:} false; then :
13120 $as_echo_n "(cached) " >&6
13121 else
13122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13123 /* end confdefs.h. */
13124
13125 int
13126 main ()
13127 {
13128
13129 ;
13130 return 0;
13131 }
13132 _ACEOF
13133 if ac_fn_cxx_try_link "$LINENO"; then :
13134
13135 lt_aix_libpath_sed='
13136 /Import File Strings/,/^$/ {
13137 /^0/ {
13138 s/^0 *\([^ ]*\) *$/\1/
13139 p
13140 }
13141 }'
13142 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13143 # Check for a 64-bit object if we didn't find anything.
13144 if test -z "$lt_cv_aix_libpath__CXX"; then
13145 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13146 fi
13147 fi
13148 rm -f core conftest.err conftest.$ac_objext \
13149 conftest$ac_exeext conftest.$ac_ext
13150 if test -z "$lt_cv_aix_libpath__CXX"; then
13151 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13152 fi
13153
13154 fi
13155
13156 aix_libpath=$lt_cv_aix_libpath__CXX
13157 fi
13158
13159 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13160 # Warning - without using the other run time loading flags,
13161 # -berok will link without error, but may produce a broken library.
13162 no_undefined_flag_CXX=' ${wl}-bernotok'
13163 allow_undefined_flag_CXX=' ${wl}-berok'
13164 if test "$with_gnu_ld" = yes; then
13165 # We only use this code for GNU lds that support --whole-archive.
13166 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13167 else
13168 # Exported symbols can be pulled into shared objects from archives
13169 whole_archive_flag_spec_CXX='$convenience'
13170 fi
13171 archive_cmds_need_lc_CXX=yes
13172 # This is similar to how AIX traditionally builds its shared
13173 # libraries.
13174 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'
13175 fi
13176 fi
13177 ;;
13178
13179 beos*)
13180 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13181 allow_undefined_flag_CXX=unsupported
13182 # Joseph Beckenbach <[email protected]> says some releases of gcc
13183 # support --undefined. This deserves some investigation. FIXME
13184 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13185 else
13186 ld_shlibs_CXX=no
13187 fi
13188 ;;
13189
13190 chorus*)
13191 case $cc_basename in
13192 *)
13193 # FIXME: insert proper C++ library support
13194 ld_shlibs_CXX=no
13195 ;;
13196 esac
13197 ;;
13198
13199 cygwin* | mingw* | pw32* | cegcc*)
13200 case $GXX,$cc_basename in
13201 ,cl* | no,cl*)
13202 # Native MSVC
13203 # hardcode_libdir_flag_spec is actually meaningless, as there is
13204 # no search path for DLLs.
13205 hardcode_libdir_flag_spec_CXX=' '
13206 allow_undefined_flag_CXX=unsupported
13207 always_export_symbols_CXX=yes
13208 file_list_spec_CXX='@'
13209 # Tell ltmain to make .lib files, not .a files.
13210 libext=lib
13211 # Tell ltmain to make .dll files, not .so files.
13212 shrext_cmds=".dll"
13213 # FIXME: Setting linknames here is a bad hack.
13214 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13215 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13216 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13217 else
13218 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13219 fi~
13220 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13221 linknames='
13222 # The linker will not automatically build a static lib if we build a DLL.
13223 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13224 enable_shared_with_static_runtimes_CXX=yes
13225 # Don't use ranlib
13226 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13227 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13228 lt_tool_outputfile="@TOOL_OUTPUT@"~
13229 case $lt_outputfile in
13230 *.exe|*.EXE) ;;
13231 *)
13232 lt_outputfile="$lt_outputfile.exe"
13233 lt_tool_outputfile="$lt_tool_outputfile.exe"
13234 ;;
13235 esac~
13236 func_to_tool_file "$lt_outputfile"~
13237 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13238 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13239 $RM "$lt_outputfile.manifest";
13240 fi'
13241 ;;
13242 *)
13243 # g++
13244 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13245 # as there is no search path for DLLs.
13246 hardcode_libdir_flag_spec_CXX='-L$libdir'
13247 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13248 allow_undefined_flag_CXX=unsupported
13249 always_export_symbols_CXX=no
13250 enable_shared_with_static_runtimes_CXX=yes
13251
13252 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13253 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'
13254 # If the export-symbols file already is a .def file (1st line
13255 # is EXPORTS), use it as is; otherwise, prepend...
13256 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13257 cp $export_symbols $output_objdir/$soname.def;
13258 else
13259 echo EXPORTS > $output_objdir/$soname.def;
13260 cat $export_symbols >> $output_objdir/$soname.def;
13261 fi~
13262 $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'
13263 else
13264 ld_shlibs_CXX=no
13265 fi
13266 ;;
13267 esac
13268 ;;
13269 darwin* | rhapsody*)
13270
13271
13272 archive_cmds_need_lc_CXX=no
13273 hardcode_direct_CXX=no
13274 hardcode_automatic_CXX=yes
13275 hardcode_shlibpath_var_CXX=unsupported
13276 if test "$lt_cv_ld_force_load" = "yes"; then
13277 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\"`'
13278
13279 else
13280 whole_archive_flag_spec_CXX=''
13281 fi
13282 link_all_deplibs_CXX=yes
13283 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13284 case $cc_basename in
13285 ifort*) _lt_dar_can_shared=yes ;;
13286 *) _lt_dar_can_shared=$GCC ;;
13287 esac
13288 if test "$_lt_dar_can_shared" = "yes"; then
13289 output_verbose_link_cmd=func_echo_all
13290 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}"
13291 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13292 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}"
13293 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}"
13294 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13295 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}"
13296 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}"
13297 fi
13298
13299 else
13300 ld_shlibs_CXX=no
13301 fi
13302
13303 ;;
13304
13305 dgux*)
13306 case $cc_basename in
13307 ec++*)
13308 # FIXME: insert proper C++ library support
13309 ld_shlibs_CXX=no
13310 ;;
13311 ghcx*)
13312 # Green Hills C++ Compiler
13313 # FIXME: insert proper C++ library support
13314 ld_shlibs_CXX=no
13315 ;;
13316 *)
13317 # FIXME: insert proper C++ library support
13318 ld_shlibs_CXX=no
13319 ;;
13320 esac
13321 ;;
13322
13323 freebsd2.*)
13324 # C++ shared libraries reported to be fairly broken before
13325 # switch to ELF
13326 ld_shlibs_CXX=no
13327 ;;
13328
13329 freebsd-elf*)
13330 archive_cmds_need_lc_CXX=no
13331 ;;
13332
13333 freebsd* | dragonfly*)
13334 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13335 # conventions
13336 ld_shlibs_CXX=yes
13337 ;;
13338
13339 haiku*)
13340 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13341 link_all_deplibs_CXX=yes
13342 ;;
13343
13344 hpux9*)
13345 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13346 hardcode_libdir_separator_CXX=:
13347 export_dynamic_flag_spec_CXX='${wl}-E'
13348 hardcode_direct_CXX=yes
13349 hardcode_minus_L_CXX=yes # Not in the search PATH,
13350 # but as the default
13351 # location of the library.
13352
13353 case $cc_basename in
13354 CC*)
13355 # FIXME: insert proper C++ library support
13356 ld_shlibs_CXX=no
13357 ;;
13358 aCC*)
13359 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'
13360 # Commands to make compiler produce verbose output that lists
13361 # what "hidden" libraries, object files and flags are used when
13362 # linking a shared library.
13363 #
13364 # There doesn't appear to be a way to prevent this compiler from
13365 # explicitly linking system object files so we need to strip them
13366 # from the output so that they don't get included in the library
13367 # dependencies.
13368 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"'
13369 ;;
13370 *)
13371 if test "$GXX" = yes; then
13372 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'
13373 else
13374 # FIXME: insert proper C++ library support
13375 ld_shlibs_CXX=no
13376 fi
13377 ;;
13378 esac
13379 ;;
13380
13381 hpux10*|hpux11*)
13382 if test $with_gnu_ld = no; then
13383 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13384 hardcode_libdir_separator_CXX=:
13385
13386 case $host_cpu in
13387 hppa*64*|ia64*)
13388 ;;
13389 *)
13390 export_dynamic_flag_spec_CXX='${wl}-E'
13391 ;;
13392 esac
13393 fi
13394 case $host_cpu in
13395 hppa*64*|ia64*)
13396 hardcode_direct_CXX=no
13397 hardcode_shlibpath_var_CXX=no
13398 ;;
13399 *)
13400 hardcode_direct_CXX=yes
13401 hardcode_direct_absolute_CXX=yes
13402 hardcode_minus_L_CXX=yes # Not in the search PATH,
13403 # but as the default
13404 # location of the library.
13405 ;;
13406 esac
13407
13408 case $cc_basename in
13409 CC*)
13410 # FIXME: insert proper C++ library support
13411 ld_shlibs_CXX=no
13412 ;;
13413 aCC*)
13414 case $host_cpu in
13415 hppa*64*)
13416 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13417 ;;
13418 ia64*)
13419 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13420 ;;
13421 *)
13422 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13423 ;;
13424 esac
13425 # Commands to make compiler produce verbose output that lists
13426 # what "hidden" libraries, object files and flags are used when
13427 # linking a shared library.
13428 #
13429 # There doesn't appear to be a way to prevent this compiler from
13430 # explicitly linking system object files so we need to strip them
13431 # from the output so that they don't get included in the library
13432 # dependencies.
13433 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"'
13434 ;;
13435 *)
13436 if test "$GXX" = yes; then
13437 if test $with_gnu_ld = no; then
13438 case $host_cpu in
13439 hppa*64*)
13440 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13441 ;;
13442 ia64*)
13443 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13444 ;;
13445 *)
13446 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'
13447 ;;
13448 esac
13449 fi
13450 else
13451 # FIXME: insert proper C++ library support
13452 ld_shlibs_CXX=no
13453 fi
13454 ;;
13455 esac
13456 ;;
13457
13458 interix[3-9]*)
13459 hardcode_direct_CXX=no
13460 hardcode_shlibpath_var_CXX=no
13461 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13462 export_dynamic_flag_spec_CXX='${wl}-E'
13463 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13464 # Instead, shared libraries are loaded at an image base (0x10000000 by
13465 # default) and relocated if they conflict, which is a slow very memory
13466 # consuming and fragmenting process. To avoid this, we pick a random,
13467 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13468 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13469 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'
13470 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'
13471 ;;
13472 irix5* | irix6*)
13473 case $cc_basename in
13474 CC*)
13475 # SGI C++
13476 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'
13477
13478 # Archives containing C++ object files must be created using
13479 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13480 # necessary to make sure instantiated templates are included
13481 # in the archive.
13482 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13483 ;;
13484 *)
13485 if test "$GXX" = yes; then
13486 if test "$with_gnu_ld" = no; then
13487 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'
13488 else
13489 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'
13490 fi
13491 fi
13492 link_all_deplibs_CXX=yes
13493 ;;
13494 esac
13495 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13496 hardcode_libdir_separator_CXX=:
13497 inherit_rpath_CXX=yes
13498 ;;
13499
13500 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13501 case $cc_basename in
13502 KCC*)
13503 # Kuck and Associates, Inc. (KAI) C++ Compiler
13504
13505 # KCC will only create a shared library if the output file
13506 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13507 # to its proper name (with version) after linking.
13508 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'
13509 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'
13510 # Commands to make compiler produce verbose output that lists
13511 # what "hidden" libraries, object files and flags are used when
13512 # linking a shared library.
13513 #
13514 # There doesn't appear to be a way to prevent this compiler from
13515 # explicitly linking system object files so we need to strip them
13516 # from the output so that they don't get included in the library
13517 # dependencies.
13518 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"'
13519
13520 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13521 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13522
13523 # Archives containing C++ object files must be created using
13524 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13525 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13526 ;;
13527 icpc* | ecpc* )
13528 # Intel C++
13529 with_gnu_ld=yes
13530 # version 8.0 and above of icpc choke on multiply defined symbols
13531 # if we add $predep_objects and $postdep_objects, however 7.1 and
13532 # earlier do not add the objects themselves.
13533 case `$CC -V 2>&1` in
13534 *"Version 7."*)
13535 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13536 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'
13537 ;;
13538 *) # Version 8.0 or newer
13539 tmp_idyn=
13540 case $host_cpu in
13541 ia64*) tmp_idyn=' -i_dynamic';;
13542 esac
13543 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13544 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'
13545 ;;
13546 esac
13547 archive_cmds_need_lc_CXX=no
13548 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13549 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13550 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13551 ;;
13552 pgCC* | pgcpp*)
13553 # Portland Group C++ compiler
13554 case `$CC -V` in
13555 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13556 prelink_cmds_CXX='tpldir=Template.dir~
13557 rm -rf $tpldir~
13558 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13559 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13560 old_archive_cmds_CXX='tpldir=Template.dir~
13561 rm -rf $tpldir~
13562 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13563 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13564 $RANLIB $oldlib'
13565 archive_cmds_CXX='tpldir=Template.dir~
13566 rm -rf $tpldir~
13567 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13568 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13569 archive_expsym_cmds_CXX='tpldir=Template.dir~
13570 rm -rf $tpldir~
13571 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13572 $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'
13573 ;;
13574 *) # Version 6 and above use weak symbols
13575 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13576 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'
13577 ;;
13578 esac
13579
13580 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13581 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13582 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'
13583 ;;
13584 cxx*)
13585 # Compaq C++
13586 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13587 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'
13588
13589 runpath_var=LD_RUN_PATH
13590 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13591 hardcode_libdir_separator_CXX=:
13592
13593 # Commands to make compiler produce verbose output that lists
13594 # what "hidden" libraries, object files and flags are used when
13595 # linking a shared library.
13596 #
13597 # There doesn't appear to be a way to prevent this compiler from
13598 # explicitly linking system object files so we need to strip them
13599 # from the output so that they don't get included in the library
13600 # dependencies.
13601 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'
13602 ;;
13603 xl* | mpixl* | bgxl*)
13604 # IBM XL 8.0 on PPC, with GNU ld
13605 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13606 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13607 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13608 if test "x$supports_anon_versioning" = xyes; then
13609 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13610 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13611 echo "local: *; };" >> $output_objdir/$libname.ver~
13612 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13613 fi
13614 ;;
13615 *)
13616 case `$CC -V 2>&1 | sed 5q` in
13617 *Sun\ C*)
13618 # Sun C++ 5.9
13619 no_undefined_flag_CXX=' -zdefs'
13620 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13621 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'
13622 hardcode_libdir_flag_spec_CXX='-R$libdir'
13623 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'
13624 compiler_needs_object_CXX=yes
13625
13626 # Not sure whether something based on
13627 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13628 # would be better.
13629 output_verbose_link_cmd='func_echo_all'
13630
13631 # Archives containing C++ object files must be created using
13632 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13633 # necessary to make sure instantiated templates are included
13634 # in the archive.
13635 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13636 ;;
13637 esac
13638 ;;
13639 esac
13640 ;;
13641
13642 lynxos*)
13643 # FIXME: insert proper C++ library support
13644 ld_shlibs_CXX=no
13645 ;;
13646
13647 m88k*)
13648 # FIXME: insert proper C++ library support
13649 ld_shlibs_CXX=no
13650 ;;
13651
13652 mvs*)
13653 case $cc_basename in
13654 cxx*)
13655 # FIXME: insert proper C++ library support
13656 ld_shlibs_CXX=no
13657 ;;
13658 *)
13659 # FIXME: insert proper C++ library support
13660 ld_shlibs_CXX=no
13661 ;;
13662 esac
13663 ;;
13664
13665 netbsd*)
13666 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13667 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13668 wlarc=
13669 hardcode_libdir_flag_spec_CXX='-R$libdir'
13670 hardcode_direct_CXX=yes
13671 hardcode_shlibpath_var_CXX=no
13672 fi
13673 # Workaround some broken pre-1.5 toolchains
13674 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13675 ;;
13676
13677 *nto* | *qnx*)
13678 ld_shlibs_CXX=yes
13679 ;;
13680
13681 openbsd2*)
13682 # C++ shared libraries are fairly broken
13683 ld_shlibs_CXX=no
13684 ;;
13685
13686 openbsd*)
13687 if test -f /usr/libexec/ld.so; then
13688 hardcode_direct_CXX=yes
13689 hardcode_shlibpath_var_CXX=no
13690 hardcode_direct_absolute_CXX=yes
13691 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13692 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13693 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13694 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13695 export_dynamic_flag_spec_CXX='${wl}-E'
13696 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13697 fi
13698 output_verbose_link_cmd=func_echo_all
13699 else
13700 ld_shlibs_CXX=no
13701 fi
13702 ;;
13703
13704 osf3* | osf4* | osf5*)
13705 case $cc_basename in
13706 KCC*)
13707 # Kuck and Associates, Inc. (KAI) C++ Compiler
13708
13709 # KCC will only create a shared library if the output file
13710 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13711 # to its proper name (with version) after linking.
13712 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'
13713
13714 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13715 hardcode_libdir_separator_CXX=:
13716
13717 # Archives containing C++ object files must be created using
13718 # the KAI C++ compiler.
13719 case $host in
13720 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13721 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13722 esac
13723 ;;
13724 RCC*)
13725 # Rational C++ 2.4.1
13726 # FIXME: insert proper C++ library support
13727 ld_shlibs_CXX=no
13728 ;;
13729 cxx*)
13730 case $host in
13731 osf3*)
13732 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13733 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'
13734 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13735 ;;
13736 *)
13737 allow_undefined_flag_CXX=' -expect_unresolved \*'
13738 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'
13739 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13740 echo "-hidden">> $lib.exp~
13741 $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~
13742 $RM $lib.exp'
13743 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13744 ;;
13745 esac
13746
13747 hardcode_libdir_separator_CXX=:
13748
13749 # Commands to make compiler produce verbose output that lists
13750 # what "hidden" libraries, object files and flags are used when
13751 # linking a shared library.
13752 #
13753 # There doesn't appear to be a way to prevent this compiler from
13754 # explicitly linking system object files so we need to strip them
13755 # from the output so that they don't get included in the library
13756 # dependencies.
13757 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"'
13758 ;;
13759 *)
13760 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13761 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13762 case $host in
13763 osf3*)
13764 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'
13765 ;;
13766 *)
13767 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'
13768 ;;
13769 esac
13770
13771 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13772 hardcode_libdir_separator_CXX=:
13773
13774 # Commands to make compiler produce verbose output that lists
13775 # what "hidden" libraries, object files and flags are used when
13776 # linking a shared library.
13777 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13778
13779 else
13780 # FIXME: insert proper C++ library support
13781 ld_shlibs_CXX=no
13782 fi
13783 ;;
13784 esac
13785 ;;
13786
13787 psos*)
13788 # FIXME: insert proper C++ library support
13789 ld_shlibs_CXX=no
13790 ;;
13791
13792 sunos4*)
13793 case $cc_basename in
13794 CC*)
13795 # Sun C++ 4.x
13796 # FIXME: insert proper C++ library support
13797 ld_shlibs_CXX=no
13798 ;;
13799 lcc*)
13800 # Lucid
13801 # FIXME: insert proper C++ library support
13802 ld_shlibs_CXX=no
13803 ;;
13804 *)
13805 # FIXME: insert proper C++ library support
13806 ld_shlibs_CXX=no
13807 ;;
13808 esac
13809 ;;
13810
13811 solaris*)
13812 case $cc_basename in
13813 CC* | sunCC*)
13814 # Sun C++ 4.2, 5.x and Centerline C++
13815 archive_cmds_need_lc_CXX=yes
13816 no_undefined_flag_CXX=' -zdefs'
13817 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13818 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13819 $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'
13820
13821 hardcode_libdir_flag_spec_CXX='-R$libdir'
13822 hardcode_shlibpath_var_CXX=no
13823 case $host_os in
13824 solaris2.[0-5] | solaris2.[0-5].*) ;;
13825 *)
13826 # The compiler driver will combine and reorder linker options,
13827 # but understands `-z linker_flag'.
13828 # Supported since Solaris 2.6 (maybe 2.5.1?)
13829 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13830 ;;
13831 esac
13832 link_all_deplibs_CXX=yes
13833
13834 output_verbose_link_cmd='func_echo_all'
13835
13836 # Archives containing C++ object files must be created using
13837 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13838 # necessary to make sure instantiated templates are included
13839 # in the archive.
13840 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13841 ;;
13842 gcx*)
13843 # Green Hills C++ Compiler
13844 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13845
13846 # The C++ compiler must be used to create the archive.
13847 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13848 ;;
13849 *)
13850 # GNU C++ compiler with Solaris linker
13851 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13852 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13853 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13854 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13855 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13856 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13857
13858 # Commands to make compiler produce verbose output that lists
13859 # what "hidden" libraries, object files and flags are used when
13860 # linking a shared library.
13861 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13862 else
13863 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13864 # platform.
13865 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13866 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13867 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13868
13869 # Commands to make compiler produce verbose output that lists
13870 # what "hidden" libraries, object files and flags are used when
13871 # linking a shared library.
13872 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13873 fi
13874
13875 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13876 case $host_os in
13877 solaris2.[0-5] | solaris2.[0-5].*) ;;
13878 *)
13879 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13880 ;;
13881 esac
13882 fi
13883 ;;
13884 esac
13885 ;;
13886
13887 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13888 no_undefined_flag_CXX='${wl}-z,text'
13889 archive_cmds_need_lc_CXX=no
13890 hardcode_shlibpath_var_CXX=no
13891 runpath_var='LD_RUN_PATH'
13892
13893 case $cc_basename in
13894 CC*)
13895 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13896 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13897 ;;
13898 *)
13899 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13900 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13901 ;;
13902 esac
13903 ;;
13904
13905 sysv5* | sco3.2v5* | sco5v6*)
13906 # Note: We can NOT use -z defs as we might desire, because we do not
13907 # link with -lc, and that would cause any symbols used from libc to
13908 # always be unresolved, which means just about no library would
13909 # ever link correctly. If we're not using GNU ld we use -z text
13910 # though, which does catch some bad symbols but isn't as heavy-handed
13911 # as -z defs.
13912 no_undefined_flag_CXX='${wl}-z,text'
13913 allow_undefined_flag_CXX='${wl}-z,nodefs'
13914 archive_cmds_need_lc_CXX=no
13915 hardcode_shlibpath_var_CXX=no
13916 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13917 hardcode_libdir_separator_CXX=':'
13918 link_all_deplibs_CXX=yes
13919 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13920 runpath_var='LD_RUN_PATH'
13921
13922 case $cc_basename in
13923 CC*)
13924 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13925 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13926 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13927 '"$old_archive_cmds_CXX"
13928 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13929 '"$reload_cmds_CXX"
13930 ;;
13931 *)
13932 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13933 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13934 ;;
13935 esac
13936 ;;
13937
13938 tandem*)
13939 case $cc_basename in
13940 NCC*)
13941 # NonStop-UX NCC 3.20
13942 # FIXME: insert proper C++ library support
13943 ld_shlibs_CXX=no
13944 ;;
13945 *)
13946 # FIXME: insert proper C++ library support
13947 ld_shlibs_CXX=no
13948 ;;
13949 esac
13950 ;;
13951
13952 vxworks*)
13953 # FIXME: insert proper C++ library support
13954 ld_shlibs_CXX=no
13955 ;;
13956
13957 *)
13958 # FIXME: insert proper C++ library support
13959 ld_shlibs_CXX=no
13960 ;;
13961 esac
13962
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13964 $as_echo "$ld_shlibs_CXX" >&6; }
13965 test "$ld_shlibs_CXX" = no && can_build_shared=no
13966
13967 GCC_CXX="$GXX"
13968 LD_CXX="$LD"
13969
13970 ## CAVEAT EMPTOR:
13971 ## There is no encapsulation within the following macros, do not change
13972 ## the running order or otherwise move them around unless you know exactly
13973 ## what you are doing...
13974 # Dependencies to place before and after the object being linked:
13975 predep_objects_CXX=
13976 postdep_objects_CXX=
13977 predeps_CXX=
13978 postdeps_CXX=
13979 compiler_lib_search_path_CXX=
13980
13981 cat > conftest.$ac_ext <<_LT_EOF
13982 class Foo
13983 {
13984 public:
13985 Foo (void) { a = 0; }
13986 private:
13987 int a;
13988 };
13989 _LT_EOF
13990
13991
13992 _lt_libdeps_save_CFLAGS=$CFLAGS
13993 case "$CC $CFLAGS " in #(
13994 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13995 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13996 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13997 esac
13998
13999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14000 (eval $ac_compile) 2>&5
14001 ac_status=$?
14002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14003 test $ac_status = 0; }; then
14004 # Parse the compiler output and extract the necessary
14005 # objects, libraries and library flags.
14006
14007 # Sentinel used to keep track of whether or not we are before
14008 # the conftest object file.
14009 pre_test_object_deps_done=no
14010
14011 for p in `eval "$output_verbose_link_cmd"`; do
14012 case ${prev}${p} in
14013
14014 -L* | -R* | -l*)
14015 # Some compilers place space between "-{L,R}" and the path.
14016 # Remove the space.
14017 if test $p = "-L" ||
14018 test $p = "-R"; then
14019 prev=$p
14020 continue
14021 fi
14022
14023 # Expand the sysroot to ease extracting the directories later.
14024 if test -z "$prev"; then
14025 case $p in
14026 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14027 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14028 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14029 esac
14030 fi
14031 case $p in
14032 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14033 esac
14034 if test "$pre_test_object_deps_done" = no; then
14035 case ${prev} in
14036 -L | -R)
14037 # Internal compiler library paths should come after those
14038 # provided the user. The postdeps already come after the
14039 # user supplied libs so there is no need to process them.
14040 if test -z "$compiler_lib_search_path_CXX"; then
14041 compiler_lib_search_path_CXX="${prev}${p}"
14042 else
14043 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14044 fi
14045 ;;
14046 # The "-l" case would never come before the object being
14047 # linked, so don't bother handling this case.
14048 esac
14049 else
14050 if test -z "$postdeps_CXX"; then
14051 postdeps_CXX="${prev}${p}"
14052 else
14053 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14054 fi
14055 fi
14056 prev=
14057 ;;
14058
14059 *.lto.$objext) ;; # Ignore GCC LTO objects
14060 *.$objext)
14061 # This assumes that the test object file only shows up
14062 # once in the compiler output.
14063 if test "$p" = "conftest.$objext"; then
14064 pre_test_object_deps_done=yes
14065 continue
14066 fi
14067
14068 if test "$pre_test_object_deps_done" = no; then
14069 if test -z "$predep_objects_CXX"; then
14070 predep_objects_CXX="$p"
14071 else
14072 predep_objects_CXX="$predep_objects_CXX $p"
14073 fi
14074 else
14075 if test -z "$postdep_objects_CXX"; then
14076 postdep_objects_CXX="$p"
14077 else
14078 postdep_objects_CXX="$postdep_objects_CXX $p"
14079 fi
14080 fi
14081 ;;
14082
14083 *) ;; # Ignore the rest.
14084
14085 esac
14086 done
14087
14088 # Clean up.
14089 rm -f a.out a.exe
14090 else
14091 echo "libtool.m4: error: problem compiling CXX test program"
14092 fi
14093
14094 $RM -f confest.$objext
14095 CFLAGS=$_lt_libdeps_save_CFLAGS
14096
14097 # PORTME: override above test on systems where it is broken
14098 case $host_os in
14099 interix[3-9]*)
14100 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14101 # hack all around it, let's just trust "g++" to DTRT.
14102 predep_objects_CXX=
14103 postdep_objects_CXX=
14104 postdeps_CXX=
14105 ;;
14106
14107 linux*)
14108 case `$CC -V 2>&1 | sed 5q` in
14109 *Sun\ C*)
14110 # Sun C++ 5.9
14111
14112 # The more standards-conforming stlport4 library is
14113 # incompatible with the Cstd library. Avoid specifying
14114 # it if it's in CXXFLAGS. Ignore libCrun as
14115 # -library=stlport4 depends on it.
14116 case " $CXX $CXXFLAGS " in
14117 *" -library=stlport4 "*)
14118 solaris_use_stlport4=yes
14119 ;;
14120 esac
14121
14122 if test "$solaris_use_stlport4" != yes; then
14123 postdeps_CXX='-library=Cstd -library=Crun'
14124 fi
14125 ;;
14126 esac
14127 ;;
14128
14129 solaris*)
14130 case $cc_basename in
14131 CC* | sunCC*)
14132 # The more standards-conforming stlport4 library is
14133 # incompatible with the Cstd library. Avoid specifying
14134 # it if it's in CXXFLAGS. Ignore libCrun as
14135 # -library=stlport4 depends on it.
14136 case " $CXX $CXXFLAGS " in
14137 *" -library=stlport4 "*)
14138 solaris_use_stlport4=yes
14139 ;;
14140 esac
14141
14142 # Adding this requires a known-good setup of shared libraries for
14143 # Sun compiler versions before 5.6, else PIC objects from an old
14144 # archive will be linked into the output, leading to subtle bugs.
14145 if test "$solaris_use_stlport4" != yes; then
14146 postdeps_CXX='-library=Cstd -library=Crun'
14147 fi
14148 ;;
14149 esac
14150 ;;
14151 esac
14152
14153
14154 case " $postdeps_CXX " in
14155 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14156 esac
14157 compiler_lib_search_dirs_CXX=
14158 if test -n "${compiler_lib_search_path_CXX}"; then
14159 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14160 fi
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192 lt_prog_compiler_wl_CXX=
14193 lt_prog_compiler_pic_CXX=
14194 lt_prog_compiler_static_CXX=
14195
14196
14197 # C++ specific cases for pic, static, wl, etc.
14198 if test "$GXX" = yes; then
14199 lt_prog_compiler_wl_CXX='-Wl,'
14200 lt_prog_compiler_static_CXX='-static'
14201
14202 case $host_os in
14203 aix*)
14204 # All AIX code is PIC.
14205 if test "$host_cpu" = ia64; then
14206 # AIX 5 now supports IA64 processor
14207 lt_prog_compiler_static_CXX='-Bstatic'
14208 fi
14209 ;;
14210
14211 amigaos*)
14212 case $host_cpu in
14213 powerpc)
14214 # see comment about AmigaOS4 .so support
14215 lt_prog_compiler_pic_CXX='-fPIC'
14216 ;;
14217 m68k)
14218 # FIXME: we need at least 68020 code to build shared libraries, but
14219 # adding the `-m68020' flag to GCC prevents building anything better,
14220 # like `-m68040'.
14221 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14222 ;;
14223 esac
14224 ;;
14225
14226 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14227 # PIC is the default for these OSes.
14228 ;;
14229 mingw* | cygwin* | os2* | pw32* | cegcc*)
14230 # This hack is so that the source file can tell whether it is being
14231 # built for inclusion in a dll (and should export symbols for example).
14232 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14233 # (--disable-auto-import) libraries
14234 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14235 ;;
14236 darwin* | rhapsody*)
14237 # PIC is the default on this platform
14238 # Common symbols not allowed in MH_DYLIB files
14239 lt_prog_compiler_pic_CXX='-fno-common'
14240 ;;
14241 *djgpp*)
14242 # DJGPP does not support shared libraries at all
14243 lt_prog_compiler_pic_CXX=
14244 ;;
14245 haiku*)
14246 # PIC is the default for Haiku.
14247 # The "-static" flag exists, but is broken.
14248 lt_prog_compiler_static_CXX=
14249 ;;
14250 interix[3-9]*)
14251 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14252 # Instead, we relocate shared libraries at runtime.
14253 ;;
14254 sysv4*MP*)
14255 if test -d /usr/nec; then
14256 lt_prog_compiler_pic_CXX=-Kconform_pic
14257 fi
14258 ;;
14259 hpux*)
14260 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14261 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14262 # sets the default TLS model and affects inlining.
14263 case $host_cpu in
14264 hppa*64*)
14265 ;;
14266 *)
14267 lt_prog_compiler_pic_CXX='-fPIC'
14268 ;;
14269 esac
14270 ;;
14271 *qnx* | *nto*)
14272 # QNX uses GNU C++, but need to define -shared option too, otherwise
14273 # it will coredump.
14274 lt_prog_compiler_pic_CXX='-fPIC -shared'
14275 ;;
14276 *)
14277 lt_prog_compiler_pic_CXX='-fPIC'
14278 ;;
14279 esac
14280 else
14281 case $host_os in
14282 aix[4-9]*)
14283 # All AIX code is PIC.
14284 if test "$host_cpu" = ia64; then
14285 # AIX 5 now supports IA64 processor
14286 lt_prog_compiler_static_CXX='-Bstatic'
14287 else
14288 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14289 fi
14290 ;;
14291 chorus*)
14292 case $cc_basename in
14293 cxch68*)
14294 # Green Hills C++ Compiler
14295 # _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"
14296 ;;
14297 esac
14298 ;;
14299 mingw* | cygwin* | os2* | pw32* | cegcc*)
14300 # This hack is so that the source file can tell whether it is being
14301 # built for inclusion in a dll (and should export symbols for example).
14302 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14303 ;;
14304 dgux*)
14305 case $cc_basename in
14306 ec++*)
14307 lt_prog_compiler_pic_CXX='-KPIC'
14308 ;;
14309 ghcx*)
14310 # Green Hills C++ Compiler
14311 lt_prog_compiler_pic_CXX='-pic'
14312 ;;
14313 *)
14314 ;;
14315 esac
14316 ;;
14317 freebsd* | dragonfly*)
14318 # FreeBSD uses GNU C++
14319 ;;
14320 hpux9* | hpux10* | hpux11*)
14321 case $cc_basename in
14322 CC*)
14323 lt_prog_compiler_wl_CXX='-Wl,'
14324 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14325 if test "$host_cpu" != ia64; then
14326 lt_prog_compiler_pic_CXX='+Z'
14327 fi
14328 ;;
14329 aCC*)
14330 lt_prog_compiler_wl_CXX='-Wl,'
14331 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14332 case $host_cpu in
14333 hppa*64*|ia64*)
14334 # +Z the default
14335 ;;
14336 *)
14337 lt_prog_compiler_pic_CXX='+Z'
14338 ;;
14339 esac
14340 ;;
14341 *)
14342 ;;
14343 esac
14344 ;;
14345 interix*)
14346 # This is c89, which is MS Visual C++ (no shared libs)
14347 # Anyone wants to do a port?
14348 ;;
14349 irix5* | irix6* | nonstopux*)
14350 case $cc_basename in
14351 CC*)
14352 lt_prog_compiler_wl_CXX='-Wl,'
14353 lt_prog_compiler_static_CXX='-non_shared'
14354 # CC pic flag -KPIC is the default.
14355 ;;
14356 *)
14357 ;;
14358 esac
14359 ;;
14360 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14361 case $cc_basename in
14362 KCC*)
14363 # KAI C++ Compiler
14364 lt_prog_compiler_wl_CXX='--backend -Wl,'
14365 lt_prog_compiler_pic_CXX='-fPIC'
14366 ;;
14367 ecpc* )
14368 # old Intel C++ for x86_64 which still supported -KPIC.
14369 lt_prog_compiler_wl_CXX='-Wl,'
14370 lt_prog_compiler_pic_CXX='-KPIC'
14371 lt_prog_compiler_static_CXX='-static'
14372 ;;
14373 icpc* )
14374 # Intel C++, used to be incompatible with GCC.
14375 # ICC 10 doesn't accept -KPIC any more.
14376 lt_prog_compiler_wl_CXX='-Wl,'
14377 lt_prog_compiler_pic_CXX='-fPIC'
14378 lt_prog_compiler_static_CXX='-static'
14379 ;;
14380 pgCC* | pgcpp*)
14381 # Portland Group C++ compiler
14382 lt_prog_compiler_wl_CXX='-Wl,'
14383 lt_prog_compiler_pic_CXX='-fpic'
14384 lt_prog_compiler_static_CXX='-Bstatic'
14385 ;;
14386 cxx*)
14387 # Compaq C++
14388 # Make sure the PIC flag is empty. It appears that all Alpha
14389 # Linux and Compaq Tru64 Unix objects are PIC.
14390 lt_prog_compiler_pic_CXX=
14391 lt_prog_compiler_static_CXX='-non_shared'
14392 ;;
14393 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14394 # IBM XL 8.0, 9.0 on PPC and BlueGene
14395 lt_prog_compiler_wl_CXX='-Wl,'
14396 lt_prog_compiler_pic_CXX='-qpic'
14397 lt_prog_compiler_static_CXX='-qstaticlink'
14398 ;;
14399 *)
14400 case `$CC -V 2>&1 | sed 5q` in
14401 *Sun\ C*)
14402 # Sun C++ 5.9
14403 lt_prog_compiler_pic_CXX='-KPIC'
14404 lt_prog_compiler_static_CXX='-Bstatic'
14405 lt_prog_compiler_wl_CXX='-Qoption ld '
14406 ;;
14407 esac
14408 ;;
14409 esac
14410 ;;
14411 lynxos*)
14412 ;;
14413 m88k*)
14414 ;;
14415 mvs*)
14416 case $cc_basename in
14417 cxx*)
14418 lt_prog_compiler_pic_CXX='-W c,exportall'
14419 ;;
14420 *)
14421 ;;
14422 esac
14423 ;;
14424 netbsd* | netbsdelf*-gnu)
14425 ;;
14426 *qnx* | *nto*)
14427 # QNX uses GNU C++, but need to define -shared option too, otherwise
14428 # it will coredump.
14429 lt_prog_compiler_pic_CXX='-fPIC -shared'
14430 ;;
14431 osf3* | osf4* | osf5*)
14432 case $cc_basename in
14433 KCC*)
14434 lt_prog_compiler_wl_CXX='--backend -Wl,'
14435 ;;
14436 RCC*)
14437 # Rational C++ 2.4.1
14438 lt_prog_compiler_pic_CXX='-pic'
14439 ;;
14440 cxx*)
14441 # Digital/Compaq C++
14442 lt_prog_compiler_wl_CXX='-Wl,'
14443 # Make sure the PIC flag is empty. It appears that all Alpha
14444 # Linux and Compaq Tru64 Unix objects are PIC.
14445 lt_prog_compiler_pic_CXX=
14446 lt_prog_compiler_static_CXX='-non_shared'
14447 ;;
14448 *)
14449 ;;
14450 esac
14451 ;;
14452 psos*)
14453 ;;
14454 solaris*)
14455 case $cc_basename in
14456 CC* | sunCC*)
14457 # Sun C++ 4.2, 5.x and Centerline C++
14458 lt_prog_compiler_pic_CXX='-KPIC'
14459 lt_prog_compiler_static_CXX='-Bstatic'
14460 lt_prog_compiler_wl_CXX='-Qoption ld '
14461 ;;
14462 gcx*)
14463 # Green Hills C++ Compiler
14464 lt_prog_compiler_pic_CXX='-PIC'
14465 ;;
14466 *)
14467 ;;
14468 esac
14469 ;;
14470 sunos4*)
14471 case $cc_basename in
14472 CC*)
14473 # Sun C++ 4.x
14474 lt_prog_compiler_pic_CXX='-pic'
14475 lt_prog_compiler_static_CXX='-Bstatic'
14476 ;;
14477 lcc*)
14478 # Lucid
14479 lt_prog_compiler_pic_CXX='-pic'
14480 ;;
14481 *)
14482 ;;
14483 esac
14484 ;;
14485 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14486 case $cc_basename in
14487 CC*)
14488 lt_prog_compiler_wl_CXX='-Wl,'
14489 lt_prog_compiler_pic_CXX='-KPIC'
14490 lt_prog_compiler_static_CXX='-Bstatic'
14491 ;;
14492 esac
14493 ;;
14494 tandem*)
14495 case $cc_basename in
14496 NCC*)
14497 # NonStop-UX NCC 3.20
14498 lt_prog_compiler_pic_CXX='-KPIC'
14499 ;;
14500 *)
14501 ;;
14502 esac
14503 ;;
14504 vxworks*)
14505 ;;
14506 *)
14507 lt_prog_compiler_can_build_shared_CXX=no
14508 ;;
14509 esac
14510 fi
14511
14512 case $host_os in
14513 # For platforms which do not support PIC, -DPIC is meaningless:
14514 *djgpp*)
14515 lt_prog_compiler_pic_CXX=
14516 ;;
14517 *)
14518 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14519 ;;
14520 esac
14521
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14523 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14524 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14525 $as_echo_n "(cached) " >&6
14526 else
14527 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14528 fi
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14530 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14531 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14532
14533 #
14534 # Check to make sure the PIC flag actually works.
14535 #
14536 if test -n "$lt_prog_compiler_pic_CXX"; then
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14538 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14539 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14540 $as_echo_n "(cached) " >&6
14541 else
14542 lt_cv_prog_compiler_pic_works_CXX=no
14543 ac_outfile=conftest.$ac_objext
14544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14545 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14546 # Insert the option either (1) after the last *FLAGS variable, or
14547 # (2) before a word containing "conftest.", or (3) at the end.
14548 # Note that $ac_compile itself does not contain backslashes and begins
14549 # with a dollar sign (not a hyphen), so the echo should work correctly.
14550 # The option is referenced via a variable to avoid confusing sed.
14551 lt_compile=`echo "$ac_compile" | $SED \
14552 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14554 -e 's:$: $lt_compiler_flag:'`
14555 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14556 (eval "$lt_compile" 2>conftest.err)
14557 ac_status=$?
14558 cat conftest.err >&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 if (exit $ac_status) && test -s "$ac_outfile"; then
14561 # The compiler can only warn and ignore the option if not recognized
14562 # So say no if there are warnings other than the usual output.
14563 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14564 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14565 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14566 lt_cv_prog_compiler_pic_works_CXX=yes
14567 fi
14568 fi
14569 $RM conftest*
14570
14571 fi
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14573 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14574
14575 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14576 case $lt_prog_compiler_pic_CXX in
14577 "" | " "*) ;;
14578 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14579 esac
14580 else
14581 lt_prog_compiler_pic_CXX=
14582 lt_prog_compiler_can_build_shared_CXX=no
14583 fi
14584
14585 fi
14586
14587
14588
14589
14590
14591 #
14592 # Check to make sure the static flag actually works.
14593 #
14594 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14596 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14597 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14598 $as_echo_n "(cached) " >&6
14599 else
14600 lt_cv_prog_compiler_static_works_CXX=no
14601 save_LDFLAGS="$LDFLAGS"
14602 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14603 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14604 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14605 # The linker can only warn and ignore the option if not recognized
14606 # So say no if there are warnings
14607 if test -s conftest.err; then
14608 # Append any errors to the config.log.
14609 cat conftest.err 1>&5
14610 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14612 if diff conftest.exp conftest.er2 >/dev/null; then
14613 lt_cv_prog_compiler_static_works_CXX=yes
14614 fi
14615 else
14616 lt_cv_prog_compiler_static_works_CXX=yes
14617 fi
14618 fi
14619 $RM -r conftest*
14620 LDFLAGS="$save_LDFLAGS"
14621
14622 fi
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14624 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14625
14626 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14627 :
14628 else
14629 lt_prog_compiler_static_CXX=
14630 fi
14631
14632
14633
14634
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14636 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14637 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14638 $as_echo_n "(cached) " >&6
14639 else
14640 lt_cv_prog_compiler_c_o_CXX=no
14641 $RM -r conftest 2>/dev/null
14642 mkdir conftest
14643 cd conftest
14644 mkdir out
14645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14646
14647 lt_compiler_flag="-o out/conftest2.$ac_objext"
14648 # Insert the option either (1) after the last *FLAGS variable, or
14649 # (2) before a word containing "conftest.", or (3) at the end.
14650 # Note that $ac_compile itself does not contain backslashes and begins
14651 # with a dollar sign (not a hyphen), so the echo should work correctly.
14652 lt_compile=`echo "$ac_compile" | $SED \
14653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14655 -e 's:$: $lt_compiler_flag:'`
14656 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14657 (eval "$lt_compile" 2>out/conftest.err)
14658 ac_status=$?
14659 cat out/conftest.err >&5
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14662 then
14663 # The compiler can only warn and ignore the option if not recognized
14664 # So say no if there are warnings
14665 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14666 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14667 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14668 lt_cv_prog_compiler_c_o_CXX=yes
14669 fi
14670 fi
14671 chmod u+w . 2>&5
14672 $RM conftest*
14673 # SGI C++ compiler will create directory out/ii_files/ for
14674 # template instantiation
14675 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14676 $RM out/* && rmdir out
14677 cd ..
14678 $RM -r conftest
14679 $RM conftest*
14680
14681 fi
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14683 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14684
14685
14686
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14688 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14689 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14690 $as_echo_n "(cached) " >&6
14691 else
14692 lt_cv_prog_compiler_c_o_CXX=no
14693 $RM -r conftest 2>/dev/null
14694 mkdir conftest
14695 cd conftest
14696 mkdir out
14697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14698
14699 lt_compiler_flag="-o out/conftest2.$ac_objext"
14700 # Insert the option either (1) after the last *FLAGS variable, or
14701 # (2) before a word containing "conftest.", or (3) at the end.
14702 # Note that $ac_compile itself does not contain backslashes and begins
14703 # with a dollar sign (not a hyphen), so the echo should work correctly.
14704 lt_compile=`echo "$ac_compile" | $SED \
14705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14707 -e 's:$: $lt_compiler_flag:'`
14708 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14709 (eval "$lt_compile" 2>out/conftest.err)
14710 ac_status=$?
14711 cat out/conftest.err >&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14714 then
14715 # The compiler can only warn and ignore the option if not recognized
14716 # So say no if there are warnings
14717 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14718 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14719 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14720 lt_cv_prog_compiler_c_o_CXX=yes
14721 fi
14722 fi
14723 chmod u+w . 2>&5
14724 $RM conftest*
14725 # SGI C++ compiler will create directory out/ii_files/ for
14726 # template instantiation
14727 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14728 $RM out/* && rmdir out
14729 cd ..
14730 $RM -r conftest
14731 $RM conftest*
14732
14733 fi
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14735 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14736
14737
14738
14739
14740 hard_links="nottested"
14741 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14742 # do not overwrite the value of need_locks provided by the user
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14744 $as_echo_n "checking if we can lock with hard links... " >&6; }
14745 hard_links=yes
14746 $RM conftest*
14747 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14748 touch conftest.a
14749 ln conftest.a conftest.b 2>&5 || hard_links=no
14750 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14752 $as_echo "$hard_links" >&6; }
14753 if test "$hard_links" = no; then
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14755 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14756 need_locks=warn
14757 fi
14758 else
14759 need_locks=no
14760 fi
14761
14762
14763
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14765 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14766
14767 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14768 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14769 case $host_os in
14770 aix[4-9]*)
14771 # If we're using GNU nm, then we don't want the "-C" option.
14772 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14773 # Also, AIX nm treats weak defined symbols like other global defined
14774 # symbols, whereas GNU nm marks them as "W".
14775 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14776 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'
14777 else
14778 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'
14779 fi
14780 ;;
14781 pw32*)
14782 export_symbols_cmds_CXX="$ltdll_cmds"
14783 ;;
14784 cygwin* | mingw* | cegcc*)
14785 case $cc_basename in
14786 cl*)
14787 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14788 ;;
14789 *)
14790 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'
14791 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14792 ;;
14793 esac
14794 ;;
14795 linux* | k*bsd*-gnu | gnu*)
14796 link_all_deplibs_CXX=no
14797 ;;
14798 *)
14799 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14800 ;;
14801 esac
14802
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14804 $as_echo "$ld_shlibs_CXX" >&6; }
14805 test "$ld_shlibs_CXX" = no && can_build_shared=no
14806
14807 with_gnu_ld_CXX=$with_gnu_ld
14808
14809
14810
14811
14812
14813
14814 #
14815 # Do we need to explicitly link libc?
14816 #
14817 case "x$archive_cmds_need_lc_CXX" in
14818 x|xyes)
14819 # Assume -lc should be added
14820 archive_cmds_need_lc_CXX=yes
14821
14822 if test "$enable_shared" = yes && test "$GCC" = yes; then
14823 case $archive_cmds_CXX in
14824 *'~'*)
14825 # FIXME: we may have to deal with multi-command sequences.
14826 ;;
14827 '$CC '*)
14828 # Test whether the compiler implicitly links with -lc since on some
14829 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14830 # to ld, don't add -lc before -lgcc.
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14832 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14833 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14834 $as_echo_n "(cached) " >&6
14835 else
14836 $RM conftest*
14837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14838
14839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14840 (eval $ac_compile) 2>&5
14841 ac_status=$?
14842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14843 test $ac_status = 0; } 2>conftest.err; then
14844 soname=conftest
14845 lib=conftest
14846 libobjs=conftest.$ac_objext
14847 deplibs=
14848 wl=$lt_prog_compiler_wl_CXX
14849 pic_flag=$lt_prog_compiler_pic_CXX
14850 compiler_flags=-v
14851 linker_flags=-v
14852 verstring=
14853 output_objdir=.
14854 libname=conftest
14855 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14856 allow_undefined_flag_CXX=
14857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14858 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14859 ac_status=$?
14860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14861 test $ac_status = 0; }
14862 then
14863 lt_cv_archive_cmds_need_lc_CXX=no
14864 else
14865 lt_cv_archive_cmds_need_lc_CXX=yes
14866 fi
14867 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14868 else
14869 cat conftest.err 1>&5
14870 fi
14871 $RM conftest*
14872
14873 fi
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14875 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14876 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14877 ;;
14878 esac
14879 fi
14880 ;;
14881 esac
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14945 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14946
14947 library_names_spec=
14948 libname_spec='lib$name'
14949 soname_spec=
14950 shrext_cmds=".so"
14951 postinstall_cmds=
14952 postuninstall_cmds=
14953 finish_cmds=
14954 finish_eval=
14955 shlibpath_var=
14956 shlibpath_overrides_runpath=unknown
14957 version_type=none
14958 dynamic_linker="$host_os ld.so"
14959 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14960 need_lib_prefix=unknown
14961 hardcode_into_libs=no
14962
14963 # when you set need_version to no, make sure it does not cause -set_version
14964 # flags to be left without arguments
14965 need_version=unknown
14966
14967 case $host_os in
14968 aix3*)
14969 version_type=linux # correct to gnu/linux during the next big refactor
14970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14971 shlibpath_var=LIBPATH
14972
14973 # AIX 3 has no versioning support, so we append a major version to the name.
14974 soname_spec='${libname}${release}${shared_ext}$major'
14975 ;;
14976
14977 aix[4-9]*)
14978 version_type=linux # correct to gnu/linux during the next big refactor
14979 need_lib_prefix=no
14980 need_version=no
14981 hardcode_into_libs=yes
14982 if test "$host_cpu" = ia64; then
14983 # AIX 5 supports IA64
14984 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14985 shlibpath_var=LD_LIBRARY_PATH
14986 else
14987 # With GCC up to 2.95.x, collect2 would create an import file
14988 # for dependence libraries. The import file would start with
14989 # the line `#! .'. This would cause the generated library to
14990 # depend on `.', always an invalid library. This was fixed in
14991 # development snapshots of GCC prior to 3.0.
14992 case $host_os in
14993 aix4 | aix4.[01] | aix4.[01].*)
14994 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14995 echo ' yes '
14996 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14997 :
14998 else
14999 can_build_shared=no
15000 fi
15001 ;;
15002 esac
15003 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15004 # soname into executable. Probably we can add versioning support to
15005 # collect2, so additional links can be useful in future.
15006 if test "$aix_use_runtimelinking" = yes; then
15007 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15008 # instead of lib<name>.a to let people know that these are not
15009 # typical AIX shared libraries.
15010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15011 else
15012 # We preserve .a as extension for shared libraries through AIX4.2
15013 # and later when we are not doing run time linking.
15014 library_names_spec='${libname}${release}.a $libname.a'
15015 soname_spec='${libname}${release}${shared_ext}$major'
15016 fi
15017 shlibpath_var=LIBPATH
15018 fi
15019 ;;
15020
15021 amigaos*)
15022 case $host_cpu in
15023 powerpc)
15024 # Since July 2007 AmigaOS4 officially supports .so libraries.
15025 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15027 ;;
15028 m68k)
15029 library_names_spec='$libname.ixlibrary $libname.a'
15030 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15031 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'
15032 ;;
15033 esac
15034 ;;
15035
15036 beos*)
15037 library_names_spec='${libname}${shared_ext}'
15038 dynamic_linker="$host_os ld.so"
15039 shlibpath_var=LIBRARY_PATH
15040 ;;
15041
15042 bsdi[45]*)
15043 version_type=linux # correct to gnu/linux during the next big refactor
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15048 shlibpath_var=LD_LIBRARY_PATH
15049 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15050 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15051 # the default ld.so.conf also contains /usr/contrib/lib and
15052 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15053 # libtool to hard-code these into programs
15054 ;;
15055
15056 cygwin* | mingw* | pw32* | cegcc*)
15057 version_type=windows
15058 shrext_cmds=".dll"
15059 need_version=no
15060 need_lib_prefix=no
15061
15062 case $GCC,$cc_basename in
15063 yes,*)
15064 # gcc
15065 library_names_spec='$libname.dll.a'
15066 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15067 postinstall_cmds='base_file=`basename \${file}`~
15068 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15069 dldir=$destdir/`dirname \$dlpath`~
15070 test -d \$dldir || mkdir -p \$dldir~
15071 $install_prog $dir/$dlname \$dldir/$dlname~
15072 chmod a+x \$dldir/$dlname~
15073 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15074 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15075 fi'
15076 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15077 dlpath=$dir/\$dldll~
15078 $RM \$dlpath'
15079 shlibpath_overrides_runpath=yes
15080
15081 case $host_os in
15082 cygwin*)
15083 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15084 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15085
15086 ;;
15087 mingw* | cegcc*)
15088 # MinGW DLLs use traditional 'lib' prefix
15089 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15090 ;;
15091 pw32*)
15092 # pw32 DLLs use 'pw' prefix rather than 'lib'
15093 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15094 ;;
15095 esac
15096 dynamic_linker='Win32 ld.exe'
15097 ;;
15098
15099 *,cl*)
15100 # Native MSVC
15101 libname_spec='$name'
15102 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15103 library_names_spec='${libname}.dll.lib'
15104
15105 case $build_os in
15106 mingw*)
15107 sys_lib_search_path_spec=
15108 lt_save_ifs=$IFS
15109 IFS=';'
15110 for lt_path in $LIB
15111 do
15112 IFS=$lt_save_ifs
15113 # Let DOS variable expansion print the short 8.3 style file name.
15114 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15115 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15116 done
15117 IFS=$lt_save_ifs
15118 # Convert to MSYS style.
15119 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15120 ;;
15121 cygwin*)
15122 # Convert to unix form, then to dos form, then back to unix form
15123 # but this time dos style (no spaces!) so that the unix form looks
15124 # like /cygdrive/c/PROGRA~1:/cygdr...
15125 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15126 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15127 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15128 ;;
15129 *)
15130 sys_lib_search_path_spec="$LIB"
15131 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15132 # It is most probably a Windows format PATH.
15133 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15134 else
15135 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15136 fi
15137 # FIXME: find the short name or the path components, as spaces are
15138 # common. (e.g. "Program Files" -> "PROGRA~1")
15139 ;;
15140 esac
15141
15142 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15143 postinstall_cmds='base_file=`basename \${file}`~
15144 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15145 dldir=$destdir/`dirname \$dlpath`~
15146 test -d \$dldir || mkdir -p \$dldir~
15147 $install_prog $dir/$dlname \$dldir/$dlname'
15148 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15149 dlpath=$dir/\$dldll~
15150 $RM \$dlpath'
15151 shlibpath_overrides_runpath=yes
15152 dynamic_linker='Win32 link.exe'
15153 ;;
15154
15155 *)
15156 # Assume MSVC wrapper
15157 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15158 dynamic_linker='Win32 ld.exe'
15159 ;;
15160 esac
15161 # FIXME: first we should search . and the directory the executable is in
15162 shlibpath_var=PATH
15163 ;;
15164
15165 darwin* | rhapsody*)
15166 dynamic_linker="$host_os dyld"
15167 version_type=darwin
15168 need_lib_prefix=no
15169 need_version=no
15170 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15171 soname_spec='${libname}${release}${major}$shared_ext'
15172 shlibpath_overrides_runpath=yes
15173 shlibpath_var=DYLD_LIBRARY_PATH
15174 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15175
15176 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15177 ;;
15178
15179 dgux*)
15180 version_type=linux # correct to gnu/linux during the next big refactor
15181 need_lib_prefix=no
15182 need_version=no
15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15184 soname_spec='${libname}${release}${shared_ext}$major'
15185 shlibpath_var=LD_LIBRARY_PATH
15186 ;;
15187
15188 freebsd* | dragonfly*)
15189 # DragonFly does not have aout. When/if they implement a new
15190 # versioning mechanism, adjust this.
15191 if test -x /usr/bin/objformat; then
15192 objformat=`/usr/bin/objformat`
15193 else
15194 case $host_os in
15195 freebsd[23].*) objformat=aout ;;
15196 *) objformat=elf ;;
15197 esac
15198 fi
15199 version_type=freebsd-$objformat
15200 case $version_type in
15201 freebsd-elf*)
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15203 need_version=no
15204 need_lib_prefix=no
15205 ;;
15206 freebsd-*)
15207 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15208 need_version=yes
15209 ;;
15210 esac
15211 shlibpath_var=LD_LIBRARY_PATH
15212 case $host_os in
15213 freebsd2.*)
15214 shlibpath_overrides_runpath=yes
15215 ;;
15216 freebsd3.[01]* | freebsdelf3.[01]*)
15217 shlibpath_overrides_runpath=yes
15218 hardcode_into_libs=yes
15219 ;;
15220 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15221 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15222 shlibpath_overrides_runpath=no
15223 hardcode_into_libs=yes
15224 ;;
15225 *) # from 4.6 on, and DragonFly
15226 shlibpath_overrides_runpath=yes
15227 hardcode_into_libs=yes
15228 ;;
15229 esac
15230 ;;
15231
15232 haiku*)
15233 version_type=linux # correct to gnu/linux during the next big refactor
15234 need_lib_prefix=no
15235 need_version=no
15236 dynamic_linker="$host_os runtime_loader"
15237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15238 soname_spec='${libname}${release}${shared_ext}$major'
15239 shlibpath_var=LIBRARY_PATH
15240 shlibpath_overrides_runpath=yes
15241 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15242 hardcode_into_libs=yes
15243 ;;
15244
15245 hpux9* | hpux10* | hpux11*)
15246 # Give a soname corresponding to the major version so that dld.sl refuses to
15247 # link against other versions.
15248 version_type=sunos
15249 need_lib_prefix=no
15250 need_version=no
15251 case $host_cpu in
15252 ia64*)
15253 shrext_cmds='.so'
15254 hardcode_into_libs=yes
15255 dynamic_linker="$host_os dld.so"
15256 shlibpath_var=LD_LIBRARY_PATH
15257 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15259 soname_spec='${libname}${release}${shared_ext}$major'
15260 if test "X$HPUX_IA64_MODE" = X32; then
15261 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15262 else
15263 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15264 fi
15265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15266 ;;
15267 hppa*64*)
15268 shrext_cmds='.sl'
15269 hardcode_into_libs=yes
15270 dynamic_linker="$host_os dld.sl"
15271 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274 soname_spec='${libname}${release}${shared_ext}$major'
15275 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15277 ;;
15278 *)
15279 shrext_cmds='.sl'
15280 dynamic_linker="$host_os dld.sl"
15281 shlibpath_var=SHLIB_PATH
15282 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15284 soname_spec='${libname}${release}${shared_ext}$major'
15285 ;;
15286 esac
15287 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15288 postinstall_cmds='chmod 555 $lib'
15289 # or fails outright, so override atomically:
15290 install_override_mode=555
15291 ;;
15292
15293 interix[3-9]*)
15294 version_type=linux # correct to gnu/linux during the next big refactor
15295 need_lib_prefix=no
15296 need_version=no
15297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15298 soname_spec='${libname}${release}${shared_ext}$major'
15299 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15300 shlibpath_var=LD_LIBRARY_PATH
15301 shlibpath_overrides_runpath=no
15302 hardcode_into_libs=yes
15303 ;;
15304
15305 irix5* | irix6* | nonstopux*)
15306 case $host_os in
15307 nonstopux*) version_type=nonstopux ;;
15308 *)
15309 if test "$lt_cv_prog_gnu_ld" = yes; then
15310 version_type=linux # correct to gnu/linux during the next big refactor
15311 else
15312 version_type=irix
15313 fi ;;
15314 esac
15315 need_lib_prefix=no
15316 need_version=no
15317 soname_spec='${libname}${release}${shared_ext}$major'
15318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15319 case $host_os in
15320 irix5* | nonstopux*)
15321 libsuff= shlibsuff=
15322 ;;
15323 *)
15324 case $LD in # libtool.m4 will add one of these switches to LD
15325 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15326 libsuff= shlibsuff= libmagic=32-bit;;
15327 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15328 libsuff=32 shlibsuff=N32 libmagic=N32;;
15329 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15330 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15331 *) libsuff= shlibsuff= libmagic=never-match;;
15332 esac
15333 ;;
15334 esac
15335 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15336 shlibpath_overrides_runpath=no
15337 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15338 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15339 hardcode_into_libs=yes
15340 ;;
15341
15342 # No shared lib support for Linux oldld, aout, or coff.
15343 linux*oldld* | linux*aout* | linux*coff*)
15344 dynamic_linker=no
15345 ;;
15346
15347 # This must be glibc/ELF.
15348 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15349 version_type=linux # correct to gnu/linux during the next big refactor
15350 need_lib_prefix=no
15351 need_version=no
15352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15353 soname_spec='${libname}${release}${shared_ext}$major'
15354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15355 shlibpath_var=LD_LIBRARY_PATH
15356 shlibpath_overrides_runpath=no
15357
15358 # Some binutils ld are patched to set DT_RUNPATH
15359 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15360 $as_echo_n "(cached) " >&6
15361 else
15362 lt_cv_shlibpath_overrides_runpath=no
15363 save_LDFLAGS=$LDFLAGS
15364 save_libdir=$libdir
15365 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15366 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15368 /* end confdefs.h. */
15369
15370 int
15371 main ()
15372 {
15373
15374 ;
15375 return 0;
15376 }
15377 _ACEOF
15378 if ac_fn_cxx_try_link "$LINENO"; then :
15379 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15380 lt_cv_shlibpath_overrides_runpath=yes
15381 fi
15382 fi
15383 rm -f core conftest.err conftest.$ac_objext \
15384 conftest$ac_exeext conftest.$ac_ext
15385 LDFLAGS=$save_LDFLAGS
15386 libdir=$save_libdir
15387
15388 fi
15389
15390 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15391
15392 # This implies no fast_install, which is unacceptable.
15393 # Some rework will be needed to allow for fast_install
15394 # before this can be enabled.
15395 hardcode_into_libs=yes
15396
15397 # Append ld.so.conf contents to the search path
15398 if test -f /etc/ld.so.conf; then
15399 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' ' '`
15400 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15401 fi
15402
15403 # We used to test for /lib/ld.so.1 and disable shared libraries on
15404 # powerpc, because MkLinux only supported shared libraries with the
15405 # GNU dynamic linker. Since this was broken with cross compilers,
15406 # most powerpc-linux boxes support dynamic linking these days and
15407 # people can always --disable-shared, the test was removed, and we
15408 # assume the GNU/Linux dynamic linker is in use.
15409 dynamic_linker='GNU/Linux ld.so'
15410 ;;
15411
15412 netbsdelf*-gnu)
15413 version_type=linux
15414 need_lib_prefix=no
15415 need_version=no
15416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15417 soname_spec='${libname}${release}${shared_ext}$major'
15418 shlibpath_var=LD_LIBRARY_PATH
15419 shlibpath_overrides_runpath=no
15420 hardcode_into_libs=yes
15421 dynamic_linker='NetBSD ld.elf_so'
15422 ;;
15423
15424 netbsd*)
15425 version_type=sunos
15426 need_lib_prefix=no
15427 need_version=no
15428 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15431 dynamic_linker='NetBSD (a.out) ld.so'
15432 else
15433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15434 soname_spec='${libname}${release}${shared_ext}$major'
15435 dynamic_linker='NetBSD ld.elf_so'
15436 fi
15437 shlibpath_var=LD_LIBRARY_PATH
15438 shlibpath_overrides_runpath=yes
15439 hardcode_into_libs=yes
15440 ;;
15441
15442 newsos6)
15443 version_type=linux # correct to gnu/linux during the next big refactor
15444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15445 shlibpath_var=LD_LIBRARY_PATH
15446 shlibpath_overrides_runpath=yes
15447 ;;
15448
15449 *nto* | *qnx*)
15450 version_type=qnx
15451 need_lib_prefix=no
15452 need_version=no
15453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15454 soname_spec='${libname}${release}${shared_ext}$major'
15455 shlibpath_var=LD_LIBRARY_PATH
15456 shlibpath_overrides_runpath=no
15457 hardcode_into_libs=yes
15458 dynamic_linker='ldqnx.so'
15459 ;;
15460
15461 openbsd*)
15462 version_type=sunos
15463 sys_lib_dlsearch_path_spec="/usr/lib"
15464 need_lib_prefix=no
15465 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15466 case $host_os in
15467 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15468 *) need_version=no ;;
15469 esac
15470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15472 shlibpath_var=LD_LIBRARY_PATH
15473 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15474 case $host_os in
15475 openbsd2.[89] | openbsd2.[89].*)
15476 shlibpath_overrides_runpath=no
15477 ;;
15478 *)
15479 shlibpath_overrides_runpath=yes
15480 ;;
15481 esac
15482 else
15483 shlibpath_overrides_runpath=yes
15484 fi
15485 ;;
15486
15487 os2*)
15488 libname_spec='$name'
15489 shrext_cmds=".dll"
15490 need_lib_prefix=no
15491 library_names_spec='$libname${shared_ext} $libname.a'
15492 dynamic_linker='OS/2 ld.exe'
15493 shlibpath_var=LIBPATH
15494 ;;
15495
15496 osf3* | osf4* | osf5*)
15497 version_type=osf
15498 need_lib_prefix=no
15499 need_version=no
15500 soname_spec='${libname}${release}${shared_ext}$major'
15501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15502 shlibpath_var=LD_LIBRARY_PATH
15503 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15504 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15505 ;;
15506
15507 rdos*)
15508 dynamic_linker=no
15509 ;;
15510
15511 solaris*)
15512 version_type=linux # correct to gnu/linux during the next big refactor
15513 need_lib_prefix=no
15514 need_version=no
15515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15516 soname_spec='${libname}${release}${shared_ext}$major'
15517 shlibpath_var=LD_LIBRARY_PATH
15518 shlibpath_overrides_runpath=yes
15519 hardcode_into_libs=yes
15520 # ldd complains unless libraries are executable
15521 postinstall_cmds='chmod +x $lib'
15522 ;;
15523
15524 sunos4*)
15525 version_type=sunos
15526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15527 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15528 shlibpath_var=LD_LIBRARY_PATH
15529 shlibpath_overrides_runpath=yes
15530 if test "$with_gnu_ld" = yes; then
15531 need_lib_prefix=no
15532 fi
15533 need_version=yes
15534 ;;
15535
15536 sysv4 | sysv4.3*)
15537 version_type=linux # correct to gnu/linux during the next big refactor
15538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15539 soname_spec='${libname}${release}${shared_ext}$major'
15540 shlibpath_var=LD_LIBRARY_PATH
15541 case $host_vendor in
15542 sni)
15543 shlibpath_overrides_runpath=no
15544 need_lib_prefix=no
15545 runpath_var=LD_RUN_PATH
15546 ;;
15547 siemens)
15548 need_lib_prefix=no
15549 ;;
15550 motorola)
15551 need_lib_prefix=no
15552 need_version=no
15553 shlibpath_overrides_runpath=no
15554 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15555 ;;
15556 esac
15557 ;;
15558
15559 sysv4*MP*)
15560 if test -d /usr/nec ;then
15561 version_type=linux # correct to gnu/linux during the next big refactor
15562 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15563 soname_spec='$libname${shared_ext}.$major'
15564 shlibpath_var=LD_LIBRARY_PATH
15565 fi
15566 ;;
15567
15568 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15569 version_type=freebsd-elf
15570 need_lib_prefix=no
15571 need_version=no
15572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15573 soname_spec='${libname}${release}${shared_ext}$major'
15574 shlibpath_var=LD_LIBRARY_PATH
15575 shlibpath_overrides_runpath=yes
15576 hardcode_into_libs=yes
15577 if test "$with_gnu_ld" = yes; then
15578 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15579 else
15580 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15581 case $host_os in
15582 sco3.2v5*)
15583 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15584 ;;
15585 esac
15586 fi
15587 sys_lib_dlsearch_path_spec='/usr/lib'
15588 ;;
15589
15590 tpf*)
15591 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15592 version_type=linux # correct to gnu/linux during the next big refactor
15593 need_lib_prefix=no
15594 need_version=no
15595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15596 shlibpath_var=LD_LIBRARY_PATH
15597 shlibpath_overrides_runpath=no
15598 hardcode_into_libs=yes
15599 ;;
15600
15601 uts4*)
15602 version_type=linux # correct to gnu/linux during the next big refactor
15603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15604 soname_spec='${libname}${release}${shared_ext}$major'
15605 shlibpath_var=LD_LIBRARY_PATH
15606 ;;
15607
15608 *)
15609 dynamic_linker=no
15610 ;;
15611 esac
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15613 $as_echo "$dynamic_linker" >&6; }
15614 test "$dynamic_linker" = no && can_build_shared=no
15615
15616 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15617 if test "$GCC" = yes; then
15618 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15619 fi
15620
15621 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15622 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15623 fi
15624 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15625 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15626 fi
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15666 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15667 hardcode_action_CXX=
15668 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15669 test -n "$runpath_var_CXX" ||
15670 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15671
15672 # We can hardcode non-existent directories.
15673 if test "$hardcode_direct_CXX" != no &&
15674 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15675 # have to relink, otherwise we might link with an installed library
15676 # when we should be linking with a yet-to-be-installed one
15677 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15678 test "$hardcode_minus_L_CXX" != no; then
15679 # Linking always hardcodes the temporary library directory.
15680 hardcode_action_CXX=relink
15681 else
15682 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15683 hardcode_action_CXX=immediate
15684 fi
15685 else
15686 # We cannot hardcode anything, or else we can only hardcode existing
15687 # directories.
15688 hardcode_action_CXX=unsupported
15689 fi
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15691 $as_echo "$hardcode_action_CXX" >&6; }
15692
15693 if test "$hardcode_action_CXX" = relink ||
15694 test "$inherit_rpath_CXX" = yes; then
15695 # Fast installation is not supported
15696 enable_fast_install=no
15697 elif test "$shlibpath_overrides_runpath" = yes ||
15698 test "$enable_shared" = no; then
15699 # Fast installation is not necessary
15700 enable_fast_install=needless
15701 fi
15702
15703
15704
15705
15706
15707
15708
15709 fi # test -n "$compiler"
15710
15711 CC=$lt_save_CC
15712 CFLAGS=$lt_save_CFLAGS
15713 LDCXX=$LD
15714 LD=$lt_save_LD
15715 GCC=$lt_save_GCC
15716 with_gnu_ld=$lt_save_with_gnu_ld
15717 lt_cv_path_LDCXX=$lt_cv_path_LD
15718 lt_cv_path_LD=$lt_save_path_LD
15719 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15720 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15721 fi # test "$_lt_caught_CXX_error" != yes
15722
15723 ac_ext=c
15724 ac_cpp='$CPP $CPPFLAGS'
15725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15728
15729
15730 ac_ext=cpp
15731 ac_cpp='$CXXCPP $CPPFLAGS'
15732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15735
15736
15737 # Create the libtool executable so that we can use it in further tests.
15738 #
15739 : ${CONFIG_LT=./config.lt}
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
15741 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
15742 as_write_fail=0
15743 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
15744 #! $SHELL
15745 # Generated by $as_me.
15746 # Run this file to recreate a libtool stub with the current configuration.
15747 SHELL=\${CONFIG_SHELL-$SHELL}
15748 export SHELL
15749 _ASEOF
15750 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
15751 ## -------------------- ##
15752 ## M4sh Initialization. ##
15753 ## -------------------- ##
15754
15755 # Be more Bourne compatible
15756 DUALCASE=1; export DUALCASE # for MKS sh
15757 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15758 emulate sh
15759 NULLCMD=:
15760 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15761 # is contrary to our usage. Disable this feature.
15762 alias -g '${1+"$@"}'='"$@"'
15763 setopt NO_GLOB_SUBST
15764 else
15765 case `(set -o) 2>/dev/null` in #(
15766 *posix*) :
15767 set -o posix ;; #(
15768 *) :
15769 ;;
15770 esac
15771 fi
15772
15773
15774 as_nl='
15775 '
15776 export as_nl
15777 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15778 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15779 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15780 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15781 # Prefer a ksh shell builtin over an external printf program on Solaris,
15782 # but without wasting forks for bash or zsh.
15783 if test -z "$BASH_VERSION$ZSH_VERSION" \
15784 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15785 as_echo='print -r --'
15786 as_echo_n='print -rn --'
15787 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15788 as_echo='printf %s\n'
15789 as_echo_n='printf %s'
15790 else
15791 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15792 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15793 as_echo_n='/usr/ucb/echo -n'
15794 else
15795 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15796 as_echo_n_body='eval
15797 arg=$1;
15798 case $arg in #(
15799 *"$as_nl"*)
15800 expr "X$arg" : "X\\(.*\\)$as_nl";
15801 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15802 esac;
15803 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15804 '
15805 export as_echo_n_body
15806 as_echo_n='sh -c $as_echo_n_body as_echo'
15807 fi
15808 export as_echo_body
15809 as_echo='sh -c $as_echo_body as_echo'
15810 fi
15811
15812 # The user is always right.
15813 if test "${PATH_SEPARATOR+set}" != set; then
15814 PATH_SEPARATOR=:
15815 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15816 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15817 PATH_SEPARATOR=';'
15818 }
15819 fi
15820
15821
15822 # IFS
15823 # We need space, tab and new line, in precisely that order. Quoting is
15824 # there to prevent editors from complaining about space-tab.
15825 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15826 # splitting by setting IFS to empty value.)
15827 IFS=" "" $as_nl"
15828
15829 # Find who we are. Look in the path if we contain no directory separator.
15830 as_myself=
15831 case $0 in #((
15832 *[\\/]* ) as_myself=$0 ;;
15833 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15834 for as_dir in $PATH
15835 do
15836 IFS=$as_save_IFS
15837 test -z "$as_dir" && as_dir=.
15838 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15839 done
15840 IFS=$as_save_IFS
15841
15842 ;;
15843 esac
15844 # We did not find ourselves, most probably we were run as `sh COMMAND'
15845 # in which case we are not to be found in the path.
15846 if test "x$as_myself" = x; then
15847 as_myself=$0
15848 fi
15849 if test ! -f "$as_myself"; then
15850 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15851 exit 1
15852 fi
15853
15854 # Unset variables that we do not need and which cause bugs (e.g. in
15855 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15856 # suppresses any "Segmentation fault" message there. '((' could
15857 # trigger a bug in pdksh 5.2.14.
15858 for as_var in BASH_ENV ENV MAIL MAILPATH
15859 do eval test x\${$as_var+set} = xset \
15860 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15861 done
15862 PS1='$ '
15863 PS2='> '
15864 PS4='+ '
15865
15866 # NLS nuisances.
15867 LC_ALL=C
15868 export LC_ALL
15869 LANGUAGE=C
15870 export LANGUAGE
15871
15872 # CDPATH.
15873 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15874
15875
15876 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15877 # ----------------------------------------
15878 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15879 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15880 # script with STATUS, using 1 if that was 0.
15881 as_fn_error ()
15882 {
15883 as_status=$1; test $as_status -eq 0 && as_status=1
15884 if test "$4"; then
15885 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15886 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15887 fi
15888 $as_echo "$as_me: error: $2" >&2
15889 as_fn_exit $as_status
15890 } # as_fn_error
15891
15892
15893 # as_fn_set_status STATUS
15894 # -----------------------
15895 # Set $? to STATUS, without forking.
15896 as_fn_set_status ()
15897 {
15898 return $1
15899 } # as_fn_set_status
15900
15901 # as_fn_exit STATUS
15902 # -----------------
15903 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15904 as_fn_exit ()
15905 {
15906 set +e
15907 as_fn_set_status $1
15908 exit $1
15909 } # as_fn_exit
15910
15911 # as_fn_unset VAR
15912 # ---------------
15913 # Portably unset VAR.
15914 as_fn_unset ()
15915 {
15916 { eval $1=; unset $1;}
15917 }
15918 as_unset=as_fn_unset
15919 # as_fn_append VAR VALUE
15920 # ----------------------
15921 # Append the text in VALUE to the end of the definition contained in VAR. Take
15922 # advantage of any shell optimizations that allow amortized linear growth over
15923 # repeated appends, instead of the typical quadratic growth present in naive
15924 # implementations.
15925 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15926 eval 'as_fn_append ()
15927 {
15928 eval $1+=\$2
15929 }'
15930 else
15931 as_fn_append ()
15932 {
15933 eval $1=\$$1\$2
15934 }
15935 fi # as_fn_append
15936
15937 # as_fn_arith ARG...
15938 # ------------------
15939 # Perform arithmetic evaluation on the ARGs, and store the result in the
15940 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15941 # must be portable across $(()) and expr.
15942 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15943 eval 'as_fn_arith ()
15944 {
15945 as_val=$(( $* ))
15946 }'
15947 else
15948 as_fn_arith ()
15949 {
15950 as_val=`expr "$@" || test $? -eq 1`
15951 }
15952 fi # as_fn_arith
15953
15954
15955 if expr a : '\(a\)' >/dev/null 2>&1 &&
15956 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15957 as_expr=expr
15958 else
15959 as_expr=false
15960 fi
15961
15962 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15963 as_basename=basename
15964 else
15965 as_basename=false
15966 fi
15967
15968 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15969 as_dirname=dirname
15970 else
15971 as_dirname=false
15972 fi
15973
15974 as_me=`$as_basename -- "$0" ||
15975 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15976 X"$0" : 'X\(//\)$' \| \
15977 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15978 $as_echo X/"$0" |
15979 sed '/^.*\/\([^/][^/]*\)\/*$/{
15980 s//\1/
15981 q
15982 }
15983 /^X\/\(\/\/\)$/{
15984 s//\1/
15985 q
15986 }
15987 /^X\/\(\/\).*/{
15988 s//\1/
15989 q
15990 }
15991 s/.*/./; q'`
15992
15993 # Avoid depending upon Character Ranges.
15994 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15995 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15996 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15997 as_cr_digits='0123456789'
15998 as_cr_alnum=$as_cr_Letters$as_cr_digits
15999
16000 ECHO_C= ECHO_N= ECHO_T=
16001 case `echo -n x` in #(((((
16002 -n*)
16003 case `echo 'xy\c'` in
16004 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16005 xy) ECHO_C='\c';;
16006 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16007 ECHO_T=' ';;
16008 esac;;
16009 *)
16010 ECHO_N='-n';;
16011 esac
16012
16013 rm -f conf$$ conf$$.exe conf$$.file
16014 if test -d conf$$.dir; then
16015 rm -f conf$$.dir/conf$$.file
16016 else
16017 rm -f conf$$.dir
16018 mkdir conf$$.dir 2>/dev/null
16019 fi
16020 if (echo >conf$$.file) 2>/dev/null; then
16021 if ln -s conf$$.file conf$$ 2>/dev/null; then
16022 as_ln_s='ln -s'
16023 # ... but there are two gotchas:
16024 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16025 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16026 # In both cases, we have to default to `cp -pR'.
16027 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16028 as_ln_s='cp -pR'
16029 elif ln conf$$.file conf$$ 2>/dev/null; then
16030 as_ln_s=ln
16031 else
16032 as_ln_s='cp -pR'
16033 fi
16034 else
16035 as_ln_s='cp -pR'
16036 fi
16037 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16038 rmdir conf$$.dir 2>/dev/null
16039
16040
16041 # as_fn_mkdir_p
16042 # -------------
16043 # Create "$as_dir" as a directory, including parents if necessary.
16044 as_fn_mkdir_p ()
16045 {
16046
16047 case $as_dir in #(
16048 -*) as_dir=./$as_dir;;
16049 esac
16050 test -d "$as_dir" || eval $as_mkdir_p || {
16051 as_dirs=
16052 while :; do
16053 case $as_dir in #(
16054 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16055 *) as_qdir=$as_dir;;
16056 esac
16057 as_dirs="'$as_qdir' $as_dirs"
16058 as_dir=`$as_dirname -- "$as_dir" ||
16059 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16060 X"$as_dir" : 'X\(//\)[^/]' \| \
16061 X"$as_dir" : 'X\(//\)$' \| \
16062 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16063 $as_echo X"$as_dir" |
16064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16065 s//\1/
16066 q
16067 }
16068 /^X\(\/\/\)[^/].*/{
16069 s//\1/
16070 q
16071 }
16072 /^X\(\/\/\)$/{
16073 s//\1/
16074 q
16075 }
16076 /^X\(\/\).*/{
16077 s//\1/
16078 q
16079 }
16080 s/.*/./; q'`
16081 test -d "$as_dir" && break
16082 done
16083 test -z "$as_dirs" || eval "mkdir $as_dirs"
16084 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16085
16086
16087 } # as_fn_mkdir_p
16088 if mkdir -p . 2>/dev/null; then
16089 as_mkdir_p='mkdir -p "$as_dir"'
16090 else
16091 test -d ./-p && rmdir ./-p
16092 as_mkdir_p=false
16093 fi
16094
16095
16096 # as_fn_executable_p FILE
16097 # -----------------------
16098 # Test if FILE is an executable regular file.
16099 as_fn_executable_p ()
16100 {
16101 test -f "$1" && test -x "$1"
16102 } # as_fn_executable_p
16103 as_test_x='test -x'
16104 as_executable_p=as_fn_executable_p
16105
16106 # Sed expression to map a string onto a valid CPP name.
16107 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16108
16109 # Sed expression to map a string onto a valid variable name.
16110 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16111
16112
16113 exec 6>&1
16114 ## --------------------------------- ##
16115 ## Main body of "$CONFIG_LT" script. ##
16116 ## --------------------------------- ##
16117 _ASEOF
16118 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
16119
16120 cat >>"$CONFIG_LT" <<\_LTEOF
16121 lt_cl_silent=false
16122 exec 5>>config.log
16123 {
16124 echo
16125 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16126 ## Running $as_me. ##
16127 _ASBOX
16128 } >&5
16129
16130 lt_cl_help="\
16131 \`$as_me' creates a local libtool stub from the current configuration,
16132 for use in further configure time tests before the real libtool is
16133 generated.
16134
16135 Usage: $0 [OPTIONS]
16136
16137 -h, --help print this help, then exit
16138 -V, --version print version number, then exit
16139 -q, --quiet do not print progress messages
16140 -d, --debug don't remove temporary files
16141
16142 Report bugs to <[email protected]>."
16143
16144 lt_cl_version="\
16145 libcutl config.lt 1.10.0
16146 configured by $0, generated by GNU Autoconf 2.69.
16147
16148 Copyright (C) 2011 Free Software Foundation, Inc.
16149 This config.lt script is free software; the Free Software Foundation
16150 gives unlimited permision to copy, distribute and modify it."
16151
16152 while test $# != 0
16153 do
16154 case $1 in
16155 --version | --v* | -V )
16156 echo "$lt_cl_version"; exit 0 ;;
16157 --help | --h* | -h )
16158 echo "$lt_cl_help"; exit 0 ;;
16159 --debug | --d* | -d )
16160 debug=: ;;
16161 --quiet | --q* | --silent | --s* | -q )
16162 lt_cl_silent=: ;;
16163
16164 -*) as_fn_error $? "unrecognized option: $1
16165 Try \`$0 --help' for more information." "$LINENO" 5 ;;
16166
16167 *) as_fn_error $? "unrecognized argument: $1
16168 Try \`$0 --help' for more information." "$LINENO" 5 ;;
16169 esac
16170 shift
16171 done
16172
16173 if $lt_cl_silent; then
16174 exec 6>/dev/null
16175 fi
16176 _LTEOF
16177
16178 cat >>"$CONFIG_LT" <<_LTEOF
16179
16180
16181 # The HP-UX ksh and POSIX shell print the target directory to stdout
16182 # if CDPATH is set.
16183 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16184
16185 sed_quote_subst='$sed_quote_subst'
16186 double_quote_subst='$double_quote_subst'
16187 delay_variable_subst='$delay_variable_subst'
16188 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16189 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16190 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16191 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16192 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16193 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16194 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16195 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16196 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16197 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16198 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16199 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16200 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16201 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16202 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16203 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16204 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16205 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16206 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16207 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16208 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16209 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16210 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16211 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16212 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16213 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16214 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16215 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16216 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16217 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16218 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16219 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16220 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16221 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16222 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16223 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16224 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16225 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16226 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16227 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16228 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16229 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16230 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16231 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16232 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16233 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16234 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16235 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16236 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16237 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16238 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16239 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16240 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16241 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16242 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16243 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16244 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16245 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"`'
16246 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16247 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16248 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16249 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16250 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16251 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16252 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16253 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16254 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16255 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16256 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16257 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16258 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16259 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16260 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16261 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16262 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16263 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16264 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16265 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16266 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16267 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16268 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16269 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16270 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16271 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16272 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16273 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16274 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16275 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16276 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16277 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16278 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16279 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16280 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16281 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16282 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16283 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16284 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16285 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16286 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16287 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16288 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16289 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16290 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16291 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16292 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16293 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16294 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16295 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16296 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16297 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16298 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16299 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16300 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16301 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16302 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16303 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16304 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16305 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16306 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16307 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16308 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16309 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16310 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16311 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16312 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16313 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16314 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16315 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16316 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16317 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16318 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16319 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16320 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16321 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16322 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16323 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16324 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16325 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16326 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16327 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16328 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16329 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16330 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16331 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16332 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16333 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16334 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16335 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16336 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16337 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16338 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16339 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16340 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16341 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16342 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16343 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16344 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16345 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16346 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16347 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16348 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16349 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16350 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16351 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16352 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16353 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16354 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16355 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16356 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16357 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16358 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16359 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16360 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16361 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16362 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16363 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16364 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16365 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16366 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16367 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16368 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16369 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16370 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16371 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16372 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16373
16374 LTCC='$LTCC'
16375 LTCFLAGS='$LTCFLAGS'
16376 compiler='$compiler_DEFAULT'
16377
16378 # A function that is used when there is no print builtin or printf.
16379 func_fallback_echo ()
16380 {
16381 eval 'cat <<_LTECHO_EOF
16382 \$1
16383 _LTECHO_EOF'
16384 }
16385
16386 # Quote evaled strings.
16387 for var in AS \
16388 DLLTOOL \
16389 OBJDUMP \
16390 SHELL \
16391 ECHO \
16392 PATH_SEPARATOR \
16393 SED \
16394 GREP \
16395 EGREP \
16396 FGREP \
16397 LD \
16398 NM \
16399 LN_S \
16400 lt_SP2NL \
16401 lt_NL2SP \
16402 reload_flag \
16403 deplibs_check_method \
16404 file_magic_cmd \
16405 file_magic_glob \
16406 want_nocaseglob \
16407 sharedlib_from_linklib_cmd \
16408 AR \
16409 AR_FLAGS \
16410 archiver_list_spec \
16411 STRIP \
16412 RANLIB \
16413 CC \
16414 CFLAGS \
16415 compiler \
16416 lt_cv_sys_global_symbol_pipe \
16417 lt_cv_sys_global_symbol_to_cdecl \
16418 lt_cv_sys_global_symbol_to_c_name_address \
16419 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16420 nm_file_list_spec \
16421 lt_prog_compiler_no_builtin_flag \
16422 lt_prog_compiler_pic \
16423 lt_prog_compiler_wl \
16424 lt_prog_compiler_static \
16425 lt_cv_prog_compiler_c_o \
16426 need_locks \
16427 MANIFEST_TOOL \
16428 DSYMUTIL \
16429 NMEDIT \
16430 LIPO \
16431 OTOOL \
16432 OTOOL64 \
16433 shrext_cmds \
16434 export_dynamic_flag_spec \
16435 whole_archive_flag_spec \
16436 compiler_needs_object \
16437 with_gnu_ld \
16438 allow_undefined_flag \
16439 no_undefined_flag \
16440 hardcode_libdir_flag_spec \
16441 hardcode_libdir_separator \
16442 exclude_expsyms \
16443 include_expsyms \
16444 file_list_spec \
16445 variables_saved_for_relink \
16446 libname_spec \
16447 library_names_spec \
16448 soname_spec \
16449 install_override_mode \
16450 finish_eval \
16451 old_striplib \
16452 striplib \
16453 compiler_lib_search_dirs \
16454 predep_objects \
16455 postdep_objects \
16456 predeps \
16457 postdeps \
16458 compiler_lib_search_path \
16459 LD_CXX \
16460 reload_flag_CXX \
16461 compiler_CXX \
16462 lt_prog_compiler_no_builtin_flag_CXX \
16463 lt_prog_compiler_pic_CXX \
16464 lt_prog_compiler_wl_CXX \
16465 lt_prog_compiler_static_CXX \
16466 lt_cv_prog_compiler_c_o_CXX \
16467 export_dynamic_flag_spec_CXX \
16468 whole_archive_flag_spec_CXX \
16469 compiler_needs_object_CXX \
16470 with_gnu_ld_CXX \
16471 allow_undefined_flag_CXX \
16472 no_undefined_flag_CXX \
16473 hardcode_libdir_flag_spec_CXX \
16474 hardcode_libdir_separator_CXX \
16475 exclude_expsyms_CXX \
16476 include_expsyms_CXX \
16477 file_list_spec_CXX \
16478 compiler_lib_search_dirs_CXX \
16479 predep_objects_CXX \
16480 postdep_objects_CXX \
16481 predeps_CXX \
16482 postdeps_CXX \
16483 compiler_lib_search_path_CXX; do
16484 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16485 *[\\\\\\\`\\"\\\$]*)
16486 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16487 ;;
16488 *)
16489 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16490 ;;
16491 esac
16492 done
16493
16494 # Double-quote double-evaled strings.
16495 for var in reload_cmds \
16496 old_postinstall_cmds \
16497 old_postuninstall_cmds \
16498 old_archive_cmds \
16499 extract_expsyms_cmds \
16500 old_archive_from_new_cmds \
16501 old_archive_from_expsyms_cmds \
16502 archive_cmds \
16503 archive_expsym_cmds \
16504 module_cmds \
16505 module_expsym_cmds \
16506 export_symbols_cmds \
16507 prelink_cmds \
16508 postlink_cmds \
16509 postinstall_cmds \
16510 postuninstall_cmds \
16511 finish_cmds \
16512 sys_lib_search_path_spec \
16513 sys_lib_dlsearch_path_spec \
16514 reload_cmds_CXX \
16515 old_archive_cmds_CXX \
16516 old_archive_from_new_cmds_CXX \
16517 old_archive_from_expsyms_cmds_CXX \
16518 archive_cmds_CXX \
16519 archive_expsym_cmds_CXX \
16520 module_cmds_CXX \
16521 module_expsym_cmds_CXX \
16522 export_symbols_cmds_CXX \
16523 prelink_cmds_CXX \
16524 postlink_cmds_CXX; do
16525 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16526 *[\\\\\\\`\\"\\\$]*)
16527 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16528 ;;
16529 *)
16530 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16531 ;;
16532 esac
16533 done
16534
16535 ac_aux_dir='$ac_aux_dir'
16536 xsi_shell='$xsi_shell'
16537 lt_shell_append='$lt_shell_append'
16538
16539 # See if we are running on zsh, and set the options which allow our
16540 # commands through without removal of \ escapes INIT.
16541 if test -n "\${ZSH_VERSION+set}" ; then
16542 setopt NO_GLOB_SUBST
16543 fi
16544
16545
16546 PACKAGE='$PACKAGE'
16547 VERSION='$VERSION'
16548 TIMESTAMP='$TIMESTAMP'
16549 RM='$RM'
16550 ofile='$ofile'
16551
16552
16553
16554
16555
16556 _LTEOF
16557
16558 cat >>"$CONFIG_LT" <<\_LTEOF
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
16560 $as_echo "$as_me: creating $ofile" >&6;}
16561
16562
16563 # See if we are running on zsh, and set the options which allow our
16564 # commands through without removal of \ escapes.
16565 if test -n "${ZSH_VERSION+set}" ; then
16566 setopt NO_GLOB_SUBST
16567 fi
16568
16569 cfgfile="${ofile}T"
16570 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16571 $RM "$cfgfile"
16572
16573 cat <<_LT_EOF >> "$cfgfile"
16574 #! $SHELL
16575
16576 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16577 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16578 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16579 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16580 #
16581 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16582 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16583 # Foundation, Inc.
16584 # Written by Gordon Matzigkeit, 1996
16585 #
16586 # This file is part of GNU Libtool.
16587 #
16588 # GNU Libtool is free software; you can redistribute it and/or
16589 # modify it under the terms of the GNU General Public License as
16590 # published by the Free Software Foundation; either version 2 of
16591 # the License, or (at your option) any later version.
16592 #
16593 # As a special exception to the GNU General Public License,
16594 # if you distribute this file as part of a program or library that
16595 # is built using GNU Libtool, you may include this file under the
16596 # same distribution terms that you use for the rest of that program.
16597 #
16598 # GNU Libtool is distributed in the hope that it will be useful,
16599 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16600 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16601 # GNU General Public License for more details.
16602 #
16603 # You should have received a copy of the GNU General Public License
16604 # along with GNU Libtool; see the file COPYING. If not, a copy
16605 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16606 # obtained by writing to the Free Software Foundation, Inc.,
16607 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16608
16609
16610 # The names of the tagged configurations supported by this script.
16611 available_tags="CXX "
16612
16613 # ### BEGIN LIBTOOL CONFIG
16614
16615 # Which release of libtool.m4 was used?
16616 macro_version=$macro_version
16617 macro_revision=$macro_revision
16618
16619 # Assembler program.
16620 AS=$lt_AS
16621
16622 # DLL creation program.
16623 DLLTOOL=$lt_DLLTOOL
16624
16625 # Object dumper program.
16626 OBJDUMP=$lt_OBJDUMP
16627
16628 # Whether or not to build shared libraries.
16629 build_libtool_libs=$enable_shared
16630
16631 # Whether or not to build static libraries.
16632 build_old_libs=$enable_static
16633
16634 # What type of objects to build.
16635 pic_mode=$pic_mode
16636
16637 # Whether or not to optimize for fast installation.
16638 fast_install=$enable_fast_install
16639
16640 # Shell to use when invoking shell scripts.
16641 SHELL=$lt_SHELL
16642
16643 # An echo program that protects backslashes.
16644 ECHO=$lt_ECHO
16645
16646 # The PATH separator for the build system.
16647 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16648
16649 # The host system.
16650 host_alias=$host_alias
16651 host=$host
16652 host_os=$host_os
16653
16654 # The build system.
16655 build_alias=$build_alias
16656 build=$build
16657 build_os=$build_os
16658
16659 # A sed program that does not truncate output.
16660 SED=$lt_SED
16661
16662 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16663 Xsed="\$SED -e 1s/^X//"
16664
16665 # A grep program that handles long lines.
16666 GREP=$lt_GREP
16667
16668 # An ERE matcher.
16669 EGREP=$lt_EGREP
16670
16671 # A literal string matcher.
16672 FGREP=$lt_FGREP
16673
16674 # A BSD- or MS-compatible name lister.
16675 NM=$lt_NM
16676
16677 # Whether we need soft or hard links.
16678 LN_S=$lt_LN_S
16679
16680 # What is the maximum length of a command?
16681 max_cmd_len=$max_cmd_len
16682
16683 # Object file suffix (normally "o").
16684 objext=$ac_objext
16685
16686 # Executable file suffix (normally "").
16687 exeext=$exeext
16688
16689 # whether the shell understands "unset".
16690 lt_unset=$lt_unset
16691
16692 # turn spaces into newlines.
16693 SP2NL=$lt_lt_SP2NL
16694
16695 # turn newlines into spaces.
16696 NL2SP=$lt_lt_NL2SP
16697
16698 # convert \$build file names to \$host format.
16699 to_host_file_cmd=$lt_cv_to_host_file_cmd
16700
16701 # convert \$build files to toolchain format.
16702 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16703
16704 # Method to check whether dependent libraries are shared objects.
16705 deplibs_check_method=$lt_deplibs_check_method
16706
16707 # Command to use when deplibs_check_method = "file_magic".
16708 file_magic_cmd=$lt_file_magic_cmd
16709
16710 # How to find potential files when deplibs_check_method = "file_magic".
16711 file_magic_glob=$lt_file_magic_glob
16712
16713 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16714 want_nocaseglob=$lt_want_nocaseglob
16715
16716 # Command to associate shared and link libraries.
16717 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16718
16719 # The archiver.
16720 AR=$lt_AR
16721
16722 # Flags to create an archive.
16723 AR_FLAGS=$lt_AR_FLAGS
16724
16725 # How to feed a file listing to the archiver.
16726 archiver_list_spec=$lt_archiver_list_spec
16727
16728 # A symbol stripping program.
16729 STRIP=$lt_STRIP
16730
16731 # Commands used to install an old-style archive.
16732 RANLIB=$lt_RANLIB
16733 old_postinstall_cmds=$lt_old_postinstall_cmds
16734 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16735
16736 # Whether to use a lock for old archive extraction.
16737 lock_old_archive_extraction=$lock_old_archive_extraction
16738
16739 # A C compiler.
16740 LTCC=$lt_CC
16741
16742 # LTCC compiler flags.
16743 LTCFLAGS=$lt_CFLAGS
16744
16745 # Take the output of nm and produce a listing of raw symbols and C names.
16746 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16747
16748 # Transform the output of nm in a proper C declaration.
16749 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16750
16751 # Transform the output of nm in a C name address pair.
16752 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16753
16754 # Transform the output of nm in a C name address pair when lib prefix is needed.
16755 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16756
16757 # Specify filename containing input files for \$NM.
16758 nm_file_list_spec=$lt_nm_file_list_spec
16759
16760 # The root where to search for dependent libraries,and in which our libraries should be installed.
16761 lt_sysroot=$lt_sysroot
16762
16763 # The name of the directory that contains temporary libtool files.
16764 objdir=$objdir
16765
16766 # Used to examine libraries when file_magic_cmd begins with "file".
16767 MAGIC_CMD=$MAGIC_CMD
16768
16769 # Must we lock files when doing compilation?
16770 need_locks=$lt_need_locks
16771
16772 # Manifest tool.
16773 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16774
16775 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16776 DSYMUTIL=$lt_DSYMUTIL
16777
16778 # Tool to change global to local symbols on Mac OS X.
16779 NMEDIT=$lt_NMEDIT
16780
16781 # Tool to manipulate fat objects and archives on Mac OS X.
16782 LIPO=$lt_LIPO
16783
16784 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16785 OTOOL=$lt_OTOOL
16786
16787 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16788 OTOOL64=$lt_OTOOL64
16789
16790 # Old archive suffix (normally "a").
16791 libext=$libext
16792
16793 # Shared library suffix (normally ".so").
16794 shrext_cmds=$lt_shrext_cmds
16795
16796 # The commands to extract the exported symbol list from a shared archive.
16797 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16798
16799 # Variables whose values should be saved in libtool wrapper scripts and
16800 # restored at link time.
16801 variables_saved_for_relink=$lt_variables_saved_for_relink
16802
16803 # Do we need the "lib" prefix for modules?
16804 need_lib_prefix=$need_lib_prefix
16805
16806 # Do we need a version for libraries?
16807 need_version=$need_version
16808
16809 # Library versioning type.
16810 version_type=$version_type
16811
16812 # Shared library runtime path variable.
16813 runpath_var=$runpath_var
16814
16815 # Shared library path variable.
16816 shlibpath_var=$shlibpath_var
16817
16818 # Is shlibpath searched before the hard-coded library search path?
16819 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16820
16821 # Format of library name prefix.
16822 libname_spec=$lt_libname_spec
16823
16824 # List of archive names. First name is the real one, the rest are links.
16825 # The last name is the one that the linker finds with -lNAME
16826 library_names_spec=$lt_library_names_spec
16827
16828 # The coded name of the library, if different from the real name.
16829 soname_spec=$lt_soname_spec
16830
16831 # Permission mode override for installation of shared libraries.
16832 install_override_mode=$lt_install_override_mode
16833
16834 # Command to use after installation of a shared archive.
16835 postinstall_cmds=$lt_postinstall_cmds
16836
16837 # Command to use after uninstallation of a shared archive.
16838 postuninstall_cmds=$lt_postuninstall_cmds
16839
16840 # Commands used to finish a libtool library installation in a directory.
16841 finish_cmds=$lt_finish_cmds
16842
16843 # As "finish_cmds", except a single script fragment to be evaled but
16844 # not shown.
16845 finish_eval=$lt_finish_eval
16846
16847 # Whether we should hardcode library paths into libraries.
16848 hardcode_into_libs=$hardcode_into_libs
16849
16850 # Compile-time system search path for libraries.
16851 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16852
16853 # Run-time system search path for libraries.
16854 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16855
16856 # Whether dlopen is supported.
16857 dlopen_support=$enable_dlopen
16858
16859 # Whether dlopen of programs is supported.
16860 dlopen_self=$enable_dlopen_self
16861
16862 # Whether dlopen of statically linked programs is supported.
16863 dlopen_self_static=$enable_dlopen_self_static
16864
16865 # Commands to strip libraries.
16866 old_striplib=$lt_old_striplib
16867 striplib=$lt_striplib
16868
16869
16870 # The linker used to build libraries.
16871 LD=$lt_LD
16872
16873 # How to create reloadable object files.
16874 reload_flag=$lt_reload_flag
16875 reload_cmds=$lt_reload_cmds
16876
16877 # Commands used to build an old-style archive.
16878 old_archive_cmds=$lt_old_archive_cmds
16879
16880 # A language specific compiler.
16881 CC=$lt_compiler
16882
16883 # Is the compiler the GNU compiler?
16884 with_gcc=$GCC
16885
16886 # Compiler flag to turn off builtin functions.
16887 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16888
16889 # Additional compiler flags for building library objects.
16890 pic_flag=$lt_lt_prog_compiler_pic
16891
16892 # How to pass a linker flag through the compiler.
16893 wl=$lt_lt_prog_compiler_wl
16894
16895 # Compiler flag to prevent dynamic linking.
16896 link_static_flag=$lt_lt_prog_compiler_static
16897
16898 # Does compiler simultaneously support -c and -o options?
16899 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16900
16901 # Whether or not to add -lc for building shared libraries.
16902 build_libtool_need_lc=$archive_cmds_need_lc
16903
16904 # Whether or not to disallow shared libs when runtime libs are static.
16905 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16906
16907 # Compiler flag to allow reflexive dlopens.
16908 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16909
16910 # Compiler flag to generate shared objects directly from archives.
16911 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16912
16913 # Whether the compiler copes with passing no objects directly.
16914 compiler_needs_object=$lt_compiler_needs_object
16915
16916 # Create an old-style archive from a shared archive.
16917 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16918
16919 # Create a temporary old-style archive to link instead of a shared archive.
16920 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16921
16922 # Commands used to build a shared archive.
16923 archive_cmds=$lt_archive_cmds
16924 archive_expsym_cmds=$lt_archive_expsym_cmds
16925
16926 # Commands used to build a loadable module if different from building
16927 # a shared archive.
16928 module_cmds=$lt_module_cmds
16929 module_expsym_cmds=$lt_module_expsym_cmds
16930
16931 # Whether we are building with GNU ld or not.
16932 with_gnu_ld=$lt_with_gnu_ld
16933
16934 # Flag that allows shared libraries with undefined symbols to be built.
16935 allow_undefined_flag=$lt_allow_undefined_flag
16936
16937 # Flag that enforces no undefined symbols.
16938 no_undefined_flag=$lt_no_undefined_flag
16939
16940 # Flag to hardcode \$libdir into a binary during linking.
16941 # This must work even if \$libdir does not exist
16942 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16943
16944 # Whether we need a single "-rpath" flag with a separated argument.
16945 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16946
16947 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16948 # DIR into the resulting binary.
16949 hardcode_direct=$hardcode_direct
16950
16951 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16952 # DIR into the resulting binary and the resulting library dependency is
16953 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16954 # library is relocated.
16955 hardcode_direct_absolute=$hardcode_direct_absolute
16956
16957 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16958 # into the resulting binary.
16959 hardcode_minus_L=$hardcode_minus_L
16960
16961 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16962 # into the resulting binary.
16963 hardcode_shlibpath_var=$hardcode_shlibpath_var
16964
16965 # Set to "yes" if building a shared library automatically hardcodes DIR
16966 # into the library and all subsequent libraries and executables linked
16967 # against it.
16968 hardcode_automatic=$hardcode_automatic
16969
16970 # Set to yes if linker adds runtime paths of dependent libraries
16971 # to runtime path list.
16972 inherit_rpath=$inherit_rpath
16973
16974 # Whether libtool must link a program against all its dependency libraries.
16975 link_all_deplibs=$link_all_deplibs
16976
16977 # Set to "yes" if exported symbols are required.
16978 always_export_symbols=$always_export_symbols
16979
16980 # The commands to list exported symbols.
16981 export_symbols_cmds=$lt_export_symbols_cmds
16982
16983 # Symbols that should not be listed in the preloaded symbols.
16984 exclude_expsyms=$lt_exclude_expsyms
16985
16986 # Symbols that must always be exported.
16987 include_expsyms=$lt_include_expsyms
16988
16989 # Commands necessary for linking programs (against libraries) with templates.
16990 prelink_cmds=$lt_prelink_cmds
16991
16992 # Commands necessary for finishing linking programs.
16993 postlink_cmds=$lt_postlink_cmds
16994
16995 # Specify filename containing input files.
16996 file_list_spec=$lt_file_list_spec
16997
16998 # How to hardcode a shared library path into an executable.
16999 hardcode_action=$hardcode_action
17000
17001 # The directories searched by this compiler when creating a shared library.
17002 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17003
17004 # Dependencies to place before and after the objects being linked to
17005 # create a shared library.
17006 predep_objects=$lt_predep_objects
17007 postdep_objects=$lt_postdep_objects
17008 predeps=$lt_predeps
17009 postdeps=$lt_postdeps
17010
17011 # The library search path used internally by the compiler when linking
17012 # a shared library.
17013 compiler_lib_search_path=$lt_compiler_lib_search_path
17014
17015 # ### END LIBTOOL CONFIG
17016
17017 _LT_EOF
17018
17019 case $host_os in
17020 aix3*)
17021 cat <<\_LT_EOF >> "$cfgfile"
17022 # AIX sometimes has problems with the GCC collect2 program. For some
17023 # reason, if we set the COLLECT_NAMES environment variable, the problems
17024 # vanish in a puff of smoke.
17025 if test "X${COLLECT_NAMES+set}" != Xset; then
17026 COLLECT_NAMES=
17027 export COLLECT_NAMES
17028 fi
17029 _LT_EOF
17030 ;;
17031 esac
17032
17033
17034 ltmain="$ac_aux_dir/ltmain.sh"
17035
17036
17037 # We use sed instead of cat because bash on DJGPP gets confused if
17038 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17039 # text mode, it properly converts lines to CR/LF. This bash problem
17040 # is reportedly fixed, but why not run on old versions too?
17041 sed '$q' "$ltmain" >> "$cfgfile" \
17042 || (rm -f "$cfgfile"; exit 1)
17043
17044 if test x"$xsi_shell" = xyes; then
17045 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17046 func_dirname ()\
17047 {\
17048 \ case ${1} in\
17049 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17050 \ * ) func_dirname_result="${3}" ;;\
17051 \ esac\
17052 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17053 && mv -f "$cfgfile.tmp" "$cfgfile" \
17054 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17055 test 0 -eq $? || _lt_function_replace_fail=:
17056
17057
17058 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17059 func_basename ()\
17060 {\
17061 \ func_basename_result="${1##*/}"\
17062 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17063 && mv -f "$cfgfile.tmp" "$cfgfile" \
17064 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17065 test 0 -eq $? || _lt_function_replace_fail=:
17066
17067
17068 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17069 func_dirname_and_basename ()\
17070 {\
17071 \ case ${1} in\
17072 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17073 \ * ) func_dirname_result="${3}" ;;\
17074 \ esac\
17075 \ func_basename_result="${1##*/}"\
17076 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17077 && mv -f "$cfgfile.tmp" "$cfgfile" \
17078 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17079 test 0 -eq $? || _lt_function_replace_fail=:
17080
17081
17082 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17083 func_stripname ()\
17084 {\
17085 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17086 \ # positional parameters, so assign one to ordinary parameter first.\
17087 \ func_stripname_result=${3}\
17088 \ func_stripname_result=${func_stripname_result#"${1}"}\
17089 \ func_stripname_result=${func_stripname_result%"${2}"}\
17090 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17091 && mv -f "$cfgfile.tmp" "$cfgfile" \
17092 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17093 test 0 -eq $? || _lt_function_replace_fail=:
17094
17095
17096 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17097 func_split_long_opt ()\
17098 {\
17099 \ func_split_long_opt_name=${1%%=*}\
17100 \ func_split_long_opt_arg=${1#*=}\
17101 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17102 && mv -f "$cfgfile.tmp" "$cfgfile" \
17103 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17104 test 0 -eq $? || _lt_function_replace_fail=:
17105
17106
17107 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17108 func_split_short_opt ()\
17109 {\
17110 \ func_split_short_opt_arg=${1#??}\
17111 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17112 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17113 && mv -f "$cfgfile.tmp" "$cfgfile" \
17114 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17115 test 0 -eq $? || _lt_function_replace_fail=:
17116
17117
17118 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17119 func_lo2o ()\
17120 {\
17121 \ case ${1} in\
17122 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17123 \ *) func_lo2o_result=${1} ;;\
17124 \ esac\
17125 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17126 && mv -f "$cfgfile.tmp" "$cfgfile" \
17127 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17128 test 0 -eq $? || _lt_function_replace_fail=:
17129
17130
17131 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17132 func_xform ()\
17133 {\
17134 func_xform_result=${1%.*}.lo\
17135 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17136 && mv -f "$cfgfile.tmp" "$cfgfile" \
17137 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17138 test 0 -eq $? || _lt_function_replace_fail=:
17139
17140
17141 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17142 func_arith ()\
17143 {\
17144 func_arith_result=$(( $* ))\
17145 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17146 && mv -f "$cfgfile.tmp" "$cfgfile" \
17147 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17148 test 0 -eq $? || _lt_function_replace_fail=:
17149
17150
17151 sed -e '/^func_len ()$/,/^} # func_len /c\
17152 func_len ()\
17153 {\
17154 func_len_result=${#1}\
17155 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17156 && mv -f "$cfgfile.tmp" "$cfgfile" \
17157 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17158 test 0 -eq $? || _lt_function_replace_fail=:
17159
17160 fi
17161
17162 if test x"$lt_shell_append" = xyes; then
17163 sed -e '/^func_append ()$/,/^} # func_append /c\
17164 func_append ()\
17165 {\
17166 eval "${1}+=\\${2}"\
17167 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17168 && mv -f "$cfgfile.tmp" "$cfgfile" \
17169 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17170 test 0 -eq $? || _lt_function_replace_fail=:
17171
17172
17173 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17174 func_append_quoted ()\
17175 {\
17176 \ func_quote_for_eval "${2}"\
17177 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17178 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17179 && mv -f "$cfgfile.tmp" "$cfgfile" \
17180 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17181 test 0 -eq $? || _lt_function_replace_fail=:
17182
17183
17184 # Save a `func_append' function call where possible by direct use of '+='
17185 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17186 && mv -f "$cfgfile.tmp" "$cfgfile" \
17187 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17188 test 0 -eq $? || _lt_function_replace_fail=:
17189 else
17190 # Save a `func_append' function call even when '+=' is not available
17191 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17192 && mv -f "$cfgfile.tmp" "$cfgfile" \
17193 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17194 test 0 -eq $? || _lt_function_replace_fail=:
17195 fi
17196
17197 if test x"$_lt_function_replace_fail" = x":"; then
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17199 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17200 fi
17201
17202
17203 mv -f "$cfgfile" "$ofile" ||
17204 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17205 chmod +x "$ofile"
17206
17207
17208 cat <<_LT_EOF >> "$ofile"
17209
17210 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17211
17212 # The linker used to build libraries.
17213 LD=$lt_LD_CXX
17214
17215 # How to create reloadable object files.
17216 reload_flag=$lt_reload_flag_CXX
17217 reload_cmds=$lt_reload_cmds_CXX
17218
17219 # Commands used to build an old-style archive.
17220 old_archive_cmds=$lt_old_archive_cmds_CXX
17221
17222 # A language specific compiler.
17223 CC=$lt_compiler_CXX
17224
17225 # Is the compiler the GNU compiler?
17226 with_gcc=$GCC_CXX
17227
17228 # Compiler flag to turn off builtin functions.
17229 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17230
17231 # Additional compiler flags for building library objects.
17232 pic_flag=$lt_lt_prog_compiler_pic_CXX
17233
17234 # How to pass a linker flag through the compiler.
17235 wl=$lt_lt_prog_compiler_wl_CXX
17236
17237 # Compiler flag to prevent dynamic linking.
17238 link_static_flag=$lt_lt_prog_compiler_static_CXX
17239
17240 # Does compiler simultaneously support -c and -o options?
17241 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17242
17243 # Whether or not to add -lc for building shared libraries.
17244 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17245
17246 # Whether or not to disallow shared libs when runtime libs are static.
17247 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17248
17249 # Compiler flag to allow reflexive dlopens.
17250 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17251
17252 # Compiler flag to generate shared objects directly from archives.
17253 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17254
17255 # Whether the compiler copes with passing no objects directly.
17256 compiler_needs_object=$lt_compiler_needs_object_CXX
17257
17258 # Create an old-style archive from a shared archive.
17259 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17260
17261 # Create a temporary old-style archive to link instead of a shared archive.
17262 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17263
17264 # Commands used to build a shared archive.
17265 archive_cmds=$lt_archive_cmds_CXX
17266 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17267
17268 # Commands used to build a loadable module if different from building
17269 # a shared archive.
17270 module_cmds=$lt_module_cmds_CXX
17271 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17272
17273 # Whether we are building with GNU ld or not.
17274 with_gnu_ld=$lt_with_gnu_ld_CXX
17275
17276 # Flag that allows shared libraries with undefined symbols to be built.
17277 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17278
17279 # Flag that enforces no undefined symbols.
17280 no_undefined_flag=$lt_no_undefined_flag_CXX
17281
17282 # Flag to hardcode \$libdir into a binary during linking.
17283 # This must work even if \$libdir does not exist
17284 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17285
17286 # Whether we need a single "-rpath" flag with a separated argument.
17287 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17288
17289 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17290 # DIR into the resulting binary.
17291 hardcode_direct=$hardcode_direct_CXX
17292
17293 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17294 # DIR into the resulting binary and the resulting library dependency is
17295 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17296 # library is relocated.
17297 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17298
17299 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17300 # into the resulting binary.
17301 hardcode_minus_L=$hardcode_minus_L_CXX
17302
17303 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17304 # into the resulting binary.
17305 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17306
17307 # Set to "yes" if building a shared library automatically hardcodes DIR
17308 # into the library and all subsequent libraries and executables linked
17309 # against it.
17310 hardcode_automatic=$hardcode_automatic_CXX
17311
17312 # Set to yes if linker adds runtime paths of dependent libraries
17313 # to runtime path list.
17314 inherit_rpath=$inherit_rpath_CXX
17315
17316 # Whether libtool must link a program against all its dependency libraries.
17317 link_all_deplibs=$link_all_deplibs_CXX
17318
17319 # Set to "yes" if exported symbols are required.
17320 always_export_symbols=$always_export_symbols_CXX
17321
17322 # The commands to list exported symbols.
17323 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17324
17325 # Symbols that should not be listed in the preloaded symbols.
17326 exclude_expsyms=$lt_exclude_expsyms_CXX
17327
17328 # Symbols that must always be exported.
17329 include_expsyms=$lt_include_expsyms_CXX
17330
17331 # Commands necessary for linking programs (against libraries) with templates.
17332 prelink_cmds=$lt_prelink_cmds_CXX
17333
17334 # Commands necessary for finishing linking programs.
17335 postlink_cmds=$lt_postlink_cmds_CXX
17336
17337 # Specify filename containing input files.
17338 file_list_spec=$lt_file_list_spec_CXX
17339
17340 # How to hardcode a shared library path into an executable.
17341 hardcode_action=$hardcode_action_CXX
17342
17343 # The directories searched by this compiler when creating a shared library.
17344 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17345
17346 # Dependencies to place before and after the objects being linked to
17347 # create a shared library.
17348 predep_objects=$lt_predep_objects_CXX
17349 postdep_objects=$lt_postdep_objects_CXX
17350 predeps=$lt_predeps_CXX
17351 postdeps=$lt_postdeps_CXX
17352
17353 # The library search path used internally by the compiler when linking
17354 # a shared library.
17355 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17356
17357 # ### END LIBTOOL TAG CONFIG: CXX
17358 _LT_EOF
17359
17360
17361 as_fn_exit 0
17362 _LTEOF
17363 chmod +x "$CONFIG_LT"
17364
17365 # configure is writing to config.log, but config.lt does its own redirection,
17366 # appending to config.log, which fails on DOS, as config.log is still kept
17367 # open by configure. Here we exec the FD to /dev/null, effectively closing
17368 # config.log, so it can be properly (re)opened and appended to by config.lt.
17369 lt_cl_success=:
17370 test "$silent" = yes &&
17371 lt_config_lt_args="$lt_config_lt_args --quiet"
17372 exec 5>/dev/null
17373 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
17374 exec 5>>config.log
17375 $lt_cl_success || as_fn_exit 1
17376
17377
17378 # Check if we need to use external Boost.
17379 #
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use external boost" >&5
17381 $as_echo_n "checking if we should use external boost... " >&6; }
17382
17383
17384 # Check whether --with-external-boost was given.
17385 if test "${with_external_boost+set}" = set; then :
17386 withval=$with_external_boost; external_boost=${withval}
17387 else
17388 external_boost=no
17389 fi
17390
17391
17392 if test x"$external_boost" != xno; then
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17394 $as_echo "yes" >&6; }
17395
17396 # Check if we have Boost.
17397 #
17398 boost_found=yes
17399
17400 libboost_found=no
17401
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost base headers" >&5
17403 $as_echo_n "checking for boost base headers... " >&6; }
17404
17405
17406 # Check whether --with-boost was given.
17407 if test "${with_boost+set}" = set; then :
17408 withval=$with_boost; libboost_dir=${withval}
17409 else
17410 libboost_dir=
17411 fi
17412
17413
17414 # If libboost_dir was given, add the necessary preprocessor and linker flags.
17415 #
17416 if test x"$libboost_dir" != x; then
17417 save_CPPFLAGS="$CPPFLAGS"
17418 save_LDFLAGS="$LDFLAGS"
17419
17420 case $ac_pwd in #((
17421 .) abs_libboost_dir=$libboost_dir;;
17422 *)
17423 case $libboost_dir in #(((
17424 .) abs_libboost_dir=$ac_pwd;;
17425 [\\/]* | ?:[\\/]* ) abs_libboost_dir=$libboost_dir;;
17426 *) abs_libboost_dir=$ac_pwd/$libboost_dir;;
17427 esac;;
17428 esac
17429
17430 CPPFLAGS="$CPPFLAGS -I$abs_libboost_dir"
17431 LDFLAGS="$LDFLAGS -L$abs_libboost_dir/stage/lib"
17432 fi
17433
17434
17435
17436 ac_ext=cpp
17437 ac_cpp='$CXXCPP $CPPFLAGS'
17438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17441
17442
17443 if test -d .libs; then
17444 delete_libs_dir=no
17445 else
17446 delete_libs_dir=yes
17447 fi
17448
17449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17450 /* end confdefs.h. */
17451
17452
17453 #include <boost/version.hpp>
17454
17455 #ifndef BOOST_VERSION
17456 # error BOOST_VERSION not defined
17457 #endif
17458
17459 int
17460 main ()
17461 {
17462 }
17463
17464 _ACEOF
17465 if ac_fn_cxx_try_compile "$LINENO"; then :
17466
17467 ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&5'
17468 if { { case "(($ac_try" in
17469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17471 esac
17472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17473 $as_echo "$ac_try_echo"; } >&5
17474 (eval "$ac_try") 2>&5
17475 ac_status=$?
17476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17477 test $ac_status = 0; }; then
17478 libtool_link_ok=yes
17479 else
17480 libtool_link_ok=no
17481 fi
17482
17483 else
17484
17485 libtool_link_ok=no
17486
17487 fi
17488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17489
17490 if test x"$delete_libs_dir" = xyes; then
17491 rm -rf .libs
17492 fi
17493
17494 if test x"$libtool_link_ok" = xyes; then
17495
17496 libboost_found=yes
17497
17498 :
17499 else
17500
17501 :
17502 fi
17503
17504 ac_ext=cpp
17505 ac_cpp='$CXXCPP $CPPFLAGS'
17506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17509
17510
17511 if test x"$libboost_found" = xno; then
17512 if test x"$libboost_dir" != x; then
17513 CPPFLAGS="$save_CPPFLAGS"
17514 LDFLAGS="$save_LDFLAGS"
17515 fi
17516 fi
17517
17518 if test x"$libboost_found" = xyes; then
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17520 $as_echo "yes" >&6; }
17521
17522 else
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17524 $as_echo "no" >&6; }
17525 boost_found=no
17526 fi
17527
17528
17529
17530 libboost_regex_found=no
17531
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost regex library" >&5
17533 $as_echo_n "checking for boost regex library... " >&6; }
17534
17535 save_LIBS="$LIBS"
17536 LIBS="-lboost_regex $LIBS"
17537
17538
17539
17540 ac_ext=cpp
17541 ac_cpp='$CXXCPP $CPPFLAGS'
17542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17545
17546
17547 if test -d .libs; then
17548 delete_libs_dir=no
17549 else
17550 delete_libs_dir=yes
17551 fi
17552
17553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17554 /* end confdefs.h. */
17555
17556
17557 #include <boost/tr1/regex.hpp>
17558
17559 int
17560 main ()
17561 {
17562 std::tr1::regex r ("te.t", std::tr1::regex_constants::ECMAScript);
17563 return std::tr1::regex_match ("test", r) ? 0 : 1;
17564 }
17565
17566 _ACEOF
17567 if ac_fn_cxx_try_compile "$LINENO"; then :
17568
17569 ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&5'
17570 if { { case "(($ac_try" in
17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572 *) ac_try_echo=$ac_try;;
17573 esac
17574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17575 $as_echo "$ac_try_echo"; } >&5
17576 (eval "$ac_try") 2>&5
17577 ac_status=$?
17578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17579 test $ac_status = 0; }; then
17580 libtool_link_ok=yes
17581 else
17582 libtool_link_ok=no
17583 fi
17584
17585 else
17586
17587 libtool_link_ok=no
17588
17589 fi
17590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17591
17592 if test x"$delete_libs_dir" = xyes; then
17593 rm -rf .libs
17594 fi
17595
17596 if test x"$libtool_link_ok" = xyes; then
17597 libboost_regex_found=yes
17598 :
17599 else
17600
17601 :
17602 fi
17603
17604 ac_ext=cpp
17605 ac_cpp='$CXXCPP $CPPFLAGS'
17606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17609
17610
17611 # Try to fall back on the -mt version for backwards-compatibility.
17612 #
17613 if test x"$libboost_regex_found" = xno; then
17614 LIBS="-lboost_regex-mt $save_LIBS"
17615
17616
17617 ac_ext=cpp
17618 ac_cpp='$CXXCPP $CPPFLAGS'
17619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17622
17623
17624 if test -d .libs; then
17625 delete_libs_dir=no
17626 else
17627 delete_libs_dir=yes
17628 fi
17629
17630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17631 /* end confdefs.h. */
17632
17633
17634 #include <boost/tr1/regex.hpp>
17635
17636 int
17637 main ()
17638 {
17639 std::tr1::regex r ("te.t", std::tr1::regex_constants::ECMAScript);
17640 return std::tr1::regex_match ("test", r) ? 0 : 1;
17641 }
17642
17643 _ACEOF
17644 if ac_fn_cxx_try_compile "$LINENO"; then :
17645
17646 ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&5'
17647 if { { case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17650 esac
17651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17652 $as_echo "$ac_try_echo"; } >&5
17653 (eval "$ac_try") 2>&5
17654 ac_status=$?
17655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17656 test $ac_status = 0; }; then
17657 libtool_link_ok=yes
17658 else
17659 libtool_link_ok=no
17660 fi
17661
17662 else
17663
17664 libtool_link_ok=no
17665
17666 fi
17667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17668
17669 if test x"$delete_libs_dir" = xyes; then
17670 rm -rf .libs
17671 fi
17672
17673 if test x"$libtool_link_ok" = xyes; then
17674 libboost_regex_found=yes
17675 :
17676 else
17677
17678 :
17679 fi
17680
17681 ac_ext=cpp
17682 ac_cpp='$CXXCPP $CPPFLAGS'
17683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17686
17687 fi
17688
17689 if test x"$libboost_regex_found" = xno; then
17690 LIBS="$save_LIBS"
17691 fi
17692
17693 if test x"$libboost_regex_found" = xyes; then
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17695 $as_echo "yes" >&6; }
17696
17697 else
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17699 $as_echo "no" >&6; }
17700 boost_found=no
17701 fi
17702
17703
17704
17705
17706 libboost_system_found=no
17707
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost system library" >&5
17709 $as_echo_n "checking for boost system library... " >&6; }
17710
17711 save_LIBS="$LIBS"
17712 LIBS="-lboost_system $LIBS"
17713
17714
17715
17716 ac_ext=cpp
17717 ac_cpp='$CXXCPP $CPPFLAGS'
17718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17721
17722
17723 if test -d .libs; then
17724 delete_libs_dir=no
17725 else
17726 delete_libs_dir=yes
17727 fi
17728
17729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17730 /* end confdefs.h. */
17731
17732
17733 int
17734 main ()
17735 {
17736 }
17737
17738 _ACEOF
17739 if ac_fn_cxx_try_compile "$LINENO"; then :
17740
17741 ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&5'
17742 if { { case "(($ac_try" in
17743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17744 *) ac_try_echo=$ac_try;;
17745 esac
17746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17747 $as_echo "$ac_try_echo"; } >&5
17748 (eval "$ac_try") 2>&5
17749 ac_status=$?
17750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17751 test $ac_status = 0; }; then
17752 libtool_link_ok=yes
17753 else
17754 libtool_link_ok=no
17755 fi
17756
17757 else
17758
17759 libtool_link_ok=no
17760
17761 fi
17762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17763
17764 if test x"$delete_libs_dir" = xyes; then
17765 rm -rf .libs
17766 fi
17767
17768 if test x"$libtool_link_ok" = xyes; then
17769 libboost_system_found=yes
17770 :
17771 else
17772
17773 :
17774 fi
17775
17776 ac_ext=cpp
17777 ac_cpp='$CXXCPP $CPPFLAGS'
17778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17781
17782
17783 # Try to fall back on the -mt version for backwards-compatibility.
17784 #
17785 if test x"$libboost_system_found" = xno; then
17786 LIBS="-lboost_system-mt $save_LIBS"
17787
17788
17789 ac_ext=cpp
17790 ac_cpp='$CXXCPP $CPPFLAGS'
17791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17794
17795
17796 if test -d .libs; then
17797 delete_libs_dir=no
17798 else
17799 delete_libs_dir=yes
17800 fi
17801
17802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17803 /* end confdefs.h. */
17804
17805
17806 int
17807 main ()
17808 {
17809 }
17810
17811 _ACEOF
17812 if ac_fn_cxx_try_compile "$LINENO"; then :
17813
17814 ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&5'
17815 if { { case "(($ac_try" in
17816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817 *) ac_try_echo=$ac_try;;
17818 esac
17819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17820 $as_echo "$ac_try_echo"; } >&5
17821 (eval "$ac_try") 2>&5
17822 ac_status=$?
17823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17824 test $ac_status = 0; }; then
17825 libtool_link_ok=yes
17826 else
17827 libtool_link_ok=no
17828 fi
17829
17830 else
17831
17832 libtool_link_ok=no
17833
17834 fi
17835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17836
17837 if test x"$delete_libs_dir" = xyes; then
17838 rm -rf .libs
17839 fi
17840
17841 if test x"$libtool_link_ok" = xyes; then
17842 libboost_system_found=yes
17843 :
17844 else
17845
17846 :
17847 fi
17848
17849 ac_ext=cpp
17850 ac_cpp='$CXXCPP $CPPFLAGS'
17851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17854
17855 fi
17856
17857 if test x"$libboost_system_found" = xno; then
17858 LIBS="$save_LIBS"
17859 fi
17860
17861 if test x"$libboost_system_found" = xyes; then
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17863 $as_echo "yes" >&6; }
17864
17865 else
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17867 $as_echo "no" >&6; }
17868
17869 fi
17870
17871
17872
17873 if test x"$boost_found" = xno; then
17874 as_fn_error $? "boost regex is not found; consider using CPPFLAGS/LDFLAGS or --with-boost=DIR to specify its location" "$LINENO" 5
17875 fi
17876
17877
17878 $as_echo "#define LIBCUTL_EXTERNAL_BOOST 1" >>confdefs.h
17879
17880 else
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17882 $as_echo "no" >&6; }
17883 fi
17884
17885 if test x"$external_boost" != xno; then
17886 LIBCUTL_EXTERNAL_BOOST_TRUE=
17887 LIBCUTL_EXTERNAL_BOOST_FALSE='#'
17888 else
17889 LIBCUTL_EXTERNAL_BOOST_TRUE='#'
17890 LIBCUTL_EXTERNAL_BOOST_FALSE=
17891 fi
17892
17893
17894 # Check for threads. For now only internal Boost uses threads so don't
17895 # configure them if we are using external Boost.
17896 #
17897 if test x"$external_boost" = xno; then
17898
17899
17900 threads_thread_keyword=no
17901
17902 # Check whether --enable-threads was given.
17903 if test "${enable_threads+set}" = set; then :
17904 enableval=$enable_threads; if test x"$enableval" = xno; then :
17905 threads=none
17906 else
17907 threads=check
17908 fi
17909 else
17910 threads=check
17911 fi
17912
17913
17914 # If thread support is not disabled by the user, figure out what we can use.
17915 #
17916 if test x$threads = xcheck; then
17917 case $host_os in
17918 windows* | mingw*)
17919 case $host_os in
17920 mingw*)
17921 CXXFLAGS="$CXXFLAGS -mthreads"
17922 ;;
17923 esac
17924
17925 # Newer versions of GCC can be configured to use either Win32 or POSIX
17926 # threads. It appears that -mthreads should be used in both cases but
17927 # if the model is POSIX then GCC will also link -lpthread by default.
17928 # Use that fact to test which model we have.
17929 #
17930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17931 /* end confdefs.h. */
17932 #include <pthread.h>
17933 int
17934 main ()
17935 {
17936 pthread_create(0,0,0,0);
17937 ;
17938 return 0;
17939 }
17940 _ACEOF
17941 if ac_fn_cxx_try_link "$LINENO"; then :
17942 threads=posix
17943 else
17944 threads=win32
17945 fi
17946 rm -f core conftest.err conftest.$ac_objext \
17947 conftest$ac_exeext conftest.$ac_ext
17948 ;;
17949 *)
17950
17951
17952
17953 ac_ext=cpp
17954 ac_cpp='$CXXCPP $CPPFLAGS'
17955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17958
17959 acx_pthread_ok=no
17960
17961 # We used to check for pthread.h first, but this fails if pthread.h
17962 # requires special compiler flags (e.g. on True64 or Sequent).
17963 # It gets checked for in the link test anyway.
17964
17965 # First of all, check if the user has set any of the PTHREAD_LIBS,
17966 # etcetera environment variables, and if threads linking works using
17967 # them:
17968 if test x"$PTHREAD_LIBS$PTHREAD_CXXFLAGS" != x; then
17969 save_CXXFLAGS="$CXXFLAGS"
17970 CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
17971 save_LIBS="$LIBS"
17972 LIBS="$PTHREAD_LIBS $LIBS"
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CXXFLAGS=$PTHREAD_CXXFLAGS" >&5
17974 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CXXFLAGS=$PTHREAD_CXXFLAGS... " >&6; }
17975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17976 /* end confdefs.h. */
17977
17978 /* Override any GCC internal prototype to avoid an error.
17979 Use char because int might match the return type of a GCC
17980 builtin and then its argument prototype would still apply. */
17981 #ifdef __cplusplus
17982 extern "C"
17983 #endif
17984 char pthread_join ();
17985 int
17986 main ()
17987 {
17988 return pthread_join ();
17989 ;
17990 return 0;
17991 }
17992 _ACEOF
17993 if ac_fn_cxx_try_link "$LINENO"; then :
17994 acx_pthread_ok=yes
17995 fi
17996 rm -f core conftest.err conftest.$ac_objext \
17997 conftest$ac_exeext conftest.$ac_ext
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17999 $as_echo "$acx_pthread_ok" >&6; }
18000 if test x"$acx_pthread_ok" = xno; then
18001 PTHREAD_LIBS=""
18002 PTHREAD_CXXFLAGS=""
18003 fi
18004 LIBS="$save_LIBS"
18005 CXXFLAGS="$save_CXXFLAGS"
18006 fi
18007
18008 # We must check for the threads library under a number of different
18009 # names; the ordering is very important because some systems
18010 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18011 # libraries is broken (non-POSIX).
18012
18013 # Create a list of thread flags to try. Items starting with a "-" are
18014 # C compiler flags, and other items are library names, except for "none"
18015 # which indicates that we try without any flags at all, and "pthread-config"
18016 # which is a program returning the flags for the Pth emulation library.
18017
18018 # CS: On GNU/Linux with gcc both -pthread and -lpthread are valid.
18019 # However, libtool links libraries with -nostdlib which results in
18020 # -pthread being stripped from the linker command line. To resolve
18021 # this we move pthread from after -mthreads to after pthreads.
18022 #
18023 acx_pthread_flags="pthreads pthread none -Kthread -kthread lthread -pthread -pthreads -mthreads --thread-safe -mt pthread-config"
18024
18025 # The ordering *is* (sometimes) important. Some notes on the
18026 # individual items follow:
18027
18028 # pthreads: AIX (must check this before -lpthread)
18029 # none: in case threads are in libc; should be tried before -Kthread and
18030 # other compiler flags to prevent continual compiler warnings
18031 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18032 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18033 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18034 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18035 # -pthreads: Solaris/gcc
18036 # -mthreads: Mingw32/gcc, Lynx/gcc
18037 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18038 # doesn't hurt to check since this sometimes defines pthreads too;
18039 # also defines -D_REENTRANT)
18040 # ... -mt is also the pthreads flag for HP/aCC
18041 # pthread: Linux, etcetera
18042 # --thread-safe: KAI C++
18043 # pthread-config: use pthread-config program (for GNU Pth library)
18044
18045 case "${host_cpu}-${host_os}" in
18046 *solaris*)
18047
18048 # On Solaris (at least, for some versions), libc contains stubbed
18049 # (non-functional) versions of the pthreads routines, so link-based
18050 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
18051 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18052 # a function called by this macro, so we could check for that, but
18053 # who knows whether they'll stub that too in a future libc.) So,
18054 # we'll just look for -pthreads and -lpthread first:
18055
18056 # CS: Move -mt to the front of the list; Sun CC will use -mt,
18057 # gcc will use -pthreads.
18058 #
18059 acx_pthread_flags="-mt -pthreads pthread -pthread $acx_pthread_flags"
18060 ;;
18061 esac
18062
18063 if test x"$acx_pthread_ok" = xno; then
18064 for flag in $acx_pthread_flags; do
18065
18066 case $flag in
18067 none)
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18069 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
18070 ;;
18071
18072 -*)
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18074 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
18075 PTHREAD_CXXFLAGS="$flag"
18076 ;;
18077
18078 pthread-config)
18079 # Extract the first word of "pthread-config", so it can be a program name with args.
18080 set dummy pthread-config; ac_word=$2
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18082 $as_echo_n "checking for $ac_word... " >&6; }
18083 if ${ac_cv_prog_acx_pthread_config+:} false; then :
18084 $as_echo_n "(cached) " >&6
18085 else
18086 if test -n "$acx_pthread_config"; then
18087 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18088 else
18089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18090 for as_dir in $PATH
18091 do
18092 IFS=$as_save_IFS
18093 test -z "$as_dir" && as_dir=.
18094 for ac_exec_ext in '' $ac_executable_extensions; do
18095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18096 ac_cv_prog_acx_pthread_config="yes"
18097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18098 break 2
18099 fi
18100 done
18101 done
18102 IFS=$as_save_IFS
18103
18104 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18105 fi
18106 fi
18107 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18108 if test -n "$acx_pthread_config"; then
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
18110 $as_echo "$acx_pthread_config" >&6; }
18111 else
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18113 $as_echo "no" >&6; }
18114 fi
18115
18116
18117 if test x"$acx_pthread_config" = xno; then continue; fi
18118 PTHREAD_CXXFLAGS="`pthread-config --cflags`"
18119 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18120 ;;
18121
18122 *)
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
18124 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
18125 PTHREAD_LIBS="-l$flag"
18126 ;;
18127 esac
18128
18129 save_LIBS="$LIBS"
18130 save_CXXFLAGS="$CXXFLAGS"
18131 LIBS="$PTHREAD_LIBS $LIBS"
18132 CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
18133
18134 # Check for various functions. We must include pthread.h,
18135 # since some functions may be macros. (On the Sequent, we
18136 # need a special flag -Kthread to make this header compile.)
18137 # We check for pthread_join because it is in -lpthread on IRIX
18138 # while pthread_create is in libc. We check for pthread_attr_init
18139 # due to DEC craziness with -lpthreads. We check for
18140 # pthread_cleanup_push because it is one of the few pthread
18141 # functions on Solaris that doesn't have a non-functional libc stub.
18142 # We try pthread_create on general principles.
18143 #
18144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18145 /* end confdefs.h. */
18146 #include <pthread.h>
18147 int
18148 main ()
18149 {
18150 pthread_t th; pthread_join(th, 0);
18151 pthread_attr_init(0); pthread_cleanup_push(0, 0);
18152 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18153 ;
18154 return 0;
18155 }
18156 _ACEOF
18157 if ac_fn_cxx_try_link "$LINENO"; then :
18158 acx_pthread_ok=yes
18159 fi
18160 rm -f core conftest.err conftest.$ac_objext \
18161 conftest$ac_exeext conftest.$ac_ext
18162
18163 LIBS="$save_LIBS"
18164 CXXFLAGS="$save_CXXFLAGS"
18165
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
18167 $as_echo "$acx_pthread_ok" >&6; }
18168 if test "x$acx_pthread_ok" = xyes; then
18169 break;
18170 fi
18171
18172 PTHREAD_LIBS=""
18173 PTHREAD_CXXFLAGS=""
18174 done
18175 fi
18176
18177 # Various other checks:
18178 if test "x$acx_pthread_ok" = xyes; then
18179 save_LIBS="$LIBS"
18180 LIBS="$PTHREAD_LIBS $LIBS"
18181 save_CXXFLAGS="$CXXFLAGS"
18182 CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
18183
18184
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
18186 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
18187 flag=no
18188 case "${host_cpu}-${host_os}" in
18189 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
18190 # CS: Add _REENTRANT in Linux to emulate -pthread.
18191 #
18192 *-linux* | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
18193 esac
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
18195 $as_echo "${flag}" >&6; }
18196 if test "x$flag" != xno; then
18197 PTHREAD_CXXFLAGS="$flag $PTHREAD_CXXFLAGS"
18198 fi
18199
18200 LIBS="$save_LIBS"
18201 CXXFLAGS="$save_CXXFLAGS"
18202
18203
18204 else
18205 PTHREAD_CXX="$CXX"
18206 fi
18207
18208
18209
18210
18211
18212 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18213 if test x"$acx_pthread_ok" = xyes; then
18214
18215 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
18216
18217 :
18218 else
18219 acx_pthread_ok=no
18220
18221 fi
18222 ac_ext=cpp
18223 ac_cpp='$CXXCPP $CPPFLAGS'
18224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18227
18228
18229
18230 if test x$acx_pthread_ok = xyes; then
18231 threads=posix
18232 LIBS="$LIBS $PTHREAD_LIBS"
18233 CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
18234
18235 # Check if we can use the __thread keyword.
18236 #
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread keyword" >&5
18238 $as_echo_n "checking for __thread keyword... " >&6; }
18239
18240
18241
18242 ac_ext=cpp
18243 ac_cpp='$CXXCPP $CPPFLAGS'
18244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18247
18248
18249 if test -d .libs; then
18250 delete_libs_dir=no
18251 else
18252 delete_libs_dir=yes
18253 fi
18254
18255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18256 /* end confdefs.h. */
18257
18258
18259 __thread int tls_var;
18260
18261 int
18262 main ()
18263 {
18264 tls_var = 0;
18265 }
18266
18267 _ACEOF
18268 if ac_fn_cxx_try_compile "$LINENO"; then :
18269
18270 ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&5'
18271 if { { case "(($ac_try" in
18272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18273 *) ac_try_echo=$ac_try;;
18274 esac
18275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18276 $as_echo "$ac_try_echo"; } >&5
18277 (eval "$ac_try") 2>&5
18278 ac_status=$?
18279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18280 test $ac_status = 0; }; then
18281 libtool_link_ok=yes
18282 else
18283 libtool_link_ok=no
18284 fi
18285
18286 else
18287
18288 libtool_link_ok=no
18289
18290 fi
18291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18292
18293 if test x"$delete_libs_dir" = xyes; then
18294 rm -rf .libs
18295 fi
18296
18297 if test x"$libtool_link_ok" = xyes; then
18298 threads_thread_keyword=yes
18299 :
18300 else
18301
18302 :
18303 fi
18304
18305 ac_ext=cpp
18306 ac_cpp='$CXXCPP $CPPFLAGS'
18307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18310
18311
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $threads_thread_keyword" >&5
18313 $as_echo "$threads_thread_keyword" >&6; }
18314 fi
18315 ;;
18316 esac
18317 fi
18318
18319 if test x$threads = xcheck; then
18320 as_fn_error $? "thread support not available; use --disable-threads to force single-threaded mode" "$LINENO" 5
18321 fi
18322
18323 if test x$threads = xnone; then :
18324
18325 $as_echo "#define LIBCUTL_DISABLE_THREADS 1" >>confdefs.h
18326
18327 fi
18328 fi
18329
18330 # Check if we need to use external Expat.
18331 #
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use external expat" >&5
18333 $as_echo_n "checking if we should use external expat... " >&6; }
18334
18335
18336 # Check whether --with-external-expat was given.
18337 if test "${with_external_expat+set}" = set; then :
18338 withval=$with_external_expat; external_expat=${withval}
18339 else
18340 external_expat=no
18341 fi
18342
18343
18344 if test x"$external_expat" != xno; then
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18346 $as_echo "yes" >&6; }
18347
18348 # Check if we have Expat.
18349 #
18350 expat_found=yes
18351
18352 libexpat_found=no
18353
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expat" >&5
18355 $as_echo_n "checking for expat... " >&6; }
18356
18357 save_LIBS="$LIBS"
18358 LIBS="-lexpat $LIBS"
18359
18360
18361
18362 ac_ext=cpp
18363 ac_cpp='$CXXCPP $CPPFLAGS'
18364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18367
18368
18369 if test -d .libs; then
18370 delete_libs_dir=no
18371 else
18372 delete_libs_dir=yes
18373 fi
18374
18375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18376 /* end confdefs.h. */
18377
18378
18379 #include <expat.h>
18380
18381 int
18382 main ()
18383 {
18384 XML_Parser p (XML_ParserCreateNS (0, XML_Char (' ')));
18385 XML_ParserFree (p);
18386 }
18387
18388 _ACEOF
18389 if ac_fn_cxx_try_compile "$LINENO"; then :
18390
18391 ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&5'
18392 if { { case "(($ac_try" in
18393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18394 *) ac_try_echo=$ac_try;;
18395 esac
18396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18397 $as_echo "$ac_try_echo"; } >&5
18398 (eval "$ac_try") 2>&5
18399 ac_status=$?
18400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18401 test $ac_status = 0; }; then
18402 libtool_link_ok=yes
18403 else
18404 libtool_link_ok=no
18405 fi
18406
18407 else
18408
18409 libtool_link_ok=no
18410
18411 fi
18412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18413
18414 if test x"$delete_libs_dir" = xyes; then
18415 rm -rf .libs
18416 fi
18417
18418 if test x"$libtool_link_ok" = xyes; then
18419
18420 libexpat_found=yes
18421
18422 :
18423 else
18424
18425 :
18426 fi
18427
18428 ac_ext=cpp
18429 ac_cpp='$CXXCPP $CPPFLAGS'
18430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18433
18434
18435 if test x"$libexpat_found" = xyes; then
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18437 $as_echo "yes" >&6; }
18438
18439 else
18440 LIBS="$save_LIBS"
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18442 $as_echo "no" >&6; }
18443 expat_found=no
18444 fi
18445
18446
18447 if test x"$expat_found" = xno; then
18448 as_fn_error $? "expat is not found; consider using CPPFLAGS/LDFLAGS to specify its location" "$LINENO" 5
18449 fi
18450
18451
18452 $as_echo "#define LIBCUTL_EXTERNAL_EXPAT 1" >>confdefs.h
18453
18454 else
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18456 $as_echo "no" >&6; }
18457 fi
18458
18459 if test x"$external_expat" != xno; then
18460 LIBCUTL_EXTERNAL_EXPAT_TRUE=
18461 LIBCUTL_EXTERNAL_EXPAT_FALSE='#'
18462 else
18463 LIBCUTL_EXTERNAL_EXPAT_TRUE='#'
18464 LIBCUTL_EXTERNAL_EXPAT_FALSE=
18465 fi
18466
18467
18468 # If we have internal Expat, then determine the byteorder.
18469 #
18470 if test x"$external_expat" = xno; then
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18472 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18473 if ${ac_cv_c_bigendian+:} false; then :
18474 $as_echo_n "(cached) " >&6
18475 else
18476 ac_cv_c_bigendian=unknown
18477 # See if we're dealing with a universal compiler.
18478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18479 /* end confdefs.h. */
18480 #ifndef __APPLE_CC__
18481 not a universal capable compiler
18482 #endif
18483 typedef int dummy;
18484
18485 _ACEOF
18486 if ac_fn_cxx_try_compile "$LINENO"; then :
18487
18488 # Check for potential -arch flags. It is not universal unless
18489 # there are at least two -arch flags with different values.
18490 ac_arch=
18491 ac_prev=
18492 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18493 if test -n "$ac_prev"; then
18494 case $ac_word in
18495 i?86 | x86_64 | ppc | ppc64)
18496 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18497 ac_arch=$ac_word
18498 else
18499 ac_cv_c_bigendian=universal
18500 break
18501 fi
18502 ;;
18503 esac
18504 ac_prev=
18505 elif test "x$ac_word" = "x-arch"; then
18506 ac_prev=arch
18507 fi
18508 done
18509 fi
18510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18511 if test $ac_cv_c_bigendian = unknown; then
18512 # See if sys/param.h defines the BYTE_ORDER macro.
18513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18514 /* end confdefs.h. */
18515 #include <sys/types.h>
18516 #include <sys/param.h>
18517
18518 int
18519 main ()
18520 {
18521 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18522 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18523 && LITTLE_ENDIAN)
18524 bogus endian macros
18525 #endif
18526
18527 ;
18528 return 0;
18529 }
18530 _ACEOF
18531 if ac_fn_cxx_try_compile "$LINENO"; then :
18532 # It does; now see whether it defined to BIG_ENDIAN or not.
18533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18534 /* end confdefs.h. */
18535 #include <sys/types.h>
18536 #include <sys/param.h>
18537
18538 int
18539 main ()
18540 {
18541 #if BYTE_ORDER != BIG_ENDIAN
18542 not big endian
18543 #endif
18544
18545 ;
18546 return 0;
18547 }
18548 _ACEOF
18549 if ac_fn_cxx_try_compile "$LINENO"; then :
18550 ac_cv_c_bigendian=yes
18551 else
18552 ac_cv_c_bigendian=no
18553 fi
18554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18555 fi
18556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18557 fi
18558 if test $ac_cv_c_bigendian = unknown; then
18559 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18561 /* end confdefs.h. */
18562 #include <limits.h>
18563
18564 int
18565 main ()
18566 {
18567 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18568 bogus endian macros
18569 #endif
18570
18571 ;
18572 return 0;
18573 }
18574 _ACEOF
18575 if ac_fn_cxx_try_compile "$LINENO"; then :
18576 # It does; now see whether it defined to _BIG_ENDIAN or not.
18577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18578 /* end confdefs.h. */
18579 #include <limits.h>
18580
18581 int
18582 main ()
18583 {
18584 #ifndef _BIG_ENDIAN
18585 not big endian
18586 #endif
18587
18588 ;
18589 return 0;
18590 }
18591 _ACEOF
18592 if ac_fn_cxx_try_compile "$LINENO"; then :
18593 ac_cv_c_bigendian=yes
18594 else
18595 ac_cv_c_bigendian=no
18596 fi
18597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18598 fi
18599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18600 fi
18601 if test $ac_cv_c_bigendian = unknown; then
18602 # Compile a test program.
18603 if test "$cross_compiling" = yes; then :
18604 # Try to guess by grepping values from an object file.
18605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18606 /* end confdefs.h. */
18607 short int ascii_mm[] =
18608 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18609 short int ascii_ii[] =
18610 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18611 int use_ascii (int i) {
18612 return ascii_mm[i] + ascii_ii[i];
18613 }
18614 short int ebcdic_ii[] =
18615 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18616 short int ebcdic_mm[] =
18617 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18618 int use_ebcdic (int i) {
18619 return ebcdic_mm[i] + ebcdic_ii[i];
18620 }
18621 extern int foo;
18622
18623 int
18624 main ()
18625 {
18626 return use_ascii (foo) == use_ebcdic (foo);
18627 ;
18628 return 0;
18629 }
18630 _ACEOF
18631 if ac_fn_cxx_try_compile "$LINENO"; then :
18632 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18633 ac_cv_c_bigendian=yes
18634 fi
18635 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18636 if test "$ac_cv_c_bigendian" = unknown; then
18637 ac_cv_c_bigendian=no
18638 else
18639 # finding both strings is unlikely to happen, but who knows?
18640 ac_cv_c_bigendian=unknown
18641 fi
18642 fi
18643 fi
18644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18645 else
18646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18647 /* end confdefs.h. */
18648 $ac_includes_default
18649 int
18650 main ()
18651 {
18652
18653 /* Are we little or big endian? From Harbison&Steele. */
18654 union
18655 {
18656 long int l;
18657 char c[sizeof (long int)];
18658 } u;
18659 u.l = 1;
18660 return u.c[sizeof (long int) - 1] == 1;
18661
18662 ;
18663 return 0;
18664 }
18665 _ACEOF
18666 if ac_fn_cxx_try_run "$LINENO"; then :
18667 ac_cv_c_bigendian=no
18668 else
18669 ac_cv_c_bigendian=yes
18670 fi
18671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18672 conftest.$ac_objext conftest.beam conftest.$ac_ext
18673 fi
18674
18675 fi
18676 fi
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18678 $as_echo "$ac_cv_c_bigendian" >&6; }
18679 case $ac_cv_c_bigendian in #(
18680 yes)
18681 byteorder=4321;; #(
18682 no)
18683 byteorder=1234 ;; #(
18684 universal)
18685
18686 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18687
18688 ;; #(
18689 *)
18690 as_fn_error $? "unknown endianness
18691 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18692 esac
18693
18694
18695 cat >>confdefs.h <<_ACEOF
18696 #define LIBCUTL_BYTEORDER $byteorder
18697 _ACEOF
18698
18699 fi
18700
18701 # Define LIBCUTL_STATIC_LIB if we are build static library on certain platforms.
18702 #
18703
18704 if test x$enable_shared = xno; then
18705 case $host_os in
18706 mingw*)
18707
18708 $as_echo "#define LIBCUTL_STATIC_LIB 1" >>confdefs.h
18709
18710 ;;
18711 esac
18712 fi
18713
18714
18715 # Allow the user to specify the pkgconfig directory.
18716 #
18717
18718
18719 # Check whether --with-pkgconfigdir was given.
18720 if test "${with_pkgconfigdir+set}" = set; then :
18721 withval=$with_pkgconfigdir; pkgconfigdir=${withval}
18722 else
18723 pkgconfigdir='${libdir}/pkgconfig'
18724 fi
18725
18726
18727
18728
18729 # Check if we should disable rpath.
18730 #
18731
18732
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use rpath" >&5
18734 $as_echo_n "checking whether to use rpath... " >&6; }
18735 # Check whether --enable-rpath was given.
18736 if test "${enable_rpath+set}" = set; then :
18737 enableval=$enable_rpath; libtool_rpath="$enable_rpath"
18738 else
18739 libtool_rpath="yes"
18740 fi
18741
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libtool_rpath" >&5
18743 $as_echo "$libtool_rpath" >&6; }
18744
18745 # Patch libtool to not use rpath if requested.
18746 #
18747 ac_config_commands="$ac_config_commands libtool-rpath-patch"
18748
18749
18750
18751 # Output.
18752 #
18753 ac_config_headers="$ac_config_headers cutl/config.h cutl/details/config.h"
18754
18755 ac_config_files="$ac_config_files cutl/Makefile libcutl.pc Makefile"
18756
18757 cat >confcache <<\_ACEOF
18758 # This file is a shell script that caches the results of configure
18759 # tests run on this system so they can be shared between configure
18760 # scripts and configure runs, see configure's option --config-cache.
18761 # It is not useful on other systems. If it contains results you don't
18762 # want to keep, you may remove or edit it.
18763 #
18764 # config.status only pays attention to the cache file if you give it
18765 # the --recheck option to rerun configure.
18766 #
18767 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18768 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18769 # following values.
18770
18771 _ACEOF
18772
18773 # The following way of writing the cache mishandles newlines in values,
18774 # but we know of no workaround that is simple, portable, and efficient.
18775 # So, we kill variables containing newlines.
18776 # Ultrix sh set writes to stderr and can't be redirected directly,
18777 # and sets the high bit in the cache file unless we assign to the vars.
18778 (
18779 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18780 eval ac_val=\$$ac_var
18781 case $ac_val in #(
18782 *${as_nl}*)
18783 case $ac_var in #(
18784 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18785 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18786 esac
18787 case $ac_var in #(
18788 _ | IFS | as_nl) ;; #(
18789 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18790 *) { eval $ac_var=; unset $ac_var;} ;;
18791 esac ;;
18792 esac
18793 done
18794
18795 (set) 2>&1 |
18796 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18797 *${as_nl}ac_space=\ *)
18798 # `set' does not quote correctly, so add quotes: double-quote
18799 # substitution turns \\\\ into \\, and sed turns \\ into \.
18800 sed -n \
18801 "s/'/'\\\\''/g;
18802 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18803 ;; #(
18804 *)
18805 # `set' quotes correctly as required by POSIX, so do not add quotes.
18806 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18807 ;;
18808 esac |
18809 sort
18810 ) |
18811 sed '
18812 /^ac_cv_env_/b end
18813 t clear
18814 :clear
18815 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18816 t end
18817 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18818 :end' >>confcache
18819 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18820 if test -w "$cache_file"; then
18821 if test "x$cache_file" != "x/dev/null"; then
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18823 $as_echo "$as_me: updating cache $cache_file" >&6;}
18824 if test ! -f "$cache_file" || test -h "$cache_file"; then
18825 cat confcache >"$cache_file"
18826 else
18827 case $cache_file in #(
18828 */* | ?:*)
18829 mv -f confcache "$cache_file"$$ &&
18830 mv -f "$cache_file"$$ "$cache_file" ;; #(
18831 *)
18832 mv -f confcache "$cache_file" ;;
18833 esac
18834 fi
18835 fi
18836 else
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18838 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18839 fi
18840 fi
18841 rm -f confcache
18842
18843 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18844 # Let make expand exec_prefix.
18845 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18846
18847 DEFS=-DHAVE_CONFIG_H
18848
18849 ac_libobjs=
18850 ac_ltlibobjs=
18851 U=
18852 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18853 # 1. Remove the extension, and $U if already installed.
18854 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18855 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18856 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18857 # will be set to the directory where LIBOBJS objects are built.
18858 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18859 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18860 done
18861 LIBOBJS=$ac_libobjs
18862
18863 LTLIBOBJS=$ac_ltlibobjs
18864
18865
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18867 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18868 if test -n "$am_sleep_pid"; then
18869 # Hide warnings about reused PIDs.
18870 wait $am_sleep_pid 2>/dev/null
18871 fi
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18873 $as_echo "done" >&6; }
18874 if test -n "$EXEEXT"; then
18875 am__EXEEXT_TRUE=
18876 am__EXEEXT_FALSE='#'
18877 else
18878 am__EXEEXT_TRUE='#'
18879 am__EXEEXT_FALSE=
18880 fi
18881
18882 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18883 as_fn_error $? "conditional \"AMDEP\" was never defined.
18884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18885 fi
18886 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18887 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18889 fi
18890 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18891 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18893 fi
18894 if test -z "${LIBCUTL_EXTERNAL_BOOST_TRUE}" && test -z "${LIBCUTL_EXTERNAL_BOOST_FALSE}"; then
18895 as_fn_error $? "conditional \"LIBCUTL_EXTERNAL_BOOST\" was never defined.
18896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18897 fi
18898 if test -z "${LIBCUTL_EXTERNAL_EXPAT_TRUE}" && test -z "${LIBCUTL_EXTERNAL_EXPAT_FALSE}"; then
18899 as_fn_error $? "conditional \"LIBCUTL_EXTERNAL_EXPAT\" was never defined.
18900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18901 fi
18902
18903
18904 : "${CONFIG_STATUS=./config.status}"
18905 ac_write_fail=0
18906 ac_clean_files_save=$ac_clean_files
18907 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18909 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18910 as_write_fail=0
18911 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18912 #! $SHELL
18913 # Generated by $as_me.
18914 # Run this file to recreate the current configuration.
18915 # Compiler output produced by configure, useful for debugging
18916 # configure, is in config.log if it exists.
18917
18918 debug=false
18919 ac_cs_recheck=false
18920 ac_cs_silent=false
18921
18922 SHELL=\${CONFIG_SHELL-$SHELL}
18923 export SHELL
18924 _ASEOF
18925 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18926 ## -------------------- ##
18927 ## M4sh Initialization. ##
18928 ## -------------------- ##
18929
18930 # Be more Bourne compatible
18931 DUALCASE=1; export DUALCASE # for MKS sh
18932 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18933 emulate sh
18934 NULLCMD=:
18935 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18936 # is contrary to our usage. Disable this feature.
18937 alias -g '${1+"$@"}'='"$@"'
18938 setopt NO_GLOB_SUBST
18939 else
18940 case `(set -o) 2>/dev/null` in #(
18941 *posix*) :
18942 set -o posix ;; #(
18943 *) :
18944 ;;
18945 esac
18946 fi
18947
18948
18949 as_nl='
18950 '
18951 export as_nl
18952 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18953 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18954 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18955 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18956 # Prefer a ksh shell builtin over an external printf program on Solaris,
18957 # but without wasting forks for bash or zsh.
18958 if test -z "$BASH_VERSION$ZSH_VERSION" \
18959 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18960 as_echo='print -r --'
18961 as_echo_n='print -rn --'
18962 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18963 as_echo='printf %s\n'
18964 as_echo_n='printf %s'
18965 else
18966 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18967 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18968 as_echo_n='/usr/ucb/echo -n'
18969 else
18970 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18971 as_echo_n_body='eval
18972 arg=$1;
18973 case $arg in #(
18974 *"$as_nl"*)
18975 expr "X$arg" : "X\\(.*\\)$as_nl";
18976 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18977 esac;
18978 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18979 '
18980 export as_echo_n_body
18981 as_echo_n='sh -c $as_echo_n_body as_echo'
18982 fi
18983 export as_echo_body
18984 as_echo='sh -c $as_echo_body as_echo'
18985 fi
18986
18987 # The user is always right.
18988 if test "${PATH_SEPARATOR+set}" != set; then
18989 PATH_SEPARATOR=:
18990 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18991 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18992 PATH_SEPARATOR=';'
18993 }
18994 fi
18995
18996
18997 # IFS
18998 # We need space, tab and new line, in precisely that order. Quoting is
18999 # there to prevent editors from complaining about space-tab.
19000 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19001 # splitting by setting IFS to empty value.)
19002 IFS=" "" $as_nl"
19003
19004 # Find who we are. Look in the path if we contain no directory separator.
19005 as_myself=
19006 case $0 in #((
19007 *[\\/]* ) as_myself=$0 ;;
19008 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19009 for as_dir in $PATH
19010 do
19011 IFS=$as_save_IFS
19012 test -z "$as_dir" && as_dir=.
19013 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19014 done
19015 IFS=$as_save_IFS
19016
19017 ;;
19018 esac
19019 # We did not find ourselves, most probably we were run as `sh COMMAND'
19020 # in which case we are not to be found in the path.
19021 if test "x$as_myself" = x; then
19022 as_myself=$0
19023 fi
19024 if test ! -f "$as_myself"; then
19025 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19026 exit 1
19027 fi
19028
19029 # Unset variables that we do not need and which cause bugs (e.g. in
19030 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19031 # suppresses any "Segmentation fault" message there. '((' could
19032 # trigger a bug in pdksh 5.2.14.
19033 for as_var in BASH_ENV ENV MAIL MAILPATH
19034 do eval test x\${$as_var+set} = xset \
19035 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19036 done
19037 PS1='$ '
19038 PS2='> '
19039 PS4='+ '
19040
19041 # NLS nuisances.
19042 LC_ALL=C
19043 export LC_ALL
19044 LANGUAGE=C
19045 export LANGUAGE
19046
19047 # CDPATH.
19048 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19049
19050
19051 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19052 # ----------------------------------------
19053 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19054 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19055 # script with STATUS, using 1 if that was 0.
19056 as_fn_error ()
19057 {
19058 as_status=$1; test $as_status -eq 0 && as_status=1
19059 if test "$4"; then
19060 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19061 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19062 fi
19063 $as_echo "$as_me: error: $2" >&2
19064 as_fn_exit $as_status
19065 } # as_fn_error
19066
19067
19068 # as_fn_set_status STATUS
19069 # -----------------------
19070 # Set $? to STATUS, without forking.
19071 as_fn_set_status ()
19072 {
19073 return $1
19074 } # as_fn_set_status
19075
19076 # as_fn_exit STATUS
19077 # -----------------
19078 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19079 as_fn_exit ()
19080 {
19081 set +e
19082 as_fn_set_status $1
19083 exit $1
19084 } # as_fn_exit
19085
19086 # as_fn_unset VAR
19087 # ---------------
19088 # Portably unset VAR.
19089 as_fn_unset ()
19090 {
19091 { eval $1=; unset $1;}
19092 }
19093 as_unset=as_fn_unset
19094 # as_fn_append VAR VALUE
19095 # ----------------------
19096 # Append the text in VALUE to the end of the definition contained in VAR. Take
19097 # advantage of any shell optimizations that allow amortized linear growth over
19098 # repeated appends, instead of the typical quadratic growth present in naive
19099 # implementations.
19100 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19101 eval 'as_fn_append ()
19102 {
19103 eval $1+=\$2
19104 }'
19105 else
19106 as_fn_append ()
19107 {
19108 eval $1=\$$1\$2
19109 }
19110 fi # as_fn_append
19111
19112 # as_fn_arith ARG...
19113 # ------------------
19114 # Perform arithmetic evaluation on the ARGs, and store the result in the
19115 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19116 # must be portable across $(()) and expr.
19117 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19118 eval 'as_fn_arith ()
19119 {
19120 as_val=$(( $* ))
19121 }'
19122 else
19123 as_fn_arith ()
19124 {
19125 as_val=`expr "$@" || test $? -eq 1`
19126 }
19127 fi # as_fn_arith
19128
19129
19130 if expr a : '\(a\)' >/dev/null 2>&1 &&
19131 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19132 as_expr=expr
19133 else
19134 as_expr=false
19135 fi
19136
19137 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19138 as_basename=basename
19139 else
19140 as_basename=false
19141 fi
19142
19143 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19144 as_dirname=dirname
19145 else
19146 as_dirname=false
19147 fi
19148
19149 as_me=`$as_basename -- "$0" ||
19150 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19151 X"$0" : 'X\(//\)$' \| \
19152 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19153 $as_echo X/"$0" |
19154 sed '/^.*\/\([^/][^/]*\)\/*$/{
19155 s//\1/
19156 q
19157 }
19158 /^X\/\(\/\/\)$/{
19159 s//\1/
19160 q
19161 }
19162 /^X\/\(\/\).*/{
19163 s//\1/
19164 q
19165 }
19166 s/.*/./; q'`
19167
19168 # Avoid depending upon Character Ranges.
19169 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19170 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19171 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19172 as_cr_digits='0123456789'
19173 as_cr_alnum=$as_cr_Letters$as_cr_digits
19174
19175 ECHO_C= ECHO_N= ECHO_T=
19176 case `echo -n x` in #(((((
19177 -n*)
19178 case `echo 'xy\c'` in
19179 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19180 xy) ECHO_C='\c';;
19181 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19182 ECHO_T=' ';;
19183 esac;;
19184 *)
19185 ECHO_N='-n';;
19186 esac
19187
19188 rm -f conf$$ conf$$.exe conf$$.file
19189 if test -d conf$$.dir; then
19190 rm -f conf$$.dir/conf$$.file
19191 else
19192 rm -f conf$$.dir
19193 mkdir conf$$.dir 2>/dev/null
19194 fi
19195 if (echo >conf$$.file) 2>/dev/null; then
19196 if ln -s conf$$.file conf$$ 2>/dev/null; then
19197 as_ln_s='ln -s'
19198 # ... but there are two gotchas:
19199 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19200 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19201 # In both cases, we have to default to `cp -pR'.
19202 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19203 as_ln_s='cp -pR'
19204 elif ln conf$$.file conf$$ 2>/dev/null; then
19205 as_ln_s=ln
19206 else
19207 as_ln_s='cp -pR'
19208 fi
19209 else
19210 as_ln_s='cp -pR'
19211 fi
19212 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19213 rmdir conf$$.dir 2>/dev/null
19214
19215
19216 # as_fn_mkdir_p
19217 # -------------
19218 # Create "$as_dir" as a directory, including parents if necessary.
19219 as_fn_mkdir_p ()
19220 {
19221
19222 case $as_dir in #(
19223 -*) as_dir=./$as_dir;;
19224 esac
19225 test -d "$as_dir" || eval $as_mkdir_p || {
19226 as_dirs=
19227 while :; do
19228 case $as_dir in #(
19229 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19230 *) as_qdir=$as_dir;;
19231 esac
19232 as_dirs="'$as_qdir' $as_dirs"
19233 as_dir=`$as_dirname -- "$as_dir" ||
19234 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19235 X"$as_dir" : 'X\(//\)[^/]' \| \
19236 X"$as_dir" : 'X\(//\)$' \| \
19237 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19238 $as_echo X"$as_dir" |
19239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19240 s//\1/
19241 q
19242 }
19243 /^X\(\/\/\)[^/].*/{
19244 s//\1/
19245 q
19246 }
19247 /^X\(\/\/\)$/{
19248 s//\1/
19249 q
19250 }
19251 /^X\(\/\).*/{
19252 s//\1/
19253 q
19254 }
19255 s/.*/./; q'`
19256 test -d "$as_dir" && break
19257 done
19258 test -z "$as_dirs" || eval "mkdir $as_dirs"
19259 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19260
19261
19262 } # as_fn_mkdir_p
19263 if mkdir -p . 2>/dev/null; then
19264 as_mkdir_p='mkdir -p "$as_dir"'
19265 else
19266 test -d ./-p && rmdir ./-p
19267 as_mkdir_p=false
19268 fi
19269
19270
19271 # as_fn_executable_p FILE
19272 # -----------------------
19273 # Test if FILE is an executable regular file.
19274 as_fn_executable_p ()
19275 {
19276 test -f "$1" && test -x "$1"
19277 } # as_fn_executable_p
19278 as_test_x='test -x'
19279 as_executable_p=as_fn_executable_p
19280
19281 # Sed expression to map a string onto a valid CPP name.
19282 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19283
19284 # Sed expression to map a string onto a valid variable name.
19285 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19286
19287
19288 exec 6>&1
19289 ## ----------------------------------- ##
19290 ## Main body of $CONFIG_STATUS script. ##
19291 ## ----------------------------------- ##
19292 _ASEOF
19293 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19294
19295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19296 # Save the log message, to keep $0 and so on meaningful, and to
19297 # report actual input values of CONFIG_FILES etc. instead of their
19298 # values after options handling.
19299 ac_log="
19300 This file was extended by libcutl $as_me 1.10.0, which was
19301 generated by GNU Autoconf 2.69. Invocation command line was
19302
19303 CONFIG_FILES = $CONFIG_FILES
19304 CONFIG_HEADERS = $CONFIG_HEADERS
19305 CONFIG_LINKS = $CONFIG_LINKS
19306 CONFIG_COMMANDS = $CONFIG_COMMANDS
19307 $ $0 $@
19308
19309 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19310 "
19311
19312 _ACEOF
19313
19314 case $ac_config_files in *"
19315 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19316 esac
19317
19318 case $ac_config_headers in *"
19319 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19320 esac
19321
19322
19323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19324 # Files that config.status was made for.
19325 config_files="$ac_config_files"
19326 config_headers="$ac_config_headers"
19327 config_commands="$ac_config_commands"
19328
19329 _ACEOF
19330
19331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19332 ac_cs_usage="\
19333 \`$as_me' instantiates files and other configuration actions
19334 from templates according to the current configuration. Unless the files
19335 and actions are specified as TAGs, all are instantiated by default.
19336
19337 Usage: $0 [OPTION]... [TAG]...
19338
19339 -h, --help print this help, then exit
19340 -V, --version print version number and configuration settings, then exit
19341 --config print configuration, then exit
19342 -q, --quiet, --silent
19343 do not print progress messages
19344 -d, --debug don't remove temporary files
19345 --recheck update $as_me by reconfiguring in the same conditions
19346 --file=FILE[:TEMPLATE]
19347 instantiate the configuration file FILE
19348 --header=FILE[:TEMPLATE]
19349 instantiate the configuration header FILE
19350
19351 Configuration files:
19352 $config_files
19353
19354 Configuration headers:
19355 $config_headers
19356
19357 Configuration commands:
19358 $config_commands
19359
19360 Report bugs to <[email protected]>."
19361
19362 _ACEOF
19363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19364 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19365 ac_cs_version="\\
19366 libcutl config.status 1.10.0
19367 configured by $0, generated by GNU Autoconf 2.69,
19368 with options \\"\$ac_cs_config\\"
19369
19370 Copyright (C) 2012 Free Software Foundation, Inc.
19371 This config.status script is free software; the Free Software Foundation
19372 gives unlimited permission to copy, distribute and modify it."
19373
19374 ac_pwd='$ac_pwd'
19375 srcdir='$srcdir'
19376 INSTALL='$INSTALL'
19377 MKDIR_P='$MKDIR_P'
19378 AWK='$AWK'
19379 test -n "\$AWK" || AWK=awk
19380 _ACEOF
19381
19382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19383 # The default lists apply if the user does not specify any file.
19384 ac_need_defaults=:
19385 while test $# != 0
19386 do
19387 case $1 in
19388 --*=?*)
19389 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19390 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19391 ac_shift=:
19392 ;;
19393 --*=)
19394 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19395 ac_optarg=
19396 ac_shift=:
19397 ;;
19398 *)
19399 ac_option=$1
19400 ac_optarg=$2
19401 ac_shift=shift
19402 ;;
19403 esac
19404
19405 case $ac_option in
19406 # Handling of the options.
19407 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19408 ac_cs_recheck=: ;;
19409 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19410 $as_echo "$ac_cs_version"; exit ;;
19411 --config | --confi | --conf | --con | --co | --c )
19412 $as_echo "$ac_cs_config"; exit ;;
19413 --debug | --debu | --deb | --de | --d | -d )
19414 debug=: ;;
19415 --file | --fil | --fi | --f )
19416 $ac_shift
19417 case $ac_optarg in
19418 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19419 '') as_fn_error $? "missing file argument" ;;
19420 esac
19421 as_fn_append CONFIG_FILES " '$ac_optarg'"
19422 ac_need_defaults=false;;
19423 --header | --heade | --head | --hea )
19424 $ac_shift
19425 case $ac_optarg in
19426 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19427 esac
19428 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19429 ac_need_defaults=false;;
19430 --he | --h)
19431 # Conflict between --help and --header
19432 as_fn_error $? "ambiguous option: \`$1'
19433 Try \`$0 --help' for more information.";;
19434 --help | --hel | -h )
19435 $as_echo "$ac_cs_usage"; exit ;;
19436 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19437 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19438 ac_cs_silent=: ;;
19439
19440 # This is an error.
19441 -*) as_fn_error $? "unrecognized option: \`$1'
19442 Try \`$0 --help' for more information." ;;
19443
19444 *) as_fn_append ac_config_targets " $1"
19445 ac_need_defaults=false ;;
19446
19447 esac
19448 shift
19449 done
19450
19451 ac_configure_extra_args=
19452
19453 if $ac_cs_silent; then
19454 exec 6>/dev/null
19455 ac_configure_extra_args="$ac_configure_extra_args --silent"
19456 fi
19457
19458 _ACEOF
19459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19460 if \$ac_cs_recheck; then
19461 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19462 shift
19463 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19464 CONFIG_SHELL='$SHELL'
19465 export CONFIG_SHELL
19466 exec "\$@"
19467 fi
19468
19469 _ACEOF
19470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19471 exec 5>>config.log
19472 {
19473 echo
19474 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19475 ## Running $as_me. ##
19476 _ASBOX
19477 $as_echo "$ac_log"
19478 } >&5
19479
19480 _ACEOF
19481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19482 #
19483 # INIT-COMMANDS
19484 #
19485 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19486
19487
19488 # The HP-UX ksh and POSIX shell print the target directory to stdout
19489 # if CDPATH is set.
19490 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19491
19492 sed_quote_subst='$sed_quote_subst'
19493 double_quote_subst='$double_quote_subst'
19494 delay_variable_subst='$delay_variable_subst'
19495 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19496 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19497 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19498 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19499 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19500 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19501 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19502 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19503 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19504 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19505 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19506 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19507 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19508 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19509 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19510 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19511 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19512 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19513 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19514 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19515 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19516 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19517 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19518 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19519 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19520 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19521 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19522 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19523 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19524 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19525 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19526 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19527 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19528 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19529 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19530 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19531 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19532 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19533 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19534 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19535 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19536 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19537 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19538 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19539 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19540 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19541 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19542 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19543 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19544 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19545 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19546 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19547 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19548 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19549 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19550 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19551 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19552 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"`'
19553 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19554 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19555 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19556 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19557 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19558 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19559 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19560 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19561 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19562 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19563 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19564 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19565 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19566 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19567 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19568 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19569 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19570 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19571 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19572 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19573 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19574 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19575 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19576 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19577 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19578 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19579 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19580 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19581 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19582 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19583 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19584 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19585 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19586 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19587 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19588 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19589 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19590 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19591 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19592 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19593 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19594 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19595 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19596 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19597 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19598 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19599 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19600 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19601 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19602 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19603 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19604 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19605 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19606 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19607 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19608 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19609 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19610 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19611 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19612 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19613 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19614 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19615 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19616 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19617 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19618 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19619 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19620 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19621 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19622 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19623 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19624 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19625 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19626 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19627 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19628 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19629 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19630 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19631 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19632 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19633 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19634 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19635 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19636 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19637 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19638 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19639 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19640 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19641 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19642 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19643 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19644 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19645 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19646 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19647 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19648 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19649 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19650 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19651 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19652 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19653 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19654 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19655 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19656 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19657 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19658 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19659 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19660 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19661 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19662 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19663 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19664 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19665 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19666 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19667 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19668 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19669 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19670 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19671 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19672 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19673 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19674 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19675 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19676 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19677 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19678 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19679 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19680
19681 LTCC='$LTCC'
19682 LTCFLAGS='$LTCFLAGS'
19683 compiler='$compiler_DEFAULT'
19684
19685 # A function that is used when there is no print builtin or printf.
19686 func_fallback_echo ()
19687 {
19688 eval 'cat <<_LTECHO_EOF
19689 \$1
19690 _LTECHO_EOF'
19691 }
19692
19693 # Quote evaled strings.
19694 for var in AS \
19695 DLLTOOL \
19696 OBJDUMP \
19697 SHELL \
19698 ECHO \
19699 PATH_SEPARATOR \
19700 SED \
19701 GREP \
19702 EGREP \
19703 FGREP \
19704 LD \
19705 NM \
19706 LN_S \
19707 lt_SP2NL \
19708 lt_NL2SP \
19709 reload_flag \
19710 deplibs_check_method \
19711 file_magic_cmd \
19712 file_magic_glob \
19713 want_nocaseglob \
19714 sharedlib_from_linklib_cmd \
19715 AR \
19716 AR_FLAGS \
19717 archiver_list_spec \
19718 STRIP \
19719 RANLIB \
19720 CC \
19721 CFLAGS \
19722 compiler \
19723 lt_cv_sys_global_symbol_pipe \
19724 lt_cv_sys_global_symbol_to_cdecl \
19725 lt_cv_sys_global_symbol_to_c_name_address \
19726 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19727 nm_file_list_spec \
19728 lt_prog_compiler_no_builtin_flag \
19729 lt_prog_compiler_pic \
19730 lt_prog_compiler_wl \
19731 lt_prog_compiler_static \
19732 lt_cv_prog_compiler_c_o \
19733 need_locks \
19734 MANIFEST_TOOL \
19735 DSYMUTIL \
19736 NMEDIT \
19737 LIPO \
19738 OTOOL \
19739 OTOOL64 \
19740 shrext_cmds \
19741 export_dynamic_flag_spec \
19742 whole_archive_flag_spec \
19743 compiler_needs_object \
19744 with_gnu_ld \
19745 allow_undefined_flag \
19746 no_undefined_flag \
19747 hardcode_libdir_flag_spec \
19748 hardcode_libdir_separator \
19749 exclude_expsyms \
19750 include_expsyms \
19751 file_list_spec \
19752 variables_saved_for_relink \
19753 libname_spec \
19754 library_names_spec \
19755 soname_spec \
19756 install_override_mode \
19757 finish_eval \
19758 old_striplib \
19759 striplib \
19760 compiler_lib_search_dirs \
19761 predep_objects \
19762 postdep_objects \
19763 predeps \
19764 postdeps \
19765 compiler_lib_search_path \
19766 LD_CXX \
19767 reload_flag_CXX \
19768 compiler_CXX \
19769 lt_prog_compiler_no_builtin_flag_CXX \
19770 lt_prog_compiler_pic_CXX \
19771 lt_prog_compiler_wl_CXX \
19772 lt_prog_compiler_static_CXX \
19773 lt_cv_prog_compiler_c_o_CXX \
19774 export_dynamic_flag_spec_CXX \
19775 whole_archive_flag_spec_CXX \
19776 compiler_needs_object_CXX \
19777 with_gnu_ld_CXX \
19778 allow_undefined_flag_CXX \
19779 no_undefined_flag_CXX \
19780 hardcode_libdir_flag_spec_CXX \
19781 hardcode_libdir_separator_CXX \
19782 exclude_expsyms_CXX \
19783 include_expsyms_CXX \
19784 file_list_spec_CXX \
19785 compiler_lib_search_dirs_CXX \
19786 predep_objects_CXX \
19787 postdep_objects_CXX \
19788 predeps_CXX \
19789 postdeps_CXX \
19790 compiler_lib_search_path_CXX; do
19791 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19792 *[\\\\\\\`\\"\\\$]*)
19793 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19794 ;;
19795 *)
19796 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19797 ;;
19798 esac
19799 done
19800
19801 # Double-quote double-evaled strings.
19802 for var in reload_cmds \
19803 old_postinstall_cmds \
19804 old_postuninstall_cmds \
19805 old_archive_cmds \
19806 extract_expsyms_cmds \
19807 old_archive_from_new_cmds \
19808 old_archive_from_expsyms_cmds \
19809 archive_cmds \
19810 archive_expsym_cmds \
19811 module_cmds \
19812 module_expsym_cmds \
19813 export_symbols_cmds \
19814 prelink_cmds \
19815 postlink_cmds \
19816 postinstall_cmds \
19817 postuninstall_cmds \
19818 finish_cmds \
19819 sys_lib_search_path_spec \
19820 sys_lib_dlsearch_path_spec \
19821 reload_cmds_CXX \
19822 old_archive_cmds_CXX \
19823 old_archive_from_new_cmds_CXX \
19824 old_archive_from_expsyms_cmds_CXX \
19825 archive_cmds_CXX \
19826 archive_expsym_cmds_CXX \
19827 module_cmds_CXX \
19828 module_expsym_cmds_CXX \
19829 export_symbols_cmds_CXX \
19830 prelink_cmds_CXX \
19831 postlink_cmds_CXX; do
19832 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19833 *[\\\\\\\`\\"\\\$]*)
19834 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19835 ;;
19836 *)
19837 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19838 ;;
19839 esac
19840 done
19841
19842 ac_aux_dir='$ac_aux_dir'
19843 xsi_shell='$xsi_shell'
19844 lt_shell_append='$lt_shell_append'
19845
19846 # See if we are running on zsh, and set the options which allow our
19847 # commands through without removal of \ escapes INIT.
19848 if test -n "\${ZSH_VERSION+set}" ; then
19849 setopt NO_GLOB_SUBST
19850 fi
19851
19852
19853 PACKAGE='$PACKAGE'
19854 VERSION='$VERSION'
19855 TIMESTAMP='$TIMESTAMP'
19856 RM='$RM'
19857 ofile='$ofile'
19858
19859
19860
19861 ac_aux_dir='$ac_aux_dir'
19862
19863
19864 libtool_use_rpath=$libtool_rpath
19865
19866 _ACEOF
19867
19868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19869
19870 # Handling of arguments.
19871 for ac_config_target in $ac_config_targets
19872 do
19873 case $ac_config_target in
19874 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19875 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19876 "libtool-rpath-patch") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool-rpath-patch" ;;
19877 "cutl/config.h") CONFIG_HEADERS="$CONFIG_HEADERS cutl/config.h" ;;
19878 "cutl/details/config.h") CONFIG_HEADERS="$CONFIG_HEADERS cutl/details/config.h" ;;
19879 "cutl/Makefile") CONFIG_FILES="$CONFIG_FILES cutl/Makefile" ;;
19880 "libcutl.pc") CONFIG_FILES="$CONFIG_FILES libcutl.pc" ;;
19881 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19882
19883 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19884 esac
19885 done
19886
19887
19888 # If the user did not use the arguments to specify the items to instantiate,
19889 # then the envvar interface is used. Set only those that are not.
19890 # We use the long form for the default assignment because of an extremely
19891 # bizarre bug on SunOS 4.1.3.
19892 if $ac_need_defaults; then
19893 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19894 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19895 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19896 fi
19897
19898 # Have a temporary directory for convenience. Make it in the build tree
19899 # simply because there is no reason against having it here, and in addition,
19900 # creating and moving files from /tmp can sometimes cause problems.
19901 # Hook for its removal unless debugging.
19902 # Note that there is a small window in which the directory will not be cleaned:
19903 # after its creation but before its name has been assigned to `$tmp'.
19904 $debug ||
19905 {
19906 tmp= ac_tmp=
19907 trap 'exit_status=$?
19908 : "${ac_tmp:=$tmp}"
19909 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19910 ' 0
19911 trap 'as_fn_exit 1' 1 2 13 15
19912 }
19913 # Create a (secure) tmp directory for tmp files.
19914
19915 {
19916 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19917 test -d "$tmp"
19918 } ||
19919 {
19920 tmp=./conf$$-$RANDOM
19921 (umask 077 && mkdir "$tmp")
19922 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19923 ac_tmp=$tmp
19924
19925 # Set up the scripts for CONFIG_FILES section.
19926 # No need to generate them if there are no CONFIG_FILES.
19927 # This happens for instance with `./config.status config.h'.
19928 if test -n "$CONFIG_FILES"; then
19929
19930
19931 ac_cr=`echo X | tr X '\015'`
19932 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19933 # But we know of no other shell where ac_cr would be empty at this
19934 # point, so we can use a bashism as a fallback.
19935 if test "x$ac_cr" = x; then
19936 eval ac_cr=\$\'\\r\'
19937 fi
19938 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19939 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19940 ac_cs_awk_cr='\\r'
19941 else
19942 ac_cs_awk_cr=$ac_cr
19943 fi
19944
19945 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19946 _ACEOF
19947
19948
19949 {
19950 echo "cat >conf$$subs.awk <<_ACEOF" &&
19951 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19952 echo "_ACEOF"
19953 } >conf$$subs.sh ||
19954 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19955 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19956 ac_delim='%!_!# '
19957 for ac_last_try in false false false false false :; do
19958 . ./conf$$subs.sh ||
19959 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19960
19961 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19962 if test $ac_delim_n = $ac_delim_num; then
19963 break
19964 elif $ac_last_try; then
19965 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19966 else
19967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19968 fi
19969 done
19970 rm -f conf$$subs.sh
19971
19972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19973 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19974 _ACEOF
19975 sed -n '
19976 h
19977 s/^/S["/; s/!.*/"]=/
19978 p
19979 g
19980 s/^[^!]*!//
19981 :repl
19982 t repl
19983 s/'"$ac_delim"'$//
19984 t delim
19985 :nl
19986 h
19987 s/\(.\{148\}\)..*/\1/
19988 t more1
19989 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19990 p
19991 n
19992 b repl
19993 :more1
19994 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19995 p
19996 g
19997 s/.\{148\}//
19998 t nl
19999 :delim
20000 h
20001 s/\(.\{148\}\)..*/\1/
20002 t more2
20003 s/["\\]/\\&/g; s/^/"/; s/$/"/
20004 p
20005 b
20006 :more2
20007 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20008 p
20009 g
20010 s/.\{148\}//
20011 t delim
20012 ' <conf$$subs.awk | sed '
20013 /^[^""]/{
20014 N
20015 s/\n//
20016 }
20017 ' >>$CONFIG_STATUS || ac_write_fail=1
20018 rm -f conf$$subs.awk
20019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20020 _ACAWK
20021 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20022 for (key in S) S_is_set[key] = 1
20023 FS = ""
20024
20025 }
20026 {
20027 line = $ 0
20028 nfields = split(line, field, "@")
20029 substed = 0
20030 len = length(field[1])
20031 for (i = 2; i < nfields; i++) {
20032 key = field[i]
20033 keylen = length(key)
20034 if (S_is_set[key]) {
20035 value = S[key]
20036 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20037 len += length(value) + length(field[++i])
20038 substed = 1
20039 } else
20040 len += 1 + keylen
20041 }
20042
20043 print line
20044 }
20045
20046 _ACAWK
20047 _ACEOF
20048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20049 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20050 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20051 else
20052 cat
20053 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20054 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20055 _ACEOF
20056
20057 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20058 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20059 # trailing colons and then remove the whole line if VPATH becomes empty
20060 # (actually we leave an empty line to preserve line numbers).
20061 if test "x$srcdir" = x.; then
20062 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20063 h
20064 s///
20065 s/^/:/
20066 s/[ ]*$/:/
20067 s/:\$(srcdir):/:/g
20068 s/:\${srcdir}:/:/g
20069 s/:@srcdir@:/:/g
20070 s/^:*//
20071 s/:*$//
20072 x
20073 s/\(=[ ]*\).*/\1/
20074 G
20075 s/\n//
20076 s/^[^=]*=[ ]*$//
20077 }'
20078 fi
20079
20080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20081 fi # test -n "$CONFIG_FILES"
20082
20083 # Set up the scripts for CONFIG_HEADERS section.
20084 # No need to generate them if there are no CONFIG_HEADERS.
20085 # This happens for instance with `./config.status Makefile'.
20086 if test -n "$CONFIG_HEADERS"; then
20087 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20088 BEGIN {
20089 _ACEOF
20090
20091 # Transform confdefs.h into an awk script `defines.awk', embedded as
20092 # here-document in config.status, that substitutes the proper values into
20093 # config.h.in to produce config.h.
20094
20095 # Create a delimiter string that does not exist in confdefs.h, to ease
20096 # handling of long lines.
20097 ac_delim='%!_!# '
20098 for ac_last_try in false false :; do
20099 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20100 if test -z "$ac_tt"; then
20101 break
20102 elif $ac_last_try; then
20103 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20104 else
20105 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20106 fi
20107 done
20108
20109 # For the awk script, D is an array of macro values keyed by name,
20110 # likewise P contains macro parameters if any. Preserve backslash
20111 # newline sequences.
20112
20113 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20114 sed -n '
20115 s/.\{148\}/&'"$ac_delim"'/g
20116 t rset
20117 :rset
20118 s/^[ ]*#[ ]*define[ ][ ]*/ /
20119 t def
20120 d
20121 :def
20122 s/\\$//
20123 t bsnl
20124 s/["\\]/\\&/g
20125 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20126 D["\1"]=" \3"/p
20127 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20128 d
20129 :bsnl
20130 s/["\\]/\\&/g
20131 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20132 D["\1"]=" \3\\\\\\n"\\/p
20133 t cont
20134 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20135 t cont
20136 d
20137 :cont
20138 n
20139 s/.\{148\}/&'"$ac_delim"'/g
20140 t clear
20141 :clear
20142 s/\\$//
20143 t bsnlc
20144 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20145 d
20146 :bsnlc
20147 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20148 b cont
20149 ' <confdefs.h | sed '
20150 s/'"$ac_delim"'/"\\\
20151 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20152
20153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20154 for (key in D) D_is_set[key] = 1
20155 FS = ""
20156 }
20157 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20158 line = \$ 0
20159 split(line, arg, " ")
20160 if (arg[1] == "#") {
20161 defundef = arg[2]
20162 mac1 = arg[3]
20163 } else {
20164 defundef = substr(arg[1], 2)
20165 mac1 = arg[2]
20166 }
20167 split(mac1, mac2, "(") #)
20168 macro = mac2[1]
20169 prefix = substr(line, 1, index(line, defundef) - 1)
20170 if (D_is_set[macro]) {
20171 # Preserve the white space surrounding the "#".
20172 print prefix "define", macro P[macro] D[macro]
20173 next
20174 } else {
20175 # Replace #undef with comments. This is necessary, for example,
20176 # in the case of _POSIX_SOURCE, which is predefined and required
20177 # on some systems where configure will not decide to define it.
20178 if (defundef == "undef") {
20179 print "/*", prefix defundef, macro, "*/"
20180 next
20181 }
20182 }
20183 }
20184 { print }
20185 _ACAWK
20186 _ACEOF
20187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20188 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20189 fi # test -n "$CONFIG_HEADERS"
20190
20191
20192 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20193 shift
20194 for ac_tag
20195 do
20196 case $ac_tag in
20197 :[FHLC]) ac_mode=$ac_tag; continue;;
20198 esac
20199 case $ac_mode$ac_tag in
20200 :[FHL]*:*);;
20201 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20202 :[FH]-) ac_tag=-:-;;
20203 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20204 esac
20205 ac_save_IFS=$IFS
20206 IFS=:
20207 set x $ac_tag
20208 IFS=$ac_save_IFS
20209 shift
20210 ac_file=$1
20211 shift
20212
20213 case $ac_mode in
20214 :L) ac_source=$1;;
20215 :[FH])
20216 ac_file_inputs=
20217 for ac_f
20218 do
20219 case $ac_f in
20220 -) ac_f="$ac_tmp/stdin";;
20221 *) # Look for the file first in the build tree, then in the source tree
20222 # (if the path is not absolute). The absolute path cannot be DOS-style,
20223 # because $ac_f cannot contain `:'.
20224 test -f "$ac_f" ||
20225 case $ac_f in
20226 [\\/$]*) false;;
20227 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20228 esac ||
20229 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20230 esac
20231 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20232 as_fn_append ac_file_inputs " '$ac_f'"
20233 done
20234
20235 # Let's still pretend it is `configure' which instantiates (i.e., don't
20236 # use $as_me), people would be surprised to read:
20237 # /* config.h. Generated by config.status. */
20238 configure_input='Generated from '`
20239 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20240 `' by configure.'
20241 if test x"$ac_file" != x-; then
20242 configure_input="$ac_file. $configure_input"
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20244 $as_echo "$as_me: creating $ac_file" >&6;}
20245 fi
20246 # Neutralize special characters interpreted by sed in replacement strings.
20247 case $configure_input in #(
20248 *\&* | *\|* | *\\* )
20249 ac_sed_conf_input=`$as_echo "$configure_input" |
20250 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20251 *) ac_sed_conf_input=$configure_input;;
20252 esac
20253
20254 case $ac_tag in
20255 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20256 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20257 esac
20258 ;;
20259 esac
20260
20261 ac_dir=`$as_dirname -- "$ac_file" ||
20262 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20263 X"$ac_file" : 'X\(//\)[^/]' \| \
20264 X"$ac_file" : 'X\(//\)$' \| \
20265 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20266 $as_echo X"$ac_file" |
20267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20268 s//\1/
20269 q
20270 }
20271 /^X\(\/\/\)[^/].*/{
20272 s//\1/
20273 q
20274 }
20275 /^X\(\/\/\)$/{
20276 s//\1/
20277 q
20278 }
20279 /^X\(\/\).*/{
20280 s//\1/
20281 q
20282 }
20283 s/.*/./; q'`
20284 as_dir="$ac_dir"; as_fn_mkdir_p
20285 ac_builddir=.
20286
20287 case "$ac_dir" in
20288 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20289 *)
20290 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20291 # A ".." for each directory in $ac_dir_suffix.
20292 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20293 case $ac_top_builddir_sub in
20294 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20295 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20296 esac ;;
20297 esac
20298 ac_abs_top_builddir=$ac_pwd
20299 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20300 # for backward compatibility:
20301 ac_top_builddir=$ac_top_build_prefix
20302
20303 case $srcdir in
20304 .) # We are building in place.
20305 ac_srcdir=.
20306 ac_top_srcdir=$ac_top_builddir_sub
20307 ac_abs_top_srcdir=$ac_pwd ;;
20308 [\\/]* | ?:[\\/]* ) # Absolute name.
20309 ac_srcdir=$srcdir$ac_dir_suffix;
20310 ac_top_srcdir=$srcdir
20311 ac_abs_top_srcdir=$srcdir ;;
20312 *) # Relative name.
20313 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20314 ac_top_srcdir=$ac_top_build_prefix$srcdir
20315 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20316 esac
20317 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20318
20319
20320 case $ac_mode in
20321 :F)
20322 #
20323 # CONFIG_FILE
20324 #
20325
20326 case $INSTALL in
20327 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20328 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20329 esac
20330 ac_MKDIR_P=$MKDIR_P
20331 case $MKDIR_P in
20332 [\\/$]* | ?:[\\/]* ) ;;
20333 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20334 esac
20335 _ACEOF
20336
20337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20338 # If the template does not know about datarootdir, expand it.
20339 # FIXME: This hack should be removed a few years after 2.60.
20340 ac_datarootdir_hack=; ac_datarootdir_seen=
20341 ac_sed_dataroot='
20342 /datarootdir/ {
20343 p
20344 q
20345 }
20346 /@datadir@/p
20347 /@docdir@/p
20348 /@infodir@/p
20349 /@localedir@/p
20350 /@mandir@/p'
20351 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20352 *datarootdir*) ac_datarootdir_seen=yes;;
20353 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20355 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20356 _ACEOF
20357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20358 ac_datarootdir_hack='
20359 s&@datadir@&$datadir&g
20360 s&@docdir@&$docdir&g
20361 s&@infodir@&$infodir&g
20362 s&@localedir@&$localedir&g
20363 s&@mandir@&$mandir&g
20364 s&\\\${datarootdir}&$datarootdir&g' ;;
20365 esac
20366 _ACEOF
20367
20368 # Neutralize VPATH when `$srcdir' = `.'.
20369 # Shell code in configure.ac might set extrasub.
20370 # FIXME: do we really want to maintain this feature?
20371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20372 ac_sed_extra="$ac_vpsub
20373 $extrasub
20374 _ACEOF
20375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20376 :t
20377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20378 s|@configure_input@|$ac_sed_conf_input|;t t
20379 s&@top_builddir@&$ac_top_builddir_sub&;t t
20380 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20381 s&@srcdir@&$ac_srcdir&;t t
20382 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20383 s&@top_srcdir@&$ac_top_srcdir&;t t
20384 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20385 s&@builddir@&$ac_builddir&;t t
20386 s&@abs_builddir@&$ac_abs_builddir&;t t
20387 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20388 s&@INSTALL@&$ac_INSTALL&;t t
20389 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20390 $ac_datarootdir_hack
20391 "
20392 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20393 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20394
20395 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20396 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20397 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20398 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20400 which seems to be undefined. Please make sure it is defined" >&5
20401 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20402 which seems to be undefined. Please make sure it is defined" >&2;}
20403
20404 rm -f "$ac_tmp/stdin"
20405 case $ac_file in
20406 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20407 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20408 esac \
20409 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20410 ;;
20411 :H)
20412 #
20413 # CONFIG_HEADER
20414 #
20415 if test x"$ac_file" != x-; then
20416 {
20417 $as_echo "/* $configure_input */" \
20418 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20419 } >"$ac_tmp/config.h" \
20420 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20421 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20422 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20423 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20424 else
20425 rm -f "$ac_file"
20426 mv "$ac_tmp/config.h" "$ac_file" \
20427 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20428 fi
20429 else
20430 $as_echo "/* $configure_input */" \
20431 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20432 || as_fn_error $? "could not create -" "$LINENO" 5
20433 fi
20434 # Compute "$ac_file"'s index in $config_headers.
20435 _am_arg="$ac_file"
20436 _am_stamp_count=1
20437 for _am_header in $config_headers :; do
20438 case $_am_header in
20439 $_am_arg | $_am_arg:* )
20440 break ;;
20441 * )
20442 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20443 esac
20444 done
20445 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20446 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20447 X"$_am_arg" : 'X\(//\)[^/]' \| \
20448 X"$_am_arg" : 'X\(//\)$' \| \
20449 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20450 $as_echo X"$_am_arg" |
20451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20452 s//\1/
20453 q
20454 }
20455 /^X\(\/\/\)[^/].*/{
20456 s//\1/
20457 q
20458 }
20459 /^X\(\/\/\)$/{
20460 s//\1/
20461 q
20462 }
20463 /^X\(\/\).*/{
20464 s//\1/
20465 q
20466 }
20467 s/.*/./; q'`/stamp-h$_am_stamp_count
20468 ;;
20469
20470 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20471 $as_echo "$as_me: executing $ac_file commands" >&6;}
20472 ;;
20473 esac
20474
20475
20476 case $ac_file$ac_mode in
20477 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20478 # Older Autoconf quotes --file arguments for eval, but not when files
20479 # are listed without --file. Let's play safe and only enable the eval
20480 # if we detect the quoting.
20481 case $CONFIG_FILES in
20482 *\'*) eval set x "$CONFIG_FILES" ;;
20483 *) set x $CONFIG_FILES ;;
20484 esac
20485 shift
20486 for mf
20487 do
20488 # Strip MF so we end up with the name of the file.
20489 mf=`echo "$mf" | sed -e 's/:.*$//'`
20490 # Check whether this is an Automake generated Makefile or not.
20491 # We used to match only the files named 'Makefile.in', but
20492 # some people rename them; so instead we look at the file content.
20493 # Grep'ing the first line is not enough: some people post-process
20494 # each Makefile.in and add a new line on top of each file to say so.
20495 # Grep'ing the whole file is not good either: AIX grep has a line
20496 # limit of 2048, but all sed's we know have understand at least 4000.
20497 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20498 dirpart=`$as_dirname -- "$mf" ||
20499 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20500 X"$mf" : 'X\(//\)[^/]' \| \
20501 X"$mf" : 'X\(//\)$' \| \
20502 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20503 $as_echo X"$mf" |
20504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20505 s//\1/
20506 q
20507 }
20508 /^X\(\/\/\)[^/].*/{
20509 s//\1/
20510 q
20511 }
20512 /^X\(\/\/\)$/{
20513 s//\1/
20514 q
20515 }
20516 /^X\(\/\).*/{
20517 s//\1/
20518 q
20519 }
20520 s/.*/./; q'`
20521 else
20522 continue
20523 fi
20524 # Extract the definition of DEPDIR, am__include, and am__quote
20525 # from the Makefile without running 'make'.
20526 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20527 test -z "$DEPDIR" && continue
20528 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20529 test -z "$am__include" && continue
20530 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20531 # Find all dependency output files, they are included files with
20532 # $(DEPDIR) in their names. We invoke sed twice because it is the
20533 # simplest approach to changing $(DEPDIR) to its actual value in the
20534 # expansion.
20535 for file in `sed -n "
20536 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20537 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20538 # Make sure the directory exists.
20539 test -f "$dirpart/$file" && continue
20540 fdir=`$as_dirname -- "$file" ||
20541 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20542 X"$file" : 'X\(//\)[^/]' \| \
20543 X"$file" : 'X\(//\)$' \| \
20544 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20545 $as_echo X"$file" |
20546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20547 s//\1/
20548 q
20549 }
20550 /^X\(\/\/\)[^/].*/{
20551 s//\1/
20552 q
20553 }
20554 /^X\(\/\/\)$/{
20555 s//\1/
20556 q
20557 }
20558 /^X\(\/\).*/{
20559 s//\1/
20560 q
20561 }
20562 s/.*/./; q'`
20563 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20564 # echo "creating $dirpart/$file"
20565 echo '# dummy' > "$dirpart/$file"
20566 done
20567 done
20568 }
20569 ;;
20570 "libtool":C)
20571
20572 # See if we are running on zsh, and set the options which allow our
20573 # commands through without removal of \ escapes.
20574 if test -n "${ZSH_VERSION+set}" ; then
20575 setopt NO_GLOB_SUBST
20576 fi
20577
20578 cfgfile="${ofile}T"
20579 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20580 $RM "$cfgfile"
20581
20582 cat <<_LT_EOF >> "$cfgfile"
20583 #! $SHELL
20584
20585 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20586 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20587 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20588 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20589 #
20590 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20591 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20592 # Foundation, Inc.
20593 # Written by Gordon Matzigkeit, 1996
20594 #
20595 # This file is part of GNU Libtool.
20596 #
20597 # GNU Libtool is free software; you can redistribute it and/or
20598 # modify it under the terms of the GNU General Public License as
20599 # published by the Free Software Foundation; either version 2 of
20600 # the License, or (at your option) any later version.
20601 #
20602 # As a special exception to the GNU General Public License,
20603 # if you distribute this file as part of a program or library that
20604 # is built using GNU Libtool, you may include this file under the
20605 # same distribution terms that you use for the rest of that program.
20606 #
20607 # GNU Libtool is distributed in the hope that it will be useful,
20608 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20609 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20610 # GNU General Public License for more details.
20611 #
20612 # You should have received a copy of the GNU General Public License
20613 # along with GNU Libtool; see the file COPYING. If not, a copy
20614 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20615 # obtained by writing to the Free Software Foundation, Inc.,
20616 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20617
20618
20619 # The names of the tagged configurations supported by this script.
20620 available_tags="CXX "
20621
20622 # ### BEGIN LIBTOOL CONFIG
20623
20624 # Which release of libtool.m4 was used?
20625 macro_version=$macro_version
20626 macro_revision=$macro_revision
20627
20628 # Assembler program.
20629 AS=$lt_AS
20630
20631 # DLL creation program.
20632 DLLTOOL=$lt_DLLTOOL
20633
20634 # Object dumper program.
20635 OBJDUMP=$lt_OBJDUMP
20636
20637 # Whether or not to build shared libraries.
20638 build_libtool_libs=$enable_shared
20639
20640 # Whether or not to build static libraries.
20641 build_old_libs=$enable_static
20642
20643 # What type of objects to build.
20644 pic_mode=$pic_mode
20645
20646 # Whether or not to optimize for fast installation.
20647 fast_install=$enable_fast_install
20648
20649 # Shell to use when invoking shell scripts.
20650 SHELL=$lt_SHELL
20651
20652 # An echo program that protects backslashes.
20653 ECHO=$lt_ECHO
20654
20655 # The PATH separator for the build system.
20656 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20657
20658 # The host system.
20659 host_alias=$host_alias
20660 host=$host
20661 host_os=$host_os
20662
20663 # The build system.
20664 build_alias=$build_alias
20665 build=$build
20666 build_os=$build_os
20667
20668 # A sed program that does not truncate output.
20669 SED=$lt_SED
20670
20671 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20672 Xsed="\$SED -e 1s/^X//"
20673
20674 # A grep program that handles long lines.
20675 GREP=$lt_GREP
20676
20677 # An ERE matcher.
20678 EGREP=$lt_EGREP
20679
20680 # A literal string matcher.
20681 FGREP=$lt_FGREP
20682
20683 # A BSD- or MS-compatible name lister.
20684 NM=$lt_NM
20685
20686 # Whether we need soft or hard links.
20687 LN_S=$lt_LN_S
20688
20689 # What is the maximum length of a command?
20690 max_cmd_len=$max_cmd_len
20691
20692 # Object file suffix (normally "o").
20693 objext=$ac_objext
20694
20695 # Executable file suffix (normally "").
20696 exeext=$exeext
20697
20698 # whether the shell understands "unset".
20699 lt_unset=$lt_unset
20700
20701 # turn spaces into newlines.
20702 SP2NL=$lt_lt_SP2NL
20703
20704 # turn newlines into spaces.
20705 NL2SP=$lt_lt_NL2SP
20706
20707 # convert \$build file names to \$host format.
20708 to_host_file_cmd=$lt_cv_to_host_file_cmd
20709
20710 # convert \$build files to toolchain format.
20711 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20712
20713 # Method to check whether dependent libraries are shared objects.
20714 deplibs_check_method=$lt_deplibs_check_method
20715
20716 # Command to use when deplibs_check_method = "file_magic".
20717 file_magic_cmd=$lt_file_magic_cmd
20718
20719 # How to find potential files when deplibs_check_method = "file_magic".
20720 file_magic_glob=$lt_file_magic_glob
20721
20722 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20723 want_nocaseglob=$lt_want_nocaseglob
20724
20725 # Command to associate shared and link libraries.
20726 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20727
20728 # The archiver.
20729 AR=$lt_AR
20730
20731 # Flags to create an archive.
20732 AR_FLAGS=$lt_AR_FLAGS
20733
20734 # How to feed a file listing to the archiver.
20735 archiver_list_spec=$lt_archiver_list_spec
20736
20737 # A symbol stripping program.
20738 STRIP=$lt_STRIP
20739
20740 # Commands used to install an old-style archive.
20741 RANLIB=$lt_RANLIB
20742 old_postinstall_cmds=$lt_old_postinstall_cmds
20743 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20744
20745 # Whether to use a lock for old archive extraction.
20746 lock_old_archive_extraction=$lock_old_archive_extraction
20747
20748 # A C compiler.
20749 LTCC=$lt_CC
20750
20751 # LTCC compiler flags.
20752 LTCFLAGS=$lt_CFLAGS
20753
20754 # Take the output of nm and produce a listing of raw symbols and C names.
20755 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20756
20757 # Transform the output of nm in a proper C declaration.
20758 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20759
20760 # Transform the output of nm in a C name address pair.
20761 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20762
20763 # Transform the output of nm in a C name address pair when lib prefix is needed.
20764 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20765
20766 # Specify filename containing input files for \$NM.
20767 nm_file_list_spec=$lt_nm_file_list_spec
20768
20769 # The root where to search for dependent libraries,and in which our libraries should be installed.
20770 lt_sysroot=$lt_sysroot
20771
20772 # The name of the directory that contains temporary libtool files.
20773 objdir=$objdir
20774
20775 # Used to examine libraries when file_magic_cmd begins with "file".
20776 MAGIC_CMD=$MAGIC_CMD
20777
20778 # Must we lock files when doing compilation?
20779 need_locks=$lt_need_locks
20780
20781 # Manifest tool.
20782 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20783
20784 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20785 DSYMUTIL=$lt_DSYMUTIL
20786
20787 # Tool to change global to local symbols on Mac OS X.
20788 NMEDIT=$lt_NMEDIT
20789
20790 # Tool to manipulate fat objects and archives on Mac OS X.
20791 LIPO=$lt_LIPO
20792
20793 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20794 OTOOL=$lt_OTOOL
20795
20796 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20797 OTOOL64=$lt_OTOOL64
20798
20799 # Old archive suffix (normally "a").
20800 libext=$libext
20801
20802 # Shared library suffix (normally ".so").
20803 shrext_cmds=$lt_shrext_cmds
20804
20805 # The commands to extract the exported symbol list from a shared archive.
20806 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20807
20808 # Variables whose values should be saved in libtool wrapper scripts and
20809 # restored at link time.
20810 variables_saved_for_relink=$lt_variables_saved_for_relink
20811
20812 # Do we need the "lib" prefix for modules?
20813 need_lib_prefix=$need_lib_prefix
20814
20815 # Do we need a version for libraries?
20816 need_version=$need_version
20817
20818 # Library versioning type.
20819 version_type=$version_type
20820
20821 # Shared library runtime path variable.
20822 runpath_var=$runpath_var
20823
20824 # Shared library path variable.
20825 shlibpath_var=$shlibpath_var
20826
20827 # Is shlibpath searched before the hard-coded library search path?
20828 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20829
20830 # Format of library name prefix.
20831 libname_spec=$lt_libname_spec
20832
20833 # List of archive names. First name is the real one, the rest are links.
20834 # The last name is the one that the linker finds with -lNAME
20835 library_names_spec=$lt_library_names_spec
20836
20837 # The coded name of the library, if different from the real name.
20838 soname_spec=$lt_soname_spec
20839
20840 # Permission mode override for installation of shared libraries.
20841 install_override_mode=$lt_install_override_mode
20842
20843 # Command to use after installation of a shared archive.
20844 postinstall_cmds=$lt_postinstall_cmds
20845
20846 # Command to use after uninstallation of a shared archive.
20847 postuninstall_cmds=$lt_postuninstall_cmds
20848
20849 # Commands used to finish a libtool library installation in a directory.
20850 finish_cmds=$lt_finish_cmds
20851
20852 # As "finish_cmds", except a single script fragment to be evaled but
20853 # not shown.
20854 finish_eval=$lt_finish_eval
20855
20856 # Whether we should hardcode library paths into libraries.
20857 hardcode_into_libs=$hardcode_into_libs
20858
20859 # Compile-time system search path for libraries.
20860 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20861
20862 # Run-time system search path for libraries.
20863 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20864
20865 # Whether dlopen is supported.
20866 dlopen_support=$enable_dlopen
20867
20868 # Whether dlopen of programs is supported.
20869 dlopen_self=$enable_dlopen_self
20870
20871 # Whether dlopen of statically linked programs is supported.
20872 dlopen_self_static=$enable_dlopen_self_static
20873
20874 # Commands to strip libraries.
20875 old_striplib=$lt_old_striplib
20876 striplib=$lt_striplib
20877
20878
20879 # The linker used to build libraries.
20880 LD=$lt_LD
20881
20882 # How to create reloadable object files.
20883 reload_flag=$lt_reload_flag
20884 reload_cmds=$lt_reload_cmds
20885
20886 # Commands used to build an old-style archive.
20887 old_archive_cmds=$lt_old_archive_cmds
20888
20889 # A language specific compiler.
20890 CC=$lt_compiler
20891
20892 # Is the compiler the GNU compiler?
20893 with_gcc=$GCC
20894
20895 # Compiler flag to turn off builtin functions.
20896 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20897
20898 # Additional compiler flags for building library objects.
20899 pic_flag=$lt_lt_prog_compiler_pic
20900
20901 # How to pass a linker flag through the compiler.
20902 wl=$lt_lt_prog_compiler_wl
20903
20904 # Compiler flag to prevent dynamic linking.
20905 link_static_flag=$lt_lt_prog_compiler_static
20906
20907 # Does compiler simultaneously support -c and -o options?
20908 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20909
20910 # Whether or not to add -lc for building shared libraries.
20911 build_libtool_need_lc=$archive_cmds_need_lc
20912
20913 # Whether or not to disallow shared libs when runtime libs are static.
20914 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20915
20916 # Compiler flag to allow reflexive dlopens.
20917 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20918
20919 # Compiler flag to generate shared objects directly from archives.
20920 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20921
20922 # Whether the compiler copes with passing no objects directly.
20923 compiler_needs_object=$lt_compiler_needs_object
20924
20925 # Create an old-style archive from a shared archive.
20926 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20927
20928 # Create a temporary old-style archive to link instead of a shared archive.
20929 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20930
20931 # Commands used to build a shared archive.
20932 archive_cmds=$lt_archive_cmds
20933 archive_expsym_cmds=$lt_archive_expsym_cmds
20934
20935 # Commands used to build a loadable module if different from building
20936 # a shared archive.
20937 module_cmds=$lt_module_cmds
20938 module_expsym_cmds=$lt_module_expsym_cmds
20939
20940 # Whether we are building with GNU ld or not.
20941 with_gnu_ld=$lt_with_gnu_ld
20942
20943 # Flag that allows shared libraries with undefined symbols to be built.
20944 allow_undefined_flag=$lt_allow_undefined_flag
20945
20946 # Flag that enforces no undefined symbols.
20947 no_undefined_flag=$lt_no_undefined_flag
20948
20949 # Flag to hardcode \$libdir into a binary during linking.
20950 # This must work even if \$libdir does not exist
20951 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20952
20953 # Whether we need a single "-rpath" flag with a separated argument.
20954 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20955
20956 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20957 # DIR into the resulting binary.
20958 hardcode_direct=$hardcode_direct
20959
20960 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20961 # DIR into the resulting binary and the resulting library dependency is
20962 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20963 # library is relocated.
20964 hardcode_direct_absolute=$hardcode_direct_absolute
20965
20966 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20967 # into the resulting binary.
20968 hardcode_minus_L=$hardcode_minus_L
20969
20970 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20971 # into the resulting binary.
20972 hardcode_shlibpath_var=$hardcode_shlibpath_var
20973
20974 # Set to "yes" if building a shared library automatically hardcodes DIR
20975 # into the library and all subsequent libraries and executables linked
20976 # against it.
20977 hardcode_automatic=$hardcode_automatic
20978
20979 # Set to yes if linker adds runtime paths of dependent libraries
20980 # to runtime path list.
20981 inherit_rpath=$inherit_rpath
20982
20983 # Whether libtool must link a program against all its dependency libraries.
20984 link_all_deplibs=$link_all_deplibs
20985
20986 # Set to "yes" if exported symbols are required.
20987 always_export_symbols=$always_export_symbols
20988
20989 # The commands to list exported symbols.
20990 export_symbols_cmds=$lt_export_symbols_cmds
20991
20992 # Symbols that should not be listed in the preloaded symbols.
20993 exclude_expsyms=$lt_exclude_expsyms
20994
20995 # Symbols that must always be exported.
20996 include_expsyms=$lt_include_expsyms
20997
20998 # Commands necessary for linking programs (against libraries) with templates.
20999 prelink_cmds=$lt_prelink_cmds
21000
21001 # Commands necessary for finishing linking programs.
21002 postlink_cmds=$lt_postlink_cmds
21003
21004 # Specify filename containing input files.
21005 file_list_spec=$lt_file_list_spec
21006
21007 # How to hardcode a shared library path into an executable.
21008 hardcode_action=$hardcode_action
21009
21010 # The directories searched by this compiler when creating a shared library.
21011 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21012
21013 # Dependencies to place before and after the objects being linked to
21014 # create a shared library.
21015 predep_objects=$lt_predep_objects
21016 postdep_objects=$lt_postdep_objects
21017 predeps=$lt_predeps
21018 postdeps=$lt_postdeps
21019
21020 # The library search path used internally by the compiler when linking
21021 # a shared library.
21022 compiler_lib_search_path=$lt_compiler_lib_search_path
21023
21024 # ### END LIBTOOL CONFIG
21025
21026 _LT_EOF
21027
21028 case $host_os in
21029 aix3*)
21030 cat <<\_LT_EOF >> "$cfgfile"
21031 # AIX sometimes has problems with the GCC collect2 program. For some
21032 # reason, if we set the COLLECT_NAMES environment variable, the problems
21033 # vanish in a puff of smoke.
21034 if test "X${COLLECT_NAMES+set}" != Xset; then
21035 COLLECT_NAMES=
21036 export COLLECT_NAMES
21037 fi
21038 _LT_EOF
21039 ;;
21040 esac
21041
21042
21043 ltmain="$ac_aux_dir/ltmain.sh"
21044
21045
21046 # We use sed instead of cat because bash on DJGPP gets confused if
21047 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21048 # text mode, it properly converts lines to CR/LF. This bash problem
21049 # is reportedly fixed, but why not run on old versions too?
21050 sed '$q' "$ltmain" >> "$cfgfile" \
21051 || (rm -f "$cfgfile"; exit 1)
21052
21053 if test x"$xsi_shell" = xyes; then
21054 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21055 func_dirname ()\
21056 {\
21057 \ case ${1} in\
21058 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21059 \ * ) func_dirname_result="${3}" ;;\
21060 \ esac\
21061 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21062 && mv -f "$cfgfile.tmp" "$cfgfile" \
21063 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21064 test 0 -eq $? || _lt_function_replace_fail=:
21065
21066
21067 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21068 func_basename ()\
21069 {\
21070 \ func_basename_result="${1##*/}"\
21071 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21072 && mv -f "$cfgfile.tmp" "$cfgfile" \
21073 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21074 test 0 -eq $? || _lt_function_replace_fail=:
21075
21076
21077 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21078 func_dirname_and_basename ()\
21079 {\
21080 \ case ${1} in\
21081 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21082 \ * ) func_dirname_result="${3}" ;;\
21083 \ esac\
21084 \ func_basename_result="${1##*/}"\
21085 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21086 && mv -f "$cfgfile.tmp" "$cfgfile" \
21087 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21088 test 0 -eq $? || _lt_function_replace_fail=:
21089
21090
21091 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21092 func_stripname ()\
21093 {\
21094 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21095 \ # positional parameters, so assign one to ordinary parameter first.\
21096 \ func_stripname_result=${3}\
21097 \ func_stripname_result=${func_stripname_result#"${1}"}\
21098 \ func_stripname_result=${func_stripname_result%"${2}"}\
21099 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21100 && mv -f "$cfgfile.tmp" "$cfgfile" \
21101 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21102 test 0 -eq $? || _lt_function_replace_fail=:
21103
21104
21105 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21106 func_split_long_opt ()\
21107 {\
21108 \ func_split_long_opt_name=${1%%=*}\
21109 \ func_split_long_opt_arg=${1#*=}\
21110 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21111 && mv -f "$cfgfile.tmp" "$cfgfile" \
21112 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21113 test 0 -eq $? || _lt_function_replace_fail=:
21114
21115
21116 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21117 func_split_short_opt ()\
21118 {\
21119 \ func_split_short_opt_arg=${1#??}\
21120 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21121 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21122 && mv -f "$cfgfile.tmp" "$cfgfile" \
21123 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21124 test 0 -eq $? || _lt_function_replace_fail=:
21125
21126
21127 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21128 func_lo2o ()\
21129 {\
21130 \ case ${1} in\
21131 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21132 \ *) func_lo2o_result=${1} ;;\
21133 \ esac\
21134 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21135 && mv -f "$cfgfile.tmp" "$cfgfile" \
21136 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21137 test 0 -eq $? || _lt_function_replace_fail=:
21138
21139
21140 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21141 func_xform ()\
21142 {\
21143 func_xform_result=${1%.*}.lo\
21144 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21145 && mv -f "$cfgfile.tmp" "$cfgfile" \
21146 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21147 test 0 -eq $? || _lt_function_replace_fail=:
21148
21149
21150 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21151 func_arith ()\
21152 {\
21153 func_arith_result=$(( $* ))\
21154 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21155 && mv -f "$cfgfile.tmp" "$cfgfile" \
21156 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21157 test 0 -eq $? || _lt_function_replace_fail=:
21158
21159
21160 sed -e '/^func_len ()$/,/^} # func_len /c\
21161 func_len ()\
21162 {\
21163 func_len_result=${#1}\
21164 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21165 && mv -f "$cfgfile.tmp" "$cfgfile" \
21166 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21167 test 0 -eq $? || _lt_function_replace_fail=:
21168
21169 fi
21170
21171 if test x"$lt_shell_append" = xyes; then
21172 sed -e '/^func_append ()$/,/^} # func_append /c\
21173 func_append ()\
21174 {\
21175 eval "${1}+=\\${2}"\
21176 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21177 && mv -f "$cfgfile.tmp" "$cfgfile" \
21178 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21179 test 0 -eq $? || _lt_function_replace_fail=:
21180
21181
21182 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21183 func_append_quoted ()\
21184 {\
21185 \ func_quote_for_eval "${2}"\
21186 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21187 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21188 && mv -f "$cfgfile.tmp" "$cfgfile" \
21189 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21190 test 0 -eq $? || _lt_function_replace_fail=:
21191
21192
21193 # Save a `func_append' function call where possible by direct use of '+='
21194 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21195 && mv -f "$cfgfile.tmp" "$cfgfile" \
21196 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21197 test 0 -eq $? || _lt_function_replace_fail=:
21198 else
21199 # Save a `func_append' function call even when '+=' is not available
21200 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21201 && mv -f "$cfgfile.tmp" "$cfgfile" \
21202 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21203 test 0 -eq $? || _lt_function_replace_fail=:
21204 fi
21205
21206 if test x"$_lt_function_replace_fail" = x":"; then
21207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21208 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21209 fi
21210
21211
21212 mv -f "$cfgfile" "$ofile" ||
21213 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21214 chmod +x "$ofile"
21215
21216
21217 cat <<_LT_EOF >> "$ofile"
21218
21219 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21220
21221 # The linker used to build libraries.
21222 LD=$lt_LD_CXX
21223
21224 # How to create reloadable object files.
21225 reload_flag=$lt_reload_flag_CXX
21226 reload_cmds=$lt_reload_cmds_CXX
21227
21228 # Commands used to build an old-style archive.
21229 old_archive_cmds=$lt_old_archive_cmds_CXX
21230
21231 # A language specific compiler.
21232 CC=$lt_compiler_CXX
21233
21234 # Is the compiler the GNU compiler?
21235 with_gcc=$GCC_CXX
21236
21237 # Compiler flag to turn off builtin functions.
21238 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21239
21240 # Additional compiler flags for building library objects.
21241 pic_flag=$lt_lt_prog_compiler_pic_CXX
21242
21243 # How to pass a linker flag through the compiler.
21244 wl=$lt_lt_prog_compiler_wl_CXX
21245
21246 # Compiler flag to prevent dynamic linking.
21247 link_static_flag=$lt_lt_prog_compiler_static_CXX
21248
21249 # Does compiler simultaneously support -c and -o options?
21250 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21251
21252 # Whether or not to add -lc for building shared libraries.
21253 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21254
21255 # Whether or not to disallow shared libs when runtime libs are static.
21256 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21257
21258 # Compiler flag to allow reflexive dlopens.
21259 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21260
21261 # Compiler flag to generate shared objects directly from archives.
21262 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21263
21264 # Whether the compiler copes with passing no objects directly.
21265 compiler_needs_object=$lt_compiler_needs_object_CXX
21266
21267 # Create an old-style archive from a shared archive.
21268 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21269
21270 # Create a temporary old-style archive to link instead of a shared archive.
21271 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21272
21273 # Commands used to build a shared archive.
21274 archive_cmds=$lt_archive_cmds_CXX
21275 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21276
21277 # Commands used to build a loadable module if different from building
21278 # a shared archive.
21279 module_cmds=$lt_module_cmds_CXX
21280 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21281
21282 # Whether we are building with GNU ld or not.
21283 with_gnu_ld=$lt_with_gnu_ld_CXX
21284
21285 # Flag that allows shared libraries with undefined symbols to be built.
21286 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21287
21288 # Flag that enforces no undefined symbols.
21289 no_undefined_flag=$lt_no_undefined_flag_CXX
21290
21291 # Flag to hardcode \$libdir into a binary during linking.
21292 # This must work even if \$libdir does not exist
21293 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21294
21295 # Whether we need a single "-rpath" flag with a separated argument.
21296 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21297
21298 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21299 # DIR into the resulting binary.
21300 hardcode_direct=$hardcode_direct_CXX
21301
21302 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21303 # DIR into the resulting binary and the resulting library dependency is
21304 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21305 # library is relocated.
21306 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21307
21308 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21309 # into the resulting binary.
21310 hardcode_minus_L=$hardcode_minus_L_CXX
21311
21312 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21313 # into the resulting binary.
21314 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21315
21316 # Set to "yes" if building a shared library automatically hardcodes DIR
21317 # into the library and all subsequent libraries and executables linked
21318 # against it.
21319 hardcode_automatic=$hardcode_automatic_CXX
21320
21321 # Set to yes if linker adds runtime paths of dependent libraries
21322 # to runtime path list.
21323 inherit_rpath=$inherit_rpath_CXX
21324
21325 # Whether libtool must link a program against all its dependency libraries.
21326 link_all_deplibs=$link_all_deplibs_CXX
21327
21328 # Set to "yes" if exported symbols are required.
21329 always_export_symbols=$always_export_symbols_CXX
21330
21331 # The commands to list exported symbols.
21332 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21333
21334 # Symbols that should not be listed in the preloaded symbols.
21335 exclude_expsyms=$lt_exclude_expsyms_CXX
21336
21337 # Symbols that must always be exported.
21338 include_expsyms=$lt_include_expsyms_CXX
21339
21340 # Commands necessary for linking programs (against libraries) with templates.
21341 prelink_cmds=$lt_prelink_cmds_CXX
21342
21343 # Commands necessary for finishing linking programs.
21344 postlink_cmds=$lt_postlink_cmds_CXX
21345
21346 # Specify filename containing input files.
21347 file_list_spec=$lt_file_list_spec_CXX
21348
21349 # How to hardcode a shared library path into an executable.
21350 hardcode_action=$hardcode_action_CXX
21351
21352 # The directories searched by this compiler when creating a shared library.
21353 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21354
21355 # Dependencies to place before and after the objects being linked to
21356 # create a shared library.
21357 predep_objects=$lt_predep_objects_CXX
21358 postdep_objects=$lt_postdep_objects_CXX
21359 predeps=$lt_predeps_CXX
21360 postdeps=$lt_postdeps_CXX
21361
21362 # The library search path used internally by the compiler when linking
21363 # a shared library.
21364 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21365
21366 # ### END LIBTOOL TAG CONFIG: CXX
21367 _LT_EOF
21368
21369 ;;
21370 "libtool-rpath-patch":C) if test "$libtool_use_rpath" = "no"; then
21371 sed < libtool > libtool-2 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_NO_RPATH__ "/'
21372 mv libtool-2 libtool
21373 chmod 755 libtool
21374 fi ;;
21375
21376 esac
21377 done # for ac_tag
21378
21379
21380 as_fn_exit 0
21381 _ACEOF
21382 ac_clean_files=$ac_clean_files_save
21383
21384 test $ac_write_fail = 0 ||
21385 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21386
21387
21388 # configure is writing to config.log, and then calls config.status.
21389 # config.status does its own redirection, appending to config.log.
21390 # Unfortunately, on DOS this fails, as config.log is still kept open
21391 # by configure, so config.status won't be able to write to it; its
21392 # output is simply discarded. So we exec the FD to /dev/null,
21393 # effectively closing config.log, so it can be properly (re)opened and
21394 # appended to by config.status. When coming back to configure, we
21395 # need to make the FD available again.
21396 if test "$no_create" != yes; then
21397 ac_cs_success=:
21398 ac_config_status_args=
21399 test "$silent" = yes &&
21400 ac_config_status_args="$ac_config_status_args --quiet"
21401 exec 5>/dev/null
21402 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21403 exec 5>>config.log
21404 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21405 # would make configure fail if this is the last instruction.
21406 $ac_cs_success || as_fn_exit 1
21407 fi
21408 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21410 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21411 fi
21412