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 sbsms 2.2.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='sbsms'
589 PACKAGE_TARNAME='sbsms'
590 PACKAGE_VERSION='2.2.0'
591 PACKAGE_STRING='sbsms 2.2.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="src/sbsms.cpp"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 MAINT
637 MAINTAINER_MODE_FALSE
638 MAINTAINER_MODE_TRUE
639 AM_BACKSLASH
640 AM_DEFAULT_VERBOSITY
641 AM_DEFAULT_V
642 AM_V
643 am__untar
644 am__tar
645 AMTAR
646 am__leading_dot
647 SET_MAKE
648 mkdir_p
649 MKDIR_P
650 INSTALL_STRIP_PROGRAM
651 install_sh
652 MAKEINFO
653 AUTOHEADER
654 AUTOMAKE
655 AUTOCONF
656 ACLOCAL
657 VERSION
658 PACKAGE
659 CYGPATH_W
660 am__isrc
661 INSTALL_DATA
662 INSTALL_SCRIPT
663 INSTALL_PROGRAM
664 SBSMS_CFLAGS
665 SHARED_VERSION_INFO
666 SHLIB_VERSION_ARG
667 CXXCPP
668 ac_ct_CXX
669 CXXFLAGS
670 CXX
671 CPP
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
677 MANIFEST_TOOL
678 AWK
679 RANLIB
680 STRIP
681 DLLTOOL
682 OBJDUMP
683 LN_S
684 NM
685 ac_ct_DUMPBIN
686 DUMPBIN
687 LD
688 FGREP
689 EGREP
690 GREP
691 SED
692 LIBTOOL
693 OBJEXT
694 EXEEXT
695 ac_ct_CC
696 CPPFLAGS
697 LDFLAGS
698 CFLAGS
699 CC
700 ac_ct_AR
701 AR
702 target_os
703 target_vendor
704 target_cpu
705 target
706 host_os
707 host_vendor
708 host_cpu
709 host
710 build_os
711 build_vendor
712 build_cpu
713 build
714 target_alias
715 host_alias
716 build_alias
717 LIBS
718 ECHO_T
719 ECHO_N
720 ECHO_C
721 DEFS
722 mandir
723 localedir
724 libdir
725 psdir
726 pdfdir
727 dvidir
728 htmldir
729 infodir
730 docdir
731 oldincludedir
732 includedir
733 localstatedir
734 sharedstatedir
735 sysconfdir
736 datadir
737 datarootdir
738 libexecdir
739 sbindir
740 bindir
741 program_transform_name
742 prefix
743 exec_prefix
744 PACKAGE_URL
745 PACKAGE_BUGREPORT
746 PACKAGE_STRING
747 PACKAGE_VERSION
748 PACKAGE_TARNAME
749 PACKAGE_NAME
750 PATH_SEPARATOR
751 SHELL'
752 ac_subst_files=''
753 ac_user_opts='
754 enable_option_checking
755 enable_shared
756 enable_static
757 with_pic
758 enable_fast_install
759 with_gnu_ld
760 with_sysroot
761 enable_libtool_lock
762 enable_debug
763 enable_multithreaded
764 enable_sse
765 enable_universal_binary
766 enable_silent_rules
767 enable_maintainer_mode
768 '
769 ac_precious_vars='build_alias
770 host_alias
771 target_alias
772 CC
773 CFLAGS
774 LDFLAGS
775 LIBS
776 CPPFLAGS
777 CPP
778 CXX
779 CXXFLAGS
780 CCC
781 CXXCPP'
782
783
784 # Initialize some variables set by options.
785 ac_init_help=
786 ac_init_version=false
787 ac_unrecognized_opts=
788 ac_unrecognized_sep=
789 # The variables have the same names as the options, with
790 # dashes changed to underlines.
791 cache_file=/dev/null
792 exec_prefix=NONE
793 no_create=
794 no_recursion=
795 prefix=NONE
796 program_prefix=NONE
797 program_suffix=NONE
798 program_transform_name=s,x,x,
799 silent=
800 site=
801 srcdir=
802 verbose=
803 x_includes=NONE
804 x_libraries=NONE
805
806 # Installation directory options.
807 # These are left unexpanded so users can "make install exec_prefix=/foo"
808 # and all the variables that are supposed to be based on exec_prefix
809 # by default will actually change.
810 # Use braces instead of parens because sh, perl, etc. also accept them.
811 # (The list follows the same order as the GNU Coding Standards.)
812 bindir='${exec_prefix}/bin'
813 sbindir='${exec_prefix}/sbin'
814 libexecdir='${exec_prefix}/libexec'
815 datarootdir='${prefix}/share'
816 datadir='${datarootdir}'
817 sysconfdir='${prefix}/etc'
818 sharedstatedir='${prefix}/com'
819 localstatedir='${prefix}/var'
820 includedir='${prefix}/include'
821 oldincludedir='/usr/include'
822 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
823 infodir='${datarootdir}/info'
824 htmldir='${docdir}'
825 dvidir='${docdir}'
826 pdfdir='${docdir}'
827 psdir='${docdir}'
828 libdir='${exec_prefix}/lib'
829 localedir='${datarootdir}/locale'
830 mandir='${datarootdir}/man'
831
832 ac_prev=
833 ac_dashdash=
834 for ac_option
835 do
836 # If the previous option needs an argument, assign it.
837 if test -n "$ac_prev"; then
838 eval $ac_prev=\$ac_option
839 ac_prev=
840 continue
841 fi
842
843 case $ac_option in
844 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845 *=) ac_optarg= ;;
846 *) ac_optarg=yes ;;
847 esac
848
849 # Accept the important Cygnus configure options, so we can diagnose typos.
850
851 case $ac_dashdash$ac_option in
852 --)
853 ac_dashdash=yes ;;
854
855 -bindir | --bindir | --bindi | --bind | --bin | --bi)
856 ac_prev=bindir ;;
857 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858 bindir=$ac_optarg ;;
859
860 -build | --build | --buil | --bui | --bu)
861 ac_prev=build_alias ;;
862 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
863 build_alias=$ac_optarg ;;
864
865 -cache-file | --cache-file | --cache-fil | --cache-fi \
866 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
867 ac_prev=cache_file ;;
868 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
869 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
870 cache_file=$ac_optarg ;;
871
872 --config-cache | -C)
873 cache_file=config.cache ;;
874
875 -datadir | --datadir | --datadi | --datad)
876 ac_prev=datadir ;;
877 -datadir=* | --datadir=* | --datadi=* | --datad=*)
878 datadir=$ac_optarg ;;
879
880 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
881 | --dataroo | --dataro | --datar)
882 ac_prev=datarootdir ;;
883 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
884 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
885 datarootdir=$ac_optarg ;;
886
887 -disable-* | --disable-*)
888 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
889 # Reject names that are not valid shell variable names.
890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891 as_fn_error $? "invalid feature name: $ac_useropt"
892 ac_useropt_orig=$ac_useropt
893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894 case $ac_user_opts in
895 *"
896 "enable_$ac_useropt"
897 "*) ;;
898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
899 ac_unrecognized_sep=', ';;
900 esac
901 eval enable_$ac_useropt=no ;;
902
903 -docdir | --docdir | --docdi | --doc | --do)
904 ac_prev=docdir ;;
905 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906 docdir=$ac_optarg ;;
907
908 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909 ac_prev=dvidir ;;
910 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911 dvidir=$ac_optarg ;;
912
913 -enable-* | --enable-*)
914 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error $? "invalid feature name: $ac_useropt"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
921 *"
922 "enable_$ac_useropt"
923 "*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
926 esac
927 eval enable_$ac_useropt=\$ac_optarg ;;
928
929 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
930 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
931 | --exec | --exe | --ex)
932 ac_prev=exec_prefix ;;
933 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
934 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
935 | --exec=* | --exe=* | --ex=*)
936 exec_prefix=$ac_optarg ;;
937
938 -gas | --gas | --ga | --g)
939 # Obsolete; use --with-gas.
940 with_gas=yes ;;
941
942 -help | --help | --hel | --he | -h)
943 ac_init_help=long ;;
944 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
945 ac_init_help=recursive ;;
946 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
947 ac_init_help=short ;;
948
949 -host | --host | --hos | --ho)
950 ac_prev=host_alias ;;
951 -host=* | --host=* | --hos=* | --ho=*)
952 host_alias=$ac_optarg ;;
953
954 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955 ac_prev=htmldir ;;
956 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957 | --ht=*)
958 htmldir=$ac_optarg ;;
959
960 -includedir | --includedir | --includedi | --included | --include \
961 | --includ | --inclu | --incl | --inc)
962 ac_prev=includedir ;;
963 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
964 | --includ=* | --inclu=* | --incl=* | --inc=*)
965 includedir=$ac_optarg ;;
966
967 -infodir | --infodir | --infodi | --infod | --info | --inf)
968 ac_prev=infodir ;;
969 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
970 infodir=$ac_optarg ;;
971
972 -libdir | --libdir | --libdi | --libd)
973 ac_prev=libdir ;;
974 -libdir=* | --libdir=* | --libdi=* | --libd=*)
975 libdir=$ac_optarg ;;
976
977 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
978 | --libexe | --libex | --libe)
979 ac_prev=libexecdir ;;
980 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
981 | --libexe=* | --libex=* | --libe=*)
982 libexecdir=$ac_optarg ;;
983
984 -localedir | --localedir | --localedi | --localed | --locale)
985 ac_prev=localedir ;;
986 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
987 localedir=$ac_optarg ;;
988
989 -localstatedir | --localstatedir | --localstatedi | --localstated \
990 | --localstate | --localstat | --localsta | --localst | --locals)
991 ac_prev=localstatedir ;;
992 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
993 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
994 localstatedir=$ac_optarg ;;
995
996 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997 ac_prev=mandir ;;
998 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999 mandir=$ac_optarg ;;
1000
1001 -nfp | --nfp | --nf)
1002 # Obsolete; use --without-fp.
1003 with_fp=no ;;
1004
1005 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006 | --no-cr | --no-c | -n)
1007 no_create=yes ;;
1008
1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011 no_recursion=yes ;;
1012
1013 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1014 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1015 | --oldin | --oldi | --old | --ol | --o)
1016 ac_prev=oldincludedir ;;
1017 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1018 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1019 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1020 oldincludedir=$ac_optarg ;;
1021
1022 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023 ac_prev=prefix ;;
1024 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1025 prefix=$ac_optarg ;;
1026
1027 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1028 | --program-pre | --program-pr | --program-p)
1029 ac_prev=program_prefix ;;
1030 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1031 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1032 program_prefix=$ac_optarg ;;
1033
1034 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1035 | --program-suf | --program-su | --program-s)
1036 ac_prev=program_suffix ;;
1037 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1038 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1039 program_suffix=$ac_optarg ;;
1040
1041 -program-transform-name | --program-transform-name \
1042 | --program-transform-nam | --program-transform-na \
1043 | --program-transform-n | --program-transform- \
1044 | --program-transform | --program-transfor \
1045 | --program-transfo | --program-transf \
1046 | --program-trans | --program-tran \
1047 | --progr-tra | --program-tr | --program-t)
1048 ac_prev=program_transform_name ;;
1049 -program-transform-name=* | --program-transform-name=* \
1050 | --program-transform-nam=* | --program-transform-na=* \
1051 | --program-transform-n=* | --program-transform-=* \
1052 | --program-transform=* | --program-transfor=* \
1053 | --program-transfo=* | --program-transf=* \
1054 | --program-trans=* | --program-tran=* \
1055 | --progr-tra=* | --program-tr=* | --program-t=*)
1056 program_transform_name=$ac_optarg ;;
1057
1058 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059 ac_prev=pdfdir ;;
1060 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1061 pdfdir=$ac_optarg ;;
1062
1063 -psdir | --psdir | --psdi | --psd | --ps)
1064 ac_prev=psdir ;;
1065 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066 psdir=$ac_optarg ;;
1067
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1070 silent=yes ;;
1071
1072 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073 ac_prev=sbindir ;;
1074 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075 | --sbi=* | --sb=*)
1076 sbindir=$ac_optarg ;;
1077
1078 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1079 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1080 | --sharedst | --shareds | --shared | --share | --shar \
1081 | --sha | --sh)
1082 ac_prev=sharedstatedir ;;
1083 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1084 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1085 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086 | --sha=* | --sh=*)
1087 sharedstatedir=$ac_optarg ;;
1088
1089 -site | --site | --sit)
1090 ac_prev=site ;;
1091 -site=* | --site=* | --sit=*)
1092 site=$ac_optarg ;;
1093
1094 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095 ac_prev=srcdir ;;
1096 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1097 srcdir=$ac_optarg ;;
1098
1099 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1100 | --syscon | --sysco | --sysc | --sys | --sy)
1101 ac_prev=sysconfdir ;;
1102 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1103 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1104 sysconfdir=$ac_optarg ;;
1105
1106 -target | --target | --targe | --targ | --tar | --ta | --t)
1107 ac_prev=target_alias ;;
1108 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1109 target_alias=$ac_optarg ;;
1110
1111 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112 verbose=yes ;;
1113
1114 -version | --version | --versio | --versi | --vers | -V)
1115 ac_init_version=: ;;
1116
1117 -with-* | --with-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error $? "invalid package name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1125 *"
1126 "with_$ac_useropt"
1127 "*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=\$ac_optarg ;;
1132
1133 -without-* | --without-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error $? "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142 "with_$ac_useropt"
1143 "*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=no ;;
1148
1149 --x)
1150 # Obsolete; use --with-x.
1151 with_x=yes ;;
1152
1153 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1154 | --x-incl | --x-inc | --x-in | --x-i)
1155 ac_prev=x_includes ;;
1156 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1157 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1158 x_includes=$ac_optarg ;;
1159
1160 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1161 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1162 ac_prev=x_libraries ;;
1163 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1164 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1165 x_libraries=$ac_optarg ;;
1166
1167 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1168 Try \`$0 --help' for more information"
1169 ;;
1170
1171 *=*)
1172 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1173 # Reject names that are not valid shell variable names.
1174 case $ac_envvar in #(
1175 '' | [0-9]* | *[!_$as_cr_alnum]* )
1176 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1177 esac
1178 eval $ac_envvar=\$ac_optarg
1179 export $ac_envvar ;;
1180
1181 *)
1182 # FIXME: should be removed in autoconf 3.0.
1183 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1184 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1186 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1187 ;;
1188
1189 esac
1190 done
1191
1192 if test -n "$ac_prev"; then
1193 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1194 as_fn_error $? "missing argument to $ac_option"
1195 fi
1196
1197 if test -n "$ac_unrecognized_opts"; then
1198 case $enable_option_checking in
1199 no) ;;
1200 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1201 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202 esac
1203 fi
1204
1205 # Check all directory arguments for consistency.
1206 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
1210 do
1211 eval ac_val=\$$ac_var
1212 # Remove trailing slashes.
1213 case $ac_val in
1214 */ )
1215 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1216 eval $ac_var=\$ac_val;;
1217 esac
1218 # Be sure to have absolute directory names.
1219 case $ac_val in
1220 [\\/$]* | ?:[\\/]* ) continue;;
1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222 esac
1223 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1224 done
1225
1226 # There might be people who depend on the old broken behavior: `$host'
1227 # used to hold the argument of --host etc.
1228 # FIXME: To remove some day.
1229 build=$build_alias
1230 host=$host_alias
1231 target=$target_alias
1232
1233 # FIXME: To remove some day.
1234 if test "x$host_alias" != x; then
1235 if test "x$build_alias" = x; then
1236 cross_compiling=maybe
1237 elif test "x$build_alias" != "x$host_alias"; then
1238 cross_compiling=yes
1239 fi
1240 fi
1241
1242 ac_tool_prefix=
1243 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244
1245 test "$silent" = yes && exec 6>/dev/null
1246
1247
1248 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249 ac_ls_di=`ls -di .` &&
1250 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251 as_fn_error $? "working directory cannot be determined"
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253 as_fn_error $? "pwd does not report name of working directory"
1254
1255
1256 # Find the source files, if location was not specified.
1257 if test -z "$srcdir"; then
1258 ac_srcdir_defaulted=yes
1259 # Try the directory containing this script, then the parent directory.
1260 ac_confdir=`$as_dirname -- "$as_myself" ||
1261 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262 X"$as_myself" : 'X\(//\)[^/]' \| \
1263 X"$as_myself" : 'X\(//\)$' \| \
1264 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1265 $as_echo X"$as_myself" |
1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)[^/].*/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\).*/{
1279 s//\1/
1280 q
1281 }
1282 s/.*/./; q'`
1283 srcdir=$ac_confdir
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 srcdir=..
1286 fi
1287 else
1288 ac_srcdir_defaulted=no
1289 fi
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1293 fi
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 ac_abs_confdir=`(
1296 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1297 pwd)`
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 srcdir=.
1301 fi
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1305 case $srcdir in
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 esac
1308 for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 done
1314
1315 #
1316 # Report the --help message.
1317 #
1318 if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1321 cat <<_ACEOF
1322 \`configure' configures sbsms 2.2.0 to adapt to many kinds of systems.
1323
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE. See below for descriptions of some of the useful variables.
1328
1329 Defaults for the options are specified in brackets.
1330
1331 Configuration:
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking ...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341
1342 Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
1344 [$ac_default_prefix]
1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 [PREFIX]
1347
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1352
1353 For better control, use the options below.
1354
1355 Fine tuning of the installation directories:
1356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/sbsms]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
1375 _ACEOF
1376
1377 cat <<\_ACEOF
1378
1379 Program names:
1380 --program-prefix=PREFIX prepend PREFIX to installed program names
1381 --program-suffix=SUFFIX append SUFFIX to installed program names
1382 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1383
1384 System types:
1385 --build=BUILD configure for building on BUILD [guessed]
1386 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1387 --target=TARGET configure for building compilers for TARGET [HOST]
1388 _ACEOF
1389 fi
1390
1391 if test -n "$ac_init_help"; then
1392 case $ac_init_help in
1393 short | recursive ) echo "Configuration of sbsms 2.2.0:";;
1394 esac
1395 cat <<\_ACEOF
1396
1397 Optional Features:
1398 --disable-option-checking ignore unrecognized --enable/--with options
1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1401 --enable-shared[=PKGS] build shared libraries [default=no]
1402 --enable-static[=PKGS] build static libraries [default=yes]
1403 --enable-fast-install[=PKGS]
1404 optimize for fast installation [default=yes]
1405 --disable-libtool-lock avoid locking (might break parallel builds)
1406 --enable-static enable static build: (default: disable)
1407 --enable-debug enable debug build: (default: disable)
1408 --enable-multithreaded enable multithreaded build: (default: disable)
1409 --enable-sse enable SSE optimizations
1410 --enable-universal_binary enable universal binary build: (default: disable)
1411 --enable-silent-rules less verbose build output (undo: "make V=1")
1412 --disable-silent-rules verbose build output (undo: "make V=0")
1413 --enable-maintainer-mode
1414 enable make rules and dependencies not useful (and
1415 sometimes confusing) to the casual installer
1416
1417 Optional Packages:
1418 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1419 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1420 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1421 both]
1422 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1423 --with-sysroot=DIR Search for dependent libraries within DIR
1424 (or the compiler's sysroot if not specified).
1425
1426 Some influential environment variables:
1427 CC C compiler command
1428 CFLAGS C compiler flags
1429 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1430 nonstandard directory <lib dir>
1431 LIBS libraries to pass to the linker, e.g. -l<library>
1432 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1433 you have headers in a nonstandard directory <include dir>
1434 CPP C preprocessor
1435 CXX C++ compiler command
1436 CXXFLAGS C++ compiler flags
1437 CXXCPP C++ preprocessor
1438
1439 Use these variables to override the choices made by `configure' or to help
1440 it to find libraries and programs with nonstandard names/locations.
1441
1442 Report bugs to the package provider.
1443 _ACEOF
1444 ac_status=$?
1445 fi
1446
1447 if test "$ac_init_help" = "recursive"; then
1448 # If there are subdirs, report their specific --help.
1449 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1450 test -d "$ac_dir" ||
1451 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1452 continue
1453 ac_builddir=.
1454
1455 case "$ac_dir" in
1456 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457 *)
1458 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1459 # A ".." for each directory in $ac_dir_suffix.
1460 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1461 case $ac_top_builddir_sub in
1462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1464 esac ;;
1465 esac
1466 ac_abs_top_builddir=$ac_pwd
1467 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1468 # for backward compatibility:
1469 ac_top_builddir=$ac_top_build_prefix
1470
1471 case $srcdir in
1472 .) # We are building in place.
1473 ac_srcdir=.
1474 ac_top_srcdir=$ac_top_builddir_sub
1475 ac_abs_top_srcdir=$ac_pwd ;;
1476 [\\/]* | ?:[\\/]* ) # Absolute name.
1477 ac_srcdir=$srcdir$ac_dir_suffix;
1478 ac_top_srcdir=$srcdir
1479 ac_abs_top_srcdir=$srcdir ;;
1480 *) # Relative name.
1481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1482 ac_top_srcdir=$ac_top_build_prefix$srcdir
1483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1484 esac
1485 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1486
1487 cd "$ac_dir" || { ac_status=$?; continue; }
1488 # Check for guested configure.
1489 if test -f "$ac_srcdir/configure.gnu"; then
1490 echo &&
1491 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1492 elif test -f "$ac_srcdir/configure"; then
1493 echo &&
1494 $SHELL "$ac_srcdir/configure" --help=recursive
1495 else
1496 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1497 fi || ac_status=$?
1498 cd "$ac_pwd" || { ac_status=$?; break; }
1499 done
1500 fi
1501
1502 test -n "$ac_init_help" && exit $ac_status
1503 if $ac_init_version; then
1504 cat <<\_ACEOF
1505 sbsms configure 2.2.0
1506 generated by GNU Autoconf 2.69
1507
1508 Copyright (C) 2012 Free Software Foundation, Inc.
1509 This configure script is free software; the Free Software Foundation
1510 gives unlimited permission to copy, distribute and modify it.
1511 _ACEOF
1512 exit
1513 fi
1514
1515 ## ------------------------ ##
1516 ## Autoconf initialization. ##
1517 ## ------------------------ ##
1518
1519 # ac_fn_c_try_compile LINENO
1520 # --------------------------
1521 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1522 ac_fn_c_try_compile ()
1523 {
1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525 rm -f conftest.$ac_objext
1526 if { { ac_try="$ac_compile"
1527 case "(($ac_try" in
1528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1529 *) ac_try_echo=$ac_try;;
1530 esac
1531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532 $as_echo "$ac_try_echo"; } >&5
1533 (eval "$ac_compile") 2>conftest.err
1534 ac_status=$?
1535 if test -s conftest.err; then
1536 grep -v '^ *+' conftest.err >conftest.er1
1537 cat conftest.er1 >&5
1538 mv -f conftest.er1 conftest.err
1539 fi
1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 test $ac_status = 0; } && {
1542 test -z "$ac_c_werror_flag" ||
1543 test ! -s conftest.err
1544 } && test -s conftest.$ac_objext; then :
1545 ac_retval=0
1546 else
1547 $as_echo "$as_me: failed program was:" >&5
1548 sed 's/^/| /' conftest.$ac_ext >&5
1549
1550 ac_retval=1
1551 fi
1552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1553 as_fn_set_status $ac_retval
1554
1555 } # ac_fn_c_try_compile
1556
1557 # ac_fn_c_try_link LINENO
1558 # -----------------------
1559 # Try to link conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_c_try_link ()
1561 {
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext conftest$ac_exeext
1564 if { { ac_try="$ac_link"
1565 case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568 esac
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_link") 2>conftest.err
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1577 fi
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_c_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest$ac_exeext && {
1583 test "$cross_compiling" = yes ||
1584 test -x conftest$ac_exeext
1585 }; then :
1586 ac_retval=0
1587 else
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1590
1591 ac_retval=1
1592 fi
1593 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1594 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1595 # interfere with the next link command; also delete a directory that is
1596 # left behind by Apple's compiler. We do this before executing the actions.
1597 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599 as_fn_set_status $ac_retval
1600
1601 } # ac_fn_c_try_link
1602
1603 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1604 # -------------------------------------------------------
1605 # Tests whether HEADER exists and can be compiled using the include files in
1606 # INCLUDES, setting the cache variable VAR accordingly.
1607 ac_fn_c_check_header_compile ()
1608 {
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1611 $as_echo_n "checking for $2... " >&6; }
1612 if eval \${$3+:} false; then :
1613 $as_echo_n "(cached) " >&6
1614 else
1615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616 /* end confdefs.h. */
1617 $4
1618 #include <$2>
1619 _ACEOF
1620 if ac_fn_c_try_compile "$LINENO"; then :
1621 eval "$3=yes"
1622 else
1623 eval "$3=no"
1624 fi
1625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1626 fi
1627 eval ac_res=\$$3
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629 $as_echo "$ac_res" >&6; }
1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631
1632 } # ac_fn_c_check_header_compile
1633
1634 # ac_fn_c_try_cpp LINENO
1635 # ----------------------
1636 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1637 ac_fn_c_try_cpp ()
1638 {
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 if { { ac_try="$ac_cpp conftest.$ac_ext"
1641 case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1648 ac_status=$?
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1653 fi
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } > conftest.i && {
1656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1657 test ! -s conftest.err
1658 }; then :
1659 ac_retval=0
1660 else
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1663
1664 ac_retval=1
1665 fi
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 as_fn_set_status $ac_retval
1668
1669 } # ac_fn_c_try_cpp
1670
1671 # ac_fn_c_try_run LINENO
1672 # ----------------------
1673 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1674 # that executables *can* be run.
1675 ac_fn_c_try_run ()
1676 {
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 if { { ac_try="$ac_link"
1679 case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_link") 2>&5
1686 ac_status=$?
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1689 { { case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_try") 2>&5
1696 ac_status=$?
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; }; }; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: program exited with status $ac_status" >&5
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=$ac_status
1706 fi
1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1710
1711 } # ac_fn_c_try_run
1712
1713 # ac_fn_c_check_func LINENO FUNC VAR
1714 # ----------------------------------
1715 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1716 ac_fn_c_check_func ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 $as_echo_n "checking for $2... " >&6; }
1721 if eval \${$3+:} false; then :
1722 $as_echo_n "(cached) " >&6
1723 else
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h. */
1726 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1728 #define $2 innocuous_$2
1729
1730 /* System header to define __stub macros and hopefully few prototypes,
1731 which can conflict with char $2 (); below.
1732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1733 <limits.h> exists even on freestanding compilers. */
1734
1735 #ifdef __STDC__
1736 # include <limits.h>
1737 #else
1738 # include <assert.h>
1739 #endif
1740
1741 #undef $2
1742
1743 /* Override any GCC internal prototype to avoid an error.
1744 Use char because int might match the return type of a GCC
1745 builtin and then its argument prototype would still apply. */
1746 #ifdef __cplusplus
1747 extern "C"
1748 #endif
1749 char $2 ();
1750 /* The GNU C library defines this for functions which it implements
1751 to always fail with ENOSYS. Some functions are actually named
1752 something starting with __ and the normal name is an alias. */
1753 #if defined __stub_$2 || defined __stub___$2
1754 choke me
1755 #endif
1756
1757 int
1758 main ()
1759 {
1760 return $2 ();
1761 ;
1762 return 0;
1763 }
1764 _ACEOF
1765 if ac_fn_c_try_link "$LINENO"; then :
1766 eval "$3=yes"
1767 else
1768 eval "$3=no"
1769 fi
1770 rm -f core conftest.err conftest.$ac_objext \
1771 conftest$ac_exeext conftest.$ac_ext
1772 fi
1773 eval ac_res=\$$3
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777
1778 } # ac_fn_c_check_func
1779
1780 # ac_fn_cxx_try_compile LINENO
1781 # ----------------------------
1782 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_cxx_try_compile ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 rm -f conftest.$ac_objext
1787 if { { ac_try="$ac_compile"
1788 case "(($ac_try" in
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_compile") 2>conftest.err
1795 ac_status=$?
1796 if test -s conftest.err; then
1797 grep -v '^ *+' conftest.err >conftest.er1
1798 cat conftest.er1 >&5
1799 mv -f conftest.er1 conftest.err
1800 fi
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && {
1803 test -z "$ac_cxx_werror_flag" ||
1804 test ! -s conftest.err
1805 } && test -s conftest.$ac_objext; then :
1806 ac_retval=0
1807 else
1808 $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1810
1811 ac_retval=1
1812 fi
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 as_fn_set_status $ac_retval
1815
1816 } # ac_fn_cxx_try_compile
1817
1818 # ac_fn_cxx_try_cpp LINENO
1819 # ------------------------
1820 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1821 ac_fn_cxx_try_cpp ()
1822 {
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 if { { ac_try="$ac_cpp conftest.$ac_ext"
1825 case "(($ac_try" in
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1828 esac
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1832 ac_status=$?
1833 if test -s conftest.err; then
1834 grep -v '^ *+' conftest.err >conftest.er1
1835 cat conftest.er1 >&5
1836 mv -f conftest.er1 conftest.err
1837 fi
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } > conftest.i && {
1840 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1841 test ! -s conftest.err
1842 }; then :
1843 ac_retval=0
1844 else
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1847
1848 ac_retval=1
1849 fi
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 as_fn_set_status $ac_retval
1852
1853 } # ac_fn_cxx_try_cpp
1854
1855 # ac_fn_cxx_try_link LINENO
1856 # -------------------------
1857 # Try to link conftest.$ac_ext, and return whether this succeeded.
1858 ac_fn_cxx_try_link ()
1859 {
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 rm -f conftest.$ac_objext conftest$ac_exeext
1862 if { { ac_try="$ac_link"
1863 case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_link") 2>conftest.err
1870 ac_status=$?
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1875 fi
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && {
1878 test -z "$ac_cxx_werror_flag" ||
1879 test ! -s conftest.err
1880 } && test -s conftest$ac_exeext && {
1881 test "$cross_compiling" = yes ||
1882 test -x conftest$ac_exeext
1883 }; then :
1884 ac_retval=0
1885 else
1886 $as_echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1888
1889 ac_retval=1
1890 fi
1891 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1892 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1893 # interfere with the next link command; also delete a directory that is
1894 # left behind by Apple's compiler. We do this before executing the actions.
1895 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897 as_fn_set_status $ac_retval
1898
1899 } # ac_fn_cxx_try_link
1900 cat >config.log <<_ACEOF
1901 This file contains any messages produced by compilers while
1902 running configure, to aid debugging if configure makes a mistake.
1903
1904 It was created by sbsms $as_me 2.2.0, which was
1905 generated by GNU Autoconf 2.69. Invocation command line was
1906
1907 $ $0 $@
1908
1909 _ACEOF
1910 exec 5>>config.log
1911 {
1912 cat <<_ASUNAME
1913 ## --------- ##
1914 ## Platform. ##
1915 ## --------- ##
1916
1917 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1918 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1919 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1920 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1921 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1922
1923 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1924 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1925
1926 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1927 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1928 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1929 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1930 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1931 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1932 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1933
1934 _ASUNAME
1935
1936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937 for as_dir in $PATH
1938 do
1939 IFS=$as_save_IFS
1940 test -z "$as_dir" && as_dir=.
1941 $as_echo "PATH: $as_dir"
1942 done
1943 IFS=$as_save_IFS
1944
1945 } >&5
1946
1947 cat >&5 <<_ACEOF
1948
1949
1950 ## ----------- ##
1951 ## Core tests. ##
1952 ## ----------- ##
1953
1954 _ACEOF
1955
1956
1957 # Keep a trace of the command line.
1958 # Strip out --no-create and --no-recursion so they do not pile up.
1959 # Strip out --silent because we don't want to record it for future runs.
1960 # Also quote any args containing shell meta-characters.
1961 # Make two passes to allow for proper duplicate-argument suppression.
1962 ac_configure_args=
1963 ac_configure_args0=
1964 ac_configure_args1=
1965 ac_must_keep_next=false
1966 for ac_pass in 1 2
1967 do
1968 for ac_arg
1969 do
1970 case $ac_arg in
1971 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1972 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1973 | -silent | --silent | --silen | --sile | --sil)
1974 continue ;;
1975 *\'*)
1976 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1977 esac
1978 case $ac_pass in
1979 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1980 2)
1981 as_fn_append ac_configure_args1 " '$ac_arg'"
1982 if test $ac_must_keep_next = true; then
1983 ac_must_keep_next=false # Got value, back to normal.
1984 else
1985 case $ac_arg in
1986 *=* | --config-cache | -C | -disable-* | --disable-* \
1987 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1988 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1989 | -with-* | --with-* | -without-* | --without-* | --x)
1990 case "$ac_configure_args0 " in
1991 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1992 esac
1993 ;;
1994 -* ) ac_must_keep_next=true ;;
1995 esac
1996 fi
1997 as_fn_append ac_configure_args " '$ac_arg'"
1998 ;;
1999 esac
2000 done
2001 done
2002 { ac_configure_args0=; unset ac_configure_args0;}
2003 { ac_configure_args1=; unset ac_configure_args1;}
2004
2005 # When interrupted or exit'd, cleanup temporary files, and complete
2006 # config.log. We remove comments because anyway the quotes in there
2007 # would cause problems or look ugly.
2008 # WARNING: Use '\'' to represent an apostrophe within the trap.
2009 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2010 trap 'exit_status=$?
2011 # Save into config.log some information that might help in debugging.
2012 {
2013 echo
2014
2015 $as_echo "## ---------------- ##
2016 ## Cache variables. ##
2017 ## ---------------- ##"
2018 echo
2019 # The following way of writing the cache mishandles newlines in values,
2020 (
2021 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2022 eval ac_val=\$$ac_var
2023 case $ac_val in #(
2024 *${as_nl}*)
2025 case $ac_var in #(
2026 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2027 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2028 esac
2029 case $ac_var in #(
2030 _ | IFS | as_nl) ;; #(
2031 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2032 *) { eval $ac_var=; unset $ac_var;} ;;
2033 esac ;;
2034 esac
2035 done
2036 (set) 2>&1 |
2037 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2038 *${as_nl}ac_space=\ *)
2039 sed -n \
2040 "s/'\''/'\''\\\\'\'''\''/g;
2041 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2042 ;; #(
2043 *)
2044 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2045 ;;
2046 esac |
2047 sort
2048 )
2049 echo
2050
2051 $as_echo "## ----------------- ##
2052 ## Output variables. ##
2053 ## ----------------- ##"
2054 echo
2055 for ac_var in $ac_subst_vars
2056 do
2057 eval ac_val=\$$ac_var
2058 case $ac_val in
2059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2060 esac
2061 $as_echo "$ac_var='\''$ac_val'\''"
2062 done | sort
2063 echo
2064
2065 if test -n "$ac_subst_files"; then
2066 $as_echo "## ------------------- ##
2067 ## File substitutions. ##
2068 ## ------------------- ##"
2069 echo
2070 for ac_var in $ac_subst_files
2071 do
2072 eval ac_val=\$$ac_var
2073 case $ac_val in
2074 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2075 esac
2076 $as_echo "$ac_var='\''$ac_val'\''"
2077 done | sort
2078 echo
2079 fi
2080
2081 if test -s confdefs.h; then
2082 $as_echo "## ----------- ##
2083 ## confdefs.h. ##
2084 ## ----------- ##"
2085 echo
2086 cat confdefs.h
2087 echo
2088 fi
2089 test "$ac_signal" != 0 &&
2090 $as_echo "$as_me: caught signal $ac_signal"
2091 $as_echo "$as_me: exit $exit_status"
2092 } >&5
2093 rm -f core *.core core.conftest.* &&
2094 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2095 exit $exit_status
2096 ' 0
2097 for ac_signal in 1 2 13 15; do
2098 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2099 done
2100 ac_signal=0
2101
2102 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2103 rm -f -r conftest* confdefs.h
2104
2105 $as_echo "/* confdefs.h */" > confdefs.h
2106
2107 # Predefined preprocessor variables.
2108
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_NAME "$PACKAGE_NAME"
2111 _ACEOF
2112
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2115 _ACEOF
2116
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2119 _ACEOF
2120
2121 cat >>confdefs.h <<_ACEOF
2122 #define PACKAGE_STRING "$PACKAGE_STRING"
2123 _ACEOF
2124
2125 cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2127 _ACEOF
2128
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_URL "$PACKAGE_URL"
2131 _ACEOF
2132
2133
2134 # Let the site file select an alternate cache file if it wants to.
2135 # Prefer an explicitly selected file to automatically selected ones.
2136 ac_site_file1=NONE
2137 ac_site_file2=NONE
2138 if test -n "$CONFIG_SITE"; then
2139 # We do not want a PATH search for config.site.
2140 case $CONFIG_SITE in #((
2141 -*) ac_site_file1=./$CONFIG_SITE;;
2142 */*) ac_site_file1=$CONFIG_SITE;;
2143 *) ac_site_file1=./$CONFIG_SITE;;
2144 esac
2145 elif test "x$prefix" != xNONE; then
2146 ac_site_file1=$prefix/share/config.site
2147 ac_site_file2=$prefix/etc/config.site
2148 else
2149 ac_site_file1=$ac_default_prefix/share/config.site
2150 ac_site_file2=$ac_default_prefix/etc/config.site
2151 fi
2152 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2153 do
2154 test "x$ac_site_file" = xNONE && continue
2155 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2157 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2158 sed 's/^/| /' "$ac_site_file" >&5
2159 . "$ac_site_file" \
2160 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2162 as_fn_error $? "failed to load site script $ac_site_file
2163 See \`config.log' for more details" "$LINENO" 5; }
2164 fi
2165 done
2166
2167 if test -r "$cache_file"; then
2168 # Some versions of bash will fail to source /dev/null (special files
2169 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2170 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2172 $as_echo "$as_me: loading cache $cache_file" >&6;}
2173 case $cache_file in
2174 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2175 *) . "./$cache_file";;
2176 esac
2177 fi
2178 else
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2180 $as_echo "$as_me: creating cache $cache_file" >&6;}
2181 >$cache_file
2182 fi
2183
2184 # Check that the precious variables saved in the cache have kept the same
2185 # value.
2186 ac_cache_corrupted=false
2187 for ac_var in $ac_precious_vars; do
2188 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2189 eval ac_new_set=\$ac_env_${ac_var}_set
2190 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2191 eval ac_new_val=\$ac_env_${ac_var}_value
2192 case $ac_old_set,$ac_new_set in
2193 set,)
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2195 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2196 ac_cache_corrupted=: ;;
2197 ,set)
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2199 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2200 ac_cache_corrupted=: ;;
2201 ,);;
2202 *)
2203 if test "x$ac_old_val" != "x$ac_new_val"; then
2204 # differences in whitespace do not lead to failure.
2205 ac_old_val_w=`echo x $ac_old_val`
2206 ac_new_val_w=`echo x $ac_new_val`
2207 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2209 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2210 ac_cache_corrupted=:
2211 else
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2213 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2214 eval $ac_var=\$ac_old_val
2215 fi
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2217 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2219 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2220 fi;;
2221 esac
2222 # Pass precious variables to config.status.
2223 if test "$ac_new_set" = set; then
2224 case $ac_new_val in
2225 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2226 *) ac_arg=$ac_var=$ac_new_val ;;
2227 esac
2228 case " $ac_configure_args " in
2229 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2230 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2231 esac
2232 fi
2233 done
2234 if $ac_cache_corrupted; then
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2238 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2239 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2240 fi
2241 ## -------------------- ##
2242 ## Main body of script. ##
2243 ## -------------------- ##
2244
2245 ac_ext=c
2246 ac_cpp='$CPP $CPPFLAGS'
2247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2250
2251
2252
2253
2254
2255 #------------------------------------------------------------------------------------
2256 # Library's "official" release version:
2257
2258 LIBSBSMS_RELEASE_MAJOR=2
2259 LIBSBSMS_RELEASE_MINOR=1
2260 LIBSBSMS_RELEASE_BUILD=0
2261
2262 ac_aux_dir=
2263 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2264 if test -f "$ac_dir/install-sh"; then
2265 ac_aux_dir=$ac_dir
2266 ac_install_sh="$ac_aux_dir/install-sh -c"
2267 break
2268 elif test -f "$ac_dir/install.sh"; then
2269 ac_aux_dir=$ac_dir
2270 ac_install_sh="$ac_aux_dir/install.sh -c"
2271 break
2272 elif test -f "$ac_dir/shtool"; then
2273 ac_aux_dir=$ac_dir
2274 ac_install_sh="$ac_aux_dir/shtool install -c"
2275 break
2276 fi
2277 done
2278 if test -z "$ac_aux_dir"; then
2279 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2280 fi
2281
2282 # These three variables are undocumented and unsupported,
2283 # and are intended to be withdrawn in a future Autoconf release.
2284 # They can cause serious problems if a builder's source tree is in a directory
2285 # whose full name contains unusual characters.
2286 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2287 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2288 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2289
2290
2291 # Make sure we can run config.sub.
2292 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2293 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2294
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2296 $as_echo_n "checking build system type... " >&6; }
2297 if ${ac_cv_build+:} false; then :
2298 $as_echo_n "(cached) " >&6
2299 else
2300 ac_build_alias=$build_alias
2301 test "x$ac_build_alias" = x &&
2302 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2303 test "x$ac_build_alias" = x &&
2304 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2305 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2306 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2307
2308 fi
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2310 $as_echo "$ac_cv_build" >&6; }
2311 case $ac_cv_build in
2312 *-*-*) ;;
2313 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2314 esac
2315 build=$ac_cv_build
2316 ac_save_IFS=$IFS; IFS='-'
2317 set x $ac_cv_build
2318 shift
2319 build_cpu=$1
2320 build_vendor=$2
2321 shift; shift
2322 # Remember, the first character of IFS is used to create $*,
2323 # except with old shells:
2324 build_os=$*
2325 IFS=$ac_save_IFS
2326 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2327
2328
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2330 $as_echo_n "checking host system type... " >&6; }
2331 if ${ac_cv_host+:} false; then :
2332 $as_echo_n "(cached) " >&6
2333 else
2334 if test "x$host_alias" = x; then
2335 ac_cv_host=$ac_cv_build
2336 else
2337 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2338 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2339 fi
2340
2341 fi
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2343 $as_echo "$ac_cv_host" >&6; }
2344 case $ac_cv_host in
2345 *-*-*) ;;
2346 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2347 esac
2348 host=$ac_cv_host
2349 ac_save_IFS=$IFS; IFS='-'
2350 set x $ac_cv_host
2351 shift
2352 host_cpu=$1
2353 host_vendor=$2
2354 shift; shift
2355 # Remember, the first character of IFS is used to create $*,
2356 # except with old shells:
2357 host_os=$*
2358 IFS=$ac_save_IFS
2359 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2360
2361
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2363 $as_echo_n "checking target system type... " >&6; }
2364 if ${ac_cv_target+:} false; then :
2365 $as_echo_n "(cached) " >&6
2366 else
2367 if test "x$target_alias" = x; then
2368 ac_cv_target=$ac_cv_host
2369 else
2370 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2371 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2372 fi
2373
2374 fi
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2376 $as_echo "$ac_cv_target" >&6; }
2377 case $ac_cv_target in
2378 *-*-*) ;;
2379 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2380 esac
2381 target=$ac_cv_target
2382 ac_save_IFS=$IFS; IFS='-'
2383 set x $ac_cv_target
2384 shift
2385 target_cpu=$1
2386 target_vendor=$2
2387 shift; shift
2388 # Remember, the first character of IFS is used to create $*,
2389 # except with old shells:
2390 target_os=$*
2391 IFS=$ac_save_IFS
2392 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2393
2394
2395 # The aliases save the names the user supplied, while $host etc.
2396 # will get canonicalized.
2397 test -n "$target_alias" &&
2398 test "$program_prefix$program_suffix$program_transform_name" = \
2399 NONENONEs,x,x, &&
2400 program_prefix=${target_alias}-
2401 ac_config_headers="$ac_config_headers src/config.h"
2402
2403
2404 # Check whether --enable-shared was given.
2405 if test "${enable_shared+set}" = set; then :
2406 enableval=$enable_shared; p=${PACKAGE-default}
2407 case $enableval in
2408 yes) enable_shared=yes ;;
2409 no) enable_shared=no ;;
2410 *)
2411 enable_shared=no
2412 # Look at the argument we got. We use all the common list separators.
2413 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2414 for pkg in $enableval; do
2415 IFS="$lt_save_ifs"
2416 if test "X$pkg" = "X$p"; then
2417 enable_shared=yes
2418 fi
2419 done
2420 IFS="$lt_save_ifs"
2421 ;;
2422 esac
2423 else
2424 enable_shared=no
2425 fi
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435 #------------------------------------------------------------------------------------
2436 # The following is the libtool / shared library version. This doesn't have to
2437 # do anything with the release version. It MUST conform to the following rules:
2438 #
2439 # 1. Start with version information of `0:0:0' for each libtool library.
2440 # 2. Update the version information only immediately before a public release of
2441 # your software. More frequent updates are unnecessary, and only guarantee
2442 # that the current interface number gets larger faster.
2443 # 3. If the library source code has changed at all since the last update, then
2444 # increment revision (`c:r:a' becomes `c:r+1:a').
2445 # 4. If any interfaces have been added, removed, or changed since the last update,
2446 # increment current, and set revision to 0.
2447 # 5. If any interfaces have been added since the last public release, then increment
2448 # age.
2449 # 6. If any interfaces have been removed since the last public release, then set age
2450 # to 0.
2451
2452 SHARED_VERSION_INFO="10:0:0"
2453
2454 # Expand $ac_aux_dir to an absolute path.
2455 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2456
2457 ac_ext=c
2458 ac_cpp='$CPP $CPPFLAGS'
2459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2462 if test -n "$ac_tool_prefix"; then
2463 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2464 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2466 $as_echo_n "checking for $ac_word... " >&6; }
2467 if ${ac_cv_prog_CC+:} false; then :
2468 $as_echo_n "(cached) " >&6
2469 else
2470 if test -n "$CC"; then
2471 ac_cv_prog_CC="$CC" # Let the user override the test.
2472 else
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2475 do
2476 IFS=$as_save_IFS
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2480 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 break 2
2483 fi
2484 done
2485 done
2486 IFS=$as_save_IFS
2487
2488 fi
2489 fi
2490 CC=$ac_cv_prog_CC
2491 if test -n "$CC"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2493 $as_echo "$CC" >&6; }
2494 else
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2496 $as_echo "no" >&6; }
2497 fi
2498
2499
2500 fi
2501 if test -z "$ac_cv_prog_CC"; then
2502 ac_ct_CC=$CC
2503 # Extract the first word of "gcc", so it can be a program name with args.
2504 set dummy gcc; ac_word=$2
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2506 $as_echo_n "checking for $ac_word... " >&6; }
2507 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2508 $as_echo_n "(cached) " >&6
2509 else
2510 if test -n "$ac_ct_CC"; then
2511 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2520 ac_cv_prog_ac_ct_CC="gcc"
2521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 break 2
2523 fi
2524 done
2525 done
2526 IFS=$as_save_IFS
2527
2528 fi
2529 fi
2530 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2531 if test -n "$ac_ct_CC"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2533 $as_echo "$ac_ct_CC" >&6; }
2534 else
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2536 $as_echo "no" >&6; }
2537 fi
2538
2539 if test "x$ac_ct_CC" = x; then
2540 CC=""
2541 else
2542 case $cross_compiling:$ac_tool_warned in
2543 yes:)
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2546 ac_tool_warned=yes ;;
2547 esac
2548 CC=$ac_ct_CC
2549 fi
2550 else
2551 CC="$ac_cv_prog_CC"
2552 fi
2553
2554 if test -z "$CC"; then
2555 if test -n "$ac_tool_prefix"; then
2556 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2557 set dummy ${ac_tool_prefix}cc; ac_word=$2
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559 $as_echo_n "checking for $ac_word... " >&6; }
2560 if ${ac_cv_prog_CC+:} false; then :
2561 $as_echo_n "(cached) " >&6
2562 else
2563 if test -n "$CC"; then
2564 ac_cv_prog_CC="$CC" # Let the user override the test.
2565 else
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2568 do
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2573 ac_cv_prog_CC="${ac_tool_prefix}cc"
2574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2575 break 2
2576 fi
2577 done
2578 done
2579 IFS=$as_save_IFS
2580
2581 fi
2582 fi
2583 CC=$ac_cv_prog_CC
2584 if test -n "$CC"; then
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2586 $as_echo "$CC" >&6; }
2587 else
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589 $as_echo "no" >&6; }
2590 fi
2591
2592
2593 fi
2594 fi
2595 if test -z "$CC"; then
2596 # Extract the first word of "cc", so it can be a program name with args.
2597 set dummy cc; ac_word=$2
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2599 $as_echo_n "checking for $ac_word... " >&6; }
2600 if ${ac_cv_prog_CC+:} false; then :
2601 $as_echo_n "(cached) " >&6
2602 else
2603 if test -n "$CC"; then
2604 ac_cv_prog_CC="$CC" # Let the user override the test.
2605 else
2606 ac_prog_rejected=no
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 for as_dir in $PATH
2609 do
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2615 ac_prog_rejected=yes
2616 continue
2617 fi
2618 ac_cv_prog_CC="cc"
2619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 break 2
2621 fi
2622 done
2623 done
2624 IFS=$as_save_IFS
2625
2626 if test $ac_prog_rejected = yes; then
2627 # We found a bogon in the path, so make sure we never use it.
2628 set dummy $ac_cv_prog_CC
2629 shift
2630 if test $# != 0; then
2631 # We chose a different compiler from the bogus one.
2632 # However, it has the same basename, so the bogon will be chosen
2633 # first if we set CC to just the basename; use the full file name.
2634 shift
2635 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2636 fi
2637 fi
2638 fi
2639 fi
2640 CC=$ac_cv_prog_CC
2641 if test -n "$CC"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2643 $as_echo "$CC" >&6; }
2644 else
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646 $as_echo "no" >&6; }
2647 fi
2648
2649
2650 fi
2651 if test -z "$CC"; then
2652 if test -n "$ac_tool_prefix"; then
2653 for ac_prog in cl.exe
2654 do
2655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2658 $as_echo_n "checking for $ac_word... " >&6; }
2659 if ${ac_cv_prog_CC+:} false; then :
2660 $as_echo_n "(cached) " >&6
2661 else
2662 if test -n "$CC"; then
2663 ac_cv_prog_CC="$CC" # Let the user override the test.
2664 else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2667 do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2672 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 break 2
2675 fi
2676 done
2677 done
2678 IFS=$as_save_IFS
2679
2680 fi
2681 fi
2682 CC=$ac_cv_prog_CC
2683 if test -n "$CC"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2685 $as_echo "$CC" >&6; }
2686 else
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688 $as_echo "no" >&6; }
2689 fi
2690
2691
2692 test -n "$CC" && break
2693 done
2694 fi
2695 if test -z "$CC"; then
2696 ac_ct_CC=$CC
2697 for ac_prog in cl.exe
2698 do
2699 # Extract the first word of "$ac_prog", so it can be a program name with args.
2700 set dummy $ac_prog; ac_word=$2
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2702 $as_echo_n "checking for $ac_word... " >&6; }
2703 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 if test -n "$ac_ct_CC"; then
2707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2708 else
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH
2711 do
2712 IFS=$as_save_IFS
2713 test -z "$as_dir" && as_dir=.
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716 ac_cv_prog_ac_ct_CC="$ac_prog"
2717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 break 2
2719 fi
2720 done
2721 done
2722 IFS=$as_save_IFS
2723
2724 fi
2725 fi
2726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2727 if test -n "$ac_ct_CC"; then
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2729 $as_echo "$ac_ct_CC" >&6; }
2730 else
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732 $as_echo "no" >&6; }
2733 fi
2734
2735
2736 test -n "$ac_ct_CC" && break
2737 done
2738
2739 if test "x$ac_ct_CC" = x; then
2740 CC=""
2741 else
2742 case $cross_compiling:$ac_tool_warned in
2743 yes:)
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2746 ac_tool_warned=yes ;;
2747 esac
2748 CC=$ac_ct_CC
2749 fi
2750 fi
2751
2752 fi
2753
2754
2755 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2757 as_fn_error $? "no acceptable C compiler found in \$PATH
2758 See \`config.log' for more details" "$LINENO" 5; }
2759
2760 # Provide some information about the compiler.
2761 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2762 set X $ac_compile
2763 ac_compiler=$2
2764 for ac_option in --version -v -V -qversion; do
2765 { { ac_try="$ac_compiler $ac_option >&5"
2766 case "(($ac_try" in
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2769 esac
2770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2771 $as_echo "$ac_try_echo"; } >&5
2772 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2773 ac_status=$?
2774 if test -s conftest.err; then
2775 sed '10a\
2776 ... rest of stderr output deleted ...
2777 10q' conftest.err >conftest.er1
2778 cat conftest.er1 >&5
2779 fi
2780 rm -f conftest.er1 conftest.err
2781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2782 test $ac_status = 0; }
2783 done
2784
2785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2786 /* end confdefs.h. */
2787
2788 int
2789 main ()
2790 {
2791
2792 ;
2793 return 0;
2794 }
2795 _ACEOF
2796 ac_clean_files_save=$ac_clean_files
2797 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2798 # Try to create an executable without -o first, disregard a.out.
2799 # It will help us diagnose broken compilers, and finding out an intuition
2800 # of exeext.
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2802 $as_echo_n "checking whether the C compiler works... " >&6; }
2803 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2804
2805 # The possible output files:
2806 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2807
2808 ac_rmfiles=
2809 for ac_file in $ac_files
2810 do
2811 case $ac_file in
2812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2813 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2814 esac
2815 done
2816 rm -f $ac_rmfiles
2817
2818 if { { ac_try="$ac_link_default"
2819 case "(($ac_try" in
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2822 esac
2823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2824 $as_echo "$ac_try_echo"; } >&5
2825 (eval "$ac_link_default") 2>&5
2826 ac_status=$?
2827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2828 test $ac_status = 0; }; then :
2829 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2830 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2831 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2832 # so that the user can short-circuit this test for compilers unknown to
2833 # Autoconf.
2834 for ac_file in $ac_files ''
2835 do
2836 test -f "$ac_file" || continue
2837 case $ac_file in
2838 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2839 ;;
2840 [ab].out )
2841 # We found the default executable, but exeext='' is most
2842 # certainly right.
2843 break;;
2844 *.* )
2845 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2846 then :; else
2847 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2848 fi
2849 # We set ac_cv_exeext here because the later test for it is not
2850 # safe: cross compilers may not add the suffix if given an `-o'
2851 # argument, so we may need to know it at that point already.
2852 # Even if this section looks crufty: it has the advantage of
2853 # actually working.
2854 break;;
2855 * )
2856 break;;
2857 esac
2858 done
2859 test "$ac_cv_exeext" = no && ac_cv_exeext=
2860
2861 else
2862 ac_file=''
2863 fi
2864 if test -z "$ac_file"; then :
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866 $as_echo "no" >&6; }
2867 $as_echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2869
2870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2872 as_fn_error 77 "C compiler cannot create executables
2873 See \`config.log' for more details" "$LINENO" 5; }
2874 else
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2876 $as_echo "yes" >&6; }
2877 fi
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2879 $as_echo_n "checking for C compiler default output file name... " >&6; }
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2881 $as_echo "$ac_file" >&6; }
2882 ac_exeext=$ac_cv_exeext
2883
2884 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2885 ac_clean_files=$ac_clean_files_save
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2887 $as_echo_n "checking for suffix of executables... " >&6; }
2888 if { { ac_try="$ac_link"
2889 case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892 esac
2893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2894 $as_echo "$ac_try_echo"; } >&5
2895 (eval "$ac_link") 2>&5
2896 ac_status=$?
2897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2898 test $ac_status = 0; }; then :
2899 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2900 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2901 # work properly (i.e., refer to `conftest.exe'), while it won't with
2902 # `rm'.
2903 for ac_file in conftest.exe conftest conftest.*; do
2904 test -f "$ac_file" || continue
2905 case $ac_file in
2906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2907 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2908 break;;
2909 * ) break;;
2910 esac
2911 done
2912 else
2913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2915 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2916 See \`config.log' for more details" "$LINENO" 5; }
2917 fi
2918 rm -f conftest conftest$ac_cv_exeext
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2920 $as_echo "$ac_cv_exeext" >&6; }
2921
2922 rm -f conftest.$ac_ext
2923 EXEEXT=$ac_cv_exeext
2924 ac_exeext=$EXEEXT
2925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926 /* end confdefs.h. */
2927 #include <stdio.h>
2928 int
2929 main ()
2930 {
2931 FILE *f = fopen ("conftest.out", "w");
2932 return ferror (f) || fclose (f) != 0;
2933
2934 ;
2935 return 0;
2936 }
2937 _ACEOF
2938 ac_clean_files="$ac_clean_files conftest.out"
2939 # Check that the compiler produces executables we can run. If not, either
2940 # the compiler is broken, or we cross compile.
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2942 $as_echo_n "checking whether we are cross compiling... " >&6; }
2943 if test "$cross_compiling" != yes; then
2944 { { ac_try="$ac_link"
2945 case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2948 esac
2949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2950 $as_echo "$ac_try_echo"; } >&5
2951 (eval "$ac_link") 2>&5
2952 ac_status=$?
2953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2954 test $ac_status = 0; }
2955 if { ac_try='./conftest$ac_cv_exeext'
2956 { { case "(($ac_try" in
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2959 esac
2960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2961 $as_echo "$ac_try_echo"; } >&5
2962 (eval "$ac_try") 2>&5
2963 ac_status=$?
2964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2965 test $ac_status = 0; }; }; then
2966 cross_compiling=no
2967 else
2968 if test "$cross_compiling" = maybe; then
2969 cross_compiling=yes
2970 else
2971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2973 as_fn_error $? "cannot run C compiled programs.
2974 If you meant to cross compile, use \`--host'.
2975 See \`config.log' for more details" "$LINENO" 5; }
2976 fi
2977 fi
2978 fi
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2980 $as_echo "$cross_compiling" >&6; }
2981
2982 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2983 ac_clean_files=$ac_clean_files_save
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2985 $as_echo_n "checking for suffix of object files... " >&6; }
2986 if ${ac_cv_objext+:} false; then :
2987 $as_echo_n "(cached) " >&6
2988 else
2989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2990 /* end confdefs.h. */
2991
2992 int
2993 main ()
2994 {
2995
2996 ;
2997 return 0;
2998 }
2999 _ACEOF
3000 rm -f conftest.o conftest.obj
3001 if { { ac_try="$ac_compile"
3002 case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005 esac
3006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3007 $as_echo "$ac_try_echo"; } >&5
3008 (eval "$ac_compile") 2>&5
3009 ac_status=$?
3010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3011 test $ac_status = 0; }; then :
3012 for ac_file in conftest.o conftest.obj conftest.*; do
3013 test -f "$ac_file" || continue;
3014 case $ac_file in
3015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3016 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3017 break;;
3018 esac
3019 done
3020 else
3021 $as_echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3023
3024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3026 as_fn_error $? "cannot compute suffix of object files: cannot compile
3027 See \`config.log' for more details" "$LINENO" 5; }
3028 fi
3029 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3030 fi
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3032 $as_echo "$ac_cv_objext" >&6; }
3033 OBJEXT=$ac_cv_objext
3034 ac_objext=$OBJEXT
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3036 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3037 if ${ac_cv_c_compiler_gnu+:} false; then :
3038 $as_echo_n "(cached) " >&6
3039 else
3040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041 /* end confdefs.h. */
3042
3043 int
3044 main ()
3045 {
3046 #ifndef __GNUC__
3047 choke me
3048 #endif
3049
3050 ;
3051 return 0;
3052 }
3053 _ACEOF
3054 if ac_fn_c_try_compile "$LINENO"; then :
3055 ac_compiler_gnu=yes
3056 else
3057 ac_compiler_gnu=no
3058 fi
3059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3060 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3061
3062 fi
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3064 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3065 if test $ac_compiler_gnu = yes; then
3066 GCC=yes
3067 else
3068 GCC=
3069 fi
3070 ac_test_CFLAGS=${CFLAGS+set}
3071 ac_save_CFLAGS=$CFLAGS
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3073 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3074 if ${ac_cv_prog_cc_g+:} false; then :
3075 $as_echo_n "(cached) " >&6
3076 else
3077 ac_save_c_werror_flag=$ac_c_werror_flag
3078 ac_c_werror_flag=yes
3079 ac_cv_prog_cc_g=no
3080 CFLAGS="-g"
3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082 /* end confdefs.h. */
3083
3084 int
3085 main ()
3086 {
3087
3088 ;
3089 return 0;
3090 }
3091 _ACEOF
3092 if ac_fn_c_try_compile "$LINENO"; then :
3093 ac_cv_prog_cc_g=yes
3094 else
3095 CFLAGS=""
3096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3097 /* end confdefs.h. */
3098
3099 int
3100 main ()
3101 {
3102
3103 ;
3104 return 0;
3105 }
3106 _ACEOF
3107 if ac_fn_c_try_compile "$LINENO"; then :
3108
3109 else
3110 ac_c_werror_flag=$ac_save_c_werror_flag
3111 CFLAGS="-g"
3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113 /* end confdefs.h. */
3114
3115 int
3116 main ()
3117 {
3118
3119 ;
3120 return 0;
3121 }
3122 _ACEOF
3123 if ac_fn_c_try_compile "$LINENO"; then :
3124 ac_cv_prog_cc_g=yes
3125 fi
3126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3127 fi
3128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129 fi
3130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3131 ac_c_werror_flag=$ac_save_c_werror_flag
3132 fi
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3134 $as_echo "$ac_cv_prog_cc_g" >&6; }
3135 if test "$ac_test_CFLAGS" = set; then
3136 CFLAGS=$ac_save_CFLAGS
3137 elif test $ac_cv_prog_cc_g = yes; then
3138 if test "$GCC" = yes; then
3139 CFLAGS="-g -O2"
3140 else
3141 CFLAGS="-g"
3142 fi
3143 else
3144 if test "$GCC" = yes; then
3145 CFLAGS="-O2"
3146 else
3147 CFLAGS=
3148 fi
3149 fi
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3151 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3152 if ${ac_cv_prog_cc_c89+:} false; then :
3153 $as_echo_n "(cached) " >&6
3154 else
3155 ac_cv_prog_cc_c89=no
3156 ac_save_CC=$CC
3157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158 /* end confdefs.h. */
3159 #include <stdarg.h>
3160 #include <stdio.h>
3161 struct stat;
3162 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3163 struct buf { int x; };
3164 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3165 static char *e (p, i)
3166 char **p;
3167 int i;
3168 {
3169 return p[i];
3170 }
3171 static char *f (char * (*g) (char **, int), char **p, ...)
3172 {
3173 char *s;
3174 va_list v;
3175 va_start (v,p);
3176 s = g (p, va_arg (v,int));
3177 va_end (v);
3178 return s;
3179 }
3180
3181 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3182 function prototypes and stuff, but not '\xHH' hex character constants.
3183 These don't provoke an error unfortunately, instead are silently treated
3184 as 'x'. The following induces an error, until -std is added to get
3185 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3186 array size at least. It's necessary to write '\x00'==0 to get something
3187 that's true only with -std. */
3188 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3189
3190 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3191 inside strings and character constants. */
3192 #define FOO(x) 'x'
3193 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3194
3195 int test (int i, double x);
3196 struct s1 {int (*f) (int a);};
3197 struct s2 {int (*f) (double a);};
3198 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3199 int argc;
3200 char **argv;
3201 int
3202 main ()
3203 {
3204 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3205 ;
3206 return 0;
3207 }
3208 _ACEOF
3209 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3210 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3211 do
3212 CC="$ac_save_CC $ac_arg"
3213 if ac_fn_c_try_compile "$LINENO"; then :
3214 ac_cv_prog_cc_c89=$ac_arg
3215 fi
3216 rm -f core conftest.err conftest.$ac_objext
3217 test "x$ac_cv_prog_cc_c89" != "xno" && break
3218 done
3219 rm -f conftest.$ac_ext
3220 CC=$ac_save_CC
3221
3222 fi
3223 # AC_CACHE_VAL
3224 case "x$ac_cv_prog_cc_c89" in
3225 x)
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3227 $as_echo "none needed" >&6; } ;;
3228 xno)
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3230 $as_echo "unsupported" >&6; } ;;
3231 *)
3232 CC="$CC $ac_cv_prog_cc_c89"
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3234 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3235 esac
3236 if test "x$ac_cv_prog_cc_c89" != xno; then :
3237
3238 fi
3239
3240 ac_ext=c
3241 ac_cpp='$CPP $CPPFLAGS'
3242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3245
3246 ac_ext=c
3247 ac_cpp='$CPP $CPPFLAGS'
3248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3252 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3253 if ${am_cv_prog_cc_c_o+:} false; then :
3254 $as_echo_n "(cached) " >&6
3255 else
3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257 /* end confdefs.h. */
3258
3259 int
3260 main ()
3261 {
3262
3263 ;
3264 return 0;
3265 }
3266 _ACEOF
3267 # Make sure it works both with $CC and with simple cc.
3268 # Following AC_PROG_CC_C_O, we do the test twice because some
3269 # compilers refuse to overwrite an existing .o file with -o,
3270 # though they will create one.
3271 am_cv_prog_cc_c_o=yes
3272 for am_i in 1 2; do
3273 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3274 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3275 ac_status=$?
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); } \
3278 && test -f conftest2.$ac_objext; then
3279 : OK
3280 else
3281 am_cv_prog_cc_c_o=no
3282 break
3283 fi
3284 done
3285 rm -f core conftest*
3286 unset am_i
3287 fi
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3289 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3290 if test "$am_cv_prog_cc_c_o" != yes; then
3291 # Losing compiler, so override with the script.
3292 # FIXME: It is wrong to rewrite CC.
3293 # But if we don't then we get into trouble of one sort or another.
3294 # A longer-term fix would be to have automake use am__CC in this case,
3295 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3296 CC="$am_aux_dir/compile $CC"
3297 fi
3298 ac_ext=c
3299 ac_cpp='$CPP $CPPFLAGS'
3300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3303
3304
3305
3306 if test -n "$ac_tool_prefix"; then
3307 for ac_prog in ar lib "link -lib"
3308 do
3309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if ${ac_cv_prog_AR+:} false; then :
3314 $as_echo_n "(cached) " >&6
3315 else
3316 if test -n "$AR"; then
3317 ac_cv_prog_AR="$AR" # Let the user override the test.
3318 else
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3321 do
3322 IFS=$as_save_IFS
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3326 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 break 2
3329 fi
3330 done
3331 done
3332 IFS=$as_save_IFS
3333
3334 fi
3335 fi
3336 AR=$ac_cv_prog_AR
3337 if test -n "$AR"; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3339 $as_echo "$AR" >&6; }
3340 else
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 fi
3344
3345
3346 test -n "$AR" && break
3347 done
3348 fi
3349 if test -z "$AR"; then
3350 ac_ct_AR=$AR
3351 for ac_prog in ar lib "link -lib"
3352 do
3353 # Extract the first word of "$ac_prog", so it can be a program name with args.
3354 set dummy $ac_prog; ac_word=$2
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3356 $as_echo_n "checking for $ac_word... " >&6; }
3357 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3358 $as_echo_n "(cached) " >&6
3359 else
3360 if test -n "$ac_ct_AR"; then
3361 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3362 else
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370 ac_cv_prog_ac_ct_AR="$ac_prog"
3371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 break 2
3373 fi
3374 done
3375 done
3376 IFS=$as_save_IFS
3377
3378 fi
3379 fi
3380 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3381 if test -n "$ac_ct_AR"; then
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3383 $as_echo "$ac_ct_AR" >&6; }
3384 else
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386 $as_echo "no" >&6; }
3387 fi
3388
3389
3390 test -n "$ac_ct_AR" && break
3391 done
3392
3393 if test "x$ac_ct_AR" = x; then
3394 AR="false"
3395 else
3396 case $cross_compiling:$ac_tool_warned in
3397 yes:)
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3400 ac_tool_warned=yes ;;
3401 esac
3402 AR=$ac_ct_AR
3403 fi
3404 fi
3405
3406 : ${AR=ar}
3407
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3409 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
3410 if ${am_cv_ar_interface+:} false; then :
3411 $as_echo_n "(cached) " >&6
3412 else
3413 ac_ext=c
3414 ac_cpp='$CPP $CPPFLAGS'
3415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3418
3419 am_cv_ar_interface=ar
3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h. */
3422 int some_variable = 0;
3423 _ACEOF
3424 if ac_fn_c_try_compile "$LINENO"; then :
3425 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3427 (eval $am_ar_try) 2>&5
3428 ac_status=$?
3429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430 test $ac_status = 0; }
3431 if test "$ac_status" -eq 0; then
3432 am_cv_ar_interface=ar
3433 else
3434 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3436 (eval $am_ar_try) 2>&5
3437 ac_status=$?
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }
3440 if test "$ac_status" -eq 0; then
3441 am_cv_ar_interface=lib
3442 else
3443 am_cv_ar_interface=unknown
3444 fi
3445 fi
3446 rm -f conftest.lib libconftest.a
3447
3448 fi
3449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450 ac_ext=c
3451 ac_cpp='$CPP $CPPFLAGS'
3452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455
3456 fi
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3458 $as_echo "$am_cv_ar_interface" >&6; }
3459
3460 case $am_cv_ar_interface in
3461 ar)
3462 ;;
3463 lib)
3464 # Microsoft lib, so override with the ar-lib wrapper script.
3465 # FIXME: It is wrong to rewrite AR.
3466 # But if we don't then we get into trouble of one sort or another.
3467 # A longer-term fix would be to have automake use am__AR in this case,
3468 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3469 # similar.
3470 AR="$am_aux_dir/ar-lib $AR"
3471 ;;
3472 unknown)
3473 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
3474 ;;
3475 esac
3476
3477 case `pwd` in
3478 *\ * | *\ *)
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3480 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3481 esac
3482
3483
3484
3485 macro_version='2.4.2'
3486 macro_revision='1.3337'
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500 ltmain="$ac_aux_dir/ltmain.sh"
3501
3502 # Backslashify metacharacters that are still active within
3503 # double-quoted strings.
3504 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3505
3506 # Same as above, but do not quote variable references.
3507 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3508
3509 # Sed substitution to delay expansion of an escaped shell variable in a
3510 # double_quote_subst'ed string.
3511 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3512
3513 # Sed substitution to delay expansion of an escaped single quote.
3514 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3515
3516 # Sed substitution to avoid accidental globbing in evaled expressions
3517 no_glob_subst='s/\*/\\\*/g'
3518
3519 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3520 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3521 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3522
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3524 $as_echo_n "checking how to print strings... " >&6; }
3525 # Test print first, because it will be a builtin if present.
3526 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3527 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3528 ECHO='print -r --'
3529 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3530 ECHO='printf %s\n'
3531 else
3532 # Use this function as a fallback that always works.
3533 func_fallback_echo ()
3534 {
3535 eval 'cat <<_LTECHO_EOF
3536 $1
3537 _LTECHO_EOF'
3538 }
3539 ECHO='func_fallback_echo'
3540 fi
3541
3542 # func_echo_all arg...
3543 # Invoke $ECHO with all args, space-separated.
3544 func_echo_all ()
3545 {
3546 $ECHO ""
3547 }
3548
3549 case "$ECHO" in
3550 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3551 $as_echo "printf" >&6; } ;;
3552 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3553 $as_echo "print -r" >&6; } ;;
3554 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3555 $as_echo "cat" >&6; } ;;
3556 esac
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3572 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3573 if ${ac_cv_path_SED+:} false; then :
3574 $as_echo_n "(cached) " >&6
3575 else
3576 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3577 for ac_i in 1 2 3 4 5 6 7; do
3578 ac_script="$ac_script$as_nl$ac_script"
3579 done
3580 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3581 { ac_script=; unset ac_script;}
3582 if test -z "$SED"; then
3583 ac_path_SED_found=false
3584 # Loop through the user's path and test for each of PROGNAME-LIST
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3587 do
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_prog in sed gsed; do
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3593 as_fn_executable_p "$ac_path_SED" || continue
3594 # Check for GNU ac_path_SED and select it if it is found.
3595 # Check for GNU $ac_path_SED
3596 case `"$ac_path_SED" --version 2>&1` in
3597 *GNU*)
3598 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3599 *)
3600 ac_count=0
3601 $as_echo_n 0123456789 >"conftest.in"
3602 while :
3603 do
3604 cat "conftest.in" "conftest.in" >"conftest.tmp"
3605 mv "conftest.tmp" "conftest.in"
3606 cp "conftest.in" "conftest.nl"
3607 $as_echo '' >> "conftest.nl"
3608 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3609 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3610 as_fn_arith $ac_count + 1 && ac_count=$as_val
3611 if test $ac_count -gt ${ac_path_SED_max-0}; then
3612 # Best one so far, save it but keep looking for a better one
3613 ac_cv_path_SED="$ac_path_SED"
3614 ac_path_SED_max=$ac_count
3615 fi
3616 # 10*(2^10) chars as input seems more than enough
3617 test $ac_count -gt 10 && break
3618 done
3619 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3620 esac
3621
3622 $ac_path_SED_found && break 3
3623 done
3624 done
3625 done
3626 IFS=$as_save_IFS
3627 if test -z "$ac_cv_path_SED"; then
3628 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3629 fi
3630 else
3631 ac_cv_path_SED=$SED
3632 fi
3633
3634 fi
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3636 $as_echo "$ac_cv_path_SED" >&6; }
3637 SED="$ac_cv_path_SED"
3638 rm -f conftest.sed
3639
3640 test -z "$SED" && SED=sed
3641 Xsed="$SED -e 1s/^X//"
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3654 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3655 if ${ac_cv_path_GREP+:} false; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 if test -z "$GREP"; then
3659 ac_path_GREP_found=false
3660 # Loop through the user's path and test for each of PROGNAME-LIST
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3663 do
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_prog in grep ggrep; do
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3669 as_fn_executable_p "$ac_path_GREP" || continue
3670 # Check for GNU ac_path_GREP and select it if it is found.
3671 # Check for GNU $ac_path_GREP
3672 case `"$ac_path_GREP" --version 2>&1` in
3673 *GNU*)
3674 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3675 *)
3676 ac_count=0
3677 $as_echo_n 0123456789 >"conftest.in"
3678 while :
3679 do
3680 cat "conftest.in" "conftest.in" >"conftest.tmp"
3681 mv "conftest.tmp" "conftest.in"
3682 cp "conftest.in" "conftest.nl"
3683 $as_echo 'GREP' >> "conftest.nl"
3684 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3686 as_fn_arith $ac_count + 1 && ac_count=$as_val
3687 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3688 # Best one so far, save it but keep looking for a better one
3689 ac_cv_path_GREP="$ac_path_GREP"
3690 ac_path_GREP_max=$ac_count
3691 fi
3692 # 10*(2^10) chars as input seems more than enough
3693 test $ac_count -gt 10 && break
3694 done
3695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3696 esac
3697
3698 $ac_path_GREP_found && break 3
3699 done
3700 done
3701 done
3702 IFS=$as_save_IFS
3703 if test -z "$ac_cv_path_GREP"; then
3704 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3705 fi
3706 else
3707 ac_cv_path_GREP=$GREP
3708 fi
3709
3710 fi
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3712 $as_echo "$ac_cv_path_GREP" >&6; }
3713 GREP="$ac_cv_path_GREP"
3714
3715
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3717 $as_echo_n "checking for egrep... " >&6; }
3718 if ${ac_cv_path_EGREP+:} false; then :
3719 $as_echo_n "(cached) " >&6
3720 else
3721 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3722 then ac_cv_path_EGREP="$GREP -E"
3723 else
3724 if test -z "$EGREP"; then
3725 ac_path_EGREP_found=false
3726 # Loop through the user's path and test for each of PROGNAME-LIST
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3729 do
3730 IFS=$as_save_IFS
3731 test -z "$as_dir" && as_dir=.
3732 for ac_prog in egrep; do
3733 for ac_exec_ext in '' $ac_executable_extensions; do
3734 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3735 as_fn_executable_p "$ac_path_EGREP" || continue
3736 # Check for GNU ac_path_EGREP and select it if it is found.
3737 # Check for GNU $ac_path_EGREP
3738 case `"$ac_path_EGREP" --version 2>&1` in
3739 *GNU*)
3740 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3741 *)
3742 ac_count=0
3743 $as_echo_n 0123456789 >"conftest.in"
3744 while :
3745 do
3746 cat "conftest.in" "conftest.in" >"conftest.tmp"
3747 mv "conftest.tmp" "conftest.in"
3748 cp "conftest.in" "conftest.nl"
3749 $as_echo 'EGREP' >> "conftest.nl"
3750 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3751 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3752 as_fn_arith $ac_count + 1 && ac_count=$as_val
3753 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3754 # Best one so far, save it but keep looking for a better one
3755 ac_cv_path_EGREP="$ac_path_EGREP"
3756 ac_path_EGREP_max=$ac_count
3757 fi
3758 # 10*(2^10) chars as input seems more than enough
3759 test $ac_count -gt 10 && break
3760 done
3761 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3762 esac
3763
3764 $ac_path_EGREP_found && break 3
3765 done
3766 done
3767 done
3768 IFS=$as_save_IFS
3769 if test -z "$ac_cv_path_EGREP"; then
3770 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3771 fi
3772 else
3773 ac_cv_path_EGREP=$EGREP
3774 fi
3775
3776 fi
3777 fi
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3779 $as_echo "$ac_cv_path_EGREP" >&6; }
3780 EGREP="$ac_cv_path_EGREP"
3781
3782
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3784 $as_echo_n "checking for fgrep... " >&6; }
3785 if ${ac_cv_path_FGREP+:} false; then :
3786 $as_echo_n "(cached) " >&6
3787 else
3788 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3789 then ac_cv_path_FGREP="$GREP -F"
3790 else
3791 if test -z "$FGREP"; then
3792 ac_path_FGREP_found=false
3793 # Loop through the user's path and test for each of PROGNAME-LIST
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3796 do
3797 IFS=$as_save_IFS
3798 test -z "$as_dir" && as_dir=.
3799 for ac_prog in fgrep; do
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3802 as_fn_executable_p "$ac_path_FGREP" || continue
3803 # Check for GNU ac_path_FGREP and select it if it is found.
3804 # Check for GNU $ac_path_FGREP
3805 case `"$ac_path_FGREP" --version 2>&1` in
3806 *GNU*)
3807 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3808 *)
3809 ac_count=0
3810 $as_echo_n 0123456789 >"conftest.in"
3811 while :
3812 do
3813 cat "conftest.in" "conftest.in" >"conftest.tmp"
3814 mv "conftest.tmp" "conftest.in"
3815 cp "conftest.in" "conftest.nl"
3816 $as_echo 'FGREP' >> "conftest.nl"
3817 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3819 as_fn_arith $ac_count + 1 && ac_count=$as_val
3820 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3821 # Best one so far, save it but keep looking for a better one
3822 ac_cv_path_FGREP="$ac_path_FGREP"
3823 ac_path_FGREP_max=$ac_count
3824 fi
3825 # 10*(2^10) chars as input seems more than enough
3826 test $ac_count -gt 10 && break
3827 done
3828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3829 esac
3830
3831 $ac_path_FGREP_found && break 3
3832 done
3833 done
3834 done
3835 IFS=$as_save_IFS
3836 if test -z "$ac_cv_path_FGREP"; then
3837 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3838 fi
3839 else
3840 ac_cv_path_FGREP=$FGREP
3841 fi
3842
3843 fi
3844 fi
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3846 $as_echo "$ac_cv_path_FGREP" >&6; }
3847 FGREP="$ac_cv_path_FGREP"
3848
3849
3850 test -z "$GREP" && GREP=grep
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870 # Check whether --with-gnu-ld was given.
3871 if test "${with_gnu_ld+set}" = set; then :
3872 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3873 else
3874 with_gnu_ld=no
3875 fi
3876
3877 ac_prog=ld
3878 if test "$GCC" = yes; then
3879 # Check if gcc -print-prog-name=ld gives a path.
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3881 $as_echo_n "checking for ld used by $CC... " >&6; }
3882 case $host in
3883 *-*-mingw*)
3884 # gcc leaves a trailing carriage return which upsets mingw
3885 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3886 *)
3887 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3888 esac
3889 case $ac_prog in
3890 # Accept absolute paths.
3891 [\\/]* | ?:[\\/]*)
3892 re_direlt='/[^/][^/]*/\.\./'
3893 # Canonicalize the pathname of ld
3894 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3895 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3896 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3897 done
3898 test -z "$LD" && LD="$ac_prog"
3899 ;;
3900 "")
3901 # If it fails, then pretend we aren't using GCC.
3902 ac_prog=ld
3903 ;;
3904 *)
3905 # If it is relative, then search for the first ld in PATH.
3906 with_gnu_ld=unknown
3907 ;;
3908 esac
3909 elif test "$with_gnu_ld" = yes; then
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3911 $as_echo_n "checking for GNU ld... " >&6; }
3912 else
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3914 $as_echo_n "checking for non-GNU ld... " >&6; }
3915 fi
3916 if ${lt_cv_path_LD+:} false; then :
3917 $as_echo_n "(cached) " >&6
3918 else
3919 if test -z "$LD"; then
3920 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3921 for ac_dir in $PATH; do
3922 IFS="$lt_save_ifs"
3923 test -z "$ac_dir" && ac_dir=.
3924 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3925 lt_cv_path_LD="$ac_dir/$ac_prog"
3926 # Check to see if the program is GNU ld. I'd rather use --version,
3927 # but apparently some variants of GNU ld only accept -v.
3928 # Break only if it was the GNU/non-GNU ld that we prefer.
3929 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3930 *GNU* | *'with BFD'*)
3931 test "$with_gnu_ld" != no && break
3932 ;;
3933 *)
3934 test "$with_gnu_ld" != yes && break
3935 ;;
3936 esac
3937 fi
3938 done
3939 IFS="$lt_save_ifs"
3940 else
3941 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3942 fi
3943 fi
3944
3945 LD="$lt_cv_path_LD"
3946 if test -n "$LD"; then
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3948 $as_echo "$LD" >&6; }
3949 else
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 $as_echo "no" >&6; }
3952 fi
3953 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3955 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3956 if ${lt_cv_prog_gnu_ld+:} false; then :
3957 $as_echo_n "(cached) " >&6
3958 else
3959 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3960 case `$LD -v 2>&1 </dev/null` in
3961 *GNU* | *'with BFD'*)
3962 lt_cv_prog_gnu_ld=yes
3963 ;;
3964 *)
3965 lt_cv_prog_gnu_ld=no
3966 ;;
3967 esac
3968 fi
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3970 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3971 with_gnu_ld=$lt_cv_prog_gnu_ld
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3982 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3983 if ${lt_cv_path_NM+:} false; then :
3984 $as_echo_n "(cached) " >&6
3985 else
3986 if test -n "$NM"; then
3987 # Let the user override the test.
3988 lt_cv_path_NM="$NM"
3989 else
3990 lt_nm_to_check="${ac_tool_prefix}nm"
3991 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3992 lt_nm_to_check="$lt_nm_to_check nm"
3993 fi
3994 for lt_tmp_nm in $lt_nm_to_check; do
3995 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3996 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3997 IFS="$lt_save_ifs"
3998 test -z "$ac_dir" && ac_dir=.
3999 tmp_nm="$ac_dir/$lt_tmp_nm"
4000 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4001 # Check to see if the nm accepts a BSD-compat flag.
4002 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4003 # nm: unknown option "B" ignored
4004 # Tru64's nm complains that /dev/null is an invalid object file
4005 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4006 */dev/null* | *'Invalid file or object type'*)
4007 lt_cv_path_NM="$tmp_nm -B"
4008 break
4009 ;;
4010 *)
4011 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4012 */dev/null*)
4013 lt_cv_path_NM="$tmp_nm -p"
4014 break
4015 ;;
4016 *)
4017 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4018 continue # so that we can try to find one that supports BSD flags
4019 ;;
4020 esac
4021 ;;
4022 esac
4023 fi
4024 done
4025 IFS="$lt_save_ifs"
4026 done
4027 : ${lt_cv_path_NM=no}
4028 fi
4029 fi
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4031 $as_echo "$lt_cv_path_NM" >&6; }
4032 if test "$lt_cv_path_NM" != "no"; then
4033 NM="$lt_cv_path_NM"
4034 else
4035 # Didn't find any BSD compatible name lister, look for dumpbin.
4036 if test -n "$DUMPBIN"; then :
4037 # Let the user override the test.
4038 else
4039 if test -n "$ac_tool_prefix"; then
4040 for ac_prog in dumpbin "link -dump"
4041 do
4042 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4043 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4045 $as_echo_n "checking for $ac_word... " >&6; }
4046 if ${ac_cv_prog_DUMPBIN+:} false; then :
4047 $as_echo_n "(cached) " >&6
4048 else
4049 if test -n "$DUMPBIN"; then
4050 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4051 else
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH
4054 do
4055 IFS=$as_save_IFS
4056 test -z "$as_dir" && as_dir=.
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4061 break 2
4062 fi
4063 done
4064 done
4065 IFS=$as_save_IFS
4066
4067 fi
4068 fi
4069 DUMPBIN=$ac_cv_prog_DUMPBIN
4070 if test -n "$DUMPBIN"; then
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4072 $as_echo "$DUMPBIN" >&6; }
4073 else
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075 $as_echo "no" >&6; }
4076 fi
4077
4078
4079 test -n "$DUMPBIN" && break
4080 done
4081 fi
4082 if test -z "$DUMPBIN"; then
4083 ac_ct_DUMPBIN=$DUMPBIN
4084 for ac_prog in dumpbin "link -dump"
4085 do
4086 # Extract the first word of "$ac_prog", so it can be a program name with args.
4087 set dummy $ac_prog; ac_word=$2
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4089 $as_echo_n "checking for $ac_word... " >&6; }
4090 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4091 $as_echo_n "(cached) " >&6
4092 else
4093 if test -n "$ac_ct_DUMPBIN"; then
4094 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4095 else
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 for as_dir in $PATH
4098 do
4099 IFS=$as_save_IFS
4100 test -z "$as_dir" && as_dir=.
4101 for ac_exec_ext in '' $ac_executable_extensions; do
4102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4103 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4105 break 2
4106 fi
4107 done
4108 done
4109 IFS=$as_save_IFS
4110
4111 fi
4112 fi
4113 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4114 if test -n "$ac_ct_DUMPBIN"; then
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4116 $as_echo "$ac_ct_DUMPBIN" >&6; }
4117 else
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119 $as_echo "no" >&6; }
4120 fi
4121
4122
4123 test -n "$ac_ct_DUMPBIN" && break
4124 done
4125
4126 if test "x$ac_ct_DUMPBIN" = x; then
4127 DUMPBIN=":"
4128 else
4129 case $cross_compiling:$ac_tool_warned in
4130 yes:)
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4133 ac_tool_warned=yes ;;
4134 esac
4135 DUMPBIN=$ac_ct_DUMPBIN
4136 fi
4137 fi
4138
4139 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4140 *COFF*)
4141 DUMPBIN="$DUMPBIN -symbols"
4142 ;;
4143 *)
4144 DUMPBIN=:
4145 ;;
4146 esac
4147 fi
4148
4149 if test "$DUMPBIN" != ":"; then
4150 NM="$DUMPBIN"
4151 fi
4152 fi
4153 test -z "$NM" && NM=nm
4154
4155
4156
4157
4158
4159
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4161 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4162 if ${lt_cv_nm_interface+:} false; then :
4163 $as_echo_n "(cached) " >&6
4164 else
4165 lt_cv_nm_interface="BSD nm"
4166 echo "int some_variable = 0;" > conftest.$ac_ext
4167 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4168 (eval "$ac_compile" 2>conftest.err)
4169 cat conftest.err >&5
4170 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4171 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4172 cat conftest.err >&5
4173 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4174 cat conftest.out >&5
4175 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4176 lt_cv_nm_interface="MS dumpbin"
4177 fi
4178 rm -f conftest*
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4181 $as_echo "$lt_cv_nm_interface" >&6; }
4182
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4184 $as_echo_n "checking whether ln -s works... " >&6; }
4185 LN_S=$as_ln_s
4186 if test "$LN_S" = "ln -s"; then
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4188 $as_echo "yes" >&6; }
4189 else
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4191 $as_echo "no, using $LN_S" >&6; }
4192 fi
4193
4194 # find the maximum length of command line arguments
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4196 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4197 if ${lt_cv_sys_max_cmd_len+:} false; then :
4198 $as_echo_n "(cached) " >&6
4199 else
4200 i=0
4201 teststring="ABCD"
4202
4203 case $build_os in
4204 msdosdjgpp*)
4205 # On DJGPP, this test can blow up pretty badly due to problems in libc
4206 # (any single argument exceeding 2000 bytes causes a buffer overrun
4207 # during glob expansion). Even if it were fixed, the result of this
4208 # check would be larger than it should be.
4209 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4210 ;;
4211
4212 gnu*)
4213 # Under GNU Hurd, this test is not required because there is
4214 # no limit to the length of command line arguments.
4215 # Libtool will interpret -1 as no limit whatsoever
4216 lt_cv_sys_max_cmd_len=-1;
4217 ;;
4218
4219 cygwin* | mingw* | cegcc*)
4220 # On Win9x/ME, this test blows up -- it succeeds, but takes
4221 # about 5 minutes as the teststring grows exponentially.
4222 # Worse, since 9x/ME are not pre-emptively multitasking,
4223 # you end up with a "frozen" computer, even though with patience
4224 # the test eventually succeeds (with a max line length of 256k).
4225 # Instead, let's just punt: use the minimum linelength reported by
4226 # all of the supported platforms: 8192 (on NT/2K/XP).
4227 lt_cv_sys_max_cmd_len=8192;
4228 ;;
4229
4230 mint*)
4231 # On MiNT this can take a long time and run out of memory.
4232 lt_cv_sys_max_cmd_len=8192;
4233 ;;
4234
4235 amigaos*)
4236 # On AmigaOS with pdksh, this test takes hours, literally.
4237 # So we just punt and use a minimum line length of 8192.
4238 lt_cv_sys_max_cmd_len=8192;
4239 ;;
4240
4241 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4242 # This has been around since 386BSD, at least. Likely further.
4243 if test -x /sbin/sysctl; then
4244 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4245 elif test -x /usr/sbin/sysctl; then
4246 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4247 else
4248 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4249 fi
4250 # And add a safety zone
4251 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4253 ;;
4254
4255 interix*)
4256 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4257 lt_cv_sys_max_cmd_len=196608
4258 ;;
4259
4260 os2*)
4261 # The test takes a long time on OS/2.
4262 lt_cv_sys_max_cmd_len=8192
4263 ;;
4264
4265 osf*)
4266 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4267 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4268 # nice to cause kernel panics so lets avoid the loop below.
4269 # First set a reasonable default.
4270 lt_cv_sys_max_cmd_len=16384
4271 #
4272 if test -x /sbin/sysconfig; then
4273 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4274 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4275 esac
4276 fi
4277 ;;
4278 sco3.2v5*)
4279 lt_cv_sys_max_cmd_len=102400
4280 ;;
4281 sysv5* | sco5v6* | sysv4.2uw2*)
4282 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4283 if test -n "$kargmax"; then
4284 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4285 else
4286 lt_cv_sys_max_cmd_len=32768
4287 fi
4288 ;;
4289 *)
4290 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4291 if test -n "$lt_cv_sys_max_cmd_len" && \
4292 test undefined != "$lt_cv_sys_max_cmd_len"; then
4293 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4294 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4295 else
4296 # Make teststring a little bigger before we do anything with it.
4297 # a 1K string should be a reasonable start.
4298 for i in 1 2 3 4 5 6 7 8 ; do
4299 teststring=$teststring$teststring
4300 done
4301 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4302 # If test is not a shell built-in, we'll probably end up computing a
4303 # maximum length that is only half of the actual maximum length, but
4304 # we can't tell.
4305 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4306 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4307 test $i != 17 # 1/2 MB should be enough
4308 do
4309 i=`expr $i + 1`
4310 teststring=$teststring$teststring
4311 done
4312 # Only check the string length outside the loop.
4313 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4314 teststring=
4315 # Add a significant safety factor because C++ compilers can tack on
4316 # massive amounts of additional arguments before passing them to the
4317 # linker. It appears as though 1/2 is a usable value.
4318 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4319 fi
4320 ;;
4321 esac
4322
4323 fi
4324
4325 if test -n $lt_cv_sys_max_cmd_len ; then
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4327 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4328 else
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4330 $as_echo "none" >&6; }
4331 fi
4332 max_cmd_len=$lt_cv_sys_max_cmd_len
4333
4334
4335
4336
4337
4338
4339 : ${CP="cp -f"}
4340 : ${MV="mv -f"}
4341 : ${RM="rm -f"}
4342
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4344 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4345 # Try some XSI features
4346 xsi_shell=no
4347 ( _lt_dummy="a/b/c"
4348 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4349 = c,a/b,b/c, \
4350 && eval 'test $(( 1 + 1 )) -eq 2 \
4351 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4352 && xsi_shell=yes
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4354 $as_echo "$xsi_shell" >&6; }
4355
4356
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4358 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4359 lt_shell_append=no
4360 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4361 >/dev/null 2>&1 \
4362 && lt_shell_append=yes
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4364 $as_echo "$lt_shell_append" >&6; }
4365
4366
4367 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4368 lt_unset=unset
4369 else
4370 lt_unset=false
4371 fi
4372
4373
4374
4375
4376
4377 # test EBCDIC or ASCII
4378 case `echo X|tr X '\101'` in
4379 A) # ASCII based system
4380 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4381 lt_SP2NL='tr \040 \012'
4382 lt_NL2SP='tr \015\012 \040\040'
4383 ;;
4384 *) # EBCDIC based system
4385 lt_SP2NL='tr \100 \n'
4386 lt_NL2SP='tr \r\n \100\100'
4387 ;;
4388 esac
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4399 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4400 if ${lt_cv_to_host_file_cmd+:} false; then :
4401 $as_echo_n "(cached) " >&6
4402 else
4403 case $host in
4404 *-*-mingw* )
4405 case $build in
4406 *-*-mingw* ) # actually msys
4407 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4408 ;;
4409 *-*-cygwin* )
4410 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4411 ;;
4412 * ) # otherwise, assume *nix
4413 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4414 ;;
4415 esac
4416 ;;
4417 *-*-cygwin* )
4418 case $build in
4419 *-*-mingw* ) # actually msys
4420 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4421 ;;
4422 *-*-cygwin* )
4423 lt_cv_to_host_file_cmd=func_convert_file_noop
4424 ;;
4425 * ) # otherwise, assume *nix
4426 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4427 ;;
4428 esac
4429 ;;
4430 * ) # unhandled hosts (and "normal" native builds)
4431 lt_cv_to_host_file_cmd=func_convert_file_noop
4432 ;;
4433 esac
4434
4435 fi
4436
4437 to_host_file_cmd=$lt_cv_to_host_file_cmd
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4439 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4440
4441
4442
4443
4444
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4446 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4447 if ${lt_cv_to_tool_file_cmd+:} false; then :
4448 $as_echo_n "(cached) " >&6
4449 else
4450 #assume ordinary cross tools, or native build.
4451 lt_cv_to_tool_file_cmd=func_convert_file_noop
4452 case $host in
4453 *-*-mingw* )
4454 case $build in
4455 *-*-mingw* ) # actually msys
4456 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4457 ;;
4458 esac
4459 ;;
4460 esac
4461
4462 fi
4463
4464 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4466 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4467
4468
4469
4470
4471
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4473 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4474 if ${lt_cv_ld_reload_flag+:} false; then :
4475 $as_echo_n "(cached) " >&6
4476 else
4477 lt_cv_ld_reload_flag='-r'
4478 fi
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4480 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4481 reload_flag=$lt_cv_ld_reload_flag
4482 case $reload_flag in
4483 "" | " "*) ;;
4484 *) reload_flag=" $reload_flag" ;;
4485 esac
4486 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4487 case $host_os in
4488 cygwin* | mingw* | pw32* | cegcc*)
4489 if test "$GCC" != yes; then
4490 reload_cmds=false
4491 fi
4492 ;;
4493 darwin*)
4494 if test "$GCC" = yes; then
4495 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4496 else
4497 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4498 fi
4499 ;;
4500 esac
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510 if test -n "$ac_tool_prefix"; then
4511 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4512 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514 $as_echo_n "checking for $ac_word... " >&6; }
4515 if ${ac_cv_prog_OBJDUMP+:} false; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 if test -n "$OBJDUMP"; then
4519 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4520 else
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
4531 fi
4532 done
4533 done
4534 IFS=$as_save_IFS
4535
4536 fi
4537 fi
4538 OBJDUMP=$ac_cv_prog_OBJDUMP
4539 if test -n "$OBJDUMP"; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4541 $as_echo "$OBJDUMP" >&6; }
4542 else
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4545 fi
4546
4547
4548 fi
4549 if test -z "$ac_cv_prog_OBJDUMP"; then
4550 ac_ct_OBJDUMP=$OBJDUMP
4551 # Extract the first word of "objdump", so it can be a program name with args.
4552 set dummy objdump; ac_word=$2
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 if test -n "$ac_ct_OBJDUMP"; then
4559 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4571 fi
4572 done
4573 done
4574 IFS=$as_save_IFS
4575
4576 fi
4577 fi
4578 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4579 if test -n "$ac_ct_OBJDUMP"; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4581 $as_echo "$ac_ct_OBJDUMP" >&6; }
4582 else
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 $as_echo "no" >&6; }
4585 fi
4586
4587 if test "x$ac_ct_OBJDUMP" = x; then
4588 OBJDUMP="false"
4589 else
4590 case $cross_compiling:$ac_tool_warned in
4591 yes:)
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4594 ac_tool_warned=yes ;;
4595 esac
4596 OBJDUMP=$ac_ct_OBJDUMP
4597 fi
4598 else
4599 OBJDUMP="$ac_cv_prog_OBJDUMP"
4600 fi
4601
4602 test -z "$OBJDUMP" && OBJDUMP=objdump
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4613 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4614 if ${lt_cv_deplibs_check_method+:} false; then :
4615 $as_echo_n "(cached) " >&6
4616 else
4617 lt_cv_file_magic_cmd='$MAGIC_CMD'
4618 lt_cv_file_magic_test_file=
4619 lt_cv_deplibs_check_method='unknown'
4620 # Need to set the preceding variable on all platforms that support
4621 # interlibrary dependencies.
4622 # 'none' -- dependencies not supported.
4623 # `unknown' -- same as none, but documents that we really don't know.
4624 # 'pass_all' -- all dependencies passed with no checks.
4625 # 'test_compile' -- check by making test program.
4626 # 'file_magic [[regex]]' -- check by looking for files in library path
4627 # which responds to the $file_magic_cmd with a given extended regex.
4628 # If you have `file' or equivalent on your system and you're not sure
4629 # whether `pass_all' will *always* work, you probably want this one.
4630
4631 case $host_os in
4632 aix[4-9]*)
4633 lt_cv_deplibs_check_method=pass_all
4634 ;;
4635
4636 beos*)
4637 lt_cv_deplibs_check_method=pass_all
4638 ;;
4639
4640 bsdi[45]*)
4641 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4642 lt_cv_file_magic_cmd='/usr/bin/file -L'
4643 lt_cv_file_magic_test_file=/shlib/libc.so
4644 ;;
4645
4646 cygwin*)
4647 # func_win32_libid is a shell function defined in ltmain.sh
4648 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4649 lt_cv_file_magic_cmd='func_win32_libid'
4650 ;;
4651
4652 mingw* | pw32*)
4653 # Base MSYS/MinGW do not provide the 'file' command needed by
4654 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4655 # unless we find 'file', for example because we are cross-compiling.
4656 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4657 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4658 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4659 lt_cv_file_magic_cmd='func_win32_libid'
4660 else
4661 # Keep this pattern in sync with the one in func_win32_libid.
4662 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4663 lt_cv_file_magic_cmd='$OBJDUMP -f'
4664 fi
4665 ;;
4666
4667 cegcc*)
4668 # use the weaker test based on 'objdump'. See mingw*.
4669 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4670 lt_cv_file_magic_cmd='$OBJDUMP -f'
4671 ;;
4672
4673 darwin* | rhapsody*)
4674 lt_cv_deplibs_check_method=pass_all
4675 ;;
4676
4677 freebsd* | dragonfly*)
4678 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4679 case $host_cpu in
4680 i*86 )
4681 # Not sure whether the presence of OpenBSD here was a mistake.
4682 # Let's accept both of them until this is cleared up.
4683 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4684 lt_cv_file_magic_cmd=/usr/bin/file
4685 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4686 ;;
4687 esac
4688 else
4689 lt_cv_deplibs_check_method=pass_all
4690 fi
4691 ;;
4692
4693 haiku*)
4694 lt_cv_deplibs_check_method=pass_all
4695 ;;
4696
4697 hpux10.20* | hpux11*)
4698 lt_cv_file_magic_cmd=/usr/bin/file
4699 case $host_cpu in
4700 ia64*)
4701 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4702 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4703 ;;
4704 hppa*64*)
4705 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]'
4706 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4707 ;;
4708 *)
4709 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4710 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4711 ;;
4712 esac
4713 ;;
4714
4715 interix[3-9]*)
4716 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4717 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4718 ;;
4719
4720 irix5* | irix6* | nonstopux*)
4721 case $LD in
4722 *-32|*"-32 ") libmagic=32-bit;;
4723 *-n32|*"-n32 ") libmagic=N32;;
4724 *-64|*"-64 ") libmagic=64-bit;;
4725 *) libmagic=never-match;;
4726 esac
4727 lt_cv_deplibs_check_method=pass_all
4728 ;;
4729
4730 # This must be glibc/ELF.
4731 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4732 lt_cv_deplibs_check_method=pass_all
4733 ;;
4734
4735 netbsd* | netbsdelf*-gnu)
4736 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4737 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4738 else
4739 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4740 fi
4741 ;;
4742
4743 newos6*)
4744 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4745 lt_cv_file_magic_cmd=/usr/bin/file
4746 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4747 ;;
4748
4749 *nto* | *qnx*)
4750 lt_cv_deplibs_check_method=pass_all
4751 ;;
4752
4753 openbsd*)
4754 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4755 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4756 else
4757 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4758 fi
4759 ;;
4760
4761 osf3* | osf4* | osf5*)
4762 lt_cv_deplibs_check_method=pass_all
4763 ;;
4764
4765 rdos*)
4766 lt_cv_deplibs_check_method=pass_all
4767 ;;
4768
4769 solaris*)
4770 lt_cv_deplibs_check_method=pass_all
4771 ;;
4772
4773 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4774 lt_cv_deplibs_check_method=pass_all
4775 ;;
4776
4777 sysv4 | sysv4.3*)
4778 case $host_vendor in
4779 motorola)
4780 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]'
4781 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4782 ;;
4783 ncr)
4784 lt_cv_deplibs_check_method=pass_all
4785 ;;
4786 sequent)
4787 lt_cv_file_magic_cmd='/bin/file'
4788 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4789 ;;
4790 sni)
4791 lt_cv_file_magic_cmd='/bin/file'
4792 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4793 lt_cv_file_magic_test_file=/lib/libc.so
4794 ;;
4795 siemens)
4796 lt_cv_deplibs_check_method=pass_all
4797 ;;
4798 pc)
4799 lt_cv_deplibs_check_method=pass_all
4800 ;;
4801 esac
4802 ;;
4803
4804 tpf*)
4805 lt_cv_deplibs_check_method=pass_all
4806 ;;
4807 esac
4808
4809 fi
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4811 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4812
4813 file_magic_glob=
4814 want_nocaseglob=no
4815 if test "$build" = "$host"; then
4816 case $host_os in
4817 mingw* | pw32*)
4818 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4819 want_nocaseglob=yes
4820 else
4821 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4822 fi
4823 ;;
4824 esac
4825 fi
4826
4827 file_magic_cmd=$lt_cv_file_magic_cmd
4828 deplibs_check_method=$lt_cv_deplibs_check_method
4829 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852 if test -n "$ac_tool_prefix"; then
4853 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4854 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 $as_echo_n "checking for $ac_word... " >&6; }
4857 if ${ac_cv_prog_DLLTOOL+:} false; then :
4858 $as_echo_n "(cached) " >&6
4859 else
4860 if test -n "$DLLTOOL"; then
4861 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4865 do
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4870 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 break 2
4873 fi
4874 done
4875 done
4876 IFS=$as_save_IFS
4877
4878 fi
4879 fi
4880 DLLTOOL=$ac_cv_prog_DLLTOOL
4881 if test -n "$DLLTOOL"; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4883 $as_echo "$DLLTOOL" >&6; }
4884 else
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4887 fi
4888
4889
4890 fi
4891 if test -z "$ac_cv_prog_DLLTOOL"; then
4892 ac_ct_DLLTOOL=$DLLTOOL
4893 # Extract the first word of "dlltool", so it can be a program name with args.
4894 set dummy dlltool; ac_word=$2
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 if test -n "$ac_ct_DLLTOOL"; then
4901 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4902 else
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4905 do
4906 IFS=$as_save_IFS
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4910 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 break 2
4913 fi
4914 done
4915 done
4916 IFS=$as_save_IFS
4917
4918 fi
4919 fi
4920 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4921 if test -n "$ac_ct_DLLTOOL"; then
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4923 $as_echo "$ac_ct_DLLTOOL" >&6; }
4924 else
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 $as_echo "no" >&6; }
4927 fi
4928
4929 if test "x$ac_ct_DLLTOOL" = x; then
4930 DLLTOOL="false"
4931 else
4932 case $cross_compiling:$ac_tool_warned in
4933 yes:)
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4936 ac_tool_warned=yes ;;
4937 esac
4938 DLLTOOL=$ac_ct_DLLTOOL
4939 fi
4940 else
4941 DLLTOOL="$ac_cv_prog_DLLTOOL"
4942 fi
4943
4944 test -z "$DLLTOOL" && DLLTOOL=dlltool
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4956 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4957 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4958 $as_echo_n "(cached) " >&6
4959 else
4960 lt_cv_sharedlib_from_linklib_cmd='unknown'
4961
4962 case $host_os in
4963 cygwin* | mingw* | pw32* | cegcc*)
4964 # two different shell functions defined in ltmain.sh
4965 # decide which to use based on capabilities of $DLLTOOL
4966 case `$DLLTOOL --help 2>&1` in
4967 *--identify-strict*)
4968 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4969 ;;
4970 *)
4971 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4972 ;;
4973 esac
4974 ;;
4975 *)
4976 # fallback: assume linklib IS sharedlib
4977 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4978 ;;
4979 esac
4980
4981 fi
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4983 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4984 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4985 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4986
4987
4988
4989
4990
4991
4992
4993 if test -n "$ac_tool_prefix"; then
4994 for ac_prog in ar
4995 do
4996 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4997 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4999 $as_echo_n "checking for $ac_word... " >&6; }
5000 if ${ac_cv_prog_AR+:} false; then :
5001 $as_echo_n "(cached) " >&6
5002 else
5003 if test -n "$AR"; then
5004 ac_cv_prog_AR="$AR" # Let the user override the test.
5005 else
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5008 do
5009 IFS=$as_save_IFS
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5013 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 break 2
5016 fi
5017 done
5018 done
5019 IFS=$as_save_IFS
5020
5021 fi
5022 fi
5023 AR=$ac_cv_prog_AR
5024 if test -n "$AR"; then
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5026 $as_echo "$AR" >&6; }
5027 else
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029 $as_echo "no" >&6; }
5030 fi
5031
5032
5033 test -n "$AR" && break
5034 done
5035 fi
5036 if test -z "$AR"; then
5037 ac_ct_AR=$AR
5038 for ac_prog in ar
5039 do
5040 # Extract the first word of "$ac_prog", so it can be a program name with args.
5041 set dummy $ac_prog; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 if test -n "$ac_ct_AR"; then
5048 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5052 do
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5057 ac_cv_prog_ac_ct_AR="$ac_prog"
5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 break 2
5060 fi
5061 done
5062 done
5063 IFS=$as_save_IFS
5064
5065 fi
5066 fi
5067 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5068 if test -n "$ac_ct_AR"; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5070 $as_echo "$ac_ct_AR" >&6; }
5071 else
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5074 fi
5075
5076
5077 test -n "$ac_ct_AR" && break
5078 done
5079
5080 if test "x$ac_ct_AR" = x; then
5081 AR="false"
5082 else
5083 case $cross_compiling:$ac_tool_warned in
5084 yes:)
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5087 ac_tool_warned=yes ;;
5088 esac
5089 AR=$ac_ct_AR
5090 fi
5091 fi
5092
5093 : ${AR=ar}
5094 : ${AR_FLAGS=cru}
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5107 $as_echo_n "checking for archiver @FILE support... " >&6; }
5108 if ${lt_cv_ar_at_file+:} false; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 lt_cv_ar_at_file=no
5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5114
5115 int
5116 main ()
5117 {
5118
5119 ;
5120 return 0;
5121 }
5122 _ACEOF
5123 if ac_fn_c_try_compile "$LINENO"; then :
5124 echo conftest.$ac_objext > conftest.lst
5125 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5127 (eval $lt_ar_try) 2>&5
5128 ac_status=$?
5129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5130 test $ac_status = 0; }
5131 if test "$ac_status" -eq 0; then
5132 # Ensure the archiver fails upon bogus file names.
5133 rm -f conftest.$ac_objext libconftest.a
5134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5135 (eval $lt_ar_try) 2>&5
5136 ac_status=$?
5137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5138 test $ac_status = 0; }
5139 if test "$ac_status" -ne 0; then
5140 lt_cv_ar_at_file=@
5141 fi
5142 fi
5143 rm -f conftest.* libconftest.a
5144
5145 fi
5146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5147
5148 fi
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5150 $as_echo "$lt_cv_ar_at_file" >&6; }
5151
5152 if test "x$lt_cv_ar_at_file" = xno; then
5153 archiver_list_spec=
5154 else
5155 archiver_list_spec=$lt_cv_ar_at_file
5156 fi
5157
5158
5159
5160
5161
5162
5163
5164 if test -n "$ac_tool_prefix"; then
5165 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5166 set dummy ${ac_tool_prefix}strip; ac_word=$2
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if ${ac_cv_prog_STRIP+:} false; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 if test -n "$STRIP"; then
5173 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5177 do
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5182 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5185 fi
5186 done
5187 done
5188 IFS=$as_save_IFS
5189
5190 fi
5191 fi
5192 STRIP=$ac_cv_prog_STRIP
5193 if test -n "$STRIP"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5195 $as_echo "$STRIP" >&6; }
5196 else
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5199 fi
5200
5201
5202 fi
5203 if test -z "$ac_cv_prog_STRIP"; then
5204 ac_ct_STRIP=$STRIP
5205 # Extract the first word of "strip", so it can be a program name with args.
5206 set dummy strip; ac_word=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 if test -n "$ac_ct_STRIP"; then
5213 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5214 else
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5217 do
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222 ac_cv_prog_ac_ct_STRIP="strip"
5223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 break 2
5225 fi
5226 done
5227 done
5228 IFS=$as_save_IFS
5229
5230 fi
5231 fi
5232 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5233 if test -n "$ac_ct_STRIP"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5235 $as_echo "$ac_ct_STRIP" >&6; }
5236 else
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5239 fi
5240
5241 if test "x$ac_ct_STRIP" = x; then
5242 STRIP=":"
5243 else
5244 case $cross_compiling:$ac_tool_warned in
5245 yes:)
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5248 ac_tool_warned=yes ;;
5249 esac
5250 STRIP=$ac_ct_STRIP
5251 fi
5252 else
5253 STRIP="$ac_cv_prog_STRIP"
5254 fi
5255
5256 test -z "$STRIP" && STRIP=:
5257
5258
5259
5260
5261
5262
5263 if test -n "$ac_tool_prefix"; then
5264 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5265 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267 $as_echo_n "checking for $ac_word... " >&6; }
5268 if ${ac_cv_prog_RANLIB+:} false; then :
5269 $as_echo_n "(cached) " >&6
5270 else
5271 if test -n "$RANLIB"; then
5272 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5273 else
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH
5276 do
5277 IFS=$as_save_IFS
5278 test -z "$as_dir" && as_dir=.
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5281 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 break 2
5284 fi
5285 done
5286 done
5287 IFS=$as_save_IFS
5288
5289 fi
5290 fi
5291 RANLIB=$ac_cv_prog_RANLIB
5292 if test -n "$RANLIB"; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5294 $as_echo "$RANLIB" >&6; }
5295 else
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 $as_echo "no" >&6; }
5298 fi
5299
5300
5301 fi
5302 if test -z "$ac_cv_prog_RANLIB"; then
5303 ac_ct_RANLIB=$RANLIB
5304 # Extract the first word of "ranlib", so it can be a program name with args.
5305 set dummy ranlib; ac_word=$2
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5307 $as_echo_n "checking for $ac_word... " >&6; }
5308 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 if test -n "$ac_ct_RANLIB"; then
5312 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5313 else
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH
5316 do
5317 IFS=$as_save_IFS
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321 ac_cv_prog_ac_ct_RANLIB="ranlib"
5322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5323 break 2
5324 fi
5325 done
5326 done
5327 IFS=$as_save_IFS
5328
5329 fi
5330 fi
5331 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5332 if test -n "$ac_ct_RANLIB"; then
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5334 $as_echo "$ac_ct_RANLIB" >&6; }
5335 else
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337 $as_echo "no" >&6; }
5338 fi
5339
5340 if test "x$ac_ct_RANLIB" = x; then
5341 RANLIB=":"
5342 else
5343 case $cross_compiling:$ac_tool_warned in
5344 yes:)
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5347 ac_tool_warned=yes ;;
5348 esac
5349 RANLIB=$ac_ct_RANLIB
5350 fi
5351 else
5352 RANLIB="$ac_cv_prog_RANLIB"
5353 fi
5354
5355 test -z "$RANLIB" && RANLIB=:
5356
5357
5358
5359
5360
5361
5362 # Determine commands to create old-style static archives.
5363 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5364 old_postinstall_cmds='chmod 644 $oldlib'
5365 old_postuninstall_cmds=
5366
5367 if test -n "$RANLIB"; then
5368 case $host_os in
5369 openbsd*)
5370 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5371 ;;
5372 *)
5373 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5374 ;;
5375 esac
5376 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5377 fi
5378
5379 case $host_os in
5380 darwin*)
5381 lock_old_archive_extraction=yes ;;
5382 *)
5383 lock_old_archive_extraction=no ;;
5384 esac
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406 for ac_prog in gawk mawk nawk awk
5407 do
5408 # Extract the first word of "$ac_prog", so it can be a program name with args.
5409 set dummy $ac_prog; ac_word=$2
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if ${ac_cv_prog_AWK+:} false; then :
5413 $as_echo_n "(cached) " >&6
5414 else
5415 if test -n "$AWK"; then
5416 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5417 else
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in $PATH
5420 do
5421 IFS=$as_save_IFS
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425 ac_cv_prog_AWK="$ac_prog"
5426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 break 2
5428 fi
5429 done
5430 done
5431 IFS=$as_save_IFS
5432
5433 fi
5434 fi
5435 AWK=$ac_cv_prog_AWK
5436 if test -n "$AWK"; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5438 $as_echo "$AWK" >&6; }
5439 else
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5442 fi
5443
5444
5445 test -n "$AWK" && break
5446 done
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466 # If no C compiler was specified, use CC.
5467 LTCC=${LTCC-"$CC"}
5468
5469 # If no C compiler flags were specified, use CFLAGS.
5470 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5471
5472 # Allow CC to be a program name with arguments.
5473 compiler=$CC
5474
5475
5476 # Check for command to grab the raw symbol name followed by C symbol from nm.
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5478 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5479 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5480 $as_echo_n "(cached) " >&6
5481 else
5482
5483 # These are sane defaults that work on at least a few old systems.
5484 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5485
5486 # Character class describing NM global symbol codes.
5487 symcode='[BCDEGRST]'
5488
5489 # Regexp to match symbols that can be accessed directly from C.
5490 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5491
5492 # Define system-specific variables.
5493 case $host_os in
5494 aix*)
5495 symcode='[BCDT]'
5496 ;;
5497 cygwin* | mingw* | pw32* | cegcc*)
5498 symcode='[ABCDGISTW]'
5499 ;;
5500 hpux*)
5501 if test "$host_cpu" = ia64; then
5502 symcode='[ABCDEGRST]'
5503 fi
5504 ;;
5505 irix* | nonstopux*)
5506 symcode='[BCDEGRST]'
5507 ;;
5508 osf*)
5509 symcode='[BCDEGQRST]'
5510 ;;
5511 solaris*)
5512 symcode='[BDRT]'
5513 ;;
5514 sco3.2v5*)
5515 symcode='[DT]'
5516 ;;
5517 sysv4.2uw2*)
5518 symcode='[DT]'
5519 ;;
5520 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5521 symcode='[ABDT]'
5522 ;;
5523 sysv4)
5524 symcode='[DFNSTU]'
5525 ;;
5526 esac
5527
5528 # If we're using GNU nm, then use its standard symbol codes.
5529 case `$NM -V 2>&1` in
5530 *GNU* | *'with BFD'*)
5531 symcode='[ABCDGIRSTW]' ;;
5532 esac
5533
5534 # Transform an extracted symbol line into a proper C declaration.
5535 # Some systems (esp. on ia64) link data and code symbols differently,
5536 # so use this general approach.
5537 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5538
5539 # Transform an extracted symbol line into symbol name and symbol address
5540 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5541 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'"
5542
5543 # Handle CRLF in mingw tool chain
5544 opt_cr=
5545 case $build_os in
5546 mingw*)
5547 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5548 ;;
5549 esac
5550
5551 # Try without a prefix underscore, then with it.
5552 for ac_symprfx in "" "_"; do
5553
5554 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5555 symxfrm="\\1 $ac_symprfx\\2 \\2"
5556
5557 # Write the raw and C identifiers.
5558 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5559 # Fake it for dumpbin and say T for any non-static function
5560 # and D for any global variable.
5561 # Also find C++ and __fastcall symbols from MSVC++,
5562 # which start with @ or ?.
5563 lt_cv_sys_global_symbol_pipe="$AWK '"\
5564 " {last_section=section; section=\$ 3};"\
5565 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5566 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5567 " \$ 0!~/External *\|/{next};"\
5568 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5569 " {if(hide[section]) next};"\
5570 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5571 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5572 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5573 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5574 " ' prfx=^$ac_symprfx"
5575 else
5576 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5577 fi
5578 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5579
5580 # Check to see that the pipe works correctly.
5581 pipe_works=no
5582
5583 rm -f conftest*
5584 cat > conftest.$ac_ext <<_LT_EOF
5585 #ifdef __cplusplus
5586 extern "C" {
5587 #endif
5588 char nm_test_var;
5589 void nm_test_func(void);
5590 void nm_test_func(void){}
5591 #ifdef __cplusplus
5592 }
5593 #endif
5594 int main(){nm_test_var='a';nm_test_func();return(0);}
5595 _LT_EOF
5596
5597 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5598 (eval $ac_compile) 2>&5
5599 ac_status=$?
5600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5601 test $ac_status = 0; }; then
5602 # Now try to grab the symbols.
5603 nlist=conftest.nm
5604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5605 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5606 ac_status=$?
5607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5608 test $ac_status = 0; } && test -s "$nlist"; then
5609 # Try sorting and uniquifying the output.
5610 if sort "$nlist" | uniq > "$nlist"T; then
5611 mv -f "$nlist"T "$nlist"
5612 else
5613 rm -f "$nlist"T
5614 fi
5615
5616 # Make sure that we snagged all the symbols we need.
5617 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5618 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5619 cat <<_LT_EOF > conftest.$ac_ext
5620 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5621 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5622 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5623 relocations are performed -- see ld's documentation on pseudo-relocs. */
5624 # define LT_DLSYM_CONST
5625 #elif defined(__osf__)
5626 /* This system does not cope well with relocations in const data. */
5627 # define LT_DLSYM_CONST
5628 #else
5629 # define LT_DLSYM_CONST const
5630 #endif
5631
5632 #ifdef __cplusplus
5633 extern "C" {
5634 #endif
5635
5636 _LT_EOF
5637 # Now generate the symbol file.
5638 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5639
5640 cat <<_LT_EOF >> conftest.$ac_ext
5641
5642 /* The mapping between symbol names and symbols. */
5643 LT_DLSYM_CONST struct {
5644 const char *name;
5645 void *address;
5646 }
5647 lt__PROGRAM__LTX_preloaded_symbols[] =
5648 {
5649 { "@PROGRAM@", (void *) 0 },
5650 _LT_EOF
5651 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5652 cat <<\_LT_EOF >> conftest.$ac_ext
5653 {0, (void *) 0}
5654 };
5655
5656 /* This works around a problem in FreeBSD linker */
5657 #ifdef FREEBSD_WORKAROUND
5658 static const void *lt_preloaded_setup() {
5659 return lt__PROGRAM__LTX_preloaded_symbols;
5660 }
5661 #endif
5662
5663 #ifdef __cplusplus
5664 }
5665 #endif
5666 _LT_EOF
5667 # Now try linking the two files.
5668 mv conftest.$ac_objext conftstm.$ac_objext
5669 lt_globsym_save_LIBS=$LIBS
5670 lt_globsym_save_CFLAGS=$CFLAGS
5671 LIBS="conftstm.$ac_objext"
5672 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5674 (eval $ac_link) 2>&5
5675 ac_status=$?
5676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5677 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5678 pipe_works=yes
5679 fi
5680 LIBS=$lt_globsym_save_LIBS
5681 CFLAGS=$lt_globsym_save_CFLAGS
5682 else
5683 echo "cannot find nm_test_func in $nlist" >&5
5684 fi
5685 else
5686 echo "cannot find nm_test_var in $nlist" >&5
5687 fi
5688 else
5689 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5690 fi
5691 else
5692 echo "$progname: failed program was:" >&5
5693 cat conftest.$ac_ext >&5
5694 fi
5695 rm -rf conftest* conftst*
5696
5697 # Do not use the global_symbol_pipe unless it works.
5698 if test "$pipe_works" = yes; then
5699 break
5700 else
5701 lt_cv_sys_global_symbol_pipe=
5702 fi
5703 done
5704
5705 fi
5706
5707 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5708 lt_cv_sys_global_symbol_to_cdecl=
5709 fi
5710 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5712 $as_echo "failed" >&6; }
5713 else
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5715 $as_echo "ok" >&6; }
5716 fi
5717
5718 # Response file support.
5719 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5720 nm_file_list_spec='@'
5721 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5722 nm_file_list_spec='@'
5723 fi
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5752 $as_echo_n "checking for sysroot... " >&6; }
5753
5754 # Check whether --with-sysroot was given.
5755 if test "${with_sysroot+set}" = set; then :
5756 withval=$with_sysroot;
5757 else
5758 with_sysroot=no
5759 fi
5760
5761
5762 lt_sysroot=
5763 case ${with_sysroot} in #(
5764 yes)
5765 if test "$GCC" = yes; then
5766 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5767 fi
5768 ;; #(
5769 /*)
5770 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5771 ;; #(
5772 no|'')
5773 ;; #(
5774 *)
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5776 $as_echo "${with_sysroot}" >&6; }
5777 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5778 ;;
5779 esac
5780
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5782 $as_echo "${lt_sysroot:-no}" >&6; }
5783
5784
5785
5786
5787
5788 # Check whether --enable-libtool-lock was given.
5789 if test "${enable_libtool_lock+set}" = set; then :
5790 enableval=$enable_libtool_lock;
5791 fi
5792
5793 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5794
5795 # Some flags need to be propagated to the compiler or linker for good
5796 # libtool support.
5797 case $host in
5798 ia64-*-hpux*)
5799 # Find out which ABI we are using.
5800 echo 'int i;' > conftest.$ac_ext
5801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5802 (eval $ac_compile) 2>&5
5803 ac_status=$?
5804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5805 test $ac_status = 0; }; then
5806 case `/usr/bin/file conftest.$ac_objext` in
5807 *ELF-32*)
5808 HPUX_IA64_MODE="32"
5809 ;;
5810 *ELF-64*)
5811 HPUX_IA64_MODE="64"
5812 ;;
5813 esac
5814 fi
5815 rm -rf conftest*
5816 ;;
5817 *-*-irix6*)
5818 # Find out which ABI we are using.
5819 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5821 (eval $ac_compile) 2>&5
5822 ac_status=$?
5823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5824 test $ac_status = 0; }; then
5825 if test "$lt_cv_prog_gnu_ld" = yes; then
5826 case `/usr/bin/file conftest.$ac_objext` in
5827 *32-bit*)
5828 LD="${LD-ld} -melf32bsmip"
5829 ;;
5830 *N32*)
5831 LD="${LD-ld} -melf32bmipn32"
5832 ;;
5833 *64-bit*)
5834 LD="${LD-ld} -melf64bmip"
5835 ;;
5836 esac
5837 else
5838 case `/usr/bin/file conftest.$ac_objext` in
5839 *32-bit*)
5840 LD="${LD-ld} -32"
5841 ;;
5842 *N32*)
5843 LD="${LD-ld} -n32"
5844 ;;
5845 *64-bit*)
5846 LD="${LD-ld} -64"
5847 ;;
5848 esac
5849 fi
5850 fi
5851 rm -rf conftest*
5852 ;;
5853
5854 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5855 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5856 # Find out which ABI we are using.
5857 echo 'int i;' > conftest.$ac_ext
5858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5859 (eval $ac_compile) 2>&5
5860 ac_status=$?
5861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5862 test $ac_status = 0; }; then
5863 case `/usr/bin/file conftest.o` in
5864 *32-bit*)
5865 case $host in
5866 x86_64-*kfreebsd*-gnu)
5867 LD="${LD-ld} -m elf_i386_fbsd"
5868 ;;
5869 x86_64-*linux*)
5870 case `/usr/bin/file conftest.o` in
5871 *x86-64*)
5872 LD="${LD-ld} -m elf32_x86_64"
5873 ;;
5874 *)
5875 LD="${LD-ld} -m elf_i386"
5876 ;;
5877 esac
5878 ;;
5879 powerpc64le-*)
5880 LD="${LD-ld} -m elf32lppclinux"
5881 ;;
5882 powerpc64-*)
5883 LD="${LD-ld} -m elf32ppclinux"
5884 ;;
5885 s390x-*linux*)
5886 LD="${LD-ld} -m elf_s390"
5887 ;;
5888 sparc64-*linux*)
5889 LD="${LD-ld} -m elf32_sparc"
5890 ;;
5891 esac
5892 ;;
5893 *64-bit*)
5894 case $host in
5895 x86_64-*kfreebsd*-gnu)
5896 LD="${LD-ld} -m elf_x86_64_fbsd"
5897 ;;
5898 x86_64-*linux*)
5899 LD="${LD-ld} -m elf_x86_64"
5900 ;;
5901 powerpcle-*)
5902 LD="${LD-ld} -m elf64lppc"
5903 ;;
5904 powerpc-*)
5905 LD="${LD-ld} -m elf64ppc"
5906 ;;
5907 s390*-*linux*|s390*-*tpf*)
5908 LD="${LD-ld} -m elf64_s390"
5909 ;;
5910 sparc*-*linux*)
5911 LD="${LD-ld} -m elf64_sparc"
5912 ;;
5913 esac
5914 ;;
5915 esac
5916 fi
5917 rm -rf conftest*
5918 ;;
5919
5920 *-*-sco3.2v5*)
5921 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5922 SAVE_CFLAGS="$CFLAGS"
5923 CFLAGS="$CFLAGS -belf"
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5925 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5926 if ${lt_cv_cc_needs_belf+:} false; then :
5927 $as_echo_n "(cached) " >&6
5928 else
5929 ac_ext=c
5930 ac_cpp='$CPP $CPPFLAGS'
5931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5934
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5937
5938 int
5939 main ()
5940 {
5941
5942 ;
5943 return 0;
5944 }
5945 _ACEOF
5946 if ac_fn_c_try_link "$LINENO"; then :
5947 lt_cv_cc_needs_belf=yes
5948 else
5949 lt_cv_cc_needs_belf=no
5950 fi
5951 rm -f core conftest.err conftest.$ac_objext \
5952 conftest$ac_exeext conftest.$ac_ext
5953 ac_ext=c
5954 ac_cpp='$CPP $CPPFLAGS'
5955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5958
5959 fi
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5961 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5962 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5963 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5964 CFLAGS="$SAVE_CFLAGS"
5965 fi
5966 ;;
5967 *-*solaris*)
5968 # Find out which ABI we are using.
5969 echo 'int i;' > conftest.$ac_ext
5970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5971 (eval $ac_compile) 2>&5
5972 ac_status=$?
5973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5974 test $ac_status = 0; }; then
5975 case `/usr/bin/file conftest.o` in
5976 *64-bit*)
5977 case $lt_cv_prog_gnu_ld in
5978 yes*)
5979 case $host in
5980 i?86-*-solaris*)
5981 LD="${LD-ld} -m elf_x86_64"
5982 ;;
5983 sparc*-*-solaris*)
5984 LD="${LD-ld} -m elf64_sparc"
5985 ;;
5986 esac
5987 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
5988 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5989 LD="${LD-ld}_sol2"
5990 fi
5991 ;;
5992 *)
5993 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5994 LD="${LD-ld} -64"
5995 fi
5996 ;;
5997 esac
5998 ;;
5999 esac
6000 fi
6001 rm -rf conftest*
6002 ;;
6003 esac
6004
6005 need_locks="$enable_libtool_lock"
6006
6007 if test -n "$ac_tool_prefix"; then
6008 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6009 set dummy ${ac_tool_prefix}mt; ac_word=$2
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011 $as_echo_n "checking for $ac_word... " >&6; }
6012 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6013 $as_echo_n "(cached) " >&6
6014 else
6015 if test -n "$MANIFEST_TOOL"; then
6016 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6017 else
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 for as_dir in $PATH
6020 do
6021 IFS=$as_save_IFS
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6025 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 break 2
6028 fi
6029 done
6030 done
6031 IFS=$as_save_IFS
6032
6033 fi
6034 fi
6035 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6036 if test -n "$MANIFEST_TOOL"; then
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6038 $as_echo "$MANIFEST_TOOL" >&6; }
6039 else
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041 $as_echo "no" >&6; }
6042 fi
6043
6044
6045 fi
6046 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6047 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6048 # Extract the first word of "mt", so it can be a program name with args.
6049 set dummy mt; ac_word=$2
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6055 if test -n "$ac_ct_MANIFEST_TOOL"; then
6056 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6057 else
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6060 do
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 break 2
6068 fi
6069 done
6070 done
6071 IFS=$as_save_IFS
6072
6073 fi
6074 fi
6075 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6076 if test -n "$ac_ct_MANIFEST_TOOL"; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6078 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6079 else
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081 $as_echo "no" >&6; }
6082 fi
6083
6084 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6085 MANIFEST_TOOL=":"
6086 else
6087 case $cross_compiling:$ac_tool_warned in
6088 yes:)
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6091 ac_tool_warned=yes ;;
6092 esac
6093 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6094 fi
6095 else
6096 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6097 fi
6098
6099 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6101 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6102 if ${lt_cv_path_mainfest_tool+:} false; then :
6103 $as_echo_n "(cached) " >&6
6104 else
6105 lt_cv_path_mainfest_tool=no
6106 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6107 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6108 cat conftest.err >&5
6109 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6110 lt_cv_path_mainfest_tool=yes
6111 fi
6112 rm -f conftest*
6113 fi
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6115 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6116 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6117 MANIFEST_TOOL=:
6118 fi
6119
6120
6121
6122
6123
6124
6125 case $host_os in
6126 rhapsody* | darwin*)
6127 if test -n "$ac_tool_prefix"; then
6128 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6129 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131 $as_echo_n "checking for $ac_word... " >&6; }
6132 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6133 $as_echo_n "(cached) " >&6
6134 else
6135 if test -n "$DSYMUTIL"; then
6136 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6137 else
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH
6140 do
6141 IFS=$as_save_IFS
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6145 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6147 break 2
6148 fi
6149 done
6150 done
6151 IFS=$as_save_IFS
6152
6153 fi
6154 fi
6155 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6156 if test -n "$DSYMUTIL"; then
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6158 $as_echo "$DSYMUTIL" >&6; }
6159 else
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161 $as_echo "no" >&6; }
6162 fi
6163
6164
6165 fi
6166 if test -z "$ac_cv_prog_DSYMUTIL"; then
6167 ac_ct_DSYMUTIL=$DSYMUTIL
6168 # Extract the first word of "dsymutil", so it can be a program name with args.
6169 set dummy dsymutil; ac_word=$2
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171 $as_echo_n "checking for $ac_word... " >&6; }
6172 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6173 $as_echo_n "(cached) " >&6
6174 else
6175 if test -n "$ac_ct_DSYMUTIL"; then
6176 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6177 else
6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 for as_dir in $PATH
6180 do
6181 IFS=$as_save_IFS
6182 test -z "$as_dir" && as_dir=.
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6185 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 break 2
6188 fi
6189 done
6190 done
6191 IFS=$as_save_IFS
6192
6193 fi
6194 fi
6195 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6196 if test -n "$ac_ct_DSYMUTIL"; then
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6198 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6199 else
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201 $as_echo "no" >&6; }
6202 fi
6203
6204 if test "x$ac_ct_DSYMUTIL" = x; then
6205 DSYMUTIL=":"
6206 else
6207 case $cross_compiling:$ac_tool_warned in
6208 yes:)
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6211 ac_tool_warned=yes ;;
6212 esac
6213 DSYMUTIL=$ac_ct_DSYMUTIL
6214 fi
6215 else
6216 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6217 fi
6218
6219 if test -n "$ac_tool_prefix"; then
6220 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6221 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6223 $as_echo_n "checking for $ac_word... " >&6; }
6224 if ${ac_cv_prog_NMEDIT+:} false; then :
6225 $as_echo_n "(cached) " >&6
6226 else
6227 if test -n "$NMEDIT"; then
6228 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6229 else
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 for as_dir in $PATH
6232 do
6233 IFS=$as_save_IFS
6234 test -z "$as_dir" && as_dir=.
6235 for ac_exec_ext in '' $ac_executable_extensions; do
6236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6237 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6239 break 2
6240 fi
6241 done
6242 done
6243 IFS=$as_save_IFS
6244
6245 fi
6246 fi
6247 NMEDIT=$ac_cv_prog_NMEDIT
6248 if test -n "$NMEDIT"; then
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6250 $as_echo "$NMEDIT" >&6; }
6251 else
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6253 $as_echo "no" >&6; }
6254 fi
6255
6256
6257 fi
6258 if test -z "$ac_cv_prog_NMEDIT"; then
6259 ac_ct_NMEDIT=$NMEDIT
6260 # Extract the first word of "nmedit", so it can be a program name with args.
6261 set dummy nmedit; ac_word=$2
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263 $as_echo_n "checking for $ac_word... " >&6; }
6264 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6267 if test -n "$ac_ct_NMEDIT"; then
6268 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6269 else
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 for as_dir in $PATH
6272 do
6273 IFS=$as_save_IFS
6274 test -z "$as_dir" && as_dir=.
6275 for ac_exec_ext in '' $ac_executable_extensions; do
6276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6277 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6279 break 2
6280 fi
6281 done
6282 done
6283 IFS=$as_save_IFS
6284
6285 fi
6286 fi
6287 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6288 if test -n "$ac_ct_NMEDIT"; then
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6290 $as_echo "$ac_ct_NMEDIT" >&6; }
6291 else
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6294 fi
6295
6296 if test "x$ac_ct_NMEDIT" = x; then
6297 NMEDIT=":"
6298 else
6299 case $cross_compiling:$ac_tool_warned in
6300 yes:)
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6303 ac_tool_warned=yes ;;
6304 esac
6305 NMEDIT=$ac_ct_NMEDIT
6306 fi
6307 else
6308 NMEDIT="$ac_cv_prog_NMEDIT"
6309 fi
6310
6311 if test -n "$ac_tool_prefix"; then
6312 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6313 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6315 $as_echo_n "checking for $ac_word... " >&6; }
6316 if ${ac_cv_prog_LIPO+:} false; then :
6317 $as_echo_n "(cached) " >&6
6318 else
6319 if test -n "$LIPO"; then
6320 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6321 else
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6324 do
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6329 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 break 2
6332 fi
6333 done
6334 done
6335 IFS=$as_save_IFS
6336
6337 fi
6338 fi
6339 LIPO=$ac_cv_prog_LIPO
6340 if test -n "$LIPO"; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6342 $as_echo "$LIPO" >&6; }
6343 else
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6346 fi
6347
6348
6349 fi
6350 if test -z "$ac_cv_prog_LIPO"; then
6351 ac_ct_LIPO=$LIPO
6352 # Extract the first word of "lipo", so it can be a program name with args.
6353 set dummy lipo; ac_word=$2
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355 $as_echo_n "checking for $ac_word... " >&6; }
6356 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 if test -n "$ac_ct_LIPO"; then
6360 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6361 else
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6364 do
6365 IFS=$as_save_IFS
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6369 ac_cv_prog_ac_ct_LIPO="lipo"
6370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 break 2
6372 fi
6373 done
6374 done
6375 IFS=$as_save_IFS
6376
6377 fi
6378 fi
6379 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6380 if test -n "$ac_ct_LIPO"; then
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6382 $as_echo "$ac_ct_LIPO" >&6; }
6383 else
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385 $as_echo "no" >&6; }
6386 fi
6387
6388 if test "x$ac_ct_LIPO" = x; then
6389 LIPO=":"
6390 else
6391 case $cross_compiling:$ac_tool_warned in
6392 yes:)
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6395 ac_tool_warned=yes ;;
6396 esac
6397 LIPO=$ac_ct_LIPO
6398 fi
6399 else
6400 LIPO="$ac_cv_prog_LIPO"
6401 fi
6402
6403 if test -n "$ac_tool_prefix"; then
6404 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6405 set dummy ${ac_tool_prefix}otool; ac_word=$2
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407 $as_echo_n "checking for $ac_word... " >&6; }
6408 if ${ac_cv_prog_OTOOL+:} false; then :
6409 $as_echo_n "(cached) " >&6
6410 else
6411 if test -n "$OTOOL"; then
6412 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6413 else
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6416 do
6417 IFS=$as_save_IFS
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6421 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 break 2
6424 fi
6425 done
6426 done
6427 IFS=$as_save_IFS
6428
6429 fi
6430 fi
6431 OTOOL=$ac_cv_prog_OTOOL
6432 if test -n "$OTOOL"; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6434 $as_echo "$OTOOL" >&6; }
6435 else
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437 $as_echo "no" >&6; }
6438 fi
6439
6440
6441 fi
6442 if test -z "$ac_cv_prog_OTOOL"; then
6443 ac_ct_OTOOL=$OTOOL
6444 # Extract the first word of "otool", so it can be a program name with args.
6445 set dummy otool; ac_word=$2
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447 $as_echo_n "checking for $ac_word... " >&6; }
6448 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6449 $as_echo_n "(cached) " >&6
6450 else
6451 if test -n "$ac_ct_OTOOL"; then
6452 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6453 else
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6456 do
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6461 ac_cv_prog_ac_ct_OTOOL="otool"
6462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 break 2
6464 fi
6465 done
6466 done
6467 IFS=$as_save_IFS
6468
6469 fi
6470 fi
6471 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6472 if test -n "$ac_ct_OTOOL"; then
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6474 $as_echo "$ac_ct_OTOOL" >&6; }
6475 else
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6478 fi
6479
6480 if test "x$ac_ct_OTOOL" = x; then
6481 OTOOL=":"
6482 else
6483 case $cross_compiling:$ac_tool_warned in
6484 yes:)
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6487 ac_tool_warned=yes ;;
6488 esac
6489 OTOOL=$ac_ct_OTOOL
6490 fi
6491 else
6492 OTOOL="$ac_cv_prog_OTOOL"
6493 fi
6494
6495 if test -n "$ac_tool_prefix"; then
6496 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6497 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499 $as_echo_n "checking for $ac_word... " >&6; }
6500 if ${ac_cv_prog_OTOOL64+:} false; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503 if test -n "$OTOOL64"; then
6504 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6505 else
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 for as_dir in $PATH
6508 do
6509 IFS=$as_save_IFS
6510 test -z "$as_dir" && as_dir=.
6511 for ac_exec_ext in '' $ac_executable_extensions; do
6512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6513 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 break 2
6516 fi
6517 done
6518 done
6519 IFS=$as_save_IFS
6520
6521 fi
6522 fi
6523 OTOOL64=$ac_cv_prog_OTOOL64
6524 if test -n "$OTOOL64"; then
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6526 $as_echo "$OTOOL64" >&6; }
6527 else
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529 $as_echo "no" >&6; }
6530 fi
6531
6532
6533 fi
6534 if test -z "$ac_cv_prog_OTOOL64"; then
6535 ac_ct_OTOOL64=$OTOOL64
6536 # Extract the first word of "otool64", so it can be a program name with args.
6537 set dummy otool64; ac_word=$2
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6539 $as_echo_n "checking for $ac_word... " >&6; }
6540 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6541 $as_echo_n "(cached) " >&6
6542 else
6543 if test -n "$ac_ct_OTOOL64"; then
6544 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6545 else
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 for as_dir in $PATH
6548 do
6549 IFS=$as_save_IFS
6550 test -z "$as_dir" && as_dir=.
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6553 ac_cv_prog_ac_ct_OTOOL64="otool64"
6554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 break 2
6556 fi
6557 done
6558 done
6559 IFS=$as_save_IFS
6560
6561 fi
6562 fi
6563 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6564 if test -n "$ac_ct_OTOOL64"; then
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6566 $as_echo "$ac_ct_OTOOL64" >&6; }
6567 else
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569 $as_echo "no" >&6; }
6570 fi
6571
6572 if test "x$ac_ct_OTOOL64" = x; then
6573 OTOOL64=":"
6574 else
6575 case $cross_compiling:$ac_tool_warned in
6576 yes:)
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6579 ac_tool_warned=yes ;;
6580 esac
6581 OTOOL64=$ac_ct_OTOOL64
6582 fi
6583 else
6584 OTOOL64="$ac_cv_prog_OTOOL64"
6585 fi
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6614 $as_echo_n "checking for -single_module linker flag... " >&6; }
6615 if ${lt_cv_apple_cc_single_mod+:} false; then :
6616 $as_echo_n "(cached) " >&6
6617 else
6618 lt_cv_apple_cc_single_mod=no
6619 if test -z "${LT_MULTI_MODULE}"; then
6620 # By default we will add the -single_module flag. You can override
6621 # by either setting the environment variable LT_MULTI_MODULE
6622 # non-empty at configure time, or by adding -multi_module to the
6623 # link flags.
6624 rm -rf libconftest.dylib*
6625 echo "int foo(void){return 1;}" > conftest.c
6626 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6627 -dynamiclib -Wl,-single_module conftest.c" >&5
6628 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6629 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6630 _lt_result=$?
6631 # If there is a non-empty error log, and "single_module"
6632 # appears in it, assume the flag caused a linker warning
6633 if test -s conftest.err && $GREP single_module conftest.err; then
6634 cat conftest.err >&5
6635 # Otherwise, if the output was created with a 0 exit code from
6636 # the compiler, it worked.
6637 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6638 lt_cv_apple_cc_single_mod=yes
6639 else
6640 cat conftest.err >&5
6641 fi
6642 rm -rf libconftest.dylib*
6643 rm -f conftest.*
6644 fi
6645 fi
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6647 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6648
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6650 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6651 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6652 $as_echo_n "(cached) " >&6
6653 else
6654 lt_cv_ld_exported_symbols_list=no
6655 save_LDFLAGS=$LDFLAGS
6656 echo "_main" > conftest.sym
6657 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6660
6661 int
6662 main ()
6663 {
6664
6665 ;
6666 return 0;
6667 }
6668 _ACEOF
6669 if ac_fn_c_try_link "$LINENO"; then :
6670 lt_cv_ld_exported_symbols_list=yes
6671 else
6672 lt_cv_ld_exported_symbols_list=no
6673 fi
6674 rm -f core conftest.err conftest.$ac_objext \
6675 conftest$ac_exeext conftest.$ac_ext
6676 LDFLAGS="$save_LDFLAGS"
6677
6678 fi
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6680 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6681
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6683 $as_echo_n "checking for -force_load linker flag... " >&6; }
6684 if ${lt_cv_ld_force_load+:} false; then :
6685 $as_echo_n "(cached) " >&6
6686 else
6687 lt_cv_ld_force_load=no
6688 cat > conftest.c << _LT_EOF
6689 int forced_loaded() { return 2;}
6690 _LT_EOF
6691 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6692 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6693 echo "$AR cru libconftest.a conftest.o" >&5
6694 $AR cru libconftest.a conftest.o 2>&5
6695 echo "$RANLIB libconftest.a" >&5
6696 $RANLIB libconftest.a 2>&5
6697 cat > conftest.c << _LT_EOF
6698 int main() { return 0;}
6699 _LT_EOF
6700 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6701 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6702 _lt_result=$?
6703 if test -s conftest.err && $GREP force_load conftest.err; then
6704 cat conftest.err >&5
6705 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6706 lt_cv_ld_force_load=yes
6707 else
6708 cat conftest.err >&5
6709 fi
6710 rm -f conftest.err libconftest.a conftest conftest.c
6711 rm -rf conftest.dSYM
6712
6713 fi
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6715 $as_echo "$lt_cv_ld_force_load" >&6; }
6716 case $host_os in
6717 rhapsody* | darwin1.[012])
6718 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6719 darwin1.*)
6720 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6721 darwin*) # darwin 5.x on
6722 # if running on 10.5 or later, the deployment target defaults
6723 # to the OS version, if on x86, and 10.4, the deployment
6724 # target defaults to 10.4. Don't you love it?
6725 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6726 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6727 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6728 10.[012]*)
6729 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6730 10.*)
6731 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6732 esac
6733 ;;
6734 esac
6735 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6736 _lt_dar_single_mod='$single_module'
6737 fi
6738 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6739 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6740 else
6741 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6742 fi
6743 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6744 _lt_dsymutil='~$DSYMUTIL $lib || :'
6745 else
6746 _lt_dsymutil=
6747 fi
6748 ;;
6749 esac
6750
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6757 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6758 # On Suns, sometimes $CPP names a directory.
6759 if test -n "$CPP" && test -d "$CPP"; then
6760 CPP=
6761 fi
6762 if test -z "$CPP"; then
6763 if ${ac_cv_prog_CPP+:} false; then :
6764 $as_echo_n "(cached) " >&6
6765 else
6766 # Double quotes because CPP needs to be expanded
6767 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6768 do
6769 ac_preproc_ok=false
6770 for ac_c_preproc_warn_flag in '' yes
6771 do
6772 # Use a header file that comes with gcc, so configuring glibc
6773 # with a fresh cross-compiler works.
6774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6775 # <limits.h> exists even on freestanding compilers.
6776 # On the NeXT, cc -E runs the code through the compiler's parser,
6777 # not just through cpp. "Syntax error" is here to catch this case.
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6780 #ifdef __STDC__
6781 # include <limits.h>
6782 #else
6783 # include <assert.h>
6784 #endif
6785 Syntax error
6786 _ACEOF
6787 if ac_fn_c_try_cpp "$LINENO"; then :
6788
6789 else
6790 # Broken: fails on valid input.
6791 continue
6792 fi
6793 rm -f conftest.err conftest.i conftest.$ac_ext
6794
6795 # OK, works on sane cases. Now check whether nonexistent headers
6796 # can be detected and how.
6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h. */
6799 #include <ac_nonexistent.h>
6800 _ACEOF
6801 if ac_fn_c_try_cpp "$LINENO"; then :
6802 # Broken: success on invalid input.
6803 continue
6804 else
6805 # Passes both tests.
6806 ac_preproc_ok=:
6807 break
6808 fi
6809 rm -f conftest.err conftest.i conftest.$ac_ext
6810
6811 done
6812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6813 rm -f conftest.i conftest.err conftest.$ac_ext
6814 if $ac_preproc_ok; then :
6815 break
6816 fi
6817
6818 done
6819 ac_cv_prog_CPP=$CPP
6820
6821 fi
6822 CPP=$ac_cv_prog_CPP
6823 else
6824 ac_cv_prog_CPP=$CPP
6825 fi
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6827 $as_echo "$CPP" >&6; }
6828 ac_preproc_ok=false
6829 for ac_c_preproc_warn_flag in '' yes
6830 do
6831 # Use a header file that comes with gcc, so configuring glibc
6832 # with a fresh cross-compiler works.
6833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6834 # <limits.h> exists even on freestanding compilers.
6835 # On the NeXT, cc -E runs the code through the compiler's parser,
6836 # not just through cpp. "Syntax error" is here to catch this case.
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6839 #ifdef __STDC__
6840 # include <limits.h>
6841 #else
6842 # include <assert.h>
6843 #endif
6844 Syntax error
6845 _ACEOF
6846 if ac_fn_c_try_cpp "$LINENO"; then :
6847
6848 else
6849 # Broken: fails on valid input.
6850 continue
6851 fi
6852 rm -f conftest.err conftest.i conftest.$ac_ext
6853
6854 # OK, works on sane cases. Now check whether nonexistent headers
6855 # can be detected and how.
6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h. */
6858 #include <ac_nonexistent.h>
6859 _ACEOF
6860 if ac_fn_c_try_cpp "$LINENO"; then :
6861 # Broken: success on invalid input.
6862 continue
6863 else
6864 # Passes both tests.
6865 ac_preproc_ok=:
6866 break
6867 fi
6868 rm -f conftest.err conftest.i conftest.$ac_ext
6869
6870 done
6871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6872 rm -f conftest.i conftest.err conftest.$ac_ext
6873 if $ac_preproc_ok; then :
6874
6875 else
6876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6878 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6879 See \`config.log' for more details" "$LINENO" 5; }
6880 fi
6881
6882 ac_ext=c
6883 ac_cpp='$CPP $CPPFLAGS'
6884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6887
6888
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6890 $as_echo_n "checking for ANSI C header files... " >&6; }
6891 if ${ac_cv_header_stdc+:} false; then :
6892 $as_echo_n "(cached) " >&6
6893 else
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6896 #include <stdlib.h>
6897 #include <stdarg.h>
6898 #include <string.h>
6899 #include <float.h>
6900
6901 int
6902 main ()
6903 {
6904
6905 ;
6906 return 0;
6907 }
6908 _ACEOF
6909 if ac_fn_c_try_compile "$LINENO"; then :
6910 ac_cv_header_stdc=yes
6911 else
6912 ac_cv_header_stdc=no
6913 fi
6914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6915
6916 if test $ac_cv_header_stdc = yes; then
6917 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6920 #include <string.h>
6921
6922 _ACEOF
6923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6924 $EGREP "memchr" >/dev/null 2>&1; then :
6925
6926 else
6927 ac_cv_header_stdc=no
6928 fi
6929 rm -f conftest*
6930
6931 fi
6932
6933 if test $ac_cv_header_stdc = yes; then
6934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h. */
6937 #include <stdlib.h>
6938
6939 _ACEOF
6940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6941 $EGREP "free" >/dev/null 2>&1; then :
6942
6943 else
6944 ac_cv_header_stdc=no
6945 fi
6946 rm -f conftest*
6947
6948 fi
6949
6950 if test $ac_cv_header_stdc = yes; then
6951 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6952 if test "$cross_compiling" = yes; then :
6953 :
6954 else
6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6957 #include <ctype.h>
6958 #include <stdlib.h>
6959 #if ((' ' & 0x0FF) == 0x020)
6960 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6961 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6962 #else
6963 # define ISLOWER(c) \
6964 (('a' <= (c) && (c) <= 'i') \
6965 || ('j' <= (c) && (c) <= 'r') \
6966 || ('s' <= (c) && (c) <= 'z'))
6967 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6968 #endif
6969
6970 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6971 int
6972 main ()
6973 {
6974 int i;
6975 for (i = 0; i < 256; i++)
6976 if (XOR (islower (i), ISLOWER (i))
6977 || toupper (i) != TOUPPER (i))
6978 return 2;
6979 return 0;
6980 }
6981 _ACEOF
6982 if ac_fn_c_try_run "$LINENO"; then :
6983
6984 else
6985 ac_cv_header_stdc=no
6986 fi
6987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6988 conftest.$ac_objext conftest.beam conftest.$ac_ext
6989 fi
6990
6991 fi
6992 fi
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6994 $as_echo "$ac_cv_header_stdc" >&6; }
6995 if test $ac_cv_header_stdc = yes; then
6996
6997 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6998
6999 fi
7000
7001 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7002 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7003 inttypes.h stdint.h unistd.h
7004 do :
7005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7006 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7007 "
7008 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7009 cat >>confdefs.h <<_ACEOF
7010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7011 _ACEOF
7012
7013 fi
7014
7015 done
7016
7017
7018 for ac_header in dlfcn.h
7019 do :
7020 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7021 "
7022 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7023 cat >>confdefs.h <<_ACEOF
7024 #define HAVE_DLFCN_H 1
7025 _ACEOF
7026
7027 fi
7028
7029 done
7030
7031
7032
7033
7034
7035 # Set options
7036
7037
7038
7039 enable_dlopen=no
7040
7041
7042 enable_win32_dll=no
7043
7044
7045
7046 # Check whether --enable-static was given.
7047 if test "${enable_static+set}" = set; then :
7048 enableval=$enable_static; p=${PACKAGE-default}
7049 case $enableval in
7050 yes) enable_static=yes ;;
7051 no) enable_static=no ;;
7052 *)
7053 enable_static=no
7054 # Look at the argument we got. We use all the common list separators.
7055 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7056 for pkg in $enableval; do
7057 IFS="$lt_save_ifs"
7058 if test "X$pkg" = "X$p"; then
7059 enable_static=yes
7060 fi
7061 done
7062 IFS="$lt_save_ifs"
7063 ;;
7064 esac
7065 else
7066 enable_static=yes
7067 fi
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078 # Check whether --with-pic was given.
7079 if test "${with_pic+set}" = set; then :
7080 withval=$with_pic; lt_p=${PACKAGE-default}
7081 case $withval in
7082 yes|no) pic_mode=$withval ;;
7083 *)
7084 pic_mode=default
7085 # Look at the argument we got. We use all the common list separators.
7086 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7087 for lt_pkg in $withval; do
7088 IFS="$lt_save_ifs"
7089 if test "X$lt_pkg" = "X$lt_p"; then
7090 pic_mode=yes
7091 fi
7092 done
7093 IFS="$lt_save_ifs"
7094 ;;
7095 esac
7096 else
7097 pic_mode=default
7098 fi
7099
7100
7101 test -z "$pic_mode" && pic_mode=default
7102
7103
7104
7105
7106
7107
7108
7109 # Check whether --enable-fast-install was given.
7110 if test "${enable_fast_install+set}" = set; then :
7111 enableval=$enable_fast_install; p=${PACKAGE-default}
7112 case $enableval in
7113 yes) enable_fast_install=yes ;;
7114 no) enable_fast_install=no ;;
7115 *)
7116 enable_fast_install=no
7117 # Look at the argument we got. We use all the common list separators.
7118 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7119 for pkg in $enableval; do
7120 IFS="$lt_save_ifs"
7121 if test "X$pkg" = "X$p"; then
7122 enable_fast_install=yes
7123 fi
7124 done
7125 IFS="$lt_save_ifs"
7126 ;;
7127 esac
7128 else
7129 enable_fast_install=yes
7130 fi
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142 # This can be used to rebuild libtool when needed
7143 LIBTOOL_DEPS="$ltmain"
7144
7145 # Always use our own libtool.
7146 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177 test -z "$LN_S" && LN_S="ln -s"
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192 if test -n "${ZSH_VERSION+set}" ; then
7193 setopt NO_GLOB_SUBST
7194 fi
7195
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7197 $as_echo_n "checking for objdir... " >&6; }
7198 if ${lt_cv_objdir+:} false; then :
7199 $as_echo_n "(cached) " >&6
7200 else
7201 rm -f .libs 2>/dev/null
7202 mkdir .libs 2>/dev/null
7203 if test -d .libs; then
7204 lt_cv_objdir=.libs
7205 else
7206 # MS-DOS does not allow filenames that begin with a dot.
7207 lt_cv_objdir=_libs
7208 fi
7209 rmdir .libs 2>/dev/null
7210 fi
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7212 $as_echo "$lt_cv_objdir" >&6; }
7213 objdir=$lt_cv_objdir
7214
7215
7216
7217
7218
7219 cat >>confdefs.h <<_ACEOF
7220 #define LT_OBJDIR "$lt_cv_objdir/"
7221 _ACEOF
7222
7223
7224
7225
7226 case $host_os in
7227 aix3*)
7228 # AIX sometimes has problems with the GCC collect2 program. For some
7229 # reason, if we set the COLLECT_NAMES environment variable, the problems
7230 # vanish in a puff of smoke.
7231 if test "X${COLLECT_NAMES+set}" != Xset; then
7232 COLLECT_NAMES=
7233 export COLLECT_NAMES
7234 fi
7235 ;;
7236 esac
7237
7238 # Global variables:
7239 ofile=libtool
7240 can_build_shared=yes
7241
7242 # All known linkers require a `.a' archive for static linking (except MSVC,
7243 # which needs '.lib').
7244 libext=a
7245
7246 with_gnu_ld="$lt_cv_prog_gnu_ld"
7247
7248 old_CC="$CC"
7249 old_CFLAGS="$CFLAGS"
7250
7251 # Set sane defaults for various variables
7252 test -z "$CC" && CC=cc
7253 test -z "$LTCC" && LTCC=$CC
7254 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7255 test -z "$LD" && LD=ld
7256 test -z "$ac_objext" && ac_objext=o
7257
7258 for cc_temp in $compiler""; do
7259 case $cc_temp in
7260 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7261 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7262 \-*) ;;
7263 *) break;;
7264 esac
7265 done
7266 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7267
7268
7269 # Only perform the check for file, if the check method requires it
7270 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7271 case $deplibs_check_method in
7272 file_magic*)
7273 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7275 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7276 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7277 $as_echo_n "(cached) " >&6
7278 else
7279 case $MAGIC_CMD in
7280 [\\/*] | ?:[\\/]*)
7281 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7282 ;;
7283 *)
7284 lt_save_MAGIC_CMD="$MAGIC_CMD"
7285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7286 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7287 for ac_dir in $ac_dummy; do
7288 IFS="$lt_save_ifs"
7289 test -z "$ac_dir" && ac_dir=.
7290 if test -f $ac_dir/${ac_tool_prefix}file; then
7291 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7292 if test -n "$file_magic_test_file"; then
7293 case $deplibs_check_method in
7294 "file_magic "*)
7295 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7296 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7297 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7298 $EGREP "$file_magic_regex" > /dev/null; then
7299 :
7300 else
7301 cat <<_LT_EOF 1>&2
7302
7303 *** Warning: the command libtool uses to detect shared libraries,
7304 *** $file_magic_cmd, produces output that libtool cannot recognize.
7305 *** The result is that libtool may fail to recognize shared libraries
7306 *** as such. This will affect the creation of libtool libraries that
7307 *** depend on shared libraries, but programs linked with such libtool
7308 *** libraries will work regardless of this problem. Nevertheless, you
7309 *** may want to report the problem to your system manager and/or to
7310 *** [email protected]
7311
7312 _LT_EOF
7313 fi ;;
7314 esac
7315 fi
7316 break
7317 fi
7318 done
7319 IFS="$lt_save_ifs"
7320 MAGIC_CMD="$lt_save_MAGIC_CMD"
7321 ;;
7322 esac
7323 fi
7324
7325 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7326 if test -n "$MAGIC_CMD"; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7328 $as_echo "$MAGIC_CMD" >&6; }
7329 else
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 $as_echo "no" >&6; }
7332 fi
7333
7334
7335
7336
7337
7338 if test -z "$lt_cv_path_MAGIC_CMD"; then
7339 if test -n "$ac_tool_prefix"; then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7341 $as_echo_n "checking for file... " >&6; }
7342 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7343 $as_echo_n "(cached) " >&6
7344 else
7345 case $MAGIC_CMD in
7346 [\\/*] | ?:[\\/]*)
7347 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7348 ;;
7349 *)
7350 lt_save_MAGIC_CMD="$MAGIC_CMD"
7351 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7352 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7353 for ac_dir in $ac_dummy; do
7354 IFS="$lt_save_ifs"
7355 test -z "$ac_dir" && ac_dir=.
7356 if test -f $ac_dir/file; then
7357 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7358 if test -n "$file_magic_test_file"; then
7359 case $deplibs_check_method in
7360 "file_magic "*)
7361 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7362 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7363 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7364 $EGREP "$file_magic_regex" > /dev/null; then
7365 :
7366 else
7367 cat <<_LT_EOF 1>&2
7368
7369 *** Warning: the command libtool uses to detect shared libraries,
7370 *** $file_magic_cmd, produces output that libtool cannot recognize.
7371 *** The result is that libtool may fail to recognize shared libraries
7372 *** as such. This will affect the creation of libtool libraries that
7373 *** depend on shared libraries, but programs linked with such libtool
7374 *** libraries will work regardless of this problem. Nevertheless, you
7375 *** may want to report the problem to your system manager and/or to
7376 *** [email protected]
7377
7378 _LT_EOF
7379 fi ;;
7380 esac
7381 fi
7382 break
7383 fi
7384 done
7385 IFS="$lt_save_ifs"
7386 MAGIC_CMD="$lt_save_MAGIC_CMD"
7387 ;;
7388 esac
7389 fi
7390
7391 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7392 if test -n "$MAGIC_CMD"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7394 $as_echo "$MAGIC_CMD" >&6; }
7395 else
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7398 fi
7399
7400
7401 else
7402 MAGIC_CMD=:
7403 fi
7404 fi
7405
7406 fi
7407 ;;
7408 esac
7409
7410 # Use C for the default configuration in the libtool script
7411
7412 lt_save_CC="$CC"
7413 ac_ext=c
7414 ac_cpp='$CPP $CPPFLAGS'
7415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7418
7419
7420 # Source file extension for C test sources.
7421 ac_ext=c
7422
7423 # Object file extension for compiled C test sources.
7424 objext=o
7425 objext=$objext
7426
7427 # Code to be used in simple compile tests
7428 lt_simple_compile_test_code="int some_variable = 0;"
7429
7430 # Code to be used in simple link tests
7431 lt_simple_link_test_code='int main(){return(0);}'
7432
7433
7434
7435
7436
7437
7438
7439 # If no C compiler was specified, use CC.
7440 LTCC=${LTCC-"$CC"}
7441
7442 # If no C compiler flags were specified, use CFLAGS.
7443 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7444
7445 # Allow CC to be a program name with arguments.
7446 compiler=$CC
7447
7448 # Save the default compiler, since it gets overwritten when the other
7449 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7450 compiler_DEFAULT=$CC
7451
7452 # save warnings/boilerplate of simple test code
7453 ac_outfile=conftest.$ac_objext
7454 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7455 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7456 _lt_compiler_boilerplate=`cat conftest.err`
7457 $RM conftest*
7458
7459 ac_outfile=conftest.$ac_objext
7460 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7461 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7462 _lt_linker_boilerplate=`cat conftest.err`
7463 $RM -r conftest*
7464
7465
7466 ## CAVEAT EMPTOR:
7467 ## There is no encapsulation within the following macros, do not change
7468 ## the running order or otherwise move them around unless you know exactly
7469 ## what you are doing...
7470 if test -n "$compiler"; then
7471
7472 lt_prog_compiler_no_builtin_flag=
7473
7474 if test "$GCC" = yes; then
7475 case $cc_basename in
7476 nvcc*)
7477 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7478 *)
7479 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7480 esac
7481
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7483 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7484 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7485 $as_echo_n "(cached) " >&6
7486 else
7487 lt_cv_prog_compiler_rtti_exceptions=no
7488 ac_outfile=conftest.$ac_objext
7489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7490 lt_compiler_flag="-fno-rtti -fno-exceptions"
7491 # Insert the option either (1) after the last *FLAGS variable, or
7492 # (2) before a word containing "conftest.", or (3) at the end.
7493 # Note that $ac_compile itself does not contain backslashes and begins
7494 # with a dollar sign (not a hyphen), so the echo should work correctly.
7495 # The option is referenced via a variable to avoid confusing sed.
7496 lt_compile=`echo "$ac_compile" | $SED \
7497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7499 -e 's:$: $lt_compiler_flag:'`
7500 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7501 (eval "$lt_compile" 2>conftest.err)
7502 ac_status=$?
7503 cat conftest.err >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 if (exit $ac_status) && test -s "$ac_outfile"; then
7506 # The compiler can only warn and ignore the option if not recognized
7507 # So say no if there are warnings other than the usual output.
7508 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7509 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7510 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7511 lt_cv_prog_compiler_rtti_exceptions=yes
7512 fi
7513 fi
7514 $RM conftest*
7515
7516 fi
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7518 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7519
7520 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7521 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7522 else
7523 :
7524 fi
7525
7526 fi
7527
7528
7529
7530
7531
7532
7533 lt_prog_compiler_wl=
7534 lt_prog_compiler_pic=
7535 lt_prog_compiler_static=
7536
7537
7538 if test "$GCC" = yes; then
7539 lt_prog_compiler_wl='-Wl,'
7540 lt_prog_compiler_static='-static'
7541
7542 case $host_os in
7543 aix*)
7544 # All AIX code is PIC.
7545 if test "$host_cpu" = ia64; then
7546 # AIX 5 now supports IA64 processor
7547 lt_prog_compiler_static='-Bstatic'
7548 fi
7549 ;;
7550
7551 amigaos*)
7552 case $host_cpu in
7553 powerpc)
7554 # see comment about AmigaOS4 .so support
7555 lt_prog_compiler_pic='-fPIC'
7556 ;;
7557 m68k)
7558 # FIXME: we need at least 68020 code to build shared libraries, but
7559 # adding the `-m68020' flag to GCC prevents building anything better,
7560 # like `-m68040'.
7561 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7562 ;;
7563 esac
7564 ;;
7565
7566 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7567 # PIC is the default for these OSes.
7568 ;;
7569
7570 mingw* | cygwin* | pw32* | os2* | cegcc*)
7571 # This hack is so that the source file can tell whether it is being
7572 # built for inclusion in a dll (and should export symbols for example).
7573 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7574 # (--disable-auto-import) libraries
7575 lt_prog_compiler_pic='-DDLL_EXPORT'
7576 ;;
7577
7578 darwin* | rhapsody*)
7579 # PIC is the default on this platform
7580 # Common symbols not allowed in MH_DYLIB files
7581 lt_prog_compiler_pic='-fno-common'
7582 ;;
7583
7584 haiku*)
7585 # PIC is the default for Haiku.
7586 # The "-static" flag exists, but is broken.
7587 lt_prog_compiler_static=
7588 ;;
7589
7590 hpux*)
7591 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7592 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7593 # sets the default TLS model and affects inlining.
7594 case $host_cpu in
7595 hppa*64*)
7596 # +Z the default
7597 ;;
7598 *)
7599 lt_prog_compiler_pic='-fPIC'
7600 ;;
7601 esac
7602 ;;
7603
7604 interix[3-9]*)
7605 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7606 # Instead, we relocate shared libraries at runtime.
7607 ;;
7608
7609 msdosdjgpp*)
7610 # Just because we use GCC doesn't mean we suddenly get shared libraries
7611 # on systems that don't support them.
7612 lt_prog_compiler_can_build_shared=no
7613 enable_shared=no
7614 ;;
7615
7616 *nto* | *qnx*)
7617 # QNX uses GNU C++, but need to define -shared option too, otherwise
7618 # it will coredump.
7619 lt_prog_compiler_pic='-fPIC -shared'
7620 ;;
7621
7622 sysv4*MP*)
7623 if test -d /usr/nec; then
7624 lt_prog_compiler_pic=-Kconform_pic
7625 fi
7626 ;;
7627
7628 *)
7629 lt_prog_compiler_pic='-fPIC'
7630 ;;
7631 esac
7632
7633 case $cc_basename in
7634 nvcc*) # Cuda Compiler Driver 2.2
7635 lt_prog_compiler_wl='-Xlinker '
7636 if test -n "$lt_prog_compiler_pic"; then
7637 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7638 fi
7639 ;;
7640 esac
7641 else
7642 # PORTME Check for flag to pass linker flags through the system compiler.
7643 case $host_os in
7644 aix*)
7645 lt_prog_compiler_wl='-Wl,'
7646 if test "$host_cpu" = ia64; then
7647 # AIX 5 now supports IA64 processor
7648 lt_prog_compiler_static='-Bstatic'
7649 else
7650 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7651 fi
7652 ;;
7653
7654 mingw* | cygwin* | pw32* | os2* | cegcc*)
7655 # This hack is so that the source file can tell whether it is being
7656 # built for inclusion in a dll (and should export symbols for example).
7657 lt_prog_compiler_pic='-DDLL_EXPORT'
7658 ;;
7659
7660 hpux9* | hpux10* | hpux11*)
7661 lt_prog_compiler_wl='-Wl,'
7662 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7663 # not for PA HP-UX.
7664 case $host_cpu in
7665 hppa*64*|ia64*)
7666 # +Z the default
7667 ;;
7668 *)
7669 lt_prog_compiler_pic='+Z'
7670 ;;
7671 esac
7672 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7673 lt_prog_compiler_static='${wl}-a ${wl}archive'
7674 ;;
7675
7676 irix5* | irix6* | nonstopux*)
7677 lt_prog_compiler_wl='-Wl,'
7678 # PIC (with -KPIC) is the default.
7679 lt_prog_compiler_static='-non_shared'
7680 ;;
7681
7682 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7683 case $cc_basename in
7684 # old Intel for x86_64 which still supported -KPIC.
7685 ecc*)
7686 lt_prog_compiler_wl='-Wl,'
7687 lt_prog_compiler_pic='-KPIC'
7688 lt_prog_compiler_static='-static'
7689 ;;
7690 # icc used to be incompatible with GCC.
7691 # ICC 10 doesn't accept -KPIC any more.
7692 icc* | ifort*)
7693 lt_prog_compiler_wl='-Wl,'
7694 lt_prog_compiler_pic='-fPIC'
7695 lt_prog_compiler_static='-static'
7696 ;;
7697 # Lahey Fortran 8.1.
7698 lf95*)
7699 lt_prog_compiler_wl='-Wl,'
7700 lt_prog_compiler_pic='--shared'
7701 lt_prog_compiler_static='--static'
7702 ;;
7703 nagfor*)
7704 # NAG Fortran compiler
7705 lt_prog_compiler_wl='-Wl,-Wl,,'
7706 lt_prog_compiler_pic='-PIC'
7707 lt_prog_compiler_static='-Bstatic'
7708 ;;
7709 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7710 # Portland Group compilers (*not* the Pentium gcc compiler,
7711 # which looks to be a dead project)
7712 lt_prog_compiler_wl='-Wl,'
7713 lt_prog_compiler_pic='-fpic'
7714 lt_prog_compiler_static='-Bstatic'
7715 ;;
7716 ccc*)
7717 lt_prog_compiler_wl='-Wl,'
7718 # All Alpha code is PIC.
7719 lt_prog_compiler_static='-non_shared'
7720 ;;
7721 xl* | bgxl* | bgf* | mpixl*)
7722 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7723 lt_prog_compiler_wl='-Wl,'
7724 lt_prog_compiler_pic='-qpic'
7725 lt_prog_compiler_static='-qstaticlink'
7726 ;;
7727 *)
7728 case `$CC -V 2>&1 | sed 5q` in
7729 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7730 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7731 lt_prog_compiler_pic='-KPIC'
7732 lt_prog_compiler_static='-Bstatic'
7733 lt_prog_compiler_wl=''
7734 ;;
7735 *Sun\ F* | *Sun*Fortran*)
7736 lt_prog_compiler_pic='-KPIC'
7737 lt_prog_compiler_static='-Bstatic'
7738 lt_prog_compiler_wl='-Qoption ld '
7739 ;;
7740 *Sun\ C*)
7741 # Sun C 5.9
7742 lt_prog_compiler_pic='-KPIC'
7743 lt_prog_compiler_static='-Bstatic'
7744 lt_prog_compiler_wl='-Wl,'
7745 ;;
7746 *Intel*\ [CF]*Compiler*)
7747 lt_prog_compiler_wl='-Wl,'
7748 lt_prog_compiler_pic='-fPIC'
7749 lt_prog_compiler_static='-static'
7750 ;;
7751 *Portland\ Group*)
7752 lt_prog_compiler_wl='-Wl,'
7753 lt_prog_compiler_pic='-fpic'
7754 lt_prog_compiler_static='-Bstatic'
7755 ;;
7756 esac
7757 ;;
7758 esac
7759 ;;
7760
7761 newsos6)
7762 lt_prog_compiler_pic='-KPIC'
7763 lt_prog_compiler_static='-Bstatic'
7764 ;;
7765
7766 *nto* | *qnx*)
7767 # QNX uses GNU C++, but need to define -shared option too, otherwise
7768 # it will coredump.
7769 lt_prog_compiler_pic='-fPIC -shared'
7770 ;;
7771
7772 osf3* | osf4* | osf5*)
7773 lt_prog_compiler_wl='-Wl,'
7774 # All OSF/1 code is PIC.
7775 lt_prog_compiler_static='-non_shared'
7776 ;;
7777
7778 rdos*)
7779 lt_prog_compiler_static='-non_shared'
7780 ;;
7781
7782 solaris*)
7783 lt_prog_compiler_pic='-KPIC'
7784 lt_prog_compiler_static='-Bstatic'
7785 case $cc_basename in
7786 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7787 lt_prog_compiler_wl='-Qoption ld ';;
7788 *)
7789 lt_prog_compiler_wl='-Wl,';;
7790 esac
7791 ;;
7792
7793 sunos4*)
7794 lt_prog_compiler_wl='-Qoption ld '
7795 lt_prog_compiler_pic='-PIC'
7796 lt_prog_compiler_static='-Bstatic'
7797 ;;
7798
7799 sysv4 | sysv4.2uw2* | sysv4.3*)
7800 lt_prog_compiler_wl='-Wl,'
7801 lt_prog_compiler_pic='-KPIC'
7802 lt_prog_compiler_static='-Bstatic'
7803 ;;
7804
7805 sysv4*MP*)
7806 if test -d /usr/nec ;then
7807 lt_prog_compiler_pic='-Kconform_pic'
7808 lt_prog_compiler_static='-Bstatic'
7809 fi
7810 ;;
7811
7812 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7813 lt_prog_compiler_wl='-Wl,'
7814 lt_prog_compiler_pic='-KPIC'
7815 lt_prog_compiler_static='-Bstatic'
7816 ;;
7817
7818 unicos*)
7819 lt_prog_compiler_wl='-Wl,'
7820 lt_prog_compiler_can_build_shared=no
7821 ;;
7822
7823 uts4*)
7824 lt_prog_compiler_pic='-pic'
7825 lt_prog_compiler_static='-Bstatic'
7826 ;;
7827
7828 *)
7829 lt_prog_compiler_can_build_shared=no
7830 ;;
7831 esac
7832 fi
7833
7834 case $host_os in
7835 # For platforms which do not support PIC, -DPIC is meaningless:
7836 *djgpp*)
7837 lt_prog_compiler_pic=
7838 ;;
7839 *)
7840 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7841 ;;
7842 esac
7843
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7845 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7846 if ${lt_cv_prog_compiler_pic+:} false; then :
7847 $as_echo_n "(cached) " >&6
7848 else
7849 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7850 fi
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7852 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7853 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7854
7855 #
7856 # Check to make sure the PIC flag actually works.
7857 #
7858 if test -n "$lt_prog_compiler_pic"; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7860 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7861 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7862 $as_echo_n "(cached) " >&6
7863 else
7864 lt_cv_prog_compiler_pic_works=no
7865 ac_outfile=conftest.$ac_objext
7866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7867 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7868 # Insert the option either (1) after the last *FLAGS variable, or
7869 # (2) before a word containing "conftest.", or (3) at the end.
7870 # Note that $ac_compile itself does not contain backslashes and begins
7871 # with a dollar sign (not a hyphen), so the echo should work correctly.
7872 # The option is referenced via a variable to avoid confusing sed.
7873 lt_compile=`echo "$ac_compile" | $SED \
7874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7876 -e 's:$: $lt_compiler_flag:'`
7877 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7878 (eval "$lt_compile" 2>conftest.err)
7879 ac_status=$?
7880 cat conftest.err >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 if (exit $ac_status) && test -s "$ac_outfile"; then
7883 # The compiler can only warn and ignore the option if not recognized
7884 # So say no if there are warnings other than the usual output.
7885 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7887 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7888 lt_cv_prog_compiler_pic_works=yes
7889 fi
7890 fi
7891 $RM conftest*
7892
7893 fi
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7895 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7896
7897 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7898 case $lt_prog_compiler_pic in
7899 "" | " "*) ;;
7900 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7901 esac
7902 else
7903 lt_prog_compiler_pic=
7904 lt_prog_compiler_can_build_shared=no
7905 fi
7906
7907 fi
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919 #
7920 # Check to make sure the static flag actually works.
7921 #
7922 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7924 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7925 if ${lt_cv_prog_compiler_static_works+:} false; then :
7926 $as_echo_n "(cached) " >&6
7927 else
7928 lt_cv_prog_compiler_static_works=no
7929 save_LDFLAGS="$LDFLAGS"
7930 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7931 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7932 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7933 # The linker can only warn and ignore the option if not recognized
7934 # So say no if there are warnings
7935 if test -s conftest.err; then
7936 # Append any errors to the config.log.
7937 cat conftest.err 1>&5
7938 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7940 if diff conftest.exp conftest.er2 >/dev/null; then
7941 lt_cv_prog_compiler_static_works=yes
7942 fi
7943 else
7944 lt_cv_prog_compiler_static_works=yes
7945 fi
7946 fi
7947 $RM -r conftest*
7948 LDFLAGS="$save_LDFLAGS"
7949
7950 fi
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7952 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7953
7954 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7955 :
7956 else
7957 lt_prog_compiler_static=
7958 fi
7959
7960
7961
7962
7963
7964
7965
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7967 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7968 if ${lt_cv_prog_compiler_c_o+:} false; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971 lt_cv_prog_compiler_c_o=no
7972 $RM -r conftest 2>/dev/null
7973 mkdir conftest
7974 cd conftest
7975 mkdir out
7976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7977
7978 lt_compiler_flag="-o out/conftest2.$ac_objext"
7979 # Insert the option either (1) after the last *FLAGS variable, or
7980 # (2) before a word containing "conftest.", or (3) at the end.
7981 # Note that $ac_compile itself does not contain backslashes and begins
7982 # with a dollar sign (not a hyphen), so the echo should work correctly.
7983 lt_compile=`echo "$ac_compile" | $SED \
7984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7986 -e 's:$: $lt_compiler_flag:'`
7987 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7988 (eval "$lt_compile" 2>out/conftest.err)
7989 ac_status=$?
7990 cat out/conftest.err >&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7993 then
7994 # The compiler can only warn and ignore the option if not recognized
7995 # So say no if there are warnings
7996 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7997 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7998 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7999 lt_cv_prog_compiler_c_o=yes
8000 fi
8001 fi
8002 chmod u+w . 2>&5
8003 $RM conftest*
8004 # SGI C++ compiler will create directory out/ii_files/ for
8005 # template instantiation
8006 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8007 $RM out/* && rmdir out
8008 cd ..
8009 $RM -r conftest
8010 $RM conftest*
8011
8012 fi
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8014 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8015
8016
8017
8018
8019
8020
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8022 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8023 if ${lt_cv_prog_compiler_c_o+:} false; then :
8024 $as_echo_n "(cached) " >&6
8025 else
8026 lt_cv_prog_compiler_c_o=no
8027 $RM -r conftest 2>/dev/null
8028 mkdir conftest
8029 cd conftest
8030 mkdir out
8031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8032
8033 lt_compiler_flag="-o out/conftest2.$ac_objext"
8034 # Insert the option either (1) after the last *FLAGS variable, or
8035 # (2) before a word containing "conftest.", or (3) at the end.
8036 # Note that $ac_compile itself does not contain backslashes and begins
8037 # with a dollar sign (not a hyphen), so the echo should work correctly.
8038 lt_compile=`echo "$ac_compile" | $SED \
8039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8041 -e 's:$: $lt_compiler_flag:'`
8042 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8043 (eval "$lt_compile" 2>out/conftest.err)
8044 ac_status=$?
8045 cat out/conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8048 then
8049 # The compiler can only warn and ignore the option if not recognized
8050 # So say no if there are warnings
8051 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8053 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8054 lt_cv_prog_compiler_c_o=yes
8055 fi
8056 fi
8057 chmod u+w . 2>&5
8058 $RM conftest*
8059 # SGI C++ compiler will create directory out/ii_files/ for
8060 # template instantiation
8061 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8062 $RM out/* && rmdir out
8063 cd ..
8064 $RM -r conftest
8065 $RM conftest*
8066
8067 fi
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8069 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8070
8071
8072
8073
8074 hard_links="nottested"
8075 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8076 # do not overwrite the value of need_locks provided by the user
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8078 $as_echo_n "checking if we can lock with hard links... " >&6; }
8079 hard_links=yes
8080 $RM conftest*
8081 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8082 touch conftest.a
8083 ln conftest.a conftest.b 2>&5 || hard_links=no
8084 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8086 $as_echo "$hard_links" >&6; }
8087 if test "$hard_links" = no; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8089 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8090 need_locks=warn
8091 fi
8092 else
8093 need_locks=no
8094 fi
8095
8096
8097
8098
8099
8100
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8102 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8103
8104 runpath_var=
8105 allow_undefined_flag=
8106 always_export_symbols=no
8107 archive_cmds=
8108 archive_expsym_cmds=
8109 compiler_needs_object=no
8110 enable_shared_with_static_runtimes=no
8111 export_dynamic_flag_spec=
8112 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8113 hardcode_automatic=no
8114 hardcode_direct=no
8115 hardcode_direct_absolute=no
8116 hardcode_libdir_flag_spec=
8117 hardcode_libdir_separator=
8118 hardcode_minus_L=no
8119 hardcode_shlibpath_var=unsupported
8120 inherit_rpath=no
8121 link_all_deplibs=unknown
8122 module_cmds=
8123 module_expsym_cmds=
8124 old_archive_from_new_cmds=
8125 old_archive_from_expsyms_cmds=
8126 thread_safe_flag_spec=
8127 whole_archive_flag_spec=
8128 # include_expsyms should be a list of space-separated symbols to be *always*
8129 # included in the symbol list
8130 include_expsyms=
8131 # exclude_expsyms can be an extended regexp of symbols to exclude
8132 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8133 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8134 # as well as any symbol that contains `d'.
8135 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8136 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8137 # platforms (ab)use it in PIC code, but their linkers get confused if
8138 # the symbol is explicitly referenced. Since portable code cannot
8139 # rely on this symbol name, it's probably fine to never include it in
8140 # preloaded symbol tables.
8141 # Exclude shared library initialization/finalization symbols.
8142 extract_expsyms_cmds=
8143
8144 case $host_os in
8145 cygwin* | mingw* | pw32* | cegcc*)
8146 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8147 # When not using gcc, we currently assume that we are using
8148 # Microsoft Visual C++.
8149 if test "$GCC" != yes; then
8150 with_gnu_ld=no
8151 fi
8152 ;;
8153 interix*)
8154 # we just hope/assume this is gcc and not c89 (= MSVC++)
8155 with_gnu_ld=yes
8156 ;;
8157 openbsd*)
8158 with_gnu_ld=no
8159 ;;
8160 linux* | k*bsd*-gnu | gnu*)
8161 link_all_deplibs=no
8162 ;;
8163 esac
8164
8165 ld_shlibs=yes
8166
8167 # On some targets, GNU ld is compatible enough with the native linker
8168 # that we're better off using the native interface for both.
8169 lt_use_gnu_ld_interface=no
8170 if test "$with_gnu_ld" = yes; then
8171 case $host_os in
8172 aix*)
8173 # The AIX port of GNU ld has always aspired to compatibility
8174 # with the native linker. However, as the warning in the GNU ld
8175 # block says, versions before 2.19.5* couldn't really create working
8176 # shared libraries, regardless of the interface used.
8177 case `$LD -v 2>&1` in
8178 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8179 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8180 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8181 *)
8182 lt_use_gnu_ld_interface=yes
8183 ;;
8184 esac
8185 ;;
8186 *)
8187 lt_use_gnu_ld_interface=yes
8188 ;;
8189 esac
8190 fi
8191
8192 if test "$lt_use_gnu_ld_interface" = yes; then
8193 # If archive_cmds runs LD, not CC, wlarc should be empty
8194 wlarc='${wl}'
8195
8196 # Set some defaults for GNU ld with shared library support. These
8197 # are reset later if shared libraries are not supported. Putting them
8198 # here allows them to be overridden if necessary.
8199 runpath_var=LD_RUN_PATH
8200 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8201 export_dynamic_flag_spec='${wl}--export-dynamic'
8202 # ancient GNU ld didn't support --whole-archive et. al.
8203 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8204 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8205 else
8206 whole_archive_flag_spec=
8207 fi
8208 supports_anon_versioning=no
8209 case `$LD -v 2>&1` in
8210 *GNU\ gold*) supports_anon_versioning=yes ;;
8211 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8212 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8213 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8214 *\ 2.11.*) ;; # other 2.11 versions
8215 *) supports_anon_versioning=yes ;;
8216 esac
8217
8218 # See if GNU ld supports shared libraries.
8219 case $host_os in
8220 aix[3-9]*)
8221 # On AIX/PPC, the GNU linker is very broken
8222 if test "$host_cpu" != ia64; then
8223 ld_shlibs=no
8224 cat <<_LT_EOF 1>&2
8225
8226 *** Warning: the GNU linker, at least up to release 2.19, is reported
8227 *** to be unable to reliably create shared libraries on AIX.
8228 *** Therefore, libtool is disabling shared libraries support. If you
8229 *** really care for shared libraries, you may want to install binutils
8230 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8231 *** You will then need to restart the configuration process.
8232
8233 _LT_EOF
8234 fi
8235 ;;
8236
8237 amigaos*)
8238 case $host_cpu in
8239 powerpc)
8240 # see comment about AmigaOS4 .so support
8241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8242 archive_expsym_cmds=''
8243 ;;
8244 m68k)
8245 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)'
8246 hardcode_libdir_flag_spec='-L$libdir'
8247 hardcode_minus_L=yes
8248 ;;
8249 esac
8250 ;;
8251
8252 beos*)
8253 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8254 allow_undefined_flag=unsupported
8255 # Joseph Beckenbach <[email protected]> says some releases of gcc
8256 # support --undefined. This deserves some investigation. FIXME
8257 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8258 else
8259 ld_shlibs=no
8260 fi
8261 ;;
8262
8263 cygwin* | mingw* | pw32* | cegcc*)
8264 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8265 # as there is no search path for DLLs.
8266 hardcode_libdir_flag_spec='-L$libdir'
8267 export_dynamic_flag_spec='${wl}--export-all-symbols'
8268 allow_undefined_flag=unsupported
8269 always_export_symbols=no
8270 enable_shared_with_static_runtimes=yes
8271 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'
8272 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8273
8274 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8276 # If the export-symbols file already is a .def file (1st line
8277 # is EXPORTS), use it as is; otherwise, prepend...
8278 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8279 cp $export_symbols $output_objdir/$soname.def;
8280 else
8281 echo EXPORTS > $output_objdir/$soname.def;
8282 cat $export_symbols >> $output_objdir/$soname.def;
8283 fi~
8284 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8285 else
8286 ld_shlibs=no
8287 fi
8288 ;;
8289
8290 haiku*)
8291 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8292 link_all_deplibs=yes
8293 ;;
8294
8295 interix[3-9]*)
8296 hardcode_direct=no
8297 hardcode_shlibpath_var=no
8298 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8299 export_dynamic_flag_spec='${wl}-E'
8300 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8301 # Instead, shared libraries are loaded at an image base (0x10000000 by
8302 # default) and relocated if they conflict, which is a slow very memory
8303 # consuming and fragmenting process. To avoid this, we pick a random,
8304 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8305 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8306 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8307 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'
8308 ;;
8309
8310 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8311 tmp_diet=no
8312 if test "$host_os" = linux-dietlibc; then
8313 case $cc_basename in
8314 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8315 esac
8316 fi
8317 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8318 && test "$tmp_diet" = no
8319 then
8320 tmp_addflag=' $pic_flag'
8321 tmp_sharedflag='-shared'
8322 case $cc_basename,$host_cpu in
8323 pgcc*) # Portland Group C compiler
8324 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'
8325 tmp_addflag=' $pic_flag'
8326 ;;
8327 pgf77* | pgf90* | pgf95* | pgfortran*)
8328 # Portland Group f77 and f90 compilers
8329 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'
8330 tmp_addflag=' $pic_flag -Mnomain' ;;
8331 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8332 tmp_addflag=' -i_dynamic' ;;
8333 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8334 tmp_addflag=' -i_dynamic -nofor_main' ;;
8335 ifc* | ifort*) # Intel Fortran compiler
8336 tmp_addflag=' -nofor_main' ;;
8337 lf95*) # Lahey Fortran 8.1
8338 whole_archive_flag_spec=
8339 tmp_sharedflag='--shared' ;;
8340 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8341 tmp_sharedflag='-qmkshrobj'
8342 tmp_addflag= ;;
8343 nvcc*) # Cuda Compiler Driver 2.2
8344 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'
8345 compiler_needs_object=yes
8346 ;;
8347 esac
8348 case `$CC -V 2>&1 | sed 5q` in
8349 *Sun\ C*) # Sun C 5.9
8350 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'
8351 compiler_needs_object=yes
8352 tmp_sharedflag='-G' ;;
8353 *Sun\ F*) # Sun Fortran 8.3
8354 tmp_sharedflag='-G' ;;
8355 esac
8356 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8357
8358 if test "x$supports_anon_versioning" = xyes; then
8359 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8360 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8361 echo "local: *; };" >> $output_objdir/$libname.ver~
8362 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8363 fi
8364
8365 case $cc_basename in
8366 xlf* | bgf* | bgxlf* | mpixlf*)
8367 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8368 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8370 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8371 if test "x$supports_anon_versioning" = xyes; then
8372 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8373 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8374 echo "local: *; };" >> $output_objdir/$libname.ver~
8375 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8376 fi
8377 ;;
8378 esac
8379 else
8380 ld_shlibs=no
8381 fi
8382 ;;
8383
8384 netbsd* | netbsdelf*-gnu)
8385 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8386 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8387 wlarc=
8388 else
8389 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8390 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8391 fi
8392 ;;
8393
8394 solaris*)
8395 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8396 ld_shlibs=no
8397 cat <<_LT_EOF 1>&2
8398
8399 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8400 *** create shared libraries on Solaris systems. Therefore, libtool
8401 *** is disabling shared libraries support. We urge you to upgrade GNU
8402 *** binutils to release 2.9.1 or newer. Another option is to modify
8403 *** your PATH or compiler configuration so that the native linker is
8404 *** used, and then restart.
8405
8406 _LT_EOF
8407 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8408 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8409 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8410 else
8411 ld_shlibs=no
8412 fi
8413 ;;
8414
8415 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8416 case `$LD -v 2>&1` in
8417 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8418 ld_shlibs=no
8419 cat <<_LT_EOF 1>&2
8420
8421 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8422 *** reliably create shared libraries on SCO systems. Therefore, libtool
8423 *** is disabling shared libraries support. We urge you to upgrade GNU
8424 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8425 *** your PATH or compiler configuration so that the native linker is
8426 *** used, and then restart.
8427
8428 _LT_EOF
8429 ;;
8430 *)
8431 # For security reasons, it is highly recommended that you always
8432 # use absolute paths for naming shared libraries, and exclude the
8433 # DT_RUNPATH tag from executables and libraries. But doing so
8434 # requires that you compile everything twice, which is a pain.
8435 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8436 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8437 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8438 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8439 else
8440 ld_shlibs=no
8441 fi
8442 ;;
8443 esac
8444 ;;
8445
8446 sunos4*)
8447 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8448 wlarc=
8449 hardcode_direct=yes
8450 hardcode_shlibpath_var=no
8451 ;;
8452
8453 *)
8454 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8455 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8456 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8457 else
8458 ld_shlibs=no
8459 fi
8460 ;;
8461 esac
8462
8463 if test "$ld_shlibs" = no; then
8464 runpath_var=
8465 hardcode_libdir_flag_spec=
8466 export_dynamic_flag_spec=
8467 whole_archive_flag_spec=
8468 fi
8469 else
8470 # PORTME fill in a description of your system's linker (not GNU ld)
8471 case $host_os in
8472 aix3*)
8473 allow_undefined_flag=unsupported
8474 always_export_symbols=yes
8475 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'
8476 # Note: this linker hardcodes the directories in LIBPATH if there
8477 # are no directories specified by -L.
8478 hardcode_minus_L=yes
8479 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8480 # Neither direct hardcoding nor static linking is supported with a
8481 # broken collect2.
8482 hardcode_direct=unsupported
8483 fi
8484 ;;
8485
8486 aix[4-9]*)
8487 if test "$host_cpu" = ia64; then
8488 # On IA64, the linker does run time linking by default, so we don't
8489 # have to do anything special.
8490 aix_use_runtimelinking=no
8491 exp_sym_flag='-Bexport'
8492 no_entry_flag=""
8493 else
8494 # If we're using GNU nm, then we don't want the "-C" option.
8495 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8496 # Also, AIX nm treats weak defined symbols like other global
8497 # defined symbols, whereas GNU nm marks them as "W".
8498 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8499 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'
8500 else
8501 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'
8502 fi
8503 aix_use_runtimelinking=no
8504
8505 # Test if we are trying to use run time linking or normal
8506 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8507 # need to do runtime linking.
8508 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8509 for ld_flag in $LDFLAGS; do
8510 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8511 aix_use_runtimelinking=yes
8512 break
8513 fi
8514 done
8515 ;;
8516 esac
8517
8518 exp_sym_flag='-bexport'
8519 no_entry_flag='-bnoentry'
8520 fi
8521
8522 # When large executables or shared objects are built, AIX ld can
8523 # have problems creating the table of contents. If linking a library
8524 # or program results in "error TOC overflow" add -mminimal-toc to
8525 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8526 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8527
8528 archive_cmds=''
8529 hardcode_direct=yes
8530 hardcode_direct_absolute=yes
8531 hardcode_libdir_separator=':'
8532 link_all_deplibs=yes
8533 file_list_spec='${wl}-f,'
8534
8535 if test "$GCC" = yes; then
8536 case $host_os in aix4.[012]|aix4.[012].*)
8537 # We only want to do this on AIX 4.2 and lower, the check
8538 # below for broken collect2 doesn't work under 4.3+
8539 collect2name=`${CC} -print-prog-name=collect2`
8540 if test -f "$collect2name" &&
8541 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8542 then
8543 # We have reworked collect2
8544 :
8545 else
8546 # We have old collect2
8547 hardcode_direct=unsupported
8548 # It fails to find uninstalled libraries when the uninstalled
8549 # path is not listed in the libpath. Setting hardcode_minus_L
8550 # to unsupported forces relinking
8551 hardcode_minus_L=yes
8552 hardcode_libdir_flag_spec='-L$libdir'
8553 hardcode_libdir_separator=
8554 fi
8555 ;;
8556 esac
8557 shared_flag='-shared'
8558 if test "$aix_use_runtimelinking" = yes; then
8559 shared_flag="$shared_flag "'${wl}-G'
8560 fi
8561 link_all_deplibs=no
8562 else
8563 # not using gcc
8564 if test "$host_cpu" = ia64; then
8565 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8566 # chokes on -Wl,-G. The following line is correct:
8567 shared_flag='-G'
8568 else
8569 if test "$aix_use_runtimelinking" = yes; then
8570 shared_flag='${wl}-G'
8571 else
8572 shared_flag='${wl}-bM:SRE'
8573 fi
8574 fi
8575 fi
8576
8577 export_dynamic_flag_spec='${wl}-bexpall'
8578 # It seems that -bexpall does not export symbols beginning with
8579 # underscore (_), so it is better to generate a list of symbols to export.
8580 always_export_symbols=yes
8581 if test "$aix_use_runtimelinking" = yes; then
8582 # Warning - without using the other runtime loading flags (-brtl),
8583 # -berok will link without error, but may produce a broken library.
8584 allow_undefined_flag='-berok'
8585 # Determine the default libpath from the value encoded in an
8586 # empty executable.
8587 if test "${lt_cv_aix_libpath+set}" = set; then
8588 aix_libpath=$lt_cv_aix_libpath
8589 else
8590 if ${lt_cv_aix_libpath_+:} false; then :
8591 $as_echo_n "(cached) " >&6
8592 else
8593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594 /* end confdefs.h. */
8595
8596 int
8597 main ()
8598 {
8599
8600 ;
8601 return 0;
8602 }
8603 _ACEOF
8604 if ac_fn_c_try_link "$LINENO"; then :
8605
8606 lt_aix_libpath_sed='
8607 /Import File Strings/,/^$/ {
8608 /^0/ {
8609 s/^0 *\([^ ]*\) *$/\1/
8610 p
8611 }
8612 }'
8613 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8614 # Check for a 64-bit object if we didn't find anything.
8615 if test -z "$lt_cv_aix_libpath_"; then
8616 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8617 fi
8618 fi
8619 rm -f core conftest.err conftest.$ac_objext \
8620 conftest$ac_exeext conftest.$ac_ext
8621 if test -z "$lt_cv_aix_libpath_"; then
8622 lt_cv_aix_libpath_="/usr/lib:/lib"
8623 fi
8624
8625 fi
8626
8627 aix_libpath=$lt_cv_aix_libpath_
8628 fi
8629
8630 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8631 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"
8632 else
8633 if test "$host_cpu" = ia64; then
8634 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8635 allow_undefined_flag="-z nodefs"
8636 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"
8637 else
8638 # Determine the default libpath from the value encoded in an
8639 # empty executable.
8640 if test "${lt_cv_aix_libpath+set}" = set; then
8641 aix_libpath=$lt_cv_aix_libpath
8642 else
8643 if ${lt_cv_aix_libpath_+:} false; then :
8644 $as_echo_n "(cached) " >&6
8645 else
8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h. */
8648
8649 int
8650 main ()
8651 {
8652
8653 ;
8654 return 0;
8655 }
8656 _ACEOF
8657 if ac_fn_c_try_link "$LINENO"; then :
8658
8659 lt_aix_libpath_sed='
8660 /Import File Strings/,/^$/ {
8661 /^0/ {
8662 s/^0 *\([^ ]*\) *$/\1/
8663 p
8664 }
8665 }'
8666 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8667 # Check for a 64-bit object if we didn't find anything.
8668 if test -z "$lt_cv_aix_libpath_"; then
8669 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8670 fi
8671 fi
8672 rm -f core conftest.err conftest.$ac_objext \
8673 conftest$ac_exeext conftest.$ac_ext
8674 if test -z "$lt_cv_aix_libpath_"; then
8675 lt_cv_aix_libpath_="/usr/lib:/lib"
8676 fi
8677
8678 fi
8679
8680 aix_libpath=$lt_cv_aix_libpath_
8681 fi
8682
8683 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8684 # Warning - without using the other run time loading flags,
8685 # -berok will link without error, but may produce a broken library.
8686 no_undefined_flag=' ${wl}-bernotok'
8687 allow_undefined_flag=' ${wl}-berok'
8688 if test "$with_gnu_ld" = yes; then
8689 # We only use this code for GNU lds that support --whole-archive.
8690 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8691 else
8692 # Exported symbols can be pulled into shared objects from archives
8693 whole_archive_flag_spec='$convenience'
8694 fi
8695 archive_cmds_need_lc=yes
8696 # This is similar to how AIX traditionally builds its shared libraries.
8697 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'
8698 fi
8699 fi
8700 ;;
8701
8702 amigaos*)
8703 case $host_cpu in
8704 powerpc)
8705 # see comment about AmigaOS4 .so support
8706 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8707 archive_expsym_cmds=''
8708 ;;
8709 m68k)
8710 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)'
8711 hardcode_libdir_flag_spec='-L$libdir'
8712 hardcode_minus_L=yes
8713 ;;
8714 esac
8715 ;;
8716
8717 bsdi[45]*)
8718 export_dynamic_flag_spec=-rdynamic
8719 ;;
8720
8721 cygwin* | mingw* | pw32* | cegcc*)
8722 # When not using gcc, we currently assume that we are using
8723 # Microsoft Visual C++.
8724 # hardcode_libdir_flag_spec is actually meaningless, as there is
8725 # no search path for DLLs.
8726 case $cc_basename in
8727 cl*)
8728 # Native MSVC
8729 hardcode_libdir_flag_spec=' '
8730 allow_undefined_flag=unsupported
8731 always_export_symbols=yes
8732 file_list_spec='@'
8733 # Tell ltmain to make .lib files, not .a files.
8734 libext=lib
8735 # Tell ltmain to make .dll files, not .so files.
8736 shrext_cmds=".dll"
8737 # FIXME: Setting linknames here is a bad hack.
8738 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8739 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8740 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8741 else
8742 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8743 fi~
8744 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8745 linknames='
8746 # The linker will not automatically build a static lib if we build a DLL.
8747 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8748 enable_shared_with_static_runtimes=yes
8749 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8750 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8751 # Don't use ranlib
8752 old_postinstall_cmds='chmod 644 $oldlib'
8753 postlink_cmds='lt_outputfile="@OUTPUT@"~
8754 lt_tool_outputfile="@TOOL_OUTPUT@"~
8755 case $lt_outputfile in
8756 *.exe|*.EXE) ;;
8757 *)
8758 lt_outputfile="$lt_outputfile.exe"
8759 lt_tool_outputfile="$lt_tool_outputfile.exe"
8760 ;;
8761 esac~
8762 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8763 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8764 $RM "$lt_outputfile.manifest";
8765 fi'
8766 ;;
8767 *)
8768 # Assume MSVC wrapper
8769 hardcode_libdir_flag_spec=' '
8770 allow_undefined_flag=unsupported
8771 # Tell ltmain to make .lib files, not .a files.
8772 libext=lib
8773 # Tell ltmain to make .dll files, not .so files.
8774 shrext_cmds=".dll"
8775 # FIXME: Setting linknames here is a bad hack.
8776 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8777 # The linker will automatically build a .lib file if we build a DLL.
8778 old_archive_from_new_cmds='true'
8779 # FIXME: Should let the user specify the lib program.
8780 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8781 enable_shared_with_static_runtimes=yes
8782 ;;
8783 esac
8784 ;;
8785
8786 darwin* | rhapsody*)
8787
8788
8789 archive_cmds_need_lc=no
8790 hardcode_direct=no
8791 hardcode_automatic=yes
8792 hardcode_shlibpath_var=unsupported
8793 if test "$lt_cv_ld_force_load" = "yes"; then
8794 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\"`'
8795
8796 else
8797 whole_archive_flag_spec=''
8798 fi
8799 link_all_deplibs=yes
8800 allow_undefined_flag="$_lt_dar_allow_undefined"
8801 case $cc_basename in
8802 ifort*) _lt_dar_can_shared=yes ;;
8803 *) _lt_dar_can_shared=$GCC ;;
8804 esac
8805 if test "$_lt_dar_can_shared" = "yes"; then
8806 output_verbose_link_cmd=func_echo_all
8807 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8808 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8809 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}"
8810 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}"
8811
8812 else
8813 ld_shlibs=no
8814 fi
8815
8816 ;;
8817
8818 dgux*)
8819 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8820 hardcode_libdir_flag_spec='-L$libdir'
8821 hardcode_shlibpath_var=no
8822 ;;
8823
8824 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8825 # support. Future versions do this automatically, but an explicit c++rt0.o
8826 # does not break anything, and helps significantly (at the cost of a little
8827 # extra space).
8828 freebsd2.2*)
8829 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8830 hardcode_libdir_flag_spec='-R$libdir'
8831 hardcode_direct=yes
8832 hardcode_shlibpath_var=no
8833 ;;
8834
8835 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8836 freebsd2.*)
8837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8838 hardcode_direct=yes
8839 hardcode_minus_L=yes
8840 hardcode_shlibpath_var=no
8841 ;;
8842
8843 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8844 freebsd* | dragonfly*)
8845 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8846 hardcode_libdir_flag_spec='-R$libdir'
8847 hardcode_direct=yes
8848 hardcode_shlibpath_var=no
8849 ;;
8850
8851 hpux9*)
8852 if test "$GCC" = yes; then
8853 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'
8854 else
8855 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'
8856 fi
8857 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8858 hardcode_libdir_separator=:
8859 hardcode_direct=yes
8860
8861 # hardcode_minus_L: Not really in the search PATH,
8862 # but as the default location of the library.
8863 hardcode_minus_L=yes
8864 export_dynamic_flag_spec='${wl}-E'
8865 ;;
8866
8867 hpux10*)
8868 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8869 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8870 else
8871 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8872 fi
8873 if test "$with_gnu_ld" = no; then
8874 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8875 hardcode_libdir_separator=:
8876 hardcode_direct=yes
8877 hardcode_direct_absolute=yes
8878 export_dynamic_flag_spec='${wl}-E'
8879 # hardcode_minus_L: Not really in the search PATH,
8880 # but as the default location of the library.
8881 hardcode_minus_L=yes
8882 fi
8883 ;;
8884
8885 hpux11*)
8886 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8887 case $host_cpu in
8888 hppa*64*)
8889 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8890 ;;
8891 ia64*)
8892 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8893 ;;
8894 *)
8895 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8896 ;;
8897 esac
8898 else
8899 case $host_cpu in
8900 hppa*64*)
8901 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8902 ;;
8903 ia64*)
8904 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8905 ;;
8906 *)
8907
8908 # Older versions of the 11.00 compiler do not understand -b yet
8909 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8911 $as_echo_n "checking if $CC understands -b... " >&6; }
8912 if ${lt_cv_prog_compiler__b+:} false; then :
8913 $as_echo_n "(cached) " >&6
8914 else
8915 lt_cv_prog_compiler__b=no
8916 save_LDFLAGS="$LDFLAGS"
8917 LDFLAGS="$LDFLAGS -b"
8918 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8919 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8920 # The linker can only warn and ignore the option if not recognized
8921 # So say no if there are warnings
8922 if test -s conftest.err; then
8923 # Append any errors to the config.log.
8924 cat conftest.err 1>&5
8925 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8926 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8927 if diff conftest.exp conftest.er2 >/dev/null; then
8928 lt_cv_prog_compiler__b=yes
8929 fi
8930 else
8931 lt_cv_prog_compiler__b=yes
8932 fi
8933 fi
8934 $RM -r conftest*
8935 LDFLAGS="$save_LDFLAGS"
8936
8937 fi
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8939 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8940
8941 if test x"$lt_cv_prog_compiler__b" = xyes; then
8942 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8943 else
8944 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8945 fi
8946
8947 ;;
8948 esac
8949 fi
8950 if test "$with_gnu_ld" = no; then
8951 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8952 hardcode_libdir_separator=:
8953
8954 case $host_cpu in
8955 hppa*64*|ia64*)
8956 hardcode_direct=no
8957 hardcode_shlibpath_var=no
8958 ;;
8959 *)
8960 hardcode_direct=yes
8961 hardcode_direct_absolute=yes
8962 export_dynamic_flag_spec='${wl}-E'
8963
8964 # hardcode_minus_L: Not really in the search PATH,
8965 # but as the default location of the library.
8966 hardcode_minus_L=yes
8967 ;;
8968 esac
8969 fi
8970 ;;
8971
8972 irix5* | irix6* | nonstopux*)
8973 if test "$GCC" = yes; then
8974 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'
8975 # Try to use the -exported_symbol ld option, if it does not
8976 # work, assume that -exports_file does not work either and
8977 # implicitly export all symbols.
8978 # This should be the same for all languages, so no per-tag cache variable.
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
8980 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
8981 if ${lt_cv_irix_exported_symbol+:} false; then :
8982 $as_echo_n "(cached) " >&6
8983 else
8984 save_LDFLAGS="$LDFLAGS"
8985 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8988 int foo (void) { return 0; }
8989 _ACEOF
8990 if ac_fn_c_try_link "$LINENO"; then :
8991 lt_cv_irix_exported_symbol=yes
8992 else
8993 lt_cv_irix_exported_symbol=no
8994 fi
8995 rm -f core conftest.err conftest.$ac_objext \
8996 conftest$ac_exeext conftest.$ac_ext
8997 LDFLAGS="$save_LDFLAGS"
8998 fi
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9000 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9001 if test "$lt_cv_irix_exported_symbol" = yes; then
9002 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'
9003 fi
9004 else
9005 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'
9006 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'
9007 fi
9008 archive_cmds_need_lc='no'
9009 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9010 hardcode_libdir_separator=:
9011 inherit_rpath=yes
9012 link_all_deplibs=yes
9013 ;;
9014
9015 netbsd* | netbsdelf*-gnu)
9016 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9017 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9018 else
9019 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9020 fi
9021 hardcode_libdir_flag_spec='-R$libdir'
9022 hardcode_direct=yes
9023 hardcode_shlibpath_var=no
9024 ;;
9025
9026 newsos6)
9027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9028 hardcode_direct=yes
9029 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9030 hardcode_libdir_separator=:
9031 hardcode_shlibpath_var=no
9032 ;;
9033
9034 *nto* | *qnx*)
9035 ;;
9036
9037 openbsd*)
9038 if test -f /usr/libexec/ld.so; then
9039 hardcode_direct=yes
9040 hardcode_shlibpath_var=no
9041 hardcode_direct_absolute=yes
9042 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9043 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9044 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9045 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9046 export_dynamic_flag_spec='${wl}-E'
9047 else
9048 case $host_os in
9049 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9050 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9051 hardcode_libdir_flag_spec='-R$libdir'
9052 ;;
9053 *)
9054 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9055 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9056 ;;
9057 esac
9058 fi
9059 else
9060 ld_shlibs=no
9061 fi
9062 ;;
9063
9064 os2*)
9065 hardcode_libdir_flag_spec='-L$libdir'
9066 hardcode_minus_L=yes
9067 allow_undefined_flag=unsupported
9068 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'
9069 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9070 ;;
9071
9072 osf3*)
9073 if test "$GCC" = yes; then
9074 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9075 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'
9076 else
9077 allow_undefined_flag=' -expect_unresolved \*'
9078 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'
9079 fi
9080 archive_cmds_need_lc='no'
9081 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9082 hardcode_libdir_separator=:
9083 ;;
9084
9085 osf4* | osf5*) # as osf3* with the addition of -msym flag
9086 if test "$GCC" = yes; then
9087 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9088 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'
9089 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9090 else
9091 allow_undefined_flag=' -expect_unresolved \*'
9092 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'
9093 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~
9094 $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'
9095
9096 # Both c and cxx compiler support -rpath directly
9097 hardcode_libdir_flag_spec='-rpath $libdir'
9098 fi
9099 archive_cmds_need_lc='no'
9100 hardcode_libdir_separator=:
9101 ;;
9102
9103 solaris*)
9104 no_undefined_flag=' -z defs'
9105 if test "$GCC" = yes; then
9106 wlarc='${wl}'
9107 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9108 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9109 $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'
9110 else
9111 case `$CC -V 2>&1` in
9112 *"Compilers 5.0"*)
9113 wlarc=''
9114 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9115 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9116 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9117 ;;
9118 *)
9119 wlarc='${wl}'
9120 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9121 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9122 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9123 ;;
9124 esac
9125 fi
9126 hardcode_libdir_flag_spec='-R$libdir'
9127 hardcode_shlibpath_var=no
9128 case $host_os in
9129 solaris2.[0-5] | solaris2.[0-5].*) ;;
9130 *)
9131 # The compiler driver will combine and reorder linker options,
9132 # but understands `-z linker_flag'. GCC discards it without `$wl',
9133 # but is careful enough not to reorder.
9134 # Supported since Solaris 2.6 (maybe 2.5.1?)
9135 if test "$GCC" = yes; then
9136 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9137 else
9138 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9139 fi
9140 ;;
9141 esac
9142 link_all_deplibs=yes
9143 ;;
9144
9145 sunos4*)
9146 if test "x$host_vendor" = xsequent; then
9147 # Use $CC to link under sequent, because it throws in some extra .o
9148 # files that make .init and .fini sections work.
9149 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9150 else
9151 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9152 fi
9153 hardcode_libdir_flag_spec='-L$libdir'
9154 hardcode_direct=yes
9155 hardcode_minus_L=yes
9156 hardcode_shlibpath_var=no
9157 ;;
9158
9159 sysv4)
9160 case $host_vendor in
9161 sni)
9162 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9163 hardcode_direct=yes # is this really true???
9164 ;;
9165 siemens)
9166 ## LD is ld it makes a PLAMLIB
9167 ## CC just makes a GrossModule.
9168 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9169 reload_cmds='$CC -r -o $output$reload_objs'
9170 hardcode_direct=no
9171 ;;
9172 motorola)
9173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9174 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9175 ;;
9176 esac
9177 runpath_var='LD_RUN_PATH'
9178 hardcode_shlibpath_var=no
9179 ;;
9180
9181 sysv4.3*)
9182 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9183 hardcode_shlibpath_var=no
9184 export_dynamic_flag_spec='-Bexport'
9185 ;;
9186
9187 sysv4*MP*)
9188 if test -d /usr/nec; then
9189 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9190 hardcode_shlibpath_var=no
9191 runpath_var=LD_RUN_PATH
9192 hardcode_runpath_var=yes
9193 ld_shlibs=yes
9194 fi
9195 ;;
9196
9197 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9198 no_undefined_flag='${wl}-z,text'
9199 archive_cmds_need_lc=no
9200 hardcode_shlibpath_var=no
9201 runpath_var='LD_RUN_PATH'
9202
9203 if test "$GCC" = yes; then
9204 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9205 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9206 else
9207 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9208 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9209 fi
9210 ;;
9211
9212 sysv5* | sco3.2v5* | sco5v6*)
9213 # Note: We can NOT use -z defs as we might desire, because we do not
9214 # link with -lc, and that would cause any symbols used from libc to
9215 # always be unresolved, which means just about no library would
9216 # ever link correctly. If we're not using GNU ld we use -z text
9217 # though, which does catch some bad symbols but isn't as heavy-handed
9218 # as -z defs.
9219 no_undefined_flag='${wl}-z,text'
9220 allow_undefined_flag='${wl}-z,nodefs'
9221 archive_cmds_need_lc=no
9222 hardcode_shlibpath_var=no
9223 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9224 hardcode_libdir_separator=':'
9225 link_all_deplibs=yes
9226 export_dynamic_flag_spec='${wl}-Bexport'
9227 runpath_var='LD_RUN_PATH'
9228
9229 if test "$GCC" = yes; then
9230 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9231 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9232 else
9233 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9234 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9235 fi
9236 ;;
9237
9238 uts4*)
9239 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9240 hardcode_libdir_flag_spec='-L$libdir'
9241 hardcode_shlibpath_var=no
9242 ;;
9243
9244 *)
9245 ld_shlibs=no
9246 ;;
9247 esac
9248
9249 if test x$host_vendor = xsni; then
9250 case $host in
9251 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9252 export_dynamic_flag_spec='${wl}-Blargedynsym'
9253 ;;
9254 esac
9255 fi
9256 fi
9257
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9259 $as_echo "$ld_shlibs" >&6; }
9260 test "$ld_shlibs" = no && can_build_shared=no
9261
9262 with_gnu_ld=$with_gnu_ld
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278 #
9279 # Do we need to explicitly link libc?
9280 #
9281 case "x$archive_cmds_need_lc" in
9282 x|xyes)
9283 # Assume -lc should be added
9284 archive_cmds_need_lc=yes
9285
9286 if test "$enable_shared" = yes && test "$GCC" = yes; then
9287 case $archive_cmds in
9288 *'~'*)
9289 # FIXME: we may have to deal with multi-command sequences.
9290 ;;
9291 '$CC '*)
9292 # Test whether the compiler implicitly links with -lc since on some
9293 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9294 # to ld, don't add -lc before -lgcc.
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9296 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9297 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9298 $as_echo_n "(cached) " >&6
9299 else
9300 $RM conftest*
9301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9302
9303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9304 (eval $ac_compile) 2>&5
9305 ac_status=$?
9306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9307 test $ac_status = 0; } 2>conftest.err; then
9308 soname=conftest
9309 lib=conftest
9310 libobjs=conftest.$ac_objext
9311 deplibs=
9312 wl=$lt_prog_compiler_wl
9313 pic_flag=$lt_prog_compiler_pic
9314 compiler_flags=-v
9315 linker_flags=-v
9316 verstring=
9317 output_objdir=.
9318 libname=conftest
9319 lt_save_allow_undefined_flag=$allow_undefined_flag
9320 allow_undefined_flag=
9321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9322 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9323 ac_status=$?
9324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9325 test $ac_status = 0; }
9326 then
9327 lt_cv_archive_cmds_need_lc=no
9328 else
9329 lt_cv_archive_cmds_need_lc=yes
9330 fi
9331 allow_undefined_flag=$lt_save_allow_undefined_flag
9332 else
9333 cat conftest.err 1>&5
9334 fi
9335 $RM conftest*
9336
9337 fi
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9339 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9340 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9341 ;;
9342 esac
9343 fi
9344 ;;
9345 esac
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9499 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9500
9501 if test "$GCC" = yes; then
9502 case $host_os in
9503 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9504 *) lt_awk_arg="/^libraries:/" ;;
9505 esac
9506 case $host_os in
9507 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9508 *) lt_sed_strip_eq="s,=/,/,g" ;;
9509 esac
9510 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9511 case $lt_search_path_spec in
9512 *\;*)
9513 # if the path contains ";" then we assume it to be the separator
9514 # otherwise default to the standard path separator (i.e. ":") - it is
9515 # assumed that no part of a normal pathname contains ";" but that should
9516 # okay in the real world where ";" in dirpaths is itself problematic.
9517 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9518 ;;
9519 *)
9520 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9521 ;;
9522 esac
9523 # Ok, now we have the path, separated by spaces, we can step through it
9524 # and add multilib dir if necessary.
9525 lt_tmp_lt_search_path_spec=
9526 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9527 for lt_sys_path in $lt_search_path_spec; do
9528 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9529 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9530 else
9531 test -d "$lt_sys_path" && \
9532 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9533 fi
9534 done
9535 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9536 BEGIN {RS=" "; FS="/|\n";} {
9537 lt_foo="";
9538 lt_count=0;
9539 for (lt_i = NF; lt_i > 0; lt_i--) {
9540 if ($lt_i != "" && $lt_i != ".") {
9541 if ($lt_i == "..") {
9542 lt_count++;
9543 } else {
9544 if (lt_count == 0) {
9545 lt_foo="/" $lt_i lt_foo;
9546 } else {
9547 lt_count--;
9548 }
9549 }
9550 }
9551 }
9552 if (lt_foo != "") { lt_freq[lt_foo]++; }
9553 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9554 }'`
9555 # AWK program above erroneously prepends '/' to C:/dos/paths
9556 # for these hosts.
9557 case $host_os in
9558 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9559 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9560 esac
9561 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9562 else
9563 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9564 fi
9565 library_names_spec=
9566 libname_spec='lib$name'
9567 soname_spec=
9568 shrext_cmds=".so"
9569 postinstall_cmds=
9570 postuninstall_cmds=
9571 finish_cmds=
9572 finish_eval=
9573 shlibpath_var=
9574 shlibpath_overrides_runpath=unknown
9575 version_type=none
9576 dynamic_linker="$host_os ld.so"
9577 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9578 need_lib_prefix=unknown
9579 hardcode_into_libs=no
9580
9581 # when you set need_version to no, make sure it does not cause -set_version
9582 # flags to be left without arguments
9583 need_version=unknown
9584
9585 case $host_os in
9586 aix3*)
9587 version_type=linux # correct to gnu/linux during the next big refactor
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9589 shlibpath_var=LIBPATH
9590
9591 # AIX 3 has no versioning support, so we append a major version to the name.
9592 soname_spec='${libname}${release}${shared_ext}$major'
9593 ;;
9594
9595 aix[4-9]*)
9596 version_type=linux # correct to gnu/linux during the next big refactor
9597 need_lib_prefix=no
9598 need_version=no
9599 hardcode_into_libs=yes
9600 if test "$host_cpu" = ia64; then
9601 # AIX 5 supports IA64
9602 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9603 shlibpath_var=LD_LIBRARY_PATH
9604 else
9605 # With GCC up to 2.95.x, collect2 would create an import file
9606 # for dependence libraries. The import file would start with
9607 # the line `#! .'. This would cause the generated library to
9608 # depend on `.', always an invalid library. This was fixed in
9609 # development snapshots of GCC prior to 3.0.
9610 case $host_os in
9611 aix4 | aix4.[01] | aix4.[01].*)
9612 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9613 echo ' yes '
9614 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9615 :
9616 else
9617 can_build_shared=no
9618 fi
9619 ;;
9620 esac
9621 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9622 # soname into executable. Probably we can add versioning support to
9623 # collect2, so additional links can be useful in future.
9624 if test "$aix_use_runtimelinking" = yes; then
9625 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9626 # instead of lib<name>.a to let people know that these are not
9627 # typical AIX shared libraries.
9628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9629 else
9630 # We preserve .a as extension for shared libraries through AIX4.2
9631 # and later when we are not doing run time linking.
9632 library_names_spec='${libname}${release}.a $libname.a'
9633 soname_spec='${libname}${release}${shared_ext}$major'
9634 fi
9635 shlibpath_var=LIBPATH
9636 fi
9637 ;;
9638
9639 amigaos*)
9640 case $host_cpu in
9641 powerpc)
9642 # Since July 2007 AmigaOS4 officially supports .so libraries.
9643 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9645 ;;
9646 m68k)
9647 library_names_spec='$libname.ixlibrary $libname.a'
9648 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9649 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'
9650 ;;
9651 esac
9652 ;;
9653
9654 beos*)
9655 library_names_spec='${libname}${shared_ext}'
9656 dynamic_linker="$host_os ld.so"
9657 shlibpath_var=LIBRARY_PATH
9658 ;;
9659
9660 bsdi[45]*)
9661 version_type=linux # correct to gnu/linux during the next big refactor
9662 need_version=no
9663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9664 soname_spec='${libname}${release}${shared_ext}$major'
9665 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9666 shlibpath_var=LD_LIBRARY_PATH
9667 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9668 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9669 # the default ld.so.conf also contains /usr/contrib/lib and
9670 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9671 # libtool to hard-code these into programs
9672 ;;
9673
9674 cygwin* | mingw* | pw32* | cegcc*)
9675 version_type=windows
9676 shrext_cmds=".dll"
9677 need_version=no
9678 need_lib_prefix=no
9679
9680 case $GCC,$cc_basename in
9681 yes,*)
9682 # gcc
9683 library_names_spec='$libname.dll.a'
9684 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9685 postinstall_cmds='base_file=`basename \${file}`~
9686 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9687 dldir=$destdir/`dirname \$dlpath`~
9688 test -d \$dldir || mkdir -p \$dldir~
9689 $install_prog $dir/$dlname \$dldir/$dlname~
9690 chmod a+x \$dldir/$dlname~
9691 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9692 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9693 fi'
9694 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9695 dlpath=$dir/\$dldll~
9696 $RM \$dlpath'
9697 shlibpath_overrides_runpath=yes
9698
9699 case $host_os in
9700 cygwin*)
9701 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9702 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9703
9704 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9705 ;;
9706 mingw* | cegcc*)
9707 # MinGW DLLs use traditional 'lib' prefix
9708 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9709 ;;
9710 pw32*)
9711 # pw32 DLLs use 'pw' prefix rather than 'lib'
9712 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9713 ;;
9714 esac
9715 dynamic_linker='Win32 ld.exe'
9716 ;;
9717
9718 *,cl*)
9719 # Native MSVC
9720 libname_spec='$name'
9721 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9722 library_names_spec='${libname}.dll.lib'
9723
9724 case $build_os in
9725 mingw*)
9726 sys_lib_search_path_spec=
9727 lt_save_ifs=$IFS
9728 IFS=';'
9729 for lt_path in $LIB
9730 do
9731 IFS=$lt_save_ifs
9732 # Let DOS variable expansion print the short 8.3 style file name.
9733 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9734 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9735 done
9736 IFS=$lt_save_ifs
9737 # Convert to MSYS style.
9738 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9739 ;;
9740 cygwin*)
9741 # Convert to unix form, then to dos form, then back to unix form
9742 # but this time dos style (no spaces!) so that the unix form looks
9743 # like /cygdrive/c/PROGRA~1:/cygdr...
9744 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9745 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9746 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9747 ;;
9748 *)
9749 sys_lib_search_path_spec="$LIB"
9750 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9751 # It is most probably a Windows format PATH.
9752 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9753 else
9754 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9755 fi
9756 # FIXME: find the short name or the path components, as spaces are
9757 # common. (e.g. "Program Files" -> "PROGRA~1")
9758 ;;
9759 esac
9760
9761 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9762 postinstall_cmds='base_file=`basename \${file}`~
9763 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9764 dldir=$destdir/`dirname \$dlpath`~
9765 test -d \$dldir || mkdir -p \$dldir~
9766 $install_prog $dir/$dlname \$dldir/$dlname'
9767 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9768 dlpath=$dir/\$dldll~
9769 $RM \$dlpath'
9770 shlibpath_overrides_runpath=yes
9771 dynamic_linker='Win32 link.exe'
9772 ;;
9773
9774 *)
9775 # Assume MSVC wrapper
9776 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9777 dynamic_linker='Win32 ld.exe'
9778 ;;
9779 esac
9780 # FIXME: first we should search . and the directory the executable is in
9781 shlibpath_var=PATH
9782 ;;
9783
9784 darwin* | rhapsody*)
9785 dynamic_linker="$host_os dyld"
9786 version_type=darwin
9787 need_lib_prefix=no
9788 need_version=no
9789 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9790 soname_spec='${libname}${release}${major}$shared_ext'
9791 shlibpath_overrides_runpath=yes
9792 shlibpath_var=DYLD_LIBRARY_PATH
9793 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9794
9795 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9796 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9797 ;;
9798
9799 dgux*)
9800 version_type=linux # correct to gnu/linux during the next big refactor
9801 need_lib_prefix=no
9802 need_version=no
9803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9804 soname_spec='${libname}${release}${shared_ext}$major'
9805 shlibpath_var=LD_LIBRARY_PATH
9806 ;;
9807
9808 freebsd* | dragonfly*)
9809 # DragonFly does not have aout. When/if they implement a new
9810 # versioning mechanism, adjust this.
9811 if test -x /usr/bin/objformat; then
9812 objformat=`/usr/bin/objformat`
9813 else
9814 case $host_os in
9815 freebsd[23].*) objformat=aout ;;
9816 *) objformat=elf ;;
9817 esac
9818 fi
9819 version_type=freebsd-$objformat
9820 case $version_type in
9821 freebsd-elf*)
9822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9823 need_version=no
9824 need_lib_prefix=no
9825 ;;
9826 freebsd-*)
9827 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9828 need_version=yes
9829 ;;
9830 esac
9831 shlibpath_var=LD_LIBRARY_PATH
9832 case $host_os in
9833 freebsd2.*)
9834 shlibpath_overrides_runpath=yes
9835 ;;
9836 freebsd3.[01]* | freebsdelf3.[01]*)
9837 shlibpath_overrides_runpath=yes
9838 hardcode_into_libs=yes
9839 ;;
9840 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9841 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9842 shlibpath_overrides_runpath=no
9843 hardcode_into_libs=yes
9844 ;;
9845 *) # from 4.6 on, and DragonFly
9846 shlibpath_overrides_runpath=yes
9847 hardcode_into_libs=yes
9848 ;;
9849 esac
9850 ;;
9851
9852 haiku*)
9853 version_type=linux # correct to gnu/linux during the next big refactor
9854 need_lib_prefix=no
9855 need_version=no
9856 dynamic_linker="$host_os runtime_loader"
9857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9858 soname_spec='${libname}${release}${shared_ext}$major'
9859 shlibpath_var=LIBRARY_PATH
9860 shlibpath_overrides_runpath=yes
9861 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9862 hardcode_into_libs=yes
9863 ;;
9864
9865 hpux9* | hpux10* | hpux11*)
9866 # Give a soname corresponding to the major version so that dld.sl refuses to
9867 # link against other versions.
9868 version_type=sunos
9869 need_lib_prefix=no
9870 need_version=no
9871 case $host_cpu in
9872 ia64*)
9873 shrext_cmds='.so'
9874 hardcode_into_libs=yes
9875 dynamic_linker="$host_os dld.so"
9876 shlibpath_var=LD_LIBRARY_PATH
9877 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9879 soname_spec='${libname}${release}${shared_ext}$major'
9880 if test "X$HPUX_IA64_MODE" = X32; then
9881 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9882 else
9883 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9884 fi
9885 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9886 ;;
9887 hppa*64*)
9888 shrext_cmds='.sl'
9889 hardcode_into_libs=yes
9890 dynamic_linker="$host_os dld.sl"
9891 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9892 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9894 soname_spec='${libname}${release}${shared_ext}$major'
9895 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9896 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9897 ;;
9898 *)
9899 shrext_cmds='.sl'
9900 dynamic_linker="$host_os dld.sl"
9901 shlibpath_var=SHLIB_PATH
9902 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904 soname_spec='${libname}${release}${shared_ext}$major'
9905 ;;
9906 esac
9907 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9908 postinstall_cmds='chmod 555 $lib'
9909 # or fails outright, so override atomically:
9910 install_override_mode=555
9911 ;;
9912
9913 interix[3-9]*)
9914 version_type=linux # correct to gnu/linux during the next big refactor
9915 need_lib_prefix=no
9916 need_version=no
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9919 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9920 shlibpath_var=LD_LIBRARY_PATH
9921 shlibpath_overrides_runpath=no
9922 hardcode_into_libs=yes
9923 ;;
9924
9925 irix5* | irix6* | nonstopux*)
9926 case $host_os in
9927 nonstopux*) version_type=nonstopux ;;
9928 *)
9929 if test "$lt_cv_prog_gnu_ld" = yes; then
9930 version_type=linux # correct to gnu/linux during the next big refactor
9931 else
9932 version_type=irix
9933 fi ;;
9934 esac
9935 need_lib_prefix=no
9936 need_version=no
9937 soname_spec='${libname}${release}${shared_ext}$major'
9938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9939 case $host_os in
9940 irix5* | nonstopux*)
9941 libsuff= shlibsuff=
9942 ;;
9943 *)
9944 case $LD in # libtool.m4 will add one of these switches to LD
9945 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9946 libsuff= shlibsuff= libmagic=32-bit;;
9947 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9948 libsuff=32 shlibsuff=N32 libmagic=N32;;
9949 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9950 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9951 *) libsuff= shlibsuff= libmagic=never-match;;
9952 esac
9953 ;;
9954 esac
9955 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9956 shlibpath_overrides_runpath=no
9957 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9958 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9959 hardcode_into_libs=yes
9960 ;;
9961
9962 # No shared lib support for Linux oldld, aout, or coff.
9963 linux*oldld* | linux*aout* | linux*coff*)
9964 dynamic_linker=no
9965 ;;
9966
9967 # This must be glibc/ELF.
9968 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9969 version_type=linux # correct to gnu/linux during the next big refactor
9970 need_lib_prefix=no
9971 need_version=no
9972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9973 soname_spec='${libname}${release}${shared_ext}$major'
9974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9975 shlibpath_var=LD_LIBRARY_PATH
9976 shlibpath_overrides_runpath=no
9977
9978 # Some binutils ld are patched to set DT_RUNPATH
9979 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9980 $as_echo_n "(cached) " >&6
9981 else
9982 lt_cv_shlibpath_overrides_runpath=no
9983 save_LDFLAGS=$LDFLAGS
9984 save_libdir=$libdir
9985 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9986 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988 /* end confdefs.h. */
9989
9990 int
9991 main ()
9992 {
9993
9994 ;
9995 return 0;
9996 }
9997 _ACEOF
9998 if ac_fn_c_try_link "$LINENO"; then :
9999 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10000 lt_cv_shlibpath_overrides_runpath=yes
10001 fi
10002 fi
10003 rm -f core conftest.err conftest.$ac_objext \
10004 conftest$ac_exeext conftest.$ac_ext
10005 LDFLAGS=$save_LDFLAGS
10006 libdir=$save_libdir
10007
10008 fi
10009
10010 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10011
10012 # This implies no fast_install, which is unacceptable.
10013 # Some rework will be needed to allow for fast_install
10014 # before this can be enabled.
10015 hardcode_into_libs=yes
10016
10017 # Append ld.so.conf contents to the search path
10018 if test -f /etc/ld.so.conf; then
10019 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' ' '`
10020 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10021 fi
10022
10023 # We used to test for /lib/ld.so.1 and disable shared libraries on
10024 # powerpc, because MkLinux only supported shared libraries with the
10025 # GNU dynamic linker. Since this was broken with cross compilers,
10026 # most powerpc-linux boxes support dynamic linking these days and
10027 # people can always --disable-shared, the test was removed, and we
10028 # assume the GNU/Linux dynamic linker is in use.
10029 dynamic_linker='GNU/Linux ld.so'
10030 ;;
10031
10032 netbsdelf*-gnu)
10033 version_type=linux
10034 need_lib_prefix=no
10035 need_version=no
10036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10037 soname_spec='${libname}${release}${shared_ext}$major'
10038 shlibpath_var=LD_LIBRARY_PATH
10039 shlibpath_overrides_runpath=no
10040 hardcode_into_libs=yes
10041 dynamic_linker='NetBSD ld.elf_so'
10042 ;;
10043
10044 netbsd*)
10045 version_type=sunos
10046 need_lib_prefix=no
10047 need_version=no
10048 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10051 dynamic_linker='NetBSD (a.out) ld.so'
10052 else
10053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10054 soname_spec='${libname}${release}${shared_ext}$major'
10055 dynamic_linker='NetBSD ld.elf_so'
10056 fi
10057 shlibpath_var=LD_LIBRARY_PATH
10058 shlibpath_overrides_runpath=yes
10059 hardcode_into_libs=yes
10060 ;;
10061
10062 newsos6)
10063 version_type=linux # correct to gnu/linux during the next big refactor
10064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10065 shlibpath_var=LD_LIBRARY_PATH
10066 shlibpath_overrides_runpath=yes
10067 ;;
10068
10069 *nto* | *qnx*)
10070 version_type=qnx
10071 need_lib_prefix=no
10072 need_version=no
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10074 soname_spec='${libname}${release}${shared_ext}$major'
10075 shlibpath_var=LD_LIBRARY_PATH
10076 shlibpath_overrides_runpath=no
10077 hardcode_into_libs=yes
10078 dynamic_linker='ldqnx.so'
10079 ;;
10080
10081 openbsd*)
10082 version_type=sunos
10083 sys_lib_dlsearch_path_spec="/usr/lib"
10084 need_lib_prefix=no
10085 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10086 case $host_os in
10087 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10088 *) need_version=no ;;
10089 esac
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10092 shlibpath_var=LD_LIBRARY_PATH
10093 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10094 case $host_os in
10095 openbsd2.[89] | openbsd2.[89].*)
10096 shlibpath_overrides_runpath=no
10097 ;;
10098 *)
10099 shlibpath_overrides_runpath=yes
10100 ;;
10101 esac
10102 else
10103 shlibpath_overrides_runpath=yes
10104 fi
10105 ;;
10106
10107 os2*)
10108 libname_spec='$name'
10109 shrext_cmds=".dll"
10110 need_lib_prefix=no
10111 library_names_spec='$libname${shared_ext} $libname.a'
10112 dynamic_linker='OS/2 ld.exe'
10113 shlibpath_var=LIBPATH
10114 ;;
10115
10116 osf3* | osf4* | osf5*)
10117 version_type=osf
10118 need_lib_prefix=no
10119 need_version=no
10120 soname_spec='${libname}${release}${shared_ext}$major'
10121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10122 shlibpath_var=LD_LIBRARY_PATH
10123 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10124 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10125 ;;
10126
10127 rdos*)
10128 dynamic_linker=no
10129 ;;
10130
10131 solaris*)
10132 version_type=linux # correct to gnu/linux during the next big refactor
10133 need_lib_prefix=no
10134 need_version=no
10135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10136 soname_spec='${libname}${release}${shared_ext}$major'
10137 shlibpath_var=LD_LIBRARY_PATH
10138 shlibpath_overrides_runpath=yes
10139 hardcode_into_libs=yes
10140 # ldd complains unless libraries are executable
10141 postinstall_cmds='chmod +x $lib'
10142 ;;
10143
10144 sunos4*)
10145 version_type=sunos
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10147 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10148 shlibpath_var=LD_LIBRARY_PATH
10149 shlibpath_overrides_runpath=yes
10150 if test "$with_gnu_ld" = yes; then
10151 need_lib_prefix=no
10152 fi
10153 need_version=yes
10154 ;;
10155
10156 sysv4 | sysv4.3*)
10157 version_type=linux # correct to gnu/linux during the next big refactor
10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159 soname_spec='${libname}${release}${shared_ext}$major'
10160 shlibpath_var=LD_LIBRARY_PATH
10161 case $host_vendor in
10162 sni)
10163 shlibpath_overrides_runpath=no
10164 need_lib_prefix=no
10165 runpath_var=LD_RUN_PATH
10166 ;;
10167 siemens)
10168 need_lib_prefix=no
10169 ;;
10170 motorola)
10171 need_lib_prefix=no
10172 need_version=no
10173 shlibpath_overrides_runpath=no
10174 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10175 ;;
10176 esac
10177 ;;
10178
10179 sysv4*MP*)
10180 if test -d /usr/nec ;then
10181 version_type=linux # correct to gnu/linux during the next big refactor
10182 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10183 soname_spec='$libname${shared_ext}.$major'
10184 shlibpath_var=LD_LIBRARY_PATH
10185 fi
10186 ;;
10187
10188 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10189 version_type=freebsd-elf
10190 need_lib_prefix=no
10191 need_version=no
10192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10193 soname_spec='${libname}${release}${shared_ext}$major'
10194 shlibpath_var=LD_LIBRARY_PATH
10195 shlibpath_overrides_runpath=yes
10196 hardcode_into_libs=yes
10197 if test "$with_gnu_ld" = yes; then
10198 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10199 else
10200 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10201 case $host_os in
10202 sco3.2v5*)
10203 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10204 ;;
10205 esac
10206 fi
10207 sys_lib_dlsearch_path_spec='/usr/lib'
10208 ;;
10209
10210 tpf*)
10211 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10212 version_type=linux # correct to gnu/linux during the next big refactor
10213 need_lib_prefix=no
10214 need_version=no
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10216 shlibpath_var=LD_LIBRARY_PATH
10217 shlibpath_overrides_runpath=no
10218 hardcode_into_libs=yes
10219 ;;
10220
10221 uts4*)
10222 version_type=linux # correct to gnu/linux during the next big refactor
10223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10224 soname_spec='${libname}${release}${shared_ext}$major'
10225 shlibpath_var=LD_LIBRARY_PATH
10226 ;;
10227
10228 *)
10229 dynamic_linker=no
10230 ;;
10231 esac
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10233 $as_echo "$dynamic_linker" >&6; }
10234 test "$dynamic_linker" = no && can_build_shared=no
10235
10236 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10237 if test "$GCC" = yes; then
10238 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10239 fi
10240
10241 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10242 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10243 fi
10244 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10245 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10246 fi
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10340 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10341 hardcode_action=
10342 if test -n "$hardcode_libdir_flag_spec" ||
10343 test -n "$runpath_var" ||
10344 test "X$hardcode_automatic" = "Xyes" ; then
10345
10346 # We can hardcode non-existent directories.
10347 if test "$hardcode_direct" != no &&
10348 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10349 # have to relink, otherwise we might link with an installed library
10350 # when we should be linking with a yet-to-be-installed one
10351 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10352 test "$hardcode_minus_L" != no; then
10353 # Linking always hardcodes the temporary library directory.
10354 hardcode_action=relink
10355 else
10356 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10357 hardcode_action=immediate
10358 fi
10359 else
10360 # We cannot hardcode anything, or else we can only hardcode existing
10361 # directories.
10362 hardcode_action=unsupported
10363 fi
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10365 $as_echo "$hardcode_action" >&6; }
10366
10367 if test "$hardcode_action" = relink ||
10368 test "$inherit_rpath" = yes; then
10369 # Fast installation is not supported
10370 enable_fast_install=no
10371 elif test "$shlibpath_overrides_runpath" = yes ||
10372 test "$enable_shared" = no; then
10373 # Fast installation is not necessary
10374 enable_fast_install=needless
10375 fi
10376
10377
10378
10379
10380
10381
10382 if test "x$enable_dlopen" != xyes; then
10383 enable_dlopen=unknown
10384 enable_dlopen_self=unknown
10385 enable_dlopen_self_static=unknown
10386 else
10387 lt_cv_dlopen=no
10388 lt_cv_dlopen_libs=
10389
10390 case $host_os in
10391 beos*)
10392 lt_cv_dlopen="load_add_on"
10393 lt_cv_dlopen_libs=
10394 lt_cv_dlopen_self=yes
10395 ;;
10396
10397 mingw* | pw32* | cegcc*)
10398 lt_cv_dlopen="LoadLibrary"
10399 lt_cv_dlopen_libs=
10400 ;;
10401
10402 cygwin*)
10403 lt_cv_dlopen="dlopen"
10404 lt_cv_dlopen_libs=
10405 ;;
10406
10407 darwin*)
10408 # if libdl is installed we need to link against it
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10410 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10411 if ${ac_cv_lib_dl_dlopen+:} false; then :
10412 $as_echo_n "(cached) " >&6
10413 else
10414 ac_check_lib_save_LIBS=$LIBS
10415 LIBS="-ldl $LIBS"
10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h. */
10418
10419 /* Override any GCC internal prototype to avoid an error.
10420 Use char because int might match the return type of a GCC
10421 builtin and then its argument prototype would still apply. */
10422 #ifdef __cplusplus
10423 extern "C"
10424 #endif
10425 char dlopen ();
10426 int
10427 main ()
10428 {
10429 return dlopen ();
10430 ;
10431 return 0;
10432 }
10433 _ACEOF
10434 if ac_fn_c_try_link "$LINENO"; then :
10435 ac_cv_lib_dl_dlopen=yes
10436 else
10437 ac_cv_lib_dl_dlopen=no
10438 fi
10439 rm -f core conftest.err conftest.$ac_objext \
10440 conftest$ac_exeext conftest.$ac_ext
10441 LIBS=$ac_check_lib_save_LIBS
10442 fi
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10444 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10445 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10446 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10447 else
10448
10449 lt_cv_dlopen="dyld"
10450 lt_cv_dlopen_libs=
10451 lt_cv_dlopen_self=yes
10452
10453 fi
10454
10455 ;;
10456
10457 *)
10458 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10459 if test "x$ac_cv_func_shl_load" = xyes; then :
10460 lt_cv_dlopen="shl_load"
10461 else
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10463 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10464 if ${ac_cv_lib_dld_shl_load+:} false; then :
10465 $as_echo_n "(cached) " >&6
10466 else
10467 ac_check_lib_save_LIBS=$LIBS
10468 LIBS="-ldld $LIBS"
10469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470 /* end confdefs.h. */
10471
10472 /* Override any GCC internal prototype to avoid an error.
10473 Use char because int might match the return type of a GCC
10474 builtin and then its argument prototype would still apply. */
10475 #ifdef __cplusplus
10476 extern "C"
10477 #endif
10478 char shl_load ();
10479 int
10480 main ()
10481 {
10482 return shl_load ();
10483 ;
10484 return 0;
10485 }
10486 _ACEOF
10487 if ac_fn_c_try_link "$LINENO"; then :
10488 ac_cv_lib_dld_shl_load=yes
10489 else
10490 ac_cv_lib_dld_shl_load=no
10491 fi
10492 rm -f core conftest.err conftest.$ac_objext \
10493 conftest$ac_exeext conftest.$ac_ext
10494 LIBS=$ac_check_lib_save_LIBS
10495 fi
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10497 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10498 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10499 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10500 else
10501 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10502 if test "x$ac_cv_func_dlopen" = xyes; then :
10503 lt_cv_dlopen="dlopen"
10504 else
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10506 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10507 if ${ac_cv_lib_dl_dlopen+:} false; then :
10508 $as_echo_n "(cached) " >&6
10509 else
10510 ac_check_lib_save_LIBS=$LIBS
10511 LIBS="-ldl $LIBS"
10512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10513 /* end confdefs.h. */
10514
10515 /* Override any GCC internal prototype to avoid an error.
10516 Use char because int might match the return type of a GCC
10517 builtin and then its argument prototype would still apply. */
10518 #ifdef __cplusplus
10519 extern "C"
10520 #endif
10521 char dlopen ();
10522 int
10523 main ()
10524 {
10525 return dlopen ();
10526 ;
10527 return 0;
10528 }
10529 _ACEOF
10530 if ac_fn_c_try_link "$LINENO"; then :
10531 ac_cv_lib_dl_dlopen=yes
10532 else
10533 ac_cv_lib_dl_dlopen=no
10534 fi
10535 rm -f core conftest.err conftest.$ac_objext \
10536 conftest$ac_exeext conftest.$ac_ext
10537 LIBS=$ac_check_lib_save_LIBS
10538 fi
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10540 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10541 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10542 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10543 else
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10545 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10546 if ${ac_cv_lib_svld_dlopen+:} false; then :
10547 $as_echo_n "(cached) " >&6
10548 else
10549 ac_check_lib_save_LIBS=$LIBS
10550 LIBS="-lsvld $LIBS"
10551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552 /* end confdefs.h. */
10553
10554 /* Override any GCC internal prototype to avoid an error.
10555 Use char because int might match the return type of a GCC
10556 builtin and then its argument prototype would still apply. */
10557 #ifdef __cplusplus
10558 extern "C"
10559 #endif
10560 char dlopen ();
10561 int
10562 main ()
10563 {
10564 return dlopen ();
10565 ;
10566 return 0;
10567 }
10568 _ACEOF
10569 if ac_fn_c_try_link "$LINENO"; then :
10570 ac_cv_lib_svld_dlopen=yes
10571 else
10572 ac_cv_lib_svld_dlopen=no
10573 fi
10574 rm -f core conftest.err conftest.$ac_objext \
10575 conftest$ac_exeext conftest.$ac_ext
10576 LIBS=$ac_check_lib_save_LIBS
10577 fi
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10579 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10580 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10581 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10582 else
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10584 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10585 if ${ac_cv_lib_dld_dld_link+:} false; then :
10586 $as_echo_n "(cached) " >&6
10587 else
10588 ac_check_lib_save_LIBS=$LIBS
10589 LIBS="-ldld $LIBS"
10590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591 /* end confdefs.h. */
10592
10593 /* Override any GCC internal prototype to avoid an error.
10594 Use char because int might match the return type of a GCC
10595 builtin and then its argument prototype would still apply. */
10596 #ifdef __cplusplus
10597 extern "C"
10598 #endif
10599 char dld_link ();
10600 int
10601 main ()
10602 {
10603 return dld_link ();
10604 ;
10605 return 0;
10606 }
10607 _ACEOF
10608 if ac_fn_c_try_link "$LINENO"; then :
10609 ac_cv_lib_dld_dld_link=yes
10610 else
10611 ac_cv_lib_dld_dld_link=no
10612 fi
10613 rm -f core conftest.err conftest.$ac_objext \
10614 conftest$ac_exeext conftest.$ac_ext
10615 LIBS=$ac_check_lib_save_LIBS
10616 fi
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10618 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10619 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10620 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10621 fi
10622
10623
10624 fi
10625
10626
10627 fi
10628
10629
10630 fi
10631
10632
10633 fi
10634
10635
10636 fi
10637
10638 ;;
10639 esac
10640
10641 if test "x$lt_cv_dlopen" != xno; then
10642 enable_dlopen=yes
10643 else
10644 enable_dlopen=no
10645 fi
10646
10647 case $lt_cv_dlopen in
10648 dlopen)
10649 save_CPPFLAGS="$CPPFLAGS"
10650 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10651
10652 save_LDFLAGS="$LDFLAGS"
10653 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10654
10655 save_LIBS="$LIBS"
10656 LIBS="$lt_cv_dlopen_libs $LIBS"
10657
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10659 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10660 if ${lt_cv_dlopen_self+:} false; then :
10661 $as_echo_n "(cached) " >&6
10662 else
10663 if test "$cross_compiling" = yes; then :
10664 lt_cv_dlopen_self=cross
10665 else
10666 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10667 lt_status=$lt_dlunknown
10668 cat > conftest.$ac_ext <<_LT_EOF
10669 #line $LINENO "configure"
10670 #include "confdefs.h"
10671
10672 #if HAVE_DLFCN_H
10673 #include <dlfcn.h>
10674 #endif
10675
10676 #include <stdio.h>
10677
10678 #ifdef RTLD_GLOBAL
10679 # define LT_DLGLOBAL RTLD_GLOBAL
10680 #else
10681 # ifdef DL_GLOBAL
10682 # define LT_DLGLOBAL DL_GLOBAL
10683 # else
10684 # define LT_DLGLOBAL 0
10685 # endif
10686 #endif
10687
10688 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10689 find out it does not work in some platform. */
10690 #ifndef LT_DLLAZY_OR_NOW
10691 # ifdef RTLD_LAZY
10692 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10693 # else
10694 # ifdef DL_LAZY
10695 # define LT_DLLAZY_OR_NOW DL_LAZY
10696 # else
10697 # ifdef RTLD_NOW
10698 # define LT_DLLAZY_OR_NOW RTLD_NOW
10699 # else
10700 # ifdef DL_NOW
10701 # define LT_DLLAZY_OR_NOW DL_NOW
10702 # else
10703 # define LT_DLLAZY_OR_NOW 0
10704 # endif
10705 # endif
10706 # endif
10707 # endif
10708 #endif
10709
10710 /* When -fvisbility=hidden is used, assume the code has been annotated
10711 correspondingly for the symbols needed. */
10712 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10713 int fnord () __attribute__((visibility("default")));
10714 #endif
10715
10716 int fnord () { return 42; }
10717 int main ()
10718 {
10719 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10720 int status = $lt_dlunknown;
10721
10722 if (self)
10723 {
10724 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10725 else
10726 {
10727 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10728 else puts (dlerror ());
10729 }
10730 /* dlclose (self); */
10731 }
10732 else
10733 puts (dlerror ());
10734
10735 return status;
10736 }
10737 _LT_EOF
10738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10739 (eval $ac_link) 2>&5
10740 ac_status=$?
10741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10742 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10743 (./conftest; exit; ) >&5 2>/dev/null
10744 lt_status=$?
10745 case x$lt_status in
10746 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10747 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10748 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10749 esac
10750 else :
10751 # compilation failed
10752 lt_cv_dlopen_self=no
10753 fi
10754 fi
10755 rm -fr conftest*
10756
10757
10758 fi
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10760 $as_echo "$lt_cv_dlopen_self" >&6; }
10761
10762 if test "x$lt_cv_dlopen_self" = xyes; then
10763 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10765 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10766 if ${lt_cv_dlopen_self_static+:} false; then :
10767 $as_echo_n "(cached) " >&6
10768 else
10769 if test "$cross_compiling" = yes; then :
10770 lt_cv_dlopen_self_static=cross
10771 else
10772 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10773 lt_status=$lt_dlunknown
10774 cat > conftest.$ac_ext <<_LT_EOF
10775 #line $LINENO "configure"
10776 #include "confdefs.h"
10777
10778 #if HAVE_DLFCN_H
10779 #include <dlfcn.h>
10780 #endif
10781
10782 #include <stdio.h>
10783
10784 #ifdef RTLD_GLOBAL
10785 # define LT_DLGLOBAL RTLD_GLOBAL
10786 #else
10787 # ifdef DL_GLOBAL
10788 # define LT_DLGLOBAL DL_GLOBAL
10789 # else
10790 # define LT_DLGLOBAL 0
10791 # endif
10792 #endif
10793
10794 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10795 find out it does not work in some platform. */
10796 #ifndef LT_DLLAZY_OR_NOW
10797 # ifdef RTLD_LAZY
10798 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10799 # else
10800 # ifdef DL_LAZY
10801 # define LT_DLLAZY_OR_NOW DL_LAZY
10802 # else
10803 # ifdef RTLD_NOW
10804 # define LT_DLLAZY_OR_NOW RTLD_NOW
10805 # else
10806 # ifdef DL_NOW
10807 # define LT_DLLAZY_OR_NOW DL_NOW
10808 # else
10809 # define LT_DLLAZY_OR_NOW 0
10810 # endif
10811 # endif
10812 # endif
10813 # endif
10814 #endif
10815
10816 /* When -fvisbility=hidden is used, assume the code has been annotated
10817 correspondingly for the symbols needed. */
10818 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10819 int fnord () __attribute__((visibility("default")));
10820 #endif
10821
10822 int fnord () { return 42; }
10823 int main ()
10824 {
10825 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10826 int status = $lt_dlunknown;
10827
10828 if (self)
10829 {
10830 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10831 else
10832 {
10833 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10834 else puts (dlerror ());
10835 }
10836 /* dlclose (self); */
10837 }
10838 else
10839 puts (dlerror ());
10840
10841 return status;
10842 }
10843 _LT_EOF
10844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10845 (eval $ac_link) 2>&5
10846 ac_status=$?
10847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10848 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10849 (./conftest; exit; ) >&5 2>/dev/null
10850 lt_status=$?
10851 case x$lt_status in
10852 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10853 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10854 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10855 esac
10856 else :
10857 # compilation failed
10858 lt_cv_dlopen_self_static=no
10859 fi
10860 fi
10861 rm -fr conftest*
10862
10863
10864 fi
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10866 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10867 fi
10868
10869 CPPFLAGS="$save_CPPFLAGS"
10870 LDFLAGS="$save_LDFLAGS"
10871 LIBS="$save_LIBS"
10872 ;;
10873 esac
10874
10875 case $lt_cv_dlopen_self in
10876 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10877 *) enable_dlopen_self=unknown ;;
10878 esac
10879
10880 case $lt_cv_dlopen_self_static in
10881 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10882 *) enable_dlopen_self_static=unknown ;;
10883 esac
10884 fi
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902 striplib=
10903 old_striplib=
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10905 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10906 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10907 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10908 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10910 $as_echo "yes" >&6; }
10911 else
10912 # FIXME - insert some real tests, host_os isn't really good enough
10913 case $host_os in
10914 darwin*)
10915 if test -n "$STRIP" ; then
10916 striplib="$STRIP -x"
10917 old_striplib="$STRIP -S"
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10919 $as_echo "yes" >&6; }
10920 else
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10922 $as_echo "no" >&6; }
10923 fi
10924 ;;
10925 *)
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927 $as_echo "no" >&6; }
10928 ;;
10929 esac
10930 fi
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943 # Report which library types will actually be built
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10945 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10947 $as_echo "$can_build_shared" >&6; }
10948
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10950 $as_echo_n "checking whether to build shared libraries... " >&6; }
10951 test "$can_build_shared" = "no" && enable_shared=no
10952
10953 # On AIX, shared libraries and static libraries use the same namespace, and
10954 # are all built from PIC.
10955 case $host_os in
10956 aix3*)
10957 test "$enable_shared" = yes && enable_static=no
10958 if test -n "$RANLIB"; then
10959 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10960 postinstall_cmds='$RANLIB $lib'
10961 fi
10962 ;;
10963
10964 aix[4-9]*)
10965 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10966 test "$enable_shared" = yes && enable_static=no
10967 fi
10968 ;;
10969 esac
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10971 $as_echo "$enable_shared" >&6; }
10972
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10974 $as_echo_n "checking whether to build static libraries... " >&6; }
10975 # Make sure either enable_shared or enable_static is yes.
10976 test "$enable_shared" = yes || enable_static=yes
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10978 $as_echo "$enable_static" >&6; }
10979
10980
10981
10982
10983 fi
10984 ac_ext=c
10985 ac_cpp='$CPP $CPPFLAGS'
10986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10989
10990 CC="$lt_save_CC"
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006 ac_config_commands="$ac_config_commands libtool"
11007
11008
11009
11010
11011 # Only expand once:
11012
11013
11014
11015 # save $CXXFLAGS etc. since AC_PROG_CXX likes to insert "-g -O2"
11016 # if $CXXFLAGS is blank and it finds GCC
11017 cflags_save="$CFLAGS"
11018 cppflags_save="$CPPFLAGS"
11019 cxxflags_save="$CXXFLAGS"
11020 ac_ext=cpp
11021 ac_cpp='$CXXCPP $CPPFLAGS'
11022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11025
11026 ac_ext=cpp
11027 ac_cpp='$CXXCPP $CPPFLAGS'
11028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11031 if test -z "$CXX"; then
11032 if test -n "$CCC"; then
11033 CXX=$CCC
11034 else
11035 if test -n "$ac_tool_prefix"; then
11036 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11037 do
11038 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11039 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11041 $as_echo_n "checking for $ac_word... " >&6; }
11042 if ${ac_cv_prog_CXX+:} false; then :
11043 $as_echo_n "(cached) " >&6
11044 else
11045 if test -n "$CXX"; then
11046 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11047 else
11048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11049 for as_dir in $PATH
11050 do
11051 IFS=$as_save_IFS
11052 test -z "$as_dir" && as_dir=.
11053 for ac_exec_ext in '' $ac_executable_extensions; do
11054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11055 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11057 break 2
11058 fi
11059 done
11060 done
11061 IFS=$as_save_IFS
11062
11063 fi
11064 fi
11065 CXX=$ac_cv_prog_CXX
11066 if test -n "$CXX"; then
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11068 $as_echo "$CXX" >&6; }
11069 else
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11071 $as_echo "no" >&6; }
11072 fi
11073
11074
11075 test -n "$CXX" && break
11076 done
11077 fi
11078 if test -z "$CXX"; then
11079 ac_ct_CXX=$CXX
11080 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11081 do
11082 # Extract the first word of "$ac_prog", so it can be a program name with args.
11083 set dummy $ac_prog; ac_word=$2
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11085 $as_echo_n "checking for $ac_word... " >&6; }
11086 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11087 $as_echo_n "(cached) " >&6
11088 else
11089 if test -n "$ac_ct_CXX"; then
11090 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11091 else
11092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11093 for as_dir in $PATH
11094 do
11095 IFS=$as_save_IFS
11096 test -z "$as_dir" && as_dir=.
11097 for ac_exec_ext in '' $ac_executable_extensions; do
11098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11099 ac_cv_prog_ac_ct_CXX="$ac_prog"
11100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11101 break 2
11102 fi
11103 done
11104 done
11105 IFS=$as_save_IFS
11106
11107 fi
11108 fi
11109 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11110 if test -n "$ac_ct_CXX"; then
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11112 $as_echo "$ac_ct_CXX" >&6; }
11113 else
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11115 $as_echo "no" >&6; }
11116 fi
11117
11118
11119 test -n "$ac_ct_CXX" && break
11120 done
11121
11122 if test "x$ac_ct_CXX" = x; then
11123 CXX="g++"
11124 else
11125 case $cross_compiling:$ac_tool_warned in
11126 yes:)
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11129 ac_tool_warned=yes ;;
11130 esac
11131 CXX=$ac_ct_CXX
11132 fi
11133 fi
11134
11135 fi
11136 fi
11137 # Provide some information about the compiler.
11138 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11139 set X $ac_compile
11140 ac_compiler=$2
11141 for ac_option in --version -v -V -qversion; do
11142 { { ac_try="$ac_compiler $ac_option >&5"
11143 case "(($ac_try" in
11144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145 *) ac_try_echo=$ac_try;;
11146 esac
11147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11148 $as_echo "$ac_try_echo"; } >&5
11149 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11150 ac_status=$?
11151 if test -s conftest.err; then
11152 sed '10a\
11153 ... rest of stderr output deleted ...
11154 10q' conftest.err >conftest.er1
11155 cat conftest.er1 >&5
11156 fi
11157 rm -f conftest.er1 conftest.err
11158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11159 test $ac_status = 0; }
11160 done
11161
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11163 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11164 if ${ac_cv_cxx_compiler_gnu+:} false; then :
11165 $as_echo_n "(cached) " >&6
11166 else
11167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11168 /* end confdefs.h. */
11169
11170 int
11171 main ()
11172 {
11173 #ifndef __GNUC__
11174 choke me
11175 #endif
11176
11177 ;
11178 return 0;
11179 }
11180 _ACEOF
11181 if ac_fn_cxx_try_compile "$LINENO"; then :
11182 ac_compiler_gnu=yes
11183 else
11184 ac_compiler_gnu=no
11185 fi
11186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11187 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11188
11189 fi
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11191 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11192 if test $ac_compiler_gnu = yes; then
11193 GXX=yes
11194 else
11195 GXX=
11196 fi
11197 ac_test_CXXFLAGS=${CXXFLAGS+set}
11198 ac_save_CXXFLAGS=$CXXFLAGS
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11200 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11201 if ${ac_cv_prog_cxx_g+:} false; then :
11202 $as_echo_n "(cached) " >&6
11203 else
11204 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11205 ac_cxx_werror_flag=yes
11206 ac_cv_prog_cxx_g=no
11207 CXXFLAGS="-g"
11208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h. */
11210
11211 int
11212 main ()
11213 {
11214
11215 ;
11216 return 0;
11217 }
11218 _ACEOF
11219 if ac_fn_cxx_try_compile "$LINENO"; then :
11220 ac_cv_prog_cxx_g=yes
11221 else
11222 CXXFLAGS=""
11223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11224 /* end confdefs.h. */
11225
11226 int
11227 main ()
11228 {
11229
11230 ;
11231 return 0;
11232 }
11233 _ACEOF
11234 if ac_fn_cxx_try_compile "$LINENO"; then :
11235
11236 else
11237 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11238 CXXFLAGS="-g"
11239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11240 /* end confdefs.h. */
11241
11242 int
11243 main ()
11244 {
11245
11246 ;
11247 return 0;
11248 }
11249 _ACEOF
11250 if ac_fn_cxx_try_compile "$LINENO"; then :
11251 ac_cv_prog_cxx_g=yes
11252 fi
11253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11254 fi
11255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11256 fi
11257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11258 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11259 fi
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11261 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11262 if test "$ac_test_CXXFLAGS" = set; then
11263 CXXFLAGS=$ac_save_CXXFLAGS
11264 elif test $ac_cv_prog_cxx_g = yes; then
11265 if test "$GXX" = yes; then
11266 CXXFLAGS="-g -O2"
11267 else
11268 CXXFLAGS="-g"
11269 fi
11270 else
11271 if test "$GXX" = yes; then
11272 CXXFLAGS="-O2"
11273 else
11274 CXXFLAGS=
11275 fi
11276 fi
11277 ac_ext=cpp
11278 ac_cpp='$CXXCPP $CPPFLAGS'
11279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11282
11283
11284
11285 func_stripname_cnf ()
11286 {
11287 case ${2} in
11288 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11289 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11290 esac
11291 } # func_stripname_cnf
11292
11293 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11294 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11295 (test "X$CXX" != "Xg++"))) ; then
11296 ac_ext=cpp
11297 ac_cpp='$CXXCPP $CPPFLAGS'
11298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11302 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11303 if test -z "$CXXCPP"; then
11304 if ${ac_cv_prog_CXXCPP+:} false; then :
11305 $as_echo_n "(cached) " >&6
11306 else
11307 # Double quotes because CXXCPP needs to be expanded
11308 for CXXCPP in "$CXX -E" "/lib/cpp"
11309 do
11310 ac_preproc_ok=false
11311 for ac_cxx_preproc_warn_flag in '' yes
11312 do
11313 # Use a header file that comes with gcc, so configuring glibc
11314 # with a fresh cross-compiler works.
11315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11316 # <limits.h> exists even on freestanding compilers.
11317 # On the NeXT, cc -E runs the code through the compiler's parser,
11318 # not just through cpp. "Syntax error" is here to catch this case.
11319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320 /* end confdefs.h. */
11321 #ifdef __STDC__
11322 # include <limits.h>
11323 #else
11324 # include <assert.h>
11325 #endif
11326 Syntax error
11327 _ACEOF
11328 if ac_fn_cxx_try_cpp "$LINENO"; then :
11329
11330 else
11331 # Broken: fails on valid input.
11332 continue
11333 fi
11334 rm -f conftest.err conftest.i conftest.$ac_ext
11335
11336 # OK, works on sane cases. Now check whether nonexistent headers
11337 # can be detected and how.
11338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11339 /* end confdefs.h. */
11340 #include <ac_nonexistent.h>
11341 _ACEOF
11342 if ac_fn_cxx_try_cpp "$LINENO"; then :
11343 # Broken: success on invalid input.
11344 continue
11345 else
11346 # Passes both tests.
11347 ac_preproc_ok=:
11348 break
11349 fi
11350 rm -f conftest.err conftest.i conftest.$ac_ext
11351
11352 done
11353 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11354 rm -f conftest.i conftest.err conftest.$ac_ext
11355 if $ac_preproc_ok; then :
11356 break
11357 fi
11358
11359 done
11360 ac_cv_prog_CXXCPP=$CXXCPP
11361
11362 fi
11363 CXXCPP=$ac_cv_prog_CXXCPP
11364 else
11365 ac_cv_prog_CXXCPP=$CXXCPP
11366 fi
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11368 $as_echo "$CXXCPP" >&6; }
11369 ac_preproc_ok=false
11370 for ac_cxx_preproc_warn_flag in '' yes
11371 do
11372 # Use a header file that comes with gcc, so configuring glibc
11373 # with a fresh cross-compiler works.
11374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11375 # <limits.h> exists even on freestanding compilers.
11376 # On the NeXT, cc -E runs the code through the compiler's parser,
11377 # not just through cpp. "Syntax error" is here to catch this case.
11378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379 /* end confdefs.h. */
11380 #ifdef __STDC__
11381 # include <limits.h>
11382 #else
11383 # include <assert.h>
11384 #endif
11385 Syntax error
11386 _ACEOF
11387 if ac_fn_cxx_try_cpp "$LINENO"; then :
11388
11389 else
11390 # Broken: fails on valid input.
11391 continue
11392 fi
11393 rm -f conftest.err conftest.i conftest.$ac_ext
11394
11395 # OK, works on sane cases. Now check whether nonexistent headers
11396 # can be detected and how.
11397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398 /* end confdefs.h. */
11399 #include <ac_nonexistent.h>
11400 _ACEOF
11401 if ac_fn_cxx_try_cpp "$LINENO"; then :
11402 # Broken: success on invalid input.
11403 continue
11404 else
11405 # Passes both tests.
11406 ac_preproc_ok=:
11407 break
11408 fi
11409 rm -f conftest.err conftest.i conftest.$ac_ext
11410
11411 done
11412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11413 rm -f conftest.i conftest.err conftest.$ac_ext
11414 if $ac_preproc_ok; then :
11415
11416 else
11417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11419 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11420 See \`config.log' for more details" "$LINENO" 5; }
11421 fi
11422
11423 ac_ext=cpp
11424 ac_cpp='$CXXCPP $CPPFLAGS'
11425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11428
11429 else
11430 _lt_caught_CXX_error=yes
11431 fi
11432
11433 ac_ext=cpp
11434 ac_cpp='$CXXCPP $CPPFLAGS'
11435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11438
11439 archive_cmds_need_lc_CXX=no
11440 allow_undefined_flag_CXX=
11441 always_export_symbols_CXX=no
11442 archive_expsym_cmds_CXX=
11443 compiler_needs_object_CXX=no
11444 export_dynamic_flag_spec_CXX=
11445 hardcode_direct_CXX=no
11446 hardcode_direct_absolute_CXX=no
11447 hardcode_libdir_flag_spec_CXX=
11448 hardcode_libdir_separator_CXX=
11449 hardcode_minus_L_CXX=no
11450 hardcode_shlibpath_var_CXX=unsupported
11451 hardcode_automatic_CXX=no
11452 inherit_rpath_CXX=no
11453 module_cmds_CXX=
11454 module_expsym_cmds_CXX=
11455 link_all_deplibs_CXX=unknown
11456 old_archive_cmds_CXX=$old_archive_cmds
11457 reload_flag_CXX=$reload_flag
11458 reload_cmds_CXX=$reload_cmds
11459 no_undefined_flag_CXX=
11460 whole_archive_flag_spec_CXX=
11461 enable_shared_with_static_runtimes_CXX=no
11462
11463 # Source file extension for C++ test sources.
11464 ac_ext=cpp
11465
11466 # Object file extension for compiled C++ test sources.
11467 objext=o
11468 objext_CXX=$objext
11469
11470 # No sense in running all these tests if we already determined that
11471 # the CXX compiler isn't working. Some variables (like enable_shared)
11472 # are currently assumed to apply to all compilers on this platform,
11473 # and will be corrupted by setting them based on a non-working compiler.
11474 if test "$_lt_caught_CXX_error" != yes; then
11475 # Code to be used in simple compile tests
11476 lt_simple_compile_test_code="int some_variable = 0;"
11477
11478 # Code to be used in simple link tests
11479 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11480
11481 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11482
11483
11484
11485
11486
11487
11488 # If no C compiler was specified, use CC.
11489 LTCC=${LTCC-"$CC"}
11490
11491 # If no C compiler flags were specified, use CFLAGS.
11492 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11493
11494 # Allow CC to be a program name with arguments.
11495 compiler=$CC
11496
11497
11498 # save warnings/boilerplate of simple test code
11499 ac_outfile=conftest.$ac_objext
11500 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11501 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11502 _lt_compiler_boilerplate=`cat conftest.err`
11503 $RM conftest*
11504
11505 ac_outfile=conftest.$ac_objext
11506 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11507 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11508 _lt_linker_boilerplate=`cat conftest.err`
11509 $RM -r conftest*
11510
11511
11512 # Allow CC to be a program name with arguments.
11513 lt_save_CC=$CC
11514 lt_save_CFLAGS=$CFLAGS
11515 lt_save_LD=$LD
11516 lt_save_GCC=$GCC
11517 GCC=$GXX
11518 lt_save_with_gnu_ld=$with_gnu_ld
11519 lt_save_path_LD=$lt_cv_path_LD
11520 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11521 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11522 else
11523 $as_unset lt_cv_prog_gnu_ld
11524 fi
11525 if test -n "${lt_cv_path_LDCXX+set}"; then
11526 lt_cv_path_LD=$lt_cv_path_LDCXX
11527 else
11528 $as_unset lt_cv_path_LD
11529 fi
11530 test -z "${LDCXX+set}" || LD=$LDCXX
11531 CC=${CXX-"c++"}
11532 CFLAGS=$CXXFLAGS
11533 compiler=$CC
11534 compiler_CXX=$CC
11535 for cc_temp in $compiler""; do
11536 case $cc_temp in
11537 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11538 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11539 \-*) ;;
11540 *) break;;
11541 esac
11542 done
11543 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11544
11545
11546 if test -n "$compiler"; then
11547 # We don't want -fno-exception when compiling C++ code, so set the
11548 # no_builtin_flag separately
11549 if test "$GXX" = yes; then
11550 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11551 else
11552 lt_prog_compiler_no_builtin_flag_CXX=
11553 fi
11554
11555 if test "$GXX" = yes; then
11556 # Set up default GNU C++ configuration
11557
11558
11559
11560 # Check whether --with-gnu-ld was given.
11561 if test "${with_gnu_ld+set}" = set; then :
11562 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11563 else
11564 with_gnu_ld=no
11565 fi
11566
11567 ac_prog=ld
11568 if test "$GCC" = yes; then
11569 # Check if gcc -print-prog-name=ld gives a path.
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11571 $as_echo_n "checking for ld used by $CC... " >&6; }
11572 case $host in
11573 *-*-mingw*)
11574 # gcc leaves a trailing carriage return which upsets mingw
11575 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11576 *)
11577 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11578 esac
11579 case $ac_prog in
11580 # Accept absolute paths.
11581 [\\/]* | ?:[\\/]*)
11582 re_direlt='/[^/][^/]*/\.\./'
11583 # Canonicalize the pathname of ld
11584 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11585 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11586 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11587 done
11588 test -z "$LD" && LD="$ac_prog"
11589 ;;
11590 "")
11591 # If it fails, then pretend we aren't using GCC.
11592 ac_prog=ld
11593 ;;
11594 *)
11595 # If it is relative, then search for the first ld in PATH.
11596 with_gnu_ld=unknown
11597 ;;
11598 esac
11599 elif test "$with_gnu_ld" = yes; then
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11601 $as_echo_n "checking for GNU ld... " >&6; }
11602 else
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11604 $as_echo_n "checking for non-GNU ld... " >&6; }
11605 fi
11606 if ${lt_cv_path_LD+:} false; then :
11607 $as_echo_n "(cached) " >&6
11608 else
11609 if test -z "$LD"; then
11610 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11611 for ac_dir in $PATH; do
11612 IFS="$lt_save_ifs"
11613 test -z "$ac_dir" && ac_dir=.
11614 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11615 lt_cv_path_LD="$ac_dir/$ac_prog"
11616 # Check to see if the program is GNU ld. I'd rather use --version,
11617 # but apparently some variants of GNU ld only accept -v.
11618 # Break only if it was the GNU/non-GNU ld that we prefer.
11619 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11620 *GNU* | *'with BFD'*)
11621 test "$with_gnu_ld" != no && break
11622 ;;
11623 *)
11624 test "$with_gnu_ld" != yes && break
11625 ;;
11626 esac
11627 fi
11628 done
11629 IFS="$lt_save_ifs"
11630 else
11631 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11632 fi
11633 fi
11634
11635 LD="$lt_cv_path_LD"
11636 if test -n "$LD"; then
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11638 $as_echo "$LD" >&6; }
11639 else
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11641 $as_echo "no" >&6; }
11642 fi
11643 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11645 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11646 if ${lt_cv_prog_gnu_ld+:} false; then :
11647 $as_echo_n "(cached) " >&6
11648 else
11649 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11650 case `$LD -v 2>&1 </dev/null` in
11651 *GNU* | *'with BFD'*)
11652 lt_cv_prog_gnu_ld=yes
11653 ;;
11654 *)
11655 lt_cv_prog_gnu_ld=no
11656 ;;
11657 esac
11658 fi
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11660 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11661 with_gnu_ld=$lt_cv_prog_gnu_ld
11662
11663
11664
11665
11666
11667
11668
11669 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11670 # archiving commands below assume that GNU ld is being used.
11671 if test "$with_gnu_ld" = yes; then
11672 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11673 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'
11674
11675 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11676 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11677
11678 # If archive_cmds runs LD, not CC, wlarc should be empty
11679 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11680 # investigate it a little bit more. (MM)
11681 wlarc='${wl}'
11682
11683 # ancient GNU ld didn't support --whole-archive et. al.
11684 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11685 $GREP 'no-whole-archive' > /dev/null; then
11686 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11687 else
11688 whole_archive_flag_spec_CXX=
11689 fi
11690 else
11691 with_gnu_ld=no
11692 wlarc=
11693
11694 # A generic and very simple default shared library creation
11695 # command for GNU C++ for the case where it uses the native
11696 # linker, instead of GNU ld. If possible, this setting should
11697 # overridden to take advantage of the native linker features on
11698 # the platform it is being used on.
11699 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11700 fi
11701
11702 # Commands to make compiler produce verbose output that lists
11703 # what "hidden" libraries, object files and flags are used when
11704 # linking a shared library.
11705 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11706
11707 else
11708 GXX=no
11709 with_gnu_ld=no
11710 wlarc=
11711 fi
11712
11713 # PORTME: fill in a description of your system's C++ link characteristics
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11715 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11716 ld_shlibs_CXX=yes
11717 case $host_os in
11718 aix3*)
11719 # FIXME: insert proper C++ library support
11720 ld_shlibs_CXX=no
11721 ;;
11722 aix[4-9]*)
11723 if test "$host_cpu" = ia64; then
11724 # On IA64, the linker does run time linking by default, so we don't
11725 # have to do anything special.
11726 aix_use_runtimelinking=no
11727 exp_sym_flag='-Bexport'
11728 no_entry_flag=""
11729 else
11730 aix_use_runtimelinking=no
11731
11732 # Test if we are trying to use run time linking or normal
11733 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11734 # need to do runtime linking.
11735 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11736 for ld_flag in $LDFLAGS; do
11737 case $ld_flag in
11738 *-brtl*)
11739 aix_use_runtimelinking=yes
11740 break
11741 ;;
11742 esac
11743 done
11744 ;;
11745 esac
11746
11747 exp_sym_flag='-bexport'
11748 no_entry_flag='-bnoentry'
11749 fi
11750
11751 # When large executables or shared objects are built, AIX ld can
11752 # have problems creating the table of contents. If linking a library
11753 # or program results in "error TOC overflow" add -mminimal-toc to
11754 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11755 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11756
11757 archive_cmds_CXX=''
11758 hardcode_direct_CXX=yes
11759 hardcode_direct_absolute_CXX=yes
11760 hardcode_libdir_separator_CXX=':'
11761 link_all_deplibs_CXX=yes
11762 file_list_spec_CXX='${wl}-f,'
11763
11764 if test "$GXX" = yes; then
11765 case $host_os in aix4.[012]|aix4.[012].*)
11766 # We only want to do this on AIX 4.2 and lower, the check
11767 # below for broken collect2 doesn't work under 4.3+
11768 collect2name=`${CC} -print-prog-name=collect2`
11769 if test -f "$collect2name" &&
11770 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11771 then
11772 # We have reworked collect2
11773 :
11774 else
11775 # We have old collect2
11776 hardcode_direct_CXX=unsupported
11777 # It fails to find uninstalled libraries when the uninstalled
11778 # path is not listed in the libpath. Setting hardcode_minus_L
11779 # to unsupported forces relinking
11780 hardcode_minus_L_CXX=yes
11781 hardcode_libdir_flag_spec_CXX='-L$libdir'
11782 hardcode_libdir_separator_CXX=
11783 fi
11784 esac
11785 shared_flag='-shared'
11786 if test "$aix_use_runtimelinking" = yes; then
11787 shared_flag="$shared_flag "'${wl}-G'
11788 fi
11789 else
11790 # not using gcc
11791 if test "$host_cpu" = ia64; then
11792 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11793 # chokes on -Wl,-G. The following line is correct:
11794 shared_flag='-G'
11795 else
11796 if test "$aix_use_runtimelinking" = yes; then
11797 shared_flag='${wl}-G'
11798 else
11799 shared_flag='${wl}-bM:SRE'
11800 fi
11801 fi
11802 fi
11803
11804 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11805 # It seems that -bexpall does not export symbols beginning with
11806 # underscore (_), so it is better to generate a list of symbols to
11807 # export.
11808 always_export_symbols_CXX=yes
11809 if test "$aix_use_runtimelinking" = yes; then
11810 # Warning - without using the other runtime loading flags (-brtl),
11811 # -berok will link without error, but may produce a broken library.
11812 allow_undefined_flag_CXX='-berok'
11813 # Determine the default libpath from the value encoded in an empty
11814 # executable.
11815 if test "${lt_cv_aix_libpath+set}" = set; then
11816 aix_libpath=$lt_cv_aix_libpath
11817 else
11818 if ${lt_cv_aix_libpath__CXX+:} false; then :
11819 $as_echo_n "(cached) " >&6
11820 else
11821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11822 /* end confdefs.h. */
11823
11824 int
11825 main ()
11826 {
11827
11828 ;
11829 return 0;
11830 }
11831 _ACEOF
11832 if ac_fn_cxx_try_link "$LINENO"; then :
11833
11834 lt_aix_libpath_sed='
11835 /Import File Strings/,/^$/ {
11836 /^0/ {
11837 s/^0 *\([^ ]*\) *$/\1/
11838 p
11839 }
11840 }'
11841 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11842 # Check for a 64-bit object if we didn't find anything.
11843 if test -z "$lt_cv_aix_libpath__CXX"; then
11844 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11845 fi
11846 fi
11847 rm -f core conftest.err conftest.$ac_objext \
11848 conftest$ac_exeext conftest.$ac_ext
11849 if test -z "$lt_cv_aix_libpath__CXX"; then
11850 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
11851 fi
11852
11853 fi
11854
11855 aix_libpath=$lt_cv_aix_libpath__CXX
11856 fi
11857
11858 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11859
11860 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"
11861 else
11862 if test "$host_cpu" = ia64; then
11863 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11864 allow_undefined_flag_CXX="-z nodefs"
11865 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"
11866 else
11867 # Determine the default libpath from the value encoded in an
11868 # empty executable.
11869 if test "${lt_cv_aix_libpath+set}" = set; then
11870 aix_libpath=$lt_cv_aix_libpath
11871 else
11872 if ${lt_cv_aix_libpath__CXX+:} false; then :
11873 $as_echo_n "(cached) " >&6
11874 else
11875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876 /* end confdefs.h. */
11877
11878 int
11879 main ()
11880 {
11881
11882 ;
11883 return 0;
11884 }
11885 _ACEOF
11886 if ac_fn_cxx_try_link "$LINENO"; then :
11887
11888 lt_aix_libpath_sed='
11889 /Import File Strings/,/^$/ {
11890 /^0/ {
11891 s/^0 *\([^ ]*\) *$/\1/
11892 p
11893 }
11894 }'
11895 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11896 # Check for a 64-bit object if we didn't find anything.
11897 if test -z "$lt_cv_aix_libpath__CXX"; then
11898 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11899 fi
11900 fi
11901 rm -f core conftest.err conftest.$ac_objext \
11902 conftest$ac_exeext conftest.$ac_ext
11903 if test -z "$lt_cv_aix_libpath__CXX"; then
11904 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
11905 fi
11906
11907 fi
11908
11909 aix_libpath=$lt_cv_aix_libpath__CXX
11910 fi
11911
11912 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11913 # Warning - without using the other run time loading flags,
11914 # -berok will link without error, but may produce a broken library.
11915 no_undefined_flag_CXX=' ${wl}-bernotok'
11916 allow_undefined_flag_CXX=' ${wl}-berok'
11917 if test "$with_gnu_ld" = yes; then
11918 # We only use this code for GNU lds that support --whole-archive.
11919 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11920 else
11921 # Exported symbols can be pulled into shared objects from archives
11922 whole_archive_flag_spec_CXX='$convenience'
11923 fi
11924 archive_cmds_need_lc_CXX=yes
11925 # This is similar to how AIX traditionally builds its shared
11926 # libraries.
11927 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'
11928 fi
11929 fi
11930 ;;
11931
11932 beos*)
11933 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11934 allow_undefined_flag_CXX=unsupported
11935 # Joseph Beckenbach <[email protected]> says some releases of gcc
11936 # support --undefined. This deserves some investigation. FIXME
11937 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11938 else
11939 ld_shlibs_CXX=no
11940 fi
11941 ;;
11942
11943 chorus*)
11944 case $cc_basename in
11945 *)
11946 # FIXME: insert proper C++ library support
11947 ld_shlibs_CXX=no
11948 ;;
11949 esac
11950 ;;
11951
11952 cygwin* | mingw* | pw32* | cegcc*)
11953 case $GXX,$cc_basename in
11954 ,cl* | no,cl*)
11955 # Native MSVC
11956 # hardcode_libdir_flag_spec is actually meaningless, as there is
11957 # no search path for DLLs.
11958 hardcode_libdir_flag_spec_CXX=' '
11959 allow_undefined_flag_CXX=unsupported
11960 always_export_symbols_CXX=yes
11961 file_list_spec_CXX='@'
11962 # Tell ltmain to make .lib files, not .a files.
11963 libext=lib
11964 # Tell ltmain to make .dll files, not .so files.
11965 shrext_cmds=".dll"
11966 # FIXME: Setting linknames here is a bad hack.
11967 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11968 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11969 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11970 else
11971 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11972 fi~
11973 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11974 linknames='
11975 # The linker will not automatically build a static lib if we build a DLL.
11976 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
11977 enable_shared_with_static_runtimes_CXX=yes
11978 # Don't use ranlib
11979 old_postinstall_cmds_CXX='chmod 644 $oldlib'
11980 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
11981 lt_tool_outputfile="@TOOL_OUTPUT@"~
11982 case $lt_outputfile in
11983 *.exe|*.EXE) ;;
11984 *)
11985 lt_outputfile="$lt_outputfile.exe"
11986 lt_tool_outputfile="$lt_tool_outputfile.exe"
11987 ;;
11988 esac~
11989 func_to_tool_file "$lt_outputfile"~
11990 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11991 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11992 $RM "$lt_outputfile.manifest";
11993 fi'
11994 ;;
11995 *)
11996 # g++
11997 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11998 # as there is no search path for DLLs.
11999 hardcode_libdir_flag_spec_CXX='-L$libdir'
12000 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12001 allow_undefined_flag_CXX=unsupported
12002 always_export_symbols_CXX=no
12003 enable_shared_with_static_runtimes_CXX=yes
12004
12005 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12006 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'
12007 # If the export-symbols file already is a .def file (1st line
12008 # is EXPORTS), use it as is; otherwise, prepend...
12009 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12010 cp $export_symbols $output_objdir/$soname.def;
12011 else
12012 echo EXPORTS > $output_objdir/$soname.def;
12013 cat $export_symbols >> $output_objdir/$soname.def;
12014 fi~
12015 $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'
12016 else
12017 ld_shlibs_CXX=no
12018 fi
12019 ;;
12020 esac
12021 ;;
12022 darwin* | rhapsody*)
12023
12024
12025 archive_cmds_need_lc_CXX=no
12026 hardcode_direct_CXX=no
12027 hardcode_automatic_CXX=yes
12028 hardcode_shlibpath_var_CXX=unsupported
12029 if test "$lt_cv_ld_force_load" = "yes"; then
12030 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\"`'
12031
12032 else
12033 whole_archive_flag_spec_CXX=''
12034 fi
12035 link_all_deplibs_CXX=yes
12036 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12037 case $cc_basename in
12038 ifort*) _lt_dar_can_shared=yes ;;
12039 *) _lt_dar_can_shared=$GCC ;;
12040 esac
12041 if test "$_lt_dar_can_shared" = "yes"; then
12042 output_verbose_link_cmd=func_echo_all
12043 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}"
12044 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12045 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}"
12046 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}"
12047 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12048 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}"
12049 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}"
12050 fi
12051
12052 else
12053 ld_shlibs_CXX=no
12054 fi
12055
12056 ;;
12057
12058 dgux*)
12059 case $cc_basename in
12060 ec++*)
12061 # FIXME: insert proper C++ library support
12062 ld_shlibs_CXX=no
12063 ;;
12064 ghcx*)
12065 # Green Hills C++ Compiler
12066 # FIXME: insert proper C++ library support
12067 ld_shlibs_CXX=no
12068 ;;
12069 *)
12070 # FIXME: insert proper C++ library support
12071 ld_shlibs_CXX=no
12072 ;;
12073 esac
12074 ;;
12075
12076 freebsd2.*)
12077 # C++ shared libraries reported to be fairly broken before
12078 # switch to ELF
12079 ld_shlibs_CXX=no
12080 ;;
12081
12082 freebsd-elf*)
12083 archive_cmds_need_lc_CXX=no
12084 ;;
12085
12086 freebsd* | dragonfly*)
12087 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12088 # conventions
12089 ld_shlibs_CXX=yes
12090 ;;
12091
12092 haiku*)
12093 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12094 link_all_deplibs_CXX=yes
12095 ;;
12096
12097 hpux9*)
12098 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12099 hardcode_libdir_separator_CXX=:
12100 export_dynamic_flag_spec_CXX='${wl}-E'
12101 hardcode_direct_CXX=yes
12102 hardcode_minus_L_CXX=yes # Not in the search PATH,
12103 # but as the default
12104 # location of the library.
12105
12106 case $cc_basename in
12107 CC*)
12108 # FIXME: insert proper C++ library support
12109 ld_shlibs_CXX=no
12110 ;;
12111 aCC*)
12112 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'
12113 # Commands to make compiler produce verbose output that lists
12114 # what "hidden" libraries, object files and flags are used when
12115 # linking a shared library.
12116 #
12117 # There doesn't appear to be a way to prevent this compiler from
12118 # explicitly linking system object files so we need to strip them
12119 # from the output so that they don't get included in the library
12120 # dependencies.
12121 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"'
12122 ;;
12123 *)
12124 if test "$GXX" = yes; then
12125 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'
12126 else
12127 # FIXME: insert proper C++ library support
12128 ld_shlibs_CXX=no
12129 fi
12130 ;;
12131 esac
12132 ;;
12133
12134 hpux10*|hpux11*)
12135 if test $with_gnu_ld = no; then
12136 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12137 hardcode_libdir_separator_CXX=:
12138
12139 case $host_cpu in
12140 hppa*64*|ia64*)
12141 ;;
12142 *)
12143 export_dynamic_flag_spec_CXX='${wl}-E'
12144 ;;
12145 esac
12146 fi
12147 case $host_cpu in
12148 hppa*64*|ia64*)
12149 hardcode_direct_CXX=no
12150 hardcode_shlibpath_var_CXX=no
12151 ;;
12152 *)
12153 hardcode_direct_CXX=yes
12154 hardcode_direct_absolute_CXX=yes
12155 hardcode_minus_L_CXX=yes # Not in the search PATH,
12156 # but as the default
12157 # location of the library.
12158 ;;
12159 esac
12160
12161 case $cc_basename in
12162 CC*)
12163 # FIXME: insert proper C++ library support
12164 ld_shlibs_CXX=no
12165 ;;
12166 aCC*)
12167 case $host_cpu in
12168 hppa*64*)
12169 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12170 ;;
12171 ia64*)
12172 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12173 ;;
12174 *)
12175 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12176 ;;
12177 esac
12178 # Commands to make compiler produce verbose output that lists
12179 # what "hidden" libraries, object files and flags are used when
12180 # linking a shared library.
12181 #
12182 # There doesn't appear to be a way to prevent this compiler from
12183 # explicitly linking system object files so we need to strip them
12184 # from the output so that they don't get included in the library
12185 # dependencies.
12186 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"'
12187 ;;
12188 *)
12189 if test "$GXX" = yes; then
12190 if test $with_gnu_ld = no; then
12191 case $host_cpu in
12192 hppa*64*)
12193 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12194 ;;
12195 ia64*)
12196 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12197 ;;
12198 *)
12199 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'
12200 ;;
12201 esac
12202 fi
12203 else
12204 # FIXME: insert proper C++ library support
12205 ld_shlibs_CXX=no
12206 fi
12207 ;;
12208 esac
12209 ;;
12210
12211 interix[3-9]*)
12212 hardcode_direct_CXX=no
12213 hardcode_shlibpath_var_CXX=no
12214 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12215 export_dynamic_flag_spec_CXX='${wl}-E'
12216 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12217 # Instead, shared libraries are loaded at an image base (0x10000000 by
12218 # default) and relocated if they conflict, which is a slow very memory
12219 # consuming and fragmenting process. To avoid this, we pick a random,
12220 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12221 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12222 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'
12223 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'
12224 ;;
12225 irix5* | irix6*)
12226 case $cc_basename in
12227 CC*)
12228 # SGI C++
12229 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'
12230
12231 # Archives containing C++ object files must be created using
12232 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12233 # necessary to make sure instantiated templates are included
12234 # in the archive.
12235 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12236 ;;
12237 *)
12238 if test "$GXX" = yes; then
12239 if test "$with_gnu_ld" = no; then
12240 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'
12241 else
12242 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'
12243 fi
12244 fi
12245 link_all_deplibs_CXX=yes
12246 ;;
12247 esac
12248 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12249 hardcode_libdir_separator_CXX=:
12250 inherit_rpath_CXX=yes
12251 ;;
12252
12253 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12254 case $cc_basename in
12255 KCC*)
12256 # Kuck and Associates, Inc. (KAI) C++ Compiler
12257
12258 # KCC will only create a shared library if the output file
12259 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12260 # to its proper name (with version) after linking.
12261 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'
12262 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'
12263 # Commands to make compiler produce verbose output that lists
12264 # what "hidden" libraries, object files and flags are used when
12265 # linking a shared library.
12266 #
12267 # There doesn't appear to be a way to prevent this compiler from
12268 # explicitly linking system object files so we need to strip them
12269 # from the output so that they don't get included in the library
12270 # dependencies.
12271 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"'
12272
12273 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12274 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12275
12276 # Archives containing C++ object files must be created using
12277 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12278 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12279 ;;
12280 icpc* | ecpc* )
12281 # Intel C++
12282 with_gnu_ld=yes
12283 # version 8.0 and above of icpc choke on multiply defined symbols
12284 # if we add $predep_objects and $postdep_objects, however 7.1 and
12285 # earlier do not add the objects themselves.
12286 case `$CC -V 2>&1` in
12287 *"Version 7."*)
12288 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12289 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'
12290 ;;
12291 *) # Version 8.0 or newer
12292 tmp_idyn=
12293 case $host_cpu in
12294 ia64*) tmp_idyn=' -i_dynamic';;
12295 esac
12296 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12297 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'
12298 ;;
12299 esac
12300 archive_cmds_need_lc_CXX=no
12301 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12302 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12303 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12304 ;;
12305 pgCC* | pgcpp*)
12306 # Portland Group C++ compiler
12307 case `$CC -V` in
12308 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12309 prelink_cmds_CXX='tpldir=Template.dir~
12310 rm -rf $tpldir~
12311 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12312 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12313 old_archive_cmds_CXX='tpldir=Template.dir~
12314 rm -rf $tpldir~
12315 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12316 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12317 $RANLIB $oldlib'
12318 archive_cmds_CXX='tpldir=Template.dir~
12319 rm -rf $tpldir~
12320 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12321 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12322 archive_expsym_cmds_CXX='tpldir=Template.dir~
12323 rm -rf $tpldir~
12324 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12325 $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'
12326 ;;
12327 *) # Version 6 and above use weak symbols
12328 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12329 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'
12330 ;;
12331 esac
12332
12333 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12334 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12335 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'
12336 ;;
12337 cxx*)
12338 # Compaq C++
12339 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12340 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'
12341
12342 runpath_var=LD_RUN_PATH
12343 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12344 hardcode_libdir_separator_CXX=:
12345
12346 # Commands to make compiler produce verbose output that lists
12347 # what "hidden" libraries, object files and flags are used when
12348 # linking a shared library.
12349 #
12350 # There doesn't appear to be a way to prevent this compiler from
12351 # explicitly linking system object files so we need to strip them
12352 # from the output so that they don't get included in the library
12353 # dependencies.
12354 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'
12355 ;;
12356 xl* | mpixl* | bgxl*)
12357 # IBM XL 8.0 on PPC, with GNU ld
12358 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12359 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12360 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12361 if test "x$supports_anon_versioning" = xyes; then
12362 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12363 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12364 echo "local: *; };" >> $output_objdir/$libname.ver~
12365 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12366 fi
12367 ;;
12368 *)
12369 case `$CC -V 2>&1 | sed 5q` in
12370 *Sun\ C*)
12371 # Sun C++ 5.9
12372 no_undefined_flag_CXX=' -zdefs'
12373 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12374 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'
12375 hardcode_libdir_flag_spec_CXX='-R$libdir'
12376 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'
12377 compiler_needs_object_CXX=yes
12378
12379 # Not sure whether something based on
12380 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12381 # would be better.
12382 output_verbose_link_cmd='func_echo_all'
12383
12384 # Archives containing C++ object files must be created using
12385 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12386 # necessary to make sure instantiated templates are included
12387 # in the archive.
12388 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12389 ;;
12390 esac
12391 ;;
12392 esac
12393 ;;
12394
12395 lynxos*)
12396 # FIXME: insert proper C++ library support
12397 ld_shlibs_CXX=no
12398 ;;
12399
12400 m88k*)
12401 # FIXME: insert proper C++ library support
12402 ld_shlibs_CXX=no
12403 ;;
12404
12405 mvs*)
12406 case $cc_basename in
12407 cxx*)
12408 # FIXME: insert proper C++ library support
12409 ld_shlibs_CXX=no
12410 ;;
12411 *)
12412 # FIXME: insert proper C++ library support
12413 ld_shlibs_CXX=no
12414 ;;
12415 esac
12416 ;;
12417
12418 netbsd*)
12419 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12420 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12421 wlarc=
12422 hardcode_libdir_flag_spec_CXX='-R$libdir'
12423 hardcode_direct_CXX=yes
12424 hardcode_shlibpath_var_CXX=no
12425 fi
12426 # Workaround some broken pre-1.5 toolchains
12427 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12428 ;;
12429
12430 *nto* | *qnx*)
12431 ld_shlibs_CXX=yes
12432 ;;
12433
12434 openbsd2*)
12435 # C++ shared libraries are fairly broken
12436 ld_shlibs_CXX=no
12437 ;;
12438
12439 openbsd*)
12440 if test -f /usr/libexec/ld.so; then
12441 hardcode_direct_CXX=yes
12442 hardcode_shlibpath_var_CXX=no
12443 hardcode_direct_absolute_CXX=yes
12444 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12445 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12446 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12447 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12448 export_dynamic_flag_spec_CXX='${wl}-E'
12449 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12450 fi
12451 output_verbose_link_cmd=func_echo_all
12452 else
12453 ld_shlibs_CXX=no
12454 fi
12455 ;;
12456
12457 osf3* | osf4* | osf5*)
12458 case $cc_basename in
12459 KCC*)
12460 # Kuck and Associates, Inc. (KAI) C++ Compiler
12461
12462 # KCC will only create a shared library if the output file
12463 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12464 # to its proper name (with version) after linking.
12465 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'
12466
12467 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12468 hardcode_libdir_separator_CXX=:
12469
12470 # Archives containing C++ object files must be created using
12471 # the KAI C++ compiler.
12472 case $host in
12473 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12474 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12475 esac
12476 ;;
12477 RCC*)
12478 # Rational C++ 2.4.1
12479 # FIXME: insert proper C++ library support
12480 ld_shlibs_CXX=no
12481 ;;
12482 cxx*)
12483 case $host in
12484 osf3*)
12485 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12486 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'
12487 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12488 ;;
12489 *)
12490 allow_undefined_flag_CXX=' -expect_unresolved \*'
12491 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'
12492 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12493 echo "-hidden">> $lib.exp~
12494 $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~
12495 $RM $lib.exp'
12496 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12497 ;;
12498 esac
12499
12500 hardcode_libdir_separator_CXX=:
12501
12502 # Commands to make compiler produce verbose output that lists
12503 # what "hidden" libraries, object files and flags are used when
12504 # linking a shared library.
12505 #
12506 # There doesn't appear to be a way to prevent this compiler from
12507 # explicitly linking system object files so we need to strip them
12508 # from the output so that they don't get included in the library
12509 # dependencies.
12510 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"'
12511 ;;
12512 *)
12513 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12514 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12515 case $host in
12516 osf3*)
12517 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'
12518 ;;
12519 *)
12520 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'
12521 ;;
12522 esac
12523
12524 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12525 hardcode_libdir_separator_CXX=:
12526
12527 # Commands to make compiler produce verbose output that lists
12528 # what "hidden" libraries, object files and flags are used when
12529 # linking a shared library.
12530 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12531
12532 else
12533 # FIXME: insert proper C++ library support
12534 ld_shlibs_CXX=no
12535 fi
12536 ;;
12537 esac
12538 ;;
12539
12540 psos*)
12541 # FIXME: insert proper C++ library support
12542 ld_shlibs_CXX=no
12543 ;;
12544
12545 sunos4*)
12546 case $cc_basename in
12547 CC*)
12548 # Sun C++ 4.x
12549 # FIXME: insert proper C++ library support
12550 ld_shlibs_CXX=no
12551 ;;
12552 lcc*)
12553 # Lucid
12554 # FIXME: insert proper C++ library support
12555 ld_shlibs_CXX=no
12556 ;;
12557 *)
12558 # FIXME: insert proper C++ library support
12559 ld_shlibs_CXX=no
12560 ;;
12561 esac
12562 ;;
12563
12564 solaris*)
12565 case $cc_basename in
12566 CC* | sunCC*)
12567 # Sun C++ 4.2, 5.x and Centerline C++
12568 archive_cmds_need_lc_CXX=yes
12569 no_undefined_flag_CXX=' -zdefs'
12570 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12571 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12572 $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'
12573
12574 hardcode_libdir_flag_spec_CXX='-R$libdir'
12575 hardcode_shlibpath_var_CXX=no
12576 case $host_os in
12577 solaris2.[0-5] | solaris2.[0-5].*) ;;
12578 *)
12579 # The compiler driver will combine and reorder linker options,
12580 # but understands `-z linker_flag'.
12581 # Supported since Solaris 2.6 (maybe 2.5.1?)
12582 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12583 ;;
12584 esac
12585 link_all_deplibs_CXX=yes
12586
12587 output_verbose_link_cmd='func_echo_all'
12588
12589 # Archives containing C++ object files must be created using
12590 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12591 # necessary to make sure instantiated templates are included
12592 # in the archive.
12593 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12594 ;;
12595 gcx*)
12596 # Green Hills C++ Compiler
12597 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12598
12599 # The C++ compiler must be used to create the archive.
12600 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12601 ;;
12602 *)
12603 # GNU C++ compiler with Solaris linker
12604 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12605 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12606 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12607 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12608 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12609 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12610
12611 # Commands to make compiler produce verbose output that lists
12612 # what "hidden" libraries, object files and flags are used when
12613 # linking a shared library.
12614 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12615 else
12616 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12617 # platform.
12618 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12619 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12620 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12621
12622 # Commands to make compiler produce verbose output that lists
12623 # what "hidden" libraries, object files and flags are used when
12624 # linking a shared library.
12625 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12626 fi
12627
12628 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12629 case $host_os in
12630 solaris2.[0-5] | solaris2.[0-5].*) ;;
12631 *)
12632 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12633 ;;
12634 esac
12635 fi
12636 ;;
12637 esac
12638 ;;
12639
12640 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12641 no_undefined_flag_CXX='${wl}-z,text'
12642 archive_cmds_need_lc_CXX=no
12643 hardcode_shlibpath_var_CXX=no
12644 runpath_var='LD_RUN_PATH'
12645
12646 case $cc_basename in
12647 CC*)
12648 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12649 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12650 ;;
12651 *)
12652 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12653 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12654 ;;
12655 esac
12656 ;;
12657
12658 sysv5* | sco3.2v5* | sco5v6*)
12659 # Note: We can NOT use -z defs as we might desire, because we do not
12660 # link with -lc, and that would cause any symbols used from libc to
12661 # always be unresolved, which means just about no library would
12662 # ever link correctly. If we're not using GNU ld we use -z text
12663 # though, which does catch some bad symbols but isn't as heavy-handed
12664 # as -z defs.
12665 no_undefined_flag_CXX='${wl}-z,text'
12666 allow_undefined_flag_CXX='${wl}-z,nodefs'
12667 archive_cmds_need_lc_CXX=no
12668 hardcode_shlibpath_var_CXX=no
12669 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12670 hardcode_libdir_separator_CXX=':'
12671 link_all_deplibs_CXX=yes
12672 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12673 runpath_var='LD_RUN_PATH'
12674
12675 case $cc_basename in
12676 CC*)
12677 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12678 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12679 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12680 '"$old_archive_cmds_CXX"
12681 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12682 '"$reload_cmds_CXX"
12683 ;;
12684 *)
12685 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12686 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12687 ;;
12688 esac
12689 ;;
12690
12691 tandem*)
12692 case $cc_basename in
12693 NCC*)
12694 # NonStop-UX NCC 3.20
12695 # FIXME: insert proper C++ library support
12696 ld_shlibs_CXX=no
12697 ;;
12698 *)
12699 # FIXME: insert proper C++ library support
12700 ld_shlibs_CXX=no
12701 ;;
12702 esac
12703 ;;
12704
12705 vxworks*)
12706 # FIXME: insert proper C++ library support
12707 ld_shlibs_CXX=no
12708 ;;
12709
12710 *)
12711 # FIXME: insert proper C++ library support
12712 ld_shlibs_CXX=no
12713 ;;
12714 esac
12715
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12717 $as_echo "$ld_shlibs_CXX" >&6; }
12718 test "$ld_shlibs_CXX" = no && can_build_shared=no
12719
12720 GCC_CXX="$GXX"
12721 LD_CXX="$LD"
12722
12723 ## CAVEAT EMPTOR:
12724 ## There is no encapsulation within the following macros, do not change
12725 ## the running order or otherwise move them around unless you know exactly
12726 ## what you are doing...
12727 # Dependencies to place before and after the object being linked:
12728 predep_objects_CXX=
12729 postdep_objects_CXX=
12730 predeps_CXX=
12731 postdeps_CXX=
12732 compiler_lib_search_path_CXX=
12733
12734 cat > conftest.$ac_ext <<_LT_EOF
12735 class Foo
12736 {
12737 public:
12738 Foo (void) { a = 0; }
12739 private:
12740 int a;
12741 };
12742 _LT_EOF
12743
12744
12745 _lt_libdeps_save_CFLAGS=$CFLAGS
12746 case "$CC $CFLAGS " in #(
12747 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
12748 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
12749 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
12750 esac
12751
12752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12753 (eval $ac_compile) 2>&5
12754 ac_status=$?
12755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12756 test $ac_status = 0; }; then
12757 # Parse the compiler output and extract the necessary
12758 # objects, libraries and library flags.
12759
12760 # Sentinel used to keep track of whether or not we are before
12761 # the conftest object file.
12762 pre_test_object_deps_done=no
12763
12764 for p in `eval "$output_verbose_link_cmd"`; do
12765 case ${prev}${p} in
12766
12767 -L* | -R* | -l*)
12768 # Some compilers place space between "-{L,R}" and the path.
12769 # Remove the space.
12770 if test $p = "-L" ||
12771 test $p = "-R"; then
12772 prev=$p
12773 continue
12774 fi
12775
12776 # Expand the sysroot to ease extracting the directories later.
12777 if test -z "$prev"; then
12778 case $p in
12779 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
12780 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
12781 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
12782 esac
12783 fi
12784 case $p in
12785 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
12786 esac
12787 if test "$pre_test_object_deps_done" = no; then
12788 case ${prev} in
12789 -L | -R)
12790 # Internal compiler library paths should come after those
12791 # provided the user. The postdeps already come after the
12792 # user supplied libs so there is no need to process them.
12793 if test -z "$compiler_lib_search_path_CXX"; then
12794 compiler_lib_search_path_CXX="${prev}${p}"
12795 else
12796 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12797 fi
12798 ;;
12799 # The "-l" case would never come before the object being
12800 # linked, so don't bother handling this case.
12801 esac
12802 else
12803 if test -z "$postdeps_CXX"; then
12804 postdeps_CXX="${prev}${p}"
12805 else
12806 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12807 fi
12808 fi
12809 prev=
12810 ;;
12811
12812 *.lto.$objext) ;; # Ignore GCC LTO objects
12813 *.$objext)
12814 # This assumes that the test object file only shows up
12815 # once in the compiler output.
12816 if test "$p" = "conftest.$objext"; then
12817 pre_test_object_deps_done=yes
12818 continue
12819 fi
12820
12821 if test "$pre_test_object_deps_done" = no; then
12822 if test -z "$predep_objects_CXX"; then
12823 predep_objects_CXX="$p"
12824 else
12825 predep_objects_CXX="$predep_objects_CXX $p"
12826 fi
12827 else
12828 if test -z "$postdep_objects_CXX"; then
12829 postdep_objects_CXX="$p"
12830 else
12831 postdep_objects_CXX="$postdep_objects_CXX $p"
12832 fi
12833 fi
12834 ;;
12835
12836 *) ;; # Ignore the rest.
12837
12838 esac
12839 done
12840
12841 # Clean up.
12842 rm -f a.out a.exe
12843 else
12844 echo "libtool.m4: error: problem compiling CXX test program"
12845 fi
12846
12847 $RM -f confest.$objext
12848 CFLAGS=$_lt_libdeps_save_CFLAGS
12849
12850 # PORTME: override above test on systems where it is broken
12851 case $host_os in
12852 interix[3-9]*)
12853 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12854 # hack all around it, let's just trust "g++" to DTRT.
12855 predep_objects_CXX=
12856 postdep_objects_CXX=
12857 postdeps_CXX=
12858 ;;
12859
12860 linux*)
12861 case `$CC -V 2>&1 | sed 5q` in
12862 *Sun\ C*)
12863 # Sun C++ 5.9
12864
12865 # The more standards-conforming stlport4 library is
12866 # incompatible with the Cstd library. Avoid specifying
12867 # it if it's in CXXFLAGS. Ignore libCrun as
12868 # -library=stlport4 depends on it.
12869 case " $CXX $CXXFLAGS " in
12870 *" -library=stlport4 "*)
12871 solaris_use_stlport4=yes
12872 ;;
12873 esac
12874
12875 if test "$solaris_use_stlport4" != yes; then
12876 postdeps_CXX='-library=Cstd -library=Crun'
12877 fi
12878 ;;
12879 esac
12880 ;;
12881
12882 solaris*)
12883 case $cc_basename in
12884 CC* | sunCC*)
12885 # The more standards-conforming stlport4 library is
12886 # incompatible with the Cstd library. Avoid specifying
12887 # it if it's in CXXFLAGS. Ignore libCrun as
12888 # -library=stlport4 depends on it.
12889 case " $CXX $CXXFLAGS " in
12890 *" -library=stlport4 "*)
12891 solaris_use_stlport4=yes
12892 ;;
12893 esac
12894
12895 # Adding this requires a known-good setup of shared libraries for
12896 # Sun compiler versions before 5.6, else PIC objects from an old
12897 # archive will be linked into the output, leading to subtle bugs.
12898 if test "$solaris_use_stlport4" != yes; then
12899 postdeps_CXX='-library=Cstd -library=Crun'
12900 fi
12901 ;;
12902 esac
12903 ;;
12904 esac
12905
12906
12907 case " $postdeps_CXX " in
12908 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12909 esac
12910 compiler_lib_search_dirs_CXX=
12911 if test -n "${compiler_lib_search_path_CXX}"; then
12912 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12913 fi
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945 lt_prog_compiler_wl_CXX=
12946 lt_prog_compiler_pic_CXX=
12947 lt_prog_compiler_static_CXX=
12948
12949
12950 # C++ specific cases for pic, static, wl, etc.
12951 if test "$GXX" = yes; then
12952 lt_prog_compiler_wl_CXX='-Wl,'
12953 lt_prog_compiler_static_CXX='-static'
12954
12955 case $host_os in
12956 aix*)
12957 # All AIX code is PIC.
12958 if test "$host_cpu" = ia64; then
12959 # AIX 5 now supports IA64 processor
12960 lt_prog_compiler_static_CXX='-Bstatic'
12961 fi
12962 ;;
12963
12964 amigaos*)
12965 case $host_cpu in
12966 powerpc)
12967 # see comment about AmigaOS4 .so support
12968 lt_prog_compiler_pic_CXX='-fPIC'
12969 ;;
12970 m68k)
12971 # FIXME: we need at least 68020 code to build shared libraries, but
12972 # adding the `-m68020' flag to GCC prevents building anything better,
12973 # like `-m68040'.
12974 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12975 ;;
12976 esac
12977 ;;
12978
12979 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12980 # PIC is the default for these OSes.
12981 ;;
12982 mingw* | cygwin* | os2* | pw32* | cegcc*)
12983 # This hack is so that the source file can tell whether it is being
12984 # built for inclusion in a dll (and should export symbols for example).
12985 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12986 # (--disable-auto-import) libraries
12987 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12988 ;;
12989 darwin* | rhapsody*)
12990 # PIC is the default on this platform
12991 # Common symbols not allowed in MH_DYLIB files
12992 lt_prog_compiler_pic_CXX='-fno-common'
12993 ;;
12994 *djgpp*)
12995 # DJGPP does not support shared libraries at all
12996 lt_prog_compiler_pic_CXX=
12997 ;;
12998 haiku*)
12999 # PIC is the default for Haiku.
13000 # The "-static" flag exists, but is broken.
13001 lt_prog_compiler_static_CXX=
13002 ;;
13003 interix[3-9]*)
13004 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13005 # Instead, we relocate shared libraries at runtime.
13006 ;;
13007 sysv4*MP*)
13008 if test -d /usr/nec; then
13009 lt_prog_compiler_pic_CXX=-Kconform_pic
13010 fi
13011 ;;
13012 hpux*)
13013 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13014 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13015 # sets the default TLS model and affects inlining.
13016 case $host_cpu in
13017 hppa*64*)
13018 ;;
13019 *)
13020 lt_prog_compiler_pic_CXX='-fPIC'
13021 ;;
13022 esac
13023 ;;
13024 *qnx* | *nto*)
13025 # QNX uses GNU C++, but need to define -shared option too, otherwise
13026 # it will coredump.
13027 lt_prog_compiler_pic_CXX='-fPIC -shared'
13028 ;;
13029 *)
13030 lt_prog_compiler_pic_CXX='-fPIC'
13031 ;;
13032 esac
13033 else
13034 case $host_os in
13035 aix[4-9]*)
13036 # All AIX code is PIC.
13037 if test "$host_cpu" = ia64; then
13038 # AIX 5 now supports IA64 processor
13039 lt_prog_compiler_static_CXX='-Bstatic'
13040 else
13041 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13042 fi
13043 ;;
13044 chorus*)
13045 case $cc_basename in
13046 cxch68*)
13047 # Green Hills C++ Compiler
13048 # _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"
13049 ;;
13050 esac
13051 ;;
13052 mingw* | cygwin* | os2* | pw32* | cegcc*)
13053 # This hack is so that the source file can tell whether it is being
13054 # built for inclusion in a dll (and should export symbols for example).
13055 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13056 ;;
13057 dgux*)
13058 case $cc_basename in
13059 ec++*)
13060 lt_prog_compiler_pic_CXX='-KPIC'
13061 ;;
13062 ghcx*)
13063 # Green Hills C++ Compiler
13064 lt_prog_compiler_pic_CXX='-pic'
13065 ;;
13066 *)
13067 ;;
13068 esac
13069 ;;
13070 freebsd* | dragonfly*)
13071 # FreeBSD uses GNU C++
13072 ;;
13073 hpux9* | hpux10* | hpux11*)
13074 case $cc_basename in
13075 CC*)
13076 lt_prog_compiler_wl_CXX='-Wl,'
13077 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13078 if test "$host_cpu" != ia64; then
13079 lt_prog_compiler_pic_CXX='+Z'
13080 fi
13081 ;;
13082 aCC*)
13083 lt_prog_compiler_wl_CXX='-Wl,'
13084 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13085 case $host_cpu in
13086 hppa*64*|ia64*)
13087 # +Z the default
13088 ;;
13089 *)
13090 lt_prog_compiler_pic_CXX='+Z'
13091 ;;
13092 esac
13093 ;;
13094 *)
13095 ;;
13096 esac
13097 ;;
13098 interix*)
13099 # This is c89, which is MS Visual C++ (no shared libs)
13100 # Anyone wants to do a port?
13101 ;;
13102 irix5* | irix6* | nonstopux*)
13103 case $cc_basename in
13104 CC*)
13105 lt_prog_compiler_wl_CXX='-Wl,'
13106 lt_prog_compiler_static_CXX='-non_shared'
13107 # CC pic flag -KPIC is the default.
13108 ;;
13109 *)
13110 ;;
13111 esac
13112 ;;
13113 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13114 case $cc_basename in
13115 KCC*)
13116 # KAI C++ Compiler
13117 lt_prog_compiler_wl_CXX='--backend -Wl,'
13118 lt_prog_compiler_pic_CXX='-fPIC'
13119 ;;
13120 ecpc* )
13121 # old Intel C++ for x86_64 which still supported -KPIC.
13122 lt_prog_compiler_wl_CXX='-Wl,'
13123 lt_prog_compiler_pic_CXX='-KPIC'
13124 lt_prog_compiler_static_CXX='-static'
13125 ;;
13126 icpc* )
13127 # Intel C++, used to be incompatible with GCC.
13128 # ICC 10 doesn't accept -KPIC any more.
13129 lt_prog_compiler_wl_CXX='-Wl,'
13130 lt_prog_compiler_pic_CXX='-fPIC'
13131 lt_prog_compiler_static_CXX='-static'
13132 ;;
13133 pgCC* | pgcpp*)
13134 # Portland Group C++ compiler
13135 lt_prog_compiler_wl_CXX='-Wl,'
13136 lt_prog_compiler_pic_CXX='-fpic'
13137 lt_prog_compiler_static_CXX='-Bstatic'
13138 ;;
13139 cxx*)
13140 # Compaq C++
13141 # Make sure the PIC flag is empty. It appears that all Alpha
13142 # Linux and Compaq Tru64 Unix objects are PIC.
13143 lt_prog_compiler_pic_CXX=
13144 lt_prog_compiler_static_CXX='-non_shared'
13145 ;;
13146 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13147 # IBM XL 8.0, 9.0 on PPC and BlueGene
13148 lt_prog_compiler_wl_CXX='-Wl,'
13149 lt_prog_compiler_pic_CXX='-qpic'
13150 lt_prog_compiler_static_CXX='-qstaticlink'
13151 ;;
13152 *)
13153 case `$CC -V 2>&1 | sed 5q` in
13154 *Sun\ C*)
13155 # Sun C++ 5.9
13156 lt_prog_compiler_pic_CXX='-KPIC'
13157 lt_prog_compiler_static_CXX='-Bstatic'
13158 lt_prog_compiler_wl_CXX='-Qoption ld '
13159 ;;
13160 esac
13161 ;;
13162 esac
13163 ;;
13164 lynxos*)
13165 ;;
13166 m88k*)
13167 ;;
13168 mvs*)
13169 case $cc_basename in
13170 cxx*)
13171 lt_prog_compiler_pic_CXX='-W c,exportall'
13172 ;;
13173 *)
13174 ;;
13175 esac
13176 ;;
13177 netbsd* | netbsdelf*-gnu)
13178 ;;
13179 *qnx* | *nto*)
13180 # QNX uses GNU C++, but need to define -shared option too, otherwise
13181 # it will coredump.
13182 lt_prog_compiler_pic_CXX='-fPIC -shared'
13183 ;;
13184 osf3* | osf4* | osf5*)
13185 case $cc_basename in
13186 KCC*)
13187 lt_prog_compiler_wl_CXX='--backend -Wl,'
13188 ;;
13189 RCC*)
13190 # Rational C++ 2.4.1
13191 lt_prog_compiler_pic_CXX='-pic'
13192 ;;
13193 cxx*)
13194 # Digital/Compaq C++
13195 lt_prog_compiler_wl_CXX='-Wl,'
13196 # Make sure the PIC flag is empty. It appears that all Alpha
13197 # Linux and Compaq Tru64 Unix objects are PIC.
13198 lt_prog_compiler_pic_CXX=
13199 lt_prog_compiler_static_CXX='-non_shared'
13200 ;;
13201 *)
13202 ;;
13203 esac
13204 ;;
13205 psos*)
13206 ;;
13207 solaris*)
13208 case $cc_basename in
13209 CC* | sunCC*)
13210 # Sun C++ 4.2, 5.x and Centerline C++
13211 lt_prog_compiler_pic_CXX='-KPIC'
13212 lt_prog_compiler_static_CXX='-Bstatic'
13213 lt_prog_compiler_wl_CXX='-Qoption ld '
13214 ;;
13215 gcx*)
13216 # Green Hills C++ Compiler
13217 lt_prog_compiler_pic_CXX='-PIC'
13218 ;;
13219 *)
13220 ;;
13221 esac
13222 ;;
13223 sunos4*)
13224 case $cc_basename in
13225 CC*)
13226 # Sun C++ 4.x
13227 lt_prog_compiler_pic_CXX='-pic'
13228 lt_prog_compiler_static_CXX='-Bstatic'
13229 ;;
13230 lcc*)
13231 # Lucid
13232 lt_prog_compiler_pic_CXX='-pic'
13233 ;;
13234 *)
13235 ;;
13236 esac
13237 ;;
13238 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13239 case $cc_basename in
13240 CC*)
13241 lt_prog_compiler_wl_CXX='-Wl,'
13242 lt_prog_compiler_pic_CXX='-KPIC'
13243 lt_prog_compiler_static_CXX='-Bstatic'
13244 ;;
13245 esac
13246 ;;
13247 tandem*)
13248 case $cc_basename in
13249 NCC*)
13250 # NonStop-UX NCC 3.20
13251 lt_prog_compiler_pic_CXX='-KPIC'
13252 ;;
13253 *)
13254 ;;
13255 esac
13256 ;;
13257 vxworks*)
13258 ;;
13259 *)
13260 lt_prog_compiler_can_build_shared_CXX=no
13261 ;;
13262 esac
13263 fi
13264
13265 case $host_os in
13266 # For platforms which do not support PIC, -DPIC is meaningless:
13267 *djgpp*)
13268 lt_prog_compiler_pic_CXX=
13269 ;;
13270 *)
13271 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13272 ;;
13273 esac
13274
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13276 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13277 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13278 $as_echo_n "(cached) " >&6
13279 else
13280 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13281 fi
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13283 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13284 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13285
13286 #
13287 # Check to make sure the PIC flag actually works.
13288 #
13289 if test -n "$lt_prog_compiler_pic_CXX"; then
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13291 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13292 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13293 $as_echo_n "(cached) " >&6
13294 else
13295 lt_cv_prog_compiler_pic_works_CXX=no
13296 ac_outfile=conftest.$ac_objext
13297 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13298 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13299 # Insert the option either (1) after the last *FLAGS variable, or
13300 # (2) before a word containing "conftest.", or (3) at the end.
13301 # Note that $ac_compile itself does not contain backslashes and begins
13302 # with a dollar sign (not a hyphen), so the echo should work correctly.
13303 # The option is referenced via a variable to avoid confusing sed.
13304 lt_compile=`echo "$ac_compile" | $SED \
13305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13307 -e 's:$: $lt_compiler_flag:'`
13308 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13309 (eval "$lt_compile" 2>conftest.err)
13310 ac_status=$?
13311 cat conftest.err >&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 if (exit $ac_status) && test -s "$ac_outfile"; then
13314 # The compiler can only warn and ignore the option if not recognized
13315 # So say no if there are warnings other than the usual output.
13316 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13318 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13319 lt_cv_prog_compiler_pic_works_CXX=yes
13320 fi
13321 fi
13322 $RM conftest*
13323
13324 fi
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13326 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13327
13328 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13329 case $lt_prog_compiler_pic_CXX in
13330 "" | " "*) ;;
13331 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13332 esac
13333 else
13334 lt_prog_compiler_pic_CXX=
13335 lt_prog_compiler_can_build_shared_CXX=no
13336 fi
13337
13338 fi
13339
13340
13341
13342
13343
13344 #
13345 # Check to make sure the static flag actually works.
13346 #
13347 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13349 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13350 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13351 $as_echo_n "(cached) " >&6
13352 else
13353 lt_cv_prog_compiler_static_works_CXX=no
13354 save_LDFLAGS="$LDFLAGS"
13355 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13356 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13357 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13358 # The linker can only warn and ignore the option if not recognized
13359 # So say no if there are warnings
13360 if test -s conftest.err; then
13361 # Append any errors to the config.log.
13362 cat conftest.err 1>&5
13363 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13364 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13365 if diff conftest.exp conftest.er2 >/dev/null; then
13366 lt_cv_prog_compiler_static_works_CXX=yes
13367 fi
13368 else
13369 lt_cv_prog_compiler_static_works_CXX=yes
13370 fi
13371 fi
13372 $RM -r conftest*
13373 LDFLAGS="$save_LDFLAGS"
13374
13375 fi
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13377 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13378
13379 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13380 :
13381 else
13382 lt_prog_compiler_static_CXX=
13383 fi
13384
13385
13386
13387
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13389 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13390 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13391 $as_echo_n "(cached) " >&6
13392 else
13393 lt_cv_prog_compiler_c_o_CXX=no
13394 $RM -r conftest 2>/dev/null
13395 mkdir conftest
13396 cd conftest
13397 mkdir out
13398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13399
13400 lt_compiler_flag="-o out/conftest2.$ac_objext"
13401 # Insert the option either (1) after the last *FLAGS variable, or
13402 # (2) before a word containing "conftest.", or (3) at the end.
13403 # Note that $ac_compile itself does not contain backslashes and begins
13404 # with a dollar sign (not a hyphen), so the echo should work correctly.
13405 lt_compile=`echo "$ac_compile" | $SED \
13406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13408 -e 's:$: $lt_compiler_flag:'`
13409 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13410 (eval "$lt_compile" 2>out/conftest.err)
13411 ac_status=$?
13412 cat out/conftest.err >&5
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13415 then
13416 # The compiler can only warn and ignore the option if not recognized
13417 # So say no if there are warnings
13418 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13419 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13420 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13421 lt_cv_prog_compiler_c_o_CXX=yes
13422 fi
13423 fi
13424 chmod u+w . 2>&5
13425 $RM conftest*
13426 # SGI C++ compiler will create directory out/ii_files/ for
13427 # template instantiation
13428 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13429 $RM out/* && rmdir out
13430 cd ..
13431 $RM -r conftest
13432 $RM conftest*
13433
13434 fi
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13436 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13437
13438
13439
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13441 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13442 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13443 $as_echo_n "(cached) " >&6
13444 else
13445 lt_cv_prog_compiler_c_o_CXX=no
13446 $RM -r conftest 2>/dev/null
13447 mkdir conftest
13448 cd conftest
13449 mkdir out
13450 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13451
13452 lt_compiler_flag="-o out/conftest2.$ac_objext"
13453 # Insert the option either (1) after the last *FLAGS variable, or
13454 # (2) before a word containing "conftest.", or (3) at the end.
13455 # Note that $ac_compile itself does not contain backslashes and begins
13456 # with a dollar sign (not a hyphen), so the echo should work correctly.
13457 lt_compile=`echo "$ac_compile" | $SED \
13458 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13459 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13460 -e 's:$: $lt_compiler_flag:'`
13461 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13462 (eval "$lt_compile" 2>out/conftest.err)
13463 ac_status=$?
13464 cat out/conftest.err >&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13467 then
13468 # The compiler can only warn and ignore the option if not recognized
13469 # So say no if there are warnings
13470 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13471 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13472 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13473 lt_cv_prog_compiler_c_o_CXX=yes
13474 fi
13475 fi
13476 chmod u+w . 2>&5
13477 $RM conftest*
13478 # SGI C++ compiler will create directory out/ii_files/ for
13479 # template instantiation
13480 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13481 $RM out/* && rmdir out
13482 cd ..
13483 $RM -r conftest
13484 $RM conftest*
13485
13486 fi
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13488 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13489
13490
13491
13492
13493 hard_links="nottested"
13494 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13495 # do not overwrite the value of need_locks provided by the user
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13497 $as_echo_n "checking if we can lock with hard links... " >&6; }
13498 hard_links=yes
13499 $RM conftest*
13500 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13501 touch conftest.a
13502 ln conftest.a conftest.b 2>&5 || hard_links=no
13503 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13505 $as_echo "$hard_links" >&6; }
13506 if test "$hard_links" = no; then
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13508 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13509 need_locks=warn
13510 fi
13511 else
13512 need_locks=no
13513 fi
13514
13515
13516
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13518 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13519
13520 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13521 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13522 case $host_os in
13523 aix[4-9]*)
13524 # If we're using GNU nm, then we don't want the "-C" option.
13525 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13526 # Also, AIX nm treats weak defined symbols like other global defined
13527 # symbols, whereas GNU nm marks them as "W".
13528 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13529 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'
13530 else
13531 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'
13532 fi
13533 ;;
13534 pw32*)
13535 export_symbols_cmds_CXX="$ltdll_cmds"
13536 ;;
13537 cygwin* | mingw* | cegcc*)
13538 case $cc_basename in
13539 cl*)
13540 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13541 ;;
13542 *)
13543 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'
13544 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13545 ;;
13546 esac
13547 ;;
13548 linux* | k*bsd*-gnu | gnu*)
13549 link_all_deplibs_CXX=no
13550 ;;
13551 *)
13552 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13553 ;;
13554 esac
13555
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13557 $as_echo "$ld_shlibs_CXX" >&6; }
13558 test "$ld_shlibs_CXX" = no && can_build_shared=no
13559
13560 with_gnu_ld_CXX=$with_gnu_ld
13561
13562
13563
13564
13565
13566
13567 #
13568 # Do we need to explicitly link libc?
13569 #
13570 case "x$archive_cmds_need_lc_CXX" in
13571 x|xyes)
13572 # Assume -lc should be added
13573 archive_cmds_need_lc_CXX=yes
13574
13575 if test "$enable_shared" = yes && test "$GCC" = yes; then
13576 case $archive_cmds_CXX in
13577 *'~'*)
13578 # FIXME: we may have to deal with multi-command sequences.
13579 ;;
13580 '$CC '*)
13581 # Test whether the compiler implicitly links with -lc since on some
13582 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13583 # to ld, don't add -lc before -lgcc.
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13585 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13586 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13587 $as_echo_n "(cached) " >&6
13588 else
13589 $RM conftest*
13590 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13591
13592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13593 (eval $ac_compile) 2>&5
13594 ac_status=$?
13595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13596 test $ac_status = 0; } 2>conftest.err; then
13597 soname=conftest
13598 lib=conftest
13599 libobjs=conftest.$ac_objext
13600 deplibs=
13601 wl=$lt_prog_compiler_wl_CXX
13602 pic_flag=$lt_prog_compiler_pic_CXX
13603 compiler_flags=-v
13604 linker_flags=-v
13605 verstring=
13606 output_objdir=.
13607 libname=conftest
13608 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13609 allow_undefined_flag_CXX=
13610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13611 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13612 ac_status=$?
13613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13614 test $ac_status = 0; }
13615 then
13616 lt_cv_archive_cmds_need_lc_CXX=no
13617 else
13618 lt_cv_archive_cmds_need_lc_CXX=yes
13619 fi
13620 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13621 else
13622 cat conftest.err 1>&5
13623 fi
13624 $RM conftest*
13625
13626 fi
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13628 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13629 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13630 ;;
13631 esac
13632 fi
13633 ;;
13634 esac
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13698 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13699
13700 library_names_spec=
13701 libname_spec='lib$name'
13702 soname_spec=
13703 shrext_cmds=".so"
13704 postinstall_cmds=
13705 postuninstall_cmds=
13706 finish_cmds=
13707 finish_eval=
13708 shlibpath_var=
13709 shlibpath_overrides_runpath=unknown
13710 version_type=none
13711 dynamic_linker="$host_os ld.so"
13712 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13713 need_lib_prefix=unknown
13714 hardcode_into_libs=no
13715
13716 # when you set need_version to no, make sure it does not cause -set_version
13717 # flags to be left without arguments
13718 need_version=unknown
13719
13720 case $host_os in
13721 aix3*)
13722 version_type=linux # correct to gnu/linux during the next big refactor
13723 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13724 shlibpath_var=LIBPATH
13725
13726 # AIX 3 has no versioning support, so we append a major version to the name.
13727 soname_spec='${libname}${release}${shared_ext}$major'
13728 ;;
13729
13730 aix[4-9]*)
13731 version_type=linux # correct to gnu/linux during the next big refactor
13732 need_lib_prefix=no
13733 need_version=no
13734 hardcode_into_libs=yes
13735 if test "$host_cpu" = ia64; then
13736 # AIX 5 supports IA64
13737 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13738 shlibpath_var=LD_LIBRARY_PATH
13739 else
13740 # With GCC up to 2.95.x, collect2 would create an import file
13741 # for dependence libraries. The import file would start with
13742 # the line `#! .'. This would cause the generated library to
13743 # depend on `.', always an invalid library. This was fixed in
13744 # development snapshots of GCC prior to 3.0.
13745 case $host_os in
13746 aix4 | aix4.[01] | aix4.[01].*)
13747 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13748 echo ' yes '
13749 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13750 :
13751 else
13752 can_build_shared=no
13753 fi
13754 ;;
13755 esac
13756 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13757 # soname into executable. Probably we can add versioning support to
13758 # collect2, so additional links can be useful in future.
13759 if test "$aix_use_runtimelinking" = yes; then
13760 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13761 # instead of lib<name>.a to let people know that these are not
13762 # typical AIX shared libraries.
13763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13764 else
13765 # We preserve .a as extension for shared libraries through AIX4.2
13766 # and later when we are not doing run time linking.
13767 library_names_spec='${libname}${release}.a $libname.a'
13768 soname_spec='${libname}${release}${shared_ext}$major'
13769 fi
13770 shlibpath_var=LIBPATH
13771 fi
13772 ;;
13773
13774 amigaos*)
13775 case $host_cpu in
13776 powerpc)
13777 # Since July 2007 AmigaOS4 officially supports .so libraries.
13778 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13780 ;;
13781 m68k)
13782 library_names_spec='$libname.ixlibrary $libname.a'
13783 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13784 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'
13785 ;;
13786 esac
13787 ;;
13788
13789 beos*)
13790 library_names_spec='${libname}${shared_ext}'
13791 dynamic_linker="$host_os ld.so"
13792 shlibpath_var=LIBRARY_PATH
13793 ;;
13794
13795 bsdi[45]*)
13796 version_type=linux # correct to gnu/linux during the next big refactor
13797 need_version=no
13798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13799 soname_spec='${libname}${release}${shared_ext}$major'
13800 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13801 shlibpath_var=LD_LIBRARY_PATH
13802 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13803 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13804 # the default ld.so.conf also contains /usr/contrib/lib and
13805 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13806 # libtool to hard-code these into programs
13807 ;;
13808
13809 cygwin* | mingw* | pw32* | cegcc*)
13810 version_type=windows
13811 shrext_cmds=".dll"
13812 need_version=no
13813 need_lib_prefix=no
13814
13815 case $GCC,$cc_basename in
13816 yes,*)
13817 # gcc
13818 library_names_spec='$libname.dll.a'
13819 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13820 postinstall_cmds='base_file=`basename \${file}`~
13821 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13822 dldir=$destdir/`dirname \$dlpath`~
13823 test -d \$dldir || mkdir -p \$dldir~
13824 $install_prog $dir/$dlname \$dldir/$dlname~
13825 chmod a+x \$dldir/$dlname~
13826 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13827 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13828 fi'
13829 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13830 dlpath=$dir/\$dldll~
13831 $RM \$dlpath'
13832 shlibpath_overrides_runpath=yes
13833
13834 case $host_os in
13835 cygwin*)
13836 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13837 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13838
13839 ;;
13840 mingw* | cegcc*)
13841 # MinGW DLLs use traditional 'lib' prefix
13842 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13843 ;;
13844 pw32*)
13845 # pw32 DLLs use 'pw' prefix rather than 'lib'
13846 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13847 ;;
13848 esac
13849 dynamic_linker='Win32 ld.exe'
13850 ;;
13851
13852 *,cl*)
13853 # Native MSVC
13854 libname_spec='$name'
13855 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13856 library_names_spec='${libname}.dll.lib'
13857
13858 case $build_os in
13859 mingw*)
13860 sys_lib_search_path_spec=
13861 lt_save_ifs=$IFS
13862 IFS=';'
13863 for lt_path in $LIB
13864 do
13865 IFS=$lt_save_ifs
13866 # Let DOS variable expansion print the short 8.3 style file name.
13867 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13868 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13869 done
13870 IFS=$lt_save_ifs
13871 # Convert to MSYS style.
13872 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13873 ;;
13874 cygwin*)
13875 # Convert to unix form, then to dos form, then back to unix form
13876 # but this time dos style (no spaces!) so that the unix form looks
13877 # like /cygdrive/c/PROGRA~1:/cygdr...
13878 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13879 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13880 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13881 ;;
13882 *)
13883 sys_lib_search_path_spec="$LIB"
13884 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13885 # It is most probably a Windows format PATH.
13886 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13887 else
13888 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13889 fi
13890 # FIXME: find the short name or the path components, as spaces are
13891 # common. (e.g. "Program Files" -> "PROGRA~1")
13892 ;;
13893 esac
13894
13895 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13896 postinstall_cmds='base_file=`basename \${file}`~
13897 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13898 dldir=$destdir/`dirname \$dlpath`~
13899 test -d \$dldir || mkdir -p \$dldir~
13900 $install_prog $dir/$dlname \$dldir/$dlname'
13901 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13902 dlpath=$dir/\$dldll~
13903 $RM \$dlpath'
13904 shlibpath_overrides_runpath=yes
13905 dynamic_linker='Win32 link.exe'
13906 ;;
13907
13908 *)
13909 # Assume MSVC wrapper
13910 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13911 dynamic_linker='Win32 ld.exe'
13912 ;;
13913 esac
13914 # FIXME: first we should search . and the directory the executable is in
13915 shlibpath_var=PATH
13916 ;;
13917
13918 darwin* | rhapsody*)
13919 dynamic_linker="$host_os dyld"
13920 version_type=darwin
13921 need_lib_prefix=no
13922 need_version=no
13923 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13924 soname_spec='${libname}${release}${major}$shared_ext'
13925 shlibpath_overrides_runpath=yes
13926 shlibpath_var=DYLD_LIBRARY_PATH
13927 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13928
13929 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13930 ;;
13931
13932 dgux*)
13933 version_type=linux # correct to gnu/linux during the next big refactor
13934 need_lib_prefix=no
13935 need_version=no
13936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13937 soname_spec='${libname}${release}${shared_ext}$major'
13938 shlibpath_var=LD_LIBRARY_PATH
13939 ;;
13940
13941 freebsd* | dragonfly*)
13942 # DragonFly does not have aout. When/if they implement a new
13943 # versioning mechanism, adjust this.
13944 if test -x /usr/bin/objformat; then
13945 objformat=`/usr/bin/objformat`
13946 else
13947 case $host_os in
13948 freebsd[23].*) objformat=aout ;;
13949 *) objformat=elf ;;
13950 esac
13951 fi
13952 version_type=freebsd-$objformat
13953 case $version_type in
13954 freebsd-elf*)
13955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13956 need_version=no
13957 need_lib_prefix=no
13958 ;;
13959 freebsd-*)
13960 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13961 need_version=yes
13962 ;;
13963 esac
13964 shlibpath_var=LD_LIBRARY_PATH
13965 case $host_os in
13966 freebsd2.*)
13967 shlibpath_overrides_runpath=yes
13968 ;;
13969 freebsd3.[01]* | freebsdelf3.[01]*)
13970 shlibpath_overrides_runpath=yes
13971 hardcode_into_libs=yes
13972 ;;
13973 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13974 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13975 shlibpath_overrides_runpath=no
13976 hardcode_into_libs=yes
13977 ;;
13978 *) # from 4.6 on, and DragonFly
13979 shlibpath_overrides_runpath=yes
13980 hardcode_into_libs=yes
13981 ;;
13982 esac
13983 ;;
13984
13985 haiku*)
13986 version_type=linux # correct to gnu/linux during the next big refactor
13987 need_lib_prefix=no
13988 need_version=no
13989 dynamic_linker="$host_os runtime_loader"
13990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13991 soname_spec='${libname}${release}${shared_ext}$major'
13992 shlibpath_var=LIBRARY_PATH
13993 shlibpath_overrides_runpath=yes
13994 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13995 hardcode_into_libs=yes
13996 ;;
13997
13998 hpux9* | hpux10* | hpux11*)
13999 # Give a soname corresponding to the major version so that dld.sl refuses to
14000 # link against other versions.
14001 version_type=sunos
14002 need_lib_prefix=no
14003 need_version=no
14004 case $host_cpu in
14005 ia64*)
14006 shrext_cmds='.so'
14007 hardcode_into_libs=yes
14008 dynamic_linker="$host_os dld.so"
14009 shlibpath_var=LD_LIBRARY_PATH
14010 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14012 soname_spec='${libname}${release}${shared_ext}$major'
14013 if test "X$HPUX_IA64_MODE" = X32; then
14014 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14015 else
14016 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14017 fi
14018 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14019 ;;
14020 hppa*64*)
14021 shrext_cmds='.sl'
14022 hardcode_into_libs=yes
14023 dynamic_linker="$host_os dld.sl"
14024 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14027 soname_spec='${libname}${release}${shared_ext}$major'
14028 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14029 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14030 ;;
14031 *)
14032 shrext_cmds='.sl'
14033 dynamic_linker="$host_os dld.sl"
14034 shlibpath_var=SHLIB_PATH
14035 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14037 soname_spec='${libname}${release}${shared_ext}$major'
14038 ;;
14039 esac
14040 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14041 postinstall_cmds='chmod 555 $lib'
14042 # or fails outright, so override atomically:
14043 install_override_mode=555
14044 ;;
14045
14046 interix[3-9]*)
14047 version_type=linux # correct to gnu/linux during the next big refactor
14048 need_lib_prefix=no
14049 need_version=no
14050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14051 soname_spec='${libname}${release}${shared_ext}$major'
14052 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14053 shlibpath_var=LD_LIBRARY_PATH
14054 shlibpath_overrides_runpath=no
14055 hardcode_into_libs=yes
14056 ;;
14057
14058 irix5* | irix6* | nonstopux*)
14059 case $host_os in
14060 nonstopux*) version_type=nonstopux ;;
14061 *)
14062 if test "$lt_cv_prog_gnu_ld" = yes; then
14063 version_type=linux # correct to gnu/linux during the next big refactor
14064 else
14065 version_type=irix
14066 fi ;;
14067 esac
14068 need_lib_prefix=no
14069 need_version=no
14070 soname_spec='${libname}${release}${shared_ext}$major'
14071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14072 case $host_os in
14073 irix5* | nonstopux*)
14074 libsuff= shlibsuff=
14075 ;;
14076 *)
14077 case $LD in # libtool.m4 will add one of these switches to LD
14078 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14079 libsuff= shlibsuff= libmagic=32-bit;;
14080 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14081 libsuff=32 shlibsuff=N32 libmagic=N32;;
14082 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14083 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14084 *) libsuff= shlibsuff= libmagic=never-match;;
14085 esac
14086 ;;
14087 esac
14088 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14089 shlibpath_overrides_runpath=no
14090 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14091 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14092 hardcode_into_libs=yes
14093 ;;
14094
14095 # No shared lib support for Linux oldld, aout, or coff.
14096 linux*oldld* | linux*aout* | linux*coff*)
14097 dynamic_linker=no
14098 ;;
14099
14100 # This must be glibc/ELF.
14101 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14102 version_type=linux # correct to gnu/linux during the next big refactor
14103 need_lib_prefix=no
14104 need_version=no
14105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14106 soname_spec='${libname}${release}${shared_ext}$major'
14107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14108 shlibpath_var=LD_LIBRARY_PATH
14109 shlibpath_overrides_runpath=no
14110
14111 # Some binutils ld are patched to set DT_RUNPATH
14112 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14113 $as_echo_n "(cached) " >&6
14114 else
14115 lt_cv_shlibpath_overrides_runpath=no
14116 save_LDFLAGS=$LDFLAGS
14117 save_libdir=$libdir
14118 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14119 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14121 /* end confdefs.h. */
14122
14123 int
14124 main ()
14125 {
14126
14127 ;
14128 return 0;
14129 }
14130 _ACEOF
14131 if ac_fn_cxx_try_link "$LINENO"; then :
14132 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14133 lt_cv_shlibpath_overrides_runpath=yes
14134 fi
14135 fi
14136 rm -f core conftest.err conftest.$ac_objext \
14137 conftest$ac_exeext conftest.$ac_ext
14138 LDFLAGS=$save_LDFLAGS
14139 libdir=$save_libdir
14140
14141 fi
14142
14143 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14144
14145 # This implies no fast_install, which is unacceptable.
14146 # Some rework will be needed to allow for fast_install
14147 # before this can be enabled.
14148 hardcode_into_libs=yes
14149
14150 # Append ld.so.conf contents to the search path
14151 if test -f /etc/ld.so.conf; then
14152 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' ' '`
14153 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14154 fi
14155
14156 # We used to test for /lib/ld.so.1 and disable shared libraries on
14157 # powerpc, because MkLinux only supported shared libraries with the
14158 # GNU dynamic linker. Since this was broken with cross compilers,
14159 # most powerpc-linux boxes support dynamic linking these days and
14160 # people can always --disable-shared, the test was removed, and we
14161 # assume the GNU/Linux dynamic linker is in use.
14162 dynamic_linker='GNU/Linux ld.so'
14163 ;;
14164
14165 netbsdelf*-gnu)
14166 version_type=linux
14167 need_lib_prefix=no
14168 need_version=no
14169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14170 soname_spec='${libname}${release}${shared_ext}$major'
14171 shlibpath_var=LD_LIBRARY_PATH
14172 shlibpath_overrides_runpath=no
14173 hardcode_into_libs=yes
14174 dynamic_linker='NetBSD ld.elf_so'
14175 ;;
14176
14177 netbsd*)
14178 version_type=sunos
14179 need_lib_prefix=no
14180 need_version=no
14181 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14183 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14184 dynamic_linker='NetBSD (a.out) ld.so'
14185 else
14186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14187 soname_spec='${libname}${release}${shared_ext}$major'
14188 dynamic_linker='NetBSD ld.elf_so'
14189 fi
14190 shlibpath_var=LD_LIBRARY_PATH
14191 shlibpath_overrides_runpath=yes
14192 hardcode_into_libs=yes
14193 ;;
14194
14195 newsos6)
14196 version_type=linux # correct to gnu/linux during the next big refactor
14197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14198 shlibpath_var=LD_LIBRARY_PATH
14199 shlibpath_overrides_runpath=yes
14200 ;;
14201
14202 *nto* | *qnx*)
14203 version_type=qnx
14204 need_lib_prefix=no
14205 need_version=no
14206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14207 soname_spec='${libname}${release}${shared_ext}$major'
14208 shlibpath_var=LD_LIBRARY_PATH
14209 shlibpath_overrides_runpath=no
14210 hardcode_into_libs=yes
14211 dynamic_linker='ldqnx.so'
14212 ;;
14213
14214 openbsd*)
14215 version_type=sunos
14216 sys_lib_dlsearch_path_spec="/usr/lib"
14217 need_lib_prefix=no
14218 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14219 case $host_os in
14220 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14221 *) need_version=no ;;
14222 esac
14223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14225 shlibpath_var=LD_LIBRARY_PATH
14226 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14227 case $host_os in
14228 openbsd2.[89] | openbsd2.[89].*)
14229 shlibpath_overrides_runpath=no
14230 ;;
14231 *)
14232 shlibpath_overrides_runpath=yes
14233 ;;
14234 esac
14235 else
14236 shlibpath_overrides_runpath=yes
14237 fi
14238 ;;
14239
14240 os2*)
14241 libname_spec='$name'
14242 shrext_cmds=".dll"
14243 need_lib_prefix=no
14244 library_names_spec='$libname${shared_ext} $libname.a'
14245 dynamic_linker='OS/2 ld.exe'
14246 shlibpath_var=LIBPATH
14247 ;;
14248
14249 osf3* | osf4* | osf5*)
14250 version_type=osf
14251 need_lib_prefix=no
14252 need_version=no
14253 soname_spec='${libname}${release}${shared_ext}$major'
14254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14255 shlibpath_var=LD_LIBRARY_PATH
14256 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14257 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14258 ;;
14259
14260 rdos*)
14261 dynamic_linker=no
14262 ;;
14263
14264 solaris*)
14265 version_type=linux # correct to gnu/linux during the next big refactor
14266 need_lib_prefix=no
14267 need_version=no
14268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14269 soname_spec='${libname}${release}${shared_ext}$major'
14270 shlibpath_var=LD_LIBRARY_PATH
14271 shlibpath_overrides_runpath=yes
14272 hardcode_into_libs=yes
14273 # ldd complains unless libraries are executable
14274 postinstall_cmds='chmod +x $lib'
14275 ;;
14276
14277 sunos4*)
14278 version_type=sunos
14279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14280 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14281 shlibpath_var=LD_LIBRARY_PATH
14282 shlibpath_overrides_runpath=yes
14283 if test "$with_gnu_ld" = yes; then
14284 need_lib_prefix=no
14285 fi
14286 need_version=yes
14287 ;;
14288
14289 sysv4 | sysv4.3*)
14290 version_type=linux # correct to gnu/linux during the next big refactor
14291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14292 soname_spec='${libname}${release}${shared_ext}$major'
14293 shlibpath_var=LD_LIBRARY_PATH
14294 case $host_vendor in
14295 sni)
14296 shlibpath_overrides_runpath=no
14297 need_lib_prefix=no
14298 runpath_var=LD_RUN_PATH
14299 ;;
14300 siemens)
14301 need_lib_prefix=no
14302 ;;
14303 motorola)
14304 need_lib_prefix=no
14305 need_version=no
14306 shlibpath_overrides_runpath=no
14307 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14308 ;;
14309 esac
14310 ;;
14311
14312 sysv4*MP*)
14313 if test -d /usr/nec ;then
14314 version_type=linux # correct to gnu/linux during the next big refactor
14315 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14316 soname_spec='$libname${shared_ext}.$major'
14317 shlibpath_var=LD_LIBRARY_PATH
14318 fi
14319 ;;
14320
14321 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14322 version_type=freebsd-elf
14323 need_lib_prefix=no
14324 need_version=no
14325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14326 soname_spec='${libname}${release}${shared_ext}$major'
14327 shlibpath_var=LD_LIBRARY_PATH
14328 shlibpath_overrides_runpath=yes
14329 hardcode_into_libs=yes
14330 if test "$with_gnu_ld" = yes; then
14331 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14332 else
14333 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14334 case $host_os in
14335 sco3.2v5*)
14336 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14337 ;;
14338 esac
14339 fi
14340 sys_lib_dlsearch_path_spec='/usr/lib'
14341 ;;
14342
14343 tpf*)
14344 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14345 version_type=linux # correct to gnu/linux during the next big refactor
14346 need_lib_prefix=no
14347 need_version=no
14348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14349 shlibpath_var=LD_LIBRARY_PATH
14350 shlibpath_overrides_runpath=no
14351 hardcode_into_libs=yes
14352 ;;
14353
14354 uts4*)
14355 version_type=linux # correct to gnu/linux during the next big refactor
14356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14357 soname_spec='${libname}${release}${shared_ext}$major'
14358 shlibpath_var=LD_LIBRARY_PATH
14359 ;;
14360
14361 *)
14362 dynamic_linker=no
14363 ;;
14364 esac
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14366 $as_echo "$dynamic_linker" >&6; }
14367 test "$dynamic_linker" = no && can_build_shared=no
14368
14369 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14370 if test "$GCC" = yes; then
14371 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14372 fi
14373
14374 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14375 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14376 fi
14377 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14378 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14379 fi
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14419 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14420 hardcode_action_CXX=
14421 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14422 test -n "$runpath_var_CXX" ||
14423 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14424
14425 # We can hardcode non-existent directories.
14426 if test "$hardcode_direct_CXX" != no &&
14427 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14428 # have to relink, otherwise we might link with an installed library
14429 # when we should be linking with a yet-to-be-installed one
14430 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14431 test "$hardcode_minus_L_CXX" != no; then
14432 # Linking always hardcodes the temporary library directory.
14433 hardcode_action_CXX=relink
14434 else
14435 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14436 hardcode_action_CXX=immediate
14437 fi
14438 else
14439 # We cannot hardcode anything, or else we can only hardcode existing
14440 # directories.
14441 hardcode_action_CXX=unsupported
14442 fi
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14444 $as_echo "$hardcode_action_CXX" >&6; }
14445
14446 if test "$hardcode_action_CXX" = relink ||
14447 test "$inherit_rpath_CXX" = yes; then
14448 # Fast installation is not supported
14449 enable_fast_install=no
14450 elif test "$shlibpath_overrides_runpath" = yes ||
14451 test "$enable_shared" = no; then
14452 # Fast installation is not necessary
14453 enable_fast_install=needless
14454 fi
14455
14456
14457
14458
14459
14460
14461
14462 fi # test -n "$compiler"
14463
14464 CC=$lt_save_CC
14465 CFLAGS=$lt_save_CFLAGS
14466 LDCXX=$LD
14467 LD=$lt_save_LD
14468 GCC=$lt_save_GCC
14469 with_gnu_ld=$lt_save_with_gnu_ld
14470 lt_cv_path_LDCXX=$lt_cv_path_LD
14471 lt_cv_path_LD=$lt_save_path_LD
14472 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14473 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14474 fi # test "$_lt_caught_CXX_error" != yes
14475
14476 ac_ext=cpp
14477 ac_cpp='$CXXCPP $CPPFLAGS'
14478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14481
14482
14483 ac_ext=cpp
14484 ac_cpp='$CXXCPP $CPPFLAGS'
14485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14489 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14490 if test -z "$CXXCPP"; then
14491 if ${ac_cv_prog_CXXCPP+:} false; then :
14492 $as_echo_n "(cached) " >&6
14493 else
14494 # Double quotes because CXXCPP needs to be expanded
14495 for CXXCPP in "$CXX -E" "/lib/cpp"
14496 do
14497 ac_preproc_ok=false
14498 for ac_cxx_preproc_warn_flag in '' yes
14499 do
14500 # Use a header file that comes with gcc, so configuring glibc
14501 # with a fresh cross-compiler works.
14502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14503 # <limits.h> exists even on freestanding compilers.
14504 # On the NeXT, cc -E runs the code through the compiler's parser,
14505 # not just through cpp. "Syntax error" is here to catch this case.
14506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14507 /* end confdefs.h. */
14508 #ifdef __STDC__
14509 # include <limits.h>
14510 #else
14511 # include <assert.h>
14512 #endif
14513 Syntax error
14514 _ACEOF
14515 if ac_fn_cxx_try_cpp "$LINENO"; then :
14516
14517 else
14518 # Broken: fails on valid input.
14519 continue
14520 fi
14521 rm -f conftest.err conftest.i conftest.$ac_ext
14522
14523 # OK, works on sane cases. Now check whether nonexistent headers
14524 # can be detected and how.
14525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14526 /* end confdefs.h. */
14527 #include <ac_nonexistent.h>
14528 _ACEOF
14529 if ac_fn_cxx_try_cpp "$LINENO"; then :
14530 # Broken: success on invalid input.
14531 continue
14532 else
14533 # Passes both tests.
14534 ac_preproc_ok=:
14535 break
14536 fi
14537 rm -f conftest.err conftest.i conftest.$ac_ext
14538
14539 done
14540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14541 rm -f conftest.i conftest.err conftest.$ac_ext
14542 if $ac_preproc_ok; then :
14543 break
14544 fi
14545
14546 done
14547 ac_cv_prog_CXXCPP=$CXXCPP
14548
14549 fi
14550 CXXCPP=$ac_cv_prog_CXXCPP
14551 else
14552 ac_cv_prog_CXXCPP=$CXXCPP
14553 fi
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14555 $as_echo "$CXXCPP" >&6; }
14556 ac_preproc_ok=false
14557 for ac_cxx_preproc_warn_flag in '' yes
14558 do
14559 # Use a header file that comes with gcc, so configuring glibc
14560 # with a fresh cross-compiler works.
14561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14562 # <limits.h> exists even on freestanding compilers.
14563 # On the NeXT, cc -E runs the code through the compiler's parser,
14564 # not just through cpp. "Syntax error" is here to catch this case.
14565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14566 /* end confdefs.h. */
14567 #ifdef __STDC__
14568 # include <limits.h>
14569 #else
14570 # include <assert.h>
14571 #endif
14572 Syntax error
14573 _ACEOF
14574 if ac_fn_cxx_try_cpp "$LINENO"; then :
14575
14576 else
14577 # Broken: fails on valid input.
14578 continue
14579 fi
14580 rm -f conftest.err conftest.i conftest.$ac_ext
14581
14582 # OK, works on sane cases. Now check whether nonexistent headers
14583 # can be detected and how.
14584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14585 /* end confdefs.h. */
14586 #include <ac_nonexistent.h>
14587 _ACEOF
14588 if ac_fn_cxx_try_cpp "$LINENO"; then :
14589 # Broken: success on invalid input.
14590 continue
14591 else
14592 # Passes both tests.
14593 ac_preproc_ok=:
14594 break
14595 fi
14596 rm -f conftest.err conftest.i conftest.$ac_ext
14597
14598 done
14599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14600 rm -f conftest.i conftest.err conftest.$ac_ext
14601 if $ac_preproc_ok; then :
14602
14603 else
14604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14606 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14607 See \`config.log' for more details" "$LINENO" 5; }
14608 fi
14609
14610 ac_ext=cpp
14611 ac_cpp='$CXXCPP $CPPFLAGS'
14612 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14613 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14614 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14615
14616
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler vendor" >&5
14618 $as_echo_n "checking for C++ compiler vendor... " >&6; }
14619 if ${ax_cv_cxx_compiler_vendor+:} false; then :
14620 $as_echo_n "(cached) " >&6
14621 else
14622 ax_cv_cxx_compiler_vendor=unknown
14623 # note: don't check for gcc first since some other compilers define __GNUC__
14624 for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do
14625 vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
14626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14627 /* end confdefs.h. */
14628
14629 int
14630 main ()
14631 {
14632
14633 #if !($vencpp)
14634 thisisanerror;
14635 #endif
14636
14637 ;
14638 return 0;
14639 }
14640 _ACEOF
14641 if ac_fn_cxx_try_compile "$LINENO"; then :
14642 ax_cv_cxx_compiler_vendor=`echo $ventest | cut -d: -f1`; break
14643 fi
14644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14645 done
14646
14647 fi
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compiler_vendor" >&5
14649 $as_echo "$ax_cv_cxx_compiler_vendor" >&6; }
14650
14651 # restore those variables back
14652 CFLAGS="$cflags_save"
14653 CPPFLAGS="$cppflags_save"
14654 CXXFLAGS="$cxxflags_save"
14655
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrint" >&5
14657 $as_echo_n "checking for lrint... " >&6; }
14658 if ${ac_cv_c99_lrint+:} false; then :
14659 $as_echo_n "(cached) " >&6
14660 else
14661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14662 /* end confdefs.h. */
14663
14664 #define _ISOC9X_SOURCE 1
14665 #define _ISOC99_SOURCE 1
14666 #define __USE_ISOC99 1
14667 #define __USE_ISOC9X 1
14668 #include <math.h>
14669 int
14670 main ()
14671 {
14672 int value = lrint (0.432) ;
14673 ;
14674 return 0;
14675 }
14676 _ACEOF
14677 if ac_fn_cxx_try_compile "$LINENO"; then :
14678 ac_cv_c99_lrint=yes
14679 else
14680 ac_cv_c99_lrint=no
14681 fi
14682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14683 fi
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrint" >&5
14685 $as_echo "$ac_cv_c99_lrint" >&6; }
14686 if test "x$ac_cv_c99_lrint" = "xyes"; then
14687
14688 $as_echo "#define HAVE_LRINT 1" >>confdefs.h
14689
14690 fi
14691
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrintf" >&5
14693 $as_echo_n "checking for lrintf... " >&6; }
14694 if ${ac_cv_c99_lrintf+:} false; then :
14695 $as_echo_n "(cached) " >&6
14696 else
14697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14698 /* end confdefs.h. */
14699
14700 #define _ISOC9X_SOURCE 1
14701 #define _ISOC99_SOURCE 1
14702 #define __USE_ISOC99 1
14703 #define __USE_ISOC9X 1
14704 #include <math.h>
14705 int
14706 main ()
14707 {
14708 int value = lrintf (0.432) ;
14709 ;
14710 return 0;
14711 }
14712 _ACEOF
14713 if ac_fn_cxx_try_compile "$LINENO"; then :
14714 ac_cv_c99_lrintf=yes
14715 else
14716 ac_cv_c99_lrintf=no
14717 fi
14718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14719 fi
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrintf" >&5
14721 $as_echo "$ac_cv_c99_lrintf" >&6; }
14722 if test "x$ac_cv_c99_lrintf" = "xyes"; then
14723
14724 $as_echo "#define HAVE_LRINTF 1" >>confdefs.h
14725
14726 fi
14727
14728
14729
14730
14731
14732 # Check whether --enable-static was given.
14733 if test "${enable_static+set}" = set; then :
14734 enableval=$enable_static; enable_static=$enableval
14735 else
14736 enable_static=no
14737 fi
14738
14739
14740 # Check whether --enable-debug was given.
14741 if test "${enable_debug+set}" = set; then :
14742 enableval=$enable_debug; enable_debug=$enableval
14743 else
14744 enable_debug=no
14745 fi
14746
14747
14748 # Check whether --enable-multithreaded was given.
14749 if test "${enable_multithreaded+set}" = set; then :
14750 enableval=$enable_multithreaded; enable_multithreaded=$enableval
14751 else
14752 enable_multithreaded=no
14753 fi
14754
14755
14756 # Check whether --enable-sse was given.
14757 if test "${enable_sse+set}" = set; then :
14758 enableval=$enable_sse; enable_sse=$enableval
14759 else
14760 enable_sse=yes
14761 fi
14762
14763
14764 # Check whether --enable-universal_binary was given.
14765 if test "${enable_universal_binary+set}" = set; then :
14766 enableval=$enable_universal_binary; enable_universal_binary=$enableval
14767 else
14768 enable_universal_binary=no
14769 fi
14770
14771
14772 SBSMS_CFLAGS="-ffast-math -funroll-loops"
14773
14774 if test x$enable_static = xno; then
14775 case "$target_os" in
14776 darwin*)
14777 SBSMS_CFLAGS="$SBSMS_CLFAGS -mdynamic-no-pic"
14778 ;;
14779 *)
14780 ;;
14781 esac
14782 fi
14783
14784 if test x$enable_debug = xyes; then
14785 SBSMS_CFLAGS="$SBSMS_CFLAGS -g -O3"
14786 else
14787 SBSMS_CFLAGS="$SBSMS_CFLAGS -O3 -fomit-frame-pointer"
14788 fi
14789
14790 if test x$enable_multithreaded = xyes; then
14791
14792 $as_echo "#define MULTITHREADED 1" >>confdefs.h
14793
14794 fi
14795
14796 echo "${ax_cv_cxx_compiler_vendor} XXX"
14797
14798 if test x$enable_sse = xyes; then
14799
14800 if test "${ax_cv_cxx_compiler_vendor}" = "gnu"; then
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -msse" >&5
14802 $as_echo_n "checking whether C++ compiler accepts -msse... " >&6; }
14803 if ${ax_cv_cxx_flags__msse+:} false; then :
14804 $as_echo_n "(cached) " >&6
14805 else
14806
14807 ax_save_FLAGS=$CXXFLAGS
14808 CXXFLAGS="-msse"
14809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14810 /* end confdefs.h. */
14811
14812 int
14813 main ()
14814 {
14815
14816 ;
14817 return 0;
14818 }
14819 _ACEOF
14820 if ac_fn_cxx_try_compile "$LINENO"; then :
14821 ax_cv_cxx_flags__msse=yes
14822 else
14823 ax_cv_cxx_flags__msse=no
14824 fi
14825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14826 CXXFLAGS=$ax_save_FLAGS
14827 fi
14828
14829 eval ax_check_compiler_flags=$ax_cv_cxx_flags__msse
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14831 $as_echo "$ax_check_compiler_flags" >&6; }
14832 if test "x$ax_check_compiler_flags" = xyes; then
14833 SBSMS_CFLAGS="$SBSMS_CFLAGS -msse"
14834 else
14835 as_fn_error $? "Need a version of gcc with -msse" "$LINENO" 5
14836 fi
14837
14838 fi
14839
14840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14841 /* end confdefs.h. */
14842 #include <xmmintrin.h>
14843 int
14844 main ()
14845 {
14846 __m128 v,w; float p[8]; v = _mm_loadu_ps(p); _mm_storeu_ps(p,v); w = _mm_loadl_pi(w,(const __m64*)p); w = _mm_loadh_pi(w,(const __m64*)p); _mm_storel_pi((__m64 *)p, w); _mm_storeh_pi((__m64 *)p, w); v = _mm_add_ps(v,w); v = _mm_sub_ps(v,w); v = _mm_mul_ps(v,w); v = _mm_shuffle_ps(v,w,_MM_SHUFFLE(0,1,2,3)); w = _mm_set1_ps(0.0f);
14847 ;
14848 return 0;
14849 }
14850 _ACEOF
14851 if ac_fn_cxx_try_compile "$LINENO"; then :
14852 sse_ok=yes
14853 else
14854 sse_ok=no
14855 fi
14856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14857
14858 if test x$sse_ok = xyes; then
14859
14860 $as_echo "#define ENABLE_SSE 1" >>confdefs.h
14861
14862 fi
14863 fi
14864
14865 if test x$enable_universal_binary = xyes; then
14866 case "$target_os" in
14867 darwin*)
14868 SBSMS_CFLAGS="$SBSMS_CFLAGS -mmacosx-version-min=10.4 -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -Xarch_i386 -DAPPLE_I386 -Xarch_ppc -DAPPLE_PPC"
14869 ;;
14870 *)
14871 ;;
14872 esac
14873 fi
14874
14875
14876
14877 am__api_version='1.16'
14878
14879 # Find a good install program. We prefer a C program (faster),
14880 # so one script is as good as another. But avoid the broken or
14881 # incompatible versions:
14882 # SysV /etc/install, /usr/sbin/install
14883 # SunOS /usr/etc/install
14884 # IRIX /sbin/install
14885 # AIX /bin/install
14886 # AmigaOS /C/install, which installs bootblocks on floppy discs
14887 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14888 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14889 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14890 # OS/2's system install, which has a completely different semantic
14891 # ./install, which can be erroneously created by make from ./install.sh.
14892 # Reject install programs that cannot install multiple files.
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
14894 $as_echo_n "checking for a BSD-compatible install... " >&6; }
14895 if test -z "$INSTALL"; then
14896 if ${ac_cv_path_install+:} false; then :
14897 $as_echo_n "(cached) " >&6
14898 else
14899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14900 for as_dir in $PATH
14901 do
14902 IFS=$as_save_IFS
14903 test -z "$as_dir" && as_dir=.
14904 # Account for people who put trailing slashes in PATH elements.
14905 case $as_dir/ in #((
14906 ./ | .// | /[cC]/* | \
14907 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14908 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
14909 /usr/ucb/* ) ;;
14910 *)
14911 # OSF1 and SCO ODT 3.0 have their own names for install.
14912 # Don't use installbsd from OSF since it installs stuff as root
14913 # by default.
14914 for ac_prog in ginstall scoinst install; do
14915 for ac_exec_ext in '' $ac_executable_extensions; do
14916 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14917 if test $ac_prog = install &&
14918 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14919 # AIX install. It has an incompatible calling convention.
14920 :
14921 elif test $ac_prog = install &&
14922 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14923 # program-specific install script used by HP pwplus--don't use.
14924 :
14925 else
14926 rm -rf conftest.one conftest.two conftest.dir
14927 echo one > conftest.one
14928 echo two > conftest.two
14929 mkdir conftest.dir
14930 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
14931 test -s conftest.one && test -s conftest.two &&
14932 test -s conftest.dir/conftest.one &&
14933 test -s conftest.dir/conftest.two
14934 then
14935 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14936 break 3
14937 fi
14938 fi
14939 fi
14940 done
14941 done
14942 ;;
14943 esac
14944
14945 done
14946 IFS=$as_save_IFS
14947
14948 rm -rf conftest.one conftest.two conftest.dir
14949
14950 fi
14951 if test "${ac_cv_path_install+set}" = set; then
14952 INSTALL=$ac_cv_path_install
14953 else
14954 # As a last resort, use the slow shell script. Don't cache a
14955 # value for INSTALL within a source directory, because that will
14956 # break other packages using the cache if that directory is
14957 # removed, or if the value is a relative name.
14958 INSTALL=$ac_install_sh
14959 fi
14960 fi
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
14962 $as_echo "$INSTALL" >&6; }
14963
14964 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14965 # It thinks the first close brace ends the variable substitution.
14966 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14967
14968 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14969
14970 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14971
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
14973 $as_echo_n "checking whether build environment is sane... " >&6; }
14974 # Reject unsafe characters in $srcdir or the absolute working directory
14975 # name. Accept space and tab only in the latter.
14976 am_lf='
14977 '
14978 case `pwd` in
14979 *[\\\"\#\$\&\'\`$am_lf]*)
14980 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
14981 esac
14982 case $srcdir in
14983 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
14984 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
14985 esac
14986
14987 # Do 'set' in a subshell so we don't clobber the current shell's
14988 # arguments. Must try -L first in case configure is actually a
14989 # symlink; some systems play weird games with the mod time of symlinks
14990 # (eg FreeBSD returns the mod time of the symlink's containing
14991 # directory).
14992 if (
14993 am_has_slept=no
14994 for am_try in 1 2; do
14995 echo "timestamp, slept: $am_has_slept" > conftest.file
14996 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
14997 if test "$*" = "X"; then
14998 # -L didn't work.
14999 set X `ls -t "$srcdir/configure" conftest.file`
15000 fi
15001 if test "$*" != "X $srcdir/configure conftest.file" \
15002 && test "$*" != "X conftest.file $srcdir/configure"; then
15003
15004 # If neither matched, then we have a broken ls. This can happen
15005 # if, for instance, CONFIG_SHELL is bash and it inherits a
15006 # broken ls alias from the environment. This has actually
15007 # happened. Such a system could not be considered "sane".
15008 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
15009 alias in your environment" "$LINENO" 5
15010 fi
15011 if test "$2" = conftest.file || test $am_try -eq 2; then
15012 break
15013 fi
15014 # Just in case.
15015 sleep 1
15016 am_has_slept=yes
15017 done
15018 test "$2" = conftest.file
15019 )
15020 then
15021 # Ok.
15022 :
15023 else
15024 as_fn_error $? "newly created file is older than distributed files!
15025 Check your system clock" "$LINENO" 5
15026 fi
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15028 $as_echo "yes" >&6; }
15029 # If we didn't sleep, we still need to ensure time stamps of config.status and
15030 # generated files are strictly newer.
15031 am_sleep_pid=
15032 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
15033 ( sleep 1 ) &
15034 am_sleep_pid=$!
15035 fi
15036
15037 rm -f conftest.file
15038
15039 test "$program_prefix" != NONE &&
15040 program_transform_name="s&^&$program_prefix&;$program_transform_name"
15041 # Use a double $ so make ignores it.
15042 test "$program_suffix" != NONE &&
15043 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
15044 # Double any \ or $.
15045 # By default was `s,x,x', remove it if useless.
15046 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
15047 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
15048
15049 if test x"${MISSING+set}" != xset; then
15050 MISSING="\${SHELL} '$am_aux_dir/missing'"
15051 fi
15052 # Use eval to expand $SHELL
15053 if eval "$MISSING --is-lightweight"; then
15054 am_missing_run="$MISSING "
15055 else
15056 am_missing_run=
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
15058 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
15059 fi
15060
15061 if test x"${install_sh+set}" != xset; then
15062 case $am_aux_dir in
15063 *\ * | *\ *)
15064 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
15065 *)
15066 install_sh="\${SHELL} $am_aux_dir/install-sh"
15067 esac
15068 fi
15069
15070 # Installed binaries are usually stripped using 'strip' when the user
15071 # run "make install-strip". However 'strip' might not be the right
15072 # tool to use in cross-compilation environments, therefore Automake
15073 # will honor the 'STRIP' environment variable to overrule this program.
15074 if test "$cross_compiling" != no; then
15075 if test -n "$ac_tool_prefix"; then
15076 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15077 set dummy ${ac_tool_prefix}strip; ac_word=$2
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15079 $as_echo_n "checking for $ac_word... " >&6; }
15080 if ${ac_cv_prog_STRIP+:} false; then :
15081 $as_echo_n "(cached) " >&6
15082 else
15083 if test -n "$STRIP"; then
15084 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15085 else
15086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15087 for as_dir in $PATH
15088 do
15089 IFS=$as_save_IFS
15090 test -z "$as_dir" && as_dir=.
15091 for ac_exec_ext in '' $ac_executable_extensions; do
15092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15093 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15095 break 2
15096 fi
15097 done
15098 done
15099 IFS=$as_save_IFS
15100
15101 fi
15102 fi
15103 STRIP=$ac_cv_prog_STRIP
15104 if test -n "$STRIP"; then
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15106 $as_echo "$STRIP" >&6; }
15107 else
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15109 $as_echo "no" >&6; }
15110 fi
15111
15112
15113 fi
15114 if test -z "$ac_cv_prog_STRIP"; then
15115 ac_ct_STRIP=$STRIP
15116 # Extract the first word of "strip", so it can be a program name with args.
15117 set dummy strip; ac_word=$2
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15119 $as_echo_n "checking for $ac_word... " >&6; }
15120 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
15121 $as_echo_n "(cached) " >&6
15122 else
15123 if test -n "$ac_ct_STRIP"; then
15124 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15125 else
15126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15127 for as_dir in $PATH
15128 do
15129 IFS=$as_save_IFS
15130 test -z "$as_dir" && as_dir=.
15131 for ac_exec_ext in '' $ac_executable_extensions; do
15132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15133 ac_cv_prog_ac_ct_STRIP="strip"
15134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15135 break 2
15136 fi
15137 done
15138 done
15139 IFS=$as_save_IFS
15140
15141 fi
15142 fi
15143 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15144 if test -n "$ac_ct_STRIP"; then
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15146 $as_echo "$ac_ct_STRIP" >&6; }
15147 else
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15149 $as_echo "no" >&6; }
15150 fi
15151
15152 if test "x$ac_ct_STRIP" = x; then
15153 STRIP=":"
15154 else
15155 case $cross_compiling:$ac_tool_warned in
15156 yes:)
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15159 ac_tool_warned=yes ;;
15160 esac
15161 STRIP=$ac_ct_STRIP
15162 fi
15163 else
15164 STRIP="$ac_cv_prog_STRIP"
15165 fi
15166
15167 fi
15168 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
15169
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
15171 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
15172 if test -z "$MKDIR_P"; then
15173 if ${ac_cv_path_mkdir+:} false; then :
15174 $as_echo_n "(cached) " >&6
15175 else
15176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15177 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
15178 do
15179 IFS=$as_save_IFS
15180 test -z "$as_dir" && as_dir=.
15181 for ac_prog in mkdir gmkdir; do
15182 for ac_exec_ext in '' $ac_executable_extensions; do
15183 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
15184 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
15185 'mkdir (GNU coreutils) '* | \
15186 'mkdir (coreutils) '* | \
15187 'mkdir (fileutils) '4.1*)
15188 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
15189 break 3;;
15190 esac
15191 done
15192 done
15193 done
15194 IFS=$as_save_IFS
15195
15196 fi
15197
15198 test -d ./--version && rmdir ./--version
15199 if test "${ac_cv_path_mkdir+set}" = set; then
15200 MKDIR_P="$ac_cv_path_mkdir -p"
15201 else
15202 # As a last resort, use the slow shell script. Don't cache a
15203 # value for MKDIR_P within a source directory, because that will
15204 # break other packages using the cache if that directory is
15205 # removed, or if the value is a relative name.
15206 MKDIR_P="$ac_install_sh -d"
15207 fi
15208 fi
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
15210 $as_echo "$MKDIR_P" >&6; }
15211
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15213 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15214 set x ${MAKE-make}
15215 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15216 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
15217 $as_echo_n "(cached) " >&6
15218 else
15219 cat >conftest.make <<\_ACEOF
15220 SHELL = /bin/sh
15221 all:
15222 @echo '@@@%%%=$(MAKE)=@@@%%%'
15223 _ACEOF
15224 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15225 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15226 *@@@%%%=?*=@@@%%%*)
15227 eval ac_cv_prog_make_${ac_make}_set=yes;;
15228 *)
15229 eval ac_cv_prog_make_${ac_make}_set=no;;
15230 esac
15231 rm -f conftest.make
15232 fi
15233 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15235 $as_echo "yes" >&6; }
15236 SET_MAKE=
15237 else
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15239 $as_echo "no" >&6; }
15240 SET_MAKE="MAKE=${MAKE-make}"
15241 fi
15242
15243 rm -rf .tst 2>/dev/null
15244 mkdir .tst 2>/dev/null
15245 if test -d .tst; then
15246 am__leading_dot=.
15247 else
15248 am__leading_dot=_
15249 fi
15250 rmdir .tst 2>/dev/null
15251
15252 # Check whether --enable-silent-rules was given.
15253 if test "${enable_silent_rules+set}" = set; then :
15254 enableval=$enable_silent_rules;
15255 fi
15256
15257 case $enable_silent_rules in # (((
15258 yes) AM_DEFAULT_VERBOSITY=0;;
15259 no) AM_DEFAULT_VERBOSITY=1;;
15260 *) AM_DEFAULT_VERBOSITY=1;;
15261 esac
15262 am_make=${MAKE-make}
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
15264 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
15265 if ${am_cv_make_support_nested_variables+:} false; then :
15266 $as_echo_n "(cached) " >&6
15267 else
15268 if $as_echo 'TRUE=$(BAR$(V))
15269 BAR0=false
15270 BAR1=true
15271 V=1
15272 am__doit:
15273 @$(TRUE)
15274 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
15275 am_cv_make_support_nested_variables=yes
15276 else
15277 am_cv_make_support_nested_variables=no
15278 fi
15279 fi
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
15281 $as_echo "$am_cv_make_support_nested_variables" >&6; }
15282 if test $am_cv_make_support_nested_variables = yes; then
15283 AM_V='$(V)'
15284 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
15285 else
15286 AM_V=$AM_DEFAULT_VERBOSITY
15287 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
15288 fi
15289 AM_BACKSLASH='\'
15290
15291 if test "`cd $srcdir && pwd`" != "`pwd`"; then
15292 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
15293 # is not polluted with repeated "-I."
15294 am__isrc=' -I$(srcdir)'
15295 # test to see if srcdir already configured
15296 if test -f $srcdir/config.status; then
15297 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
15298 fi
15299 fi
15300
15301 # test whether we have cygpath
15302 if test -z "$CYGPATH_W"; then
15303 if (cygpath --version) >/dev/null 2>/dev/null; then
15304 CYGPATH_W='cygpath -w'
15305 else
15306 CYGPATH_W=echo
15307 fi
15308 fi
15309
15310
15311 # Define the identity of the package.
15312 PACKAGE='sbsms'
15313 VERSION='2.2.0'
15314
15315
15316 cat >>confdefs.h <<_ACEOF
15317 #define PACKAGE "$PACKAGE"
15318 _ACEOF
15319
15320
15321 cat >>confdefs.h <<_ACEOF
15322 #define VERSION "$VERSION"
15323 _ACEOF
15324
15325 # Some tools Automake needs.
15326
15327 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
15328
15329
15330 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15331
15332
15333 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
15334
15335
15336 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15337
15338
15339 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
15340
15341 # For better backward compatibility. To be removed once Automake 1.9.x
15342 # dies out for good. For more background, see:
15343 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
15344 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
15345 mkdir_p='$(MKDIR_P)'
15346
15347 # We need awk for the "check" target (and possibly the TAP driver). The
15348 # system "awk" is bad on some platforms.
15349 # Always define AMTAR for backward compatibility. Yes, it's still used
15350 # in the wild :-( We should find a proper way to deprecate it ...
15351 AMTAR='$${TAR-tar}'
15352
15353
15354 # We'll loop over all known methods to create a tar archive until one works.
15355 _am_tools='gnutar pax cpio none'
15356
15357 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
15358
15359
15360
15361
15362
15363
15364 # POSIX will say in a future version that running "rm -f" with no argument
15365 # is OK; and we want to be able to make that assumption in our Makefile
15366 # recipes. So use an aggressive probe to check that the usage we want is
15367 # actually supported "in the wild" to an acceptable degree.
15368 # See automake bug#10828.
15369 # To make any issue more visible, cause the running configure to be aborted
15370 # by default if the 'rm' program in use doesn't match our expectations; the
15371 # user can still override this though.
15372 if rm -f && rm -fr && rm -rf; then : OK; else
15373 cat >&2 <<'END'
15374 Oops!
15375
15376 Your 'rm' program seems unable to run without file operands specified
15377 on the command line, even when the '-f' option is present. This is contrary
15378 to the behaviour of most rm programs out there, and not conforming with
15379 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
15380
15381 Please tell [email protected] about your system, including the value
15382 of your $PATH and any error possibly output before this message. This
15383 can help us improve future automake versions.
15384
15385 END
15386 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
15387 echo 'Configuration will proceed anyway, since you have set the' >&2
15388 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
15389 echo >&2
15390 else
15391 cat >&2 <<'END'
15392 Aborting the configuration process, to ensure you take notice of the issue.
15393
15394 You can download and install GNU coreutils to get an 'rm' implementation
15395 that behaves properly: <https://www.gnu.org/software/coreutils/>.
15396
15397 If you want to complete the configuration process using your problematic
15398 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
15399 to "yes", and re-run configure.
15400
15401 END
15402 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
15403 fi
15404 fi
15405
15406
15407
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15409 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15410 # Check whether --enable-maintainer-mode was given.
15411 if test "${enable_maintainer_mode+set}" = set; then :
15412 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15413 else
15414 USE_MAINTAINER_MODE=no
15415 fi
15416
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15418 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15419 if test $USE_MAINTAINER_MODE = yes; then
15420 MAINTAINER_MODE_TRUE=
15421 MAINTAINER_MODE_FALSE='#'
15422 else
15423 MAINTAINER_MODE_TRUE='#'
15424 MAINTAINER_MODE_FALSE=
15425 fi
15426
15427 MAINT=$MAINTAINER_MODE_TRUE
15428
15429
15430
15431 ac_config_files="$ac_config_files Makefile src/Makefile libsbsms.spec sbsms.pc"
15432
15433
15434 cat >confcache <<\_ACEOF
15435 # This file is a shell script that caches the results of configure
15436 # tests run on this system so they can be shared between configure
15437 # scripts and configure runs, see configure's option --config-cache.
15438 # It is not useful on other systems. If it contains results you don't
15439 # want to keep, you may remove or edit it.
15440 #
15441 # config.status only pays attention to the cache file if you give it
15442 # the --recheck option to rerun configure.
15443 #
15444 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15445 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15446 # following values.
15447
15448 _ACEOF
15449
15450 # The following way of writing the cache mishandles newlines in values,
15451 # but we know of no workaround that is simple, portable, and efficient.
15452 # So, we kill variables containing newlines.
15453 # Ultrix sh set writes to stderr and can't be redirected directly,
15454 # and sets the high bit in the cache file unless we assign to the vars.
15455 (
15456 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15457 eval ac_val=\$$ac_var
15458 case $ac_val in #(
15459 *${as_nl}*)
15460 case $ac_var in #(
15461 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15462 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15463 esac
15464 case $ac_var in #(
15465 _ | IFS | as_nl) ;; #(
15466 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15467 *) { eval $ac_var=; unset $ac_var;} ;;
15468 esac ;;
15469 esac
15470 done
15471
15472 (set) 2>&1 |
15473 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15474 *${as_nl}ac_space=\ *)
15475 # `set' does not quote correctly, so add quotes: double-quote
15476 # substitution turns \\\\ into \\, and sed turns \\ into \.
15477 sed -n \
15478 "s/'/'\\\\''/g;
15479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15480 ;; #(
15481 *)
15482 # `set' quotes correctly as required by POSIX, so do not add quotes.
15483 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15484 ;;
15485 esac |
15486 sort
15487 ) |
15488 sed '
15489 /^ac_cv_env_/b end
15490 t clear
15491 :clear
15492 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15493 t end
15494 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15495 :end' >>confcache
15496 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15497 if test -w "$cache_file"; then
15498 if test "x$cache_file" != "x/dev/null"; then
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15500 $as_echo "$as_me: updating cache $cache_file" >&6;}
15501 if test ! -f "$cache_file" || test -h "$cache_file"; then
15502 cat confcache >"$cache_file"
15503 else
15504 case $cache_file in #(
15505 */* | ?:*)
15506 mv -f confcache "$cache_file"$$ &&
15507 mv -f "$cache_file"$$ "$cache_file" ;; #(
15508 *)
15509 mv -f confcache "$cache_file" ;;
15510 esac
15511 fi
15512 fi
15513 else
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15515 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15516 fi
15517 fi
15518 rm -f confcache
15519
15520 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15521 # Let make expand exec_prefix.
15522 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15523
15524 DEFS=-DHAVE_CONFIG_H
15525
15526 ac_libobjs=
15527 ac_ltlibobjs=
15528 U=
15529 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15530 # 1. Remove the extension, and $U if already installed.
15531 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15532 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15533 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15534 # will be set to the directory where LIBOBJS objects are built.
15535 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15536 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15537 done
15538 LIBOBJS=$ac_libobjs
15539
15540 LTLIBOBJS=$ac_ltlibobjs
15541
15542
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15544 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15545 if test -n "$am_sleep_pid"; then
15546 # Hide warnings about reused PIDs.
15547 wait $am_sleep_pid 2>/dev/null
15548 fi
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15550 $as_echo "done" >&6; }
15551 if test -n "$EXEEXT"; then
15552 am__EXEEXT_TRUE=
15553 am__EXEEXT_FALSE='#'
15554 else
15555 am__EXEEXT_TRUE='#'
15556 am__EXEEXT_FALSE=
15557 fi
15558
15559 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15560 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15562 fi
15563
15564 : "${CONFIG_STATUS=./config.status}"
15565 ac_write_fail=0
15566 ac_clean_files_save=$ac_clean_files
15567 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15569 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15570 as_write_fail=0
15571 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15572 #! $SHELL
15573 # Generated by $as_me.
15574 # Run this file to recreate the current configuration.
15575 # Compiler output produced by configure, useful for debugging
15576 # configure, is in config.log if it exists.
15577
15578 debug=false
15579 ac_cs_recheck=false
15580 ac_cs_silent=false
15581
15582 SHELL=\${CONFIG_SHELL-$SHELL}
15583 export SHELL
15584 _ASEOF
15585 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15586 ## -------------------- ##
15587 ## M4sh Initialization. ##
15588 ## -------------------- ##
15589
15590 # Be more Bourne compatible
15591 DUALCASE=1; export DUALCASE # for MKS sh
15592 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15593 emulate sh
15594 NULLCMD=:
15595 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15596 # is contrary to our usage. Disable this feature.
15597 alias -g '${1+"$@"}'='"$@"'
15598 setopt NO_GLOB_SUBST
15599 else
15600 case `(set -o) 2>/dev/null` in #(
15601 *posix*) :
15602 set -o posix ;; #(
15603 *) :
15604 ;;
15605 esac
15606 fi
15607
15608
15609 as_nl='
15610 '
15611 export as_nl
15612 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15613 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15614 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15615 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15616 # Prefer a ksh shell builtin over an external printf program on Solaris,
15617 # but without wasting forks for bash or zsh.
15618 if test -z "$BASH_VERSION$ZSH_VERSION" \
15619 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15620 as_echo='print -r --'
15621 as_echo_n='print -rn --'
15622 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15623 as_echo='printf %s\n'
15624 as_echo_n='printf %s'
15625 else
15626 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15627 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15628 as_echo_n='/usr/ucb/echo -n'
15629 else
15630 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15631 as_echo_n_body='eval
15632 arg=$1;
15633 case $arg in #(
15634 *"$as_nl"*)
15635 expr "X$arg" : "X\\(.*\\)$as_nl";
15636 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15637 esac;
15638 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15639 '
15640 export as_echo_n_body
15641 as_echo_n='sh -c $as_echo_n_body as_echo'
15642 fi
15643 export as_echo_body
15644 as_echo='sh -c $as_echo_body as_echo'
15645 fi
15646
15647 # The user is always right.
15648 if test "${PATH_SEPARATOR+set}" != set; then
15649 PATH_SEPARATOR=:
15650 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15651 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15652 PATH_SEPARATOR=';'
15653 }
15654 fi
15655
15656
15657 # IFS
15658 # We need space, tab and new line, in precisely that order. Quoting is
15659 # there to prevent editors from complaining about space-tab.
15660 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15661 # splitting by setting IFS to empty value.)
15662 IFS=" "" $as_nl"
15663
15664 # Find who we are. Look in the path if we contain no directory separator.
15665 as_myself=
15666 case $0 in #((
15667 *[\\/]* ) as_myself=$0 ;;
15668 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15669 for as_dir in $PATH
15670 do
15671 IFS=$as_save_IFS
15672 test -z "$as_dir" && as_dir=.
15673 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15674 done
15675 IFS=$as_save_IFS
15676
15677 ;;
15678 esac
15679 # We did not find ourselves, most probably we were run as `sh COMMAND'
15680 # in which case we are not to be found in the path.
15681 if test "x$as_myself" = x; then
15682 as_myself=$0
15683 fi
15684 if test ! -f "$as_myself"; then
15685 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15686 exit 1
15687 fi
15688
15689 # Unset variables that we do not need and which cause bugs (e.g. in
15690 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15691 # suppresses any "Segmentation fault" message there. '((' could
15692 # trigger a bug in pdksh 5.2.14.
15693 for as_var in BASH_ENV ENV MAIL MAILPATH
15694 do eval test x\${$as_var+set} = xset \
15695 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15696 done
15697 PS1='$ '
15698 PS2='> '
15699 PS4='+ '
15700
15701 # NLS nuisances.
15702 LC_ALL=C
15703 export LC_ALL
15704 LANGUAGE=C
15705 export LANGUAGE
15706
15707 # CDPATH.
15708 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15709
15710
15711 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15712 # ----------------------------------------
15713 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15714 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15715 # script with STATUS, using 1 if that was 0.
15716 as_fn_error ()
15717 {
15718 as_status=$1; test $as_status -eq 0 && as_status=1
15719 if test "$4"; then
15720 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15721 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15722 fi
15723 $as_echo "$as_me: error: $2" >&2
15724 as_fn_exit $as_status
15725 } # as_fn_error
15726
15727
15728 # as_fn_set_status STATUS
15729 # -----------------------
15730 # Set $? to STATUS, without forking.
15731 as_fn_set_status ()
15732 {
15733 return $1
15734 } # as_fn_set_status
15735
15736 # as_fn_exit STATUS
15737 # -----------------
15738 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15739 as_fn_exit ()
15740 {
15741 set +e
15742 as_fn_set_status $1
15743 exit $1
15744 } # as_fn_exit
15745
15746 # as_fn_unset VAR
15747 # ---------------
15748 # Portably unset VAR.
15749 as_fn_unset ()
15750 {
15751 { eval $1=; unset $1;}
15752 }
15753 as_unset=as_fn_unset
15754 # as_fn_append VAR VALUE
15755 # ----------------------
15756 # Append the text in VALUE to the end of the definition contained in VAR. Take
15757 # advantage of any shell optimizations that allow amortized linear growth over
15758 # repeated appends, instead of the typical quadratic growth present in naive
15759 # implementations.
15760 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15761 eval 'as_fn_append ()
15762 {
15763 eval $1+=\$2
15764 }'
15765 else
15766 as_fn_append ()
15767 {
15768 eval $1=\$$1\$2
15769 }
15770 fi # as_fn_append
15771
15772 # as_fn_arith ARG...
15773 # ------------------
15774 # Perform arithmetic evaluation on the ARGs, and store the result in the
15775 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15776 # must be portable across $(()) and expr.
15777 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15778 eval 'as_fn_arith ()
15779 {
15780 as_val=$(( $* ))
15781 }'
15782 else
15783 as_fn_arith ()
15784 {
15785 as_val=`expr "$@" || test $? -eq 1`
15786 }
15787 fi # as_fn_arith
15788
15789
15790 if expr a : '\(a\)' >/dev/null 2>&1 &&
15791 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15792 as_expr=expr
15793 else
15794 as_expr=false
15795 fi
15796
15797 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15798 as_basename=basename
15799 else
15800 as_basename=false
15801 fi
15802
15803 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15804 as_dirname=dirname
15805 else
15806 as_dirname=false
15807 fi
15808
15809 as_me=`$as_basename -- "$0" ||
15810 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15811 X"$0" : 'X\(//\)$' \| \
15812 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15813 $as_echo X/"$0" |
15814 sed '/^.*\/\([^/][^/]*\)\/*$/{
15815 s//\1/
15816 q
15817 }
15818 /^X\/\(\/\/\)$/{
15819 s//\1/
15820 q
15821 }
15822 /^X\/\(\/\).*/{
15823 s//\1/
15824 q
15825 }
15826 s/.*/./; q'`
15827
15828 # Avoid depending upon Character Ranges.
15829 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15830 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15831 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15832 as_cr_digits='0123456789'
15833 as_cr_alnum=$as_cr_Letters$as_cr_digits
15834
15835 ECHO_C= ECHO_N= ECHO_T=
15836 case `echo -n x` in #(((((
15837 -n*)
15838 case `echo 'xy\c'` in
15839 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15840 xy) ECHO_C='\c';;
15841 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15842 ECHO_T=' ';;
15843 esac;;
15844 *)
15845 ECHO_N='-n';;
15846 esac
15847
15848 rm -f conf$$ conf$$.exe conf$$.file
15849 if test -d conf$$.dir; then
15850 rm -f conf$$.dir/conf$$.file
15851 else
15852 rm -f conf$$.dir
15853 mkdir conf$$.dir 2>/dev/null
15854 fi
15855 if (echo >conf$$.file) 2>/dev/null; then
15856 if ln -s conf$$.file conf$$ 2>/dev/null; then
15857 as_ln_s='ln -s'
15858 # ... but there are two gotchas:
15859 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15860 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15861 # In both cases, we have to default to `cp -pR'.
15862 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15863 as_ln_s='cp -pR'
15864 elif ln conf$$.file conf$$ 2>/dev/null; then
15865 as_ln_s=ln
15866 else
15867 as_ln_s='cp -pR'
15868 fi
15869 else
15870 as_ln_s='cp -pR'
15871 fi
15872 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15873 rmdir conf$$.dir 2>/dev/null
15874
15875
15876 # as_fn_mkdir_p
15877 # -------------
15878 # Create "$as_dir" as a directory, including parents if necessary.
15879 as_fn_mkdir_p ()
15880 {
15881
15882 case $as_dir in #(
15883 -*) as_dir=./$as_dir;;
15884 esac
15885 test -d "$as_dir" || eval $as_mkdir_p || {
15886 as_dirs=
15887 while :; do
15888 case $as_dir in #(
15889 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15890 *) as_qdir=$as_dir;;
15891 esac
15892 as_dirs="'$as_qdir' $as_dirs"
15893 as_dir=`$as_dirname -- "$as_dir" ||
15894 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15895 X"$as_dir" : 'X\(//\)[^/]' \| \
15896 X"$as_dir" : 'X\(//\)$' \| \
15897 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15898 $as_echo X"$as_dir" |
15899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15900 s//\1/
15901 q
15902 }
15903 /^X\(\/\/\)[^/].*/{
15904 s//\1/
15905 q
15906 }
15907 /^X\(\/\/\)$/{
15908 s//\1/
15909 q
15910 }
15911 /^X\(\/\).*/{
15912 s//\1/
15913 q
15914 }
15915 s/.*/./; q'`
15916 test -d "$as_dir" && break
15917 done
15918 test -z "$as_dirs" || eval "mkdir $as_dirs"
15919 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15920
15921
15922 } # as_fn_mkdir_p
15923 if mkdir -p . 2>/dev/null; then
15924 as_mkdir_p='mkdir -p "$as_dir"'
15925 else
15926 test -d ./-p && rmdir ./-p
15927 as_mkdir_p=false
15928 fi
15929
15930
15931 # as_fn_executable_p FILE
15932 # -----------------------
15933 # Test if FILE is an executable regular file.
15934 as_fn_executable_p ()
15935 {
15936 test -f "$1" && test -x "$1"
15937 } # as_fn_executable_p
15938 as_test_x='test -x'
15939 as_executable_p=as_fn_executable_p
15940
15941 # Sed expression to map a string onto a valid CPP name.
15942 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15943
15944 # Sed expression to map a string onto a valid variable name.
15945 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15946
15947
15948 exec 6>&1
15949 ## ----------------------------------- ##
15950 ## Main body of $CONFIG_STATUS script. ##
15951 ## ----------------------------------- ##
15952 _ASEOF
15953 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15954
15955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15956 # Save the log message, to keep $0 and so on meaningful, and to
15957 # report actual input values of CONFIG_FILES etc. instead of their
15958 # values after options handling.
15959 ac_log="
15960 This file was extended by sbsms $as_me 2.2.0, which was
15961 generated by GNU Autoconf 2.69. Invocation command line was
15962
15963 CONFIG_FILES = $CONFIG_FILES
15964 CONFIG_HEADERS = $CONFIG_HEADERS
15965 CONFIG_LINKS = $CONFIG_LINKS
15966 CONFIG_COMMANDS = $CONFIG_COMMANDS
15967 $ $0 $@
15968
15969 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15970 "
15971
15972 _ACEOF
15973
15974 case $ac_config_files in *"
15975 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15976 esac
15977
15978 case $ac_config_headers in *"
15979 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15980 esac
15981
15982
15983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15984 # Files that config.status was made for.
15985 config_files="$ac_config_files"
15986 config_headers="$ac_config_headers"
15987 config_commands="$ac_config_commands"
15988
15989 _ACEOF
15990
15991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15992 ac_cs_usage="\
15993 \`$as_me' instantiates files and other configuration actions
15994 from templates according to the current configuration. Unless the files
15995 and actions are specified as TAGs, all are instantiated by default.
15996
15997 Usage: $0 [OPTION]... [TAG]...
15998
15999 -h, --help print this help, then exit
16000 -V, --version print version number and configuration settings, then exit
16001 --config print configuration, then exit
16002 -q, --quiet, --silent
16003 do not print progress messages
16004 -d, --debug don't remove temporary files
16005 --recheck update $as_me by reconfiguring in the same conditions
16006 --file=FILE[:TEMPLATE]
16007 instantiate the configuration file FILE
16008 --header=FILE[:TEMPLATE]
16009 instantiate the configuration header FILE
16010
16011 Configuration files:
16012 $config_files
16013
16014 Configuration headers:
16015 $config_headers
16016
16017 Configuration commands:
16018 $config_commands
16019
16020 Report bugs to the package provider."
16021
16022 _ACEOF
16023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16024 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16025 ac_cs_version="\\
16026 sbsms config.status 2.2.0
16027 configured by $0, generated by GNU Autoconf 2.69,
16028 with options \\"\$ac_cs_config\\"
16029
16030 Copyright (C) 2012 Free Software Foundation, Inc.
16031 This config.status script is free software; the Free Software Foundation
16032 gives unlimited permission to copy, distribute and modify it."
16033
16034 ac_pwd='$ac_pwd'
16035 srcdir='$srcdir'
16036 INSTALL='$INSTALL'
16037 MKDIR_P='$MKDIR_P'
16038 AWK='$AWK'
16039 test -n "\$AWK" || AWK=awk
16040 _ACEOF
16041
16042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16043 # The default lists apply if the user does not specify any file.
16044 ac_need_defaults=:
16045 while test $# != 0
16046 do
16047 case $1 in
16048 --*=?*)
16049 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16050 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16051 ac_shift=:
16052 ;;
16053 --*=)
16054 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16055 ac_optarg=
16056 ac_shift=:
16057 ;;
16058 *)
16059 ac_option=$1
16060 ac_optarg=$2
16061 ac_shift=shift
16062 ;;
16063 esac
16064
16065 case $ac_option in
16066 # Handling of the options.
16067 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16068 ac_cs_recheck=: ;;
16069 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16070 $as_echo "$ac_cs_version"; exit ;;
16071 --config | --confi | --conf | --con | --co | --c )
16072 $as_echo "$ac_cs_config"; exit ;;
16073 --debug | --debu | --deb | --de | --d | -d )
16074 debug=: ;;
16075 --file | --fil | --fi | --f )
16076 $ac_shift
16077 case $ac_optarg in
16078 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16079 '') as_fn_error $? "missing file argument" ;;
16080 esac
16081 as_fn_append CONFIG_FILES " '$ac_optarg'"
16082 ac_need_defaults=false;;
16083 --header | --heade | --head | --hea )
16084 $ac_shift
16085 case $ac_optarg in
16086 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16087 esac
16088 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16089 ac_need_defaults=false;;
16090 --he | --h)
16091 # Conflict between --help and --header
16092 as_fn_error $? "ambiguous option: \`$1'
16093 Try \`$0 --help' for more information.";;
16094 --help | --hel | -h )
16095 $as_echo "$ac_cs_usage"; exit ;;
16096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16097 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16098 ac_cs_silent=: ;;
16099
16100 # This is an error.
16101 -*) as_fn_error $? "unrecognized option: \`$1'
16102 Try \`$0 --help' for more information." ;;
16103
16104 *) as_fn_append ac_config_targets " $1"
16105 ac_need_defaults=false ;;
16106
16107 esac
16108 shift
16109 done
16110
16111 ac_configure_extra_args=
16112
16113 if $ac_cs_silent; then
16114 exec 6>/dev/null
16115 ac_configure_extra_args="$ac_configure_extra_args --silent"
16116 fi
16117
16118 _ACEOF
16119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16120 if \$ac_cs_recheck; then
16121 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16122 shift
16123 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16124 CONFIG_SHELL='$SHELL'
16125 export CONFIG_SHELL
16126 exec "\$@"
16127 fi
16128
16129 _ACEOF
16130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16131 exec 5>>config.log
16132 {
16133 echo
16134 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16135 ## Running $as_me. ##
16136 _ASBOX
16137 $as_echo "$ac_log"
16138 } >&5
16139
16140 _ACEOF
16141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16142 #
16143 # INIT-COMMANDS
16144 #
16145
16146
16147 # The HP-UX ksh and POSIX shell print the target directory to stdout
16148 # if CDPATH is set.
16149 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16150
16151 sed_quote_subst='$sed_quote_subst'
16152 double_quote_subst='$double_quote_subst'
16153 delay_variable_subst='$delay_variable_subst'
16154 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16155 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16156 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16157 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16158 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16159 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16160 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16161 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16162 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16163 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16164 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16165 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16166 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16167 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16168 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16169 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16170 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16171 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16172 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16173 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16174 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16175 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16176 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16177 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16178 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16179 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16180 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16181 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16182 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16183 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16184 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16185 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16186 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16187 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16188 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16189 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16190 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16191 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16192 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16193 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16194 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16195 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16196 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16197 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16198 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16199 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16200 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16201 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16202 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16203 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16204 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16205 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16206 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16207 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16208 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16209 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16210 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"`'
16211 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16212 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16213 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16214 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16215 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16216 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16217 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16218 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16219 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16220 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16221 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16222 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16223 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16224 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16225 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16226 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16227 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16228 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16229 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16230 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16231 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16232 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16233 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16234 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16235 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16236 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16237 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16238 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16239 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16240 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16241 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16242 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16243 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16244 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16245 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16246 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16247 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16248 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16249 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16250 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16251 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16252 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16253 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16254 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16255 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16256 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16257 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16258 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16259 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16260 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16261 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16262 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16263 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16264 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16265 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16266 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16267 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16268 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16269 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16270 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16271 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16272 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16273 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16274 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16275 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16276 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16277 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16278 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16279 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16280 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16281 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16282 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16283 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16284 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16285 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16286 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16287 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16288 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16289 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16290 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16291 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16292 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16293 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16294 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16295 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16296 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16297 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16298 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16299 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16300 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16301 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16302 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16303 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16304 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16305 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16306 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16307 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16308 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16309 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16310 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16311 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16312 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16313 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16314 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16315 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16316 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16317 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16318 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16319 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16320 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16321 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16322 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16323 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16324 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16325 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16326 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16327 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16328 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16329 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16330 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16331 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16332 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16333 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16334 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16335 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16336 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16337 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16338
16339 LTCC='$LTCC'
16340 LTCFLAGS='$LTCFLAGS'
16341 compiler='$compiler_DEFAULT'
16342
16343 # A function that is used when there is no print builtin or printf.
16344 func_fallback_echo ()
16345 {
16346 eval 'cat <<_LTECHO_EOF
16347 \$1
16348 _LTECHO_EOF'
16349 }
16350
16351 # Quote evaled strings.
16352 for var in SHELL \
16353 ECHO \
16354 PATH_SEPARATOR \
16355 SED \
16356 GREP \
16357 EGREP \
16358 FGREP \
16359 LD \
16360 NM \
16361 LN_S \
16362 lt_SP2NL \
16363 lt_NL2SP \
16364 reload_flag \
16365 OBJDUMP \
16366 deplibs_check_method \
16367 file_magic_cmd \
16368 file_magic_glob \
16369 want_nocaseglob \
16370 DLLTOOL \
16371 sharedlib_from_linklib_cmd \
16372 AR \
16373 AR_FLAGS \
16374 archiver_list_spec \
16375 STRIP \
16376 RANLIB \
16377 CC \
16378 CFLAGS \
16379 compiler \
16380 lt_cv_sys_global_symbol_pipe \
16381 lt_cv_sys_global_symbol_to_cdecl \
16382 lt_cv_sys_global_symbol_to_c_name_address \
16383 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16384 nm_file_list_spec \
16385 lt_prog_compiler_no_builtin_flag \
16386 lt_prog_compiler_pic \
16387 lt_prog_compiler_wl \
16388 lt_prog_compiler_static \
16389 lt_cv_prog_compiler_c_o \
16390 need_locks \
16391 MANIFEST_TOOL \
16392 DSYMUTIL \
16393 NMEDIT \
16394 LIPO \
16395 OTOOL \
16396 OTOOL64 \
16397 shrext_cmds \
16398 export_dynamic_flag_spec \
16399 whole_archive_flag_spec \
16400 compiler_needs_object \
16401 with_gnu_ld \
16402 allow_undefined_flag \
16403 no_undefined_flag \
16404 hardcode_libdir_flag_spec \
16405 hardcode_libdir_separator \
16406 exclude_expsyms \
16407 include_expsyms \
16408 file_list_spec \
16409 variables_saved_for_relink \
16410 libname_spec \
16411 library_names_spec \
16412 soname_spec \
16413 install_override_mode \
16414 finish_eval \
16415 old_striplib \
16416 striplib \
16417 compiler_lib_search_dirs \
16418 predep_objects \
16419 postdep_objects \
16420 predeps \
16421 postdeps \
16422 compiler_lib_search_path \
16423 LD_CXX \
16424 reload_flag_CXX \
16425 compiler_CXX \
16426 lt_prog_compiler_no_builtin_flag_CXX \
16427 lt_prog_compiler_pic_CXX \
16428 lt_prog_compiler_wl_CXX \
16429 lt_prog_compiler_static_CXX \
16430 lt_cv_prog_compiler_c_o_CXX \
16431 export_dynamic_flag_spec_CXX \
16432 whole_archive_flag_spec_CXX \
16433 compiler_needs_object_CXX \
16434 with_gnu_ld_CXX \
16435 allow_undefined_flag_CXX \
16436 no_undefined_flag_CXX \
16437 hardcode_libdir_flag_spec_CXX \
16438 hardcode_libdir_separator_CXX \
16439 exclude_expsyms_CXX \
16440 include_expsyms_CXX \
16441 file_list_spec_CXX \
16442 compiler_lib_search_dirs_CXX \
16443 predep_objects_CXX \
16444 postdep_objects_CXX \
16445 predeps_CXX \
16446 postdeps_CXX \
16447 compiler_lib_search_path_CXX; do
16448 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16449 *[\\\\\\\`\\"\\\$]*)
16450 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16451 ;;
16452 *)
16453 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16454 ;;
16455 esac
16456 done
16457
16458 # Double-quote double-evaled strings.
16459 for var in reload_cmds \
16460 old_postinstall_cmds \
16461 old_postuninstall_cmds \
16462 old_archive_cmds \
16463 extract_expsyms_cmds \
16464 old_archive_from_new_cmds \
16465 old_archive_from_expsyms_cmds \
16466 archive_cmds \
16467 archive_expsym_cmds \
16468 module_cmds \
16469 module_expsym_cmds \
16470 export_symbols_cmds \
16471 prelink_cmds \
16472 postlink_cmds \
16473 postinstall_cmds \
16474 postuninstall_cmds \
16475 finish_cmds \
16476 sys_lib_search_path_spec \
16477 sys_lib_dlsearch_path_spec \
16478 reload_cmds_CXX \
16479 old_archive_cmds_CXX \
16480 old_archive_from_new_cmds_CXX \
16481 old_archive_from_expsyms_cmds_CXX \
16482 archive_cmds_CXX \
16483 archive_expsym_cmds_CXX \
16484 module_cmds_CXX \
16485 module_expsym_cmds_CXX \
16486 export_symbols_cmds_CXX \
16487 prelink_cmds_CXX \
16488 postlink_cmds_CXX; do
16489 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16490 *[\\\\\\\`\\"\\\$]*)
16491 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16492 ;;
16493 *)
16494 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16495 ;;
16496 esac
16497 done
16498
16499 ac_aux_dir='$ac_aux_dir'
16500 xsi_shell='$xsi_shell'
16501 lt_shell_append='$lt_shell_append'
16502
16503 # See if we are running on zsh, and set the options which allow our
16504 # commands through without removal of \ escapes INIT.
16505 if test -n "\${ZSH_VERSION+set}" ; then
16506 setopt NO_GLOB_SUBST
16507 fi
16508
16509
16510 PACKAGE='$PACKAGE'
16511 VERSION='$VERSION'
16512 TIMESTAMP='$TIMESTAMP'
16513 RM='$RM'
16514 ofile='$ofile'
16515
16516
16517
16518
16519
16520
16521 _ACEOF
16522
16523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16524
16525 # Handling of arguments.
16526 for ac_config_target in $ac_config_targets
16527 do
16528 case $ac_config_target in
16529 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
16530 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16531 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16532 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16533 "libsbsms.spec") CONFIG_FILES="$CONFIG_FILES libsbsms.spec" ;;
16534 "sbsms.pc") CONFIG_FILES="$CONFIG_FILES sbsms.pc" ;;
16535
16536 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16537 esac
16538 done
16539
16540
16541 # If the user did not use the arguments to specify the items to instantiate,
16542 # then the envvar interface is used. Set only those that are not.
16543 # We use the long form for the default assignment because of an extremely
16544 # bizarre bug on SunOS 4.1.3.
16545 if $ac_need_defaults; then
16546 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16547 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16548 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16549 fi
16550
16551 # Have a temporary directory for convenience. Make it in the build tree
16552 # simply because there is no reason against having it here, and in addition,
16553 # creating and moving files from /tmp can sometimes cause problems.
16554 # Hook for its removal unless debugging.
16555 # Note that there is a small window in which the directory will not be cleaned:
16556 # after its creation but before its name has been assigned to `$tmp'.
16557 $debug ||
16558 {
16559 tmp= ac_tmp=
16560 trap 'exit_status=$?
16561 : "${ac_tmp:=$tmp}"
16562 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16563 ' 0
16564 trap 'as_fn_exit 1' 1 2 13 15
16565 }
16566 # Create a (secure) tmp directory for tmp files.
16567
16568 {
16569 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16570 test -d "$tmp"
16571 } ||
16572 {
16573 tmp=./conf$$-$RANDOM
16574 (umask 077 && mkdir "$tmp")
16575 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16576 ac_tmp=$tmp
16577
16578 # Set up the scripts for CONFIG_FILES section.
16579 # No need to generate them if there are no CONFIG_FILES.
16580 # This happens for instance with `./config.status config.h'.
16581 if test -n "$CONFIG_FILES"; then
16582
16583
16584 ac_cr=`echo X | tr X '\015'`
16585 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16586 # But we know of no other shell where ac_cr would be empty at this
16587 # point, so we can use a bashism as a fallback.
16588 if test "x$ac_cr" = x; then
16589 eval ac_cr=\$\'\\r\'
16590 fi
16591 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16592 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16593 ac_cs_awk_cr='\\r'
16594 else
16595 ac_cs_awk_cr=$ac_cr
16596 fi
16597
16598 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16599 _ACEOF
16600
16601
16602 {
16603 echo "cat >conf$$subs.awk <<_ACEOF" &&
16604 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16605 echo "_ACEOF"
16606 } >conf$$subs.sh ||
16607 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16608 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16609 ac_delim='%!_!# '
16610 for ac_last_try in false false false false false :; do
16611 . ./conf$$subs.sh ||
16612 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16613
16614 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16615 if test $ac_delim_n = $ac_delim_num; then
16616 break
16617 elif $ac_last_try; then
16618 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16619 else
16620 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16621 fi
16622 done
16623 rm -f conf$$subs.sh
16624
16625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16626 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16627 _ACEOF
16628 sed -n '
16629 h
16630 s/^/S["/; s/!.*/"]=/
16631 p
16632 g
16633 s/^[^!]*!//
16634 :repl
16635 t repl
16636 s/'"$ac_delim"'$//
16637 t delim
16638 :nl
16639 h
16640 s/\(.\{148\}\)..*/\1/
16641 t more1
16642 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16643 p
16644 n
16645 b repl
16646 :more1
16647 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16648 p
16649 g
16650 s/.\{148\}//
16651 t nl
16652 :delim
16653 h
16654 s/\(.\{148\}\)..*/\1/
16655 t more2
16656 s/["\\]/\\&/g; s/^/"/; s/$/"/
16657 p
16658 b
16659 :more2
16660 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16661 p
16662 g
16663 s/.\{148\}//
16664 t delim
16665 ' <conf$$subs.awk | sed '
16666 /^[^""]/{
16667 N
16668 s/\n//
16669 }
16670 ' >>$CONFIG_STATUS || ac_write_fail=1
16671 rm -f conf$$subs.awk
16672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16673 _ACAWK
16674 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16675 for (key in S) S_is_set[key] = 1
16676 FS = ""
16677
16678 }
16679 {
16680 line = $ 0
16681 nfields = split(line, field, "@")
16682 substed = 0
16683 len = length(field[1])
16684 for (i = 2; i < nfields; i++) {
16685 key = field[i]
16686 keylen = length(key)
16687 if (S_is_set[key]) {
16688 value = S[key]
16689 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16690 len += length(value) + length(field[++i])
16691 substed = 1
16692 } else
16693 len += 1 + keylen
16694 }
16695
16696 print line
16697 }
16698
16699 _ACAWK
16700 _ACEOF
16701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16702 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16703 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16704 else
16705 cat
16706 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16707 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16708 _ACEOF
16709
16710 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16711 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16712 # trailing colons and then remove the whole line if VPATH becomes empty
16713 # (actually we leave an empty line to preserve line numbers).
16714 if test "x$srcdir" = x.; then
16715 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16716 h
16717 s///
16718 s/^/:/
16719 s/[ ]*$/:/
16720 s/:\$(srcdir):/:/g
16721 s/:\${srcdir}:/:/g
16722 s/:@srcdir@:/:/g
16723 s/^:*//
16724 s/:*$//
16725 x
16726 s/\(=[ ]*\).*/\1/
16727 G
16728 s/\n//
16729 s/^[^=]*=[ ]*$//
16730 }'
16731 fi
16732
16733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16734 fi # test -n "$CONFIG_FILES"
16735
16736 # Set up the scripts for CONFIG_HEADERS section.
16737 # No need to generate them if there are no CONFIG_HEADERS.
16738 # This happens for instance with `./config.status Makefile'.
16739 if test -n "$CONFIG_HEADERS"; then
16740 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16741 BEGIN {
16742 _ACEOF
16743
16744 # Transform confdefs.h into an awk script `defines.awk', embedded as
16745 # here-document in config.status, that substitutes the proper values into
16746 # config.h.in to produce config.h.
16747
16748 # Create a delimiter string that does not exist in confdefs.h, to ease
16749 # handling of long lines.
16750 ac_delim='%!_!# '
16751 for ac_last_try in false false :; do
16752 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16753 if test -z "$ac_tt"; then
16754 break
16755 elif $ac_last_try; then
16756 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16757 else
16758 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16759 fi
16760 done
16761
16762 # For the awk script, D is an array of macro values keyed by name,
16763 # likewise P contains macro parameters if any. Preserve backslash
16764 # newline sequences.
16765
16766 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16767 sed -n '
16768 s/.\{148\}/&'"$ac_delim"'/g
16769 t rset
16770 :rset
16771 s/^[ ]*#[ ]*define[ ][ ]*/ /
16772 t def
16773 d
16774 :def
16775 s/\\$//
16776 t bsnl
16777 s/["\\]/\\&/g
16778 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16779 D["\1"]=" \3"/p
16780 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16781 d
16782 :bsnl
16783 s/["\\]/\\&/g
16784 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16785 D["\1"]=" \3\\\\\\n"\\/p
16786 t cont
16787 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16788 t cont
16789 d
16790 :cont
16791 n
16792 s/.\{148\}/&'"$ac_delim"'/g
16793 t clear
16794 :clear
16795 s/\\$//
16796 t bsnlc
16797 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16798 d
16799 :bsnlc
16800 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16801 b cont
16802 ' <confdefs.h | sed '
16803 s/'"$ac_delim"'/"\\\
16804 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16805
16806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16807 for (key in D) D_is_set[key] = 1
16808 FS = ""
16809 }
16810 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16811 line = \$ 0
16812 split(line, arg, " ")
16813 if (arg[1] == "#") {
16814 defundef = arg[2]
16815 mac1 = arg[3]
16816 } else {
16817 defundef = substr(arg[1], 2)
16818 mac1 = arg[2]
16819 }
16820 split(mac1, mac2, "(") #)
16821 macro = mac2[1]
16822 prefix = substr(line, 1, index(line, defundef) - 1)
16823 if (D_is_set[macro]) {
16824 # Preserve the white space surrounding the "#".
16825 print prefix "define", macro P[macro] D[macro]
16826 next
16827 } else {
16828 # Replace #undef with comments. This is necessary, for example,
16829 # in the case of _POSIX_SOURCE, which is predefined and required
16830 # on some systems where configure will not decide to define it.
16831 if (defundef == "undef") {
16832 print "/*", prefix defundef, macro, "*/"
16833 next
16834 }
16835 }
16836 }
16837 { print }
16838 _ACAWK
16839 _ACEOF
16840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16841 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16842 fi # test -n "$CONFIG_HEADERS"
16843
16844
16845 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16846 shift
16847 for ac_tag
16848 do
16849 case $ac_tag in
16850 :[FHLC]) ac_mode=$ac_tag; continue;;
16851 esac
16852 case $ac_mode$ac_tag in
16853 :[FHL]*:*);;
16854 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16855 :[FH]-) ac_tag=-:-;;
16856 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16857 esac
16858 ac_save_IFS=$IFS
16859 IFS=:
16860 set x $ac_tag
16861 IFS=$ac_save_IFS
16862 shift
16863 ac_file=$1
16864 shift
16865
16866 case $ac_mode in
16867 :L) ac_source=$1;;
16868 :[FH])
16869 ac_file_inputs=
16870 for ac_f
16871 do
16872 case $ac_f in
16873 -) ac_f="$ac_tmp/stdin";;
16874 *) # Look for the file first in the build tree, then in the source tree
16875 # (if the path is not absolute). The absolute path cannot be DOS-style,
16876 # because $ac_f cannot contain `:'.
16877 test -f "$ac_f" ||
16878 case $ac_f in
16879 [\\/$]*) false;;
16880 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16881 esac ||
16882 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16883 esac
16884 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16885 as_fn_append ac_file_inputs " '$ac_f'"
16886 done
16887
16888 # Let's still pretend it is `configure' which instantiates (i.e., don't
16889 # use $as_me), people would be surprised to read:
16890 # /* config.h. Generated by config.status. */
16891 configure_input='Generated from '`
16892 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16893 `' by configure.'
16894 if test x"$ac_file" != x-; then
16895 configure_input="$ac_file. $configure_input"
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16897 $as_echo "$as_me: creating $ac_file" >&6;}
16898 fi
16899 # Neutralize special characters interpreted by sed in replacement strings.
16900 case $configure_input in #(
16901 *\&* | *\|* | *\\* )
16902 ac_sed_conf_input=`$as_echo "$configure_input" |
16903 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16904 *) ac_sed_conf_input=$configure_input;;
16905 esac
16906
16907 case $ac_tag in
16908 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16909 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16910 esac
16911 ;;
16912 esac
16913
16914 ac_dir=`$as_dirname -- "$ac_file" ||
16915 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16916 X"$ac_file" : 'X\(//\)[^/]' \| \
16917 X"$ac_file" : 'X\(//\)$' \| \
16918 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16919 $as_echo X"$ac_file" |
16920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16921 s//\1/
16922 q
16923 }
16924 /^X\(\/\/\)[^/].*/{
16925 s//\1/
16926 q
16927 }
16928 /^X\(\/\/\)$/{
16929 s//\1/
16930 q
16931 }
16932 /^X\(\/\).*/{
16933 s//\1/
16934 q
16935 }
16936 s/.*/./; q'`
16937 as_dir="$ac_dir"; as_fn_mkdir_p
16938 ac_builddir=.
16939
16940 case "$ac_dir" in
16941 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16942 *)
16943 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16944 # A ".." for each directory in $ac_dir_suffix.
16945 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16946 case $ac_top_builddir_sub in
16947 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16948 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16949 esac ;;
16950 esac
16951 ac_abs_top_builddir=$ac_pwd
16952 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16953 # for backward compatibility:
16954 ac_top_builddir=$ac_top_build_prefix
16955
16956 case $srcdir in
16957 .) # We are building in place.
16958 ac_srcdir=.
16959 ac_top_srcdir=$ac_top_builddir_sub
16960 ac_abs_top_srcdir=$ac_pwd ;;
16961 [\\/]* | ?:[\\/]* ) # Absolute name.
16962 ac_srcdir=$srcdir$ac_dir_suffix;
16963 ac_top_srcdir=$srcdir
16964 ac_abs_top_srcdir=$srcdir ;;
16965 *) # Relative name.
16966 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16967 ac_top_srcdir=$ac_top_build_prefix$srcdir
16968 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16969 esac
16970 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16971
16972
16973 case $ac_mode in
16974 :F)
16975 #
16976 # CONFIG_FILE
16977 #
16978
16979 case $INSTALL in
16980 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16981 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16982 esac
16983 ac_MKDIR_P=$MKDIR_P
16984 case $MKDIR_P in
16985 [\\/$]* | ?:[\\/]* ) ;;
16986 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16987 esac
16988 _ACEOF
16989
16990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16991 # If the template does not know about datarootdir, expand it.
16992 # FIXME: This hack should be removed a few years after 2.60.
16993 ac_datarootdir_hack=; ac_datarootdir_seen=
16994 ac_sed_dataroot='
16995 /datarootdir/ {
16996 p
16997 q
16998 }
16999 /@datadir@/p
17000 /@docdir@/p
17001 /@infodir@/p
17002 /@localedir@/p
17003 /@mandir@/p'
17004 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17005 *datarootdir*) ac_datarootdir_seen=yes;;
17006 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17008 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17009 _ACEOF
17010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17011 ac_datarootdir_hack='
17012 s&@datadir@&$datadir&g
17013 s&@docdir@&$docdir&g
17014 s&@infodir@&$infodir&g
17015 s&@localedir@&$localedir&g
17016 s&@mandir@&$mandir&g
17017 s&\\\${datarootdir}&$datarootdir&g' ;;
17018 esac
17019 _ACEOF
17020
17021 # Neutralize VPATH when `$srcdir' = `.'.
17022 # Shell code in configure.ac might set extrasub.
17023 # FIXME: do we really want to maintain this feature?
17024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17025 ac_sed_extra="$ac_vpsub
17026 $extrasub
17027 _ACEOF
17028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17029 :t
17030 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17031 s|@configure_input@|$ac_sed_conf_input|;t t
17032 s&@top_builddir@&$ac_top_builddir_sub&;t t
17033 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17034 s&@srcdir@&$ac_srcdir&;t t
17035 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17036 s&@top_srcdir@&$ac_top_srcdir&;t t
17037 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17038 s&@builddir@&$ac_builddir&;t t
17039 s&@abs_builddir@&$ac_abs_builddir&;t t
17040 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17041 s&@INSTALL@&$ac_INSTALL&;t t
17042 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17043 $ac_datarootdir_hack
17044 "
17045 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17046 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17047
17048 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17049 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17050 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17051 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17053 which seems to be undefined. Please make sure it is defined" >&5
17054 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17055 which seems to be undefined. Please make sure it is defined" >&2;}
17056
17057 rm -f "$ac_tmp/stdin"
17058 case $ac_file in
17059 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17060 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17061 esac \
17062 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17063 ;;
17064 :H)
17065 #
17066 # CONFIG_HEADER
17067 #
17068 if test x"$ac_file" != x-; then
17069 {
17070 $as_echo "/* $configure_input */" \
17071 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17072 } >"$ac_tmp/config.h" \
17073 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17074 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17076 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17077 else
17078 rm -f "$ac_file"
17079 mv "$ac_tmp/config.h" "$ac_file" \
17080 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17081 fi
17082 else
17083 $as_echo "/* $configure_input */" \
17084 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17085 || as_fn_error $? "could not create -" "$LINENO" 5
17086 fi
17087 # Compute "$ac_file"'s index in $config_headers.
17088 _am_arg="$ac_file"
17089 _am_stamp_count=1
17090 for _am_header in $config_headers :; do
17091 case $_am_header in
17092 $_am_arg | $_am_arg:* )
17093 break ;;
17094 * )
17095 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17096 esac
17097 done
17098 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17099 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17100 X"$_am_arg" : 'X\(//\)[^/]' \| \
17101 X"$_am_arg" : 'X\(//\)$' \| \
17102 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17103 $as_echo X"$_am_arg" |
17104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17105 s//\1/
17106 q
17107 }
17108 /^X\(\/\/\)[^/].*/{
17109 s//\1/
17110 q
17111 }
17112 /^X\(\/\/\)$/{
17113 s//\1/
17114 q
17115 }
17116 /^X\(\/\).*/{
17117 s//\1/
17118 q
17119 }
17120 s/.*/./; q'`/stamp-h$_am_stamp_count
17121 ;;
17122
17123 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17124 $as_echo "$as_me: executing $ac_file commands" >&6;}
17125 ;;
17126 esac
17127
17128
17129 case $ac_file$ac_mode in
17130 "libtool":C)
17131
17132 # See if we are running on zsh, and set the options which allow our
17133 # commands through without removal of \ escapes.
17134 if test -n "${ZSH_VERSION+set}" ; then
17135 setopt NO_GLOB_SUBST
17136 fi
17137
17138 cfgfile="${ofile}T"
17139 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17140 $RM "$cfgfile"
17141
17142 cat <<_LT_EOF >> "$cfgfile"
17143 #! $SHELL
17144
17145 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17146 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17147 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17148 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17149 #
17150 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17151 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17152 # Foundation, Inc.
17153 # Written by Gordon Matzigkeit, 1996
17154 #
17155 # This file is part of GNU Libtool.
17156 #
17157 # GNU Libtool is free software; you can redistribute it and/or
17158 # modify it under the terms of the GNU General Public License as
17159 # published by the Free Software Foundation; either version 2 of
17160 # the License, or (at your option) any later version.
17161 #
17162 # As a special exception to the GNU General Public License,
17163 # if you distribute this file as part of a program or library that
17164 # is built using GNU Libtool, you may include this file under the
17165 # same distribution terms that you use for the rest of that program.
17166 #
17167 # GNU Libtool is distributed in the hope that it will be useful,
17168 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17169 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17170 # GNU General Public License for more details.
17171 #
17172 # You should have received a copy of the GNU General Public License
17173 # along with GNU Libtool; see the file COPYING. If not, a copy
17174 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17175 # obtained by writing to the Free Software Foundation, Inc.,
17176 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17177
17178
17179 # The names of the tagged configurations supported by this script.
17180 available_tags="CXX "
17181
17182 # ### BEGIN LIBTOOL CONFIG
17183
17184 # Whether or not to build shared libraries.
17185 build_libtool_libs=$enable_shared
17186
17187 # Which release of libtool.m4 was used?
17188 macro_version=$macro_version
17189 macro_revision=$macro_revision
17190
17191 # Whether or not to build static libraries.
17192 build_old_libs=$enable_static
17193
17194 # What type of objects to build.
17195 pic_mode=$pic_mode
17196
17197 # Whether or not to optimize for fast installation.
17198 fast_install=$enable_fast_install
17199
17200 # Shell to use when invoking shell scripts.
17201 SHELL=$lt_SHELL
17202
17203 # An echo program that protects backslashes.
17204 ECHO=$lt_ECHO
17205
17206 # The PATH separator for the build system.
17207 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17208
17209 # The host system.
17210 host_alias=$host_alias
17211 host=$host
17212 host_os=$host_os
17213
17214 # The build system.
17215 build_alias=$build_alias
17216 build=$build
17217 build_os=$build_os
17218
17219 # A sed program that does not truncate output.
17220 SED=$lt_SED
17221
17222 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17223 Xsed="\$SED -e 1s/^X//"
17224
17225 # A grep program that handles long lines.
17226 GREP=$lt_GREP
17227
17228 # An ERE matcher.
17229 EGREP=$lt_EGREP
17230
17231 # A literal string matcher.
17232 FGREP=$lt_FGREP
17233
17234 # A BSD- or MS-compatible name lister.
17235 NM=$lt_NM
17236
17237 # Whether we need soft or hard links.
17238 LN_S=$lt_LN_S
17239
17240 # What is the maximum length of a command?
17241 max_cmd_len=$max_cmd_len
17242
17243 # Object file suffix (normally "o").
17244 objext=$ac_objext
17245
17246 # Executable file suffix (normally "").
17247 exeext=$exeext
17248
17249 # whether the shell understands "unset".
17250 lt_unset=$lt_unset
17251
17252 # turn spaces into newlines.
17253 SP2NL=$lt_lt_SP2NL
17254
17255 # turn newlines into spaces.
17256 NL2SP=$lt_lt_NL2SP
17257
17258 # convert \$build file names to \$host format.
17259 to_host_file_cmd=$lt_cv_to_host_file_cmd
17260
17261 # convert \$build files to toolchain format.
17262 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17263
17264 # An object symbol dumper.
17265 OBJDUMP=$lt_OBJDUMP
17266
17267 # Method to check whether dependent libraries are shared objects.
17268 deplibs_check_method=$lt_deplibs_check_method
17269
17270 # Command to use when deplibs_check_method = "file_magic".
17271 file_magic_cmd=$lt_file_magic_cmd
17272
17273 # How to find potential files when deplibs_check_method = "file_magic".
17274 file_magic_glob=$lt_file_magic_glob
17275
17276 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17277 want_nocaseglob=$lt_want_nocaseglob
17278
17279 # DLL creation program.
17280 DLLTOOL=$lt_DLLTOOL
17281
17282 # Command to associate shared and link libraries.
17283 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17284
17285 # The archiver.
17286 AR=$lt_AR
17287
17288 # Flags to create an archive.
17289 AR_FLAGS=$lt_AR_FLAGS
17290
17291 # How to feed a file listing to the archiver.
17292 archiver_list_spec=$lt_archiver_list_spec
17293
17294 # A symbol stripping program.
17295 STRIP=$lt_STRIP
17296
17297 # Commands used to install an old-style archive.
17298 RANLIB=$lt_RANLIB
17299 old_postinstall_cmds=$lt_old_postinstall_cmds
17300 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17301
17302 # Whether to use a lock for old archive extraction.
17303 lock_old_archive_extraction=$lock_old_archive_extraction
17304
17305 # A C compiler.
17306 LTCC=$lt_CC
17307
17308 # LTCC compiler flags.
17309 LTCFLAGS=$lt_CFLAGS
17310
17311 # Take the output of nm and produce a listing of raw symbols and C names.
17312 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17313
17314 # Transform the output of nm in a proper C declaration.
17315 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17316
17317 # Transform the output of nm in a C name address pair.
17318 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17319
17320 # Transform the output of nm in a C name address pair when lib prefix is needed.
17321 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17322
17323 # Specify filename containing input files for \$NM.
17324 nm_file_list_spec=$lt_nm_file_list_spec
17325
17326 # The root where to search for dependent libraries,and in which our libraries should be installed.
17327 lt_sysroot=$lt_sysroot
17328
17329 # The name of the directory that contains temporary libtool files.
17330 objdir=$objdir
17331
17332 # Used to examine libraries when file_magic_cmd begins with "file".
17333 MAGIC_CMD=$MAGIC_CMD
17334
17335 # Must we lock files when doing compilation?
17336 need_locks=$lt_need_locks
17337
17338 # Manifest tool.
17339 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17340
17341 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17342 DSYMUTIL=$lt_DSYMUTIL
17343
17344 # Tool to change global to local symbols on Mac OS X.
17345 NMEDIT=$lt_NMEDIT
17346
17347 # Tool to manipulate fat objects and archives on Mac OS X.
17348 LIPO=$lt_LIPO
17349
17350 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17351 OTOOL=$lt_OTOOL
17352
17353 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17354 OTOOL64=$lt_OTOOL64
17355
17356 # Old archive suffix (normally "a").
17357 libext=$libext
17358
17359 # Shared library suffix (normally ".so").
17360 shrext_cmds=$lt_shrext_cmds
17361
17362 # The commands to extract the exported symbol list from a shared archive.
17363 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17364
17365 # Variables whose values should be saved in libtool wrapper scripts and
17366 # restored at link time.
17367 variables_saved_for_relink=$lt_variables_saved_for_relink
17368
17369 # Do we need the "lib" prefix for modules?
17370 need_lib_prefix=$need_lib_prefix
17371
17372 # Do we need a version for libraries?
17373 need_version=$need_version
17374
17375 # Library versioning type.
17376 version_type=$version_type
17377
17378 # Shared library runtime path variable.
17379 runpath_var=$runpath_var
17380
17381 # Shared library path variable.
17382 shlibpath_var=$shlibpath_var
17383
17384 # Is shlibpath searched before the hard-coded library search path?
17385 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17386
17387 # Format of library name prefix.
17388 libname_spec=$lt_libname_spec
17389
17390 # List of archive names. First name is the real one, the rest are links.
17391 # The last name is the one that the linker finds with -lNAME
17392 library_names_spec=$lt_library_names_spec
17393
17394 # The coded name of the library, if different from the real name.
17395 soname_spec=$lt_soname_spec
17396
17397 # Permission mode override for installation of shared libraries.
17398 install_override_mode=$lt_install_override_mode
17399
17400 # Command to use after installation of a shared archive.
17401 postinstall_cmds=$lt_postinstall_cmds
17402
17403 # Command to use after uninstallation of a shared archive.
17404 postuninstall_cmds=$lt_postuninstall_cmds
17405
17406 # Commands used to finish a libtool library installation in a directory.
17407 finish_cmds=$lt_finish_cmds
17408
17409 # As "finish_cmds", except a single script fragment to be evaled but
17410 # not shown.
17411 finish_eval=$lt_finish_eval
17412
17413 # Whether we should hardcode library paths into libraries.
17414 hardcode_into_libs=$hardcode_into_libs
17415
17416 # Compile-time system search path for libraries.
17417 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17418
17419 # Run-time system search path for libraries.
17420 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17421
17422 # Whether dlopen is supported.
17423 dlopen_support=$enable_dlopen
17424
17425 # Whether dlopen of programs is supported.
17426 dlopen_self=$enable_dlopen_self
17427
17428 # Whether dlopen of statically linked programs is supported.
17429 dlopen_self_static=$enable_dlopen_self_static
17430
17431 # Commands to strip libraries.
17432 old_striplib=$lt_old_striplib
17433 striplib=$lt_striplib
17434
17435
17436 # The linker used to build libraries.
17437 LD=$lt_LD
17438
17439 # How to create reloadable object files.
17440 reload_flag=$lt_reload_flag
17441 reload_cmds=$lt_reload_cmds
17442
17443 # Commands used to build an old-style archive.
17444 old_archive_cmds=$lt_old_archive_cmds
17445
17446 # A language specific compiler.
17447 CC=$lt_compiler
17448
17449 # Is the compiler the GNU compiler?
17450 with_gcc=$GCC
17451
17452 # Compiler flag to turn off builtin functions.
17453 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17454
17455 # Additional compiler flags for building library objects.
17456 pic_flag=$lt_lt_prog_compiler_pic
17457
17458 # How to pass a linker flag through the compiler.
17459 wl=$lt_lt_prog_compiler_wl
17460
17461 # Compiler flag to prevent dynamic linking.
17462 link_static_flag=$lt_lt_prog_compiler_static
17463
17464 # Does compiler simultaneously support -c and -o options?
17465 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17466
17467 # Whether or not to add -lc for building shared libraries.
17468 build_libtool_need_lc=$archive_cmds_need_lc
17469
17470 # Whether or not to disallow shared libs when runtime libs are static.
17471 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17472
17473 # Compiler flag to allow reflexive dlopens.
17474 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17475
17476 # Compiler flag to generate shared objects directly from archives.
17477 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17478
17479 # Whether the compiler copes with passing no objects directly.
17480 compiler_needs_object=$lt_compiler_needs_object
17481
17482 # Create an old-style archive from a shared archive.
17483 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17484
17485 # Create a temporary old-style archive to link instead of a shared archive.
17486 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17487
17488 # Commands used to build a shared archive.
17489 archive_cmds=$lt_archive_cmds
17490 archive_expsym_cmds=$lt_archive_expsym_cmds
17491
17492 # Commands used to build a loadable module if different from building
17493 # a shared archive.
17494 module_cmds=$lt_module_cmds
17495 module_expsym_cmds=$lt_module_expsym_cmds
17496
17497 # Whether we are building with GNU ld or not.
17498 with_gnu_ld=$lt_with_gnu_ld
17499
17500 # Flag that allows shared libraries with undefined symbols to be built.
17501 allow_undefined_flag=$lt_allow_undefined_flag
17502
17503 # Flag that enforces no undefined symbols.
17504 no_undefined_flag=$lt_no_undefined_flag
17505
17506 # Flag to hardcode \$libdir into a binary during linking.
17507 # This must work even if \$libdir does not exist
17508 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17509
17510 # Whether we need a single "-rpath" flag with a separated argument.
17511 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17512
17513 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17514 # DIR into the resulting binary.
17515 hardcode_direct=$hardcode_direct
17516
17517 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17518 # DIR into the resulting binary and the resulting library dependency is
17519 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17520 # library is relocated.
17521 hardcode_direct_absolute=$hardcode_direct_absolute
17522
17523 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17524 # into the resulting binary.
17525 hardcode_minus_L=$hardcode_minus_L
17526
17527 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17528 # into the resulting binary.
17529 hardcode_shlibpath_var=$hardcode_shlibpath_var
17530
17531 # Set to "yes" if building a shared library automatically hardcodes DIR
17532 # into the library and all subsequent libraries and executables linked
17533 # against it.
17534 hardcode_automatic=$hardcode_automatic
17535
17536 # Set to yes if linker adds runtime paths of dependent libraries
17537 # to runtime path list.
17538 inherit_rpath=$inherit_rpath
17539
17540 # Whether libtool must link a program against all its dependency libraries.
17541 link_all_deplibs=$link_all_deplibs
17542
17543 # Set to "yes" if exported symbols are required.
17544 always_export_symbols=$always_export_symbols
17545
17546 # The commands to list exported symbols.
17547 export_symbols_cmds=$lt_export_symbols_cmds
17548
17549 # Symbols that should not be listed in the preloaded symbols.
17550 exclude_expsyms=$lt_exclude_expsyms
17551
17552 # Symbols that must always be exported.
17553 include_expsyms=$lt_include_expsyms
17554
17555 # Commands necessary for linking programs (against libraries) with templates.
17556 prelink_cmds=$lt_prelink_cmds
17557
17558 # Commands necessary for finishing linking programs.
17559 postlink_cmds=$lt_postlink_cmds
17560
17561 # Specify filename containing input files.
17562 file_list_spec=$lt_file_list_spec
17563
17564 # How to hardcode a shared library path into an executable.
17565 hardcode_action=$hardcode_action
17566
17567 # The directories searched by this compiler when creating a shared library.
17568 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17569
17570 # Dependencies to place before and after the objects being linked to
17571 # create a shared library.
17572 predep_objects=$lt_predep_objects
17573 postdep_objects=$lt_postdep_objects
17574 predeps=$lt_predeps
17575 postdeps=$lt_postdeps
17576
17577 # The library search path used internally by the compiler when linking
17578 # a shared library.
17579 compiler_lib_search_path=$lt_compiler_lib_search_path
17580
17581 # ### END LIBTOOL CONFIG
17582
17583 _LT_EOF
17584
17585 case $host_os in
17586 aix3*)
17587 cat <<\_LT_EOF >> "$cfgfile"
17588 # AIX sometimes has problems with the GCC collect2 program. For some
17589 # reason, if we set the COLLECT_NAMES environment variable, the problems
17590 # vanish in a puff of smoke.
17591 if test "X${COLLECT_NAMES+set}" != Xset; then
17592 COLLECT_NAMES=
17593 export COLLECT_NAMES
17594 fi
17595 _LT_EOF
17596 ;;
17597 esac
17598
17599
17600 ltmain="$ac_aux_dir/ltmain.sh"
17601
17602
17603 # We use sed instead of cat because bash on DJGPP gets confused if
17604 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17605 # text mode, it properly converts lines to CR/LF. This bash problem
17606 # is reportedly fixed, but why not run on old versions too?
17607 sed '$q' "$ltmain" >> "$cfgfile" \
17608 || (rm -f "$cfgfile"; exit 1)
17609
17610 if test x"$xsi_shell" = xyes; then
17611 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17612 func_dirname ()\
17613 {\
17614 \ case ${1} in\
17615 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17616 \ * ) func_dirname_result="${3}" ;;\
17617 \ esac\
17618 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17619 && mv -f "$cfgfile.tmp" "$cfgfile" \
17620 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17621 test 0 -eq $? || _lt_function_replace_fail=:
17622
17623
17624 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17625 func_basename ()\
17626 {\
17627 \ func_basename_result="${1##*/}"\
17628 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17629 && mv -f "$cfgfile.tmp" "$cfgfile" \
17630 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17631 test 0 -eq $? || _lt_function_replace_fail=:
17632
17633
17634 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17635 func_dirname_and_basename ()\
17636 {\
17637 \ case ${1} in\
17638 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17639 \ * ) func_dirname_result="${3}" ;;\
17640 \ esac\
17641 \ func_basename_result="${1##*/}"\
17642 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17643 && mv -f "$cfgfile.tmp" "$cfgfile" \
17644 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17645 test 0 -eq $? || _lt_function_replace_fail=:
17646
17647
17648 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17649 func_stripname ()\
17650 {\
17651 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17652 \ # positional parameters, so assign one to ordinary parameter first.\
17653 \ func_stripname_result=${3}\
17654 \ func_stripname_result=${func_stripname_result#"${1}"}\
17655 \ func_stripname_result=${func_stripname_result%"${2}"}\
17656 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17657 && mv -f "$cfgfile.tmp" "$cfgfile" \
17658 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17659 test 0 -eq $? || _lt_function_replace_fail=:
17660
17661
17662 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17663 func_split_long_opt ()\
17664 {\
17665 \ func_split_long_opt_name=${1%%=*}\
17666 \ func_split_long_opt_arg=${1#*=}\
17667 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17668 && mv -f "$cfgfile.tmp" "$cfgfile" \
17669 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17670 test 0 -eq $? || _lt_function_replace_fail=:
17671
17672
17673 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17674 func_split_short_opt ()\
17675 {\
17676 \ func_split_short_opt_arg=${1#??}\
17677 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17678 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17679 && mv -f "$cfgfile.tmp" "$cfgfile" \
17680 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17681 test 0 -eq $? || _lt_function_replace_fail=:
17682
17683
17684 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17685 func_lo2o ()\
17686 {\
17687 \ case ${1} in\
17688 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17689 \ *) func_lo2o_result=${1} ;;\
17690 \ esac\
17691 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17692 && mv -f "$cfgfile.tmp" "$cfgfile" \
17693 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17694 test 0 -eq $? || _lt_function_replace_fail=:
17695
17696
17697 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17698 func_xform ()\
17699 {\
17700 func_xform_result=${1%.*}.lo\
17701 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17702 && mv -f "$cfgfile.tmp" "$cfgfile" \
17703 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17704 test 0 -eq $? || _lt_function_replace_fail=:
17705
17706
17707 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17708 func_arith ()\
17709 {\
17710 func_arith_result=$(( $* ))\
17711 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17712 && mv -f "$cfgfile.tmp" "$cfgfile" \
17713 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17714 test 0 -eq $? || _lt_function_replace_fail=:
17715
17716
17717 sed -e '/^func_len ()$/,/^} # func_len /c\
17718 func_len ()\
17719 {\
17720 func_len_result=${#1}\
17721 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17722 && mv -f "$cfgfile.tmp" "$cfgfile" \
17723 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17724 test 0 -eq $? || _lt_function_replace_fail=:
17725
17726 fi
17727
17728 if test x"$lt_shell_append" = xyes; then
17729 sed -e '/^func_append ()$/,/^} # func_append /c\
17730 func_append ()\
17731 {\
17732 eval "${1}+=\\${2}"\
17733 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17734 && mv -f "$cfgfile.tmp" "$cfgfile" \
17735 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17736 test 0 -eq $? || _lt_function_replace_fail=:
17737
17738
17739 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17740 func_append_quoted ()\
17741 {\
17742 \ func_quote_for_eval "${2}"\
17743 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17744 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17745 && mv -f "$cfgfile.tmp" "$cfgfile" \
17746 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17747 test 0 -eq $? || _lt_function_replace_fail=:
17748
17749
17750 # Save a `func_append' function call where possible by direct use of '+='
17751 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17752 && mv -f "$cfgfile.tmp" "$cfgfile" \
17753 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17754 test 0 -eq $? || _lt_function_replace_fail=:
17755 else
17756 # Save a `func_append' function call even when '+=' is not available
17757 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17758 && mv -f "$cfgfile.tmp" "$cfgfile" \
17759 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17760 test 0 -eq $? || _lt_function_replace_fail=:
17761 fi
17762
17763 if test x"$_lt_function_replace_fail" = x":"; then
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17765 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17766 fi
17767
17768
17769 mv -f "$cfgfile" "$ofile" ||
17770 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17771 chmod +x "$ofile"
17772
17773
17774 cat <<_LT_EOF >> "$ofile"
17775
17776 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17777
17778 # The linker used to build libraries.
17779 LD=$lt_LD_CXX
17780
17781 # How to create reloadable object files.
17782 reload_flag=$lt_reload_flag_CXX
17783 reload_cmds=$lt_reload_cmds_CXX
17784
17785 # Commands used to build an old-style archive.
17786 old_archive_cmds=$lt_old_archive_cmds_CXX
17787
17788 # A language specific compiler.
17789 CC=$lt_compiler_CXX
17790
17791 # Is the compiler the GNU compiler?
17792 with_gcc=$GCC_CXX
17793
17794 # Compiler flag to turn off builtin functions.
17795 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17796
17797 # Additional compiler flags for building library objects.
17798 pic_flag=$lt_lt_prog_compiler_pic_CXX
17799
17800 # How to pass a linker flag through the compiler.
17801 wl=$lt_lt_prog_compiler_wl_CXX
17802
17803 # Compiler flag to prevent dynamic linking.
17804 link_static_flag=$lt_lt_prog_compiler_static_CXX
17805
17806 # Does compiler simultaneously support -c and -o options?
17807 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17808
17809 # Whether or not to add -lc for building shared libraries.
17810 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17811
17812 # Whether or not to disallow shared libs when runtime libs are static.
17813 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17814
17815 # Compiler flag to allow reflexive dlopens.
17816 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17817
17818 # Compiler flag to generate shared objects directly from archives.
17819 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17820
17821 # Whether the compiler copes with passing no objects directly.
17822 compiler_needs_object=$lt_compiler_needs_object_CXX
17823
17824 # Create an old-style archive from a shared archive.
17825 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17826
17827 # Create a temporary old-style archive to link instead of a shared archive.
17828 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17829
17830 # Commands used to build a shared archive.
17831 archive_cmds=$lt_archive_cmds_CXX
17832 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17833
17834 # Commands used to build a loadable module if different from building
17835 # a shared archive.
17836 module_cmds=$lt_module_cmds_CXX
17837 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17838
17839 # Whether we are building with GNU ld or not.
17840 with_gnu_ld=$lt_with_gnu_ld_CXX
17841
17842 # Flag that allows shared libraries with undefined symbols to be built.
17843 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17844
17845 # Flag that enforces no undefined symbols.
17846 no_undefined_flag=$lt_no_undefined_flag_CXX
17847
17848 # Flag to hardcode \$libdir into a binary during linking.
17849 # This must work even if \$libdir does not exist
17850 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17851
17852 # Whether we need a single "-rpath" flag with a separated argument.
17853 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17854
17855 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17856 # DIR into the resulting binary.
17857 hardcode_direct=$hardcode_direct_CXX
17858
17859 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17860 # DIR into the resulting binary and the resulting library dependency is
17861 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17862 # library is relocated.
17863 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17864
17865 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17866 # into the resulting binary.
17867 hardcode_minus_L=$hardcode_minus_L_CXX
17868
17869 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17870 # into the resulting binary.
17871 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17872
17873 # Set to "yes" if building a shared library automatically hardcodes DIR
17874 # into the library and all subsequent libraries and executables linked
17875 # against it.
17876 hardcode_automatic=$hardcode_automatic_CXX
17877
17878 # Set to yes if linker adds runtime paths of dependent libraries
17879 # to runtime path list.
17880 inherit_rpath=$inherit_rpath_CXX
17881
17882 # Whether libtool must link a program against all its dependency libraries.
17883 link_all_deplibs=$link_all_deplibs_CXX
17884
17885 # Set to "yes" if exported symbols are required.
17886 always_export_symbols=$always_export_symbols_CXX
17887
17888 # The commands to list exported symbols.
17889 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17890
17891 # Symbols that should not be listed in the preloaded symbols.
17892 exclude_expsyms=$lt_exclude_expsyms_CXX
17893
17894 # Symbols that must always be exported.
17895 include_expsyms=$lt_include_expsyms_CXX
17896
17897 # Commands necessary for linking programs (against libraries) with templates.
17898 prelink_cmds=$lt_prelink_cmds_CXX
17899
17900 # Commands necessary for finishing linking programs.
17901 postlink_cmds=$lt_postlink_cmds_CXX
17902
17903 # Specify filename containing input files.
17904 file_list_spec=$lt_file_list_spec_CXX
17905
17906 # How to hardcode a shared library path into an executable.
17907 hardcode_action=$hardcode_action_CXX
17908
17909 # The directories searched by this compiler when creating a shared library.
17910 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17911
17912 # Dependencies to place before and after the objects being linked to
17913 # create a shared library.
17914 predep_objects=$lt_predep_objects_CXX
17915 postdep_objects=$lt_postdep_objects_CXX
17916 predeps=$lt_predeps_CXX
17917 postdeps=$lt_postdeps_CXX
17918
17919 # The library search path used internally by the compiler when linking
17920 # a shared library.
17921 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17922
17923 # ### END LIBTOOL TAG CONFIG: CXX
17924 _LT_EOF
17925
17926 ;;
17927
17928 esac
17929 done # for ac_tag
17930
17931
17932 as_fn_exit 0
17933 _ACEOF
17934 ac_clean_files=$ac_clean_files_save
17935
17936 test $ac_write_fail = 0 ||
17937 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17938
17939
17940 # configure is writing to config.log, and then calls config.status.
17941 # config.status does its own redirection, appending to config.log.
17942 # Unfortunately, on DOS this fails, as config.log is still kept open
17943 # by configure, so config.status won't be able to write to it; its
17944 # output is simply discarded. So we exec the FD to /dev/null,
17945 # effectively closing config.log, so it can be properly (re)opened and
17946 # appended to by config.status. When coming back to configure, we
17947 # need to make the FD available again.
17948 if test "$no_create" != yes; then
17949 ac_cs_success=:
17950 ac_config_status_args=
17951 test "$silent" = yes &&
17952 ac_config_status_args="$ac_config_status_args --quiet"
17953 exec 5>/dev/null
17954 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17955 exec 5>>config.log
17956 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17957 # would make configure fail if this is the last instruction.
17958 $ac_cs_success || as_fn_exit 1
17959 fi
17960 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17962 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17963 fi
17964