Import Upstream version 0.66.4
[hcoop/debian/courier-authlib.git] / libs / bdbobj / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bdbobj 0.10.
4 #
5 # Report bugs to <courier-users@lists.sourceforge.net>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: courier-users@lists.sourceforge.net about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='bdbobj'
592 PACKAGE_TARNAME='bdbobj'
593 PACKAGE_VERSION='0.10'
594 PACKAGE_STRING='bdbobj 0.10'
595 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
596 PACKAGE_URL=''
597
598 ac_unique_file="bdbobj.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 FOUND_DB_FALSE
640 FOUND_DB_TRUE
641 LIBDB
642 CXXCPP
643 LT_SYS_LIBRARY_PATH
644 OTOOL64
645 OTOOL
646 LIPO
647 NMEDIT
648 DSYMUTIL
649 MANIFEST_TOOL
650 RANLIB
651 ac_ct_AR
652 AR
653 DLLTOOL
654 OBJDUMP
655 LN_S
656 NM
657 ac_ct_DUMPBIN
658 DUMPBIN
659 LD
660 FGREP
661 SED
662 host_os
663 host_vendor
664 host_cpu
665 host
666 build_os
667 build_vendor
668 build_cpu
669 build
670 LIBTOOL
671 am__fastdepCXX_FALSE
672 am__fastdepCXX_TRUE
673 CXXDEPMODE
674 ac_ct_CXX
675 CXXFLAGS
676 CXX
677 EGREP
678 GREP
679 CPP
680 am__fastdepCC_FALSE
681 am__fastdepCC_TRUE
682 CCDEPMODE
683 am__nodep
684 AMDEPBACKSLASH
685 AMDEP_FALSE
686 AMDEP_TRUE
687 am__quote
688 am__include
689 DEPDIR
690 OBJEXT
691 EXEEXT
692 ac_ct_CC
693 CPPFLAGS
694 LDFLAGS
695 CFLAGS
696 CC
697 AM_BACKSLASH
698 AM_DEFAULT_VERBOSITY
699 AM_DEFAULT_V
700 AM_V
701 am__untar
702 am__tar
703 AMTAR
704 am__leading_dot
705 SET_MAKE
706 AWK
707 mkdir_p
708 MKDIR_P
709 INSTALL_STRIP_PROGRAM
710 STRIP
711 install_sh
712 MAKEINFO
713 AUTOHEADER
714 AUTOMAKE
715 AUTOCONF
716 ACLOCAL
717 VERSION
718 PACKAGE
719 CYGPATH_W
720 am__isrc
721 INSTALL_DATA
722 INSTALL_SCRIPT
723 INSTALL_PROGRAM
724 target_alias
725 host_alias
726 build_alias
727 LIBS
728 ECHO_T
729 ECHO_N
730 ECHO_C
731 DEFS
732 mandir
733 localedir
734 libdir
735 psdir
736 pdfdir
737 dvidir
738 htmldir
739 infodir
740 docdir
741 oldincludedir
742 includedir
743 localstatedir
744 sharedstatedir
745 sysconfdir
746 datadir
747 datarootdir
748 libexecdir
749 sbindir
750 bindir
751 program_transform_name
752 prefix
753 exec_prefix
754 PACKAGE_URL
755 PACKAGE_BUGREPORT
756 PACKAGE_STRING
757 PACKAGE_VERSION
758 PACKAGE_TARNAME
759 PACKAGE_NAME
760 PATH_SEPARATOR
761 SHELL'
762 ac_subst_files=''
763 ac_user_opts='
764 enable_option_checking
765 enable_silent_rules
766 enable_dependency_tracking
767 enable_shared
768 enable_static
769 with_pic
770 enable_fast_install
771 with_aix_soname
772 with_gnu_ld
773 with_sysroot
774 enable_libtool_lock
775 enable_largefile
776 '
777 ac_precious_vars='build_alias
778 host_alias
779 target_alias
780 CC
781 CFLAGS
782 LDFLAGS
783 LIBS
784 CPPFLAGS
785 CPP
786 CXX
787 CXXFLAGS
788 CCC
789 LT_SYS_LIBRARY_PATH
790 CXXCPP'
791
792
793 # Initialize some variables set by options.
794 ac_init_help=
795 ac_init_version=false
796 ac_unrecognized_opts=
797 ac_unrecognized_sep=
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
800 cache_file=/dev/null
801 exec_prefix=NONE
802 no_create=
803 no_recursion=
804 prefix=NONE
805 program_prefix=NONE
806 program_suffix=NONE
807 program_transform_name=s,x,x,
808 silent=
809 site=
810 srcdir=
811 verbose=
812 x_includes=NONE
813 x_libraries=NONE
814
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
840
841 ac_prev=
842 ac_dashdash=
843 for ac_option
844 do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
850 fi
851
852 case $ac_option in
853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *=) ac_optarg= ;;
855 *) ac_optarg=yes ;;
856 esac
857
858 # Accept the important Cygnus configure options, so we can diagnose typos.
859
860 case $ac_dashdash$ac_option in
861 --)
862 ac_dashdash=yes ;;
863
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 ac_prev=bindir ;;
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867 bindir=$ac_optarg ;;
868
869 -build | --build | --buil | --bui | --bu)
870 ac_prev=build_alias ;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias=$ac_optarg ;;
873
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file=$ac_optarg ;;
880
881 --config-cache | -C)
882 cache_file=config.cache ;;
883
884 -datadir | --datadir | --datadi | --datad)
885 ac_prev=datadir ;;
886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
887 datadir=$ac_optarg ;;
888
889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
895
896 -disable-* | --disable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 as_fn_error $? "invalid feature name: $ac_useropt"
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
904 *"
905 "enable_$ac_useropt"
906 "*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=no ;;
911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
921
922 -enable-* | --enable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=\$ac_optarg ;;
937
938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940 | --exec | --exe | --ex)
941 ac_prev=exec_prefix ;;
942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944 | --exec=* | --exe=* | --ex=*)
945 exec_prefix=$ac_optarg ;;
946
947 -gas | --gas | --ga | --g)
948 # Obsolete; use --with-gas.
949 with_gas=yes ;;
950
951 -help | --help | --hel | --he | -h)
952 ac_init_help=long ;;
953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954 ac_init_help=recursive ;;
955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956 ac_init_help=short ;;
957
958 -host | --host | --hos | --ho)
959 ac_prev=host_alias ;;
960 -host=* | --host=* | --hos=* | --ho=*)
961 host_alias=$ac_optarg ;;
962
963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 ac_prev=htmldir ;;
965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 | --ht=*)
967 htmldir=$ac_optarg ;;
968
969 -includedir | --includedir | --includedi | --included | --include \
970 | --includ | --inclu | --incl | --inc)
971 ac_prev=includedir ;;
972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973 | --includ=* | --inclu=* | --incl=* | --inc=*)
974 includedir=$ac_optarg ;;
975
976 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 ac_prev=infodir ;;
978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979 infodir=$ac_optarg ;;
980
981 -libdir | --libdir | --libdi | --libd)
982 ac_prev=libdir ;;
983 -libdir=* | --libdir=* | --libdi=* | --libd=*)
984 libdir=$ac_optarg ;;
985
986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987 | --libexe | --libex | --libe)
988 ac_prev=libexecdir ;;
989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990 | --libexe=* | --libex=* | --libe=*)
991 libexecdir=$ac_optarg ;;
992
993 -localedir | --localedir | --localedi | --localed | --locale)
994 ac_prev=localedir ;;
995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996 localedir=$ac_optarg ;;
997
998 -localstatedir | --localstatedir | --localstatedi | --localstated \
999 | --localstate | --localstat | --localsta | --localst | --locals)
1000 ac_prev=localstatedir ;;
1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003 localstatedir=$ac_optarg ;;
1004
1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 ac_prev=mandir ;;
1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008 mandir=$ac_optarg ;;
1009
1010 -nfp | --nfp | --nf)
1011 # Obsolete; use --without-fp.
1012 with_fp=no ;;
1013
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n)
1016 no_create=yes ;;
1017
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020 no_recursion=yes ;;
1021
1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024 | --oldin | --oldi | --old | --ol | --o)
1025 ac_prev=oldincludedir ;;
1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029 oldincludedir=$ac_optarg ;;
1030
1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 ac_prev=prefix ;;
1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034 prefix=$ac_optarg ;;
1035
1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037 | --program-pre | --program-pr | --program-p)
1038 ac_prev=program_prefix ;;
1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041 program_prefix=$ac_optarg ;;
1042
1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044 | --program-suf | --program-su | --program-s)
1045 ac_prev=program_suffix ;;
1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048 program_suffix=$ac_optarg ;;
1049
1050 -program-transform-name | --program-transform-name \
1051 | --program-transform-nam | --program-transform-na \
1052 | --program-transform-n | --program-transform- \
1053 | --program-transform | --program-transfor \
1054 | --program-transfo | --program-transf \
1055 | --program-trans | --program-tran \
1056 | --progr-tra | --program-tr | --program-t)
1057 ac_prev=program_transform_name ;;
1058 -program-transform-name=* | --program-transform-name=* \
1059 | --program-transform-nam=* | --program-transform-na=* \
1060 | --program-transform-n=* | --program-transform-=* \
1061 | --program-transform=* | --program-transfor=* \
1062 | --program-transfo=* | --program-transf=* \
1063 | --program-trans=* | --program-tran=* \
1064 | --progr-tra=* | --program-tr=* | --program-t=*)
1065 program_transform_name=$ac_optarg ;;
1066
1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 ac_prev=pdfdir ;;
1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070 pdfdir=$ac_optarg ;;
1071
1072 -psdir | --psdir | --psdi | --psd | --ps)
1073 ac_prev=psdir ;;
1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075 psdir=$ac_optarg ;;
1076
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 silent=yes ;;
1080
1081 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082 ac_prev=sbindir ;;
1083 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084 | --sbi=* | --sb=*)
1085 sbindir=$ac_optarg ;;
1086
1087 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089 | --sharedst | --shareds | --shared | --share | --shar \
1090 | --sha | --sh)
1091 ac_prev=sharedstatedir ;;
1092 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095 | --sha=* | --sh=*)
1096 sharedstatedir=$ac_optarg ;;
1097
1098 -site | --site | --sit)
1099 ac_prev=site ;;
1100 -site=* | --site=* | --sit=*)
1101 site=$ac_optarg ;;
1102
1103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104 ac_prev=srcdir ;;
1105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106 srcdir=$ac_optarg ;;
1107
1108 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109 | --syscon | --sysco | --sysc | --sys | --sy)
1110 ac_prev=sysconfdir ;;
1111 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113 sysconfdir=$ac_optarg ;;
1114
1115 -target | --target | --targe | --targ | --tar | --ta | --t)
1116 ac_prev=target_alias ;;
1117 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118 target_alias=$ac_optarg ;;
1119
1120 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1121 verbose=yes ;;
1122
1123 -version | --version | --versio | --versi | --vers | -V)
1124 ac_init_version=: ;;
1125
1126 -with-* | --with-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error $? "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1134 *"
1135 "with_$ac_useropt"
1136 "*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=\$ac_optarg ;;
1141
1142 -without-* | --without-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=no ;;
1157
1158 --x)
1159 # Obsolete; use --with-x.
1160 with_x=yes ;;
1161
1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163 | --x-incl | --x-inc | --x-in | --x-i)
1164 ac_prev=x_includes ;;
1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167 x_includes=$ac_optarg ;;
1168
1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171 ac_prev=x_libraries ;;
1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174 x_libraries=$ac_optarg ;;
1175
1176 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177 Try \`$0 --help' for more information"
1178 ;;
1179
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
1183 case $ac_envvar in #(
1184 '' | [0-9]* | *[!_$as_cr_alnum]* )
1185 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186 esac
1187 eval $ac_envvar=\$ac_optarg
1188 export $ac_envvar ;;
1189
1190 *)
1191 # FIXME: should be removed in autoconf 3.0.
1192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1196 ;;
1197
1198 esac
1199 done
1200
1201 if test -n "$ac_prev"; then
1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203 as_fn_error $? "missing argument to $ac_option"
1204 fi
1205
1206 if test -n "$ac_unrecognized_opts"; then
1207 case $enable_option_checking in
1208 no) ;;
1209 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211 esac
1212 fi
1213
1214 # Check all directory arguments for consistency.
1215 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
1219 do
1220 eval ac_val=\$$ac_var
1221 # Remove trailing slashes.
1222 case $ac_val in
1223 */ )
1224 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225 eval $ac_var=\$ac_val;;
1226 esac
1227 # Be sure to have absolute directory names.
1228 case $ac_val in
1229 [\\/$]* | ?:[\\/]* ) continue;;
1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231 esac
1232 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1233 done
1234
1235 # There might be people who depend on the old broken behavior: `$host'
1236 # used to hold the argument of --host etc.
1237 # FIXME: To remove some day.
1238 build=$build_alias
1239 host=$host_alias
1240 target=$target_alias
1241
1242 # FIXME: To remove some day.
1243 if test "x$host_alias" != x; then
1244 if test "x$build_alias" = x; then
1245 cross_compiling=maybe
1246 elif test "x$build_alias" != "x$host_alias"; then
1247 cross_compiling=yes
1248 fi
1249 fi
1250
1251 ac_tool_prefix=
1252 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254 test "$silent" = yes && exec 6>/dev/null
1255
1256
1257 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258 ac_ls_di=`ls -di .` &&
1259 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260 as_fn_error $? "working directory cannot be determined"
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262 as_fn_error $? "pwd does not report name of working directory"
1263
1264
1265 # Find the source files, if location was not specified.
1266 if test -z "$srcdir"; then
1267 ac_srcdir_defaulted=yes
1268 # Try the directory containing this script, then the parent directory.
1269 ac_confdir=`$as_dirname -- "$as_myself" ||
1270 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$as_myself" : 'X\(//\)[^/]' \| \
1272 X"$as_myself" : 'X\(//\)$' \| \
1273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274 $as_echo X"$as_myself" |
1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)[^/].*/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\/\)$/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\).*/{
1288 s//\1/
1289 q
1290 }
1291 s/.*/./; q'`
1292 srcdir=$ac_confdir
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 srcdir=..
1295 fi
1296 else
1297 ac_srcdir_defaulted=no
1298 fi
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1302 fi
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 ac_abs_confdir=`(
1305 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1306 pwd)`
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 srcdir=.
1310 fi
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1314 case $srcdir in
1315 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 esac
1317 for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322 done
1323
1324 #
1325 # Report the --help message.
1326 #
1327 if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1330 cat <<_ACEOF
1331 \`configure' configures bdbobj 0.10 to adapt to many kinds of systems.
1332
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE. See below for descriptions of some of the useful variables.
1337
1338 Defaults for the options are specified in brackets.
1339
1340 Configuration:
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking ...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350
1351 Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
1353 [$ac_default_prefix]
1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1355 [PREFIX]
1356
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1361
1362 For better control, use the options below.
1363
1364 Fine tuning of the installation directories:
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/bdbobj]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
1384 _ACEOF
1385
1386 cat <<\_ACEOF
1387
1388 Program names:
1389 --program-prefix=PREFIX prepend PREFIX to installed program names
1390 --program-suffix=SUFFIX append SUFFIX to installed program names
1391 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1392
1393 System types:
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 _ACEOF
1397 fi
1398
1399 if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive ) echo "Configuration of bdbobj 0.10:";;
1402 esac
1403 cat <<\_ACEOF
1404
1405 Optional Features:
1406 --disable-option-checking ignore unrecognized --enable/--with options
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --enable-silent-rules less verbose build output (undo: "make V=1")
1410 --disable-silent-rules verbose build output (undo: "make V=0")
1411 --enable-dependency-tracking
1412 do not reject slow dependency extractors
1413 --disable-dependency-tracking
1414 speeds up one-time build
1415 --enable-shared[=PKGS] build shared libraries [default=yes]
1416 --enable-static[=PKGS] build static libraries [default=yes]
1417 --enable-fast-install[=PKGS]
1418 optimize for fast installation [default=yes]
1419 --disable-libtool-lock avoid locking (might break parallel builds)
1420 --disable-largefile omit support for large files
1421
1422 Optional Packages:
1423 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1424 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1425 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1426 both]
1427 --with-aix-soname=aix|svr4|both
1428 shared library versioning (aka "SONAME") variant to
1429 provide on AIX, [default=aix].
1430 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1431 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1432 compiler's sysroot if not specified).
1433
1434 Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
1439 LIBS libraries to pass to the linker, e.g. -l<library>
1440 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
1442 CPP C preprocessor
1443 CXX C++ compiler command
1444 CXXFLAGS C++ compiler flags
1445 LT_SYS_LIBRARY_PATH
1446 User-defined run-time library search path.
1447 CXXCPP C++ preprocessor
1448
1449 Use these variables to override the choices made by `configure' or to help
1450 it to find libraries and programs with nonstandard names/locations.
1451
1452 Report bugs to <courier-users@lists.sourceforge.net>.
1453 _ACEOF
1454 ac_status=$?
1455 fi
1456
1457 if test "$ac_init_help" = "recursive"; then
1458 # If there are subdirs, report their specific --help.
1459 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1460 test -d "$ac_dir" ||
1461 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1462 continue
1463 ac_builddir=.
1464
1465 case "$ac_dir" in
1466 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *)
1468 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1469 # A ".." for each directory in $ac_dir_suffix.
1470 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1471 case $ac_top_builddir_sub in
1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474 esac ;;
1475 esac
1476 ac_abs_top_builddir=$ac_pwd
1477 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478 # for backward compatibility:
1479 ac_top_builddir=$ac_top_build_prefix
1480
1481 case $srcdir in
1482 .) # We are building in place.
1483 ac_srcdir=.
1484 ac_top_srcdir=$ac_top_builddir_sub
1485 ac_abs_top_srcdir=$ac_pwd ;;
1486 [\\/]* | ?:[\\/]* ) # Absolute name.
1487 ac_srcdir=$srcdir$ac_dir_suffix;
1488 ac_top_srcdir=$srcdir
1489 ac_abs_top_srcdir=$srcdir ;;
1490 *) # Relative name.
1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492 ac_top_srcdir=$ac_top_build_prefix$srcdir
1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494 esac
1495 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496
1497 cd "$ac_dir" || { ac_status=$?; continue; }
1498 # Check for guested configure.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure" --help=recursive
1505 else
1506 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507 fi || ac_status=$?
1508 cd "$ac_pwd" || { ac_status=$?; break; }
1509 done
1510 fi
1511
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1514 cat <<\_ACEOF
1515 bdbobj configure 0.10
1516 generated by GNU Autoconf 2.69
1517
1518 Copyright (C) 2012 Free Software Foundation, Inc.
1519 This configure script is free software; the Free Software Foundation
1520 gives unlimited permission to copy, distribute and modify it.
1521 _ACEOF
1522 exit
1523 fi
1524
1525 ## ------------------------ ##
1526 ## Autoconf initialization. ##
1527 ## ------------------------ ##
1528
1529 # ac_fn_c_try_compile LINENO
1530 # --------------------------
1531 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1532 ac_fn_c_try_compile ()
1533 {
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 rm -f conftest.$ac_objext
1536 if { { ac_try="$ac_compile"
1537 case "(($ac_try" in
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1540 esac
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 $as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_compile") 2>conftest.err
1544 ac_status=$?
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1549 fi
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest.$ac_objext; then :
1555 ac_retval=0
1556 else
1557 $as_echo "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.$ac_ext >&5
1559
1560 ac_retval=1
1561 fi
1562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1563 as_fn_set_status $ac_retval
1564
1565 } # ac_fn_c_try_compile
1566
1567 # ac_fn_c_try_cpp LINENO
1568 # ----------------------
1569 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1570 ac_fn_c_try_cpp ()
1571 {
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 if { { ac_try="$ac_cpp conftest.$ac_ext"
1574 case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577 esac
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1586 fi
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } > conftest.i && {
1589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 }; then :
1592 ac_retval=0
1593 else
1594 $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1596
1597 ac_retval=1
1598 fi
1599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600 as_fn_set_status $ac_retval
1601
1602 } # ac_fn_c_try_cpp
1603
1604 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1605 # -------------------------------------------------------
1606 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1607 # the include files in INCLUDES and setting the cache variable VAR
1608 # accordingly.
1609 ac_fn_c_check_header_mongrel ()
1610 {
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 if eval \${$3+:} false; then :
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1614 $as_echo_n "checking for $2... " >&6; }
1615 if eval \${$3+:} false; then :
1616 $as_echo_n "(cached) " >&6
1617 fi
1618 eval ac_res=\$$3
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620 $as_echo "$ac_res" >&6; }
1621 else
1622 # Is the header compilable?
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1624 $as_echo_n "checking $2 usability... " >&6; }
1625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626 /* end confdefs.h. */
1627 $4
1628 #include <$2>
1629 _ACEOF
1630 if ac_fn_c_try_compile "$LINENO"; then :
1631 ac_header_compiler=yes
1632 else
1633 ac_header_compiler=no
1634 fi
1635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1637 $as_echo "$ac_header_compiler" >&6; }
1638
1639 # Is the header present?
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1641 $as_echo_n "checking $2 presence... " >&6; }
1642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643 /* end confdefs.h. */
1644 #include <$2>
1645 _ACEOF
1646 if ac_fn_c_try_cpp "$LINENO"; then :
1647 ac_header_preproc=yes
1648 else
1649 ac_header_preproc=no
1650 fi
1651 rm -f conftest.err conftest.i conftest.$ac_ext
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1653 $as_echo "$ac_header_preproc" >&6; }
1654
1655 # So? What about this header?
1656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1657 yes:no: )
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1659 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1661 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1662 ;;
1663 no:yes:* )
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1665 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1667 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1669 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1671 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674 ( $as_echo "## -------------------------------------------------- ##
1675 ## Report this to courier-users@lists.sourceforge.net ##
1676 ## -------------------------------------------------- ##"
1677 ) | sed "s/^/$as_me: WARNING: /" >&2
1678 ;;
1679 esac
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 $as_echo_n "checking for $2... " >&6; }
1682 if eval \${$3+:} false; then :
1683 $as_echo_n "(cached) " >&6
1684 else
1685 eval "$3=\$ac_header_compiler"
1686 fi
1687 eval ac_res=\$$3
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689 $as_echo "$ac_res" >&6; }
1690 fi
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692
1693 } # ac_fn_c_check_header_mongrel
1694
1695 # ac_fn_c_try_run LINENO
1696 # ----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1698 # that executables *can* be run.
1699 ac_fn_c_try_run ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { { ac_try="$ac_link"
1703 case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1713 { { case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_try") 2>&5
1720 ac_status=$?
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; }; }; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: program exited with status $ac_status" >&5
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=$ac_status
1730 fi
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_run
1736
1737 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1738 # -------------------------------------------------------
1739 # Tests whether HEADER exists and can be compiled using the include files in
1740 # INCLUDES, setting the cache variable VAR accordingly.
1741 ac_fn_c_check_header_compile ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval \${$3+:} false; then :
1747 $as_echo_n "(cached) " >&6
1748 else
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 $4
1752 #include <$2>
1753 _ACEOF
1754 if ac_fn_c_try_compile "$LINENO"; then :
1755 eval "$3=yes"
1756 else
1757 eval "$3=no"
1758 fi
1759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760 fi
1761 eval ac_res=\$$3
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765
1766 } # ac_fn_c_check_header_compile
1767
1768 # ac_fn_cxx_try_compile LINENO
1769 # ----------------------------
1770 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_cxx_try_compile ()
1772 {
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 rm -f conftest.$ac_objext
1775 if { { ac_try="$ac_compile"
1776 case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_compile") 2>conftest.err
1783 ac_status=$?
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1788 fi
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && {
1791 test -z "$ac_cxx_werror_flag" ||
1792 test ! -s conftest.err
1793 } && test -s conftest.$ac_objext; then :
1794 ac_retval=0
1795 else
1796 $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1798
1799 ac_retval=1
1800 fi
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 as_fn_set_status $ac_retval
1803
1804 } # ac_fn_cxx_try_compile
1805
1806 # ac_fn_c_try_link LINENO
1807 # -----------------------
1808 # Try to link conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_c_try_link ()
1810 {
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 rm -f conftest.$ac_objext conftest$ac_exeext
1813 if { { ac_try="$ac_link"
1814 case "(($ac_try" in
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1817 esac
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_link") 2>conftest.err
1821 ac_status=$?
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1826 fi
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && {
1829 test -z "$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1831 } && test -s conftest$ac_exeext && {
1832 test "$cross_compiling" = yes ||
1833 test -x conftest$ac_exeext
1834 }; then :
1835 ac_retval=0
1836 else
1837 $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1839
1840 ac_retval=1
1841 fi
1842 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1843 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1844 # interfere with the next link command; also delete a directory that is
1845 # left behind by Apple's compiler. We do this before executing the actions.
1846 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848 as_fn_set_status $ac_retval
1849
1850 } # ac_fn_c_try_link
1851
1852 # ac_fn_c_check_func LINENO FUNC VAR
1853 # ----------------------------------
1854 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1855 ac_fn_c_check_func ()
1856 {
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if eval \${$3+:} false; then :
1861 $as_echo_n "(cached) " >&6
1862 else
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1865 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1867 #define $2 innocuous_$2
1868
1869 /* System header to define __stub macros and hopefully few prototypes,
1870 which can conflict with char $2 (); below.
1871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1872 <limits.h> exists even on freestanding compilers. */
1873
1874 #ifdef __STDC__
1875 # include <limits.h>
1876 #else
1877 # include <assert.h>
1878 #endif
1879
1880 #undef $2
1881
1882 /* Override any GCC internal prototype to avoid an error.
1883 Use char because int might match the return type of a GCC
1884 builtin and then its argument prototype would still apply. */
1885 #ifdef __cplusplus
1886 extern "C"
1887 #endif
1888 char $2 ();
1889 /* The GNU C library defines this for functions which it implements
1890 to always fail with ENOSYS. Some functions are actually named
1891 something starting with __ and the normal name is an alias. */
1892 #if defined __stub_$2 || defined __stub___$2
1893 choke me
1894 #endif
1895
1896 int
1897 main ()
1898 {
1899 return $2 ();
1900 ;
1901 return 0;
1902 }
1903 _ACEOF
1904 if ac_fn_c_try_link "$LINENO"; then :
1905 eval "$3=yes"
1906 else
1907 eval "$3=no"
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext \
1910 conftest$ac_exeext conftest.$ac_ext
1911 fi
1912 eval ac_res=\$$3
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916
1917 } # ac_fn_c_check_func
1918
1919 # ac_fn_cxx_try_cpp LINENO
1920 # ------------------------
1921 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1922 ac_fn_cxx_try_cpp ()
1923 {
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 if { { ac_try="$ac_cpp conftest.$ac_ext"
1926 case "(($ac_try" in
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1929 esac
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1933 ac_status=$?
1934 if test -s conftest.err; then
1935 grep -v '^ *+' conftest.err >conftest.er1
1936 cat conftest.er1 >&5
1937 mv -f conftest.er1 conftest.err
1938 fi
1939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940 test $ac_status = 0; } > conftest.i && {
1941 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1942 test ! -s conftest.err
1943 }; then :
1944 ac_retval=0
1945 else
1946 $as_echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1948
1949 ac_retval=1
1950 fi
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 as_fn_set_status $ac_retval
1953
1954 } # ac_fn_cxx_try_cpp
1955
1956 # ac_fn_cxx_try_link LINENO
1957 # -------------------------
1958 # Try to link conftest.$ac_ext, and return whether this succeeded.
1959 ac_fn_cxx_try_link ()
1960 {
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 rm -f conftest.$ac_objext conftest$ac_exeext
1963 if { { ac_try="$ac_link"
1964 case "(($ac_try" in
1965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1966 *) ac_try_echo=$ac_try;;
1967 esac
1968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1969 $as_echo "$ac_try_echo"; } >&5
1970 (eval "$ac_link") 2>conftest.err
1971 ac_status=$?
1972 if test -s conftest.err; then
1973 grep -v '^ *+' conftest.err >conftest.er1
1974 cat conftest.er1 >&5
1975 mv -f conftest.er1 conftest.err
1976 fi
1977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 test $ac_status = 0; } && {
1979 test -z "$ac_cxx_werror_flag" ||
1980 test ! -s conftest.err
1981 } && test -s conftest$ac_exeext && {
1982 test "$cross_compiling" = yes ||
1983 test -x conftest$ac_exeext
1984 }; then :
1985 ac_retval=0
1986 else
1987 $as_echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1989
1990 ac_retval=1
1991 fi
1992 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1993 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1994 # interfere with the next link command; also delete a directory that is
1995 # left behind by Apple's compiler. We do this before executing the actions.
1996 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 as_fn_set_status $ac_retval
1999
2000 } # ac_fn_cxx_try_link
2001
2002 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2003 # -------------------------------------------
2004 # Tests whether TYPE exists after having included INCLUDES, setting cache
2005 # variable VAR accordingly.
2006 ac_fn_c_check_type ()
2007 {
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if eval \${$3+:} false; then :
2012 $as_echo_n "(cached) " >&6
2013 else
2014 eval "$3=no"
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2017 $4
2018 int
2019 main ()
2020 {
2021 if (sizeof ($2))
2022 return 0;
2023 ;
2024 return 0;
2025 }
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2030 $4
2031 int
2032 main ()
2033 {
2034 if (sizeof (($2)))
2035 return 0;
2036 ;
2037 return 0;
2038 }
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041
2042 else
2043 eval "$3=yes"
2044 fi
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 fi
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 fi
2049 eval ac_res=\$$3
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053
2054 } # ac_fn_c_check_type
2055 cat >config.log <<_ACEOF
2056 This file contains any messages produced by compilers while
2057 running configure, to aid debugging if configure makes a mistake.
2058
2059 It was created by bdbobj $as_me 0.10, which was
2060 generated by GNU Autoconf 2.69. Invocation command line was
2061
2062 $ $0 $@
2063
2064 _ACEOF
2065 exec 5>>config.log
2066 {
2067 cat <<_ASUNAME
2068 ## --------- ##
2069 ## Platform. ##
2070 ## --------- ##
2071
2072 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2073 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2074 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2075 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2076 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2077
2078 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2079 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2080
2081 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2082 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2083 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2084 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2085 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2086 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2087 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2088
2089 _ASUNAME
2090
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 for as_dir in $PATH
2093 do
2094 IFS=$as_save_IFS
2095 test -z "$as_dir" && as_dir=.
2096 $as_echo "PATH: $as_dir"
2097 done
2098 IFS=$as_save_IFS
2099
2100 } >&5
2101
2102 cat >&5 <<_ACEOF
2103
2104
2105 ## ----------- ##
2106 ## Core tests. ##
2107 ## ----------- ##
2108
2109 _ACEOF
2110
2111
2112 # Keep a trace of the command line.
2113 # Strip out --no-create and --no-recursion so they do not pile up.
2114 # Strip out --silent because we don't want to record it for future runs.
2115 # Also quote any args containing shell meta-characters.
2116 # Make two passes to allow for proper duplicate-argument suppression.
2117 ac_configure_args=
2118 ac_configure_args0=
2119 ac_configure_args1=
2120 ac_must_keep_next=false
2121 for ac_pass in 1 2
2122 do
2123 for ac_arg
2124 do
2125 case $ac_arg in
2126 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2128 | -silent | --silent | --silen | --sile | --sil)
2129 continue ;;
2130 *\'*)
2131 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2132 esac
2133 case $ac_pass in
2134 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2135 2)
2136 as_fn_append ac_configure_args1 " '$ac_arg'"
2137 if test $ac_must_keep_next = true; then
2138 ac_must_keep_next=false # Got value, back to normal.
2139 else
2140 case $ac_arg in
2141 *=* | --config-cache | -C | -disable-* | --disable-* \
2142 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2143 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2144 | -with-* | --with-* | -without-* | --without-* | --x)
2145 case "$ac_configure_args0 " in
2146 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2147 esac
2148 ;;
2149 -* ) ac_must_keep_next=true ;;
2150 esac
2151 fi
2152 as_fn_append ac_configure_args " '$ac_arg'"
2153 ;;
2154 esac
2155 done
2156 done
2157 { ac_configure_args0=; unset ac_configure_args0;}
2158 { ac_configure_args1=; unset ac_configure_args1;}
2159
2160 # When interrupted or exit'd, cleanup temporary files, and complete
2161 # config.log. We remove comments because anyway the quotes in there
2162 # would cause problems or look ugly.
2163 # WARNING: Use '\'' to represent an apostrophe within the trap.
2164 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2165 trap 'exit_status=$?
2166 # Save into config.log some information that might help in debugging.
2167 {
2168 echo
2169
2170 $as_echo "## ---------------- ##
2171 ## Cache variables. ##
2172 ## ---------------- ##"
2173 echo
2174 # The following way of writing the cache mishandles newlines in values,
2175 (
2176 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2177 eval ac_val=\$$ac_var
2178 case $ac_val in #(
2179 *${as_nl}*)
2180 case $ac_var in #(
2181 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2182 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2183 esac
2184 case $ac_var in #(
2185 _ | IFS | as_nl) ;; #(
2186 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2187 *) { eval $ac_var=; unset $ac_var;} ;;
2188 esac ;;
2189 esac
2190 done
2191 (set) 2>&1 |
2192 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2193 *${as_nl}ac_space=\ *)
2194 sed -n \
2195 "s/'\''/'\''\\\\'\'''\''/g;
2196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2197 ;; #(
2198 *)
2199 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2200 ;;
2201 esac |
2202 sort
2203 )
2204 echo
2205
2206 $as_echo "## ----------------- ##
2207 ## Output variables. ##
2208 ## ----------------- ##"
2209 echo
2210 for ac_var in $ac_subst_vars
2211 do
2212 eval ac_val=\$$ac_var
2213 case $ac_val in
2214 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2215 esac
2216 $as_echo "$ac_var='\''$ac_val'\''"
2217 done | sort
2218 echo
2219
2220 if test -n "$ac_subst_files"; then
2221 $as_echo "## ------------------- ##
2222 ## File substitutions. ##
2223 ## ------------------- ##"
2224 echo
2225 for ac_var in $ac_subst_files
2226 do
2227 eval ac_val=\$$ac_var
2228 case $ac_val in
2229 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2230 esac
2231 $as_echo "$ac_var='\''$ac_val'\''"
2232 done | sort
2233 echo
2234 fi
2235
2236 if test -s confdefs.h; then
2237 $as_echo "## ----------- ##
2238 ## confdefs.h. ##
2239 ## ----------- ##"
2240 echo
2241 cat confdefs.h
2242 echo
2243 fi
2244 test "$ac_signal" != 0 &&
2245 $as_echo "$as_me: caught signal $ac_signal"
2246 $as_echo "$as_me: exit $exit_status"
2247 } >&5
2248 rm -f core *.core core.conftest.* &&
2249 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2250 exit $exit_status
2251 ' 0
2252 for ac_signal in 1 2 13 15; do
2253 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2254 done
2255 ac_signal=0
2256
2257 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2258 rm -f -r conftest* confdefs.h
2259
2260 $as_echo "/* confdefs.h */" > confdefs.h
2261
2262 # Predefined preprocessor variables.
2263
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE_NAME "$PACKAGE_NAME"
2266 _ACEOF
2267
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2270 _ACEOF
2271
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2274 _ACEOF
2275
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_STRING "$PACKAGE_STRING"
2278 _ACEOF
2279
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2282 _ACEOF
2283
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_URL "$PACKAGE_URL"
2286 _ACEOF
2287
2288
2289 # Let the site file select an alternate cache file if it wants to.
2290 # Prefer an explicitly selected file to automatically selected ones.
2291 ac_site_file1=NONE
2292 ac_site_file2=NONE
2293 if test -n "$CONFIG_SITE"; then
2294 # We do not want a PATH search for config.site.
2295 case $CONFIG_SITE in #((
2296 -*) ac_site_file1=./$CONFIG_SITE;;
2297 */*) ac_site_file1=$CONFIG_SITE;;
2298 *) ac_site_file1=./$CONFIG_SITE;;
2299 esac
2300 elif test "x$prefix" != xNONE; then
2301 ac_site_file1=$prefix/share/config.site
2302 ac_site_file2=$prefix/etc/config.site
2303 else
2304 ac_site_file1=$ac_default_prefix/share/config.site
2305 ac_site_file2=$ac_default_prefix/etc/config.site
2306 fi
2307 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2308 do
2309 test "x$ac_site_file" = xNONE && continue
2310 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2312 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2313 sed 's/^/| /' "$ac_site_file" >&5
2314 . "$ac_site_file" \
2315 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2317 as_fn_error $? "failed to load site script $ac_site_file
2318 See \`config.log' for more details" "$LINENO" 5; }
2319 fi
2320 done
2321
2322 if test -r "$cache_file"; then
2323 # Some versions of bash will fail to source /dev/null (special files
2324 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2325 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2327 $as_echo "$as_me: loading cache $cache_file" >&6;}
2328 case $cache_file in
2329 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2330 *) . "./$cache_file";;
2331 esac
2332 fi
2333 else
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2335 $as_echo "$as_me: creating cache $cache_file" >&6;}
2336 >$cache_file
2337 fi
2338
2339 # Check that the precious variables saved in the cache have kept the same
2340 # value.
2341 ac_cache_corrupted=false
2342 for ac_var in $ac_precious_vars; do
2343 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2344 eval ac_new_set=\$ac_env_${ac_var}_set
2345 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2346 eval ac_new_val=\$ac_env_${ac_var}_value
2347 case $ac_old_set,$ac_new_set in
2348 set,)
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2350 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2351 ac_cache_corrupted=: ;;
2352 ,set)
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2354 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2355 ac_cache_corrupted=: ;;
2356 ,);;
2357 *)
2358 if test "x$ac_old_val" != "x$ac_new_val"; then
2359 # differences in whitespace do not lead to failure.
2360 ac_old_val_w=`echo x $ac_old_val`
2361 ac_new_val_w=`echo x $ac_new_val`
2362 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2364 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2365 ac_cache_corrupted=:
2366 else
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2368 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2369 eval $ac_var=\$ac_old_val
2370 fi
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2372 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2374 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2375 fi;;
2376 esac
2377 # Pass precious variables to config.status.
2378 if test "$ac_new_set" = set; then
2379 case $ac_new_val in
2380 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2381 *) ac_arg=$ac_var=$ac_new_val ;;
2382 esac
2383 case " $ac_configure_args " in
2384 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2385 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2386 esac
2387 fi
2388 done
2389 if $ac_cache_corrupted; then
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2393 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2394 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2395 fi
2396 ## -------------------- ##
2397 ## Main body of script. ##
2398 ## -------------------- ##
2399
2400 ac_ext=c
2401 ac_cpp='$CPP $CPPFLAGS'
2402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2405
2406
2407
2408 >confdefs.h # Kill PACKAGE_ macros
2409
2410
2411 ac_aux_dir=
2412 for ac_dir in ../.. "$srcdir"/../..; do
2413 if test -f "$ac_dir/install-sh"; then
2414 ac_aux_dir=$ac_dir
2415 ac_install_sh="$ac_aux_dir/install-sh -c"
2416 break
2417 elif test -f "$ac_dir/install.sh"; then
2418 ac_aux_dir=$ac_dir
2419 ac_install_sh="$ac_aux_dir/install.sh -c"
2420 break
2421 elif test -f "$ac_dir/shtool"; then
2422 ac_aux_dir=$ac_dir
2423 ac_install_sh="$ac_aux_dir/shtool install -c"
2424 break
2425 fi
2426 done
2427 if test -z "$ac_aux_dir"; then
2428 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2429 fi
2430
2431 # These three variables are undocumented and unsupported,
2432 # and are intended to be withdrawn in a future Autoconf release.
2433 # They can cause serious problems if a builder's source tree is in a directory
2434 # whose full name contains unusual characters.
2435 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2436 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2437 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2438
2439
2440 am__api_version='1.15'
2441
2442 # Find a good install program. We prefer a C program (faster),
2443 # so one script is as good as another. But avoid the broken or
2444 # incompatible versions:
2445 # SysV /etc/install, /usr/sbin/install
2446 # SunOS /usr/etc/install
2447 # IRIX /sbin/install
2448 # AIX /bin/install
2449 # AmigaOS /C/install, which installs bootblocks on floppy discs
2450 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2451 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2452 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2453 # OS/2's system install, which has a completely different semantic
2454 # ./install, which can be erroneously created by make from ./install.sh.
2455 # Reject install programs that cannot install multiple files.
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2457 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2458 if test -z "$INSTALL"; then
2459 if ${ac_cv_path_install+:} false; then :
2460 $as_echo_n "(cached) " >&6
2461 else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2464 do
2465 IFS=$as_save_IFS
2466 test -z "$as_dir" && as_dir=.
2467 # Account for people who put trailing slashes in PATH elements.
2468 case $as_dir/ in #((
2469 ./ | .// | /[cC]/* | \
2470 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2471 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2472 /usr/ucb/* ) ;;
2473 *)
2474 # OSF1 and SCO ODT 3.0 have their own names for install.
2475 # Don't use installbsd from OSF since it installs stuff as root
2476 # by default.
2477 for ac_prog in ginstall scoinst install; do
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2480 if test $ac_prog = install &&
2481 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2482 # AIX install. It has an incompatible calling convention.
2483 :
2484 elif test $ac_prog = install &&
2485 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2486 # program-specific install script used by HP pwplus--don't use.
2487 :
2488 else
2489 rm -rf conftest.one conftest.two conftest.dir
2490 echo one > conftest.one
2491 echo two > conftest.two
2492 mkdir conftest.dir
2493 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2494 test -s conftest.one && test -s conftest.two &&
2495 test -s conftest.dir/conftest.one &&
2496 test -s conftest.dir/conftest.two
2497 then
2498 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2499 break 3
2500 fi
2501 fi
2502 fi
2503 done
2504 done
2505 ;;
2506 esac
2507
2508 done
2509 IFS=$as_save_IFS
2510
2511 rm -rf conftest.one conftest.two conftest.dir
2512
2513 fi
2514 if test "${ac_cv_path_install+set}" = set; then
2515 INSTALL=$ac_cv_path_install
2516 else
2517 # As a last resort, use the slow shell script. Don't cache a
2518 # value for INSTALL within a source directory, because that will
2519 # break other packages using the cache if that directory is
2520 # removed, or if the value is a relative name.
2521 INSTALL=$ac_install_sh
2522 fi
2523 fi
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2525 $as_echo "$INSTALL" >&6; }
2526
2527 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2528 # It thinks the first close brace ends the variable substitution.
2529 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2530
2531 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2532
2533 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2534
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2536 $as_echo_n "checking whether build environment is sane... " >&6; }
2537 # Reject unsafe characters in $srcdir or the absolute working directory
2538 # name. Accept space and tab only in the latter.
2539 am_lf='
2540 '
2541 case `pwd` in
2542 *[\\\"\#\$\&\'\`$am_lf]*)
2543 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2544 esac
2545 case $srcdir in
2546 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2547 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2548 esac
2549
2550 # Do 'set' in a subshell so we don't clobber the current shell's
2551 # arguments. Must try -L first in case configure is actually a
2552 # symlink; some systems play weird games with the mod time of symlinks
2553 # (eg FreeBSD returns the mod time of the symlink's containing
2554 # directory).
2555 if (
2556 am_has_slept=no
2557 for am_try in 1 2; do
2558 echo "timestamp, slept: $am_has_slept" > conftest.file
2559 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2560 if test "$*" = "X"; then
2561 # -L didn't work.
2562 set X `ls -t "$srcdir/configure" conftest.file`
2563 fi
2564 if test "$*" != "X $srcdir/configure conftest.file" \
2565 && test "$*" != "X conftest.file $srcdir/configure"; then
2566
2567 # If neither matched, then we have a broken ls. This can happen
2568 # if, for instance, CONFIG_SHELL is bash and it inherits a
2569 # broken ls alias from the environment. This has actually
2570 # happened. Such a system could not be considered "sane".
2571 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2572 alias in your environment" "$LINENO" 5
2573 fi
2574 if test "$2" = conftest.file || test $am_try -eq 2; then
2575 break
2576 fi
2577 # Just in case.
2578 sleep 1
2579 am_has_slept=yes
2580 done
2581 test "$2" = conftest.file
2582 )
2583 then
2584 # Ok.
2585 :
2586 else
2587 as_fn_error $? "newly created file is older than distributed files!
2588 Check your system clock" "$LINENO" 5
2589 fi
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2591 $as_echo "yes" >&6; }
2592 # If we didn't sleep, we still need to ensure time stamps of config.status and
2593 # generated files are strictly newer.
2594 am_sleep_pid=
2595 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2596 ( sleep 1 ) &
2597 am_sleep_pid=$!
2598 fi
2599
2600 rm -f conftest.file
2601
2602 test "$program_prefix" != NONE &&
2603 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2604 # Use a double $ so make ignores it.
2605 test "$program_suffix" != NONE &&
2606 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2607 # Double any \ or $.
2608 # By default was `s,x,x', remove it if useless.
2609 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2610 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2611
2612 # Expand $ac_aux_dir to an absolute path.
2613 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2614
2615 if test x"${MISSING+set}" != xset; then
2616 case $am_aux_dir in
2617 *\ * | *\ *)
2618 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2619 *)
2620 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2621 esac
2622 fi
2623 # Use eval to expand $SHELL
2624 if eval "$MISSING --is-lightweight"; then
2625 am_missing_run="$MISSING "
2626 else
2627 am_missing_run=
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2629 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2630 fi
2631
2632 if test x"${install_sh+set}" != xset; then
2633 case $am_aux_dir in
2634 *\ * | *\ *)
2635 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2636 *)
2637 install_sh="\${SHELL} $am_aux_dir/install-sh"
2638 esac
2639 fi
2640
2641 # Installed binaries are usually stripped using 'strip' when the user
2642 # run "make install-strip". However 'strip' might not be the right
2643 # tool to use in cross-compilation environments, therefore Automake
2644 # will honor the 'STRIP' environment variable to overrule this program.
2645 if test "$cross_compiling" != no; then
2646 if test -n "$ac_tool_prefix"; then
2647 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2648 set dummy ${ac_tool_prefix}strip; ac_word=$2
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2650 $as_echo_n "checking for $ac_word... " >&6; }
2651 if ${ac_cv_prog_STRIP+:} false; then :
2652 $as_echo_n "(cached) " >&6
2653 else
2654 if test -n "$STRIP"; then
2655 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2656 else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2659 do
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2664 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 break 2
2667 fi
2668 done
2669 done
2670 IFS=$as_save_IFS
2671
2672 fi
2673 fi
2674 STRIP=$ac_cv_prog_STRIP
2675 if test -n "$STRIP"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2677 $as_echo "$STRIP" >&6; }
2678 else
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2680 $as_echo "no" >&6; }
2681 fi
2682
2683
2684 fi
2685 if test -z "$ac_cv_prog_STRIP"; then
2686 ac_ct_STRIP=$STRIP
2687 # Extract the first word of "strip", so it can be a program name with args.
2688 set dummy strip; ac_word=$2
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2690 $as_echo_n "checking for $ac_word... " >&6; }
2691 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2692 $as_echo_n "(cached) " >&6
2693 else
2694 if test -n "$ac_ct_STRIP"; then
2695 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2696 else
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2699 do
2700 IFS=$as_save_IFS
2701 test -z "$as_dir" && as_dir=.
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2704 ac_cv_prog_ac_ct_STRIP="strip"
2705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 break 2
2707 fi
2708 done
2709 done
2710 IFS=$as_save_IFS
2711
2712 fi
2713 fi
2714 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2715 if test -n "$ac_ct_STRIP"; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2717 $as_echo "$ac_ct_STRIP" >&6; }
2718 else
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720 $as_echo "no" >&6; }
2721 fi
2722
2723 if test "x$ac_ct_STRIP" = x; then
2724 STRIP=":"
2725 else
2726 case $cross_compiling:$ac_tool_warned in
2727 yes:)
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2730 ac_tool_warned=yes ;;
2731 esac
2732 STRIP=$ac_ct_STRIP
2733 fi
2734 else
2735 STRIP="$ac_cv_prog_STRIP"
2736 fi
2737
2738 fi
2739 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2740
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2742 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2743 if test -z "$MKDIR_P"; then
2744 if ${ac_cv_path_mkdir+:} false; then :
2745 $as_echo_n "(cached) " >&6
2746 else
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2749 do
2750 IFS=$as_save_IFS
2751 test -z "$as_dir" && as_dir=.
2752 for ac_prog in mkdir gmkdir; do
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2755 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2756 'mkdir (GNU coreutils) '* | \
2757 'mkdir (coreutils) '* | \
2758 'mkdir (fileutils) '4.1*)
2759 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2760 break 3;;
2761 esac
2762 done
2763 done
2764 done
2765 IFS=$as_save_IFS
2766
2767 fi
2768
2769 test -d ./--version && rmdir ./--version
2770 if test "${ac_cv_path_mkdir+set}" = set; then
2771 MKDIR_P="$ac_cv_path_mkdir -p"
2772 else
2773 # As a last resort, use the slow shell script. Don't cache a
2774 # value for MKDIR_P within a source directory, because that will
2775 # break other packages using the cache if that directory is
2776 # removed, or if the value is a relative name.
2777 MKDIR_P="$ac_install_sh -d"
2778 fi
2779 fi
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2781 $as_echo "$MKDIR_P" >&6; }
2782
2783 for ac_prog in gawk mawk nawk awk
2784 do
2785 # Extract the first word of "$ac_prog", so it can be a program name with args.
2786 set dummy $ac_prog; ac_word=$2
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788 $as_echo_n "checking for $ac_word... " >&6; }
2789 if ${ac_cv_prog_AWK+:} false; then :
2790 $as_echo_n "(cached) " >&6
2791 else
2792 if test -n "$AWK"; then
2793 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2797 do
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802 ac_cv_prog_AWK="$ac_prog"
2803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 break 2
2805 fi
2806 done
2807 done
2808 IFS=$as_save_IFS
2809
2810 fi
2811 fi
2812 AWK=$ac_cv_prog_AWK
2813 if test -n "$AWK"; then
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2815 $as_echo "$AWK" >&6; }
2816 else
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818 $as_echo "no" >&6; }
2819 fi
2820
2821
2822 test -n "$AWK" && break
2823 done
2824
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2826 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2827 set x ${MAKE-make}
2828 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2829 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2830 $as_echo_n "(cached) " >&6
2831 else
2832 cat >conftest.make <<\_ACEOF
2833 SHELL = /bin/sh
2834 all:
2835 @echo '@@@%%%=$(MAKE)=@@@%%%'
2836 _ACEOF
2837 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2838 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2839 *@@@%%%=?*=@@@%%%*)
2840 eval ac_cv_prog_make_${ac_make}_set=yes;;
2841 *)
2842 eval ac_cv_prog_make_${ac_make}_set=no;;
2843 esac
2844 rm -f conftest.make
2845 fi
2846 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2848 $as_echo "yes" >&6; }
2849 SET_MAKE=
2850 else
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 $as_echo "no" >&6; }
2853 SET_MAKE="MAKE=${MAKE-make}"
2854 fi
2855
2856 rm -rf .tst 2>/dev/null
2857 mkdir .tst 2>/dev/null
2858 if test -d .tst; then
2859 am__leading_dot=.
2860 else
2861 am__leading_dot=_
2862 fi
2863 rmdir .tst 2>/dev/null
2864
2865 # Check whether --enable-silent-rules was given.
2866 if test "${enable_silent_rules+set}" = set; then :
2867 enableval=$enable_silent_rules;
2868 fi
2869
2870 case $enable_silent_rules in # (((
2871 yes) AM_DEFAULT_VERBOSITY=0;;
2872 no) AM_DEFAULT_VERBOSITY=1;;
2873 *) AM_DEFAULT_VERBOSITY=1;;
2874 esac
2875 am_make=${MAKE-make}
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2877 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2878 if ${am_cv_make_support_nested_variables+:} false; then :
2879 $as_echo_n "(cached) " >&6
2880 else
2881 if $as_echo 'TRUE=$(BAR$(V))
2882 BAR0=false
2883 BAR1=true
2884 V=1
2885 am__doit:
2886 @$(TRUE)
2887 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2888 am_cv_make_support_nested_variables=yes
2889 else
2890 am_cv_make_support_nested_variables=no
2891 fi
2892 fi
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2894 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2895 if test $am_cv_make_support_nested_variables = yes; then
2896 AM_V='$(V)'
2897 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2898 else
2899 AM_V=$AM_DEFAULT_VERBOSITY
2900 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2901 fi
2902 AM_BACKSLASH='\'
2903
2904 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2905 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2906 # is not polluted with repeated "-I."
2907 am__isrc=' -I$(srcdir)'
2908 # test to see if srcdir already configured
2909 if test -f $srcdir/config.status; then
2910 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2911 fi
2912 fi
2913
2914 # test whether we have cygpath
2915 if test -z "$CYGPATH_W"; then
2916 if (cygpath --version) >/dev/null 2>/dev/null; then
2917 CYGPATH_W='cygpath -w'
2918 else
2919 CYGPATH_W=echo
2920 fi
2921 fi
2922
2923
2924 # Define the identity of the package.
2925 PACKAGE='bdbobj'
2926 VERSION='0.10'
2927
2928
2929 # Some tools Automake needs.
2930
2931 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2932
2933
2934 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2935
2936
2937 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2938
2939
2940 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2941
2942
2943 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2944
2945 # For better backward compatibility. To be removed once Automake 1.9.x
2946 # dies out for good. For more background, see:
2947 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2948 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2949 mkdir_p='$(MKDIR_P)'
2950
2951 # We need awk for the "check" target (and possibly the TAP driver). The
2952 # system "awk" is bad on some platforms.
2953 # Always define AMTAR for backward compatibility. Yes, it's still used
2954 # in the wild :-( We should find a proper way to deprecate it ...
2955 AMTAR='$${TAR-tar}'
2956
2957
2958 # We'll loop over all known methods to create a tar archive until one works.
2959 _am_tools='gnutar pax cpio none'
2960
2961 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2962
2963
2964
2965
2966
2967
2968 # POSIX will say in a future version that running "rm -f" with no argument
2969 # is OK; and we want to be able to make that assumption in our Makefile
2970 # recipes. So use an aggressive probe to check that the usage we want is
2971 # actually supported "in the wild" to an acceptable degree.
2972 # See automake bug#10828.
2973 # To make any issue more visible, cause the running configure to be aborted
2974 # by default if the 'rm' program in use doesn't match our expectations; the
2975 # user can still override this though.
2976 if rm -f && rm -fr && rm -rf; then : OK; else
2977 cat >&2 <<'END'
2978 Oops!
2979
2980 Your 'rm' program seems unable to run without file operands specified
2981 on the command line, even when the '-f' option is present. This is contrary
2982 to the behaviour of most rm programs out there, and not conforming with
2983 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2984
2985 Please tell bug-automake@gnu.org about your system, including the value
2986 of your $PATH and any error possibly output before this message. This
2987 can help us improve future automake versions.
2988
2989 END
2990 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2991 echo 'Configuration will proceed anyway, since you have set the' >&2
2992 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2993 echo >&2
2994 else
2995 cat >&2 <<'END'
2996 Aborting the configuration process, to ensure you take notice of the issue.
2997
2998 You can download and install GNU coreutils to get an 'rm' implementation
2999 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3000
3001 If you want to complete the configuration process using your problematic
3002 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3003 to "yes", and re-run configure.
3004
3005 END
3006 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3007 fi
3008 fi
3009
3010 ac_config_headers="$ac_config_headers config.h"
3011
3012
3013 DEPDIR="${am__leading_dot}deps"
3014
3015 ac_config_commands="$ac_config_commands depfiles"
3016
3017
3018 am_make=${MAKE-make}
3019 cat > confinc << 'END'
3020 am__doit:
3021 @echo this is the am__doit target
3022 .PHONY: am__doit
3023 END
3024 # If we don't find an include directive, just comment out the code.
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3026 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3027 am__include="#"
3028 am__quote=
3029 _am_result=none
3030 # First try GNU make style include.
3031 echo "include confinc" > confmf
3032 # Ignore all kinds of additional output from 'make'.
3033 case `$am_make -s -f confmf 2> /dev/null` in #(
3034 *the\ am__doit\ target*)
3035 am__include=include
3036 am__quote=
3037 _am_result=GNU
3038 ;;
3039 esac
3040 # Now try BSD make style include.
3041 if test "$am__include" = "#"; then
3042 echo '.include "confinc"' > confmf
3043 case `$am_make -s -f confmf 2> /dev/null` in #(
3044 *the\ am__doit\ target*)
3045 am__include=.include
3046 am__quote="\""
3047 _am_result=BSD
3048 ;;
3049 esac
3050 fi
3051
3052
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3054 $as_echo "$_am_result" >&6; }
3055 rm -f confinc confmf
3056
3057 # Check whether --enable-dependency-tracking was given.
3058 if test "${enable_dependency_tracking+set}" = set; then :
3059 enableval=$enable_dependency_tracking;
3060 fi
3061
3062 if test "x$enable_dependency_tracking" != xno; then
3063 am_depcomp="$ac_aux_dir/depcomp"
3064 AMDEPBACKSLASH='\'
3065 am__nodep='_no'
3066 fi
3067 if test "x$enable_dependency_tracking" != xno; then
3068 AMDEP_TRUE=
3069 AMDEP_FALSE='#'
3070 else
3071 AMDEP_TRUE='#'
3072 AMDEP_FALSE=
3073 fi
3074
3075
3076 ac_ext=c
3077 ac_cpp='$CPP $CPPFLAGS'
3078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3081 if test -n "$ac_tool_prefix"; then
3082 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3083 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if ${ac_cv_prog_CC+:} false; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 if test -n "$CC"; then
3090 ac_cv_prog_CC="$CC" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3094 do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 break 2
3102 fi
3103 done
3104 done
3105 IFS=$as_save_IFS
3106
3107 fi
3108 fi
3109 CC=$ac_cv_prog_CC
3110 if test -n "$CC"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112 $as_echo "$CC" >&6; }
3113 else
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3116 fi
3117
3118
3119 fi
3120 if test -z "$ac_cv_prog_CC"; then
3121 ac_ct_CC=$CC
3122 # Extract the first word of "gcc", so it can be a program name with args.
3123 set dummy gcc; ac_word=$2
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3127 $as_echo_n "(cached) " >&6
3128 else
3129 if test -n "$ac_ct_CC"; then
3130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3131 else
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH
3134 do
3135 IFS=$as_save_IFS
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3139 ac_cv_prog_ac_ct_CC="gcc"
3140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141 break 2
3142 fi
3143 done
3144 done
3145 IFS=$as_save_IFS
3146
3147 fi
3148 fi
3149 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3150 if test -n "$ac_ct_CC"; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3152 $as_echo "$ac_ct_CC" >&6; }
3153 else
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3156 fi
3157
3158 if test "x$ac_ct_CC" = x; then
3159 CC=""
3160 else
3161 case $cross_compiling:$ac_tool_warned in
3162 yes:)
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3165 ac_tool_warned=yes ;;
3166 esac
3167 CC=$ac_ct_CC
3168 fi
3169 else
3170 CC="$ac_cv_prog_CC"
3171 fi
3172
3173 if test -z "$CC"; then
3174 if test -n "$ac_tool_prefix"; then
3175 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3176 set dummy ${ac_tool_prefix}cc; ac_word=$2
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178 $as_echo_n "checking for $ac_word... " >&6; }
3179 if ${ac_cv_prog_CC+:} false; then :
3180 $as_echo_n "(cached) " >&6
3181 else
3182 if test -n "$CC"; then
3183 ac_cv_prog_CC="$CC" # Let the user override the test.
3184 else
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH
3187 do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192 ac_cv_prog_CC="${ac_tool_prefix}cc"
3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 break 2
3195 fi
3196 done
3197 done
3198 IFS=$as_save_IFS
3199
3200 fi
3201 fi
3202 CC=$ac_cv_prog_CC
3203 if test -n "$CC"; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3205 $as_echo "$CC" >&6; }
3206 else
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 $as_echo "no" >&6; }
3209 fi
3210
3211
3212 fi
3213 fi
3214 if test -z "$CC"; then
3215 # Extract the first word of "cc", so it can be a program name with args.
3216 set dummy cc; ac_word=$2
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218 $as_echo_n "checking for $ac_word... " >&6; }
3219 if ${ac_cv_prog_CC+:} false; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 if test -n "$CC"; then
3223 ac_cv_prog_CC="$CC" # Let the user override the test.
3224 else
3225 ac_prog_rejected=no
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3234 ac_prog_rejected=yes
3235 continue
3236 fi
3237 ac_cv_prog_CC="cc"
3238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3239 break 2
3240 fi
3241 done
3242 done
3243 IFS=$as_save_IFS
3244
3245 if test $ac_prog_rejected = yes; then
3246 # We found a bogon in the path, so make sure we never use it.
3247 set dummy $ac_cv_prog_CC
3248 shift
3249 if test $# != 0; then
3250 # We chose a different compiler from the bogus one.
3251 # However, it has the same basename, so the bogon will be chosen
3252 # first if we set CC to just the basename; use the full file name.
3253 shift
3254 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3255 fi
3256 fi
3257 fi
3258 fi
3259 CC=$ac_cv_prog_CC
3260 if test -n "$CC"; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3262 $as_echo "$CC" >&6; }
3263 else
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3266 fi
3267
3268
3269 fi
3270 if test -z "$CC"; then
3271 if test -n "$ac_tool_prefix"; then
3272 for ac_prog in cl.exe
3273 do
3274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3275 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if ${ac_cv_prog_CC+:} false; then :
3279 $as_echo_n "(cached) " >&6
3280 else
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC="$CC" # Let the user override the test.
3283 else
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3286 do
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 break 2
3294 fi
3295 done
3296 done
3297 IFS=$as_save_IFS
3298
3299 fi
3300 fi
3301 CC=$ac_cv_prog_CC
3302 if test -n "$CC"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3304 $as_echo "$CC" >&6; }
3305 else
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 fi
3309
3310
3311 test -n "$CC" && break
3312 done
3313 fi
3314 if test -z "$CC"; then
3315 ac_ct_CC=$CC
3316 for ac_prog in cl.exe
3317 do
3318 # Extract the first word of "$ac_prog", so it can be a program name with args.
3319 set dummy $ac_prog; ac_word=$2
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 $as_echo_n "checking for $ac_word... " >&6; }
3322 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3323 $as_echo_n "(cached) " >&6
3324 else
3325 if test -n "$ac_ct_CC"; then
3326 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3327 else
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $PATH
3330 do
3331 IFS=$as_save_IFS
3332 test -z "$as_dir" && as_dir=.
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3335 ac_cv_prog_ac_ct_CC="$ac_prog"
3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 break 2
3338 fi
3339 done
3340 done
3341 IFS=$as_save_IFS
3342
3343 fi
3344 fi
3345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3346 if test -n "$ac_ct_CC"; then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3348 $as_echo "$ac_ct_CC" >&6; }
3349 else
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3352 fi
3353
3354
3355 test -n "$ac_ct_CC" && break
3356 done
3357
3358 if test "x$ac_ct_CC" = x; then
3359 CC=""
3360 else
3361 case $cross_compiling:$ac_tool_warned in
3362 yes:)
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3365 ac_tool_warned=yes ;;
3366 esac
3367 CC=$ac_ct_CC
3368 fi
3369 fi
3370
3371 fi
3372
3373
3374 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376 as_fn_error $? "no acceptable C compiler found in \$PATH
3377 See \`config.log' for more details" "$LINENO" 5; }
3378
3379 # Provide some information about the compiler.
3380 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3381 set X $ac_compile
3382 ac_compiler=$2
3383 for ac_option in --version -v -V -qversion; do
3384 { { ac_try="$ac_compiler $ac_option >&5"
3385 case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390 $as_echo "$ac_try_echo"; } >&5
3391 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3392 ac_status=$?
3393 if test -s conftest.err; then
3394 sed '10a\
3395 ... rest of stderr output deleted ...
3396 10q' conftest.err >conftest.er1
3397 cat conftest.er1 >&5
3398 fi
3399 rm -f conftest.er1 conftest.err
3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401 test $ac_status = 0; }
3402 done
3403
3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405 /* end confdefs.h. */
3406
3407 int
3408 main ()
3409 {
3410
3411 ;
3412 return 0;
3413 }
3414 _ACEOF
3415 ac_clean_files_save=$ac_clean_files
3416 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3417 # Try to create an executable without -o first, disregard a.out.
3418 # It will help us diagnose broken compilers, and finding out an intuition
3419 # of exeext.
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3421 $as_echo_n "checking whether the C compiler works... " >&6; }
3422 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3423
3424 # The possible output files:
3425 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3426
3427 ac_rmfiles=
3428 for ac_file in $ac_files
3429 do
3430 case $ac_file in
3431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3432 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3433 esac
3434 done
3435 rm -f $ac_rmfiles
3436
3437 if { { ac_try="$ac_link_default"
3438 case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441 esac
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444 (eval "$ac_link_default") 2>&5
3445 ac_status=$?
3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }; then :
3448 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3449 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3450 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3451 # so that the user can short-circuit this test for compilers unknown to
3452 # Autoconf.
3453 for ac_file in $ac_files ''
3454 do
3455 test -f "$ac_file" || continue
3456 case $ac_file in
3457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3458 ;;
3459 [ab].out )
3460 # We found the default executable, but exeext='' is most
3461 # certainly right.
3462 break;;
3463 *.* )
3464 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3465 then :; else
3466 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3467 fi
3468 # We set ac_cv_exeext here because the later test for it is not
3469 # safe: cross compilers may not add the suffix if given an `-o'
3470 # argument, so we may need to know it at that point already.
3471 # Even if this section looks crufty: it has the advantage of
3472 # actually working.
3473 break;;
3474 * )
3475 break;;
3476 esac
3477 done
3478 test "$ac_cv_exeext" = no && ac_cv_exeext=
3479
3480 else
3481 ac_file=''
3482 fi
3483 if test -z "$ac_file"; then :
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3486 $as_echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3488
3489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3491 as_fn_error 77 "C compiler cannot create executables
3492 See \`config.log' for more details" "$LINENO" 5; }
3493 else
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3495 $as_echo "yes" >&6; }
3496 fi
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3498 $as_echo_n "checking for C compiler default output file name... " >&6; }
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3500 $as_echo "$ac_file" >&6; }
3501 ac_exeext=$ac_cv_exeext
3502
3503 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3504 ac_clean_files=$ac_clean_files_save
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3506 $as_echo_n "checking for suffix of executables... " >&6; }
3507 if { { ac_try="$ac_link"
3508 case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511 esac
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514 (eval "$ac_link") 2>&5
3515 ac_status=$?
3516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517 test $ac_status = 0; }; then :
3518 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3519 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3520 # work properly (i.e., refer to `conftest.exe'), while it won't with
3521 # `rm'.
3522 for ac_file in conftest.exe conftest conftest.*; do
3523 test -f "$ac_file" || continue
3524 case $ac_file in
3525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3526 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3527 break;;
3528 * ) break;;
3529 esac
3530 done
3531 else
3532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3535 See \`config.log' for more details" "$LINENO" 5; }
3536 fi
3537 rm -f conftest conftest$ac_cv_exeext
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3539 $as_echo "$ac_cv_exeext" >&6; }
3540
3541 rm -f conftest.$ac_ext
3542 EXEEXT=$ac_cv_exeext
3543 ac_exeext=$EXEEXT
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3546 #include <stdio.h>
3547 int
3548 main ()
3549 {
3550 FILE *f = fopen ("conftest.out", "w");
3551 return ferror (f) || fclose (f) != 0;
3552
3553 ;
3554 return 0;
3555 }
3556 _ACEOF
3557 ac_clean_files="$ac_clean_files conftest.out"
3558 # Check that the compiler produces executables we can run. If not, either
3559 # the compiler is broken, or we cross compile.
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3561 $as_echo_n "checking whether we are cross compiling... " >&6; }
3562 if test "$cross_compiling" != yes; then
3563 { { ac_try="$ac_link"
3564 case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3567 esac
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570 (eval "$ac_link") 2>&5
3571 ac_status=$?
3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573 test $ac_status = 0; }
3574 if { ac_try='./conftest$ac_cv_exeext'
3575 { { case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578 esac
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581 (eval "$ac_try") 2>&5
3582 ac_status=$?
3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584 test $ac_status = 0; }; }; then
3585 cross_compiling=no
3586 else
3587 if test "$cross_compiling" = maybe; then
3588 cross_compiling=yes
3589 else
3590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592 as_fn_error $? "cannot run C compiled programs.
3593 If you meant to cross compile, use \`--host'.
3594 See \`config.log' for more details" "$LINENO" 5; }
3595 fi
3596 fi
3597 fi
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3599 $as_echo "$cross_compiling" >&6; }
3600
3601 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3602 ac_clean_files=$ac_clean_files_save
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3604 $as_echo_n "checking for suffix of object files... " >&6; }
3605 if ${ac_cv_objext+:} false; then :
3606 $as_echo_n "(cached) " >&6
3607 else
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3610
3611 int
3612 main ()
3613 {
3614
3615 ;
3616 return 0;
3617 }
3618 _ACEOF
3619 rm -f conftest.o conftest.obj
3620 if { { ac_try="$ac_compile"
3621 case "(($ac_try" in
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3624 esac
3625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626 $as_echo "$ac_try_echo"; } >&5
3627 (eval "$ac_compile") 2>&5
3628 ac_status=$?
3629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630 test $ac_status = 0; }; then :
3631 for ac_file in conftest.o conftest.obj conftest.*; do
3632 test -f "$ac_file" || continue;
3633 case $ac_file in
3634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3635 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3636 break;;
3637 esac
3638 done
3639 else
3640 $as_echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3642
3643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3645 as_fn_error $? "cannot compute suffix of object files: cannot compile
3646 See \`config.log' for more details" "$LINENO" 5; }
3647 fi
3648 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3649 fi
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3651 $as_echo "$ac_cv_objext" >&6; }
3652 OBJEXT=$ac_cv_objext
3653 ac_objext=$OBJEXT
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3655 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3656 if ${ac_cv_c_compiler_gnu+:} false; then :
3657 $as_echo_n "(cached) " >&6
3658 else
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3661
3662 int
3663 main ()
3664 {
3665 #ifndef __GNUC__
3666 choke me
3667 #endif
3668
3669 ;
3670 return 0;
3671 }
3672 _ACEOF
3673 if ac_fn_c_try_compile "$LINENO"; then :
3674 ac_compiler_gnu=yes
3675 else
3676 ac_compiler_gnu=no
3677 fi
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3680
3681 fi
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3683 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3684 if test $ac_compiler_gnu = yes; then
3685 GCC=yes
3686 else
3687 GCC=
3688 fi
3689 ac_test_CFLAGS=${CFLAGS+set}
3690 ac_save_CFLAGS=$CFLAGS
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3692 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3693 if ${ac_cv_prog_cc_g+:} false; then :
3694 $as_echo_n "(cached) " >&6
3695 else
3696 ac_save_c_werror_flag=$ac_c_werror_flag
3697 ac_c_werror_flag=yes
3698 ac_cv_prog_cc_g=no
3699 CFLAGS="-g"
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3702
3703 int
3704 main ()
3705 {
3706
3707 ;
3708 return 0;
3709 }
3710 _ACEOF
3711 if ac_fn_c_try_compile "$LINENO"; then :
3712 ac_cv_prog_cc_g=yes
3713 else
3714 CFLAGS=""
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3717
3718 int
3719 main ()
3720 {
3721
3722 ;
3723 return 0;
3724 }
3725 _ACEOF
3726 if ac_fn_c_try_compile "$LINENO"; then :
3727
3728 else
3729 ac_c_werror_flag=$ac_save_c_werror_flag
3730 CFLAGS="-g"
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3733
3734 int
3735 main ()
3736 {
3737
3738 ;
3739 return 0;
3740 }
3741 _ACEOF
3742 if ac_fn_c_try_compile "$LINENO"; then :
3743 ac_cv_prog_cc_g=yes
3744 fi
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 fi
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748 fi
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750 ac_c_werror_flag=$ac_save_c_werror_flag
3751 fi
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3753 $as_echo "$ac_cv_prog_cc_g" >&6; }
3754 if test "$ac_test_CFLAGS" = set; then
3755 CFLAGS=$ac_save_CFLAGS
3756 elif test $ac_cv_prog_cc_g = yes; then
3757 if test "$GCC" = yes; then
3758 CFLAGS="-g -O2"
3759 else
3760 CFLAGS="-g"
3761 fi
3762 else
3763 if test "$GCC" = yes; then
3764 CFLAGS="-O2"
3765 else
3766 CFLAGS=
3767 fi
3768 fi
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3770 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3771 if ${ac_cv_prog_cc_c89+:} false; then :
3772 $as_echo_n "(cached) " >&6
3773 else
3774 ac_cv_prog_cc_c89=no
3775 ac_save_CC=$CC
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3778 #include <stdarg.h>
3779 #include <stdio.h>
3780 struct stat;
3781 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3782 struct buf { int x; };
3783 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3784 static char *e (p, i)
3785 char **p;
3786 int i;
3787 {
3788 return p[i];
3789 }
3790 static char *f (char * (*g) (char **, int), char **p, ...)
3791 {
3792 char *s;
3793 va_list v;
3794 va_start (v,p);
3795 s = g (p, va_arg (v,int));
3796 va_end (v);
3797 return s;
3798 }
3799
3800 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3801 function prototypes and stuff, but not '\xHH' hex character constants.
3802 These don't provoke an error unfortunately, instead are silently treated
3803 as 'x'. The following induces an error, until -std is added to get
3804 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3805 array size at least. It's necessary to write '\x00'==0 to get something
3806 that's true only with -std. */
3807 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3808
3809 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3810 inside strings and character constants. */
3811 #define FOO(x) 'x'
3812 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3813
3814 int test (int i, double x);
3815 struct s1 {int (*f) (int a);};
3816 struct s2 {int (*f) (double a);};
3817 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3818 int argc;
3819 char **argv;
3820 int
3821 main ()
3822 {
3823 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3824 ;
3825 return 0;
3826 }
3827 _ACEOF
3828 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3829 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3830 do
3831 CC="$ac_save_CC $ac_arg"
3832 if ac_fn_c_try_compile "$LINENO"; then :
3833 ac_cv_prog_cc_c89=$ac_arg
3834 fi
3835 rm -f core conftest.err conftest.$ac_objext
3836 test "x$ac_cv_prog_cc_c89" != "xno" && break
3837 done
3838 rm -f conftest.$ac_ext
3839 CC=$ac_save_CC
3840
3841 fi
3842 # AC_CACHE_VAL
3843 case "x$ac_cv_prog_cc_c89" in
3844 x)
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3846 $as_echo "none needed" >&6; } ;;
3847 xno)
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3849 $as_echo "unsupported" >&6; } ;;
3850 *)
3851 CC="$CC $ac_cv_prog_cc_c89"
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3853 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3854 esac
3855 if test "x$ac_cv_prog_cc_c89" != xno; then :
3856
3857 fi
3858
3859 ac_ext=c
3860 ac_cpp='$CPP $CPPFLAGS'
3861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3864
3865 ac_ext=c
3866 ac_cpp='$CPP $CPPFLAGS'
3867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3871 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3872 if ${am_cv_prog_cc_c_o+:} false; then :
3873 $as_echo_n "(cached) " >&6
3874 else
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3877
3878 int
3879 main ()
3880 {
3881
3882 ;
3883 return 0;
3884 }
3885 _ACEOF
3886 # Make sure it works both with $CC and with simple cc.
3887 # Following AC_PROG_CC_C_O, we do the test twice because some
3888 # compilers refuse to overwrite an existing .o file with -o,
3889 # though they will create one.
3890 am_cv_prog_cc_c_o=yes
3891 for am_i in 1 2; do
3892 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3893 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3894 ac_status=$?
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } \
3897 && test -f conftest2.$ac_objext; then
3898 : OK
3899 else
3900 am_cv_prog_cc_c_o=no
3901 break
3902 fi
3903 done
3904 rm -f core conftest*
3905 unset am_i
3906 fi
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3908 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3909 if test "$am_cv_prog_cc_c_o" != yes; then
3910 # Losing compiler, so override with the script.
3911 # FIXME: It is wrong to rewrite CC.
3912 # But if we don't then we get into trouble of one sort or another.
3913 # A longer-term fix would be to have automake use am__CC in this case,
3914 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3915 CC="$am_aux_dir/compile $CC"
3916 fi
3917 ac_ext=c
3918 ac_cpp='$CPP $CPPFLAGS'
3919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922
3923
3924 depcc="$CC" am_compiler_list=
3925
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3927 $as_echo_n "checking dependency style of $depcc... " >&6; }
3928 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3929 $as_echo_n "(cached) " >&6
3930 else
3931 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3932 # We make a subdir and do the tests there. Otherwise we can end up
3933 # making bogus files that we don't know about and never remove. For
3934 # instance it was reported that on HP-UX the gcc test will end up
3935 # making a dummy file named 'D' -- because '-MD' means "put the output
3936 # in D".
3937 rm -rf conftest.dir
3938 mkdir conftest.dir
3939 # Copy depcomp to subdir because otherwise we won't find it if we're
3940 # using a relative directory.
3941 cp "$am_depcomp" conftest.dir
3942 cd conftest.dir
3943 # We will build objects and dependencies in a subdirectory because
3944 # it helps to detect inapplicable dependency modes. For instance
3945 # both Tru64's cc and ICC support -MD to output dependencies as a
3946 # side effect of compilation, but ICC will put the dependencies in
3947 # the current directory while Tru64 will put them in the object
3948 # directory.
3949 mkdir sub
3950
3951 am_cv_CC_dependencies_compiler_type=none
3952 if test "$am_compiler_list" = ""; then
3953 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3954 fi
3955 am__universal=false
3956 case " $depcc " in #(
3957 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3958 esac
3959
3960 for depmode in $am_compiler_list; do
3961 # Setup a source with many dependencies, because some compilers
3962 # like to wrap large dependency lists on column 80 (with \), and
3963 # we should not choose a depcomp mode which is confused by this.
3964 #
3965 # We need to recreate these files for each test, as the compiler may
3966 # overwrite some of them when testing with obscure command lines.
3967 # This happens at least with the AIX C compiler.
3968 : > sub/conftest.c
3969 for i in 1 2 3 4 5 6; do
3970 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3971 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3972 # Solaris 10 /bin/sh.
3973 echo '/* dummy */' > sub/conftst$i.h
3974 done
3975 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3976
3977 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3978 # mode. It turns out that the SunPro C++ compiler does not properly
3979 # handle '-M -o', and we need to detect this. Also, some Intel
3980 # versions had trouble with output in subdirs.
3981 am__obj=sub/conftest.${OBJEXT-o}
3982 am__minus_obj="-o $am__obj"
3983 case $depmode in
3984 gcc)
3985 # This depmode causes a compiler race in universal mode.
3986 test "$am__universal" = false || continue
3987 ;;
3988 nosideeffect)
3989 # After this tag, mechanisms are not by side-effect, so they'll
3990 # only be used when explicitly requested.
3991 if test "x$enable_dependency_tracking" = xyes; then
3992 continue
3993 else
3994 break
3995 fi
3996 ;;
3997 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3998 # This compiler won't grok '-c -o', but also, the minuso test has
3999 # not run yet. These depmodes are late enough in the game, and
4000 # so weak that their functioning should not be impacted.
4001 am__obj=conftest.${OBJEXT-o}
4002 am__minus_obj=
4003 ;;
4004 none) break ;;
4005 esac
4006 if depmode=$depmode \
4007 source=sub/conftest.c object=$am__obj \
4008 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4009 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4010 >/dev/null 2>conftest.err &&
4011 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4012 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4013 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4014 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4015 # icc doesn't choke on unknown options, it will just issue warnings
4016 # or remarks (even with -Werror). So we grep stderr for any message
4017 # that says an option was ignored or not supported.
4018 # When given -MP, icc 7.0 and 7.1 complain thusly:
4019 # icc: Command line warning: ignoring option '-M'; no argument required
4020 # The diagnosis changed in icc 8.0:
4021 # icc: Command line remark: option '-MP' not supported
4022 if (grep 'ignoring option' conftest.err ||
4023 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4024 am_cv_CC_dependencies_compiler_type=$depmode
4025 break
4026 fi
4027 fi
4028 done
4029
4030 cd ..
4031 rm -rf conftest.dir
4032 else
4033 am_cv_CC_dependencies_compiler_type=none
4034 fi
4035
4036 fi
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4038 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4039 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4040
4041 if
4042 test "x$enable_dependency_tracking" != xno \
4043 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4044 am__fastdepCC_TRUE=
4045 am__fastdepCC_FALSE='#'
4046 else
4047 am__fastdepCC_TRUE='#'
4048 am__fastdepCC_FALSE=
4049 fi
4050
4051
4052
4053 ac_ext=c
4054 ac_cpp='$CPP $CPPFLAGS'
4055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4059 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4060 # On Suns, sometimes $CPP names a directory.
4061 if test -n "$CPP" && test -d "$CPP"; then
4062 CPP=
4063 fi
4064 if test -z "$CPP"; then
4065 if ${ac_cv_prog_CPP+:} false; then :
4066 $as_echo_n "(cached) " >&6
4067 else
4068 # Double quotes because CPP needs to be expanded
4069 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4070 do
4071 ac_preproc_ok=false
4072 for ac_c_preproc_warn_flag in '' yes
4073 do
4074 # Use a header file that comes with gcc, so configuring glibc
4075 # with a fresh cross-compiler works.
4076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4077 # <limits.h> exists even on freestanding compilers.
4078 # On the NeXT, cc -E runs the code through the compiler's parser,
4079 # not just through cpp. "Syntax error" is here to catch this case.
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4082 #ifdef __STDC__
4083 # include <limits.h>
4084 #else
4085 # include <assert.h>
4086 #endif
4087 Syntax error
4088 _ACEOF
4089 if ac_fn_c_try_cpp "$LINENO"; then :
4090
4091 else
4092 # Broken: fails on valid input.
4093 continue
4094 fi
4095 rm -f conftest.err conftest.i conftest.$ac_ext
4096
4097 # OK, works on sane cases. Now check whether nonexistent headers
4098 # can be detected and how.
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4101 #include <ac_nonexistent.h>
4102 _ACEOF
4103 if ac_fn_c_try_cpp "$LINENO"; then :
4104 # Broken: success on invalid input.
4105 continue
4106 else
4107 # Passes both tests.
4108 ac_preproc_ok=:
4109 break
4110 fi
4111 rm -f conftest.err conftest.i conftest.$ac_ext
4112
4113 done
4114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4115 rm -f conftest.i conftest.err conftest.$ac_ext
4116 if $ac_preproc_ok; then :
4117 break
4118 fi
4119
4120 done
4121 ac_cv_prog_CPP=$CPP
4122
4123 fi
4124 CPP=$ac_cv_prog_CPP
4125 else
4126 ac_cv_prog_CPP=$CPP
4127 fi
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4129 $as_echo "$CPP" >&6; }
4130 ac_preproc_ok=false
4131 for ac_c_preproc_warn_flag in '' yes
4132 do
4133 # Use a header file that comes with gcc, so configuring glibc
4134 # with a fresh cross-compiler works.
4135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4136 # <limits.h> exists even on freestanding compilers.
4137 # On the NeXT, cc -E runs the code through the compiler's parser,
4138 # not just through cpp. "Syntax error" is here to catch this case.
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141 #ifdef __STDC__
4142 # include <limits.h>
4143 #else
4144 # include <assert.h>
4145 #endif
4146 Syntax error
4147 _ACEOF
4148 if ac_fn_c_try_cpp "$LINENO"; then :
4149
4150 else
4151 # Broken: fails on valid input.
4152 continue
4153 fi
4154 rm -f conftest.err conftest.i conftest.$ac_ext
4155
4156 # OK, works on sane cases. Now check whether nonexistent headers
4157 # can be detected and how.
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4160 #include <ac_nonexistent.h>
4161 _ACEOF
4162 if ac_fn_c_try_cpp "$LINENO"; then :
4163 # Broken: success on invalid input.
4164 continue
4165 else
4166 # Passes both tests.
4167 ac_preproc_ok=:
4168 break
4169 fi
4170 rm -f conftest.err conftest.i conftest.$ac_ext
4171
4172 done
4173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4174 rm -f conftest.i conftest.err conftest.$ac_ext
4175 if $ac_preproc_ok; then :
4176
4177 else
4178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4180 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4181 See \`config.log' for more details" "$LINENO" 5; }
4182 fi
4183
4184 ac_ext=c
4185 ac_cpp='$CPP $CPPFLAGS'
4186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189
4190
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4192 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4193 if ${ac_cv_path_GREP+:} false; then :
4194 $as_echo_n "(cached) " >&6
4195 else
4196 if test -z "$GREP"; then
4197 ac_path_GREP_found=false
4198 # Loop through the user's path and test for each of PROGNAME-LIST
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4201 do
4202 IFS=$as_save_IFS
4203 test -z "$as_dir" && as_dir=.
4204 for ac_prog in grep ggrep; do
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4207 as_fn_executable_p "$ac_path_GREP" || continue
4208 # Check for GNU ac_path_GREP and select it if it is found.
4209 # Check for GNU $ac_path_GREP
4210 case `"$ac_path_GREP" --version 2>&1` in
4211 *GNU*)
4212 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4213 *)
4214 ac_count=0
4215 $as_echo_n 0123456789 >"conftest.in"
4216 while :
4217 do
4218 cat "conftest.in" "conftest.in" >"conftest.tmp"
4219 mv "conftest.tmp" "conftest.in"
4220 cp "conftest.in" "conftest.nl"
4221 $as_echo 'GREP' >> "conftest.nl"
4222 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4223 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4224 as_fn_arith $ac_count + 1 && ac_count=$as_val
4225 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4226 # Best one so far, save it but keep looking for a better one
4227 ac_cv_path_GREP="$ac_path_GREP"
4228 ac_path_GREP_max=$ac_count
4229 fi
4230 # 10*(2^10) chars as input seems more than enough
4231 test $ac_count -gt 10 && break
4232 done
4233 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4234 esac
4235
4236 $ac_path_GREP_found && break 3
4237 done
4238 done
4239 done
4240 IFS=$as_save_IFS
4241 if test -z "$ac_cv_path_GREP"; then
4242 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4243 fi
4244 else
4245 ac_cv_path_GREP=$GREP
4246 fi
4247
4248 fi
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4250 $as_echo "$ac_cv_path_GREP" >&6; }
4251 GREP="$ac_cv_path_GREP"
4252
4253
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4255 $as_echo_n "checking for egrep... " >&6; }
4256 if ${ac_cv_path_EGREP+:} false; then :
4257 $as_echo_n "(cached) " >&6
4258 else
4259 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4260 then ac_cv_path_EGREP="$GREP -E"
4261 else
4262 if test -z "$EGREP"; then
4263 ac_path_EGREP_found=false
4264 # Loop through the user's path and test for each of PROGNAME-LIST
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4267 do
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_prog in egrep; do
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4273 as_fn_executable_p "$ac_path_EGREP" || continue
4274 # Check for GNU ac_path_EGREP and select it if it is found.
4275 # Check for GNU $ac_path_EGREP
4276 case `"$ac_path_EGREP" --version 2>&1` in
4277 *GNU*)
4278 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4279 *)
4280 ac_count=0
4281 $as_echo_n 0123456789 >"conftest.in"
4282 while :
4283 do
4284 cat "conftest.in" "conftest.in" >"conftest.tmp"
4285 mv "conftest.tmp" "conftest.in"
4286 cp "conftest.in" "conftest.nl"
4287 $as_echo 'EGREP' >> "conftest.nl"
4288 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4289 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4290 as_fn_arith $ac_count + 1 && ac_count=$as_val
4291 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4292 # Best one so far, save it but keep looking for a better one
4293 ac_cv_path_EGREP="$ac_path_EGREP"
4294 ac_path_EGREP_max=$ac_count
4295 fi
4296 # 10*(2^10) chars as input seems more than enough
4297 test $ac_count -gt 10 && break
4298 done
4299 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4300 esac
4301
4302 $ac_path_EGREP_found && break 3
4303 done
4304 done
4305 done
4306 IFS=$as_save_IFS
4307 if test -z "$ac_cv_path_EGREP"; then
4308 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4309 fi
4310 else
4311 ac_cv_path_EGREP=$EGREP
4312 fi
4313
4314 fi
4315 fi
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4317 $as_echo "$ac_cv_path_EGREP" >&6; }
4318 EGREP="$ac_cv_path_EGREP"
4319
4320
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4322 $as_echo_n "checking for ANSI C header files... " >&6; }
4323 if ${ac_cv_header_stdc+:} false; then :
4324 $as_echo_n "(cached) " >&6
4325 else
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4328 #include <stdlib.h>
4329 #include <stdarg.h>
4330 #include <string.h>
4331 #include <float.h>
4332
4333 int
4334 main ()
4335 {
4336
4337 ;
4338 return 0;
4339 }
4340 _ACEOF
4341 if ac_fn_c_try_compile "$LINENO"; then :
4342 ac_cv_header_stdc=yes
4343 else
4344 ac_cv_header_stdc=no
4345 fi
4346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347
4348 if test $ac_cv_header_stdc = yes; then
4349 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352 #include <string.h>
4353
4354 _ACEOF
4355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4356 $EGREP "memchr" >/dev/null 2>&1; then :
4357
4358 else
4359 ac_cv_header_stdc=no
4360 fi
4361 rm -f conftest*
4362
4363 fi
4364
4365 if test $ac_cv_header_stdc = yes; then
4366 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4369 #include <stdlib.h>
4370
4371 _ACEOF
4372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4373 $EGREP "free" >/dev/null 2>&1; then :
4374
4375 else
4376 ac_cv_header_stdc=no
4377 fi
4378 rm -f conftest*
4379
4380 fi
4381
4382 if test $ac_cv_header_stdc = yes; then
4383 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4384 if test "$cross_compiling" = yes; then :
4385 :
4386 else
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4389 #include <ctype.h>
4390 #include <stdlib.h>
4391 #if ((' ' & 0x0FF) == 0x020)
4392 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4393 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4394 #else
4395 # define ISLOWER(c) \
4396 (('a' <= (c) && (c) <= 'i') \
4397 || ('j' <= (c) && (c) <= 'r') \
4398 || ('s' <= (c) && (c) <= 'z'))
4399 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4400 #endif
4401
4402 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4403 int
4404 main ()
4405 {
4406 int i;
4407 for (i = 0; i < 256; i++)
4408 if (XOR (islower (i), ISLOWER (i))
4409 || toupper (i) != TOUPPER (i))
4410 return 2;
4411 return 0;
4412 }
4413 _ACEOF
4414 if ac_fn_c_try_run "$LINENO"; then :
4415
4416 else
4417 ac_cv_header_stdc=no
4418 fi
4419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4420 conftest.$ac_objext conftest.beam conftest.$ac_ext
4421 fi
4422
4423 fi
4424 fi
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4426 $as_echo "$ac_cv_header_stdc" >&6; }
4427 if test $ac_cv_header_stdc = yes; then
4428
4429 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4430
4431 fi
4432
4433 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4434 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4435 inttypes.h stdint.h unistd.h
4436 do :
4437 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4438 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4439 "
4440 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4441 cat >>confdefs.h <<_ACEOF
4442 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4443 _ACEOF
4444
4445 fi
4446
4447 done
4448
4449
4450
4451 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4452 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4453 MINIX=yes
4454 else
4455 MINIX=
4456 fi
4457
4458
4459 if test "$MINIX" = yes; then
4460
4461 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4462
4463
4464 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4465
4466
4467 $as_echo "#define _MINIX 1" >>confdefs.h
4468
4469 fi
4470
4471
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4473 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4474 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4475 $as_echo_n "(cached) " >&6
4476 else
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4479
4480 # define __EXTENSIONS__ 1
4481 $ac_includes_default
4482 int
4483 main ()
4484 {
4485
4486 ;
4487 return 0;
4488 }
4489 _ACEOF
4490 if ac_fn_c_try_compile "$LINENO"; then :
4491 ac_cv_safe_to_define___extensions__=yes
4492 else
4493 ac_cv_safe_to_define___extensions__=no
4494 fi
4495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4496 fi
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4498 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4499 test $ac_cv_safe_to_define___extensions__ = yes &&
4500 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4501
4502 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4503
4504 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4505
4506 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4507
4508 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4509
4510
4511 ac_ext=c
4512 ac_cpp='$CPP $CPPFLAGS'
4513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4516 if test -n "$ac_tool_prefix"; then
4517 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4518 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4520 $as_echo_n "checking for $ac_word... " >&6; }
4521 if ${ac_cv_prog_CC+:} false; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 if test -n "$CC"; then
4525 ac_cv_prog_CC="$CC" # Let the user override the test.
4526 else
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH
4529 do
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4534 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 break 2
4537 fi
4538 done
4539 done
4540 IFS=$as_save_IFS
4541
4542 fi
4543 fi
4544 CC=$ac_cv_prog_CC
4545 if test -n "$CC"; then
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4547 $as_echo "$CC" >&6; }
4548 else
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4550 $as_echo "no" >&6; }
4551 fi
4552
4553
4554 fi
4555 if test -z "$ac_cv_prog_CC"; then
4556 ac_ct_CC=$CC
4557 # Extract the first word of "gcc", so it can be a program name with args.
4558 set dummy gcc; ac_word=$2
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560 $as_echo_n "checking for $ac_word... " >&6; }
4561 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4562 $as_echo_n "(cached) " >&6
4563 else
4564 if test -n "$ac_ct_CC"; then
4565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4566 else
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4569 do
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4574 ac_cv_prog_ac_ct_CC="gcc"
4575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 break 2
4577 fi
4578 done
4579 done
4580 IFS=$as_save_IFS
4581
4582 fi
4583 fi
4584 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4585 if test -n "$ac_ct_CC"; then
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4587 $as_echo "$ac_ct_CC" >&6; }
4588 else
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590 $as_echo "no" >&6; }
4591 fi
4592
4593 if test "x$ac_ct_CC" = x; then
4594 CC=""
4595 else
4596 case $cross_compiling:$ac_tool_warned in
4597 yes:)
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4600 ac_tool_warned=yes ;;
4601 esac
4602 CC=$ac_ct_CC
4603 fi
4604 else
4605 CC="$ac_cv_prog_CC"
4606 fi
4607
4608 if test -z "$CC"; then
4609 if test -n "$ac_tool_prefix"; then
4610 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4611 set dummy ${ac_tool_prefix}cc; ac_word=$2
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4613 $as_echo_n "checking for $ac_word... " >&6; }
4614 if ${ac_cv_prog_CC+:} false; then :
4615 $as_echo_n "(cached) " >&6
4616 else
4617 if test -n "$CC"; then
4618 ac_cv_prog_CC="$CC" # Let the user override the test.
4619 else
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4622 do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4627 ac_cv_prog_CC="${ac_tool_prefix}cc"
4628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 break 2
4630 fi
4631 done
4632 done
4633 IFS=$as_save_IFS
4634
4635 fi
4636 fi
4637 CC=$ac_cv_prog_CC
4638 if test -n "$CC"; then
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4640 $as_echo "$CC" >&6; }
4641 else
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643 $as_echo "no" >&6; }
4644 fi
4645
4646
4647 fi
4648 fi
4649 if test -z "$CC"; then
4650 # Extract the first word of "cc", so it can be a program name with args.
4651 set dummy cc; ac_word=$2
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4653 $as_echo_n "checking for $ac_word... " >&6; }
4654 if ${ac_cv_prog_CC+:} false; then :
4655 $as_echo_n "(cached) " >&6
4656 else
4657 if test -n "$CC"; then
4658 ac_cv_prog_CC="$CC" # Let the user override the test.
4659 else
4660 ac_prog_rejected=no
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4663 do
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4669 ac_prog_rejected=yes
4670 continue
4671 fi
4672 ac_cv_prog_CC="cc"
4673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 break 2
4675 fi
4676 done
4677 done
4678 IFS=$as_save_IFS
4679
4680 if test $ac_prog_rejected = yes; then
4681 # We found a bogon in the path, so make sure we never use it.
4682 set dummy $ac_cv_prog_CC
4683 shift
4684 if test $# != 0; then
4685 # We chose a different compiler from the bogus one.
4686 # However, it has the same basename, so the bogon will be chosen
4687 # first if we set CC to just the basename; use the full file name.
4688 shift
4689 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4690 fi
4691 fi
4692 fi
4693 fi
4694 CC=$ac_cv_prog_CC
4695 if test -n "$CC"; then
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4697 $as_echo "$CC" >&6; }
4698 else
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700 $as_echo "no" >&6; }
4701 fi
4702
4703
4704 fi
4705 if test -z "$CC"; then
4706 if test -n "$ac_tool_prefix"; then
4707 for ac_prog in cl.exe
4708 do
4709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4710 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4712 $as_echo_n "checking for $ac_word... " >&6; }
4713 if ${ac_cv_prog_CC+:} false; then :
4714 $as_echo_n "(cached) " >&6
4715 else
4716 if test -n "$CC"; then
4717 ac_cv_prog_CC="$CC" # Let the user override the test.
4718 else
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 for as_dir in $PATH
4721 do
4722 IFS=$as_save_IFS
4723 test -z "$as_dir" && as_dir=.
4724 for ac_exec_ext in '' $ac_executable_extensions; do
4725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4726 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4728 break 2
4729 fi
4730 done
4731 done
4732 IFS=$as_save_IFS
4733
4734 fi
4735 fi
4736 CC=$ac_cv_prog_CC
4737 if test -n "$CC"; then
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4739 $as_echo "$CC" >&6; }
4740 else
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4743 fi
4744
4745
4746 test -n "$CC" && break
4747 done
4748 fi
4749 if test -z "$CC"; then
4750 ac_ct_CC=$CC
4751 for ac_prog in cl.exe
4752 do
4753 # Extract the first word of "$ac_prog", so it can be a program name with args.
4754 set dummy $ac_prog; ac_word=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4758 $as_echo_n "(cached) " >&6
4759 else
4760 if test -n "$ac_ct_CC"; then
4761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4762 else
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4765 do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770 ac_cv_prog_ac_ct_CC="$ac_prog"
4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4773 fi
4774 done
4775 done
4776 IFS=$as_save_IFS
4777
4778 fi
4779 fi
4780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4781 if test -n "$ac_ct_CC"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4783 $as_echo "$ac_ct_CC" >&6; }
4784 else
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4787 fi
4788
4789
4790 test -n "$ac_ct_CC" && break
4791 done
4792
4793 if test "x$ac_ct_CC" = x; then
4794 CC=""
4795 else
4796 case $cross_compiling:$ac_tool_warned in
4797 yes:)
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4800 ac_tool_warned=yes ;;
4801 esac
4802 CC=$ac_ct_CC
4803 fi
4804 fi
4805
4806 fi
4807
4808
4809 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4811 as_fn_error $? "no acceptable C compiler found in \$PATH
4812 See \`config.log' for more details" "$LINENO" 5; }
4813
4814 # Provide some information about the compiler.
4815 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4816 set X $ac_compile
4817 ac_compiler=$2
4818 for ac_option in --version -v -V -qversion; do
4819 { { ac_try="$ac_compiler $ac_option >&5"
4820 case "(($ac_try" in
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4823 esac
4824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4825 $as_echo "$ac_try_echo"; } >&5
4826 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4827 ac_status=$?
4828 if test -s conftest.err; then
4829 sed '10a\
4830 ... rest of stderr output deleted ...
4831 10q' conftest.err >conftest.er1
4832 cat conftest.er1 >&5
4833 fi
4834 rm -f conftest.er1 conftest.err
4835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4836 test $ac_status = 0; }
4837 done
4838
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4840 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4841 if ${ac_cv_c_compiler_gnu+:} false; then :
4842 $as_echo_n "(cached) " >&6
4843 else
4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h. */
4846
4847 int
4848 main ()
4849 {
4850 #ifndef __GNUC__
4851 choke me
4852 #endif
4853
4854 ;
4855 return 0;
4856 }
4857 _ACEOF
4858 if ac_fn_c_try_compile "$LINENO"; then :
4859 ac_compiler_gnu=yes
4860 else
4861 ac_compiler_gnu=no
4862 fi
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4865
4866 fi
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4868 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4869 if test $ac_compiler_gnu = yes; then
4870 GCC=yes
4871 else
4872 GCC=
4873 fi
4874 ac_test_CFLAGS=${CFLAGS+set}
4875 ac_save_CFLAGS=$CFLAGS
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4877 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4878 if ${ac_cv_prog_cc_g+:} false; then :
4879 $as_echo_n "(cached) " >&6
4880 else
4881 ac_save_c_werror_flag=$ac_c_werror_flag
4882 ac_c_werror_flag=yes
4883 ac_cv_prog_cc_g=no
4884 CFLAGS="-g"
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4887
4888 int
4889 main ()
4890 {
4891
4892 ;
4893 return 0;
4894 }
4895 _ACEOF
4896 if ac_fn_c_try_compile "$LINENO"; then :
4897 ac_cv_prog_cc_g=yes
4898 else
4899 CFLAGS=""
4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901 /* end confdefs.h. */
4902
4903 int
4904 main ()
4905 {
4906
4907 ;
4908 return 0;
4909 }
4910 _ACEOF
4911 if ac_fn_c_try_compile "$LINENO"; then :
4912
4913 else
4914 ac_c_werror_flag=$ac_save_c_werror_flag
4915 CFLAGS="-g"
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h. */
4918
4919 int
4920 main ()
4921 {
4922
4923 ;
4924 return 0;
4925 }
4926 _ACEOF
4927 if ac_fn_c_try_compile "$LINENO"; then :
4928 ac_cv_prog_cc_g=yes
4929 fi
4930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931 fi
4932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4933 fi
4934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4935 ac_c_werror_flag=$ac_save_c_werror_flag
4936 fi
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4938 $as_echo "$ac_cv_prog_cc_g" >&6; }
4939 if test "$ac_test_CFLAGS" = set; then
4940 CFLAGS=$ac_save_CFLAGS
4941 elif test $ac_cv_prog_cc_g = yes; then
4942 if test "$GCC" = yes; then
4943 CFLAGS="-g -O2"
4944 else
4945 CFLAGS="-g"
4946 fi
4947 else
4948 if test "$GCC" = yes; then
4949 CFLAGS="-O2"
4950 else
4951 CFLAGS=
4952 fi
4953 fi
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4955 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4956 if ${ac_cv_prog_cc_c89+:} false; then :
4957 $as_echo_n "(cached) " >&6
4958 else
4959 ac_cv_prog_cc_c89=no
4960 ac_save_CC=$CC
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4963 #include <stdarg.h>
4964 #include <stdio.h>
4965 struct stat;
4966 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4967 struct buf { int x; };
4968 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4969 static char *e (p, i)
4970 char **p;
4971 int i;
4972 {
4973 return p[i];
4974 }
4975 static char *f (char * (*g) (char **, int), char **p, ...)
4976 {
4977 char *s;
4978 va_list v;
4979 va_start (v,p);
4980 s = g (p, va_arg (v,int));
4981 va_end (v);
4982 return s;
4983 }
4984
4985 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4986 function prototypes and stuff, but not '\xHH' hex character constants.
4987 These don't provoke an error unfortunately, instead are silently treated
4988 as 'x'. The following induces an error, until -std is added to get
4989 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4990 array size at least. It's necessary to write '\x00'==0 to get something
4991 that's true only with -std. */
4992 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4993
4994 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4995 inside strings and character constants. */
4996 #define FOO(x) 'x'
4997 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4998
4999 int test (int i, double x);
5000 struct s1 {int (*f) (int a);};
5001 struct s2 {int (*f) (double a);};
5002 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5003 int argc;
5004 char **argv;
5005 int
5006 main ()
5007 {
5008 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5009 ;
5010 return 0;
5011 }
5012 _ACEOF
5013 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5014 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5015 do
5016 CC="$ac_save_CC $ac_arg"
5017 if ac_fn_c_try_compile "$LINENO"; then :
5018 ac_cv_prog_cc_c89=$ac_arg
5019 fi
5020 rm -f core conftest.err conftest.$ac_objext
5021 test "x$ac_cv_prog_cc_c89" != "xno" && break
5022 done
5023 rm -f conftest.$ac_ext
5024 CC=$ac_save_CC
5025
5026 fi
5027 # AC_CACHE_VAL
5028 case "x$ac_cv_prog_cc_c89" in
5029 x)
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5031 $as_echo "none needed" >&6; } ;;
5032 xno)
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5034 $as_echo "unsupported" >&6; } ;;
5035 *)
5036 CC="$CC $ac_cv_prog_cc_c89"
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5038 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5039 esac
5040 if test "x$ac_cv_prog_cc_c89" != xno; then :
5041
5042 fi
5043
5044 ac_ext=c
5045 ac_cpp='$CPP $CPPFLAGS'
5046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5049
5050 ac_ext=c
5051 ac_cpp='$CPP $CPPFLAGS'
5052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5056 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5057 if ${am_cv_prog_cc_c_o+:} false; then :
5058 $as_echo_n "(cached) " >&6
5059 else
5060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h. */
5062
5063 int
5064 main ()
5065 {
5066
5067 ;
5068 return 0;
5069 }
5070 _ACEOF
5071 # Make sure it works both with $CC and with simple cc.
5072 # Following AC_PROG_CC_C_O, we do the test twice because some
5073 # compilers refuse to overwrite an existing .o file with -o,
5074 # though they will create one.
5075 am_cv_prog_cc_c_o=yes
5076 for am_i in 1 2; do
5077 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5078 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5079 ac_status=$?
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } \
5082 && test -f conftest2.$ac_objext; then
5083 : OK
5084 else
5085 am_cv_prog_cc_c_o=no
5086 break
5087 fi
5088 done
5089 rm -f core conftest*
5090 unset am_i
5091 fi
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5093 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5094 if test "$am_cv_prog_cc_c_o" != yes; then
5095 # Losing compiler, so override with the script.
5096 # FIXME: It is wrong to rewrite CC.
5097 # But if we don't then we get into trouble of one sort or another.
5098 # A longer-term fix would be to have automake use am__CC in this case,
5099 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5100 CC="$am_aux_dir/compile $CC"
5101 fi
5102 ac_ext=c
5103 ac_cpp='$CPP $CPPFLAGS'
5104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5107
5108
5109 depcc="$CC" am_compiler_list=
5110
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5112 $as_echo_n "checking dependency style of $depcc... " >&6; }
5113 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5114 $as_echo_n "(cached) " >&6
5115 else
5116 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5117 # We make a subdir and do the tests there. Otherwise we can end up
5118 # making bogus files that we don't know about and never remove. For
5119 # instance it was reported that on HP-UX the gcc test will end up
5120 # making a dummy file named 'D' -- because '-MD' means "put the output
5121 # in D".
5122 rm -rf conftest.dir
5123 mkdir conftest.dir
5124 # Copy depcomp to subdir because otherwise we won't find it if we're
5125 # using a relative directory.
5126 cp "$am_depcomp" conftest.dir
5127 cd conftest.dir
5128 # We will build objects and dependencies in a subdirectory because
5129 # it helps to detect inapplicable dependency modes. For instance
5130 # both Tru64's cc and ICC support -MD to output dependencies as a
5131 # side effect of compilation, but ICC will put the dependencies in
5132 # the current directory while Tru64 will put them in the object
5133 # directory.
5134 mkdir sub
5135
5136 am_cv_CC_dependencies_compiler_type=none
5137 if test "$am_compiler_list" = ""; then
5138 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5139 fi
5140 am__universal=false
5141 case " $depcc " in #(
5142 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5143 esac
5144
5145 for depmode in $am_compiler_list; do
5146 # Setup a source with many dependencies, because some compilers
5147 # like to wrap large dependency lists on column 80 (with \), and
5148 # we should not choose a depcomp mode which is confused by this.
5149 #
5150 # We need to recreate these files for each test, as the compiler may
5151 # overwrite some of them when testing with obscure command lines.
5152 # This happens at least with the AIX C compiler.
5153 : > sub/conftest.c
5154 for i in 1 2 3 4 5 6; do
5155 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5156 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5157 # Solaris 10 /bin/sh.
5158 echo '/* dummy */' > sub/conftst$i.h
5159 done
5160 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5161
5162 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5163 # mode. It turns out that the SunPro C++ compiler does not properly
5164 # handle '-M -o', and we need to detect this. Also, some Intel
5165 # versions had trouble with output in subdirs.
5166 am__obj=sub/conftest.${OBJEXT-o}
5167 am__minus_obj="-o $am__obj"
5168 case $depmode in
5169 gcc)
5170 # This depmode causes a compiler race in universal mode.
5171 test "$am__universal" = false || continue
5172 ;;
5173 nosideeffect)
5174 # After this tag, mechanisms are not by side-effect, so they'll
5175 # only be used when explicitly requested.
5176 if test "x$enable_dependency_tracking" = xyes; then
5177 continue
5178 else
5179 break
5180 fi
5181 ;;
5182 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5183 # This compiler won't grok '-c -o', but also, the minuso test has
5184 # not run yet. These depmodes are late enough in the game, and
5185 # so weak that their functioning should not be impacted.
5186 am__obj=conftest.${OBJEXT-o}
5187 am__minus_obj=
5188 ;;
5189 none) break ;;
5190 esac
5191 if depmode=$depmode \
5192 source=sub/conftest.c object=$am__obj \
5193 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5194 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5195 >/dev/null 2>conftest.err &&
5196 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5197 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5198 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5199 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5200 # icc doesn't choke on unknown options, it will just issue warnings
5201 # or remarks (even with -Werror). So we grep stderr for any message
5202 # that says an option was ignored or not supported.
5203 # When given -MP, icc 7.0 and 7.1 complain thusly:
5204 # icc: Command line warning: ignoring option '-M'; no argument required
5205 # The diagnosis changed in icc 8.0:
5206 # icc: Command line remark: option '-MP' not supported
5207 if (grep 'ignoring option' conftest.err ||
5208 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5209 am_cv_CC_dependencies_compiler_type=$depmode
5210 break
5211 fi
5212 fi
5213 done
5214
5215 cd ..
5216 rm -rf conftest.dir
5217 else
5218 am_cv_CC_dependencies_compiler_type=none
5219 fi
5220
5221 fi
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5223 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5224 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5225
5226 if
5227 test "x$enable_dependency_tracking" != xno \
5228 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5229 am__fastdepCC_TRUE=
5230 am__fastdepCC_FALSE='#'
5231 else
5232 am__fastdepCC_TRUE='#'
5233 am__fastdepCC_FALSE=
5234 fi
5235
5236
5237 for ac_prog in gawk mawk nawk awk
5238 do
5239 # Extract the first word of "$ac_prog", so it can be a program name with args.
5240 set dummy $ac_prog; ac_word=$2
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5242 $as_echo_n "checking for $ac_word... " >&6; }
5243 if ${ac_cv_prog_AWK+:} false; then :
5244 $as_echo_n "(cached) " >&6
5245 else
5246 if test -n "$AWK"; then
5247 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5248 else
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 for as_dir in $PATH
5251 do
5252 IFS=$as_save_IFS
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5256 ac_cv_prog_AWK="$ac_prog"
5257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 break 2
5259 fi
5260 done
5261 done
5262 IFS=$as_save_IFS
5263
5264 fi
5265 fi
5266 AWK=$ac_cv_prog_AWK
5267 if test -n "$AWK"; then
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5269 $as_echo "$AWK" >&6; }
5270 else
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272 $as_echo "no" >&6; }
5273 fi
5274
5275
5276 test -n "$AWK" && break
5277 done
5278
5279 ac_ext=cpp
5280 ac_cpp='$CXXCPP $CPPFLAGS'
5281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5284 if test -z "$CXX"; then
5285 if test -n "$CCC"; then
5286 CXX=$CCC
5287 else
5288 if test -n "$ac_tool_prefix"; then
5289 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5290 do
5291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if ${ac_cv_prog_CXX+:} false; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5298 if test -n "$CXX"; then
5299 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5300 else
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH
5303 do
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5308 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 break 2
5311 fi
5312 done
5313 done
5314 IFS=$as_save_IFS
5315
5316 fi
5317 fi
5318 CXX=$ac_cv_prog_CXX
5319 if test -n "$CXX"; then
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5321 $as_echo "$CXX" >&6; }
5322 else
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5325 fi
5326
5327
5328 test -n "$CXX" && break
5329 done
5330 fi
5331 if test -z "$CXX"; then
5332 ac_ct_CXX=$CXX
5333 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5334 do
5335 # Extract the first word of "$ac_prog", so it can be a program name with args.
5336 set dummy $ac_prog; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 if test -n "$ac_ct_CXX"; then
5343 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5344 else
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 for as_dir in $PATH
5347 do
5348 IFS=$as_save_IFS
5349 test -z "$as_dir" && as_dir=.
5350 for ac_exec_ext in '' $ac_executable_extensions; do
5351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5352 ac_cv_prog_ac_ct_CXX="$ac_prog"
5353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 break 2
5355 fi
5356 done
5357 done
5358 IFS=$as_save_IFS
5359
5360 fi
5361 fi
5362 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5363 if test -n "$ac_ct_CXX"; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5365 $as_echo "$ac_ct_CXX" >&6; }
5366 else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5369 fi
5370
5371
5372 test -n "$ac_ct_CXX" && break
5373 done
5374
5375 if test "x$ac_ct_CXX" = x; then
5376 CXX="g++"
5377 else
5378 case $cross_compiling:$ac_tool_warned in
5379 yes:)
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5382 ac_tool_warned=yes ;;
5383 esac
5384 CXX=$ac_ct_CXX
5385 fi
5386 fi
5387
5388 fi
5389 fi
5390 # Provide some information about the compiler.
5391 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5392 set X $ac_compile
5393 ac_compiler=$2
5394 for ac_option in --version -v -V -qversion; do
5395 { { ac_try="$ac_compiler $ac_option >&5"
5396 case "(($ac_try" in
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5399 esac
5400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5401 $as_echo "$ac_try_echo"; } >&5
5402 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5403 ac_status=$?
5404 if test -s conftest.err; then
5405 sed '10a\
5406 ... rest of stderr output deleted ...
5407 10q' conftest.err >conftest.er1
5408 cat conftest.er1 >&5
5409 fi
5410 rm -f conftest.er1 conftest.err
5411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5412 test $ac_status = 0; }
5413 done
5414
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5416 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5417 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5418 $as_echo_n "(cached) " >&6
5419 else
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422
5423 int
5424 main ()
5425 {
5426 #ifndef __GNUC__
5427 choke me
5428 #endif
5429
5430 ;
5431 return 0;
5432 }
5433 _ACEOF
5434 if ac_fn_cxx_try_compile "$LINENO"; then :
5435 ac_compiler_gnu=yes
5436 else
5437 ac_compiler_gnu=no
5438 fi
5439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5441
5442 fi
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5444 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5445 if test $ac_compiler_gnu = yes; then
5446 GXX=yes
5447 else
5448 GXX=
5449 fi
5450 ac_test_CXXFLAGS=${CXXFLAGS+set}
5451 ac_save_CXXFLAGS=$CXXFLAGS
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5453 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5454 if ${ac_cv_prog_cxx_g+:} false; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5458 ac_cxx_werror_flag=yes
5459 ac_cv_prog_cxx_g=no
5460 CXXFLAGS="-g"
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5463
5464 int
5465 main ()
5466 {
5467
5468 ;
5469 return 0;
5470 }
5471 _ACEOF
5472 if ac_fn_cxx_try_compile "$LINENO"; then :
5473 ac_cv_prog_cxx_g=yes
5474 else
5475 CXXFLAGS=""
5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h. */
5478
5479 int
5480 main ()
5481 {
5482
5483 ;
5484 return 0;
5485 }
5486 _ACEOF
5487 if ac_fn_cxx_try_compile "$LINENO"; then :
5488
5489 else
5490 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5491 CXXFLAGS="-g"
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5494
5495 int
5496 main ()
5497 {
5498
5499 ;
5500 return 0;
5501 }
5502 _ACEOF
5503 if ac_fn_cxx_try_compile "$LINENO"; then :
5504 ac_cv_prog_cxx_g=yes
5505 fi
5506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5507 fi
5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5509 fi
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5512 fi
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5514 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5515 if test "$ac_test_CXXFLAGS" = set; then
5516 CXXFLAGS=$ac_save_CXXFLAGS
5517 elif test $ac_cv_prog_cxx_g = yes; then
5518 if test "$GXX" = yes; then
5519 CXXFLAGS="-g -O2"
5520 else
5521 CXXFLAGS="-g"
5522 fi
5523 else
5524 if test "$GXX" = yes; then
5525 CXXFLAGS="-O2"
5526 else
5527 CXXFLAGS=
5528 fi
5529 fi
5530 ac_ext=c
5531 ac_cpp='$CPP $CPPFLAGS'
5532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5535
5536 depcc="$CXX" am_compiler_list=
5537
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5539 $as_echo_n "checking dependency style of $depcc... " >&6; }
5540 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5541 $as_echo_n "(cached) " >&6
5542 else
5543 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5544 # We make a subdir and do the tests there. Otherwise we can end up
5545 # making bogus files that we don't know about and never remove. For
5546 # instance it was reported that on HP-UX the gcc test will end up
5547 # making a dummy file named 'D' -- because '-MD' means "put the output
5548 # in D".
5549 rm -rf conftest.dir
5550 mkdir conftest.dir
5551 # Copy depcomp to subdir because otherwise we won't find it if we're
5552 # using a relative directory.
5553 cp "$am_depcomp" conftest.dir
5554 cd conftest.dir
5555 # We will build objects and dependencies in a subdirectory because
5556 # it helps to detect inapplicable dependency modes. For instance
5557 # both Tru64's cc and ICC support -MD to output dependencies as a
5558 # side effect of compilation, but ICC will put the dependencies in
5559 # the current directory while Tru64 will put them in the object
5560 # directory.
5561 mkdir sub
5562
5563 am_cv_CXX_dependencies_compiler_type=none
5564 if test "$am_compiler_list" = ""; then
5565 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5566 fi
5567 am__universal=false
5568 case " $depcc " in #(
5569 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5570 esac
5571
5572 for depmode in $am_compiler_list; do
5573 # Setup a source with many dependencies, because some compilers
5574 # like to wrap large dependency lists on column 80 (with \), and
5575 # we should not choose a depcomp mode which is confused by this.
5576 #
5577 # We need to recreate these files for each test, as the compiler may
5578 # overwrite some of them when testing with obscure command lines.
5579 # This happens at least with the AIX C compiler.
5580 : > sub/conftest.c
5581 for i in 1 2 3 4 5 6; do
5582 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5583 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5584 # Solaris 10 /bin/sh.
5585 echo '/* dummy */' > sub/conftst$i.h
5586 done
5587 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5588
5589 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5590 # mode. It turns out that the SunPro C++ compiler does not properly
5591 # handle '-M -o', and we need to detect this. Also, some Intel
5592 # versions had trouble with output in subdirs.
5593 am__obj=sub/conftest.${OBJEXT-o}
5594 am__minus_obj="-o $am__obj"
5595 case $depmode in
5596 gcc)
5597 # This depmode causes a compiler race in universal mode.
5598 test "$am__universal" = false || continue
5599 ;;
5600 nosideeffect)
5601 # After this tag, mechanisms are not by side-effect, so they'll
5602 # only be used when explicitly requested.
5603 if test "x$enable_dependency_tracking" = xyes; then
5604 continue
5605 else
5606 break
5607 fi
5608 ;;
5609 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5610 # This compiler won't grok '-c -o', but also, the minuso test has
5611 # not run yet. These depmodes are late enough in the game, and
5612 # so weak that their functioning should not be impacted.
5613 am__obj=conftest.${OBJEXT-o}
5614 am__minus_obj=
5615 ;;
5616 none) break ;;
5617 esac
5618 if depmode=$depmode \
5619 source=sub/conftest.c object=$am__obj \
5620 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5621 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5622 >/dev/null 2>conftest.err &&
5623 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5624 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5625 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5626 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5627 # icc doesn't choke on unknown options, it will just issue warnings
5628 # or remarks (even with -Werror). So we grep stderr for any message
5629 # that says an option was ignored or not supported.
5630 # When given -MP, icc 7.0 and 7.1 complain thusly:
5631 # icc: Command line warning: ignoring option '-M'; no argument required
5632 # The diagnosis changed in icc 8.0:
5633 # icc: Command line remark: option '-MP' not supported
5634 if (grep 'ignoring option' conftest.err ||
5635 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5636 am_cv_CXX_dependencies_compiler_type=$depmode
5637 break
5638 fi
5639 fi
5640 done
5641
5642 cd ..
5643 rm -rf conftest.dir
5644 else
5645 am_cv_CXX_dependencies_compiler_type=none
5646 fi
5647
5648 fi
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5650 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5651 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5652
5653 if
5654 test "x$enable_dependency_tracking" != xno \
5655 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5656 am__fastdepCXX_TRUE=
5657 am__fastdepCXX_FALSE='#'
5658 else
5659 am__fastdepCXX_TRUE='#'
5660 am__fastdepCXX_FALSE=
5661 fi
5662
5663
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5665 $as_echo_n "checking for library containing strerror... " >&6; }
5666 if ${ac_cv_search_strerror+:} false; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 ac_func_search_save_LIBS=$LIBS
5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h. */
5672
5673 /* Override any GCC internal prototype to avoid an error.
5674 Use char because int might match the return type of a GCC
5675 builtin and then its argument prototype would still apply. */
5676 #ifdef __cplusplus
5677 extern "C"
5678 #endif
5679 char strerror ();
5680 int
5681 main ()
5682 {
5683 return strerror ();
5684 ;
5685 return 0;
5686 }
5687 _ACEOF
5688 for ac_lib in '' cposix; do
5689 if test -z "$ac_lib"; then
5690 ac_res="none required"
5691 else
5692 ac_res=-l$ac_lib
5693 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5694 fi
5695 if ac_fn_c_try_link "$LINENO"; then :
5696 ac_cv_search_strerror=$ac_res
5697 fi
5698 rm -f core conftest.err conftest.$ac_objext \
5699 conftest$ac_exeext
5700 if ${ac_cv_search_strerror+:} false; then :
5701 break
5702 fi
5703 done
5704 if ${ac_cv_search_strerror+:} false; then :
5705
5706 else
5707 ac_cv_search_strerror=no
5708 fi
5709 rm conftest.$ac_ext
5710 LIBS=$ac_func_search_save_LIBS
5711 fi
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5713 $as_echo "$ac_cv_search_strerror" >&6; }
5714 ac_res=$ac_cv_search_strerror
5715 if test "$ac_res" != no; then :
5716 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5717
5718 fi
5719
5720 case `pwd` in
5721 *\ * | *\ *)
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5723 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5724 esac
5725
5726
5727
5728 macro_version='2.4.6'
5729 macro_revision='2.4.6'
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743 ltmain=$ac_aux_dir/ltmain.sh
5744
5745 # Make sure we can run config.sub.
5746 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5747 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5748
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5750 $as_echo_n "checking build system type... " >&6; }
5751 if ${ac_cv_build+:} false; then :
5752 $as_echo_n "(cached) " >&6
5753 else
5754 ac_build_alias=$build_alias
5755 test "x$ac_build_alias" = x &&
5756 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5757 test "x$ac_build_alias" = x &&
5758 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5759 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5760 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5761
5762 fi
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5764 $as_echo "$ac_cv_build" >&6; }
5765 case $ac_cv_build in
5766 *-*-*) ;;
5767 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5768 esac
5769 build=$ac_cv_build
5770 ac_save_IFS=$IFS; IFS='-'
5771 set x $ac_cv_build
5772 shift
5773 build_cpu=$1
5774 build_vendor=$2
5775 shift; shift
5776 # Remember, the first character of IFS is used to create $*,
5777 # except with old shells:
5778 build_os=$*
5779 IFS=$ac_save_IFS
5780 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5781
5782
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5784 $as_echo_n "checking host system type... " >&6; }
5785 if ${ac_cv_host+:} false; then :
5786 $as_echo_n "(cached) " >&6
5787 else
5788 if test "x$host_alias" = x; then
5789 ac_cv_host=$ac_cv_build
5790 else
5791 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5792 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5793 fi
5794
5795 fi
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5797 $as_echo "$ac_cv_host" >&6; }
5798 case $ac_cv_host in
5799 *-*-*) ;;
5800 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5801 esac
5802 host=$ac_cv_host
5803 ac_save_IFS=$IFS; IFS='-'
5804 set x $ac_cv_host
5805 shift
5806 host_cpu=$1
5807 host_vendor=$2
5808 shift; shift
5809 # Remember, the first character of IFS is used to create $*,
5810 # except with old shells:
5811 host_os=$*
5812 IFS=$ac_save_IFS
5813 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5814
5815
5816 # Backslashify metacharacters that are still active within
5817 # double-quoted strings.
5818 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5819
5820 # Same as above, but do not quote variable references.
5821 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5822
5823 # Sed substitution to delay expansion of an escaped shell variable in a
5824 # double_quote_subst'ed string.
5825 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5826
5827 # Sed substitution to delay expansion of an escaped single quote.
5828 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5829
5830 # Sed substitution to avoid accidental globbing in evaled expressions
5831 no_glob_subst='s/\*/\\\*/g'
5832
5833 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5834 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5835 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5836
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5838 $as_echo_n "checking how to print strings... " >&6; }
5839 # Test print first, because it will be a builtin if present.
5840 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5841 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5842 ECHO='print -r --'
5843 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5844 ECHO='printf %s\n'
5845 else
5846 # Use this function as a fallback that always works.
5847 func_fallback_echo ()
5848 {
5849 eval 'cat <<_LTECHO_EOF
5850 $1
5851 _LTECHO_EOF'
5852 }
5853 ECHO='func_fallback_echo'
5854 fi
5855
5856 # func_echo_all arg...
5857 # Invoke $ECHO with all args, space-separated.
5858 func_echo_all ()
5859 {
5860 $ECHO ""
5861 }
5862
5863 case $ECHO in
5864 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5865 $as_echo "printf" >&6; } ;;
5866 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5867 $as_echo "print -r" >&6; } ;;
5868 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5869 $as_echo "cat" >&6; } ;;
5870 esac
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5886 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5887 if ${ac_cv_path_SED+:} false; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5891 for ac_i in 1 2 3 4 5 6 7; do
5892 ac_script="$ac_script$as_nl$ac_script"
5893 done
5894 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5895 { ac_script=; unset ac_script;}
5896 if test -z "$SED"; then
5897 ac_path_SED_found=false
5898 # Loop through the user's path and test for each of PROGNAME-LIST
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5901 do
5902 IFS=$as_save_IFS
5903 test -z "$as_dir" && as_dir=.
5904 for ac_prog in sed gsed; do
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5907 as_fn_executable_p "$ac_path_SED" || continue
5908 # Check for GNU ac_path_SED and select it if it is found.
5909 # Check for GNU $ac_path_SED
5910 case `"$ac_path_SED" --version 2>&1` in
5911 *GNU*)
5912 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5913 *)
5914 ac_count=0
5915 $as_echo_n 0123456789 >"conftest.in"
5916 while :
5917 do
5918 cat "conftest.in" "conftest.in" >"conftest.tmp"
5919 mv "conftest.tmp" "conftest.in"
5920 cp "conftest.in" "conftest.nl"
5921 $as_echo '' >> "conftest.nl"
5922 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5923 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5924 as_fn_arith $ac_count + 1 && ac_count=$as_val
5925 if test $ac_count -gt ${ac_path_SED_max-0}; then
5926 # Best one so far, save it but keep looking for a better one
5927 ac_cv_path_SED="$ac_path_SED"
5928 ac_path_SED_max=$ac_count
5929 fi
5930 # 10*(2^10) chars as input seems more than enough
5931 test $ac_count -gt 10 && break
5932 done
5933 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5934 esac
5935
5936 $ac_path_SED_found && break 3
5937 done
5938 done
5939 done
5940 IFS=$as_save_IFS
5941 if test -z "$ac_cv_path_SED"; then
5942 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5943 fi
5944 else
5945 ac_cv_path_SED=$SED
5946 fi
5947
5948 fi
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5950 $as_echo "$ac_cv_path_SED" >&6; }
5951 SED="$ac_cv_path_SED"
5952 rm -f conftest.sed
5953
5954 test -z "$SED" && SED=sed
5955 Xsed="$SED -e 1s/^X//"
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5968 $as_echo_n "checking for fgrep... " >&6; }
5969 if ${ac_cv_path_FGREP+:} false; then :
5970 $as_echo_n "(cached) " >&6
5971 else
5972 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5973 then ac_cv_path_FGREP="$GREP -F"
5974 else
5975 if test -z "$FGREP"; then
5976 ac_path_FGREP_found=false
5977 # Loop through the user's path and test for each of PROGNAME-LIST
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5980 do
5981 IFS=$as_save_IFS
5982 test -z "$as_dir" && as_dir=.
5983 for ac_prog in fgrep; do
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5986 as_fn_executable_p "$ac_path_FGREP" || continue
5987 # Check for GNU ac_path_FGREP and select it if it is found.
5988 # Check for GNU $ac_path_FGREP
5989 case `"$ac_path_FGREP" --version 2>&1` in
5990 *GNU*)
5991 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5992 *)
5993 ac_count=0
5994 $as_echo_n 0123456789 >"conftest.in"
5995 while :
5996 do
5997 cat "conftest.in" "conftest.in" >"conftest.tmp"
5998 mv "conftest.tmp" "conftest.in"
5999 cp "conftest.in" "conftest.nl"
6000 $as_echo 'FGREP' >> "conftest.nl"
6001 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6002 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6003 as_fn_arith $ac_count + 1 && ac_count=$as_val
6004 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6005 # Best one so far, save it but keep looking for a better one
6006 ac_cv_path_FGREP="$ac_path_FGREP"
6007 ac_path_FGREP_max=$ac_count
6008 fi
6009 # 10*(2^10) chars as input seems more than enough
6010 test $ac_count -gt 10 && break
6011 done
6012 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6013 esac
6014
6015 $ac_path_FGREP_found && break 3
6016 done
6017 done
6018 done
6019 IFS=$as_save_IFS
6020 if test -z "$ac_cv_path_FGREP"; then
6021 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6022 fi
6023 else
6024 ac_cv_path_FGREP=$FGREP
6025 fi
6026
6027 fi
6028 fi
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6030 $as_echo "$ac_cv_path_FGREP" >&6; }
6031 FGREP="$ac_cv_path_FGREP"
6032
6033
6034 test -z "$GREP" && GREP=grep
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054 # Check whether --with-gnu-ld was given.
6055 if test "${with_gnu_ld+set}" = set; then :
6056 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6057 else
6058 with_gnu_ld=no
6059 fi
6060
6061 ac_prog=ld
6062 if test yes = "$GCC"; then
6063 # Check if gcc -print-prog-name=ld gives a path.
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6065 $as_echo_n "checking for ld used by $CC... " >&6; }
6066 case $host in
6067 *-*-mingw*)
6068 # gcc leaves a trailing carriage return, which upsets mingw
6069 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6070 *)
6071 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6072 esac
6073 case $ac_prog in
6074 # Accept absolute paths.
6075 [\\/]* | ?:[\\/]*)
6076 re_direlt='/[^/][^/]*/\.\./'
6077 # Canonicalize the pathname of ld
6078 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6079 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6080 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6081 done
6082 test -z "$LD" && LD=$ac_prog
6083 ;;
6084 "")
6085 # If it fails, then pretend we aren't using GCC.
6086 ac_prog=ld
6087 ;;
6088 *)
6089 # If it is relative, then search for the first ld in PATH.
6090 with_gnu_ld=unknown
6091 ;;
6092 esac
6093 elif test yes = "$with_gnu_ld"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6095 $as_echo_n "checking for GNU ld... " >&6; }
6096 else
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6098 $as_echo_n "checking for non-GNU ld... " >&6; }
6099 fi
6100 if ${lt_cv_path_LD+:} false; then :
6101 $as_echo_n "(cached) " >&6
6102 else
6103 if test -z "$LD"; then
6104 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6105 for ac_dir in $PATH; do
6106 IFS=$lt_save_ifs
6107 test -z "$ac_dir" && ac_dir=.
6108 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6109 lt_cv_path_LD=$ac_dir/$ac_prog
6110 # Check to see if the program is GNU ld. I'd rather use --version,
6111 # but apparently some variants of GNU ld only accept -v.
6112 # Break only if it was the GNU/non-GNU ld that we prefer.
6113 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6114 *GNU* | *'with BFD'*)
6115 test no != "$with_gnu_ld" && break
6116 ;;
6117 *)
6118 test yes != "$with_gnu_ld" && break
6119 ;;
6120 esac
6121 fi
6122 done
6123 IFS=$lt_save_ifs
6124 else
6125 lt_cv_path_LD=$LD # Let the user override the test with a path.
6126 fi
6127 fi
6128
6129 LD=$lt_cv_path_LD
6130 if test -n "$LD"; then
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6132 $as_echo "$LD" >&6; }
6133 else
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6135 $as_echo "no" >&6; }
6136 fi
6137 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6139 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6140 if ${lt_cv_prog_gnu_ld+:} false; then :
6141 $as_echo_n "(cached) " >&6
6142 else
6143 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6144 case `$LD -v 2>&1 </dev/null` in
6145 *GNU* | *'with BFD'*)
6146 lt_cv_prog_gnu_ld=yes
6147 ;;
6148 *)
6149 lt_cv_prog_gnu_ld=no
6150 ;;
6151 esac
6152 fi
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6154 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6155 with_gnu_ld=$lt_cv_prog_gnu_ld
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6166 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6167 if ${lt_cv_path_NM+:} false; then :
6168 $as_echo_n "(cached) " >&6
6169 else
6170 if test -n "$NM"; then
6171 # Let the user override the test.
6172 lt_cv_path_NM=$NM
6173 else
6174 lt_nm_to_check=${ac_tool_prefix}nm
6175 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6176 lt_nm_to_check="$lt_nm_to_check nm"
6177 fi
6178 for lt_tmp_nm in $lt_nm_to_check; do
6179 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6180 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6181 IFS=$lt_save_ifs
6182 test -z "$ac_dir" && ac_dir=.
6183 tmp_nm=$ac_dir/$lt_tmp_nm
6184 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6185 # Check to see if the nm accepts a BSD-compat flag.
6186 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6187 # nm: unknown option "B" ignored
6188 # Tru64's nm complains that /dev/null is an invalid object file
6189 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6190 case $build_os in
6191 mingw*) lt_bad_file=conftest.nm/nofile ;;
6192 *) lt_bad_file=/dev/null ;;
6193 esac
6194 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6195 *$lt_bad_file* | *'Invalid file or object type'*)
6196 lt_cv_path_NM="$tmp_nm -B"
6197 break 2
6198 ;;
6199 *)
6200 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6201 */dev/null*)
6202 lt_cv_path_NM="$tmp_nm -p"
6203 break 2
6204 ;;
6205 *)
6206 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6207 continue # so that we can try to find one that supports BSD flags
6208 ;;
6209 esac
6210 ;;
6211 esac
6212 fi
6213 done
6214 IFS=$lt_save_ifs
6215 done
6216 : ${lt_cv_path_NM=no}
6217 fi
6218 fi
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6220 $as_echo "$lt_cv_path_NM" >&6; }
6221 if test no != "$lt_cv_path_NM"; then
6222 NM=$lt_cv_path_NM
6223 else
6224 # Didn't find any BSD compatible name lister, look for dumpbin.
6225 if test -n "$DUMPBIN"; then :
6226 # Let the user override the test.
6227 else
6228 if test -n "$ac_tool_prefix"; then
6229 for ac_prog in dumpbin "link -dump"
6230 do
6231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6232 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234 $as_echo_n "checking for $ac_word... " >&6; }
6235 if ${ac_cv_prog_DUMPBIN+:} false; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 if test -n "$DUMPBIN"; then
6239 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6240 else
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6243 do
6244 IFS=$as_save_IFS
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6248 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 break 2
6251 fi
6252 done
6253 done
6254 IFS=$as_save_IFS
6255
6256 fi
6257 fi
6258 DUMPBIN=$ac_cv_prog_DUMPBIN
6259 if test -n "$DUMPBIN"; then
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6261 $as_echo "$DUMPBIN" >&6; }
6262 else
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264 $as_echo "no" >&6; }
6265 fi
6266
6267
6268 test -n "$DUMPBIN" && break
6269 done
6270 fi
6271 if test -z "$DUMPBIN"; then
6272 ac_ct_DUMPBIN=$DUMPBIN
6273 for ac_prog in dumpbin "link -dump"
6274 do
6275 # Extract the first word of "$ac_prog", so it can be a program name with args.
6276 set dummy $ac_prog; ac_word=$2
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278 $as_echo_n "checking for $ac_word... " >&6; }
6279 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6280 $as_echo_n "(cached) " >&6
6281 else
6282 if test -n "$ac_ct_DUMPBIN"; then
6283 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6284 else
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 for as_dir in $PATH
6287 do
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6292 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 break 2
6295 fi
6296 done
6297 done
6298 IFS=$as_save_IFS
6299
6300 fi
6301 fi
6302 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6303 if test -n "$ac_ct_DUMPBIN"; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6305 $as_echo "$ac_ct_DUMPBIN" >&6; }
6306 else
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308 $as_echo "no" >&6; }
6309 fi
6310
6311
6312 test -n "$ac_ct_DUMPBIN" && break
6313 done
6314
6315 if test "x$ac_ct_DUMPBIN" = x; then
6316 DUMPBIN=":"
6317 else
6318 case $cross_compiling:$ac_tool_warned in
6319 yes:)
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6322 ac_tool_warned=yes ;;
6323 esac
6324 DUMPBIN=$ac_ct_DUMPBIN
6325 fi
6326 fi
6327
6328 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6329 *COFF*)
6330 DUMPBIN="$DUMPBIN -symbols -headers"
6331 ;;
6332 *)
6333 DUMPBIN=:
6334 ;;
6335 esac
6336 fi
6337
6338 if test : != "$DUMPBIN"; then
6339 NM=$DUMPBIN
6340 fi
6341 fi
6342 test -z "$NM" && NM=nm
6343
6344
6345
6346
6347
6348
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6350 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6351 if ${lt_cv_nm_interface+:} false; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 lt_cv_nm_interface="BSD nm"
6355 echo "int some_variable = 0;" > conftest.$ac_ext
6356 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6357 (eval "$ac_compile" 2>conftest.err)
6358 cat conftest.err >&5
6359 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6360 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6361 cat conftest.err >&5
6362 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6363 cat conftest.out >&5
6364 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6365 lt_cv_nm_interface="MS dumpbin"
6366 fi
6367 rm -f conftest*
6368 fi
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6370 $as_echo "$lt_cv_nm_interface" >&6; }
6371
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6373 $as_echo_n "checking whether ln -s works... " >&6; }
6374 LN_S=$as_ln_s
6375 if test "$LN_S" = "ln -s"; then
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6377 $as_echo "yes" >&6; }
6378 else
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6380 $as_echo "no, using $LN_S" >&6; }
6381 fi
6382
6383 # find the maximum length of command line arguments
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6385 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6386 if ${lt_cv_sys_max_cmd_len+:} false; then :
6387 $as_echo_n "(cached) " >&6
6388 else
6389 i=0
6390 teststring=ABCD
6391
6392 case $build_os in
6393 msdosdjgpp*)
6394 # On DJGPP, this test can blow up pretty badly due to problems in libc
6395 # (any single argument exceeding 2000 bytes causes a buffer overrun
6396 # during glob expansion). Even if it were fixed, the result of this
6397 # check would be larger than it should be.
6398 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6399 ;;
6400
6401 gnu*)
6402 # Under GNU Hurd, this test is not required because there is
6403 # no limit to the length of command line arguments.
6404 # Libtool will interpret -1 as no limit whatsoever
6405 lt_cv_sys_max_cmd_len=-1;
6406 ;;
6407
6408 cygwin* | mingw* | cegcc*)
6409 # On Win9x/ME, this test blows up -- it succeeds, but takes
6410 # about 5 minutes as the teststring grows exponentially.
6411 # Worse, since 9x/ME are not pre-emptively multitasking,
6412 # you end up with a "frozen" computer, even though with patience
6413 # the test eventually succeeds (with a max line length of 256k).
6414 # Instead, let's just punt: use the minimum linelength reported by
6415 # all of the supported platforms: 8192 (on NT/2K/XP).
6416 lt_cv_sys_max_cmd_len=8192;
6417 ;;
6418
6419 mint*)
6420 # On MiNT this can take a long time and run out of memory.
6421 lt_cv_sys_max_cmd_len=8192;
6422 ;;
6423
6424 amigaos*)
6425 # On AmigaOS with pdksh, this test takes hours, literally.
6426 # So we just punt and use a minimum line length of 8192.
6427 lt_cv_sys_max_cmd_len=8192;
6428 ;;
6429
6430 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6431 # This has been around since 386BSD, at least. Likely further.
6432 if test -x /sbin/sysctl; then
6433 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6434 elif test -x /usr/sbin/sysctl; then
6435 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6436 else
6437 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6438 fi
6439 # And add a safety zone
6440 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6441 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6442 ;;
6443
6444 interix*)
6445 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6446 lt_cv_sys_max_cmd_len=196608
6447 ;;
6448
6449 os2*)
6450 # The test takes a long time on OS/2.
6451 lt_cv_sys_max_cmd_len=8192
6452 ;;
6453
6454 osf*)
6455 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6456 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6457 # nice to cause kernel panics so lets avoid the loop below.
6458 # First set a reasonable default.
6459 lt_cv_sys_max_cmd_len=16384
6460 #
6461 if test -x /sbin/sysconfig; then
6462 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6463 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6464 esac
6465 fi
6466 ;;
6467 sco3.2v5*)
6468 lt_cv_sys_max_cmd_len=102400
6469 ;;
6470 sysv5* | sco5v6* | sysv4.2uw2*)
6471 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6472 if test -n "$kargmax"; then
6473 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6474 else
6475 lt_cv_sys_max_cmd_len=32768
6476 fi
6477 ;;
6478 *)
6479 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6480 if test -n "$lt_cv_sys_max_cmd_len" && \
6481 test undefined != "$lt_cv_sys_max_cmd_len"; then
6482 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6483 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6484 else
6485 # Make teststring a little bigger before we do anything with it.
6486 # a 1K string should be a reasonable start.
6487 for i in 1 2 3 4 5 6 7 8; do
6488 teststring=$teststring$teststring
6489 done
6490 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6491 # If test is not a shell built-in, we'll probably end up computing a
6492 # maximum length that is only half of the actual maximum length, but
6493 # we can't tell.
6494 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6495 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6496 test 17 != "$i" # 1/2 MB should be enough
6497 do
6498 i=`expr $i + 1`
6499 teststring=$teststring$teststring
6500 done
6501 # Only check the string length outside the loop.
6502 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6503 teststring=
6504 # Add a significant safety factor because C++ compilers can tack on
6505 # massive amounts of additional arguments before passing them to the
6506 # linker. It appears as though 1/2 is a usable value.
6507 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6508 fi
6509 ;;
6510 esac
6511
6512 fi
6513
6514 if test -n "$lt_cv_sys_max_cmd_len"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6516 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6517 else
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6519 $as_echo "none" >&6; }
6520 fi
6521 max_cmd_len=$lt_cv_sys_max_cmd_len
6522
6523
6524
6525
6526
6527
6528 : ${CP="cp -f"}
6529 : ${MV="mv -f"}
6530 : ${RM="rm -f"}
6531
6532 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6533 lt_unset=unset
6534 else
6535 lt_unset=false
6536 fi
6537
6538
6539
6540
6541
6542 # test EBCDIC or ASCII
6543 case `echo X|tr X '\101'` in
6544 A) # ASCII based system
6545 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6546 lt_SP2NL='tr \040 \012'
6547 lt_NL2SP='tr \015\012 \040\040'
6548 ;;
6549 *) # EBCDIC based system
6550 lt_SP2NL='tr \100 \n'
6551 lt_NL2SP='tr \r\n \100\100'
6552 ;;
6553 esac
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6564 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6565 if ${lt_cv_to_host_file_cmd+:} false; then :
6566 $as_echo_n "(cached) " >&6
6567 else
6568 case $host in
6569 *-*-mingw* )
6570 case $build in
6571 *-*-mingw* ) # actually msys
6572 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6573 ;;
6574 *-*-cygwin* )
6575 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6576 ;;
6577 * ) # otherwise, assume *nix
6578 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6579 ;;
6580 esac
6581 ;;
6582 *-*-cygwin* )
6583 case $build in
6584 *-*-mingw* ) # actually msys
6585 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6586 ;;
6587 *-*-cygwin* )
6588 lt_cv_to_host_file_cmd=func_convert_file_noop
6589 ;;
6590 * ) # otherwise, assume *nix
6591 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6592 ;;
6593 esac
6594 ;;
6595 * ) # unhandled hosts (and "normal" native builds)
6596 lt_cv_to_host_file_cmd=func_convert_file_noop
6597 ;;
6598 esac
6599
6600 fi
6601
6602 to_host_file_cmd=$lt_cv_to_host_file_cmd
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6604 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6605
6606
6607
6608
6609
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6611 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6612 if ${lt_cv_to_tool_file_cmd+:} false; then :
6613 $as_echo_n "(cached) " >&6
6614 else
6615 #assume ordinary cross tools, or native build.
6616 lt_cv_to_tool_file_cmd=func_convert_file_noop
6617 case $host in
6618 *-*-mingw* )
6619 case $build in
6620 *-*-mingw* ) # actually msys
6621 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6622 ;;
6623 esac
6624 ;;
6625 esac
6626
6627 fi
6628
6629 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6631 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6632
6633
6634
6635
6636
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6638 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6639 if ${lt_cv_ld_reload_flag+:} false; then :
6640 $as_echo_n "(cached) " >&6
6641 else
6642 lt_cv_ld_reload_flag='-r'
6643 fi
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6645 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6646 reload_flag=$lt_cv_ld_reload_flag
6647 case $reload_flag in
6648 "" | " "*) ;;
6649 *) reload_flag=" $reload_flag" ;;
6650 esac
6651 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6652 case $host_os in
6653 cygwin* | mingw* | pw32* | cegcc*)
6654 if test yes != "$GCC"; then
6655 reload_cmds=false
6656 fi
6657 ;;
6658 darwin*)
6659 if test yes = "$GCC"; then
6660 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6661 else
6662 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6663 fi
6664 ;;
6665 esac
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675 if test -n "$ac_tool_prefix"; then
6676 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6677 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if ${ac_cv_prog_OBJDUMP+:} false; then :
6681 $as_echo_n "(cached) " >&6
6682 else
6683 if test -n "$OBJDUMP"; then
6684 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6685 else
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6688 do
6689 IFS=$as_save_IFS
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6693 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 break 2
6696 fi
6697 done
6698 done
6699 IFS=$as_save_IFS
6700
6701 fi
6702 fi
6703 OBJDUMP=$ac_cv_prog_OBJDUMP
6704 if test -n "$OBJDUMP"; then
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6706 $as_echo "$OBJDUMP" >&6; }
6707 else
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 $as_echo "no" >&6; }
6710 fi
6711
6712
6713 fi
6714 if test -z "$ac_cv_prog_OBJDUMP"; then
6715 ac_ct_OBJDUMP=$OBJDUMP
6716 # Extract the first word of "objdump", so it can be a program name with args.
6717 set dummy objdump; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6721 $as_echo_n "(cached) " >&6
6722 else
6723 if test -n "$ac_ct_OBJDUMP"; then
6724 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 break 2
6736 fi
6737 done
6738 done
6739 IFS=$as_save_IFS
6740
6741 fi
6742 fi
6743 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6744 if test -n "$ac_ct_OBJDUMP"; then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6746 $as_echo "$ac_ct_OBJDUMP" >&6; }
6747 else
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6750 fi
6751
6752 if test "x$ac_ct_OBJDUMP" = x; then
6753 OBJDUMP="false"
6754 else
6755 case $cross_compiling:$ac_tool_warned in
6756 yes:)
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6759 ac_tool_warned=yes ;;
6760 esac
6761 OBJDUMP=$ac_ct_OBJDUMP
6762 fi
6763 else
6764 OBJDUMP="$ac_cv_prog_OBJDUMP"
6765 fi
6766
6767 test -z "$OBJDUMP" && OBJDUMP=objdump
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6778 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6779 if ${lt_cv_deplibs_check_method+:} false; then :
6780 $as_echo_n "(cached) " >&6
6781 else
6782 lt_cv_file_magic_cmd='$MAGIC_CMD'
6783 lt_cv_file_magic_test_file=
6784 lt_cv_deplibs_check_method='unknown'
6785 # Need to set the preceding variable on all platforms that support
6786 # interlibrary dependencies.
6787 # 'none' -- dependencies not supported.
6788 # 'unknown' -- same as none, but documents that we really don't know.
6789 # 'pass_all' -- all dependencies passed with no checks.
6790 # 'test_compile' -- check by making test program.
6791 # 'file_magic [[regex]]' -- check by looking for files in library path
6792 # that responds to the $file_magic_cmd with a given extended regex.
6793 # If you have 'file' or equivalent on your system and you're not sure
6794 # whether 'pass_all' will *always* work, you probably want this one.
6795
6796 case $host_os in
6797 aix[4-9]*)
6798 lt_cv_deplibs_check_method=pass_all
6799 ;;
6800
6801 beos*)
6802 lt_cv_deplibs_check_method=pass_all
6803 ;;
6804
6805 bsdi[45]*)
6806 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6807 lt_cv_file_magic_cmd='/usr/bin/file -L'
6808 lt_cv_file_magic_test_file=/shlib/libc.so
6809 ;;
6810
6811 cygwin*)
6812 # func_win32_libid is a shell function defined in ltmain.sh
6813 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6814 lt_cv_file_magic_cmd='func_win32_libid'
6815 ;;
6816
6817 mingw* | pw32*)
6818 # Base MSYS/MinGW do not provide the 'file' command needed by
6819 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6820 # unless we find 'file', for example because we are cross-compiling.
6821 if ( file / ) >/dev/null 2>&1; then
6822 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6823 lt_cv_file_magic_cmd='func_win32_libid'
6824 else
6825 # Keep this pattern in sync with the one in func_win32_libid.
6826 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6827 lt_cv_file_magic_cmd='$OBJDUMP -f'
6828 fi
6829 ;;
6830
6831 cegcc*)
6832 # use the weaker test based on 'objdump'. See mingw*.
6833 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6834 lt_cv_file_magic_cmd='$OBJDUMP -f'
6835 ;;
6836
6837 darwin* | rhapsody*)
6838 lt_cv_deplibs_check_method=pass_all
6839 ;;
6840
6841 freebsd* | dragonfly*)
6842 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6843 case $host_cpu in
6844 i*86 )
6845 # Not sure whether the presence of OpenBSD here was a mistake.
6846 # Let's accept both of them until this is cleared up.
6847 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6848 lt_cv_file_magic_cmd=/usr/bin/file
6849 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6850 ;;
6851 esac
6852 else
6853 lt_cv_deplibs_check_method=pass_all
6854 fi
6855 ;;
6856
6857 haiku*)
6858 lt_cv_deplibs_check_method=pass_all
6859 ;;
6860
6861 hpux10.20* | hpux11*)
6862 lt_cv_file_magic_cmd=/usr/bin/file
6863 case $host_cpu in
6864 ia64*)
6865 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6866 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6867 ;;
6868 hppa*64*)
6869 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]'
6870 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6871 ;;
6872 *)
6873 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6874 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6875 ;;
6876 esac
6877 ;;
6878
6879 interix[3-9]*)
6880 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6882 ;;
6883
6884 irix5* | irix6* | nonstopux*)
6885 case $LD in
6886 *-32|*"-32 ") libmagic=32-bit;;
6887 *-n32|*"-n32 ") libmagic=N32;;
6888 *-64|*"-64 ") libmagic=64-bit;;
6889 *) libmagic=never-match;;
6890 esac
6891 lt_cv_deplibs_check_method=pass_all
6892 ;;
6893
6894 # This must be glibc/ELF.
6895 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6896 lt_cv_deplibs_check_method=pass_all
6897 ;;
6898
6899 netbsd*)
6900 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6901 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6902 else
6903 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6904 fi
6905 ;;
6906
6907 newos6*)
6908 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6909 lt_cv_file_magic_cmd=/usr/bin/file
6910 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6911 ;;
6912
6913 *nto* | *qnx*)
6914 lt_cv_deplibs_check_method=pass_all
6915 ;;
6916
6917 openbsd* | bitrig*)
6918 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6919 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6920 else
6921 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6922 fi
6923 ;;
6924
6925 osf3* | osf4* | osf5*)
6926 lt_cv_deplibs_check_method=pass_all
6927 ;;
6928
6929 rdos*)
6930 lt_cv_deplibs_check_method=pass_all
6931 ;;
6932
6933 solaris*)
6934 lt_cv_deplibs_check_method=pass_all
6935 ;;
6936
6937 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6938 lt_cv_deplibs_check_method=pass_all
6939 ;;
6940
6941 sysv4 | sysv4.3*)
6942 case $host_vendor in
6943 motorola)
6944 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]'
6945 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6946 ;;
6947 ncr)
6948 lt_cv_deplibs_check_method=pass_all
6949 ;;
6950 sequent)
6951 lt_cv_file_magic_cmd='/bin/file'
6952 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6953 ;;
6954 sni)
6955 lt_cv_file_magic_cmd='/bin/file'
6956 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6957 lt_cv_file_magic_test_file=/lib/libc.so
6958 ;;
6959 siemens)
6960 lt_cv_deplibs_check_method=pass_all
6961 ;;
6962 pc)
6963 lt_cv_deplibs_check_method=pass_all
6964 ;;
6965 esac
6966 ;;
6967
6968 tpf*)
6969 lt_cv_deplibs_check_method=pass_all
6970 ;;
6971 os2*)
6972 lt_cv_deplibs_check_method=pass_all
6973 ;;
6974 esac
6975
6976 fi
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6978 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6979
6980 file_magic_glob=
6981 want_nocaseglob=no
6982 if test "$build" = "$host"; then
6983 case $host_os in
6984 mingw* | pw32*)
6985 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6986 want_nocaseglob=yes
6987 else
6988 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6989 fi
6990 ;;
6991 esac
6992 fi
6993
6994 file_magic_cmd=$lt_cv_file_magic_cmd
6995 deplibs_check_method=$lt_cv_deplibs_check_method
6996 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019 if test -n "$ac_tool_prefix"; then
7020 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7021 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023 $as_echo_n "checking for $ac_word... " >&6; }
7024 if ${ac_cv_prog_DLLTOOL+:} false; then :
7025 $as_echo_n "(cached) " >&6
7026 else
7027 if test -n "$DLLTOOL"; then
7028 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7029 else
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 for as_dir in $PATH
7032 do
7033 IFS=$as_save_IFS
7034 test -z "$as_dir" && as_dir=.
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7037 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7039 break 2
7040 fi
7041 done
7042 done
7043 IFS=$as_save_IFS
7044
7045 fi
7046 fi
7047 DLLTOOL=$ac_cv_prog_DLLTOOL
7048 if test -n "$DLLTOOL"; then
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7050 $as_echo "$DLLTOOL" >&6; }
7051 else
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 $as_echo "no" >&6; }
7054 fi
7055
7056
7057 fi
7058 if test -z "$ac_cv_prog_DLLTOOL"; then
7059 ac_ct_DLLTOOL=$DLLTOOL
7060 # Extract the first word of "dlltool", so it can be a program name with args.
7061 set dummy dlltool; ac_word=$2
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 $as_echo_n "checking for $ac_word... " >&6; }
7064 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7065 $as_echo_n "(cached) " >&6
7066 else
7067 if test -n "$ac_ct_DLLTOOL"; then
7068 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7069 else
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7072 do
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7077 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 break 2
7080 fi
7081 done
7082 done
7083 IFS=$as_save_IFS
7084
7085 fi
7086 fi
7087 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7088 if test -n "$ac_ct_DLLTOOL"; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7090 $as_echo "$ac_ct_DLLTOOL" >&6; }
7091 else
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093 $as_echo "no" >&6; }
7094 fi
7095
7096 if test "x$ac_ct_DLLTOOL" = x; then
7097 DLLTOOL="false"
7098 else
7099 case $cross_compiling:$ac_tool_warned in
7100 yes:)
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7103 ac_tool_warned=yes ;;
7104 esac
7105 DLLTOOL=$ac_ct_DLLTOOL
7106 fi
7107 else
7108 DLLTOOL="$ac_cv_prog_DLLTOOL"
7109 fi
7110
7111 test -z "$DLLTOOL" && DLLTOOL=dlltool
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7123 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7124 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7125 $as_echo_n "(cached) " >&6
7126 else
7127 lt_cv_sharedlib_from_linklib_cmd='unknown'
7128
7129 case $host_os in
7130 cygwin* | mingw* | pw32* | cegcc*)
7131 # two different shell functions defined in ltmain.sh;
7132 # decide which one to use based on capabilities of $DLLTOOL
7133 case `$DLLTOOL --help 2>&1` in
7134 *--identify-strict*)
7135 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7136 ;;
7137 *)
7138 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7139 ;;
7140 esac
7141 ;;
7142 *)
7143 # fallback: assume linklib IS sharedlib
7144 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7145 ;;
7146 esac
7147
7148 fi
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7150 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7151 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7152 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7153
7154
7155
7156
7157
7158
7159
7160 if test -n "$ac_tool_prefix"; then
7161 for ac_prog in ar
7162 do
7163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166 $as_echo_n "checking for $ac_word... " >&6; }
7167 if ${ac_cv_prog_AR+:} false; then :
7168 $as_echo_n "(cached) " >&6
7169 else
7170 if test -n "$AR"; then
7171 ac_cv_prog_AR="$AR" # Let the user override the test.
7172 else
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7175 do
7176 IFS=$as_save_IFS
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7180 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7182 break 2
7183 fi
7184 done
7185 done
7186 IFS=$as_save_IFS
7187
7188 fi
7189 fi
7190 AR=$ac_cv_prog_AR
7191 if test -n "$AR"; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7193 $as_echo "$AR" >&6; }
7194 else
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7197 fi
7198
7199
7200 test -n "$AR" && break
7201 done
7202 fi
7203 if test -z "$AR"; then
7204 ac_ct_AR=$AR
7205 for ac_prog in ar
7206 do
7207 # Extract the first word of "$ac_prog", so it can be a program name with args.
7208 set dummy $ac_prog; ac_word=$2
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7210 $as_echo_n "checking for $ac_word... " >&6; }
7211 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7212 $as_echo_n "(cached) " >&6
7213 else
7214 if test -n "$ac_ct_AR"; then
7215 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7216 else
7217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 for as_dir in $PATH
7219 do
7220 IFS=$as_save_IFS
7221 test -z "$as_dir" && as_dir=.
7222 for ac_exec_ext in '' $ac_executable_extensions; do
7223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7224 ac_cv_prog_ac_ct_AR="$ac_prog"
7225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7226 break 2
7227 fi
7228 done
7229 done
7230 IFS=$as_save_IFS
7231
7232 fi
7233 fi
7234 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7235 if test -n "$ac_ct_AR"; then
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7237 $as_echo "$ac_ct_AR" >&6; }
7238 else
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240 $as_echo "no" >&6; }
7241 fi
7242
7243
7244 test -n "$ac_ct_AR" && break
7245 done
7246
7247 if test "x$ac_ct_AR" = x; then
7248 AR="false"
7249 else
7250 case $cross_compiling:$ac_tool_warned in
7251 yes:)
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7254 ac_tool_warned=yes ;;
7255 esac
7256 AR=$ac_ct_AR
7257 fi
7258 fi
7259
7260 : ${AR=ar}
7261 : ${AR_FLAGS=cru}
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7274 $as_echo_n "checking for archiver @FILE support... " >&6; }
7275 if ${lt_cv_ar_at_file+:} false; then :
7276 $as_echo_n "(cached) " >&6
7277 else
7278 lt_cv_ar_at_file=no
7279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280 /* end confdefs.h. */
7281
7282 int
7283 main ()
7284 {
7285
7286 ;
7287 return 0;
7288 }
7289 _ACEOF
7290 if ac_fn_c_try_compile "$LINENO"; then :
7291 echo conftest.$ac_objext > conftest.lst
7292 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7294 (eval $lt_ar_try) 2>&5
7295 ac_status=$?
7296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7297 test $ac_status = 0; }
7298 if test 0 -eq "$ac_status"; then
7299 # Ensure the archiver fails upon bogus file names.
7300 rm -f conftest.$ac_objext libconftest.a
7301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7302 (eval $lt_ar_try) 2>&5
7303 ac_status=$?
7304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7305 test $ac_status = 0; }
7306 if test 0 -ne "$ac_status"; then
7307 lt_cv_ar_at_file=@
7308 fi
7309 fi
7310 rm -f conftest.* libconftest.a
7311
7312 fi
7313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7314
7315 fi
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7317 $as_echo "$lt_cv_ar_at_file" >&6; }
7318
7319 if test no = "$lt_cv_ar_at_file"; then
7320 archiver_list_spec=
7321 else
7322 archiver_list_spec=$lt_cv_ar_at_file
7323 fi
7324
7325
7326
7327
7328
7329
7330
7331 if test -n "$ac_tool_prefix"; then
7332 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7333 set dummy ${ac_tool_prefix}strip; ac_word=$2
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335 $as_echo_n "checking for $ac_word... " >&6; }
7336 if ${ac_cv_prog_STRIP+:} false; then :
7337 $as_echo_n "(cached) " >&6
7338 else
7339 if test -n "$STRIP"; then
7340 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7341 else
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 for as_dir in $PATH
7344 do
7345 IFS=$as_save_IFS
7346 test -z "$as_dir" && as_dir=.
7347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7349 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 break 2
7352 fi
7353 done
7354 done
7355 IFS=$as_save_IFS
7356
7357 fi
7358 fi
7359 STRIP=$ac_cv_prog_STRIP
7360 if test -n "$STRIP"; then
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7362 $as_echo "$STRIP" >&6; }
7363 else
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365 $as_echo "no" >&6; }
7366 fi
7367
7368
7369 fi
7370 if test -z "$ac_cv_prog_STRIP"; then
7371 ac_ct_STRIP=$STRIP
7372 # Extract the first word of "strip", so it can be a program name with args.
7373 set dummy strip; ac_word=$2
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375 $as_echo_n "checking for $ac_word... " >&6; }
7376 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7377 $as_echo_n "(cached) " >&6
7378 else
7379 if test -n "$ac_ct_STRIP"; then
7380 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7381 else
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7384 do
7385 IFS=$as_save_IFS
7386 test -z "$as_dir" && as_dir=.
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7389 ac_cv_prog_ac_ct_STRIP="strip"
7390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 break 2
7392 fi
7393 done
7394 done
7395 IFS=$as_save_IFS
7396
7397 fi
7398 fi
7399 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7400 if test -n "$ac_ct_STRIP"; then
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7402 $as_echo "$ac_ct_STRIP" >&6; }
7403 else
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 $as_echo "no" >&6; }
7406 fi
7407
7408 if test "x$ac_ct_STRIP" = x; then
7409 STRIP=":"
7410 else
7411 case $cross_compiling:$ac_tool_warned in
7412 yes:)
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7415 ac_tool_warned=yes ;;
7416 esac
7417 STRIP=$ac_ct_STRIP
7418 fi
7419 else
7420 STRIP="$ac_cv_prog_STRIP"
7421 fi
7422
7423 test -z "$STRIP" && STRIP=:
7424
7425
7426
7427
7428
7429
7430 if test -n "$ac_tool_prefix"; then
7431 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7432 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7434 $as_echo_n "checking for $ac_word... " >&6; }
7435 if ${ac_cv_prog_RANLIB+:} false; then :
7436 $as_echo_n "(cached) " >&6
7437 else
7438 if test -n "$RANLIB"; then
7439 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7440 else
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 for as_dir in $PATH
7443 do
7444 IFS=$as_save_IFS
7445 test -z "$as_dir" && as_dir=.
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 break 2
7451 fi
7452 done
7453 done
7454 IFS=$as_save_IFS
7455
7456 fi
7457 fi
7458 RANLIB=$ac_cv_prog_RANLIB
7459 if test -n "$RANLIB"; then
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7461 $as_echo "$RANLIB" >&6; }
7462 else
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7464 $as_echo "no" >&6; }
7465 fi
7466
7467
7468 fi
7469 if test -z "$ac_cv_prog_RANLIB"; then
7470 ac_ct_RANLIB=$RANLIB
7471 # Extract the first word of "ranlib", so it can be a program name with args.
7472 set dummy ranlib; ac_word=$2
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7474 $as_echo_n "checking for $ac_word... " >&6; }
7475 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7476 $as_echo_n "(cached) " >&6
7477 else
7478 if test -n "$ac_ct_RANLIB"; then
7479 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7480 else
7481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482 for as_dir in $PATH
7483 do
7484 IFS=$as_save_IFS
7485 test -z "$as_dir" && as_dir=.
7486 for ac_exec_ext in '' $ac_executable_extensions; do
7487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7488 ac_cv_prog_ac_ct_RANLIB="ranlib"
7489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 break 2
7491 fi
7492 done
7493 done
7494 IFS=$as_save_IFS
7495
7496 fi
7497 fi
7498 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7499 if test -n "$ac_ct_RANLIB"; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7501 $as_echo "$ac_ct_RANLIB" >&6; }
7502 else
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504 $as_echo "no" >&6; }
7505 fi
7506
7507 if test "x$ac_ct_RANLIB" = x; then
7508 RANLIB=":"
7509 else
7510 case $cross_compiling:$ac_tool_warned in
7511 yes:)
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7514 ac_tool_warned=yes ;;
7515 esac
7516 RANLIB=$ac_ct_RANLIB
7517 fi
7518 else
7519 RANLIB="$ac_cv_prog_RANLIB"
7520 fi
7521
7522 test -z "$RANLIB" && RANLIB=:
7523
7524
7525
7526
7527
7528
7529 # Determine commands to create old-style static archives.
7530 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7531 old_postinstall_cmds='chmod 644 $oldlib'
7532 old_postuninstall_cmds=
7533
7534 if test -n "$RANLIB"; then
7535 case $host_os in
7536 bitrig* | openbsd*)
7537 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7538 ;;
7539 *)
7540 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7541 ;;
7542 esac
7543 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7544 fi
7545
7546 case $host_os in
7547 darwin*)
7548 lock_old_archive_extraction=yes ;;
7549 *)
7550 lock_old_archive_extraction=no ;;
7551 esac
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591 # If no C compiler was specified, use CC.
7592 LTCC=${LTCC-"$CC"}
7593
7594 # If no C compiler flags were specified, use CFLAGS.
7595 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7596
7597 # Allow CC to be a program name with arguments.
7598 compiler=$CC
7599
7600
7601 # Check for command to grab the raw symbol name followed by C symbol from nm.
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7603 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7604 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7605 $as_echo_n "(cached) " >&6
7606 else
7607
7608 # These are sane defaults that work on at least a few old systems.
7609 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7610
7611 # Character class describing NM global symbol codes.
7612 symcode='[BCDEGRST]'
7613
7614 # Regexp to match symbols that can be accessed directly from C.
7615 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7616
7617 # Define system-specific variables.
7618 case $host_os in
7619 aix*)
7620 symcode='[BCDT]'
7621 ;;
7622 cygwin* | mingw* | pw32* | cegcc*)
7623 symcode='[ABCDGISTW]'
7624 ;;
7625 hpux*)
7626 if test ia64 = "$host_cpu"; then
7627 symcode='[ABCDEGRST]'
7628 fi
7629 ;;
7630 irix* | nonstopux*)
7631 symcode='[BCDEGRST]'
7632 ;;
7633 osf*)
7634 symcode='[BCDEGQRST]'
7635 ;;
7636 solaris*)
7637 symcode='[BDRT]'
7638 ;;
7639 sco3.2v5*)
7640 symcode='[DT]'
7641 ;;
7642 sysv4.2uw2*)
7643 symcode='[DT]'
7644 ;;
7645 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7646 symcode='[ABDT]'
7647 ;;
7648 sysv4)
7649 symcode='[DFNSTU]'
7650 ;;
7651 esac
7652
7653 # If we're using GNU nm, then use its standard symbol codes.
7654 case `$NM -V 2>&1` in
7655 *GNU* | *'with BFD'*)
7656 symcode='[ABCDGIRSTW]' ;;
7657 esac
7658
7659 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7660 # Gets list of data symbols to import.
7661 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7662 # Adjust the below global symbol transforms to fixup imported variables.
7663 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7664 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7665 lt_c_name_lib_hook="\
7666 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7667 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7668 else
7669 # Disable hooks by default.
7670 lt_cv_sys_global_symbol_to_import=
7671 lt_cdecl_hook=
7672 lt_c_name_hook=
7673 lt_c_name_lib_hook=
7674 fi
7675
7676 # Transform an extracted symbol line into a proper C declaration.
7677 # Some systems (esp. on ia64) link data and code symbols differently,
7678 # so use this general approach.
7679 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7680 $lt_cdecl_hook\
7681 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7682 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7683
7684 # Transform an extracted symbol line into symbol name and symbol address
7685 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7686 $lt_c_name_hook\
7687 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7688 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7689
7690 # Transform an extracted symbol line into symbol name with lib prefix and
7691 # symbol address.
7692 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7693 $lt_c_name_lib_hook\
7694 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7695 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7696 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7697
7698 # Handle CRLF in mingw tool chain
7699 opt_cr=
7700 case $build_os in
7701 mingw*)
7702 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7703 ;;
7704 esac
7705
7706 # Try without a prefix underscore, then with it.
7707 for ac_symprfx in "" "_"; do
7708
7709 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7710 symxfrm="\\1 $ac_symprfx\\2 \\2"
7711
7712 # Write the raw and C identifiers.
7713 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7714 # Fake it for dumpbin and say T for any non-static function,
7715 # D for any global variable and I for any imported variable.
7716 # Also find C++ and __fastcall symbols from MSVC++,
7717 # which start with @ or ?.
7718 lt_cv_sys_global_symbol_pipe="$AWK '"\
7719 " {last_section=section; section=\$ 3};"\
7720 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7721 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7722 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7723 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7724 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7725 " \$ 0!~/External *\|/{next};"\
7726 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7727 " {if(hide[section]) next};"\
7728 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7729 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7730 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7731 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7732 " ' prfx=^$ac_symprfx"
7733 else
7734 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7735 fi
7736 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7737
7738 # Check to see that the pipe works correctly.
7739 pipe_works=no
7740
7741 rm -f conftest*
7742 cat > conftest.$ac_ext <<_LT_EOF
7743 #ifdef __cplusplus
7744 extern "C" {
7745 #endif
7746 char nm_test_var;
7747 void nm_test_func(void);
7748 void nm_test_func(void){}
7749 #ifdef __cplusplus
7750 }
7751 #endif
7752 int main(){nm_test_var='a';nm_test_func();return(0);}
7753 _LT_EOF
7754
7755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7756 (eval $ac_compile) 2>&5
7757 ac_status=$?
7758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7759 test $ac_status = 0; }; then
7760 # Now try to grab the symbols.
7761 nlist=conftest.nm
7762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7763 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7764 ac_status=$?
7765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7766 test $ac_status = 0; } && test -s "$nlist"; then
7767 # Try sorting and uniquifying the output.
7768 if sort "$nlist" | uniq > "$nlist"T; then
7769 mv -f "$nlist"T "$nlist"
7770 else
7771 rm -f "$nlist"T
7772 fi
7773
7774 # Make sure that we snagged all the symbols we need.
7775 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7776 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7777 cat <<_LT_EOF > conftest.$ac_ext
7778 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7779 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7780 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7781 relocations are performed -- see ld's documentation on pseudo-relocs. */
7782 # define LT_DLSYM_CONST
7783 #elif defined __osf__
7784 /* This system does not cope well with relocations in const data. */
7785 # define LT_DLSYM_CONST
7786 #else
7787 # define LT_DLSYM_CONST const
7788 #endif
7789
7790 #ifdef __cplusplus
7791 extern "C" {
7792 #endif
7793
7794 _LT_EOF
7795 # Now generate the symbol file.
7796 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7797
7798 cat <<_LT_EOF >> conftest.$ac_ext
7799
7800 /* The mapping between symbol names and symbols. */
7801 LT_DLSYM_CONST struct {
7802 const char *name;
7803 void *address;
7804 }
7805 lt__PROGRAM__LTX_preloaded_symbols[] =
7806 {
7807 { "@PROGRAM@", (void *) 0 },
7808 _LT_EOF
7809 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7810 cat <<\_LT_EOF >> conftest.$ac_ext
7811 {0, (void *) 0}
7812 };
7813
7814 /* This works around a problem in FreeBSD linker */
7815 #ifdef FREEBSD_WORKAROUND
7816 static const void *lt_preloaded_setup() {
7817 return lt__PROGRAM__LTX_preloaded_symbols;
7818 }
7819 #endif
7820
7821 #ifdef __cplusplus
7822 }
7823 #endif
7824 _LT_EOF
7825 # Now try linking the two files.
7826 mv conftest.$ac_objext conftstm.$ac_objext
7827 lt_globsym_save_LIBS=$LIBS
7828 lt_globsym_save_CFLAGS=$CFLAGS
7829 LIBS=conftstm.$ac_objext
7830 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7832 (eval $ac_link) 2>&5
7833 ac_status=$?
7834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7835 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7836 pipe_works=yes
7837 fi
7838 LIBS=$lt_globsym_save_LIBS
7839 CFLAGS=$lt_globsym_save_CFLAGS
7840 else
7841 echo "cannot find nm_test_func in $nlist" >&5
7842 fi
7843 else
7844 echo "cannot find nm_test_var in $nlist" >&5
7845 fi
7846 else
7847 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7848 fi
7849 else
7850 echo "$progname: failed program was:" >&5
7851 cat conftest.$ac_ext >&5
7852 fi
7853 rm -rf conftest* conftst*
7854
7855 # Do not use the global_symbol_pipe unless it works.
7856 if test yes = "$pipe_works"; then
7857 break
7858 else
7859 lt_cv_sys_global_symbol_pipe=
7860 fi
7861 done
7862
7863 fi
7864
7865 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7866 lt_cv_sys_global_symbol_to_cdecl=
7867 fi
7868 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7870 $as_echo "failed" >&6; }
7871 else
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7873 $as_echo "ok" >&6; }
7874 fi
7875
7876 # Response file support.
7877 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7878 nm_file_list_spec='@'
7879 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7880 nm_file_list_spec='@'
7881 fi
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7920 $as_echo_n "checking for sysroot... " >&6; }
7921
7922 # Check whether --with-sysroot was given.
7923 if test "${with_sysroot+set}" = set; then :
7924 withval=$with_sysroot;
7925 else
7926 with_sysroot=no
7927 fi
7928
7929
7930 lt_sysroot=
7931 case $with_sysroot in #(
7932 yes)
7933 if test yes = "$GCC"; then
7934 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7935 fi
7936 ;; #(
7937 /*)
7938 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7939 ;; #(
7940 no|'')
7941 ;; #(
7942 *)
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7944 $as_echo "$with_sysroot" >&6; }
7945 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7946 ;;
7947 esac
7948
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7950 $as_echo "${lt_sysroot:-no}" >&6; }
7951
7952
7953
7954
7955
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7957 $as_echo_n "checking for a working dd... " >&6; }
7958 if ${ac_cv_path_lt_DD+:} false; then :
7959 $as_echo_n "(cached) " >&6
7960 else
7961 printf 0123456789abcdef0123456789abcdef >conftest.i
7962 cat conftest.i conftest.i >conftest2.i
7963 : ${lt_DD:=$DD}
7964 if test -z "$lt_DD"; then
7965 ac_path_lt_DD_found=false
7966 # Loop through the user's path and test for each of PROGNAME-LIST
7967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968 for as_dir in $PATH
7969 do
7970 IFS=$as_save_IFS
7971 test -z "$as_dir" && as_dir=.
7972 for ac_prog in dd; do
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7975 as_fn_executable_p "$ac_path_lt_DD" || continue
7976 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7977 cmp -s conftest.i conftest.out \
7978 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7979 fi
7980 $ac_path_lt_DD_found && break 3
7981 done
7982 done
7983 done
7984 IFS=$as_save_IFS
7985 if test -z "$ac_cv_path_lt_DD"; then
7986 :
7987 fi
7988 else
7989 ac_cv_path_lt_DD=$lt_DD
7990 fi
7991
7992 rm -f conftest.i conftest2.i conftest.out
7993 fi
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7995 $as_echo "$ac_cv_path_lt_DD" >&6; }
7996
7997
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7999 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8000 if ${lt_cv_truncate_bin+:} false; then :
8001 $as_echo_n "(cached) " >&6
8002 else
8003 printf 0123456789abcdef0123456789abcdef >conftest.i
8004 cat conftest.i conftest.i >conftest2.i
8005 lt_cv_truncate_bin=
8006 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8007 cmp -s conftest.i conftest.out \
8008 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8009 fi
8010 rm -f conftest.i conftest2.i conftest.out
8011 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8012 fi
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8014 $as_echo "$lt_cv_truncate_bin" >&6; }
8015
8016
8017
8018
8019
8020
8021
8022 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8023 func_cc_basename ()
8024 {
8025 for cc_temp in $*""; do
8026 case $cc_temp in
8027 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8028 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8029 \-*) ;;
8030 *) break;;
8031 esac
8032 done
8033 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8034 }
8035
8036 # Check whether --enable-libtool-lock was given.
8037 if test "${enable_libtool_lock+set}" = set; then :
8038 enableval=$enable_libtool_lock;
8039 fi
8040
8041 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8042
8043 # Some flags need to be propagated to the compiler or linker for good
8044 # libtool support.
8045 case $host in
8046 ia64-*-hpux*)
8047 # Find out what ABI is being produced by ac_compile, and set mode
8048 # options accordingly.
8049 echo 'int i;' > conftest.$ac_ext
8050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8051 (eval $ac_compile) 2>&5
8052 ac_status=$?
8053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8054 test $ac_status = 0; }; then
8055 case `/usr/bin/file conftest.$ac_objext` in
8056 *ELF-32*)
8057 HPUX_IA64_MODE=32
8058 ;;
8059 *ELF-64*)
8060 HPUX_IA64_MODE=64
8061 ;;
8062 esac
8063 fi
8064 rm -rf conftest*
8065 ;;
8066 *-*-irix6*)
8067 # Find out what ABI is being produced by ac_compile, and set linker
8068 # options accordingly.
8069 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8071 (eval $ac_compile) 2>&5
8072 ac_status=$?
8073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8074 test $ac_status = 0; }; then
8075 if test yes = "$lt_cv_prog_gnu_ld"; then
8076 case `/usr/bin/file conftest.$ac_objext` in
8077 *32-bit*)
8078 LD="${LD-ld} -melf32bsmip"
8079 ;;
8080 *N32*)
8081 LD="${LD-ld} -melf32bmipn32"
8082 ;;
8083 *64-bit*)
8084 LD="${LD-ld} -melf64bmip"
8085 ;;
8086 esac
8087 else
8088 case `/usr/bin/file conftest.$ac_objext` in
8089 *32-bit*)
8090 LD="${LD-ld} -32"
8091 ;;
8092 *N32*)
8093 LD="${LD-ld} -n32"
8094 ;;
8095 *64-bit*)
8096 LD="${LD-ld} -64"
8097 ;;
8098 esac
8099 fi
8100 fi
8101 rm -rf conftest*
8102 ;;
8103
8104 mips64*-*linux*)
8105 # Find out what ABI is being produced by ac_compile, and set linker
8106 # options accordingly.
8107 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8109 (eval $ac_compile) 2>&5
8110 ac_status=$?
8111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8112 test $ac_status = 0; }; then
8113 emul=elf
8114 case `/usr/bin/file conftest.$ac_objext` in
8115 *32-bit*)
8116 emul="${emul}32"
8117 ;;
8118 *64-bit*)
8119 emul="${emul}64"
8120 ;;
8121 esac
8122 case `/usr/bin/file conftest.$ac_objext` in
8123 *MSB*)
8124 emul="${emul}btsmip"
8125 ;;
8126 *LSB*)
8127 emul="${emul}ltsmip"
8128 ;;
8129 esac
8130 case `/usr/bin/file conftest.$ac_objext` in
8131 *N32*)
8132 emul="${emul}n32"
8133 ;;
8134 esac
8135 LD="${LD-ld} -m $emul"
8136 fi
8137 rm -rf conftest*
8138 ;;
8139
8140 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8141 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8142 # Find out what ABI is being produced by ac_compile, and set linker
8143 # options accordingly. Note that the listed cases only cover the
8144 # situations where additional linker options are needed (such as when
8145 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8146 # vice versa); the common cases where no linker options are needed do
8147 # not appear in the list.
8148 echo 'int i;' > conftest.$ac_ext
8149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8150 (eval $ac_compile) 2>&5
8151 ac_status=$?
8152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8153 test $ac_status = 0; }; then
8154 case `/usr/bin/file conftest.o` in
8155 *32-bit*)
8156 case $host in
8157 x86_64-*kfreebsd*-gnu)
8158 LD="${LD-ld} -m elf_i386_fbsd"
8159 ;;
8160 x86_64-*linux*)
8161 case `/usr/bin/file conftest.o` in
8162 *x86-64*)
8163 LD="${LD-ld} -m elf32_x86_64"
8164 ;;
8165 *)
8166 LD="${LD-ld} -m elf_i386"
8167 ;;
8168 esac
8169 ;;
8170 powerpc64le-*linux*)
8171 LD="${LD-ld} -m elf32lppclinux"
8172 ;;
8173 powerpc64-*linux*)
8174 LD="${LD-ld} -m elf32ppclinux"
8175 ;;
8176 s390x-*linux*)
8177 LD="${LD-ld} -m elf_s390"
8178 ;;
8179 sparc64-*linux*)
8180 LD="${LD-ld} -m elf32_sparc"
8181 ;;
8182 esac
8183 ;;
8184 *64-bit*)
8185 case $host in
8186 x86_64-*kfreebsd*-gnu)
8187 LD="${LD-ld} -m elf_x86_64_fbsd"
8188 ;;
8189 x86_64-*linux*)
8190 LD="${LD-ld} -m elf_x86_64"
8191 ;;
8192 powerpcle-*linux*)
8193 LD="${LD-ld} -m elf64lppc"
8194 ;;
8195 powerpc-*linux*)
8196 LD="${LD-ld} -m elf64ppc"
8197 ;;
8198 s390*-*linux*|s390*-*tpf*)
8199 LD="${LD-ld} -m elf64_s390"
8200 ;;
8201 sparc*-*linux*)
8202 LD="${LD-ld} -m elf64_sparc"
8203 ;;
8204 esac
8205 ;;
8206 esac
8207 fi
8208 rm -rf conftest*
8209 ;;
8210
8211 *-*-sco3.2v5*)
8212 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8213 SAVE_CFLAGS=$CFLAGS
8214 CFLAGS="$CFLAGS -belf"
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8216 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8217 if ${lt_cv_cc_needs_belf+:} false; then :
8218 $as_echo_n "(cached) " >&6
8219 else
8220 ac_ext=c
8221 ac_cpp='$CPP $CPPFLAGS'
8222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8225
8226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227 /* end confdefs.h. */
8228
8229 int
8230 main ()
8231 {
8232
8233 ;
8234 return 0;
8235 }
8236 _ACEOF
8237 if ac_fn_c_try_link "$LINENO"; then :
8238 lt_cv_cc_needs_belf=yes
8239 else
8240 lt_cv_cc_needs_belf=no
8241 fi
8242 rm -f core conftest.err conftest.$ac_objext \
8243 conftest$ac_exeext conftest.$ac_ext
8244 ac_ext=c
8245 ac_cpp='$CPP $CPPFLAGS'
8246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8249
8250 fi
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8252 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8253 if test yes != "$lt_cv_cc_needs_belf"; then
8254 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8255 CFLAGS=$SAVE_CFLAGS
8256 fi
8257 ;;
8258 *-*solaris*)
8259 # Find out what ABI is being produced by ac_compile, and set linker
8260 # options accordingly.
8261 echo 'int i;' > conftest.$ac_ext
8262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8263 (eval $ac_compile) 2>&5
8264 ac_status=$?
8265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8266 test $ac_status = 0; }; then
8267 case `/usr/bin/file conftest.o` in
8268 *64-bit*)
8269 case $lt_cv_prog_gnu_ld in
8270 yes*)
8271 case $host in
8272 i?86-*-solaris*|x86_64-*-solaris*)
8273 LD="${LD-ld} -m elf_x86_64"
8274 ;;
8275 sparc*-*-solaris*)
8276 LD="${LD-ld} -m elf64_sparc"
8277 ;;
8278 esac
8279 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8280 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8281 LD=${LD-ld}_sol2
8282 fi
8283 ;;
8284 *)
8285 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8286 LD="${LD-ld} -64"
8287 fi
8288 ;;
8289 esac
8290 ;;
8291 esac
8292 fi
8293 rm -rf conftest*
8294 ;;
8295 esac
8296
8297 need_locks=$enable_libtool_lock
8298
8299 if test -n "$ac_tool_prefix"; then
8300 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8301 set dummy ${ac_tool_prefix}mt; ac_word=$2
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8303 $as_echo_n "checking for $ac_word... " >&6; }
8304 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8305 $as_echo_n "(cached) " >&6
8306 else
8307 if test -n "$MANIFEST_TOOL"; then
8308 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8309 else
8310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311 for as_dir in $PATH
8312 do
8313 IFS=$as_save_IFS
8314 test -z "$as_dir" && as_dir=.
8315 for ac_exec_ext in '' $ac_executable_extensions; do
8316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8317 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8319 break 2
8320 fi
8321 done
8322 done
8323 IFS=$as_save_IFS
8324
8325 fi
8326 fi
8327 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8328 if test -n "$MANIFEST_TOOL"; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8330 $as_echo "$MANIFEST_TOOL" >&6; }
8331 else
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333 $as_echo "no" >&6; }
8334 fi
8335
8336
8337 fi
8338 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8339 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8340 # Extract the first word of "mt", so it can be a program name with args.
8341 set dummy mt; ac_word=$2
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8343 $as_echo_n "checking for $ac_word... " >&6; }
8344 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 if test -n "$ac_ct_MANIFEST_TOOL"; then
8348 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8349 else
8350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351 for as_dir in $PATH
8352 do
8353 IFS=$as_save_IFS
8354 test -z "$as_dir" && as_dir=.
8355 for ac_exec_ext in '' $ac_executable_extensions; do
8356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8357 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8359 break 2
8360 fi
8361 done
8362 done
8363 IFS=$as_save_IFS
8364
8365 fi
8366 fi
8367 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8368 if test -n "$ac_ct_MANIFEST_TOOL"; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8370 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8371 else
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373 $as_echo "no" >&6; }
8374 fi
8375
8376 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8377 MANIFEST_TOOL=":"
8378 else
8379 case $cross_compiling:$ac_tool_warned in
8380 yes:)
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8383 ac_tool_warned=yes ;;
8384 esac
8385 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8386 fi
8387 else
8388 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8389 fi
8390
8391 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8393 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8394 if ${lt_cv_path_mainfest_tool+:} false; then :
8395 $as_echo_n "(cached) " >&6
8396 else
8397 lt_cv_path_mainfest_tool=no
8398 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8399 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8400 cat conftest.err >&5
8401 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8402 lt_cv_path_mainfest_tool=yes
8403 fi
8404 rm -f conftest*
8405 fi
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8407 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8408 if test yes != "$lt_cv_path_mainfest_tool"; then
8409 MANIFEST_TOOL=:
8410 fi
8411
8412
8413
8414
8415
8416
8417 case $host_os in
8418 rhapsody* | darwin*)
8419 if test -n "$ac_tool_prefix"; then
8420 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8421 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8423 $as_echo_n "checking for $ac_word... " >&6; }
8424 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8425 $as_echo_n "(cached) " >&6
8426 else
8427 if test -n "$DSYMUTIL"; then
8428 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8429 else
8430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431 for as_dir in $PATH
8432 do
8433 IFS=$as_save_IFS
8434 test -z "$as_dir" && as_dir=.
8435 for ac_exec_ext in '' $ac_executable_extensions; do
8436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8437 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8439 break 2
8440 fi
8441 done
8442 done
8443 IFS=$as_save_IFS
8444
8445 fi
8446 fi
8447 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8448 if test -n "$DSYMUTIL"; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8450 $as_echo "$DSYMUTIL" >&6; }
8451 else
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8453 $as_echo "no" >&6; }
8454 fi
8455
8456
8457 fi
8458 if test -z "$ac_cv_prog_DSYMUTIL"; then
8459 ac_ct_DSYMUTIL=$DSYMUTIL
8460 # Extract the first word of "dsymutil", so it can be a program name with args.
8461 set dummy dsymutil; ac_word=$2
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463 $as_echo_n "checking for $ac_word... " >&6; }
8464 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8465 $as_echo_n "(cached) " >&6
8466 else
8467 if test -n "$ac_ct_DSYMUTIL"; then
8468 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8469 else
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471 for as_dir in $PATH
8472 do
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8477 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8479 break 2
8480 fi
8481 done
8482 done
8483 IFS=$as_save_IFS
8484
8485 fi
8486 fi
8487 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8488 if test -n "$ac_ct_DSYMUTIL"; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8490 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8491 else
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493 $as_echo "no" >&6; }
8494 fi
8495
8496 if test "x$ac_ct_DSYMUTIL" = x; then
8497 DSYMUTIL=":"
8498 else
8499 case $cross_compiling:$ac_tool_warned in
8500 yes:)
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8503 ac_tool_warned=yes ;;
8504 esac
8505 DSYMUTIL=$ac_ct_DSYMUTIL
8506 fi
8507 else
8508 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8509 fi
8510
8511 if test -n "$ac_tool_prefix"; then
8512 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8513 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515 $as_echo_n "checking for $ac_word... " >&6; }
8516 if ${ac_cv_prog_NMEDIT+:} false; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 if test -n "$NMEDIT"; then
8520 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8521 else
8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523 for as_dir in $PATH
8524 do
8525 IFS=$as_save_IFS
8526 test -z "$as_dir" && as_dir=.
8527 for ac_exec_ext in '' $ac_executable_extensions; do
8528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8529 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8531 break 2
8532 fi
8533 done
8534 done
8535 IFS=$as_save_IFS
8536
8537 fi
8538 fi
8539 NMEDIT=$ac_cv_prog_NMEDIT
8540 if test -n "$NMEDIT"; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8542 $as_echo "$NMEDIT" >&6; }
8543 else
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 $as_echo "no" >&6; }
8546 fi
8547
8548
8549 fi
8550 if test -z "$ac_cv_prog_NMEDIT"; then
8551 ac_ct_NMEDIT=$NMEDIT
8552 # Extract the first word of "nmedit", so it can be a program name with args.
8553 set dummy nmedit; ac_word=$2
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555 $as_echo_n "checking for $ac_word... " >&6; }
8556 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8557 $as_echo_n "(cached) " >&6
8558 else
8559 if test -n "$ac_ct_NMEDIT"; then
8560 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8561 else
8562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563 for as_dir in $PATH
8564 do
8565 IFS=$as_save_IFS
8566 test -z "$as_dir" && as_dir=.
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8569 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8571 break 2
8572 fi
8573 done
8574 done
8575 IFS=$as_save_IFS
8576
8577 fi
8578 fi
8579 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8580 if test -n "$ac_ct_NMEDIT"; then
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8582 $as_echo "$ac_ct_NMEDIT" >&6; }
8583 else
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 $as_echo "no" >&6; }
8586 fi
8587
8588 if test "x$ac_ct_NMEDIT" = x; then
8589 NMEDIT=":"
8590 else
8591 case $cross_compiling:$ac_tool_warned in
8592 yes:)
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8595 ac_tool_warned=yes ;;
8596 esac
8597 NMEDIT=$ac_ct_NMEDIT
8598 fi
8599 else
8600 NMEDIT="$ac_cv_prog_NMEDIT"
8601 fi
8602
8603 if test -n "$ac_tool_prefix"; then
8604 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8605 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8607 $as_echo_n "checking for $ac_word... " >&6; }
8608 if ${ac_cv_prog_LIPO+:} false; then :
8609 $as_echo_n "(cached) " >&6
8610 else
8611 if test -n "$LIPO"; then
8612 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8613 else
8614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8615 for as_dir in $PATH
8616 do
8617 IFS=$as_save_IFS
8618 test -z "$as_dir" && as_dir=.
8619 for ac_exec_ext in '' $ac_executable_extensions; do
8620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8621 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8623 break 2
8624 fi
8625 done
8626 done
8627 IFS=$as_save_IFS
8628
8629 fi
8630 fi
8631 LIPO=$ac_cv_prog_LIPO
8632 if test -n "$LIPO"; then
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8634 $as_echo "$LIPO" >&6; }
8635 else
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8637 $as_echo "no" >&6; }
8638 fi
8639
8640
8641 fi
8642 if test -z "$ac_cv_prog_LIPO"; then
8643 ac_ct_LIPO=$LIPO
8644 # Extract the first word of "lipo", so it can be a program name with args.
8645 set dummy lipo; ac_word=$2
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647 $as_echo_n "checking for $ac_word... " >&6; }
8648 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 if test -n "$ac_ct_LIPO"; then
8652 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8653 else
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655 for as_dir in $PATH
8656 do
8657 IFS=$as_save_IFS
8658 test -z "$as_dir" && as_dir=.
8659 for ac_exec_ext in '' $ac_executable_extensions; do
8660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8661 ac_cv_prog_ac_ct_LIPO="lipo"
8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663 break 2
8664 fi
8665 done
8666 done
8667 IFS=$as_save_IFS
8668
8669 fi
8670 fi
8671 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8672 if test -n "$ac_ct_LIPO"; then
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8674 $as_echo "$ac_ct_LIPO" >&6; }
8675 else
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 $as_echo "no" >&6; }
8678 fi
8679
8680 if test "x$ac_ct_LIPO" = x; then
8681 LIPO=":"
8682 else
8683 case $cross_compiling:$ac_tool_warned in
8684 yes:)
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8687 ac_tool_warned=yes ;;
8688 esac
8689 LIPO=$ac_ct_LIPO
8690 fi
8691 else
8692 LIPO="$ac_cv_prog_LIPO"
8693 fi
8694
8695 if test -n "$ac_tool_prefix"; then
8696 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8697 set dummy ${ac_tool_prefix}otool; ac_word=$2
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8699 $as_echo_n "checking for $ac_word... " >&6; }
8700 if ${ac_cv_prog_OTOOL+:} false; then :
8701 $as_echo_n "(cached) " >&6
8702 else
8703 if test -n "$OTOOL"; then
8704 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8705 else
8706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8707 for as_dir in $PATH
8708 do
8709 IFS=$as_save_IFS
8710 test -z "$as_dir" && as_dir=.
8711 for ac_exec_ext in '' $ac_executable_extensions; do
8712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8713 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8715 break 2
8716 fi
8717 done
8718 done
8719 IFS=$as_save_IFS
8720
8721 fi
8722 fi
8723 OTOOL=$ac_cv_prog_OTOOL
8724 if test -n "$OTOOL"; then
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8726 $as_echo "$OTOOL" >&6; }
8727 else
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8729 $as_echo "no" >&6; }
8730 fi
8731
8732
8733 fi
8734 if test -z "$ac_cv_prog_OTOOL"; then
8735 ac_ct_OTOOL=$OTOOL
8736 # Extract the first word of "otool", so it can be a program name with args.
8737 set dummy otool; ac_word=$2
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8739 $as_echo_n "checking for $ac_word... " >&6; }
8740 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 if test -n "$ac_ct_OTOOL"; then
8744 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8745 else
8746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747 for as_dir in $PATH
8748 do
8749 IFS=$as_save_IFS
8750 test -z "$as_dir" && as_dir=.
8751 for ac_exec_ext in '' $ac_executable_extensions; do
8752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8753 ac_cv_prog_ac_ct_OTOOL="otool"
8754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8755 break 2
8756 fi
8757 done
8758 done
8759 IFS=$as_save_IFS
8760
8761 fi
8762 fi
8763 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8764 if test -n "$ac_ct_OTOOL"; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8766 $as_echo "$ac_ct_OTOOL" >&6; }
8767 else
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769 $as_echo "no" >&6; }
8770 fi
8771
8772 if test "x$ac_ct_OTOOL" = x; then
8773 OTOOL=":"
8774 else
8775 case $cross_compiling:$ac_tool_warned in
8776 yes:)
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8779 ac_tool_warned=yes ;;
8780 esac
8781 OTOOL=$ac_ct_OTOOL
8782 fi
8783 else
8784 OTOOL="$ac_cv_prog_OTOOL"
8785 fi
8786
8787 if test -n "$ac_tool_prefix"; then
8788 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8789 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8791 $as_echo_n "checking for $ac_word... " >&6; }
8792 if ${ac_cv_prog_OTOOL64+:} false; then :
8793 $as_echo_n "(cached) " >&6
8794 else
8795 if test -n "$OTOOL64"; then
8796 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8797 else
8798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8799 for as_dir in $PATH
8800 do
8801 IFS=$as_save_IFS
8802 test -z "$as_dir" && as_dir=.
8803 for ac_exec_ext in '' $ac_executable_extensions; do
8804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8805 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8807 break 2
8808 fi
8809 done
8810 done
8811 IFS=$as_save_IFS
8812
8813 fi
8814 fi
8815 OTOOL64=$ac_cv_prog_OTOOL64
8816 if test -n "$OTOOL64"; then
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8818 $as_echo "$OTOOL64" >&6; }
8819 else
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8821 $as_echo "no" >&6; }
8822 fi
8823
8824
8825 fi
8826 if test -z "$ac_cv_prog_OTOOL64"; then
8827 ac_ct_OTOOL64=$OTOOL64
8828 # Extract the first word of "otool64", so it can be a program name with args.
8829 set dummy otool64; ac_word=$2
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8831 $as_echo_n "checking for $ac_word... " >&6; }
8832 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8833 $as_echo_n "(cached) " >&6
8834 else
8835 if test -n "$ac_ct_OTOOL64"; then
8836 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8837 else
8838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839 for as_dir in $PATH
8840 do
8841 IFS=$as_save_IFS
8842 test -z "$as_dir" && as_dir=.
8843 for ac_exec_ext in '' $ac_executable_extensions; do
8844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8845 ac_cv_prog_ac_ct_OTOOL64="otool64"
8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8847 break 2
8848 fi
8849 done
8850 done
8851 IFS=$as_save_IFS
8852
8853 fi
8854 fi
8855 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8856 if test -n "$ac_ct_OTOOL64"; then
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8858 $as_echo "$ac_ct_OTOOL64" >&6; }
8859 else
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861 $as_echo "no" >&6; }
8862 fi
8863
8864 if test "x$ac_ct_OTOOL64" = x; then
8865 OTOOL64=":"
8866 else
8867 case $cross_compiling:$ac_tool_warned in
8868 yes:)
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8871 ac_tool_warned=yes ;;
8872 esac
8873 OTOOL64=$ac_ct_OTOOL64
8874 fi
8875 else
8876 OTOOL64="$ac_cv_prog_OTOOL64"
8877 fi
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8906 $as_echo_n "checking for -single_module linker flag... " >&6; }
8907 if ${lt_cv_apple_cc_single_mod+:} false; then :
8908 $as_echo_n "(cached) " >&6
8909 else
8910 lt_cv_apple_cc_single_mod=no
8911 if test -z "$LT_MULTI_MODULE"; then
8912 # By default we will add the -single_module flag. You can override
8913 # by either setting the environment variable LT_MULTI_MODULE
8914 # non-empty at configure time, or by adding -multi_module to the
8915 # link flags.
8916 rm -rf libconftest.dylib*
8917 echo "int foo(void){return 1;}" > conftest.c
8918 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8919 -dynamiclib -Wl,-single_module conftest.c" >&5
8920 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8921 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8922 _lt_result=$?
8923 # If there is a non-empty error log, and "single_module"
8924 # appears in it, assume the flag caused a linker warning
8925 if test -s conftest.err && $GREP single_module conftest.err; then
8926 cat conftest.err >&5
8927 # Otherwise, if the output was created with a 0 exit code from
8928 # the compiler, it worked.
8929 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8930 lt_cv_apple_cc_single_mod=yes
8931 else
8932 cat conftest.err >&5
8933 fi
8934 rm -rf libconftest.dylib*
8935 rm -f conftest.*
8936 fi
8937 fi
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8939 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8940
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8942 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8943 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8944 $as_echo_n "(cached) " >&6
8945 else
8946 lt_cv_ld_exported_symbols_list=no
8947 save_LDFLAGS=$LDFLAGS
8948 echo "_main" > conftest.sym
8949 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8951 /* end confdefs.h. */
8952
8953 int
8954 main ()
8955 {
8956
8957 ;
8958 return 0;
8959 }
8960 _ACEOF
8961 if ac_fn_c_try_link "$LINENO"; then :
8962 lt_cv_ld_exported_symbols_list=yes
8963 else
8964 lt_cv_ld_exported_symbols_list=no
8965 fi
8966 rm -f core conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext conftest.$ac_ext
8968 LDFLAGS=$save_LDFLAGS
8969
8970 fi
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8972 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8973
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8975 $as_echo_n "checking for -force_load linker flag... " >&6; }
8976 if ${lt_cv_ld_force_load+:} false; then :
8977 $as_echo_n "(cached) " >&6
8978 else
8979 lt_cv_ld_force_load=no
8980 cat > conftest.c << _LT_EOF
8981 int forced_loaded() { return 2;}
8982 _LT_EOF
8983 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8984 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8985 echo "$AR cru libconftest.a conftest.o" >&5
8986 $AR cru libconftest.a conftest.o 2>&5
8987 echo "$RANLIB libconftest.a" >&5
8988 $RANLIB libconftest.a 2>&5
8989 cat > conftest.c << _LT_EOF
8990 int main() { return 0;}
8991 _LT_EOF
8992 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8993 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8994 _lt_result=$?
8995 if test -s conftest.err && $GREP force_load conftest.err; then
8996 cat conftest.err >&5
8997 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8998 lt_cv_ld_force_load=yes
8999 else
9000 cat conftest.err >&5
9001 fi
9002 rm -f conftest.err libconftest.a conftest conftest.c
9003 rm -rf conftest.dSYM
9004
9005 fi
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9007 $as_echo "$lt_cv_ld_force_load" >&6; }
9008 case $host_os in
9009 rhapsody* | darwin1.[012])
9010 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9011 darwin1.*)
9012 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9013 darwin*) # darwin 5.x on
9014 # if running on 10.5 or later, the deployment target defaults
9015 # to the OS version, if on x86, and 10.4, the deployment
9016 # target defaults to 10.4. Don't you love it?
9017 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9018 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9019 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9020 10.[012][,.]*)
9021 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9022 10.*)
9023 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9024 esac
9025 ;;
9026 esac
9027 if test yes = "$lt_cv_apple_cc_single_mod"; then
9028 _lt_dar_single_mod='$single_module'
9029 fi
9030 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9031 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9032 else
9033 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9034 fi
9035 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9036 _lt_dsymutil='~$DSYMUTIL $lib || :'
9037 else
9038 _lt_dsymutil=
9039 fi
9040 ;;
9041 esac
9042
9043 # func_munge_path_list VARIABLE PATH
9044 # -----------------------------------
9045 # VARIABLE is name of variable containing _space_ separated list of
9046 # directories to be munged by the contents of PATH, which is string
9047 # having a format:
9048 # "DIR[:DIR]:"
9049 # string "DIR[ DIR]" will be prepended to VARIABLE
9050 # ":DIR[:DIR]"
9051 # string "DIR[ DIR]" will be appended to VARIABLE
9052 # "DIRP[:DIRP]::[DIRA:]DIRA"
9053 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9054 # "DIRA[ DIRA]" will be appended to VARIABLE
9055 # "DIR[:DIR]"
9056 # VARIABLE will be replaced by "DIR[ DIR]"
9057 func_munge_path_list ()
9058 {
9059 case x$2 in
9060 x)
9061 ;;
9062 *:)
9063 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9064 ;;
9065 x:*)
9066 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9067 ;;
9068 *::*)
9069 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9070 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9071 ;;
9072 *)
9073 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9074 ;;
9075 esac
9076 }
9077
9078 for ac_header in dlfcn.h
9079 do :
9080 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9081 "
9082 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9083 cat >>confdefs.h <<_ACEOF
9084 #define HAVE_DLFCN_H 1
9085 _ACEOF
9086
9087 fi
9088
9089 done
9090
9091
9092
9093
9094 func_stripname_cnf ()
9095 {
9096 case $2 in
9097 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9098 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9099 esac
9100 } # func_stripname_cnf
9101
9102
9103
9104
9105
9106 # Set options
9107
9108
9109
9110 enable_dlopen=no
9111
9112
9113 enable_win32_dll=no
9114
9115
9116 # Check whether --enable-shared was given.
9117 if test "${enable_shared+set}" = set; then :
9118 enableval=$enable_shared; p=${PACKAGE-default}
9119 case $enableval in
9120 yes) enable_shared=yes ;;
9121 no) enable_shared=no ;;
9122 *)
9123 enable_shared=no
9124 # Look at the argument we got. We use all the common list separators.
9125 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9126 for pkg in $enableval; do
9127 IFS=$lt_save_ifs
9128 if test "X$pkg" = "X$p"; then
9129 enable_shared=yes
9130 fi
9131 done
9132 IFS=$lt_save_ifs
9133 ;;
9134 esac
9135 else
9136 enable_shared=yes
9137 fi
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147 # Check whether --enable-static was given.
9148 if test "${enable_static+set}" = set; then :
9149 enableval=$enable_static; p=${PACKAGE-default}
9150 case $enableval in
9151 yes) enable_static=yes ;;
9152 no) enable_static=no ;;
9153 *)
9154 enable_static=no
9155 # Look at the argument we got. We use all the common list separators.
9156 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9157 for pkg in $enableval; do
9158 IFS=$lt_save_ifs
9159 if test "X$pkg" = "X$p"; then
9160 enable_static=yes
9161 fi
9162 done
9163 IFS=$lt_save_ifs
9164 ;;
9165 esac
9166 else
9167 enable_static=yes
9168 fi
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179 # Check whether --with-pic was given.
9180 if test "${with_pic+set}" = set; then :
9181 withval=$with_pic; lt_p=${PACKAGE-default}
9182 case $withval in
9183 yes|no) pic_mode=$withval ;;
9184 *)
9185 pic_mode=default
9186 # Look at the argument we got. We use all the common list separators.
9187 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9188 for lt_pkg in $withval; do
9189 IFS=$lt_save_ifs
9190 if test "X$lt_pkg" = "X$lt_p"; then
9191 pic_mode=yes
9192 fi
9193 done
9194 IFS=$lt_save_ifs
9195 ;;
9196 esac
9197 else
9198 pic_mode=default
9199 fi
9200
9201
9202
9203
9204
9205
9206
9207
9208 # Check whether --enable-fast-install was given.
9209 if test "${enable_fast_install+set}" = set; then :
9210 enableval=$enable_fast_install; p=${PACKAGE-default}
9211 case $enableval in
9212 yes) enable_fast_install=yes ;;
9213 no) enable_fast_install=no ;;
9214 *)
9215 enable_fast_install=no
9216 # Look at the argument we got. We use all the common list separators.
9217 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9218 for pkg in $enableval; do
9219 IFS=$lt_save_ifs
9220 if test "X$pkg" = "X$p"; then
9221 enable_fast_install=yes
9222 fi
9223 done
9224 IFS=$lt_save_ifs
9225 ;;
9226 esac
9227 else
9228 enable_fast_install=yes
9229 fi
9230
9231
9232
9233
9234
9235
9236
9237
9238 shared_archive_member_spec=
9239 case $host,$enable_shared in
9240 power*-*-aix[5-9]*,yes)
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9242 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9243
9244 # Check whether --with-aix-soname was given.
9245 if test "${with_aix_soname+set}" = set; then :
9246 withval=$with_aix_soname; case $withval in
9247 aix|svr4|both)
9248 ;;
9249 *)
9250 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9251 ;;
9252 esac
9253 lt_cv_with_aix_soname=$with_aix_soname
9254 else
9255 if ${lt_cv_with_aix_soname+:} false; then :
9256 $as_echo_n "(cached) " >&6
9257 else
9258 lt_cv_with_aix_soname=aix
9259 fi
9260
9261 with_aix_soname=$lt_cv_with_aix_soname
9262 fi
9263
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9265 $as_echo "$with_aix_soname" >&6; }
9266 if test aix != "$with_aix_soname"; then
9267 # For the AIX way of multilib, we name the shared archive member
9268 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9269 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9270 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9271 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9272 if test 64 = "${OBJECT_MODE-32}"; then
9273 shared_archive_member_spec=shr_64
9274 else
9275 shared_archive_member_spec=shr
9276 fi
9277 fi
9278 ;;
9279 *)
9280 with_aix_soname=aix
9281 ;;
9282 esac
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293 # This can be used to rebuild libtool when needed
9294 LIBTOOL_DEPS=$ltmain
9295
9296 # Always use our own libtool.
9297 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328 test -z "$LN_S" && LN_S="ln -s"
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343 if test -n "${ZSH_VERSION+set}"; then
9344 setopt NO_GLOB_SUBST
9345 fi
9346
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9348 $as_echo_n "checking for objdir... " >&6; }
9349 if ${lt_cv_objdir+:} false; then :
9350 $as_echo_n "(cached) " >&6
9351 else
9352 rm -f .libs 2>/dev/null
9353 mkdir .libs 2>/dev/null
9354 if test -d .libs; then
9355 lt_cv_objdir=.libs
9356 else
9357 # MS-DOS does not allow filenames that begin with a dot.
9358 lt_cv_objdir=_libs
9359 fi
9360 rmdir .libs 2>/dev/null
9361 fi
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9363 $as_echo "$lt_cv_objdir" >&6; }
9364 objdir=$lt_cv_objdir
9365
9366
9367
9368
9369
9370 cat >>confdefs.h <<_ACEOF
9371 #define LT_OBJDIR "$lt_cv_objdir/"
9372 _ACEOF
9373
9374
9375
9376
9377 case $host_os in
9378 aix3*)
9379 # AIX sometimes has problems with the GCC collect2 program. For some
9380 # reason, if we set the COLLECT_NAMES environment variable, the problems
9381 # vanish in a puff of smoke.
9382 if test set != "${COLLECT_NAMES+set}"; then
9383 COLLECT_NAMES=
9384 export COLLECT_NAMES
9385 fi
9386 ;;
9387 esac
9388
9389 # Global variables:
9390 ofile=libtool
9391 can_build_shared=yes
9392
9393 # All known linkers require a '.a' archive for static linking (except MSVC,
9394 # which needs '.lib').
9395 libext=a
9396
9397 with_gnu_ld=$lt_cv_prog_gnu_ld
9398
9399 old_CC=$CC
9400 old_CFLAGS=$CFLAGS
9401
9402 # Set sane defaults for various variables
9403 test -z "$CC" && CC=cc
9404 test -z "$LTCC" && LTCC=$CC
9405 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9406 test -z "$LD" && LD=ld
9407 test -z "$ac_objext" && ac_objext=o
9408
9409 func_cc_basename $compiler
9410 cc_basename=$func_cc_basename_result
9411
9412
9413 # Only perform the check for file, if the check method requires it
9414 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9415 case $deplibs_check_method in
9416 file_magic*)
9417 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9419 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9420 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9421 $as_echo_n "(cached) " >&6
9422 else
9423 case $MAGIC_CMD in
9424 [\\/*] | ?:[\\/]*)
9425 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9426 ;;
9427 *)
9428 lt_save_MAGIC_CMD=$MAGIC_CMD
9429 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9430 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9431 for ac_dir in $ac_dummy; do
9432 IFS=$lt_save_ifs
9433 test -z "$ac_dir" && ac_dir=.
9434 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9435 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9436 if test -n "$file_magic_test_file"; then
9437 case $deplibs_check_method in
9438 "file_magic "*)
9439 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9440 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9441 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9442 $EGREP "$file_magic_regex" > /dev/null; then
9443 :
9444 else
9445 cat <<_LT_EOF 1>&2
9446
9447 *** Warning: the command libtool uses to detect shared libraries,
9448 *** $file_magic_cmd, produces output that libtool cannot recognize.
9449 *** The result is that libtool may fail to recognize shared libraries
9450 *** as such. This will affect the creation of libtool libraries that
9451 *** depend on shared libraries, but programs linked with such libtool
9452 *** libraries will work regardless of this problem. Nevertheless, you
9453 *** may want to report the problem to your system manager and/or to
9454 *** bug-libtool@gnu.org
9455
9456 _LT_EOF
9457 fi ;;
9458 esac
9459 fi
9460 break
9461 fi
9462 done
9463 IFS=$lt_save_ifs
9464 MAGIC_CMD=$lt_save_MAGIC_CMD
9465 ;;
9466 esac
9467 fi
9468
9469 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9470 if test -n "$MAGIC_CMD"; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9472 $as_echo "$MAGIC_CMD" >&6; }
9473 else
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475 $as_echo "no" >&6; }
9476 fi
9477
9478
9479
9480
9481
9482 if test -z "$lt_cv_path_MAGIC_CMD"; then
9483 if test -n "$ac_tool_prefix"; then
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9485 $as_echo_n "checking for file... " >&6; }
9486 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9487 $as_echo_n "(cached) " >&6
9488 else
9489 case $MAGIC_CMD in
9490 [\\/*] | ?:[\\/]*)
9491 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9492 ;;
9493 *)
9494 lt_save_MAGIC_CMD=$MAGIC_CMD
9495 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9496 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9497 for ac_dir in $ac_dummy; do
9498 IFS=$lt_save_ifs
9499 test -z "$ac_dir" && ac_dir=.
9500 if test -f "$ac_dir/file"; then
9501 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9502 if test -n "$file_magic_test_file"; then
9503 case $deplibs_check_method in
9504 "file_magic "*)
9505 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9506 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9507 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9508 $EGREP "$file_magic_regex" > /dev/null; then
9509 :
9510 else
9511 cat <<_LT_EOF 1>&2
9512
9513 *** Warning: the command libtool uses to detect shared libraries,
9514 *** $file_magic_cmd, produces output that libtool cannot recognize.
9515 *** The result is that libtool may fail to recognize shared libraries
9516 *** as such. This will affect the creation of libtool libraries that
9517 *** depend on shared libraries, but programs linked with such libtool
9518 *** libraries will work regardless of this problem. Nevertheless, you
9519 *** may want to report the problem to your system manager and/or to
9520 *** bug-libtool@gnu.org
9521
9522 _LT_EOF
9523 fi ;;
9524 esac
9525 fi
9526 break
9527 fi
9528 done
9529 IFS=$lt_save_ifs
9530 MAGIC_CMD=$lt_save_MAGIC_CMD
9531 ;;
9532 esac
9533 fi
9534
9535 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9536 if test -n "$MAGIC_CMD"; then
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9538 $as_echo "$MAGIC_CMD" >&6; }
9539 else
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9541 $as_echo "no" >&6; }
9542 fi
9543
9544
9545 else
9546 MAGIC_CMD=:
9547 fi
9548 fi
9549
9550 fi
9551 ;;
9552 esac
9553
9554 # Use C for the default configuration in the libtool script
9555
9556 lt_save_CC=$CC
9557 ac_ext=c
9558 ac_cpp='$CPP $CPPFLAGS'
9559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9562
9563
9564 # Source file extension for C test sources.
9565 ac_ext=c
9566
9567 # Object file extension for compiled C test sources.
9568 objext=o
9569 objext=$objext
9570
9571 # Code to be used in simple compile tests
9572 lt_simple_compile_test_code="int some_variable = 0;"
9573
9574 # Code to be used in simple link tests
9575 lt_simple_link_test_code='int main(){return(0);}'
9576
9577
9578
9579
9580
9581
9582
9583 # If no C compiler was specified, use CC.
9584 LTCC=${LTCC-"$CC"}
9585
9586 # If no C compiler flags were specified, use CFLAGS.
9587 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9588
9589 # Allow CC to be a program name with arguments.
9590 compiler=$CC
9591
9592 # Save the default compiler, since it gets overwritten when the other
9593 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9594 compiler_DEFAULT=$CC
9595
9596 # save warnings/boilerplate of simple test code
9597 ac_outfile=conftest.$ac_objext
9598 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9599 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9600 _lt_compiler_boilerplate=`cat conftest.err`
9601 $RM conftest*
9602
9603 ac_outfile=conftest.$ac_objext
9604 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9605 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9606 _lt_linker_boilerplate=`cat conftest.err`
9607 $RM -r conftest*
9608
9609
9610 if test -n "$compiler"; then
9611
9612 lt_prog_compiler_no_builtin_flag=
9613
9614 if test yes = "$GCC"; then
9615 case $cc_basename in
9616 nvcc*)
9617 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9618 *)
9619 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9620 esac
9621
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9623 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9624 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9625 $as_echo_n "(cached) " >&6
9626 else
9627 lt_cv_prog_compiler_rtti_exceptions=no
9628 ac_outfile=conftest.$ac_objext
9629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9630 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9631 # Insert the option either (1) after the last *FLAGS variable, or
9632 # (2) before a word containing "conftest.", or (3) at the end.
9633 # Note that $ac_compile itself does not contain backslashes and begins
9634 # with a dollar sign (not a hyphen), so the echo should work correctly.
9635 # The option is referenced via a variable to avoid confusing sed.
9636 lt_compile=`echo "$ac_compile" | $SED \
9637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9639 -e 's:$: $lt_compiler_flag:'`
9640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9641 (eval "$lt_compile" 2>conftest.err)
9642 ac_status=$?
9643 cat conftest.err >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 if (exit $ac_status) && test -s "$ac_outfile"; then
9646 # The compiler can only warn and ignore the option if not recognized
9647 # So say no if there are warnings other than the usual output.
9648 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9650 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9651 lt_cv_prog_compiler_rtti_exceptions=yes
9652 fi
9653 fi
9654 $RM conftest*
9655
9656 fi
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9658 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9659
9660 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9661 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9662 else
9663 :
9664 fi
9665
9666 fi
9667
9668
9669
9670
9671
9672
9673 lt_prog_compiler_wl=
9674 lt_prog_compiler_pic=
9675 lt_prog_compiler_static=
9676
9677
9678 if test yes = "$GCC"; then
9679 lt_prog_compiler_wl='-Wl,'
9680 lt_prog_compiler_static='-static'
9681
9682 case $host_os in
9683 aix*)
9684 # All AIX code is PIC.
9685 if test ia64 = "$host_cpu"; then
9686 # AIX 5 now supports IA64 processor
9687 lt_prog_compiler_static='-Bstatic'
9688 fi
9689 lt_prog_compiler_pic='-fPIC'
9690 ;;
9691
9692 amigaos*)
9693 case $host_cpu in
9694 powerpc)
9695 # see comment about AmigaOS4 .so support
9696 lt_prog_compiler_pic='-fPIC'
9697 ;;
9698 m68k)
9699 # FIXME: we need at least 68020 code to build shared libraries, but
9700 # adding the '-m68020' flag to GCC prevents building anything better,
9701 # like '-m68040'.
9702 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9703 ;;
9704 esac
9705 ;;
9706
9707 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9708 # PIC is the default for these OSes.
9709 ;;
9710
9711 mingw* | cygwin* | pw32* | os2* | cegcc*)
9712 # This hack is so that the source file can tell whether it is being
9713 # built for inclusion in a dll (and should export symbols for example).
9714 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9715 # (--disable-auto-import) libraries
9716 lt_prog_compiler_pic='-DDLL_EXPORT'
9717 case $host_os in
9718 os2*)
9719 lt_prog_compiler_static='$wl-static'
9720 ;;
9721 esac
9722 ;;
9723
9724 darwin* | rhapsody*)
9725 # PIC is the default on this platform
9726 # Common symbols not allowed in MH_DYLIB files
9727 lt_prog_compiler_pic='-fno-common'
9728 ;;
9729
9730 haiku*)
9731 # PIC is the default for Haiku.
9732 # The "-static" flag exists, but is broken.
9733 lt_prog_compiler_static=
9734 ;;
9735
9736 hpux*)
9737 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9738 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9739 # sets the default TLS model and affects inlining.
9740 case $host_cpu in
9741 hppa*64*)
9742 # +Z the default
9743 ;;
9744 *)
9745 lt_prog_compiler_pic='-fPIC'
9746 ;;
9747 esac
9748 ;;
9749
9750 interix[3-9]*)
9751 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9752 # Instead, we relocate shared libraries at runtime.
9753 ;;
9754
9755 msdosdjgpp*)
9756 # Just because we use GCC doesn't mean we suddenly get shared libraries
9757 # on systems that don't support them.
9758 lt_prog_compiler_can_build_shared=no
9759 enable_shared=no
9760 ;;
9761
9762 *nto* | *qnx*)
9763 # QNX uses GNU C++, but need to define -shared option too, otherwise
9764 # it will coredump.
9765 lt_prog_compiler_pic='-fPIC -shared'
9766 ;;
9767
9768 sysv4*MP*)
9769 if test -d /usr/nec; then
9770 lt_prog_compiler_pic=-Kconform_pic
9771 fi
9772 ;;
9773
9774 *)
9775 lt_prog_compiler_pic='-fPIC'
9776 ;;
9777 esac
9778
9779 case $cc_basename in
9780 nvcc*) # Cuda Compiler Driver 2.2
9781 lt_prog_compiler_wl='-Xlinker '
9782 if test -n "$lt_prog_compiler_pic"; then
9783 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9784 fi
9785 ;;
9786 esac
9787 else
9788 # PORTME Check for flag to pass linker flags through the system compiler.
9789 case $host_os in
9790 aix*)
9791 lt_prog_compiler_wl='-Wl,'
9792 if test ia64 = "$host_cpu"; then
9793 # AIX 5 now supports IA64 processor
9794 lt_prog_compiler_static='-Bstatic'
9795 else
9796 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9797 fi
9798 ;;
9799
9800 darwin* | rhapsody*)
9801 # PIC is the default on this platform
9802 # Common symbols not allowed in MH_DYLIB files
9803 lt_prog_compiler_pic='-fno-common'
9804 case $cc_basename in
9805 nagfor*)
9806 # NAG Fortran compiler
9807 lt_prog_compiler_wl='-Wl,-Wl,,'
9808 lt_prog_compiler_pic='-PIC'
9809 lt_prog_compiler_static='-Bstatic'
9810 ;;
9811 esac
9812 ;;
9813
9814 mingw* | cygwin* | pw32* | os2* | cegcc*)
9815 # This hack is so that the source file can tell whether it is being
9816 # built for inclusion in a dll (and should export symbols for example).
9817 lt_prog_compiler_pic='-DDLL_EXPORT'
9818 case $host_os in
9819 os2*)
9820 lt_prog_compiler_static='$wl-static'
9821 ;;
9822 esac
9823 ;;
9824
9825 hpux9* | hpux10* | hpux11*)
9826 lt_prog_compiler_wl='-Wl,'
9827 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9828 # not for PA HP-UX.
9829 case $host_cpu in
9830 hppa*64*|ia64*)
9831 # +Z the default
9832 ;;
9833 *)
9834 lt_prog_compiler_pic='+Z'
9835 ;;
9836 esac
9837 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9838 lt_prog_compiler_static='$wl-a ${wl}archive'
9839 ;;
9840
9841 irix5* | irix6* | nonstopux*)
9842 lt_prog_compiler_wl='-Wl,'
9843 # PIC (with -KPIC) is the default.
9844 lt_prog_compiler_static='-non_shared'
9845 ;;
9846
9847 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9848 case $cc_basename in
9849 # old Intel for x86_64, which still supported -KPIC.
9850 ecc*)
9851 lt_prog_compiler_wl='-Wl,'
9852 lt_prog_compiler_pic='-KPIC'
9853 lt_prog_compiler_static='-static'
9854 ;;
9855 # icc used to be incompatible with GCC.
9856 # ICC 10 doesn't accept -KPIC any more.
9857 icc* | ifort*)
9858 lt_prog_compiler_wl='-Wl,'
9859 lt_prog_compiler_pic='-fPIC'
9860 lt_prog_compiler_static='-static'
9861 ;;
9862 # Lahey Fortran 8.1.
9863 lf95*)
9864 lt_prog_compiler_wl='-Wl,'
9865 lt_prog_compiler_pic='--shared'
9866 lt_prog_compiler_static='--static'
9867 ;;
9868 nagfor*)
9869 # NAG Fortran compiler
9870 lt_prog_compiler_wl='-Wl,-Wl,,'
9871 lt_prog_compiler_pic='-PIC'
9872 lt_prog_compiler_static='-Bstatic'
9873 ;;
9874 tcc*)
9875 # Fabrice Bellard et al's Tiny C Compiler
9876 lt_prog_compiler_wl='-Wl,'
9877 lt_prog_compiler_pic='-fPIC'
9878 lt_prog_compiler_static='-static'
9879 ;;
9880 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9881 # Portland Group compilers (*not* the Pentium gcc compiler,
9882 # which looks to be a dead project)
9883 lt_prog_compiler_wl='-Wl,'
9884 lt_prog_compiler_pic='-fpic'
9885 lt_prog_compiler_static='-Bstatic'
9886 ;;
9887 ccc*)
9888 lt_prog_compiler_wl='-Wl,'
9889 # All Alpha code is PIC.
9890 lt_prog_compiler_static='-non_shared'
9891 ;;
9892 xl* | bgxl* | bgf* | mpixl*)
9893 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9894 lt_prog_compiler_wl='-Wl,'
9895 lt_prog_compiler_pic='-qpic'
9896 lt_prog_compiler_static='-qstaticlink'
9897 ;;
9898 *)
9899 case `$CC -V 2>&1 | sed 5q` in
9900 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9901 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9902 lt_prog_compiler_pic='-KPIC'
9903 lt_prog_compiler_static='-Bstatic'
9904 lt_prog_compiler_wl=''
9905 ;;
9906 *Sun\ F* | *Sun*Fortran*)
9907 lt_prog_compiler_pic='-KPIC'
9908 lt_prog_compiler_static='-Bstatic'
9909 lt_prog_compiler_wl='-Qoption ld '
9910 ;;
9911 *Sun\ C*)
9912 # Sun C 5.9
9913 lt_prog_compiler_pic='-KPIC'
9914 lt_prog_compiler_static='-Bstatic'
9915 lt_prog_compiler_wl='-Wl,'
9916 ;;
9917 *Intel*\ [CF]*Compiler*)
9918 lt_prog_compiler_wl='-Wl,'
9919 lt_prog_compiler_pic='-fPIC'
9920 lt_prog_compiler_static='-static'
9921 ;;
9922 *Portland\ Group*)
9923 lt_prog_compiler_wl='-Wl,'
9924 lt_prog_compiler_pic='-fpic'
9925 lt_prog_compiler_static='-Bstatic'
9926 ;;
9927 esac
9928 ;;
9929 esac
9930 ;;
9931
9932 newsos6)
9933 lt_prog_compiler_pic='-KPIC'
9934 lt_prog_compiler_static='-Bstatic'
9935 ;;
9936
9937 *nto* | *qnx*)
9938 # QNX uses GNU C++, but need to define -shared option too, otherwise
9939 # it will coredump.
9940 lt_prog_compiler_pic='-fPIC -shared'
9941 ;;
9942
9943 osf3* | osf4* | osf5*)
9944 lt_prog_compiler_wl='-Wl,'
9945 # All OSF/1 code is PIC.
9946 lt_prog_compiler_static='-non_shared'
9947 ;;
9948
9949 rdos*)
9950 lt_prog_compiler_static='-non_shared'
9951 ;;
9952
9953 solaris*)
9954 lt_prog_compiler_pic='-KPIC'
9955 lt_prog_compiler_static='-Bstatic'
9956 case $cc_basename in
9957 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9958 lt_prog_compiler_wl='-Qoption ld ';;
9959 *)
9960 lt_prog_compiler_wl='-Wl,';;
9961 esac
9962 ;;
9963
9964 sunos4*)
9965 lt_prog_compiler_wl='-Qoption ld '
9966 lt_prog_compiler_pic='-PIC'
9967 lt_prog_compiler_static='-Bstatic'
9968 ;;
9969
9970 sysv4 | sysv4.2uw2* | sysv4.3*)
9971 lt_prog_compiler_wl='-Wl,'
9972 lt_prog_compiler_pic='-KPIC'
9973 lt_prog_compiler_static='-Bstatic'
9974 ;;
9975
9976 sysv4*MP*)
9977 if test -d /usr/nec; then
9978 lt_prog_compiler_pic='-Kconform_pic'
9979 lt_prog_compiler_static='-Bstatic'
9980 fi
9981 ;;
9982
9983 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9984 lt_prog_compiler_wl='-Wl,'
9985 lt_prog_compiler_pic='-KPIC'
9986 lt_prog_compiler_static='-Bstatic'
9987 ;;
9988
9989 unicos*)
9990 lt_prog_compiler_wl='-Wl,'
9991 lt_prog_compiler_can_build_shared=no
9992 ;;
9993
9994 uts4*)
9995 lt_prog_compiler_pic='-pic'
9996 lt_prog_compiler_static='-Bstatic'
9997 ;;
9998
9999 *)
10000 lt_prog_compiler_can_build_shared=no
10001 ;;
10002 esac
10003 fi
10004
10005 case $host_os in
10006 # For platforms that do not support PIC, -DPIC is meaningless:
10007 *djgpp*)
10008 lt_prog_compiler_pic=
10009 ;;
10010 *)
10011 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10012 ;;
10013 esac
10014
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10016 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10017 if ${lt_cv_prog_compiler_pic+:} false; then :
10018 $as_echo_n "(cached) " >&6
10019 else
10020 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10021 fi
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10023 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10024 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10025
10026 #
10027 # Check to make sure the PIC flag actually works.
10028 #
10029 if test -n "$lt_prog_compiler_pic"; then
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10031 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10032 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10033 $as_echo_n "(cached) " >&6
10034 else
10035 lt_cv_prog_compiler_pic_works=no
10036 ac_outfile=conftest.$ac_objext
10037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10038 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10039 # Insert the option either (1) after the last *FLAGS variable, or
10040 # (2) before a word containing "conftest.", or (3) at the end.
10041 # Note that $ac_compile itself does not contain backslashes and begins
10042 # with a dollar sign (not a hyphen), so the echo should work correctly.
10043 # The option is referenced via a variable to avoid confusing sed.
10044 lt_compile=`echo "$ac_compile" | $SED \
10045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10047 -e 's:$: $lt_compiler_flag:'`
10048 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10049 (eval "$lt_compile" 2>conftest.err)
10050 ac_status=$?
10051 cat conftest.err >&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 if (exit $ac_status) && test -s "$ac_outfile"; then
10054 # The compiler can only warn and ignore the option if not recognized
10055 # So say no if there are warnings other than the usual output.
10056 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10058 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10059 lt_cv_prog_compiler_pic_works=yes
10060 fi
10061 fi
10062 $RM conftest*
10063
10064 fi
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10066 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10067
10068 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10069 case $lt_prog_compiler_pic in
10070 "" | " "*) ;;
10071 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10072 esac
10073 else
10074 lt_prog_compiler_pic=
10075 lt_prog_compiler_can_build_shared=no
10076 fi
10077
10078 fi
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090 #
10091 # Check to make sure the static flag actually works.
10092 #
10093 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10095 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10096 if ${lt_cv_prog_compiler_static_works+:} false; then :
10097 $as_echo_n "(cached) " >&6
10098 else
10099 lt_cv_prog_compiler_static_works=no
10100 save_LDFLAGS=$LDFLAGS
10101 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10102 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10103 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10104 # The linker can only warn and ignore the option if not recognized
10105 # So say no if there are warnings
10106 if test -s conftest.err; then
10107 # Append any errors to the config.log.
10108 cat conftest.err 1>&5
10109 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10110 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10111 if diff conftest.exp conftest.er2 >/dev/null; then
10112 lt_cv_prog_compiler_static_works=yes
10113 fi
10114 else
10115 lt_cv_prog_compiler_static_works=yes
10116 fi
10117 fi
10118 $RM -r conftest*
10119 LDFLAGS=$save_LDFLAGS
10120
10121 fi
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10123 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10124
10125 if test yes = "$lt_cv_prog_compiler_static_works"; then
10126 :
10127 else
10128 lt_prog_compiler_static=
10129 fi
10130
10131
10132
10133
10134
10135
10136
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10138 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10139 if ${lt_cv_prog_compiler_c_o+:} false; then :
10140 $as_echo_n "(cached) " >&6
10141 else
10142 lt_cv_prog_compiler_c_o=no
10143 $RM -r conftest 2>/dev/null
10144 mkdir conftest
10145 cd conftest
10146 mkdir out
10147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10148
10149 lt_compiler_flag="-o out/conftest2.$ac_objext"
10150 # Insert the option either (1) after the last *FLAGS variable, or
10151 # (2) before a word containing "conftest.", or (3) at the end.
10152 # Note that $ac_compile itself does not contain backslashes and begins
10153 # with a dollar sign (not a hyphen), so the echo should work correctly.
10154 lt_compile=`echo "$ac_compile" | $SED \
10155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10157 -e 's:$: $lt_compiler_flag:'`
10158 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10159 (eval "$lt_compile" 2>out/conftest.err)
10160 ac_status=$?
10161 cat out/conftest.err >&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10164 then
10165 # The compiler can only warn and ignore the option if not recognized
10166 # So say no if there are warnings
10167 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10168 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10169 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10170 lt_cv_prog_compiler_c_o=yes
10171 fi
10172 fi
10173 chmod u+w . 2>&5
10174 $RM conftest*
10175 # SGI C++ compiler will create directory out/ii_files/ for
10176 # template instantiation
10177 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10178 $RM out/* && rmdir out
10179 cd ..
10180 $RM -r conftest
10181 $RM conftest*
10182
10183 fi
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10185 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10186
10187
10188
10189
10190
10191
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10193 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10194 if ${lt_cv_prog_compiler_c_o+:} false; then :
10195 $as_echo_n "(cached) " >&6
10196 else
10197 lt_cv_prog_compiler_c_o=no
10198 $RM -r conftest 2>/dev/null
10199 mkdir conftest
10200 cd conftest
10201 mkdir out
10202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10203
10204 lt_compiler_flag="-o out/conftest2.$ac_objext"
10205 # Insert the option either (1) after the last *FLAGS variable, or
10206 # (2) before a word containing "conftest.", or (3) at the end.
10207 # Note that $ac_compile itself does not contain backslashes and begins
10208 # with a dollar sign (not a hyphen), so the echo should work correctly.
10209 lt_compile=`echo "$ac_compile" | $SED \
10210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10212 -e 's:$: $lt_compiler_flag:'`
10213 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10214 (eval "$lt_compile" 2>out/conftest.err)
10215 ac_status=$?
10216 cat out/conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10219 then
10220 # The compiler can only warn and ignore the option if not recognized
10221 # So say no if there are warnings
10222 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10223 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10224 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10225 lt_cv_prog_compiler_c_o=yes
10226 fi
10227 fi
10228 chmod u+w . 2>&5
10229 $RM conftest*
10230 # SGI C++ compiler will create directory out/ii_files/ for
10231 # template instantiation
10232 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10233 $RM out/* && rmdir out
10234 cd ..
10235 $RM -r conftest
10236 $RM conftest*
10237
10238 fi
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10240 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10241
10242
10243
10244
10245 hard_links=nottested
10246 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10247 # do not overwrite the value of need_locks provided by the user
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10249 $as_echo_n "checking if we can lock with hard links... " >&6; }
10250 hard_links=yes
10251 $RM conftest*
10252 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10253 touch conftest.a
10254 ln conftest.a conftest.b 2>&5 || hard_links=no
10255 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10257 $as_echo "$hard_links" >&6; }
10258 if test no = "$hard_links"; then
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10260 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10261 need_locks=warn
10262 fi
10263 else
10264 need_locks=no
10265 fi
10266
10267
10268
10269
10270
10271
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10273 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10274
10275 runpath_var=
10276 allow_undefined_flag=
10277 always_export_symbols=no
10278 archive_cmds=
10279 archive_expsym_cmds=
10280 compiler_needs_object=no
10281 enable_shared_with_static_runtimes=no
10282 export_dynamic_flag_spec=
10283 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10284 hardcode_automatic=no
10285 hardcode_direct=no
10286 hardcode_direct_absolute=no
10287 hardcode_libdir_flag_spec=
10288 hardcode_libdir_separator=
10289 hardcode_minus_L=no
10290 hardcode_shlibpath_var=unsupported
10291 inherit_rpath=no
10292 link_all_deplibs=unknown
10293 module_cmds=
10294 module_expsym_cmds=
10295 old_archive_from_new_cmds=
10296 old_archive_from_expsyms_cmds=
10297 thread_safe_flag_spec=
10298 whole_archive_flag_spec=
10299 # include_expsyms should be a list of space-separated symbols to be *always*
10300 # included in the symbol list
10301 include_expsyms=
10302 # exclude_expsyms can be an extended regexp of symbols to exclude
10303 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10304 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10305 # as well as any symbol that contains 'd'.
10306 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10307 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10308 # platforms (ab)use it in PIC code, but their linkers get confused if
10309 # the symbol is explicitly referenced. Since portable code cannot
10310 # rely on this symbol name, it's probably fine to never include it in
10311 # preloaded symbol tables.
10312 # Exclude shared library initialization/finalization symbols.
10313 extract_expsyms_cmds=
10314
10315 case $host_os in
10316 cygwin* | mingw* | pw32* | cegcc*)
10317 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10318 # When not using gcc, we currently assume that we are using
10319 # Microsoft Visual C++.
10320 if test yes != "$GCC"; then
10321 with_gnu_ld=no
10322 fi
10323 ;;
10324 interix*)
10325 # we just hope/assume this is gcc and not c89 (= MSVC++)
10326 with_gnu_ld=yes
10327 ;;
10328 openbsd* | bitrig*)
10329 with_gnu_ld=no
10330 ;;
10331 esac
10332
10333 ld_shlibs=yes
10334
10335 # On some targets, GNU ld is compatible enough with the native linker
10336 # that we're better off using the native interface for both.
10337 lt_use_gnu_ld_interface=no
10338 if test yes = "$with_gnu_ld"; then
10339 case $host_os in
10340 aix*)
10341 # The AIX port of GNU ld has always aspired to compatibility
10342 # with the native linker. However, as the warning in the GNU ld
10343 # block says, versions before 2.19.5* couldn't really create working
10344 # shared libraries, regardless of the interface used.
10345 case `$LD -v 2>&1` in
10346 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10347 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10348 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10349 *)
10350 lt_use_gnu_ld_interface=yes
10351 ;;
10352 esac
10353 ;;
10354 *)
10355 lt_use_gnu_ld_interface=yes
10356 ;;
10357 esac
10358 fi
10359
10360 if test yes = "$lt_use_gnu_ld_interface"; then
10361 # If archive_cmds runs LD, not CC, wlarc should be empty
10362 wlarc='$wl'
10363
10364 # Set some defaults for GNU ld with shared library support. These
10365 # are reset later if shared libraries are not supported. Putting them
10366 # here allows them to be overridden if necessary.
10367 runpath_var=LD_RUN_PATH
10368 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10369 export_dynamic_flag_spec='$wl--export-dynamic'
10370 # ancient GNU ld didn't support --whole-archive et. al.
10371 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10372 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10373 else
10374 whole_archive_flag_spec=
10375 fi
10376 supports_anon_versioning=no
10377 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10378 *GNU\ gold*) supports_anon_versioning=yes ;;
10379 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10380 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10381 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10382 *\ 2.11.*) ;; # other 2.11 versions
10383 *) supports_anon_versioning=yes ;;
10384 esac
10385
10386 # See if GNU ld supports shared libraries.
10387 case $host_os in
10388 aix[3-9]*)
10389 # On AIX/PPC, the GNU linker is very broken
10390 if test ia64 != "$host_cpu"; then
10391 ld_shlibs=no
10392 cat <<_LT_EOF 1>&2
10393
10394 *** Warning: the GNU linker, at least up to release 2.19, is reported
10395 *** to be unable to reliably create shared libraries on AIX.
10396 *** Therefore, libtool is disabling shared libraries support. If you
10397 *** really care for shared libraries, you may want to install binutils
10398 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10399 *** You will then need to restart the configuration process.
10400
10401 _LT_EOF
10402 fi
10403 ;;
10404
10405 amigaos*)
10406 case $host_cpu in
10407 powerpc)
10408 # see comment about AmigaOS4 .so support
10409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10410 archive_expsym_cmds=''
10411 ;;
10412 m68k)
10413 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)'
10414 hardcode_libdir_flag_spec='-L$libdir'
10415 hardcode_minus_L=yes
10416 ;;
10417 esac
10418 ;;
10419
10420 beos*)
10421 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10422 allow_undefined_flag=unsupported
10423 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10424 # support --undefined. This deserves some investigation. FIXME
10425 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10426 else
10427 ld_shlibs=no
10428 fi
10429 ;;
10430
10431 cygwin* | mingw* | pw32* | cegcc*)
10432 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10433 # as there is no search path for DLLs.
10434 hardcode_libdir_flag_spec='-L$libdir'
10435 export_dynamic_flag_spec='$wl--export-all-symbols'
10436 allow_undefined_flag=unsupported
10437 always_export_symbols=no
10438 enable_shared_with_static_runtimes=yes
10439 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'
10440 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10441
10442 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10443 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10444 # If the export-symbols file already is a .def file, use it as
10445 # is; otherwise, prepend EXPORTS...
10446 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10447 cp $export_symbols $output_objdir/$soname.def;
10448 else
10449 echo EXPORTS > $output_objdir/$soname.def;
10450 cat $export_symbols >> $output_objdir/$soname.def;
10451 fi~
10452 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10453 else
10454 ld_shlibs=no
10455 fi
10456 ;;
10457
10458 haiku*)
10459 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10460 link_all_deplibs=yes
10461 ;;
10462
10463 os2*)
10464 hardcode_libdir_flag_spec='-L$libdir'
10465 hardcode_minus_L=yes
10466 allow_undefined_flag=unsupported
10467 shrext_cmds=.dll
10468 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10469 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10470 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10471 $ECHO EXPORTS >> $output_objdir/$libname.def~
10472 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10473 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10474 emximp -o $lib $output_objdir/$libname.def'
10475 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10476 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10477 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10478 $ECHO EXPORTS >> $output_objdir/$libname.def~
10479 prefix_cmds="$SED"~
10480 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10481 prefix_cmds="$prefix_cmds -e 1d";
10482 fi~
10483 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10484 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10485 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10486 emximp -o $lib $output_objdir/$libname.def'
10487 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10488 enable_shared_with_static_runtimes=yes
10489 ;;
10490
10491 interix[3-9]*)
10492 hardcode_direct=no
10493 hardcode_shlibpath_var=no
10494 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10495 export_dynamic_flag_spec='$wl-E'
10496 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10497 # Instead, shared libraries are loaded at an image base (0x10000000 by
10498 # default) and relocated if they conflict, which is a slow very memory
10499 # consuming and fragmenting process. To avoid this, we pick a random,
10500 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10501 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10502 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10503 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'
10504 ;;
10505
10506 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10507 tmp_diet=no
10508 if test linux-dietlibc = "$host_os"; then
10509 case $cc_basename in
10510 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10511 esac
10512 fi
10513 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10514 && test no = "$tmp_diet"
10515 then
10516 tmp_addflag=' $pic_flag'
10517 tmp_sharedflag='-shared'
10518 case $cc_basename,$host_cpu in
10519 pgcc*) # Portland Group C compiler
10520 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'
10521 tmp_addflag=' $pic_flag'
10522 ;;
10523 pgf77* | pgf90* | pgf95* | pgfortran*)
10524 # Portland Group f77 and f90 compilers
10525 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'
10526 tmp_addflag=' $pic_flag -Mnomain' ;;
10527 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10528 tmp_addflag=' -i_dynamic' ;;
10529 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10530 tmp_addflag=' -i_dynamic -nofor_main' ;;
10531 ifc* | ifort*) # Intel Fortran compiler
10532 tmp_addflag=' -nofor_main' ;;
10533 lf95*) # Lahey Fortran 8.1
10534 whole_archive_flag_spec=
10535 tmp_sharedflag='--shared' ;;
10536 nagfor*) # NAGFOR 5.3
10537 tmp_sharedflag='-Wl,-shared' ;;
10538 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10539 tmp_sharedflag='-qmkshrobj'
10540 tmp_addflag= ;;
10541 nvcc*) # Cuda Compiler Driver 2.2
10542 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'
10543 compiler_needs_object=yes
10544 ;;
10545 esac
10546 case `$CC -V 2>&1 | sed 5q` in
10547 *Sun\ C*) # Sun C 5.9
10548 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'
10549 compiler_needs_object=yes
10550 tmp_sharedflag='-G' ;;
10551 *Sun\ F*) # Sun Fortran 8.3
10552 tmp_sharedflag='-G' ;;
10553 esac
10554 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10555
10556 if test yes = "$supports_anon_versioning"; then
10557 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10558 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10559 echo "local: *; };" >> $output_objdir/$libname.ver~
10560 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10561 fi
10562
10563 case $cc_basename in
10564 tcc*)
10565 export_dynamic_flag_spec='-rdynamic'
10566 ;;
10567 xlf* | bgf* | bgxlf* | mpixlf*)
10568 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10569 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10570 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10571 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10572 if test yes = "$supports_anon_versioning"; then
10573 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10574 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10575 echo "local: *; };" >> $output_objdir/$libname.ver~
10576 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10577 fi
10578 ;;
10579 esac
10580 else
10581 ld_shlibs=no
10582 fi
10583 ;;
10584
10585 netbsd*)
10586 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10587 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10588 wlarc=
10589 else
10590 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10591 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10592 fi
10593 ;;
10594
10595 solaris*)
10596 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10597 ld_shlibs=no
10598 cat <<_LT_EOF 1>&2
10599
10600 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10601 *** create shared libraries on Solaris systems. Therefore, libtool
10602 *** is disabling shared libraries support. We urge you to upgrade GNU
10603 *** binutils to release 2.9.1 or newer. Another option is to modify
10604 *** your PATH or compiler configuration so that the native linker is
10605 *** used, and then restart.
10606
10607 _LT_EOF
10608 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10609 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10610 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10611 else
10612 ld_shlibs=no
10613 fi
10614 ;;
10615
10616 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10617 case `$LD -v 2>&1` in
10618 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10619 ld_shlibs=no
10620 cat <<_LT_EOF 1>&2
10621
10622 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10623 *** reliably create shared libraries on SCO systems. Therefore, libtool
10624 *** is disabling shared libraries support. We urge you to upgrade GNU
10625 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10626 *** your PATH or compiler configuration so that the native linker is
10627 *** used, and then restart.
10628
10629 _LT_EOF
10630 ;;
10631 *)
10632 # For security reasons, it is highly recommended that you always
10633 # use absolute paths for naming shared libraries, and exclude the
10634 # DT_RUNPATH tag from executables and libraries. But doing so
10635 # requires that you compile everything twice, which is a pain.
10636 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10637 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10639 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10640 else
10641 ld_shlibs=no
10642 fi
10643 ;;
10644 esac
10645 ;;
10646
10647 sunos4*)
10648 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10649 wlarc=
10650 hardcode_direct=yes
10651 hardcode_shlibpath_var=no
10652 ;;
10653
10654 *)
10655 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10656 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10657 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10658 else
10659 ld_shlibs=no
10660 fi
10661 ;;
10662 esac
10663
10664 if test no = "$ld_shlibs"; then
10665 runpath_var=
10666 hardcode_libdir_flag_spec=
10667 export_dynamic_flag_spec=
10668 whole_archive_flag_spec=
10669 fi
10670 else
10671 # PORTME fill in a description of your system's linker (not GNU ld)
10672 case $host_os in
10673 aix3*)
10674 allow_undefined_flag=unsupported
10675 always_export_symbols=yes
10676 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'
10677 # Note: this linker hardcodes the directories in LIBPATH if there
10678 # are no directories specified by -L.
10679 hardcode_minus_L=yes
10680 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10681 # Neither direct hardcoding nor static linking is supported with a
10682 # broken collect2.
10683 hardcode_direct=unsupported
10684 fi
10685 ;;
10686
10687 aix[4-9]*)
10688 if test ia64 = "$host_cpu"; then
10689 # On IA64, the linker does run time linking by default, so we don't
10690 # have to do anything special.
10691 aix_use_runtimelinking=no
10692 exp_sym_flag='-Bexport'
10693 no_entry_flag=
10694 else
10695 # If we're using GNU nm, then we don't want the "-C" option.
10696 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10697 # Without the "-l" option, or with the "-B" option, AIX nm treats
10698 # weak defined symbols like other global defined symbols, whereas
10699 # GNU nm marks them as "W".
10700 # While the 'weak' keyword is ignored in the Export File, we need
10701 # it in the Import File for the 'aix-soname' feature, so we have
10702 # to replace the "-B" option with "-P" for AIX nm.
10703 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10704 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10705 else
10706 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10707 fi
10708 aix_use_runtimelinking=no
10709
10710 # Test if we are trying to use run time linking or normal
10711 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10712 # have runtime linking enabled, and use it for executables.
10713 # For shared libraries, we enable/disable runtime linking
10714 # depending on the kind of the shared library created -
10715 # when "with_aix_soname,aix_use_runtimelinking" is:
10716 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10717 # "aix,yes" lib.so shared, rtl:yes, for executables
10718 # lib.a static archive
10719 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10720 # lib.a(lib.so.V) shared, rtl:no, for executables
10721 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10722 # lib.a(lib.so.V) shared, rtl:no
10723 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10724 # lib.a static archive
10725 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10726 for ld_flag in $LDFLAGS; do
10727 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10728 aix_use_runtimelinking=yes
10729 break
10730 fi
10731 done
10732 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10733 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10734 # so we don't have lib.a shared libs to link our executables.
10735 # We have to force runtime linking in this case.
10736 aix_use_runtimelinking=yes
10737 LDFLAGS="$LDFLAGS -Wl,-brtl"
10738 fi
10739 ;;
10740 esac
10741
10742 exp_sym_flag='-bexport'
10743 no_entry_flag='-bnoentry'
10744 fi
10745
10746 # When large executables or shared objects are built, AIX ld can
10747 # have problems creating the table of contents. If linking a library
10748 # or program results in "error TOC overflow" add -mminimal-toc to
10749 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10750 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10751
10752 archive_cmds=''
10753 hardcode_direct=yes
10754 hardcode_direct_absolute=yes
10755 hardcode_libdir_separator=':'
10756 link_all_deplibs=yes
10757 file_list_spec='$wl-f,'
10758 case $with_aix_soname,$aix_use_runtimelinking in
10759 aix,*) ;; # traditional, no import file
10760 svr4,* | *,yes) # use import file
10761 # The Import File defines what to hardcode.
10762 hardcode_direct=no
10763 hardcode_direct_absolute=no
10764 ;;
10765 esac
10766
10767 if test yes = "$GCC"; then
10768 case $host_os in aix4.[012]|aix4.[012].*)
10769 # We only want to do this on AIX 4.2 and lower, the check
10770 # below for broken collect2 doesn't work under 4.3+
10771 collect2name=`$CC -print-prog-name=collect2`
10772 if test -f "$collect2name" &&
10773 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10774 then
10775 # We have reworked collect2
10776 :
10777 else
10778 # We have old collect2
10779 hardcode_direct=unsupported
10780 # It fails to find uninstalled libraries when the uninstalled
10781 # path is not listed in the libpath. Setting hardcode_minus_L
10782 # to unsupported forces relinking
10783 hardcode_minus_L=yes
10784 hardcode_libdir_flag_spec='-L$libdir'
10785 hardcode_libdir_separator=
10786 fi
10787 ;;
10788 esac
10789 shared_flag='-shared'
10790 if test yes = "$aix_use_runtimelinking"; then
10791 shared_flag="$shared_flag "'$wl-G'
10792 fi
10793 # Need to ensure runtime linking is disabled for the traditional
10794 # shared library, or the linker may eventually find shared libraries
10795 # /with/ Import File - we do not want to mix them.
10796 shared_flag_aix='-shared'
10797 shared_flag_svr4='-shared $wl-G'
10798 else
10799 # not using gcc
10800 if test ia64 = "$host_cpu"; then
10801 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10802 # chokes on -Wl,-G. The following line is correct:
10803 shared_flag='-G'
10804 else
10805 if test yes = "$aix_use_runtimelinking"; then
10806 shared_flag='$wl-G'
10807 else
10808 shared_flag='$wl-bM:SRE'
10809 fi
10810 shared_flag_aix='$wl-bM:SRE'
10811 shared_flag_svr4='$wl-G'
10812 fi
10813 fi
10814
10815 export_dynamic_flag_spec='$wl-bexpall'
10816 # It seems that -bexpall does not export symbols beginning with
10817 # underscore (_), so it is better to generate a list of symbols to export.
10818 always_export_symbols=yes
10819 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10820 # Warning - without using the other runtime loading flags (-brtl),
10821 # -berok will link without error, but may produce a broken library.
10822 allow_undefined_flag='-berok'
10823 # Determine the default libpath from the value encoded in an
10824 # empty executable.
10825 if test set = "${lt_cv_aix_libpath+set}"; then
10826 aix_libpath=$lt_cv_aix_libpath
10827 else
10828 if ${lt_cv_aix_libpath_+:} false; then :
10829 $as_echo_n "(cached) " >&6
10830 else
10831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832 /* end confdefs.h. */
10833
10834 int
10835 main ()
10836 {
10837
10838 ;
10839 return 0;
10840 }
10841 _ACEOF
10842 if ac_fn_c_try_link "$LINENO"; then :
10843
10844 lt_aix_libpath_sed='
10845 /Import File Strings/,/^$/ {
10846 /^0/ {
10847 s/^0 *\([^ ]*\) *$/\1/
10848 p
10849 }
10850 }'
10851 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10852 # Check for a 64-bit object if we didn't find anything.
10853 if test -z "$lt_cv_aix_libpath_"; then
10854 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10855 fi
10856 fi
10857 rm -f core conftest.err conftest.$ac_objext \
10858 conftest$ac_exeext conftest.$ac_ext
10859 if test -z "$lt_cv_aix_libpath_"; then
10860 lt_cv_aix_libpath_=/usr/lib:/lib
10861 fi
10862
10863 fi
10864
10865 aix_libpath=$lt_cv_aix_libpath_
10866 fi
10867
10868 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10869 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10870 else
10871 if test ia64 = "$host_cpu"; then
10872 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10873 allow_undefined_flag="-z nodefs"
10874 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"
10875 else
10876 # Determine the default libpath from the value encoded in an
10877 # empty executable.
10878 if test set = "${lt_cv_aix_libpath+set}"; then
10879 aix_libpath=$lt_cv_aix_libpath
10880 else
10881 if ${lt_cv_aix_libpath_+:} false; then :
10882 $as_echo_n "(cached) " >&6
10883 else
10884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10885 /* end confdefs.h. */
10886
10887 int
10888 main ()
10889 {
10890
10891 ;
10892 return 0;
10893 }
10894 _ACEOF
10895 if ac_fn_c_try_link "$LINENO"; then :
10896
10897 lt_aix_libpath_sed='
10898 /Import File Strings/,/^$/ {
10899 /^0/ {
10900 s/^0 *\([^ ]*\) *$/\1/
10901 p
10902 }
10903 }'
10904 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10905 # Check for a 64-bit object if we didn't find anything.
10906 if test -z "$lt_cv_aix_libpath_"; then
10907 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10908 fi
10909 fi
10910 rm -f core conftest.err conftest.$ac_objext \
10911 conftest$ac_exeext conftest.$ac_ext
10912 if test -z "$lt_cv_aix_libpath_"; then
10913 lt_cv_aix_libpath_=/usr/lib:/lib
10914 fi
10915
10916 fi
10917
10918 aix_libpath=$lt_cv_aix_libpath_
10919 fi
10920
10921 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10922 # Warning - without using the other run time loading flags,
10923 # -berok will link without error, but may produce a broken library.
10924 no_undefined_flag=' $wl-bernotok'
10925 allow_undefined_flag=' $wl-berok'
10926 if test yes = "$with_gnu_ld"; then
10927 # We only use this code for GNU lds that support --whole-archive.
10928 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10929 else
10930 # Exported symbols can be pulled into shared objects from archives
10931 whole_archive_flag_spec='$convenience'
10932 fi
10933 archive_cmds_need_lc=yes
10934 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10935 # -brtl affects multiple linker settings, -berok does not and is overridden later
10936 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10937 if test svr4 != "$with_aix_soname"; then
10938 # This is similar to how AIX traditionally builds its shared libraries.
10939 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10940 fi
10941 if test aix != "$with_aix_soname"; then
10942 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10943 else
10944 # used by -dlpreopen to get the symbols
10945 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10946 fi
10947 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10948 fi
10949 fi
10950 ;;
10951
10952 amigaos*)
10953 case $host_cpu in
10954 powerpc)
10955 # see comment about AmigaOS4 .so support
10956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10957 archive_expsym_cmds=''
10958 ;;
10959 m68k)
10960 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)'
10961 hardcode_libdir_flag_spec='-L$libdir'
10962 hardcode_minus_L=yes
10963 ;;
10964 esac
10965 ;;
10966
10967 bsdi[45]*)
10968 export_dynamic_flag_spec=-rdynamic
10969 ;;
10970
10971 cygwin* | mingw* | pw32* | cegcc*)
10972 # When not using gcc, we currently assume that we are using
10973 # Microsoft Visual C++.
10974 # hardcode_libdir_flag_spec is actually meaningless, as there is
10975 # no search path for DLLs.
10976 case $cc_basename in
10977 cl*)
10978 # Native MSVC
10979 hardcode_libdir_flag_spec=' '
10980 allow_undefined_flag=unsupported
10981 always_export_symbols=yes
10982 file_list_spec='@'
10983 # Tell ltmain to make .lib files, not .a files.
10984 libext=lib
10985 # Tell ltmain to make .dll files, not .so files.
10986 shrext_cmds=.dll
10987 # FIXME: Setting linknames here is a bad hack.
10988 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10989 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10990 cp "$export_symbols" "$output_objdir/$soname.def";
10991 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10992 else
10993 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10994 fi~
10995 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10996 linknames='
10997 # The linker will not automatically build a static lib if we build a DLL.
10998 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10999 enable_shared_with_static_runtimes=yes
11000 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11001 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11002 # Don't use ranlib
11003 old_postinstall_cmds='chmod 644 $oldlib'
11004 postlink_cmds='lt_outputfile="@OUTPUT@"~
11005 lt_tool_outputfile="@TOOL_OUTPUT@"~
11006 case $lt_outputfile in
11007 *.exe|*.EXE) ;;
11008 *)
11009 lt_outputfile=$lt_outputfile.exe
11010 lt_tool_outputfile=$lt_tool_outputfile.exe
11011 ;;
11012 esac~
11013 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11014 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11015 $RM "$lt_outputfile.manifest";
11016 fi'
11017 ;;
11018 *)
11019 # Assume MSVC wrapper
11020 hardcode_libdir_flag_spec=' '
11021 allow_undefined_flag=unsupported
11022 # Tell ltmain to make .lib files, not .a files.
11023 libext=lib
11024 # Tell ltmain to make .dll files, not .so files.
11025 shrext_cmds=.dll
11026 # FIXME: Setting linknames here is a bad hack.
11027 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11028 # The linker will automatically build a .lib file if we build a DLL.
11029 old_archive_from_new_cmds='true'
11030 # FIXME: Should let the user specify the lib program.
11031 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11032 enable_shared_with_static_runtimes=yes
11033 ;;
11034 esac
11035 ;;
11036
11037 darwin* | rhapsody*)
11038
11039
11040 archive_cmds_need_lc=no
11041 hardcode_direct=no
11042 hardcode_automatic=yes
11043 hardcode_shlibpath_var=unsupported
11044 if test yes = "$lt_cv_ld_force_load"; then
11045 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\"`'
11046
11047 else
11048 whole_archive_flag_spec=''
11049 fi
11050 link_all_deplibs=yes
11051 allow_undefined_flag=$_lt_dar_allow_undefined
11052 case $cc_basename in
11053 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11054 *) _lt_dar_can_shared=$GCC ;;
11055 esac
11056 if test yes = "$_lt_dar_can_shared"; then
11057 output_verbose_link_cmd=func_echo_all
11058 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11059 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11060 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"
11061 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"
11062
11063 else
11064 ld_shlibs=no
11065 fi
11066
11067 ;;
11068
11069 dgux*)
11070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11071 hardcode_libdir_flag_spec='-L$libdir'
11072 hardcode_shlibpath_var=no
11073 ;;
11074
11075 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11076 # support. Future versions do this automatically, but an explicit c++rt0.o
11077 # does not break anything, and helps significantly (at the cost of a little
11078 # extra space).
11079 freebsd2.2*)
11080 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11081 hardcode_libdir_flag_spec='-R$libdir'
11082 hardcode_direct=yes
11083 hardcode_shlibpath_var=no
11084 ;;
11085
11086 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11087 freebsd2.*)
11088 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11089 hardcode_direct=yes
11090 hardcode_minus_L=yes
11091 hardcode_shlibpath_var=no
11092 ;;
11093
11094 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11095 freebsd* | dragonfly*)
11096 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11097 hardcode_libdir_flag_spec='-R$libdir'
11098 hardcode_direct=yes
11099 hardcode_shlibpath_var=no
11100 ;;
11101
11102 hpux9*)
11103 if test yes = "$GCC"; then
11104 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11105 else
11106 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11107 fi
11108 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11109 hardcode_libdir_separator=:
11110 hardcode_direct=yes
11111
11112 # hardcode_minus_L: Not really in the search PATH,
11113 # but as the default location of the library.
11114 hardcode_minus_L=yes
11115 export_dynamic_flag_spec='$wl-E'
11116 ;;
11117
11118 hpux10*)
11119 if test yes,no = "$GCC,$with_gnu_ld"; then
11120 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11121 else
11122 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11123 fi
11124 if test no = "$with_gnu_ld"; then
11125 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11126 hardcode_libdir_separator=:
11127 hardcode_direct=yes
11128 hardcode_direct_absolute=yes
11129 export_dynamic_flag_spec='$wl-E'
11130 # hardcode_minus_L: Not really in the search PATH,
11131 # but as the default location of the library.
11132 hardcode_minus_L=yes
11133 fi
11134 ;;
11135
11136 hpux11*)
11137 if test yes,no = "$GCC,$with_gnu_ld"; then
11138 case $host_cpu in
11139 hppa*64*)
11140 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11141 ;;
11142 ia64*)
11143 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11144 ;;
11145 *)
11146 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11147 ;;
11148 esac
11149 else
11150 case $host_cpu in
11151 hppa*64*)
11152 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11153 ;;
11154 ia64*)
11155 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11156 ;;
11157 *)
11158
11159 # Older versions of the 11.00 compiler do not understand -b yet
11160 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11162 $as_echo_n "checking if $CC understands -b... " >&6; }
11163 if ${lt_cv_prog_compiler__b+:} false; then :
11164 $as_echo_n "(cached) " >&6
11165 else
11166 lt_cv_prog_compiler__b=no
11167 save_LDFLAGS=$LDFLAGS
11168 LDFLAGS="$LDFLAGS -b"
11169 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11170 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11171 # The linker can only warn and ignore the option if not recognized
11172 # So say no if there are warnings
11173 if test -s conftest.err; then
11174 # Append any errors to the config.log.
11175 cat conftest.err 1>&5
11176 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11177 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11178 if diff conftest.exp conftest.er2 >/dev/null; then
11179 lt_cv_prog_compiler__b=yes
11180 fi
11181 else
11182 lt_cv_prog_compiler__b=yes
11183 fi
11184 fi
11185 $RM -r conftest*
11186 LDFLAGS=$save_LDFLAGS
11187
11188 fi
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11190 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11191
11192 if test yes = "$lt_cv_prog_compiler__b"; then
11193 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11194 else
11195 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11196 fi
11197
11198 ;;
11199 esac
11200 fi
11201 if test no = "$with_gnu_ld"; then
11202 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11203 hardcode_libdir_separator=:
11204
11205 case $host_cpu in
11206 hppa*64*|ia64*)
11207 hardcode_direct=no
11208 hardcode_shlibpath_var=no
11209 ;;
11210 *)
11211 hardcode_direct=yes
11212 hardcode_direct_absolute=yes
11213 export_dynamic_flag_spec='$wl-E'
11214
11215 # hardcode_minus_L: Not really in the search PATH,
11216 # but as the default location of the library.
11217 hardcode_minus_L=yes
11218 ;;
11219 esac
11220 fi
11221 ;;
11222
11223 irix5* | irix6* | nonstopux*)
11224 if test yes = "$GCC"; then
11225 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'
11226 # Try to use the -exported_symbol ld option, if it does not
11227 # work, assume that -exports_file does not work either and
11228 # implicitly export all symbols.
11229 # This should be the same for all languages, so no per-tag cache variable.
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11231 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11232 if ${lt_cv_irix_exported_symbol+:} false; then :
11233 $as_echo_n "(cached) " >&6
11234 else
11235 save_LDFLAGS=$LDFLAGS
11236 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11238 /* end confdefs.h. */
11239 int foo (void) { return 0; }
11240 _ACEOF
11241 if ac_fn_c_try_link "$LINENO"; then :
11242 lt_cv_irix_exported_symbol=yes
11243 else
11244 lt_cv_irix_exported_symbol=no
11245 fi
11246 rm -f core conftest.err conftest.$ac_objext \
11247 conftest$ac_exeext conftest.$ac_ext
11248 LDFLAGS=$save_LDFLAGS
11249 fi
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11251 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11252 if test yes = "$lt_cv_irix_exported_symbol"; then
11253 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'
11254 fi
11255 else
11256 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'
11257 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'
11258 fi
11259 archive_cmds_need_lc='no'
11260 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11261 hardcode_libdir_separator=:
11262 inherit_rpath=yes
11263 link_all_deplibs=yes
11264 ;;
11265
11266 linux*)
11267 case $cc_basename in
11268 tcc*)
11269 # Fabrice Bellard et al's Tiny C Compiler
11270 ld_shlibs=yes
11271 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11272 ;;
11273 esac
11274 ;;
11275
11276 netbsd*)
11277 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11278 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11279 else
11280 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11281 fi
11282 hardcode_libdir_flag_spec='-R$libdir'
11283 hardcode_direct=yes
11284 hardcode_shlibpath_var=no
11285 ;;
11286
11287 newsos6)
11288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11289 hardcode_direct=yes
11290 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11291 hardcode_libdir_separator=:
11292 hardcode_shlibpath_var=no
11293 ;;
11294
11295 *nto* | *qnx*)
11296 ;;
11297
11298 openbsd* | bitrig*)
11299 if test -f /usr/libexec/ld.so; then
11300 hardcode_direct=yes
11301 hardcode_shlibpath_var=no
11302 hardcode_direct_absolute=yes
11303 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11304 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11305 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11306 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11307 export_dynamic_flag_spec='$wl-E'
11308 else
11309 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11310 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11311 fi
11312 else
11313 ld_shlibs=no
11314 fi
11315 ;;
11316
11317 os2*)
11318 hardcode_libdir_flag_spec='-L$libdir'
11319 hardcode_minus_L=yes
11320 allow_undefined_flag=unsupported
11321 shrext_cmds=.dll
11322 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11323 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11324 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11325 $ECHO EXPORTS >> $output_objdir/$libname.def~
11326 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11327 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11328 emximp -o $lib $output_objdir/$libname.def'
11329 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11330 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11331 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11332 $ECHO EXPORTS >> $output_objdir/$libname.def~
11333 prefix_cmds="$SED"~
11334 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11335 prefix_cmds="$prefix_cmds -e 1d";
11336 fi~
11337 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11338 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11339 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11340 emximp -o $lib $output_objdir/$libname.def'
11341 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11342 enable_shared_with_static_runtimes=yes
11343 ;;
11344
11345 osf3*)
11346 if test yes = "$GCC"; then
11347 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11348 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'
11349 else
11350 allow_undefined_flag=' -expect_unresolved \*'
11351 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'
11352 fi
11353 archive_cmds_need_lc='no'
11354 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11355 hardcode_libdir_separator=:
11356 ;;
11357
11358 osf4* | osf5*) # as osf3* with the addition of -msym flag
11359 if test yes = "$GCC"; then
11360 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11361 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'
11362 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11363 else
11364 allow_undefined_flag=' -expect_unresolved \*'
11365 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'
11366 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~
11367 $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'
11368
11369 # Both c and cxx compiler support -rpath directly
11370 hardcode_libdir_flag_spec='-rpath $libdir'
11371 fi
11372 archive_cmds_need_lc='no'
11373 hardcode_libdir_separator=:
11374 ;;
11375
11376 solaris*)
11377 no_undefined_flag=' -z defs'
11378 if test yes = "$GCC"; then
11379 wlarc='$wl'
11380 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11381 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11382 $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'
11383 else
11384 case `$CC -V 2>&1` in
11385 *"Compilers 5.0"*)
11386 wlarc=''
11387 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11388 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11389 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11390 ;;
11391 *)
11392 wlarc='$wl'
11393 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11394 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11395 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11396 ;;
11397 esac
11398 fi
11399 hardcode_libdir_flag_spec='-R$libdir'
11400 hardcode_shlibpath_var=no
11401 case $host_os in
11402 solaris2.[0-5] | solaris2.[0-5].*) ;;
11403 *)
11404 # The compiler driver will combine and reorder linker options,
11405 # but understands '-z linker_flag'. GCC discards it without '$wl',
11406 # but is careful enough not to reorder.
11407 # Supported since Solaris 2.6 (maybe 2.5.1?)
11408 if test yes = "$GCC"; then
11409 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11410 else
11411 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11412 fi
11413 ;;
11414 esac
11415 link_all_deplibs=yes
11416 ;;
11417
11418 sunos4*)
11419 if test sequent = "$host_vendor"; then
11420 # Use $CC to link under sequent, because it throws in some extra .o
11421 # files that make .init and .fini sections work.
11422 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11423 else
11424 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11425 fi
11426 hardcode_libdir_flag_spec='-L$libdir'
11427 hardcode_direct=yes
11428 hardcode_minus_L=yes
11429 hardcode_shlibpath_var=no
11430 ;;
11431
11432 sysv4)
11433 case $host_vendor in
11434 sni)
11435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11436 hardcode_direct=yes # is this really true???
11437 ;;
11438 siemens)
11439 ## LD is ld it makes a PLAMLIB
11440 ## CC just makes a GrossModule.
11441 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11442 reload_cmds='$CC -r -o $output$reload_objs'
11443 hardcode_direct=no
11444 ;;
11445 motorola)
11446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11447 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11448 ;;
11449 esac
11450 runpath_var='LD_RUN_PATH'
11451 hardcode_shlibpath_var=no
11452 ;;
11453
11454 sysv4.3*)
11455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11456 hardcode_shlibpath_var=no
11457 export_dynamic_flag_spec='-Bexport'
11458 ;;
11459
11460 sysv4*MP*)
11461 if test -d /usr/nec; then
11462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11463 hardcode_shlibpath_var=no
11464 runpath_var=LD_RUN_PATH
11465 hardcode_runpath_var=yes
11466 ld_shlibs=yes
11467 fi
11468 ;;
11469
11470 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11471 no_undefined_flag='$wl-z,text'
11472 archive_cmds_need_lc=no
11473 hardcode_shlibpath_var=no
11474 runpath_var='LD_RUN_PATH'
11475
11476 if test yes = "$GCC"; then
11477 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11478 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11479 else
11480 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11481 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11482 fi
11483 ;;
11484
11485 sysv5* | sco3.2v5* | sco5v6*)
11486 # Note: We CANNOT use -z defs as we might desire, because we do not
11487 # link with -lc, and that would cause any symbols used from libc to
11488 # always be unresolved, which means just about no library would
11489 # ever link correctly. If we're not using GNU ld we use -z text
11490 # though, which does catch some bad symbols but isn't as heavy-handed
11491 # as -z defs.
11492 no_undefined_flag='$wl-z,text'
11493 allow_undefined_flag='$wl-z,nodefs'
11494 archive_cmds_need_lc=no
11495 hardcode_shlibpath_var=no
11496 hardcode_libdir_flag_spec='$wl-R,$libdir'
11497 hardcode_libdir_separator=':'
11498 link_all_deplibs=yes
11499 export_dynamic_flag_spec='$wl-Bexport'
11500 runpath_var='LD_RUN_PATH'
11501
11502 if test yes = "$GCC"; then
11503 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11504 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11505 else
11506 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11507 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11508 fi
11509 ;;
11510
11511 uts4*)
11512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11513 hardcode_libdir_flag_spec='-L$libdir'
11514 hardcode_shlibpath_var=no
11515 ;;
11516
11517 *)
11518 ld_shlibs=no
11519 ;;
11520 esac
11521
11522 if test sni = "$host_vendor"; then
11523 case $host in
11524 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11525 export_dynamic_flag_spec='$wl-Blargedynsym'
11526 ;;
11527 esac
11528 fi
11529 fi
11530
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11532 $as_echo "$ld_shlibs" >&6; }
11533 test no = "$ld_shlibs" && can_build_shared=no
11534
11535 with_gnu_ld=$with_gnu_ld
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551 #
11552 # Do we need to explicitly link libc?
11553 #
11554 case "x$archive_cmds_need_lc" in
11555 x|xyes)
11556 # Assume -lc should be added
11557 archive_cmds_need_lc=yes
11558
11559 if test yes,yes = "$GCC,$enable_shared"; then
11560 case $archive_cmds in
11561 *'~'*)
11562 # FIXME: we may have to deal with multi-command sequences.
11563 ;;
11564 '$CC '*)
11565 # Test whether the compiler implicitly links with -lc since on some
11566 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11567 # to ld, don't add -lc before -lgcc.
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11569 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11570 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11571 $as_echo_n "(cached) " >&6
11572 else
11573 $RM conftest*
11574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11575
11576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11577 (eval $ac_compile) 2>&5
11578 ac_status=$?
11579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11580 test $ac_status = 0; } 2>conftest.err; then
11581 soname=conftest
11582 lib=conftest
11583 libobjs=conftest.$ac_objext
11584 deplibs=
11585 wl=$lt_prog_compiler_wl
11586 pic_flag=$lt_prog_compiler_pic
11587 compiler_flags=-v
11588 linker_flags=-v
11589 verstring=
11590 output_objdir=.
11591 libname=conftest
11592 lt_save_allow_undefined_flag=$allow_undefined_flag
11593 allow_undefined_flag=
11594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11595 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11596 ac_status=$?
11597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11598 test $ac_status = 0; }
11599 then
11600 lt_cv_archive_cmds_need_lc=no
11601 else
11602 lt_cv_archive_cmds_need_lc=yes
11603 fi
11604 allow_undefined_flag=$lt_save_allow_undefined_flag
11605 else
11606 cat conftest.err 1>&5
11607 fi
11608 $RM conftest*
11609
11610 fi
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11612 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11613 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11614 ;;
11615 esac
11616 fi
11617 ;;
11618 esac
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11772 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11773
11774 if test yes = "$GCC"; then
11775 case $host_os in
11776 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11777 *) lt_awk_arg='/^libraries:/' ;;
11778 esac
11779 case $host_os in
11780 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11781 *) lt_sed_strip_eq='s|=/|/|g' ;;
11782 esac
11783 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11784 case $lt_search_path_spec in
11785 *\;*)
11786 # if the path contains ";" then we assume it to be the separator
11787 # otherwise default to the standard path separator (i.e. ":") - it is
11788 # assumed that no part of a normal pathname contains ";" but that should
11789 # okay in the real world where ";" in dirpaths is itself problematic.
11790 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11791 ;;
11792 *)
11793 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11794 ;;
11795 esac
11796 # Ok, now we have the path, separated by spaces, we can step through it
11797 # and add multilib dir if necessary...
11798 lt_tmp_lt_search_path_spec=
11799 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11800 # ...but if some path component already ends with the multilib dir we assume
11801 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11802 case "$lt_multi_os_dir; $lt_search_path_spec " in
11803 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11804 lt_multi_os_dir=
11805 ;;
11806 esac
11807 for lt_sys_path in $lt_search_path_spec; do
11808 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11809 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11810 elif test -n "$lt_multi_os_dir"; then
11811 test -d "$lt_sys_path" && \
11812 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11813 fi
11814 done
11815 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11816 BEGIN {RS = " "; FS = "/|\n";} {
11817 lt_foo = "";
11818 lt_count = 0;
11819 for (lt_i = NF; lt_i > 0; lt_i--) {
11820 if ($lt_i != "" && $lt_i != ".") {
11821 if ($lt_i == "..") {
11822 lt_count++;
11823 } else {
11824 if (lt_count == 0) {
11825 lt_foo = "/" $lt_i lt_foo;
11826 } else {
11827 lt_count--;
11828 }
11829 }
11830 }
11831 }
11832 if (lt_foo != "") { lt_freq[lt_foo]++; }
11833 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11834 }'`
11835 # AWK program above erroneously prepends '/' to C:/dos/paths
11836 # for these hosts.
11837 case $host_os in
11838 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11839 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11840 esac
11841 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11842 else
11843 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11844 fi
11845 library_names_spec=
11846 libname_spec='lib$name'
11847 soname_spec=
11848 shrext_cmds=.so
11849 postinstall_cmds=
11850 postuninstall_cmds=
11851 finish_cmds=
11852 finish_eval=
11853 shlibpath_var=
11854 shlibpath_overrides_runpath=unknown
11855 version_type=none
11856 dynamic_linker="$host_os ld.so"
11857 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11858 need_lib_prefix=unknown
11859 hardcode_into_libs=no
11860
11861 # when you set need_version to no, make sure it does not cause -set_version
11862 # flags to be left without arguments
11863 need_version=unknown
11864
11865
11866
11867 case $host_os in
11868 aix3*)
11869 version_type=linux # correct to gnu/linux during the next big refactor
11870 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11871 shlibpath_var=LIBPATH
11872
11873 # AIX 3 has no versioning support, so we append a major version to the name.
11874 soname_spec='$libname$release$shared_ext$major'
11875 ;;
11876
11877 aix[4-9]*)
11878 version_type=linux # correct to gnu/linux during the next big refactor
11879 need_lib_prefix=no
11880 need_version=no
11881 hardcode_into_libs=yes
11882 if test ia64 = "$host_cpu"; then
11883 # AIX 5 supports IA64
11884 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11885 shlibpath_var=LD_LIBRARY_PATH
11886 else
11887 # With GCC up to 2.95.x, collect2 would create an import file
11888 # for dependence libraries. The import file would start with
11889 # the line '#! .'. This would cause the generated library to
11890 # depend on '.', always an invalid library. This was fixed in
11891 # development snapshots of GCC prior to 3.0.
11892 case $host_os in
11893 aix4 | aix4.[01] | aix4.[01].*)
11894 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11895 echo ' yes '
11896 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11897 :
11898 else
11899 can_build_shared=no
11900 fi
11901 ;;
11902 esac
11903 # Using Import Files as archive members, it is possible to support
11904 # filename-based versioning of shared library archives on AIX. While
11905 # this would work for both with and without runtime linking, it will
11906 # prevent static linking of such archives. So we do filename-based
11907 # shared library versioning with .so extension only, which is used
11908 # when both runtime linking and shared linking is enabled.
11909 # Unfortunately, runtime linking may impact performance, so we do
11910 # not want this to be the default eventually. Also, we use the
11911 # versioned .so libs for executables only if there is the -brtl
11912 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11913 # To allow for filename-based versioning support, we need to create
11914 # libNAME.so.V as an archive file, containing:
11915 # *) an Import File, referring to the versioned filename of the
11916 # archive as well as the shared archive member, telling the
11917 # bitwidth (32 or 64) of that shared object, and providing the
11918 # list of exported symbols of that shared object, eventually
11919 # decorated with the 'weak' keyword
11920 # *) the shared object with the F_LOADONLY flag set, to really avoid
11921 # it being seen by the linker.
11922 # At run time we better use the real file rather than another symlink,
11923 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11924
11925 case $with_aix_soname,$aix_use_runtimelinking in
11926 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11927 # soname into executable. Probably we can add versioning support to
11928 # collect2, so additional links can be useful in future.
11929 aix,yes) # traditional libtool
11930 dynamic_linker='AIX unversionable lib.so'
11931 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11932 # instead of lib<name>.a to let people know that these are not
11933 # typical AIX shared libraries.
11934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11935 ;;
11936 aix,no) # traditional AIX only
11937 dynamic_linker='AIX lib.a(lib.so.V)'
11938 # We preserve .a as extension for shared libraries through AIX4.2
11939 # and later when we are not doing run time linking.
11940 library_names_spec='$libname$release.a $libname.a'
11941 soname_spec='$libname$release$shared_ext$major'
11942 ;;
11943 svr4,*) # full svr4 only
11944 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11945 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11946 # We do not specify a path in Import Files, so LIBPATH fires.
11947 shlibpath_overrides_runpath=yes
11948 ;;
11949 *,yes) # both, prefer svr4
11950 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11951 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11952 # unpreferred sharedlib libNAME.a needs extra handling
11953 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11954 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11955 # We do not specify a path in Import Files, so LIBPATH fires.
11956 shlibpath_overrides_runpath=yes
11957 ;;
11958 *,no) # both, prefer aix
11959 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11960 library_names_spec='$libname$release.a $libname.a'
11961 soname_spec='$libname$release$shared_ext$major'
11962 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11963 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11964 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11965 ;;
11966 esac
11967 shlibpath_var=LIBPATH
11968 fi
11969 ;;
11970
11971 amigaos*)
11972 case $host_cpu in
11973 powerpc)
11974 # Since July 2007 AmigaOS4 officially supports .so libraries.
11975 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11977 ;;
11978 m68k)
11979 library_names_spec='$libname.ixlibrary $libname.a'
11980 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11981 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11982 ;;
11983 esac
11984 ;;
11985
11986 beos*)
11987 library_names_spec='$libname$shared_ext'
11988 dynamic_linker="$host_os ld.so"
11989 shlibpath_var=LIBRARY_PATH
11990 ;;
11991
11992 bsdi[45]*)
11993 version_type=linux # correct to gnu/linux during the next big refactor
11994 need_version=no
11995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11996 soname_spec='$libname$release$shared_ext$major'
11997 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11998 shlibpath_var=LD_LIBRARY_PATH
11999 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12000 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12001 # the default ld.so.conf also contains /usr/contrib/lib and
12002 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12003 # libtool to hard-code these into programs
12004 ;;
12005
12006 cygwin* | mingw* | pw32* | cegcc*)
12007 version_type=windows
12008 shrext_cmds=.dll
12009 need_version=no
12010 need_lib_prefix=no
12011
12012 case $GCC,$cc_basename in
12013 yes,*)
12014 # gcc
12015 library_names_spec='$libname.dll.a'
12016 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12017 postinstall_cmds='base_file=`basename \$file`~
12018 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12019 dldir=$destdir/`dirname \$dlpath`~
12020 test -d \$dldir || mkdir -p \$dldir~
12021 $install_prog $dir/$dlname \$dldir/$dlname~
12022 chmod a+x \$dldir/$dlname~
12023 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12024 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12025 fi'
12026 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12027 dlpath=$dir/\$dldll~
12028 $RM \$dlpath'
12029 shlibpath_overrides_runpath=yes
12030
12031 case $host_os in
12032 cygwin*)
12033 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12034 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12035
12036 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12037 ;;
12038 mingw* | cegcc*)
12039 # MinGW DLLs use traditional 'lib' prefix
12040 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12041 ;;
12042 pw32*)
12043 # pw32 DLLs use 'pw' prefix rather than 'lib'
12044 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12045 ;;
12046 esac
12047 dynamic_linker='Win32 ld.exe'
12048 ;;
12049
12050 *,cl*)
12051 # Native MSVC
12052 libname_spec='$name'
12053 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12054 library_names_spec='$libname.dll.lib'
12055
12056 case $build_os in
12057 mingw*)
12058 sys_lib_search_path_spec=
12059 lt_save_ifs=$IFS
12060 IFS=';'
12061 for lt_path in $LIB
12062 do
12063 IFS=$lt_save_ifs
12064 # Let DOS variable expansion print the short 8.3 style file name.
12065 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12066 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12067 done
12068 IFS=$lt_save_ifs
12069 # Convert to MSYS style.
12070 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12071 ;;
12072 cygwin*)
12073 # Convert to unix form, then to dos form, then back to unix form
12074 # but this time dos style (no spaces!) so that the unix form looks
12075 # like /cygdrive/c/PROGRA~1:/cygdr...
12076 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12077 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12078 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12079 ;;
12080 *)
12081 sys_lib_search_path_spec=$LIB
12082 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12083 # It is most probably a Windows format PATH.
12084 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12085 else
12086 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12087 fi
12088 # FIXME: find the short name or the path components, as spaces are
12089 # common. (e.g. "Program Files" -> "PROGRA~1")
12090 ;;
12091 esac
12092
12093 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12094 postinstall_cmds='base_file=`basename \$file`~
12095 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12096 dldir=$destdir/`dirname \$dlpath`~
12097 test -d \$dldir || mkdir -p \$dldir~
12098 $install_prog $dir/$dlname \$dldir/$dlname'
12099 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12100 dlpath=$dir/\$dldll~
12101 $RM \$dlpath'
12102 shlibpath_overrides_runpath=yes
12103 dynamic_linker='Win32 link.exe'
12104 ;;
12105
12106 *)
12107 # Assume MSVC wrapper
12108 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12109 dynamic_linker='Win32 ld.exe'
12110 ;;
12111 esac
12112 # FIXME: first we should search . and the directory the executable is in
12113 shlibpath_var=PATH
12114 ;;
12115
12116 darwin* | rhapsody*)
12117 dynamic_linker="$host_os dyld"
12118 version_type=darwin
12119 need_lib_prefix=no
12120 need_version=no
12121 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12122 soname_spec='$libname$release$major$shared_ext'
12123 shlibpath_overrides_runpath=yes
12124 shlibpath_var=DYLD_LIBRARY_PATH
12125 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12126
12127 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12128 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12129 ;;
12130
12131 dgux*)
12132 version_type=linux # correct to gnu/linux during the next big refactor
12133 need_lib_prefix=no
12134 need_version=no
12135 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12136 soname_spec='$libname$release$shared_ext$major'
12137 shlibpath_var=LD_LIBRARY_PATH
12138 ;;
12139
12140 freebsd* | dragonfly*)
12141 # DragonFly does not have aout. When/if they implement a new
12142 # versioning mechanism, adjust this.
12143 if test -x /usr/bin/objformat; then
12144 objformat=`/usr/bin/objformat`
12145 else
12146 case $host_os in
12147 freebsd[23].*) objformat=aout ;;
12148 *) objformat=elf ;;
12149 esac
12150 fi
12151 version_type=freebsd-$objformat
12152 case $version_type in
12153 freebsd-elf*)
12154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12155 soname_spec='$libname$release$shared_ext$major'
12156 need_version=no
12157 need_lib_prefix=no
12158 ;;
12159 freebsd-*)
12160 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12161 need_version=yes
12162 ;;
12163 esac
12164 shlibpath_var=LD_LIBRARY_PATH
12165 case $host_os in
12166 freebsd2.*)
12167 shlibpath_overrides_runpath=yes
12168 ;;
12169 freebsd3.[01]* | freebsdelf3.[01]*)
12170 shlibpath_overrides_runpath=yes
12171 hardcode_into_libs=yes
12172 ;;
12173 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12174 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12175 shlibpath_overrides_runpath=no
12176 hardcode_into_libs=yes
12177 ;;
12178 *) # from 4.6 on, and DragonFly
12179 shlibpath_overrides_runpath=yes
12180 hardcode_into_libs=yes
12181 ;;
12182 esac
12183 ;;
12184
12185 haiku*)
12186 version_type=linux # correct to gnu/linux during the next big refactor
12187 need_lib_prefix=no
12188 need_version=no
12189 dynamic_linker="$host_os runtime_loader"
12190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12191 soname_spec='$libname$release$shared_ext$major'
12192 shlibpath_var=LIBRARY_PATH
12193 shlibpath_overrides_runpath=no
12194 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12195 hardcode_into_libs=yes
12196 ;;
12197
12198 hpux9* | hpux10* | hpux11*)
12199 # Give a soname corresponding to the major version so that dld.sl refuses to
12200 # link against other versions.
12201 version_type=sunos
12202 need_lib_prefix=no
12203 need_version=no
12204 case $host_cpu in
12205 ia64*)
12206 shrext_cmds='.so'
12207 hardcode_into_libs=yes
12208 dynamic_linker="$host_os dld.so"
12209 shlibpath_var=LD_LIBRARY_PATH
12210 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12211 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12212 soname_spec='$libname$release$shared_ext$major'
12213 if test 32 = "$HPUX_IA64_MODE"; then
12214 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12215 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12216 else
12217 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12218 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12219 fi
12220 ;;
12221 hppa*64*)
12222 shrext_cmds='.sl'
12223 hardcode_into_libs=yes
12224 dynamic_linker="$host_os dld.sl"
12225 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12228 soname_spec='$libname$release$shared_ext$major'
12229 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12231 ;;
12232 *)
12233 shrext_cmds='.sl'
12234 dynamic_linker="$host_os dld.sl"
12235 shlibpath_var=SHLIB_PATH
12236 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12237 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12238 soname_spec='$libname$release$shared_ext$major'
12239 ;;
12240 esac
12241 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12242 postinstall_cmds='chmod 555 $lib'
12243 # or fails outright, so override atomically:
12244 install_override_mode=555
12245 ;;
12246
12247 interix[3-9]*)
12248 version_type=linux # correct to gnu/linux during the next big refactor
12249 need_lib_prefix=no
12250 need_version=no
12251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12252 soname_spec='$libname$release$shared_ext$major'
12253 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12254 shlibpath_var=LD_LIBRARY_PATH
12255 shlibpath_overrides_runpath=no
12256 hardcode_into_libs=yes
12257 ;;
12258
12259 irix5* | irix6* | nonstopux*)
12260 case $host_os in
12261 nonstopux*) version_type=nonstopux ;;
12262 *)
12263 if test yes = "$lt_cv_prog_gnu_ld"; then
12264 version_type=linux # correct to gnu/linux during the next big refactor
12265 else
12266 version_type=irix
12267 fi ;;
12268 esac
12269 need_lib_prefix=no
12270 need_version=no
12271 soname_spec='$libname$release$shared_ext$major'
12272 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12273 case $host_os in
12274 irix5* | nonstopux*)
12275 libsuff= shlibsuff=
12276 ;;
12277 *)
12278 case $LD in # libtool.m4 will add one of these switches to LD
12279 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12280 libsuff= shlibsuff= libmagic=32-bit;;
12281 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12282 libsuff=32 shlibsuff=N32 libmagic=N32;;
12283 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12284 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12285 *) libsuff= shlibsuff= libmagic=never-match;;
12286 esac
12287 ;;
12288 esac
12289 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12290 shlibpath_overrides_runpath=no
12291 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12292 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12293 hardcode_into_libs=yes
12294 ;;
12295
12296 # No shared lib support for Linux oldld, aout, or coff.
12297 linux*oldld* | linux*aout* | linux*coff*)
12298 dynamic_linker=no
12299 ;;
12300
12301 linux*android*)
12302 version_type=none # Android doesn't support versioned libraries.
12303 need_lib_prefix=no
12304 need_version=no
12305 library_names_spec='$libname$release$shared_ext'
12306 soname_spec='$libname$release$shared_ext'
12307 finish_cmds=
12308 shlibpath_var=LD_LIBRARY_PATH
12309 shlibpath_overrides_runpath=yes
12310
12311 # This implies no fast_install, which is unacceptable.
12312 # Some rework will be needed to allow for fast_install
12313 # before this can be enabled.
12314 hardcode_into_libs=yes
12315
12316 dynamic_linker='Android linker'
12317 # Don't embed -rpath directories since the linker doesn't support them.
12318 hardcode_libdir_flag_spec='-L$libdir'
12319 ;;
12320
12321 # This must be glibc/ELF.
12322 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12323 version_type=linux # correct to gnu/linux during the next big refactor
12324 need_lib_prefix=no
12325 need_version=no
12326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12327 soname_spec='$libname$release$shared_ext$major'
12328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12329 shlibpath_var=LD_LIBRARY_PATH
12330 shlibpath_overrides_runpath=no
12331
12332 # Some binutils ld are patched to set DT_RUNPATH
12333 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12334 $as_echo_n "(cached) " >&6
12335 else
12336 lt_cv_shlibpath_overrides_runpath=no
12337 save_LDFLAGS=$LDFLAGS
12338 save_libdir=$libdir
12339 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12340 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12343
12344 int
12345 main ()
12346 {
12347
12348 ;
12349 return 0;
12350 }
12351 _ACEOF
12352 if ac_fn_c_try_link "$LINENO"; then :
12353 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12354 lt_cv_shlibpath_overrides_runpath=yes
12355 fi
12356 fi
12357 rm -f core conftest.err conftest.$ac_objext \
12358 conftest$ac_exeext conftest.$ac_ext
12359 LDFLAGS=$save_LDFLAGS
12360 libdir=$save_libdir
12361
12362 fi
12363
12364 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12365
12366 # This implies no fast_install, which is unacceptable.
12367 # Some rework will be needed to allow for fast_install
12368 # before this can be enabled.
12369 hardcode_into_libs=yes
12370
12371 # Add ABI-specific directories to the system library path.
12372 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12373
12374 # Ideally, we could use ldconfig to report *all* directores which are
12375 # searched for libraries, however this is still not possible. Aside from not
12376 # being certain /sbin/ldconfig is available, command
12377 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12378 # even though it is searched at run-time. Try to do the best guess by
12379 # appending ld.so.conf contents (and includes) to the search path.
12380 if test -f /etc/ld.so.conf; then
12381 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' ' '`
12382 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12383 fi
12384
12385 # We used to test for /lib/ld.so.1 and disable shared libraries on
12386 # powerpc, because MkLinux only supported shared libraries with the
12387 # GNU dynamic linker. Since this was broken with cross compilers,
12388 # most powerpc-linux boxes support dynamic linking these days and
12389 # people can always --disable-shared, the test was removed, and we
12390 # assume the GNU/Linux dynamic linker is in use.
12391 dynamic_linker='GNU/Linux ld.so'
12392 ;;
12393
12394 netbsd*)
12395 version_type=sunos
12396 need_lib_prefix=no
12397 need_version=no
12398 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12399 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12401 dynamic_linker='NetBSD (a.out) ld.so'
12402 else
12403 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12404 soname_spec='$libname$release$shared_ext$major'
12405 dynamic_linker='NetBSD ld.elf_so'
12406 fi
12407 shlibpath_var=LD_LIBRARY_PATH
12408 shlibpath_overrides_runpath=yes
12409 hardcode_into_libs=yes
12410 ;;
12411
12412 newsos6)
12413 version_type=linux # correct to gnu/linux during the next big refactor
12414 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12415 shlibpath_var=LD_LIBRARY_PATH
12416 shlibpath_overrides_runpath=yes
12417 ;;
12418
12419 *nto* | *qnx*)
12420 version_type=qnx
12421 need_lib_prefix=no
12422 need_version=no
12423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12424 soname_spec='$libname$release$shared_ext$major'
12425 shlibpath_var=LD_LIBRARY_PATH
12426 shlibpath_overrides_runpath=no
12427 hardcode_into_libs=yes
12428 dynamic_linker='ldqnx.so'
12429 ;;
12430
12431 openbsd* | bitrig*)
12432 version_type=sunos
12433 sys_lib_dlsearch_path_spec=/usr/lib
12434 need_lib_prefix=no
12435 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12436 need_version=no
12437 else
12438 need_version=yes
12439 fi
12440 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12442 shlibpath_var=LD_LIBRARY_PATH
12443 shlibpath_overrides_runpath=yes
12444 ;;
12445
12446 os2*)
12447 libname_spec='$name'
12448 version_type=windows
12449 shrext_cmds=.dll
12450 need_version=no
12451 need_lib_prefix=no
12452 # OS/2 can only load a DLL with a base name of 8 characters or less.
12453 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12454 v=$($ECHO $release$versuffix | tr -d .-);
12455 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12456 $ECHO $n$v`$shared_ext'
12457 library_names_spec='${libname}_dll.$libext'
12458 dynamic_linker='OS/2 ld.exe'
12459 shlibpath_var=BEGINLIBPATH
12460 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12461 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12462 postinstall_cmds='base_file=`basename \$file`~
12463 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12464 dldir=$destdir/`dirname \$dlpath`~
12465 test -d \$dldir || mkdir -p \$dldir~
12466 $install_prog $dir/$dlname \$dldir/$dlname~
12467 chmod a+x \$dldir/$dlname~
12468 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12469 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12470 fi'
12471 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12472 dlpath=$dir/\$dldll~
12473 $RM \$dlpath'
12474 ;;
12475
12476 osf3* | osf4* | osf5*)
12477 version_type=osf
12478 need_lib_prefix=no
12479 need_version=no
12480 soname_spec='$libname$release$shared_ext$major'
12481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12482 shlibpath_var=LD_LIBRARY_PATH
12483 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12484 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12485 ;;
12486
12487 rdos*)
12488 dynamic_linker=no
12489 ;;
12490
12491 solaris*)
12492 version_type=linux # correct to gnu/linux during the next big refactor
12493 need_lib_prefix=no
12494 need_version=no
12495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12496 soname_spec='$libname$release$shared_ext$major'
12497 shlibpath_var=LD_LIBRARY_PATH
12498 shlibpath_overrides_runpath=yes
12499 hardcode_into_libs=yes
12500 # ldd complains unless libraries are executable
12501 postinstall_cmds='chmod +x $lib'
12502 ;;
12503
12504 sunos4*)
12505 version_type=sunos
12506 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12507 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12508 shlibpath_var=LD_LIBRARY_PATH
12509 shlibpath_overrides_runpath=yes
12510 if test yes = "$with_gnu_ld"; then
12511 need_lib_prefix=no
12512 fi
12513 need_version=yes
12514 ;;
12515
12516 sysv4 | sysv4.3*)
12517 version_type=linux # correct to gnu/linux during the next big refactor
12518 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12519 soname_spec='$libname$release$shared_ext$major'
12520 shlibpath_var=LD_LIBRARY_PATH
12521 case $host_vendor in
12522 sni)
12523 shlibpath_overrides_runpath=no
12524 need_lib_prefix=no
12525 runpath_var=LD_RUN_PATH
12526 ;;
12527 siemens)
12528 need_lib_prefix=no
12529 ;;
12530 motorola)
12531 need_lib_prefix=no
12532 need_version=no
12533 shlibpath_overrides_runpath=no
12534 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12535 ;;
12536 esac
12537 ;;
12538
12539 sysv4*MP*)
12540 if test -d /usr/nec; then
12541 version_type=linux # correct to gnu/linux during the next big refactor
12542 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12543 soname_spec='$libname$shared_ext.$major'
12544 shlibpath_var=LD_LIBRARY_PATH
12545 fi
12546 ;;
12547
12548 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12549 version_type=sco
12550 need_lib_prefix=no
12551 need_version=no
12552 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12553 soname_spec='$libname$release$shared_ext$major'
12554 shlibpath_var=LD_LIBRARY_PATH
12555 shlibpath_overrides_runpath=yes
12556 hardcode_into_libs=yes
12557 if test yes = "$with_gnu_ld"; then
12558 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12559 else
12560 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12561 case $host_os in
12562 sco3.2v5*)
12563 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12564 ;;
12565 esac
12566 fi
12567 sys_lib_dlsearch_path_spec='/usr/lib'
12568 ;;
12569
12570 tpf*)
12571 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12572 version_type=linux # correct to gnu/linux during the next big refactor
12573 need_lib_prefix=no
12574 need_version=no
12575 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12576 shlibpath_var=LD_LIBRARY_PATH
12577 shlibpath_overrides_runpath=no
12578 hardcode_into_libs=yes
12579 ;;
12580
12581 uts4*)
12582 version_type=linux # correct to gnu/linux during the next big refactor
12583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12584 soname_spec='$libname$release$shared_ext$major'
12585 shlibpath_var=LD_LIBRARY_PATH
12586 ;;
12587
12588 *)
12589 dynamic_linker=no
12590 ;;
12591 esac
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12593 $as_echo "$dynamic_linker" >&6; }
12594 test no = "$dynamic_linker" && can_build_shared=no
12595
12596 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12597 if test yes = "$GCC"; then
12598 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12599 fi
12600
12601 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12602 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12603 fi
12604
12605 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12606 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12607 fi
12608
12609 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12610 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12611
12612 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12613 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12614
12615 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12616 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12715 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12716 hardcode_action=
12717 if test -n "$hardcode_libdir_flag_spec" ||
12718 test -n "$runpath_var" ||
12719 test yes = "$hardcode_automatic"; then
12720
12721 # We can hardcode non-existent directories.
12722 if test no != "$hardcode_direct" &&
12723 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12724 # have to relink, otherwise we might link with an installed library
12725 # when we should be linking with a yet-to-be-installed one
12726 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12727 test no != "$hardcode_minus_L"; then
12728 # Linking always hardcodes the temporary library directory.
12729 hardcode_action=relink
12730 else
12731 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12732 hardcode_action=immediate
12733 fi
12734 else
12735 # We cannot hardcode anything, or else we can only hardcode existing
12736 # directories.
12737 hardcode_action=unsupported
12738 fi
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12740 $as_echo "$hardcode_action" >&6; }
12741
12742 if test relink = "$hardcode_action" ||
12743 test yes = "$inherit_rpath"; then
12744 # Fast installation is not supported
12745 enable_fast_install=no
12746 elif test yes = "$shlibpath_overrides_runpath" ||
12747 test no = "$enable_shared"; then
12748 # Fast installation is not necessary
12749 enable_fast_install=needless
12750 fi
12751
12752
12753
12754
12755
12756
12757 if test yes != "$enable_dlopen"; then
12758 enable_dlopen=unknown
12759 enable_dlopen_self=unknown
12760 enable_dlopen_self_static=unknown
12761 else
12762 lt_cv_dlopen=no
12763 lt_cv_dlopen_libs=
12764
12765 case $host_os in
12766 beos*)
12767 lt_cv_dlopen=load_add_on
12768 lt_cv_dlopen_libs=
12769 lt_cv_dlopen_self=yes
12770 ;;
12771
12772 mingw* | pw32* | cegcc*)
12773 lt_cv_dlopen=LoadLibrary
12774 lt_cv_dlopen_libs=
12775 ;;
12776
12777 cygwin*)
12778 lt_cv_dlopen=dlopen
12779 lt_cv_dlopen_libs=
12780 ;;
12781
12782 darwin*)
12783 # if libdl is installed we need to link against it
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12785 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12786 if ${ac_cv_lib_dl_dlopen+:} false; then :
12787 $as_echo_n "(cached) " >&6
12788 else
12789 ac_check_lib_save_LIBS=$LIBS
12790 LIBS="-ldl $LIBS"
12791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12792 /* end confdefs.h. */
12793
12794 /* Override any GCC internal prototype to avoid an error.
12795 Use char because int might match the return type of a GCC
12796 builtin and then its argument prototype would still apply. */
12797 #ifdef __cplusplus
12798 extern "C"
12799 #endif
12800 char dlopen ();
12801 int
12802 main ()
12803 {
12804 return dlopen ();
12805 ;
12806 return 0;
12807 }
12808 _ACEOF
12809 if ac_fn_c_try_link "$LINENO"; then :
12810 ac_cv_lib_dl_dlopen=yes
12811 else
12812 ac_cv_lib_dl_dlopen=no
12813 fi
12814 rm -f core conftest.err conftest.$ac_objext \
12815 conftest$ac_exeext conftest.$ac_ext
12816 LIBS=$ac_check_lib_save_LIBS
12817 fi
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12819 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12820 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12821 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12822 else
12823
12824 lt_cv_dlopen=dyld
12825 lt_cv_dlopen_libs=
12826 lt_cv_dlopen_self=yes
12827
12828 fi
12829
12830 ;;
12831
12832 tpf*)
12833 # Don't try to run any link tests for TPF. We know it's impossible
12834 # because TPF is a cross-compiler, and we know how we open DSOs.
12835 lt_cv_dlopen=dlopen
12836 lt_cv_dlopen_libs=
12837 lt_cv_dlopen_self=no
12838 ;;
12839
12840 *)
12841 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12842 if test "x$ac_cv_func_shl_load" = xyes; then :
12843 lt_cv_dlopen=shl_load
12844 else
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12846 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12847 if ${ac_cv_lib_dld_shl_load+:} false; then :
12848 $as_echo_n "(cached) " >&6
12849 else
12850 ac_check_lib_save_LIBS=$LIBS
12851 LIBS="-ldld $LIBS"
12852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12853 /* end confdefs.h. */
12854
12855 /* Override any GCC internal prototype to avoid an error.
12856 Use char because int might match the return type of a GCC
12857 builtin and then its argument prototype would still apply. */
12858 #ifdef __cplusplus
12859 extern "C"
12860 #endif
12861 char shl_load ();
12862 int
12863 main ()
12864 {
12865 return shl_load ();
12866 ;
12867 return 0;
12868 }
12869 _ACEOF
12870 if ac_fn_c_try_link "$LINENO"; then :
12871 ac_cv_lib_dld_shl_load=yes
12872 else
12873 ac_cv_lib_dld_shl_load=no
12874 fi
12875 rm -f core conftest.err conftest.$ac_objext \
12876 conftest$ac_exeext conftest.$ac_ext
12877 LIBS=$ac_check_lib_save_LIBS
12878 fi
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12880 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12881 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12882 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12883 else
12884 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12885 if test "x$ac_cv_func_dlopen" = xyes; then :
12886 lt_cv_dlopen=dlopen
12887 else
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12889 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12890 if ${ac_cv_lib_dl_dlopen+:} false; then :
12891 $as_echo_n "(cached) " >&6
12892 else
12893 ac_check_lib_save_LIBS=$LIBS
12894 LIBS="-ldl $LIBS"
12895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12896 /* end confdefs.h. */
12897
12898 /* Override any GCC internal prototype to avoid an error.
12899 Use char because int might match the return type of a GCC
12900 builtin and then its argument prototype would still apply. */
12901 #ifdef __cplusplus
12902 extern "C"
12903 #endif
12904 char dlopen ();
12905 int
12906 main ()
12907 {
12908 return dlopen ();
12909 ;
12910 return 0;
12911 }
12912 _ACEOF
12913 if ac_fn_c_try_link "$LINENO"; then :
12914 ac_cv_lib_dl_dlopen=yes
12915 else
12916 ac_cv_lib_dl_dlopen=no
12917 fi
12918 rm -f core conftest.err conftest.$ac_objext \
12919 conftest$ac_exeext conftest.$ac_ext
12920 LIBS=$ac_check_lib_save_LIBS
12921 fi
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12923 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12924 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12925 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12926 else
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12928 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12929 if ${ac_cv_lib_svld_dlopen+:} false; then :
12930 $as_echo_n "(cached) " >&6
12931 else
12932 ac_check_lib_save_LIBS=$LIBS
12933 LIBS="-lsvld $LIBS"
12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12935 /* end confdefs.h. */
12936
12937 /* Override any GCC internal prototype to avoid an error.
12938 Use char because int might match the return type of a GCC
12939 builtin and then its argument prototype would still apply. */
12940 #ifdef __cplusplus
12941 extern "C"
12942 #endif
12943 char dlopen ();
12944 int
12945 main ()
12946 {
12947 return dlopen ();
12948 ;
12949 return 0;
12950 }
12951 _ACEOF
12952 if ac_fn_c_try_link "$LINENO"; then :
12953 ac_cv_lib_svld_dlopen=yes
12954 else
12955 ac_cv_lib_svld_dlopen=no
12956 fi
12957 rm -f core conftest.err conftest.$ac_objext \
12958 conftest$ac_exeext conftest.$ac_ext
12959 LIBS=$ac_check_lib_save_LIBS
12960 fi
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12962 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12963 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12964 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12965 else
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12967 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12968 if ${ac_cv_lib_dld_dld_link+:} false; then :
12969 $as_echo_n "(cached) " >&6
12970 else
12971 ac_check_lib_save_LIBS=$LIBS
12972 LIBS="-ldld $LIBS"
12973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974 /* end confdefs.h. */
12975
12976 /* Override any GCC internal prototype to avoid an error.
12977 Use char because int might match the return type of a GCC
12978 builtin and then its argument prototype would still apply. */
12979 #ifdef __cplusplus
12980 extern "C"
12981 #endif
12982 char dld_link ();
12983 int
12984 main ()
12985 {
12986 return dld_link ();
12987 ;
12988 return 0;
12989 }
12990 _ACEOF
12991 if ac_fn_c_try_link "$LINENO"; then :
12992 ac_cv_lib_dld_dld_link=yes
12993 else
12994 ac_cv_lib_dld_dld_link=no
12995 fi
12996 rm -f core conftest.err conftest.$ac_objext \
12997 conftest$ac_exeext conftest.$ac_ext
12998 LIBS=$ac_check_lib_save_LIBS
12999 fi
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13001 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13002 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13003 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13004 fi
13005
13006
13007 fi
13008
13009
13010 fi
13011
13012
13013 fi
13014
13015
13016 fi
13017
13018
13019 fi
13020
13021 ;;
13022 esac
13023
13024 if test no = "$lt_cv_dlopen"; then
13025 enable_dlopen=no
13026 else
13027 enable_dlopen=yes
13028 fi
13029
13030 case $lt_cv_dlopen in
13031 dlopen)
13032 save_CPPFLAGS=$CPPFLAGS
13033 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13034
13035 save_LDFLAGS=$LDFLAGS
13036 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13037
13038 save_LIBS=$LIBS
13039 LIBS="$lt_cv_dlopen_libs $LIBS"
13040
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13042 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13043 if ${lt_cv_dlopen_self+:} false; then :
13044 $as_echo_n "(cached) " >&6
13045 else
13046 if test yes = "$cross_compiling"; then :
13047 lt_cv_dlopen_self=cross
13048 else
13049 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13050 lt_status=$lt_dlunknown
13051 cat > conftest.$ac_ext <<_LT_EOF
13052 #line $LINENO "configure"
13053 #include "confdefs.h"
13054
13055 #if HAVE_DLFCN_H
13056 #include <dlfcn.h>
13057 #endif
13058
13059 #include <stdio.h>
13060
13061 #ifdef RTLD_GLOBAL
13062 # define LT_DLGLOBAL RTLD_GLOBAL
13063 #else
13064 # ifdef DL_GLOBAL
13065 # define LT_DLGLOBAL DL_GLOBAL
13066 # else
13067 # define LT_DLGLOBAL 0
13068 # endif
13069 #endif
13070
13071 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13072 find out it does not work in some platform. */
13073 #ifndef LT_DLLAZY_OR_NOW
13074 # ifdef RTLD_LAZY
13075 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13076 # else
13077 # ifdef DL_LAZY
13078 # define LT_DLLAZY_OR_NOW DL_LAZY
13079 # else
13080 # ifdef RTLD_NOW
13081 # define LT_DLLAZY_OR_NOW RTLD_NOW
13082 # else
13083 # ifdef DL_NOW
13084 # define LT_DLLAZY_OR_NOW DL_NOW
13085 # else
13086 # define LT_DLLAZY_OR_NOW 0
13087 # endif
13088 # endif
13089 # endif
13090 # endif
13091 #endif
13092
13093 /* When -fvisibility=hidden is used, assume the code has been annotated
13094 correspondingly for the symbols needed. */
13095 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13096 int fnord () __attribute__((visibility("default")));
13097 #endif
13098
13099 int fnord () { return 42; }
13100 int main ()
13101 {
13102 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13103 int status = $lt_dlunknown;
13104
13105 if (self)
13106 {
13107 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13108 else
13109 {
13110 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13111 else puts (dlerror ());
13112 }
13113 /* dlclose (self); */
13114 }
13115 else
13116 puts (dlerror ());
13117
13118 return status;
13119 }
13120 _LT_EOF
13121 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13122 (eval $ac_link) 2>&5
13123 ac_status=$?
13124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13125 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13126 (./conftest; exit; ) >&5 2>/dev/null
13127 lt_status=$?
13128 case x$lt_status in
13129 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13130 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13131 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13132 esac
13133 else :
13134 # compilation failed
13135 lt_cv_dlopen_self=no
13136 fi
13137 fi
13138 rm -fr conftest*
13139
13140
13141 fi
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13143 $as_echo "$lt_cv_dlopen_self" >&6; }
13144
13145 if test yes = "$lt_cv_dlopen_self"; then
13146 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13148 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13149 if ${lt_cv_dlopen_self_static+:} false; then :
13150 $as_echo_n "(cached) " >&6
13151 else
13152 if test yes = "$cross_compiling"; then :
13153 lt_cv_dlopen_self_static=cross
13154 else
13155 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13156 lt_status=$lt_dlunknown
13157 cat > conftest.$ac_ext <<_LT_EOF
13158 #line $LINENO "configure"
13159 #include "confdefs.h"
13160
13161 #if HAVE_DLFCN_H
13162 #include <dlfcn.h>
13163 #endif
13164
13165 #include <stdio.h>
13166
13167 #ifdef RTLD_GLOBAL
13168 # define LT_DLGLOBAL RTLD_GLOBAL
13169 #else
13170 # ifdef DL_GLOBAL
13171 # define LT_DLGLOBAL DL_GLOBAL
13172 # else
13173 # define LT_DLGLOBAL 0
13174 # endif
13175 #endif
13176
13177 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13178 find out it does not work in some platform. */
13179 #ifndef LT_DLLAZY_OR_NOW
13180 # ifdef RTLD_LAZY
13181 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13182 # else
13183 # ifdef DL_LAZY
13184 # define LT_DLLAZY_OR_NOW DL_LAZY
13185 # else
13186 # ifdef RTLD_NOW
13187 # define LT_DLLAZY_OR_NOW RTLD_NOW
13188 # else
13189 # ifdef DL_NOW
13190 # define LT_DLLAZY_OR_NOW DL_NOW
13191 # else
13192 # define LT_DLLAZY_OR_NOW 0
13193 # endif
13194 # endif
13195 # endif
13196 # endif
13197 #endif
13198
13199 /* When -fvisibility=hidden is used, assume the code has been annotated
13200 correspondingly for the symbols needed. */
13201 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13202 int fnord () __attribute__((visibility("default")));
13203 #endif
13204
13205 int fnord () { return 42; }
13206 int main ()
13207 {
13208 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13209 int status = $lt_dlunknown;
13210
13211 if (self)
13212 {
13213 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13214 else
13215 {
13216 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13217 else puts (dlerror ());
13218 }
13219 /* dlclose (self); */
13220 }
13221 else
13222 puts (dlerror ());
13223
13224 return status;
13225 }
13226 _LT_EOF
13227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13228 (eval $ac_link) 2>&5
13229 ac_status=$?
13230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13231 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13232 (./conftest; exit; ) >&5 2>/dev/null
13233 lt_status=$?
13234 case x$lt_status in
13235 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13236 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13237 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13238 esac
13239 else :
13240 # compilation failed
13241 lt_cv_dlopen_self_static=no
13242 fi
13243 fi
13244 rm -fr conftest*
13245
13246
13247 fi
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13249 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13250 fi
13251
13252 CPPFLAGS=$save_CPPFLAGS
13253 LDFLAGS=$save_LDFLAGS
13254 LIBS=$save_LIBS
13255 ;;
13256 esac
13257
13258 case $lt_cv_dlopen_self in
13259 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13260 *) enable_dlopen_self=unknown ;;
13261 esac
13262
13263 case $lt_cv_dlopen_self_static in
13264 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13265 *) enable_dlopen_self_static=unknown ;;
13266 esac
13267 fi
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285 striplib=
13286 old_striplib=
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13288 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13289 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13290 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13291 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13293 $as_echo "yes" >&6; }
13294 else
13295 # FIXME - insert some real tests, host_os isn't really good enough
13296 case $host_os in
13297 darwin*)
13298 if test -n "$STRIP"; then
13299 striplib="$STRIP -x"
13300 old_striplib="$STRIP -S"
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13302 $as_echo "yes" >&6; }
13303 else
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13305 $as_echo "no" >&6; }
13306 fi
13307 ;;
13308 *)
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13310 $as_echo "no" >&6; }
13311 ;;
13312 esac
13313 fi
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326 # Report what library types will actually be built
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13328 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13330 $as_echo "$can_build_shared" >&6; }
13331
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13333 $as_echo_n "checking whether to build shared libraries... " >&6; }
13334 test no = "$can_build_shared" && enable_shared=no
13335
13336 # On AIX, shared libraries and static libraries use the same namespace, and
13337 # are all built from PIC.
13338 case $host_os in
13339 aix3*)
13340 test yes = "$enable_shared" && enable_static=no
13341 if test -n "$RANLIB"; then
13342 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13343 postinstall_cmds='$RANLIB $lib'
13344 fi
13345 ;;
13346
13347 aix[4-9]*)
13348 if test ia64 != "$host_cpu"; then
13349 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13350 yes,aix,yes) ;; # shared object as lib.so file only
13351 yes,svr4,*) ;; # shared object as lib.so archive member only
13352 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13353 esac
13354 fi
13355 ;;
13356 esac
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13358 $as_echo "$enable_shared" >&6; }
13359
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13361 $as_echo_n "checking whether to build static libraries... " >&6; }
13362 # Make sure either enable_shared or enable_static is yes.
13363 test yes = "$enable_shared" || enable_static=yes
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13365 $as_echo "$enable_static" >&6; }
13366
13367
13368
13369
13370 fi
13371 ac_ext=c
13372 ac_cpp='$CPP $CPPFLAGS'
13373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13376
13377 CC=$lt_save_CC
13378
13379 if test -n "$CXX" && ( test no != "$CXX" &&
13380 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13381 (test g++ != "$CXX"))); then
13382 ac_ext=cpp
13383 ac_cpp='$CXXCPP $CPPFLAGS'
13384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13388 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13389 if test -z "$CXXCPP"; then
13390 if ${ac_cv_prog_CXXCPP+:} false; then :
13391 $as_echo_n "(cached) " >&6
13392 else
13393 # Double quotes because CXXCPP needs to be expanded
13394 for CXXCPP in "$CXX -E" "/lib/cpp"
13395 do
13396 ac_preproc_ok=false
13397 for ac_cxx_preproc_warn_flag in '' yes
13398 do
13399 # Use a header file that comes with gcc, so configuring glibc
13400 # with a fresh cross-compiler works.
13401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13402 # <limits.h> exists even on freestanding compilers.
13403 # On the NeXT, cc -E runs the code through the compiler's parser,
13404 # not just through cpp. "Syntax error" is here to catch this case.
13405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13406 /* end confdefs.h. */
13407 #ifdef __STDC__
13408 # include <limits.h>
13409 #else
13410 # include <assert.h>
13411 #endif
13412 Syntax error
13413 _ACEOF
13414 if ac_fn_cxx_try_cpp "$LINENO"; then :
13415
13416 else
13417 # Broken: fails on valid input.
13418 continue
13419 fi
13420 rm -f conftest.err conftest.i conftest.$ac_ext
13421
13422 # OK, works on sane cases. Now check whether nonexistent headers
13423 # can be detected and how.
13424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425 /* end confdefs.h. */
13426 #include <ac_nonexistent.h>
13427 _ACEOF
13428 if ac_fn_cxx_try_cpp "$LINENO"; then :
13429 # Broken: success on invalid input.
13430 continue
13431 else
13432 # Passes both tests.
13433 ac_preproc_ok=:
13434 break
13435 fi
13436 rm -f conftest.err conftest.i conftest.$ac_ext
13437
13438 done
13439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13440 rm -f conftest.i conftest.err conftest.$ac_ext
13441 if $ac_preproc_ok; then :
13442 break
13443 fi
13444
13445 done
13446 ac_cv_prog_CXXCPP=$CXXCPP
13447
13448 fi
13449 CXXCPP=$ac_cv_prog_CXXCPP
13450 else
13451 ac_cv_prog_CXXCPP=$CXXCPP
13452 fi
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13454 $as_echo "$CXXCPP" >&6; }
13455 ac_preproc_ok=false
13456 for ac_cxx_preproc_warn_flag in '' yes
13457 do
13458 # Use a header file that comes with gcc, so configuring glibc
13459 # with a fresh cross-compiler works.
13460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13461 # <limits.h> exists even on freestanding compilers.
13462 # On the NeXT, cc -E runs the code through the compiler's parser,
13463 # not just through cpp. "Syntax error" is here to catch this case.
13464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13465 /* end confdefs.h. */
13466 #ifdef __STDC__
13467 # include <limits.h>
13468 #else
13469 # include <assert.h>
13470 #endif
13471 Syntax error
13472 _ACEOF
13473 if ac_fn_cxx_try_cpp "$LINENO"; then :
13474
13475 else
13476 # Broken: fails on valid input.
13477 continue
13478 fi
13479 rm -f conftest.err conftest.i conftest.$ac_ext
13480
13481 # OK, works on sane cases. Now check whether nonexistent headers
13482 # can be detected and how.
13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484 /* end confdefs.h. */
13485 #include <ac_nonexistent.h>
13486 _ACEOF
13487 if ac_fn_cxx_try_cpp "$LINENO"; then :
13488 # Broken: success on invalid input.
13489 continue
13490 else
13491 # Passes both tests.
13492 ac_preproc_ok=:
13493 break
13494 fi
13495 rm -f conftest.err conftest.i conftest.$ac_ext
13496
13497 done
13498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13499 rm -f conftest.i conftest.err conftest.$ac_ext
13500 if $ac_preproc_ok; then :
13501
13502 else
13503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13505 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13506 See \`config.log' for more details" "$LINENO" 5; }
13507 fi
13508
13509 ac_ext=c
13510 ac_cpp='$CPP $CPPFLAGS'
13511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13514
13515 else
13516 _lt_caught_CXX_error=yes
13517 fi
13518
13519 ac_ext=cpp
13520 ac_cpp='$CXXCPP $CPPFLAGS'
13521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13524
13525 archive_cmds_need_lc_CXX=no
13526 allow_undefined_flag_CXX=
13527 always_export_symbols_CXX=no
13528 archive_expsym_cmds_CXX=
13529 compiler_needs_object_CXX=no
13530 export_dynamic_flag_spec_CXX=
13531 hardcode_direct_CXX=no
13532 hardcode_direct_absolute_CXX=no
13533 hardcode_libdir_flag_spec_CXX=
13534 hardcode_libdir_separator_CXX=
13535 hardcode_minus_L_CXX=no
13536 hardcode_shlibpath_var_CXX=unsupported
13537 hardcode_automatic_CXX=no
13538 inherit_rpath_CXX=no
13539 module_cmds_CXX=
13540 module_expsym_cmds_CXX=
13541 link_all_deplibs_CXX=unknown
13542 old_archive_cmds_CXX=$old_archive_cmds
13543 reload_flag_CXX=$reload_flag
13544 reload_cmds_CXX=$reload_cmds
13545 no_undefined_flag_CXX=
13546 whole_archive_flag_spec_CXX=
13547 enable_shared_with_static_runtimes_CXX=no
13548
13549 # Source file extension for C++ test sources.
13550 ac_ext=cpp
13551
13552 # Object file extension for compiled C++ test sources.
13553 objext=o
13554 objext_CXX=$objext
13555
13556 # No sense in running all these tests if we already determined that
13557 # the CXX compiler isn't working. Some variables (like enable_shared)
13558 # are currently assumed to apply to all compilers on this platform,
13559 # and will be corrupted by setting them based on a non-working compiler.
13560 if test yes != "$_lt_caught_CXX_error"; then
13561 # Code to be used in simple compile tests
13562 lt_simple_compile_test_code="int some_variable = 0;"
13563
13564 # Code to be used in simple link tests
13565 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13566
13567 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13568
13569
13570
13571
13572
13573
13574 # If no C compiler was specified, use CC.
13575 LTCC=${LTCC-"$CC"}
13576
13577 # If no C compiler flags were specified, use CFLAGS.
13578 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13579
13580 # Allow CC to be a program name with arguments.
13581 compiler=$CC
13582
13583
13584 # save warnings/boilerplate of simple test code
13585 ac_outfile=conftest.$ac_objext
13586 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13587 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13588 _lt_compiler_boilerplate=`cat conftest.err`
13589 $RM conftest*
13590
13591 ac_outfile=conftest.$ac_objext
13592 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13593 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13594 _lt_linker_boilerplate=`cat conftest.err`
13595 $RM -r conftest*
13596
13597
13598 # Allow CC to be a program name with arguments.
13599 lt_save_CC=$CC
13600 lt_save_CFLAGS=$CFLAGS
13601 lt_save_LD=$LD
13602 lt_save_GCC=$GCC
13603 GCC=$GXX
13604 lt_save_with_gnu_ld=$with_gnu_ld
13605 lt_save_path_LD=$lt_cv_path_LD
13606 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13607 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13608 else
13609 $as_unset lt_cv_prog_gnu_ld
13610 fi
13611 if test -n "${lt_cv_path_LDCXX+set}"; then
13612 lt_cv_path_LD=$lt_cv_path_LDCXX
13613 else
13614 $as_unset lt_cv_path_LD
13615 fi
13616 test -z "${LDCXX+set}" || LD=$LDCXX
13617 CC=${CXX-"c++"}
13618 CFLAGS=$CXXFLAGS
13619 compiler=$CC
13620 compiler_CXX=$CC
13621 func_cc_basename $compiler
13622 cc_basename=$func_cc_basename_result
13623
13624
13625 if test -n "$compiler"; then
13626 # We don't want -fno-exception when compiling C++ code, so set the
13627 # no_builtin_flag separately
13628 if test yes = "$GXX"; then
13629 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13630 else
13631 lt_prog_compiler_no_builtin_flag_CXX=
13632 fi
13633
13634 if test yes = "$GXX"; then
13635 # Set up default GNU C++ configuration
13636
13637
13638
13639 # Check whether --with-gnu-ld was given.
13640 if test "${with_gnu_ld+set}" = set; then :
13641 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13642 else
13643 with_gnu_ld=no
13644 fi
13645
13646 ac_prog=ld
13647 if test yes = "$GCC"; then
13648 # Check if gcc -print-prog-name=ld gives a path.
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13650 $as_echo_n "checking for ld used by $CC... " >&6; }
13651 case $host in
13652 *-*-mingw*)
13653 # gcc leaves a trailing carriage return, which upsets mingw
13654 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13655 *)
13656 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13657 esac
13658 case $ac_prog in
13659 # Accept absolute paths.
13660 [\\/]* | ?:[\\/]*)
13661 re_direlt='/[^/][^/]*/\.\./'
13662 # Canonicalize the pathname of ld
13663 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13664 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13665 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13666 done
13667 test -z "$LD" && LD=$ac_prog
13668 ;;
13669 "")
13670 # If it fails, then pretend we aren't using GCC.
13671 ac_prog=ld
13672 ;;
13673 *)
13674 # If it is relative, then search for the first ld in PATH.
13675 with_gnu_ld=unknown
13676 ;;
13677 esac
13678 elif test yes = "$with_gnu_ld"; then
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13680 $as_echo_n "checking for GNU ld... " >&6; }
13681 else
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13683 $as_echo_n "checking for non-GNU ld... " >&6; }
13684 fi
13685 if ${lt_cv_path_LD+:} false; then :
13686 $as_echo_n "(cached) " >&6
13687 else
13688 if test -z "$LD"; then
13689 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13690 for ac_dir in $PATH; do
13691 IFS=$lt_save_ifs
13692 test -z "$ac_dir" && ac_dir=.
13693 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13694 lt_cv_path_LD=$ac_dir/$ac_prog
13695 # Check to see if the program is GNU ld. I'd rather use --version,
13696 # but apparently some variants of GNU ld only accept -v.
13697 # Break only if it was the GNU/non-GNU ld that we prefer.
13698 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13699 *GNU* | *'with BFD'*)
13700 test no != "$with_gnu_ld" && break
13701 ;;
13702 *)
13703 test yes != "$with_gnu_ld" && break
13704 ;;
13705 esac
13706 fi
13707 done
13708 IFS=$lt_save_ifs
13709 else
13710 lt_cv_path_LD=$LD # Let the user override the test with a path.
13711 fi
13712 fi
13713
13714 LD=$lt_cv_path_LD
13715 if test -n "$LD"; then
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13717 $as_echo "$LD" >&6; }
13718 else
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13720 $as_echo "no" >&6; }
13721 fi
13722 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13724 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13725 if ${lt_cv_prog_gnu_ld+:} false; then :
13726 $as_echo_n "(cached) " >&6
13727 else
13728 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13729 case `$LD -v 2>&1 </dev/null` in
13730 *GNU* | *'with BFD'*)
13731 lt_cv_prog_gnu_ld=yes
13732 ;;
13733 *)
13734 lt_cv_prog_gnu_ld=no
13735 ;;
13736 esac
13737 fi
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13739 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13740 with_gnu_ld=$lt_cv_prog_gnu_ld
13741
13742
13743
13744
13745
13746
13747
13748 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13749 # archiving commands below assume that GNU ld is being used.
13750 if test yes = "$with_gnu_ld"; then
13751 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13752 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'
13753
13754 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13755 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13756
13757 # If archive_cmds runs LD, not CC, wlarc should be empty
13758 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13759 # investigate it a little bit more. (MM)
13760 wlarc='$wl'
13761
13762 # ancient GNU ld didn't support --whole-archive et. al.
13763 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13764 $GREP 'no-whole-archive' > /dev/null; then
13765 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13766 else
13767 whole_archive_flag_spec_CXX=
13768 fi
13769 else
13770 with_gnu_ld=no
13771 wlarc=
13772
13773 # A generic and very simple default shared library creation
13774 # command for GNU C++ for the case where it uses the native
13775 # linker, instead of GNU ld. If possible, this setting should
13776 # overridden to take advantage of the native linker features on
13777 # the platform it is being used on.
13778 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13779 fi
13780
13781 # Commands to make compiler produce verbose output that lists
13782 # what "hidden" libraries, object files and flags are used when
13783 # linking a shared library.
13784 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13785
13786 else
13787 GXX=no
13788 with_gnu_ld=no
13789 wlarc=
13790 fi
13791
13792 # PORTME: fill in a description of your system's C++ link characteristics
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13794 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13795 ld_shlibs_CXX=yes
13796 case $host_os in
13797 aix3*)
13798 # FIXME: insert proper C++ library support
13799 ld_shlibs_CXX=no
13800 ;;
13801 aix[4-9]*)
13802 if test ia64 = "$host_cpu"; then
13803 # On IA64, the linker does run time linking by default, so we don't
13804 # have to do anything special.
13805 aix_use_runtimelinking=no
13806 exp_sym_flag='-Bexport'
13807 no_entry_flag=
13808 else
13809 aix_use_runtimelinking=no
13810
13811 # Test if we are trying to use run time linking or normal
13812 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13813 # have runtime linking enabled, and use it for executables.
13814 # For shared libraries, we enable/disable runtime linking
13815 # depending on the kind of the shared library created -
13816 # when "with_aix_soname,aix_use_runtimelinking" is:
13817 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13818 # "aix,yes" lib.so shared, rtl:yes, for executables
13819 # lib.a static archive
13820 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13821 # lib.a(lib.so.V) shared, rtl:no, for executables
13822 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13823 # lib.a(lib.so.V) shared, rtl:no
13824 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13825 # lib.a static archive
13826 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13827 for ld_flag in $LDFLAGS; do
13828 case $ld_flag in
13829 *-brtl*)
13830 aix_use_runtimelinking=yes
13831 break
13832 ;;
13833 esac
13834 done
13835 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13836 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13837 # so we don't have lib.a shared libs to link our executables.
13838 # We have to force runtime linking in this case.
13839 aix_use_runtimelinking=yes
13840 LDFLAGS="$LDFLAGS -Wl,-brtl"
13841 fi
13842 ;;
13843 esac
13844
13845 exp_sym_flag='-bexport'
13846 no_entry_flag='-bnoentry'
13847 fi
13848
13849 # When large executables or shared objects are built, AIX ld can
13850 # have problems creating the table of contents. If linking a library
13851 # or program results in "error TOC overflow" add -mminimal-toc to
13852 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13853 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13854
13855 archive_cmds_CXX=''
13856 hardcode_direct_CXX=yes
13857 hardcode_direct_absolute_CXX=yes
13858 hardcode_libdir_separator_CXX=':'
13859 link_all_deplibs_CXX=yes
13860 file_list_spec_CXX='$wl-f,'
13861 case $with_aix_soname,$aix_use_runtimelinking in
13862 aix,*) ;; # no import file
13863 svr4,* | *,yes) # use import file
13864 # The Import File defines what to hardcode.
13865 hardcode_direct_CXX=no
13866 hardcode_direct_absolute_CXX=no
13867 ;;
13868 esac
13869
13870 if test yes = "$GXX"; then
13871 case $host_os in aix4.[012]|aix4.[012].*)
13872 # We only want to do this on AIX 4.2 and lower, the check
13873 # below for broken collect2 doesn't work under 4.3+
13874 collect2name=`$CC -print-prog-name=collect2`
13875 if test -f "$collect2name" &&
13876 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13877 then
13878 # We have reworked collect2
13879 :
13880 else
13881 # We have old collect2
13882 hardcode_direct_CXX=unsupported
13883 # It fails to find uninstalled libraries when the uninstalled
13884 # path is not listed in the libpath. Setting hardcode_minus_L
13885 # to unsupported forces relinking
13886 hardcode_minus_L_CXX=yes
13887 hardcode_libdir_flag_spec_CXX='-L$libdir'
13888 hardcode_libdir_separator_CXX=
13889 fi
13890 esac
13891 shared_flag='-shared'
13892 if test yes = "$aix_use_runtimelinking"; then
13893 shared_flag=$shared_flag' $wl-G'
13894 fi
13895 # Need to ensure runtime linking is disabled for the traditional
13896 # shared library, or the linker may eventually find shared libraries
13897 # /with/ Import File - we do not want to mix them.
13898 shared_flag_aix='-shared'
13899 shared_flag_svr4='-shared $wl-G'
13900 else
13901 # not using gcc
13902 if test ia64 = "$host_cpu"; then
13903 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13904 # chokes on -Wl,-G. The following line is correct:
13905 shared_flag='-G'
13906 else
13907 if test yes = "$aix_use_runtimelinking"; then
13908 shared_flag='$wl-G'
13909 else
13910 shared_flag='$wl-bM:SRE'
13911 fi
13912 shared_flag_aix='$wl-bM:SRE'
13913 shared_flag_svr4='$wl-G'
13914 fi
13915 fi
13916
13917 export_dynamic_flag_spec_CXX='$wl-bexpall'
13918 # It seems that -bexpall does not export symbols beginning with
13919 # underscore (_), so it is better to generate a list of symbols to
13920 # export.
13921 always_export_symbols_CXX=yes
13922 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13923 # Warning - without using the other runtime loading flags (-brtl),
13924 # -berok will link without error, but may produce a broken library.
13925 # The "-G" linker flag allows undefined symbols.
13926 no_undefined_flag_CXX='-bernotok'
13927 # Determine the default libpath from the value encoded in an empty
13928 # executable.
13929 if test set = "${lt_cv_aix_libpath+set}"; then
13930 aix_libpath=$lt_cv_aix_libpath
13931 else
13932 if ${lt_cv_aix_libpath__CXX+:} false; then :
13933 $as_echo_n "(cached) " >&6
13934 else
13935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13936 /* end confdefs.h. */
13937
13938 int
13939 main ()
13940 {
13941
13942 ;
13943 return 0;
13944 }
13945 _ACEOF
13946 if ac_fn_cxx_try_link "$LINENO"; then :
13947
13948 lt_aix_libpath_sed='
13949 /Import File Strings/,/^$/ {
13950 /^0/ {
13951 s/^0 *\([^ ]*\) *$/\1/
13952 p
13953 }
13954 }'
13955 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13956 # Check for a 64-bit object if we didn't find anything.
13957 if test -z "$lt_cv_aix_libpath__CXX"; then
13958 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13959 fi
13960 fi
13961 rm -f core conftest.err conftest.$ac_objext \
13962 conftest$ac_exeext conftest.$ac_ext
13963 if test -z "$lt_cv_aix_libpath__CXX"; then
13964 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13965 fi
13966
13967 fi
13968
13969 aix_libpath=$lt_cv_aix_libpath__CXX
13970 fi
13971
13972 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13973
13974 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13975 else
13976 if test ia64 = "$host_cpu"; then
13977 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13978 allow_undefined_flag_CXX="-z nodefs"
13979 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"
13980 else
13981 # Determine the default libpath from the value encoded in an
13982 # empty executable.
13983 if test set = "${lt_cv_aix_libpath+set}"; then
13984 aix_libpath=$lt_cv_aix_libpath
13985 else
13986 if ${lt_cv_aix_libpath__CXX+:} false; then :
13987 $as_echo_n "(cached) " >&6
13988 else
13989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13990 /* end confdefs.h. */
13991
13992 int
13993 main ()
13994 {
13995
13996 ;
13997 return 0;
13998 }
13999 _ACEOF
14000 if ac_fn_cxx_try_link "$LINENO"; then :
14001
14002 lt_aix_libpath_sed='
14003 /Import File Strings/,/^$/ {
14004 /^0/ {
14005 s/^0 *\([^ ]*\) *$/\1/
14006 p
14007 }
14008 }'
14009 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14010 # Check for a 64-bit object if we didn't find anything.
14011 if test -z "$lt_cv_aix_libpath__CXX"; then
14012 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14013 fi
14014 fi
14015 rm -f core conftest.err conftest.$ac_objext \
14016 conftest$ac_exeext conftest.$ac_ext
14017 if test -z "$lt_cv_aix_libpath__CXX"; then
14018 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14019 fi
14020
14021 fi
14022
14023 aix_libpath=$lt_cv_aix_libpath__CXX
14024 fi
14025
14026 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14027 # Warning - without using the other run time loading flags,
14028 # -berok will link without error, but may produce a broken library.
14029 no_undefined_flag_CXX=' $wl-bernotok'
14030 allow_undefined_flag_CXX=' $wl-berok'
14031 if test yes = "$with_gnu_ld"; then
14032 # We only use this code for GNU lds that support --whole-archive.
14033 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14034 else
14035 # Exported symbols can be pulled into shared objects from archives
14036 whole_archive_flag_spec_CXX='$convenience'
14037 fi
14038 archive_cmds_need_lc_CXX=yes
14039 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14040 # -brtl affects multiple linker settings, -berok does not and is overridden later
14041 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14042 if test svr4 != "$with_aix_soname"; then
14043 # This is similar to how AIX traditionally builds its shared
14044 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14045 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14046 fi
14047 if test aix != "$with_aix_soname"; then
14048 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14049 else
14050 # used by -dlpreopen to get the symbols
14051 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14052 fi
14053 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14054 fi
14055 fi
14056 ;;
14057
14058 beos*)
14059 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14060 allow_undefined_flag_CXX=unsupported
14061 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14062 # support --undefined. This deserves some investigation. FIXME
14063 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14064 else
14065 ld_shlibs_CXX=no
14066 fi
14067 ;;
14068
14069 chorus*)
14070 case $cc_basename in
14071 *)
14072 # FIXME: insert proper C++ library support
14073 ld_shlibs_CXX=no
14074 ;;
14075 esac
14076 ;;
14077
14078 cygwin* | mingw* | pw32* | cegcc*)
14079 case $GXX,$cc_basename in
14080 ,cl* | no,cl*)
14081 # Native MSVC
14082 # hardcode_libdir_flag_spec is actually meaningless, as there is
14083 # no search path for DLLs.
14084 hardcode_libdir_flag_spec_CXX=' '
14085 allow_undefined_flag_CXX=unsupported
14086 always_export_symbols_CXX=yes
14087 file_list_spec_CXX='@'
14088 # Tell ltmain to make .lib files, not .a files.
14089 libext=lib
14090 # Tell ltmain to make .dll files, not .so files.
14091 shrext_cmds=.dll
14092 # FIXME: Setting linknames here is a bad hack.
14093 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14094 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14095 cp "$export_symbols" "$output_objdir/$soname.def";
14096 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14097 else
14098 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14099 fi~
14100 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14101 linknames='
14102 # The linker will not automatically build a static lib if we build a DLL.
14103 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14104 enable_shared_with_static_runtimes_CXX=yes
14105 # Don't use ranlib
14106 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14107 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14108 lt_tool_outputfile="@TOOL_OUTPUT@"~
14109 case $lt_outputfile in
14110 *.exe|*.EXE) ;;
14111 *)
14112 lt_outputfile=$lt_outputfile.exe
14113 lt_tool_outputfile=$lt_tool_outputfile.exe
14114 ;;
14115 esac~
14116 func_to_tool_file "$lt_outputfile"~
14117 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14118 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14119 $RM "$lt_outputfile.manifest";
14120 fi'
14121 ;;
14122 *)
14123 # g++
14124 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14125 # as there is no search path for DLLs.
14126 hardcode_libdir_flag_spec_CXX='-L$libdir'
14127 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14128 allow_undefined_flag_CXX=unsupported
14129 always_export_symbols_CXX=no
14130 enable_shared_with_static_runtimes_CXX=yes
14131
14132 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14133 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'
14134 # If the export-symbols file already is a .def file, use it as
14135 # is; otherwise, prepend EXPORTS...
14136 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14137 cp $export_symbols $output_objdir/$soname.def;
14138 else
14139 echo EXPORTS > $output_objdir/$soname.def;
14140 cat $export_symbols >> $output_objdir/$soname.def;
14141 fi~
14142 $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'
14143 else
14144 ld_shlibs_CXX=no
14145 fi
14146 ;;
14147 esac
14148 ;;
14149 darwin* | rhapsody*)
14150
14151
14152 archive_cmds_need_lc_CXX=no
14153 hardcode_direct_CXX=no
14154 hardcode_automatic_CXX=yes
14155 hardcode_shlibpath_var_CXX=unsupported
14156 if test yes = "$lt_cv_ld_force_load"; then
14157 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\"`'
14158
14159 else
14160 whole_archive_flag_spec_CXX=''
14161 fi
14162 link_all_deplibs_CXX=yes
14163 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14164 case $cc_basename in
14165 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14166 *) _lt_dar_can_shared=$GCC ;;
14167 esac
14168 if test yes = "$_lt_dar_can_shared"; then
14169 output_verbose_link_cmd=func_echo_all
14170 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"
14171 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14172 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"
14173 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"
14174 if test yes != "$lt_cv_apple_cc_single_mod"; then
14175 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"
14176 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"
14177 fi
14178
14179 else
14180 ld_shlibs_CXX=no
14181 fi
14182
14183 ;;
14184
14185 os2*)
14186 hardcode_libdir_flag_spec_CXX='-L$libdir'
14187 hardcode_minus_L_CXX=yes
14188 allow_undefined_flag_CXX=unsupported
14189 shrext_cmds=.dll
14190 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14191 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14192 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14193 $ECHO EXPORTS >> $output_objdir/$libname.def~
14194 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14195 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14196 emximp -o $lib $output_objdir/$libname.def'
14197 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14198 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14199 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14200 $ECHO EXPORTS >> $output_objdir/$libname.def~
14201 prefix_cmds="$SED"~
14202 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14203 prefix_cmds="$prefix_cmds -e 1d";
14204 fi~
14205 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14206 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14207 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14208 emximp -o $lib $output_objdir/$libname.def'
14209 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14210 enable_shared_with_static_runtimes_CXX=yes
14211 ;;
14212
14213 dgux*)
14214 case $cc_basename in
14215 ec++*)
14216 # FIXME: insert proper C++ library support
14217 ld_shlibs_CXX=no
14218 ;;
14219 ghcx*)
14220 # Green Hills C++ Compiler
14221 # FIXME: insert proper C++ library support
14222 ld_shlibs_CXX=no
14223 ;;
14224 *)
14225 # FIXME: insert proper C++ library support
14226 ld_shlibs_CXX=no
14227 ;;
14228 esac
14229 ;;
14230
14231 freebsd2.*)
14232 # C++ shared libraries reported to be fairly broken before
14233 # switch to ELF
14234 ld_shlibs_CXX=no
14235 ;;
14236
14237 freebsd-elf*)
14238 archive_cmds_need_lc_CXX=no
14239 ;;
14240
14241 freebsd* | dragonfly*)
14242 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14243 # conventions
14244 ld_shlibs_CXX=yes
14245 ;;
14246
14247 haiku*)
14248 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14249 link_all_deplibs_CXX=yes
14250 ;;
14251
14252 hpux9*)
14253 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14254 hardcode_libdir_separator_CXX=:
14255 export_dynamic_flag_spec_CXX='$wl-E'
14256 hardcode_direct_CXX=yes
14257 hardcode_minus_L_CXX=yes # Not in the search PATH,
14258 # but as the default
14259 # location of the library.
14260
14261 case $cc_basename in
14262 CC*)
14263 # FIXME: insert proper C++ library support
14264 ld_shlibs_CXX=no
14265 ;;
14266 aCC*)
14267 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14268 # Commands to make compiler produce verbose output that lists
14269 # what "hidden" libraries, object files and flags are used when
14270 # linking a shared library.
14271 #
14272 # There doesn't appear to be a way to prevent this compiler from
14273 # explicitly linking system object files so we need to strip them
14274 # from the output so that they don't get included in the library
14275 # dependencies.
14276 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"'
14277 ;;
14278 *)
14279 if test yes = "$GXX"; then
14280 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14281 else
14282 # FIXME: insert proper C++ library support
14283 ld_shlibs_CXX=no
14284 fi
14285 ;;
14286 esac
14287 ;;
14288
14289 hpux10*|hpux11*)
14290 if test no = "$with_gnu_ld"; then
14291 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14292 hardcode_libdir_separator_CXX=:
14293
14294 case $host_cpu in
14295 hppa*64*|ia64*)
14296 ;;
14297 *)
14298 export_dynamic_flag_spec_CXX='$wl-E'
14299 ;;
14300 esac
14301 fi
14302 case $host_cpu in
14303 hppa*64*|ia64*)
14304 hardcode_direct_CXX=no
14305 hardcode_shlibpath_var_CXX=no
14306 ;;
14307 *)
14308 hardcode_direct_CXX=yes
14309 hardcode_direct_absolute_CXX=yes
14310 hardcode_minus_L_CXX=yes # Not in the search PATH,
14311 # but as the default
14312 # location of the library.
14313 ;;
14314 esac
14315
14316 case $cc_basename in
14317 CC*)
14318 # FIXME: insert proper C++ library support
14319 ld_shlibs_CXX=no
14320 ;;
14321 aCC*)
14322 case $host_cpu in
14323 hppa*64*)
14324 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14325 ;;
14326 ia64*)
14327 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14328 ;;
14329 *)
14330 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14331 ;;
14332 esac
14333 # Commands to make compiler produce verbose output that lists
14334 # what "hidden" libraries, object files and flags are used when
14335 # linking a shared library.
14336 #
14337 # There doesn't appear to be a way to prevent this compiler from
14338 # explicitly linking system object files so we need to strip them
14339 # from the output so that they don't get included in the library
14340 # dependencies.
14341 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"'
14342 ;;
14343 *)
14344 if test yes = "$GXX"; then
14345 if test no = "$with_gnu_ld"; then
14346 case $host_cpu in
14347 hppa*64*)
14348 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14349 ;;
14350 ia64*)
14351 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14352 ;;
14353 *)
14354 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'
14355 ;;
14356 esac
14357 fi
14358 else
14359 # FIXME: insert proper C++ library support
14360 ld_shlibs_CXX=no
14361 fi
14362 ;;
14363 esac
14364 ;;
14365
14366 interix[3-9]*)
14367 hardcode_direct_CXX=no
14368 hardcode_shlibpath_var_CXX=no
14369 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14370 export_dynamic_flag_spec_CXX='$wl-E'
14371 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14372 # Instead, shared libraries are loaded at an image base (0x10000000 by
14373 # default) and relocated if they conflict, which is a slow very memory
14374 # consuming and fragmenting process. To avoid this, we pick a random,
14375 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14376 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14377 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'
14378 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'
14379 ;;
14380 irix5* | irix6*)
14381 case $cc_basename in
14382 CC*)
14383 # SGI C++
14384 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'
14385
14386 # Archives containing C++ object files must be created using
14387 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14388 # necessary to make sure instantiated templates are included
14389 # in the archive.
14390 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14391 ;;
14392 *)
14393 if test yes = "$GXX"; then
14394 if test no = "$with_gnu_ld"; then
14395 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'
14396 else
14397 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'
14398 fi
14399 fi
14400 link_all_deplibs_CXX=yes
14401 ;;
14402 esac
14403 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14404 hardcode_libdir_separator_CXX=:
14405 inherit_rpath_CXX=yes
14406 ;;
14407
14408 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14409 case $cc_basename in
14410 KCC*)
14411 # Kuck and Associates, Inc. (KAI) C++ Compiler
14412
14413 # KCC will only create a shared library if the output file
14414 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14415 # to its proper name (with version) after linking.
14416 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'
14417 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'
14418 # Commands to make compiler produce verbose output that lists
14419 # what "hidden" libraries, object files and flags are used when
14420 # linking a shared library.
14421 #
14422 # There doesn't appear to be a way to prevent this compiler from
14423 # explicitly linking system object files so we need to strip them
14424 # from the output so that they don't get included in the library
14425 # dependencies.
14426 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"'
14427
14428 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14429 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14430
14431 # Archives containing C++ object files must be created using
14432 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14433 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14434 ;;
14435 icpc* | ecpc* )
14436 # Intel C++
14437 with_gnu_ld=yes
14438 # version 8.0 and above of icpc choke on multiply defined symbols
14439 # if we add $predep_objects and $postdep_objects, however 7.1 and
14440 # earlier do not add the objects themselves.
14441 case `$CC -V 2>&1` in
14442 *"Version 7."*)
14443 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14444 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'
14445 ;;
14446 *) # Version 8.0 or newer
14447 tmp_idyn=
14448 case $host_cpu in
14449 ia64*) tmp_idyn=' -i_dynamic';;
14450 esac
14451 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14452 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'
14453 ;;
14454 esac
14455 archive_cmds_need_lc_CXX=no
14456 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14457 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14458 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14459 ;;
14460 pgCC* | pgcpp*)
14461 # Portland Group C++ compiler
14462 case `$CC -V` in
14463 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14464 prelink_cmds_CXX='tpldir=Template.dir~
14465 rm -rf $tpldir~
14466 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14467 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14468 old_archive_cmds_CXX='tpldir=Template.dir~
14469 rm -rf $tpldir~
14470 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14471 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14472 $RANLIB $oldlib'
14473 archive_cmds_CXX='tpldir=Template.dir~
14474 rm -rf $tpldir~
14475 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14476 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14477 archive_expsym_cmds_CXX='tpldir=Template.dir~
14478 rm -rf $tpldir~
14479 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14480 $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'
14481 ;;
14482 *) # Version 6 and above use weak symbols
14483 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14484 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'
14485 ;;
14486 esac
14487
14488 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14489 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14490 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'
14491 ;;
14492 cxx*)
14493 # Compaq C++
14494 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14495 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'
14496
14497 runpath_var=LD_RUN_PATH
14498 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14499 hardcode_libdir_separator_CXX=:
14500
14501 # Commands to make compiler produce verbose output that lists
14502 # what "hidden" libraries, object files and flags are used when
14503 # linking a shared library.
14504 #
14505 # There doesn't appear to be a way to prevent this compiler from
14506 # explicitly linking system object files so we need to strip them
14507 # from the output so that they don't get included in the library
14508 # dependencies.
14509 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'
14510 ;;
14511 xl* | mpixl* | bgxl*)
14512 # IBM XL 8.0 on PPC, with GNU ld
14513 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14514 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14515 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14516 if test yes = "$supports_anon_versioning"; then
14517 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14518 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14519 echo "local: *; };" >> $output_objdir/$libname.ver~
14520 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14521 fi
14522 ;;
14523 *)
14524 case `$CC -V 2>&1 | sed 5q` in
14525 *Sun\ C*)
14526 # Sun C++ 5.9
14527 no_undefined_flag_CXX=' -zdefs'
14528 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14529 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'
14530 hardcode_libdir_flag_spec_CXX='-R$libdir'
14531 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'
14532 compiler_needs_object_CXX=yes
14533
14534 # Not sure whether something based on
14535 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14536 # would be better.
14537 output_verbose_link_cmd='func_echo_all'
14538
14539 # Archives containing C++ object files must be created using
14540 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14541 # necessary to make sure instantiated templates are included
14542 # in the archive.
14543 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14544 ;;
14545 esac
14546 ;;
14547 esac
14548 ;;
14549
14550 lynxos*)
14551 # FIXME: insert proper C++ library support
14552 ld_shlibs_CXX=no
14553 ;;
14554
14555 m88k*)
14556 # FIXME: insert proper C++ library support
14557 ld_shlibs_CXX=no
14558 ;;
14559
14560 mvs*)
14561 case $cc_basename in
14562 cxx*)
14563 # FIXME: insert proper C++ library support
14564 ld_shlibs_CXX=no
14565 ;;
14566 *)
14567 # FIXME: insert proper C++ library support
14568 ld_shlibs_CXX=no
14569 ;;
14570 esac
14571 ;;
14572
14573 netbsd*)
14574 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14575 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14576 wlarc=
14577 hardcode_libdir_flag_spec_CXX='-R$libdir'
14578 hardcode_direct_CXX=yes
14579 hardcode_shlibpath_var_CXX=no
14580 fi
14581 # Workaround some broken pre-1.5 toolchains
14582 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14583 ;;
14584
14585 *nto* | *qnx*)
14586 ld_shlibs_CXX=yes
14587 ;;
14588
14589 openbsd* | bitrig*)
14590 if test -f /usr/libexec/ld.so; then
14591 hardcode_direct_CXX=yes
14592 hardcode_shlibpath_var_CXX=no
14593 hardcode_direct_absolute_CXX=yes
14594 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14595 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14597 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14598 export_dynamic_flag_spec_CXX='$wl-E'
14599 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14600 fi
14601 output_verbose_link_cmd=func_echo_all
14602 else
14603 ld_shlibs_CXX=no
14604 fi
14605 ;;
14606
14607 osf3* | osf4* | osf5*)
14608 case $cc_basename in
14609 KCC*)
14610 # Kuck and Associates, Inc. (KAI) C++ Compiler
14611
14612 # KCC will only create a shared library if the output file
14613 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14614 # to its proper name (with version) after linking.
14615 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'
14616
14617 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14618 hardcode_libdir_separator_CXX=:
14619
14620 # Archives containing C++ object files must be created using
14621 # the KAI C++ compiler.
14622 case $host in
14623 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14624 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14625 esac
14626 ;;
14627 RCC*)
14628 # Rational C++ 2.4.1
14629 # FIXME: insert proper C++ library support
14630 ld_shlibs_CXX=no
14631 ;;
14632 cxx*)
14633 case $host in
14634 osf3*)
14635 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14636 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'
14637 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14638 ;;
14639 *)
14640 allow_undefined_flag_CXX=' -expect_unresolved \*'
14641 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'
14642 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14643 echo "-hidden">> $lib.exp~
14644 $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~
14645 $RM $lib.exp'
14646 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14647 ;;
14648 esac
14649
14650 hardcode_libdir_separator_CXX=:
14651
14652 # Commands to make compiler produce verbose output that lists
14653 # what "hidden" libraries, object files and flags are used when
14654 # linking a shared library.
14655 #
14656 # There doesn't appear to be a way to prevent this compiler from
14657 # explicitly linking system object files so we need to strip them
14658 # from the output so that they don't get included in the library
14659 # dependencies.
14660 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"'
14661 ;;
14662 *)
14663 if test yes,no = "$GXX,$with_gnu_ld"; then
14664 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14665 case $host in
14666 osf3*)
14667 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'
14668 ;;
14669 *)
14670 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'
14671 ;;
14672 esac
14673
14674 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14675 hardcode_libdir_separator_CXX=:
14676
14677 # Commands to make compiler produce verbose output that lists
14678 # what "hidden" libraries, object files and flags are used when
14679 # linking a shared library.
14680 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14681
14682 else
14683 # FIXME: insert proper C++ library support
14684 ld_shlibs_CXX=no
14685 fi
14686 ;;
14687 esac
14688 ;;
14689
14690 psos*)
14691 # FIXME: insert proper C++ library support
14692 ld_shlibs_CXX=no
14693 ;;
14694
14695 sunos4*)
14696 case $cc_basename in
14697 CC*)
14698 # Sun C++ 4.x
14699 # FIXME: insert proper C++ library support
14700 ld_shlibs_CXX=no
14701 ;;
14702 lcc*)
14703 # Lucid
14704 # FIXME: insert proper C++ library support
14705 ld_shlibs_CXX=no
14706 ;;
14707 *)
14708 # FIXME: insert proper C++ library support
14709 ld_shlibs_CXX=no
14710 ;;
14711 esac
14712 ;;
14713
14714 solaris*)
14715 case $cc_basename in
14716 CC* | sunCC*)
14717 # Sun C++ 4.2, 5.x and Centerline C++
14718 archive_cmds_need_lc_CXX=yes
14719 no_undefined_flag_CXX=' -zdefs'
14720 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14721 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14722 $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'
14723
14724 hardcode_libdir_flag_spec_CXX='-R$libdir'
14725 hardcode_shlibpath_var_CXX=no
14726 case $host_os in
14727 solaris2.[0-5] | solaris2.[0-5].*) ;;
14728 *)
14729 # The compiler driver will combine and reorder linker options,
14730 # but understands '-z linker_flag'.
14731 # Supported since Solaris 2.6 (maybe 2.5.1?)
14732 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14733 ;;
14734 esac
14735 link_all_deplibs_CXX=yes
14736
14737 output_verbose_link_cmd='func_echo_all'
14738
14739 # Archives containing C++ object files must be created using
14740 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14741 # necessary to make sure instantiated templates are included
14742 # in the archive.
14743 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14744 ;;
14745 gcx*)
14746 # Green Hills C++ Compiler
14747 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14748
14749 # The C++ compiler must be used to create the archive.
14750 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14751 ;;
14752 *)
14753 # GNU C++ compiler with Solaris linker
14754 if test yes,no = "$GXX,$with_gnu_ld"; then
14755 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14756 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14757 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14758 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14759 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14760
14761 # Commands to make compiler produce verbose output that lists
14762 # what "hidden" libraries, object files and flags are used when
14763 # linking a shared library.
14764 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14765 else
14766 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14767 # platform.
14768 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14769 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14770 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14771
14772 # Commands to make compiler produce verbose output that lists
14773 # what "hidden" libraries, object files and flags are used when
14774 # linking a shared library.
14775 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14776 fi
14777
14778 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14779 case $host_os in
14780 solaris2.[0-5] | solaris2.[0-5].*) ;;
14781 *)
14782 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14783 ;;
14784 esac
14785 fi
14786 ;;
14787 esac
14788 ;;
14789
14790 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14791 no_undefined_flag_CXX='$wl-z,text'
14792 archive_cmds_need_lc_CXX=no
14793 hardcode_shlibpath_var_CXX=no
14794 runpath_var='LD_RUN_PATH'
14795
14796 case $cc_basename in
14797 CC*)
14798 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14799 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14800 ;;
14801 *)
14802 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14803 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14804 ;;
14805 esac
14806 ;;
14807
14808 sysv5* | sco3.2v5* | sco5v6*)
14809 # Note: We CANNOT use -z defs as we might desire, because we do not
14810 # link with -lc, and that would cause any symbols used from libc to
14811 # always be unresolved, which means just about no library would
14812 # ever link correctly. If we're not using GNU ld we use -z text
14813 # though, which does catch some bad symbols but isn't as heavy-handed
14814 # as -z defs.
14815 no_undefined_flag_CXX='$wl-z,text'
14816 allow_undefined_flag_CXX='$wl-z,nodefs'
14817 archive_cmds_need_lc_CXX=no
14818 hardcode_shlibpath_var_CXX=no
14819 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14820 hardcode_libdir_separator_CXX=':'
14821 link_all_deplibs_CXX=yes
14822 export_dynamic_flag_spec_CXX='$wl-Bexport'
14823 runpath_var='LD_RUN_PATH'
14824
14825 case $cc_basename in
14826 CC*)
14827 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14828 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14829 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14830 '"$old_archive_cmds_CXX"
14831 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14832 '"$reload_cmds_CXX"
14833 ;;
14834 *)
14835 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14836 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14837 ;;
14838 esac
14839 ;;
14840
14841 tandem*)
14842 case $cc_basename in
14843 NCC*)
14844 # NonStop-UX NCC 3.20
14845 # FIXME: insert proper C++ library support
14846 ld_shlibs_CXX=no
14847 ;;
14848 *)
14849 # FIXME: insert proper C++ library support
14850 ld_shlibs_CXX=no
14851 ;;
14852 esac
14853 ;;
14854
14855 vxworks*)
14856 # FIXME: insert proper C++ library support
14857 ld_shlibs_CXX=no
14858 ;;
14859
14860 *)
14861 # FIXME: insert proper C++ library support
14862 ld_shlibs_CXX=no
14863 ;;
14864 esac
14865
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14867 $as_echo "$ld_shlibs_CXX" >&6; }
14868 test no = "$ld_shlibs_CXX" && can_build_shared=no
14869
14870 GCC_CXX=$GXX
14871 LD_CXX=$LD
14872
14873 ## CAVEAT EMPTOR:
14874 ## There is no encapsulation within the following macros, do not change
14875 ## the running order or otherwise move them around unless you know exactly
14876 ## what you are doing...
14877 # Dependencies to place before and after the object being linked:
14878 predep_objects_CXX=
14879 postdep_objects_CXX=
14880 predeps_CXX=
14881 postdeps_CXX=
14882 compiler_lib_search_path_CXX=
14883
14884 cat > conftest.$ac_ext <<_LT_EOF
14885 class Foo
14886 {
14887 public:
14888 Foo (void) { a = 0; }
14889 private:
14890 int a;
14891 };
14892 _LT_EOF
14893
14894
14895 _lt_libdeps_save_CFLAGS=$CFLAGS
14896 case "$CC $CFLAGS " in #(
14897 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14898 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14899 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14900 esac
14901
14902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14903 (eval $ac_compile) 2>&5
14904 ac_status=$?
14905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14906 test $ac_status = 0; }; then
14907 # Parse the compiler output and extract the necessary
14908 # objects, libraries and library flags.
14909
14910 # Sentinel used to keep track of whether or not we are before
14911 # the conftest object file.
14912 pre_test_object_deps_done=no
14913
14914 for p in `eval "$output_verbose_link_cmd"`; do
14915 case $prev$p in
14916
14917 -L* | -R* | -l*)
14918 # Some compilers place space between "-{L,R}" and the path.
14919 # Remove the space.
14920 if test x-L = "$p" ||
14921 test x-R = "$p"; then
14922 prev=$p
14923 continue
14924 fi
14925
14926 # Expand the sysroot to ease extracting the directories later.
14927 if test -z "$prev"; then
14928 case $p in
14929 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14930 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14931 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14932 esac
14933 fi
14934 case $p in
14935 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14936 esac
14937 if test no = "$pre_test_object_deps_done"; then
14938 case $prev in
14939 -L | -R)
14940 # Internal compiler library paths should come after those
14941 # provided the user. The postdeps already come after the
14942 # user supplied libs so there is no need to process them.
14943 if test -z "$compiler_lib_search_path_CXX"; then
14944 compiler_lib_search_path_CXX=$prev$p
14945 else
14946 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14947 fi
14948 ;;
14949 # The "-l" case would never come before the object being
14950 # linked, so don't bother handling this case.
14951 esac
14952 else
14953 if test -z "$postdeps_CXX"; then
14954 postdeps_CXX=$prev$p
14955 else
14956 postdeps_CXX="${postdeps_CXX} $prev$p"
14957 fi
14958 fi
14959 prev=
14960 ;;
14961
14962 *.lto.$objext) ;; # Ignore GCC LTO objects
14963 *.$objext)
14964 # This assumes that the test object file only shows up
14965 # once in the compiler output.
14966 if test "$p" = "conftest.$objext"; then
14967 pre_test_object_deps_done=yes
14968 continue
14969 fi
14970
14971 if test no = "$pre_test_object_deps_done"; then
14972 if test -z "$predep_objects_CXX"; then
14973 predep_objects_CXX=$p
14974 else
14975 predep_objects_CXX="$predep_objects_CXX $p"
14976 fi
14977 else
14978 if test -z "$postdep_objects_CXX"; then
14979 postdep_objects_CXX=$p
14980 else
14981 postdep_objects_CXX="$postdep_objects_CXX $p"
14982 fi
14983 fi
14984 ;;
14985
14986 *) ;; # Ignore the rest.
14987
14988 esac
14989 done
14990
14991 # Clean up.
14992 rm -f a.out a.exe
14993 else
14994 echo "libtool.m4: error: problem compiling CXX test program"
14995 fi
14996
14997 $RM -f confest.$objext
14998 CFLAGS=$_lt_libdeps_save_CFLAGS
14999
15000 # PORTME: override above test on systems where it is broken
15001 case $host_os in
15002 interix[3-9]*)
15003 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15004 # hack all around it, let's just trust "g++" to DTRT.
15005 predep_objects_CXX=
15006 postdep_objects_CXX=
15007 postdeps_CXX=
15008 ;;
15009 esac
15010
15011
15012 case " $postdeps_CXX " in
15013 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15014 esac
15015 compiler_lib_search_dirs_CXX=
15016 if test -n "${compiler_lib_search_path_CXX}"; then
15017 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15018 fi
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050 lt_prog_compiler_wl_CXX=
15051 lt_prog_compiler_pic_CXX=
15052 lt_prog_compiler_static_CXX=
15053
15054
15055 # C++ specific cases for pic, static, wl, etc.
15056 if test yes = "$GXX"; then
15057 lt_prog_compiler_wl_CXX='-Wl,'
15058 lt_prog_compiler_static_CXX='-static'
15059
15060 case $host_os in
15061 aix*)
15062 # All AIX code is PIC.
15063 if test ia64 = "$host_cpu"; then
15064 # AIX 5 now supports IA64 processor
15065 lt_prog_compiler_static_CXX='-Bstatic'
15066 fi
15067 lt_prog_compiler_pic_CXX='-fPIC'
15068 ;;
15069
15070 amigaos*)
15071 case $host_cpu in
15072 powerpc)
15073 # see comment about AmigaOS4 .so support
15074 lt_prog_compiler_pic_CXX='-fPIC'
15075 ;;
15076 m68k)
15077 # FIXME: we need at least 68020 code to build shared libraries, but
15078 # adding the '-m68020' flag to GCC prevents building anything better,
15079 # like '-m68040'.
15080 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15081 ;;
15082 esac
15083 ;;
15084
15085 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15086 # PIC is the default for these OSes.
15087 ;;
15088 mingw* | cygwin* | os2* | pw32* | cegcc*)
15089 # This hack is so that the source file can tell whether it is being
15090 # built for inclusion in a dll (and should export symbols for example).
15091 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15092 # (--disable-auto-import) libraries
15093 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15094 case $host_os in
15095 os2*)
15096 lt_prog_compiler_static_CXX='$wl-static'
15097 ;;
15098 esac
15099 ;;
15100 darwin* | rhapsody*)
15101 # PIC is the default on this platform
15102 # Common symbols not allowed in MH_DYLIB files
15103 lt_prog_compiler_pic_CXX='-fno-common'
15104 ;;
15105 *djgpp*)
15106 # DJGPP does not support shared libraries at all
15107 lt_prog_compiler_pic_CXX=
15108 ;;
15109 haiku*)
15110 # PIC is the default for Haiku.
15111 # The "-static" flag exists, but is broken.
15112 lt_prog_compiler_static_CXX=
15113 ;;
15114 interix[3-9]*)
15115 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15116 # Instead, we relocate shared libraries at runtime.
15117 ;;
15118 sysv4*MP*)
15119 if test -d /usr/nec; then
15120 lt_prog_compiler_pic_CXX=-Kconform_pic
15121 fi
15122 ;;
15123 hpux*)
15124 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15125 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15126 # sets the default TLS model and affects inlining.
15127 case $host_cpu in
15128 hppa*64*)
15129 ;;
15130 *)
15131 lt_prog_compiler_pic_CXX='-fPIC'
15132 ;;
15133 esac
15134 ;;
15135 *qnx* | *nto*)
15136 # QNX uses GNU C++, but need to define -shared option too, otherwise
15137 # it will coredump.
15138 lt_prog_compiler_pic_CXX='-fPIC -shared'
15139 ;;
15140 *)
15141 lt_prog_compiler_pic_CXX='-fPIC'
15142 ;;
15143 esac
15144 else
15145 case $host_os in
15146 aix[4-9]*)
15147 # All AIX code is PIC.
15148 if test ia64 = "$host_cpu"; then
15149 # AIX 5 now supports IA64 processor
15150 lt_prog_compiler_static_CXX='-Bstatic'
15151 else
15152 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15153 fi
15154 ;;
15155 chorus*)
15156 case $cc_basename in
15157 cxch68*)
15158 # Green Hills C++ Compiler
15159 # _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"
15160 ;;
15161 esac
15162 ;;
15163 mingw* | cygwin* | os2* | pw32* | cegcc*)
15164 # This hack is so that the source file can tell whether it is being
15165 # built for inclusion in a dll (and should export symbols for example).
15166 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15167 ;;
15168 dgux*)
15169 case $cc_basename in
15170 ec++*)
15171 lt_prog_compiler_pic_CXX='-KPIC'
15172 ;;
15173 ghcx*)
15174 # Green Hills C++ Compiler
15175 lt_prog_compiler_pic_CXX='-pic'
15176 ;;
15177 *)
15178 ;;
15179 esac
15180 ;;
15181 freebsd* | dragonfly*)
15182 # FreeBSD uses GNU C++
15183 ;;
15184 hpux9* | hpux10* | hpux11*)
15185 case $cc_basename in
15186 CC*)
15187 lt_prog_compiler_wl_CXX='-Wl,'
15188 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15189 if test ia64 != "$host_cpu"; then
15190 lt_prog_compiler_pic_CXX='+Z'
15191 fi
15192 ;;
15193 aCC*)
15194 lt_prog_compiler_wl_CXX='-Wl,'
15195 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15196 case $host_cpu in
15197 hppa*64*|ia64*)
15198 # +Z the default
15199 ;;
15200 *)
15201 lt_prog_compiler_pic_CXX='+Z'
15202 ;;
15203 esac
15204 ;;
15205 *)
15206 ;;
15207 esac
15208 ;;
15209 interix*)
15210 # This is c89, which is MS Visual C++ (no shared libs)
15211 # Anyone wants to do a port?
15212 ;;
15213 irix5* | irix6* | nonstopux*)
15214 case $cc_basename in
15215 CC*)
15216 lt_prog_compiler_wl_CXX='-Wl,'
15217 lt_prog_compiler_static_CXX='-non_shared'
15218 # CC pic flag -KPIC is the default.
15219 ;;
15220 *)
15221 ;;
15222 esac
15223 ;;
15224 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15225 case $cc_basename in
15226 KCC*)
15227 # KAI C++ Compiler
15228 lt_prog_compiler_wl_CXX='--backend -Wl,'
15229 lt_prog_compiler_pic_CXX='-fPIC'
15230 ;;
15231 ecpc* )
15232 # old Intel C++ for x86_64, which still supported -KPIC.
15233 lt_prog_compiler_wl_CXX='-Wl,'
15234 lt_prog_compiler_pic_CXX='-KPIC'
15235 lt_prog_compiler_static_CXX='-static'
15236 ;;
15237 icpc* )
15238 # Intel C++, used to be incompatible with GCC.
15239 # ICC 10 doesn't accept -KPIC any more.
15240 lt_prog_compiler_wl_CXX='-Wl,'
15241 lt_prog_compiler_pic_CXX='-fPIC'
15242 lt_prog_compiler_static_CXX='-static'
15243 ;;
15244 pgCC* | pgcpp*)
15245 # Portland Group C++ compiler
15246 lt_prog_compiler_wl_CXX='-Wl,'
15247 lt_prog_compiler_pic_CXX='-fpic'
15248 lt_prog_compiler_static_CXX='-Bstatic'
15249 ;;
15250 cxx*)
15251 # Compaq C++
15252 # Make sure the PIC flag is empty. It appears that all Alpha
15253 # Linux and Compaq Tru64 Unix objects are PIC.
15254 lt_prog_compiler_pic_CXX=
15255 lt_prog_compiler_static_CXX='-non_shared'
15256 ;;
15257 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15258 # IBM XL 8.0, 9.0 on PPC and BlueGene
15259 lt_prog_compiler_wl_CXX='-Wl,'
15260 lt_prog_compiler_pic_CXX='-qpic'
15261 lt_prog_compiler_static_CXX='-qstaticlink'
15262 ;;
15263 *)
15264 case `$CC -V 2>&1 | sed 5q` in
15265 *Sun\ C*)
15266 # Sun C++ 5.9
15267 lt_prog_compiler_pic_CXX='-KPIC'
15268 lt_prog_compiler_static_CXX='-Bstatic'
15269 lt_prog_compiler_wl_CXX='-Qoption ld '
15270 ;;
15271 esac
15272 ;;
15273 esac
15274 ;;
15275 lynxos*)
15276 ;;
15277 m88k*)
15278 ;;
15279 mvs*)
15280 case $cc_basename in
15281 cxx*)
15282 lt_prog_compiler_pic_CXX='-W c,exportall'
15283 ;;
15284 *)
15285 ;;
15286 esac
15287 ;;
15288 netbsd*)
15289 ;;
15290 *qnx* | *nto*)
15291 # QNX uses GNU C++, but need to define -shared option too, otherwise
15292 # it will coredump.
15293 lt_prog_compiler_pic_CXX='-fPIC -shared'
15294 ;;
15295 osf3* | osf4* | osf5*)
15296 case $cc_basename in
15297 KCC*)
15298 lt_prog_compiler_wl_CXX='--backend -Wl,'
15299 ;;
15300 RCC*)
15301 # Rational C++ 2.4.1
15302 lt_prog_compiler_pic_CXX='-pic'
15303 ;;
15304 cxx*)
15305 # Digital/Compaq C++
15306 lt_prog_compiler_wl_CXX='-Wl,'
15307 # Make sure the PIC flag is empty. It appears that all Alpha
15308 # Linux and Compaq Tru64 Unix objects are PIC.
15309 lt_prog_compiler_pic_CXX=
15310 lt_prog_compiler_static_CXX='-non_shared'
15311 ;;
15312 *)
15313 ;;
15314 esac
15315 ;;
15316 psos*)
15317 ;;
15318 solaris*)
15319 case $cc_basename in
15320 CC* | sunCC*)
15321 # Sun C++ 4.2, 5.x and Centerline C++
15322 lt_prog_compiler_pic_CXX='-KPIC'
15323 lt_prog_compiler_static_CXX='-Bstatic'
15324 lt_prog_compiler_wl_CXX='-Qoption ld '
15325 ;;
15326 gcx*)
15327 # Green Hills C++ Compiler
15328 lt_prog_compiler_pic_CXX='-PIC'
15329 ;;
15330 *)
15331 ;;
15332 esac
15333 ;;
15334 sunos4*)
15335 case $cc_basename in
15336 CC*)
15337 # Sun C++ 4.x
15338 lt_prog_compiler_pic_CXX='-pic'
15339 lt_prog_compiler_static_CXX='-Bstatic'
15340 ;;
15341 lcc*)
15342 # Lucid
15343 lt_prog_compiler_pic_CXX='-pic'
15344 ;;
15345 *)
15346 ;;
15347 esac
15348 ;;
15349 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15350 case $cc_basename in
15351 CC*)
15352 lt_prog_compiler_wl_CXX='-Wl,'
15353 lt_prog_compiler_pic_CXX='-KPIC'
15354 lt_prog_compiler_static_CXX='-Bstatic'
15355 ;;
15356 esac
15357 ;;
15358 tandem*)
15359 case $cc_basename in
15360 NCC*)
15361 # NonStop-UX NCC 3.20
15362 lt_prog_compiler_pic_CXX='-KPIC'
15363 ;;
15364 *)
15365 ;;
15366 esac
15367 ;;
15368 vxworks*)
15369 ;;
15370 *)
15371 lt_prog_compiler_can_build_shared_CXX=no
15372 ;;
15373 esac
15374 fi
15375
15376 case $host_os in
15377 # For platforms that do not support PIC, -DPIC is meaningless:
15378 *djgpp*)
15379 lt_prog_compiler_pic_CXX=
15380 ;;
15381 *)
15382 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15383 ;;
15384 esac
15385
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15387 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15388 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15389 $as_echo_n "(cached) " >&6
15390 else
15391 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15392 fi
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15394 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15395 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15396
15397 #
15398 # Check to make sure the PIC flag actually works.
15399 #
15400 if test -n "$lt_prog_compiler_pic_CXX"; then
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15402 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15403 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15404 $as_echo_n "(cached) " >&6
15405 else
15406 lt_cv_prog_compiler_pic_works_CXX=no
15407 ac_outfile=conftest.$ac_objext
15408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15409 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15410 # Insert the option either (1) after the last *FLAGS variable, or
15411 # (2) before a word containing "conftest.", or (3) at the end.
15412 # Note that $ac_compile itself does not contain backslashes and begins
15413 # with a dollar sign (not a hyphen), so the echo should work correctly.
15414 # The option is referenced via a variable to avoid confusing sed.
15415 lt_compile=`echo "$ac_compile" | $SED \
15416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15418 -e 's:$: $lt_compiler_flag:'`
15419 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15420 (eval "$lt_compile" 2>conftest.err)
15421 ac_status=$?
15422 cat conftest.err >&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 if (exit $ac_status) && test -s "$ac_outfile"; then
15425 # The compiler can only warn and ignore the option if not recognized
15426 # So say no if there are warnings other than the usual output.
15427 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15429 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15430 lt_cv_prog_compiler_pic_works_CXX=yes
15431 fi
15432 fi
15433 $RM conftest*
15434
15435 fi
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15437 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15438
15439 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15440 case $lt_prog_compiler_pic_CXX in
15441 "" | " "*) ;;
15442 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15443 esac
15444 else
15445 lt_prog_compiler_pic_CXX=
15446 lt_prog_compiler_can_build_shared_CXX=no
15447 fi
15448
15449 fi
15450
15451
15452
15453
15454
15455 #
15456 # Check to make sure the static flag actually works.
15457 #
15458 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15460 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15461 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15462 $as_echo_n "(cached) " >&6
15463 else
15464 lt_cv_prog_compiler_static_works_CXX=no
15465 save_LDFLAGS=$LDFLAGS
15466 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15467 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15468 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15469 # The linker can only warn and ignore the option if not recognized
15470 # So say no if there are warnings
15471 if test -s conftest.err; then
15472 # Append any errors to the config.log.
15473 cat conftest.err 1>&5
15474 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15476 if diff conftest.exp conftest.er2 >/dev/null; then
15477 lt_cv_prog_compiler_static_works_CXX=yes
15478 fi
15479 else
15480 lt_cv_prog_compiler_static_works_CXX=yes
15481 fi
15482 fi
15483 $RM -r conftest*
15484 LDFLAGS=$save_LDFLAGS
15485
15486 fi
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15488 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15489
15490 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15491 :
15492 else
15493 lt_prog_compiler_static_CXX=
15494 fi
15495
15496
15497
15498
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15500 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15501 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15502 $as_echo_n "(cached) " >&6
15503 else
15504 lt_cv_prog_compiler_c_o_CXX=no
15505 $RM -r conftest 2>/dev/null
15506 mkdir conftest
15507 cd conftest
15508 mkdir out
15509 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15510
15511 lt_compiler_flag="-o out/conftest2.$ac_objext"
15512 # Insert the option either (1) after the last *FLAGS variable, or
15513 # (2) before a word containing "conftest.", or (3) at the end.
15514 # Note that $ac_compile itself does not contain backslashes and begins
15515 # with a dollar sign (not a hyphen), so the echo should work correctly.
15516 lt_compile=`echo "$ac_compile" | $SED \
15517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15519 -e 's:$: $lt_compiler_flag:'`
15520 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15521 (eval "$lt_compile" 2>out/conftest.err)
15522 ac_status=$?
15523 cat out/conftest.err >&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15526 then
15527 # The compiler can only warn and ignore the option if not recognized
15528 # So say no if there are warnings
15529 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15530 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15531 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15532 lt_cv_prog_compiler_c_o_CXX=yes
15533 fi
15534 fi
15535 chmod u+w . 2>&5
15536 $RM conftest*
15537 # SGI C++ compiler will create directory out/ii_files/ for
15538 # template instantiation
15539 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15540 $RM out/* && rmdir out
15541 cd ..
15542 $RM -r conftest
15543 $RM conftest*
15544
15545 fi
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15547 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15548
15549
15550
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15552 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15553 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15554 $as_echo_n "(cached) " >&6
15555 else
15556 lt_cv_prog_compiler_c_o_CXX=no
15557 $RM -r conftest 2>/dev/null
15558 mkdir conftest
15559 cd conftest
15560 mkdir out
15561 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15562
15563 lt_compiler_flag="-o out/conftest2.$ac_objext"
15564 # Insert the option either (1) after the last *FLAGS variable, or
15565 # (2) before a word containing "conftest.", or (3) at the end.
15566 # Note that $ac_compile itself does not contain backslashes and begins
15567 # with a dollar sign (not a hyphen), so the echo should work correctly.
15568 lt_compile=`echo "$ac_compile" | $SED \
15569 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15570 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15571 -e 's:$: $lt_compiler_flag:'`
15572 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15573 (eval "$lt_compile" 2>out/conftest.err)
15574 ac_status=$?
15575 cat out/conftest.err >&5
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15578 then
15579 # The compiler can only warn and ignore the option if not recognized
15580 # So say no if there are warnings
15581 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15582 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15583 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15584 lt_cv_prog_compiler_c_o_CXX=yes
15585 fi
15586 fi
15587 chmod u+w . 2>&5
15588 $RM conftest*
15589 # SGI C++ compiler will create directory out/ii_files/ for
15590 # template instantiation
15591 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15592 $RM out/* && rmdir out
15593 cd ..
15594 $RM -r conftest
15595 $RM conftest*
15596
15597 fi
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15599 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15600
15601
15602
15603
15604 hard_links=nottested
15605 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15606 # do not overwrite the value of need_locks provided by the user
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15608 $as_echo_n "checking if we can lock with hard links... " >&6; }
15609 hard_links=yes
15610 $RM conftest*
15611 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15612 touch conftest.a
15613 ln conftest.a conftest.b 2>&5 || hard_links=no
15614 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15616 $as_echo "$hard_links" >&6; }
15617 if test no = "$hard_links"; then
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15619 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15620 need_locks=warn
15621 fi
15622 else
15623 need_locks=no
15624 fi
15625
15626
15627
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15629 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15630
15631 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15632 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15633 case $host_os in
15634 aix[4-9]*)
15635 # If we're using GNU nm, then we don't want the "-C" option.
15636 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15637 # Without the "-l" option, or with the "-B" option, AIX nm treats
15638 # weak defined symbols like other global defined symbols, whereas
15639 # GNU nm marks them as "W".
15640 # While the 'weak' keyword is ignored in the Export File, we need
15641 # it in the Import File for the 'aix-soname' feature, so we have
15642 # to replace the "-B" option with "-P" for AIX nm.
15643 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15644 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15645 else
15646 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15647 fi
15648 ;;
15649 pw32*)
15650 export_symbols_cmds_CXX=$ltdll_cmds
15651 ;;
15652 cygwin* | mingw* | cegcc*)
15653 case $cc_basename in
15654 cl*)
15655 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15656 ;;
15657 *)
15658 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'
15659 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15660 ;;
15661 esac
15662 ;;
15663 *)
15664 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15665 ;;
15666 esac
15667
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15669 $as_echo "$ld_shlibs_CXX" >&6; }
15670 test no = "$ld_shlibs_CXX" && can_build_shared=no
15671
15672 with_gnu_ld_CXX=$with_gnu_ld
15673
15674
15675
15676
15677
15678
15679 #
15680 # Do we need to explicitly link libc?
15681 #
15682 case "x$archive_cmds_need_lc_CXX" in
15683 x|xyes)
15684 # Assume -lc should be added
15685 archive_cmds_need_lc_CXX=yes
15686
15687 if test yes,yes = "$GCC,$enable_shared"; then
15688 case $archive_cmds_CXX in
15689 *'~'*)
15690 # FIXME: we may have to deal with multi-command sequences.
15691 ;;
15692 '$CC '*)
15693 # Test whether the compiler implicitly links with -lc since on some
15694 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15695 # to ld, don't add -lc before -lgcc.
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15697 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15698 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15699 $as_echo_n "(cached) " >&6
15700 else
15701 $RM conftest*
15702 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15703
15704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15705 (eval $ac_compile) 2>&5
15706 ac_status=$?
15707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15708 test $ac_status = 0; } 2>conftest.err; then
15709 soname=conftest
15710 lib=conftest
15711 libobjs=conftest.$ac_objext
15712 deplibs=
15713 wl=$lt_prog_compiler_wl_CXX
15714 pic_flag=$lt_prog_compiler_pic_CXX
15715 compiler_flags=-v
15716 linker_flags=-v
15717 verstring=
15718 output_objdir=.
15719 libname=conftest
15720 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15721 allow_undefined_flag_CXX=
15722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15723 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15724 ac_status=$?
15725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15726 test $ac_status = 0; }
15727 then
15728 lt_cv_archive_cmds_need_lc_CXX=no
15729 else
15730 lt_cv_archive_cmds_need_lc_CXX=yes
15731 fi
15732 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15733 else
15734 cat conftest.err 1>&5
15735 fi
15736 $RM conftest*
15737
15738 fi
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15740 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15741 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15742 ;;
15743 esac
15744 fi
15745 ;;
15746 esac
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15810 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15811
15812 library_names_spec=
15813 libname_spec='lib$name'
15814 soname_spec=
15815 shrext_cmds=.so
15816 postinstall_cmds=
15817 postuninstall_cmds=
15818 finish_cmds=
15819 finish_eval=
15820 shlibpath_var=
15821 shlibpath_overrides_runpath=unknown
15822 version_type=none
15823 dynamic_linker="$host_os ld.so"
15824 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15825 need_lib_prefix=unknown
15826 hardcode_into_libs=no
15827
15828 # when you set need_version to no, make sure it does not cause -set_version
15829 # flags to be left without arguments
15830 need_version=unknown
15831
15832
15833
15834 case $host_os in
15835 aix3*)
15836 version_type=linux # correct to gnu/linux during the next big refactor
15837 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15838 shlibpath_var=LIBPATH
15839
15840 # AIX 3 has no versioning support, so we append a major version to the name.
15841 soname_spec='$libname$release$shared_ext$major'
15842 ;;
15843
15844 aix[4-9]*)
15845 version_type=linux # correct to gnu/linux during the next big refactor
15846 need_lib_prefix=no
15847 need_version=no
15848 hardcode_into_libs=yes
15849 if test ia64 = "$host_cpu"; then
15850 # AIX 5 supports IA64
15851 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15852 shlibpath_var=LD_LIBRARY_PATH
15853 else
15854 # With GCC up to 2.95.x, collect2 would create an import file
15855 # for dependence libraries. The import file would start with
15856 # the line '#! .'. This would cause the generated library to
15857 # depend on '.', always an invalid library. This was fixed in
15858 # development snapshots of GCC prior to 3.0.
15859 case $host_os in
15860 aix4 | aix4.[01] | aix4.[01].*)
15861 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15862 echo ' yes '
15863 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15864 :
15865 else
15866 can_build_shared=no
15867 fi
15868 ;;
15869 esac
15870 # Using Import Files as archive members, it is possible to support
15871 # filename-based versioning of shared library archives on AIX. While
15872 # this would work for both with and without runtime linking, it will
15873 # prevent static linking of such archives. So we do filename-based
15874 # shared library versioning with .so extension only, which is used
15875 # when both runtime linking and shared linking is enabled.
15876 # Unfortunately, runtime linking may impact performance, so we do
15877 # not want this to be the default eventually. Also, we use the
15878 # versioned .so libs for executables only if there is the -brtl
15879 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15880 # To allow for filename-based versioning support, we need to create
15881 # libNAME.so.V as an archive file, containing:
15882 # *) an Import File, referring to the versioned filename of the
15883 # archive as well as the shared archive member, telling the
15884 # bitwidth (32 or 64) of that shared object, and providing the
15885 # list of exported symbols of that shared object, eventually
15886 # decorated with the 'weak' keyword
15887 # *) the shared object with the F_LOADONLY flag set, to really avoid
15888 # it being seen by the linker.
15889 # At run time we better use the real file rather than another symlink,
15890 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15891
15892 case $with_aix_soname,$aix_use_runtimelinking in
15893 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15894 # soname into executable. Probably we can add versioning support to
15895 # collect2, so additional links can be useful in future.
15896 aix,yes) # traditional libtool
15897 dynamic_linker='AIX unversionable lib.so'
15898 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15899 # instead of lib<name>.a to let people know that these are not
15900 # typical AIX shared libraries.
15901 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15902 ;;
15903 aix,no) # traditional AIX only
15904 dynamic_linker='AIX lib.a(lib.so.V)'
15905 # We preserve .a as extension for shared libraries through AIX4.2
15906 # and later when we are not doing run time linking.
15907 library_names_spec='$libname$release.a $libname.a'
15908 soname_spec='$libname$release$shared_ext$major'
15909 ;;
15910 svr4,*) # full svr4 only
15911 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15912 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15913 # We do not specify a path in Import Files, so LIBPATH fires.
15914 shlibpath_overrides_runpath=yes
15915 ;;
15916 *,yes) # both, prefer svr4
15917 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15918 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15919 # unpreferred sharedlib libNAME.a needs extra handling
15920 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15921 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15922 # We do not specify a path in Import Files, so LIBPATH fires.
15923 shlibpath_overrides_runpath=yes
15924 ;;
15925 *,no) # both, prefer aix
15926 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15927 library_names_spec='$libname$release.a $libname.a'
15928 soname_spec='$libname$release$shared_ext$major'
15929 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15930 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15931 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15932 ;;
15933 esac
15934 shlibpath_var=LIBPATH
15935 fi
15936 ;;
15937
15938 amigaos*)
15939 case $host_cpu in
15940 powerpc)
15941 # Since July 2007 AmigaOS4 officially supports .so libraries.
15942 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15944 ;;
15945 m68k)
15946 library_names_spec='$libname.ixlibrary $libname.a'
15947 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15948 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
15949 ;;
15950 esac
15951 ;;
15952
15953 beos*)
15954 library_names_spec='$libname$shared_ext'
15955 dynamic_linker="$host_os ld.so"
15956 shlibpath_var=LIBRARY_PATH
15957 ;;
15958
15959 bsdi[45]*)
15960 version_type=linux # correct to gnu/linux during the next big refactor
15961 need_version=no
15962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15963 soname_spec='$libname$release$shared_ext$major'
15964 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15965 shlibpath_var=LD_LIBRARY_PATH
15966 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15967 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15968 # the default ld.so.conf also contains /usr/contrib/lib and
15969 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15970 # libtool to hard-code these into programs
15971 ;;
15972
15973 cygwin* | mingw* | pw32* | cegcc*)
15974 version_type=windows
15975 shrext_cmds=.dll
15976 need_version=no
15977 need_lib_prefix=no
15978
15979 case $GCC,$cc_basename in
15980 yes,*)
15981 # gcc
15982 library_names_spec='$libname.dll.a'
15983 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15984 postinstall_cmds='base_file=`basename \$file`~
15985 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15986 dldir=$destdir/`dirname \$dlpath`~
15987 test -d \$dldir || mkdir -p \$dldir~
15988 $install_prog $dir/$dlname \$dldir/$dlname~
15989 chmod a+x \$dldir/$dlname~
15990 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15991 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15992 fi'
15993 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15994 dlpath=$dir/\$dldll~
15995 $RM \$dlpath'
15996 shlibpath_overrides_runpath=yes
15997
15998 case $host_os in
15999 cygwin*)
16000 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16001 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16002
16003 ;;
16004 mingw* | cegcc*)
16005 # MinGW DLLs use traditional 'lib' prefix
16006 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16007 ;;
16008 pw32*)
16009 # pw32 DLLs use 'pw' prefix rather than 'lib'
16010 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16011 ;;
16012 esac
16013 dynamic_linker='Win32 ld.exe'
16014 ;;
16015
16016 *,cl*)
16017 # Native MSVC
16018 libname_spec='$name'
16019 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16020 library_names_spec='$libname.dll.lib'
16021
16022 case $build_os in
16023 mingw*)
16024 sys_lib_search_path_spec=
16025 lt_save_ifs=$IFS
16026 IFS=';'
16027 for lt_path in $LIB
16028 do
16029 IFS=$lt_save_ifs
16030 # Let DOS variable expansion print the short 8.3 style file name.
16031 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16032 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16033 done
16034 IFS=$lt_save_ifs
16035 # Convert to MSYS style.
16036 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16037 ;;
16038 cygwin*)
16039 # Convert to unix form, then to dos form, then back to unix form
16040 # but this time dos style (no spaces!) so that the unix form looks
16041 # like /cygdrive/c/PROGRA~1:/cygdr...
16042 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16043 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16044 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16045 ;;
16046 *)
16047 sys_lib_search_path_spec=$LIB
16048 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16049 # It is most probably a Windows format PATH.
16050 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16051 else
16052 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16053 fi
16054 # FIXME: find the short name or the path components, as spaces are
16055 # common. (e.g. "Program Files" -> "PROGRA~1")
16056 ;;
16057 esac
16058
16059 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16060 postinstall_cmds='base_file=`basename \$file`~
16061 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16062 dldir=$destdir/`dirname \$dlpath`~
16063 test -d \$dldir || mkdir -p \$dldir~
16064 $install_prog $dir/$dlname \$dldir/$dlname'
16065 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16066 dlpath=$dir/\$dldll~
16067 $RM \$dlpath'
16068 shlibpath_overrides_runpath=yes
16069 dynamic_linker='Win32 link.exe'
16070 ;;
16071
16072 *)
16073 # Assume MSVC wrapper
16074 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16075 dynamic_linker='Win32 ld.exe'
16076 ;;
16077 esac
16078 # FIXME: first we should search . and the directory the executable is in
16079 shlibpath_var=PATH
16080 ;;
16081
16082 darwin* | rhapsody*)
16083 dynamic_linker="$host_os dyld"
16084 version_type=darwin
16085 need_lib_prefix=no
16086 need_version=no
16087 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16088 soname_spec='$libname$release$major$shared_ext'
16089 shlibpath_overrides_runpath=yes
16090 shlibpath_var=DYLD_LIBRARY_PATH
16091 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16092
16093 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16094 ;;
16095
16096 dgux*)
16097 version_type=linux # correct to gnu/linux during the next big refactor
16098 need_lib_prefix=no
16099 need_version=no
16100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16101 soname_spec='$libname$release$shared_ext$major'
16102 shlibpath_var=LD_LIBRARY_PATH
16103 ;;
16104
16105 freebsd* | dragonfly*)
16106 # DragonFly does not have aout. When/if they implement a new
16107 # versioning mechanism, adjust this.
16108 if test -x /usr/bin/objformat; then
16109 objformat=`/usr/bin/objformat`
16110 else
16111 case $host_os in
16112 freebsd[23].*) objformat=aout ;;
16113 *) objformat=elf ;;
16114 esac
16115 fi
16116 version_type=freebsd-$objformat
16117 case $version_type in
16118 freebsd-elf*)
16119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16120 soname_spec='$libname$release$shared_ext$major'
16121 need_version=no
16122 need_lib_prefix=no
16123 ;;
16124 freebsd-*)
16125 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16126 need_version=yes
16127 ;;
16128 esac
16129 shlibpath_var=LD_LIBRARY_PATH
16130 case $host_os in
16131 freebsd2.*)
16132 shlibpath_overrides_runpath=yes
16133 ;;
16134 freebsd3.[01]* | freebsdelf3.[01]*)
16135 shlibpath_overrides_runpath=yes
16136 hardcode_into_libs=yes
16137 ;;
16138 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16139 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16140 shlibpath_overrides_runpath=no
16141 hardcode_into_libs=yes
16142 ;;
16143 *) # from 4.6 on, and DragonFly
16144 shlibpath_overrides_runpath=yes
16145 hardcode_into_libs=yes
16146 ;;
16147 esac
16148 ;;
16149
16150 haiku*)
16151 version_type=linux # correct to gnu/linux during the next big refactor
16152 need_lib_prefix=no
16153 need_version=no
16154 dynamic_linker="$host_os runtime_loader"
16155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16156 soname_spec='$libname$release$shared_ext$major'
16157 shlibpath_var=LIBRARY_PATH
16158 shlibpath_overrides_runpath=no
16159 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16160 hardcode_into_libs=yes
16161 ;;
16162
16163 hpux9* | hpux10* | hpux11*)
16164 # Give a soname corresponding to the major version so that dld.sl refuses to
16165 # link against other versions.
16166 version_type=sunos
16167 need_lib_prefix=no
16168 need_version=no
16169 case $host_cpu in
16170 ia64*)
16171 shrext_cmds='.so'
16172 hardcode_into_libs=yes
16173 dynamic_linker="$host_os dld.so"
16174 shlibpath_var=LD_LIBRARY_PATH
16175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16177 soname_spec='$libname$release$shared_ext$major'
16178 if test 32 = "$HPUX_IA64_MODE"; then
16179 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16180 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16181 else
16182 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16183 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16184 fi
16185 ;;
16186 hppa*64*)
16187 shrext_cmds='.sl'
16188 hardcode_into_libs=yes
16189 dynamic_linker="$host_os dld.sl"
16190 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16191 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16193 soname_spec='$libname$release$shared_ext$major'
16194 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16195 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16196 ;;
16197 *)
16198 shrext_cmds='.sl'
16199 dynamic_linker="$host_os dld.sl"
16200 shlibpath_var=SHLIB_PATH
16201 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16203 soname_spec='$libname$release$shared_ext$major'
16204 ;;
16205 esac
16206 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16207 postinstall_cmds='chmod 555 $lib'
16208 # or fails outright, so override atomically:
16209 install_override_mode=555
16210 ;;
16211
16212 interix[3-9]*)
16213 version_type=linux # correct to gnu/linux during the next big refactor
16214 need_lib_prefix=no
16215 need_version=no
16216 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16217 soname_spec='$libname$release$shared_ext$major'
16218 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16219 shlibpath_var=LD_LIBRARY_PATH
16220 shlibpath_overrides_runpath=no
16221 hardcode_into_libs=yes
16222 ;;
16223
16224 irix5* | irix6* | nonstopux*)
16225 case $host_os in
16226 nonstopux*) version_type=nonstopux ;;
16227 *)
16228 if test yes = "$lt_cv_prog_gnu_ld"; then
16229 version_type=linux # correct to gnu/linux during the next big refactor
16230 else
16231 version_type=irix
16232 fi ;;
16233 esac
16234 need_lib_prefix=no
16235 need_version=no
16236 soname_spec='$libname$release$shared_ext$major'
16237 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16238 case $host_os in
16239 irix5* | nonstopux*)
16240 libsuff= shlibsuff=
16241 ;;
16242 *)
16243 case $LD in # libtool.m4 will add one of these switches to LD
16244 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16245 libsuff= shlibsuff= libmagic=32-bit;;
16246 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16247 libsuff=32 shlibsuff=N32 libmagic=N32;;
16248 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16249 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16250 *) libsuff= shlibsuff= libmagic=never-match;;
16251 esac
16252 ;;
16253 esac
16254 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16255 shlibpath_overrides_runpath=no
16256 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16257 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16258 hardcode_into_libs=yes
16259 ;;
16260
16261 # No shared lib support for Linux oldld, aout, or coff.
16262 linux*oldld* | linux*aout* | linux*coff*)
16263 dynamic_linker=no
16264 ;;
16265
16266 linux*android*)
16267 version_type=none # Android doesn't support versioned libraries.
16268 need_lib_prefix=no
16269 need_version=no
16270 library_names_spec='$libname$release$shared_ext'
16271 soname_spec='$libname$release$shared_ext'
16272 finish_cmds=
16273 shlibpath_var=LD_LIBRARY_PATH
16274 shlibpath_overrides_runpath=yes
16275
16276 # This implies no fast_install, which is unacceptable.
16277 # Some rework will be needed to allow for fast_install
16278 # before this can be enabled.
16279 hardcode_into_libs=yes
16280
16281 dynamic_linker='Android linker'
16282 # Don't embed -rpath directories since the linker doesn't support them.
16283 hardcode_libdir_flag_spec_CXX='-L$libdir'
16284 ;;
16285
16286 # This must be glibc/ELF.
16287 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16288 version_type=linux # correct to gnu/linux during the next big refactor
16289 need_lib_prefix=no
16290 need_version=no
16291 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16292 soname_spec='$libname$release$shared_ext$major'
16293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16294 shlibpath_var=LD_LIBRARY_PATH
16295 shlibpath_overrides_runpath=no
16296
16297 # Some binutils ld are patched to set DT_RUNPATH
16298 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16299 $as_echo_n "(cached) " >&6
16300 else
16301 lt_cv_shlibpath_overrides_runpath=no
16302 save_LDFLAGS=$LDFLAGS
16303 save_libdir=$libdir
16304 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16305 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16307 /* end confdefs.h. */
16308
16309 int
16310 main ()
16311 {
16312
16313 ;
16314 return 0;
16315 }
16316 _ACEOF
16317 if ac_fn_cxx_try_link "$LINENO"; then :
16318 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16319 lt_cv_shlibpath_overrides_runpath=yes
16320 fi
16321 fi
16322 rm -f core conftest.err conftest.$ac_objext \
16323 conftest$ac_exeext conftest.$ac_ext
16324 LDFLAGS=$save_LDFLAGS
16325 libdir=$save_libdir
16326
16327 fi
16328
16329 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16330
16331 # This implies no fast_install, which is unacceptable.
16332 # Some rework will be needed to allow for fast_install
16333 # before this can be enabled.
16334 hardcode_into_libs=yes
16335
16336 # Add ABI-specific directories to the system library path.
16337 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16338
16339 # Ideally, we could use ldconfig to report *all* directores which are
16340 # searched for libraries, however this is still not possible. Aside from not
16341 # being certain /sbin/ldconfig is available, command
16342 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16343 # even though it is searched at run-time. Try to do the best guess by
16344 # appending ld.so.conf contents (and includes) to the search path.
16345 if test -f /etc/ld.so.conf; then
16346 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' ' '`
16347 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16348 fi
16349
16350 # We used to test for /lib/ld.so.1 and disable shared libraries on
16351 # powerpc, because MkLinux only supported shared libraries with the
16352 # GNU dynamic linker. Since this was broken with cross compilers,
16353 # most powerpc-linux boxes support dynamic linking these days and
16354 # people can always --disable-shared, the test was removed, and we
16355 # assume the GNU/Linux dynamic linker is in use.
16356 dynamic_linker='GNU/Linux ld.so'
16357 ;;
16358
16359 netbsd*)
16360 version_type=sunos
16361 need_lib_prefix=no
16362 need_version=no
16363 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16364 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16366 dynamic_linker='NetBSD (a.out) ld.so'
16367 else
16368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16369 soname_spec='$libname$release$shared_ext$major'
16370 dynamic_linker='NetBSD ld.elf_so'
16371 fi
16372 shlibpath_var=LD_LIBRARY_PATH
16373 shlibpath_overrides_runpath=yes
16374 hardcode_into_libs=yes
16375 ;;
16376
16377 newsos6)
16378 version_type=linux # correct to gnu/linux during the next big refactor
16379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16380 shlibpath_var=LD_LIBRARY_PATH
16381 shlibpath_overrides_runpath=yes
16382 ;;
16383
16384 *nto* | *qnx*)
16385 version_type=qnx
16386 need_lib_prefix=no
16387 need_version=no
16388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16389 soname_spec='$libname$release$shared_ext$major'
16390 shlibpath_var=LD_LIBRARY_PATH
16391 shlibpath_overrides_runpath=no
16392 hardcode_into_libs=yes
16393 dynamic_linker='ldqnx.so'
16394 ;;
16395
16396 openbsd* | bitrig*)
16397 version_type=sunos
16398 sys_lib_dlsearch_path_spec=/usr/lib
16399 need_lib_prefix=no
16400 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16401 need_version=no
16402 else
16403 need_version=yes
16404 fi
16405 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16407 shlibpath_var=LD_LIBRARY_PATH
16408 shlibpath_overrides_runpath=yes
16409 ;;
16410
16411 os2*)
16412 libname_spec='$name'
16413 version_type=windows
16414 shrext_cmds=.dll
16415 need_version=no
16416 need_lib_prefix=no
16417 # OS/2 can only load a DLL with a base name of 8 characters or less.
16418 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16419 v=$($ECHO $release$versuffix | tr -d .-);
16420 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16421 $ECHO $n$v`$shared_ext'
16422 library_names_spec='${libname}_dll.$libext'
16423 dynamic_linker='OS/2 ld.exe'
16424 shlibpath_var=BEGINLIBPATH
16425 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16426 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16427 postinstall_cmds='base_file=`basename \$file`~
16428 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16429 dldir=$destdir/`dirname \$dlpath`~
16430 test -d \$dldir || mkdir -p \$dldir~
16431 $install_prog $dir/$dlname \$dldir/$dlname~
16432 chmod a+x \$dldir/$dlname~
16433 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16434 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16435 fi'
16436 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16437 dlpath=$dir/\$dldll~
16438 $RM \$dlpath'
16439 ;;
16440
16441 osf3* | osf4* | osf5*)
16442 version_type=osf
16443 need_lib_prefix=no
16444 need_version=no
16445 soname_spec='$libname$release$shared_ext$major'
16446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16447 shlibpath_var=LD_LIBRARY_PATH
16448 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16449 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16450 ;;
16451
16452 rdos*)
16453 dynamic_linker=no
16454 ;;
16455
16456 solaris*)
16457 version_type=linux # correct to gnu/linux during the next big refactor
16458 need_lib_prefix=no
16459 need_version=no
16460 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16461 soname_spec='$libname$release$shared_ext$major'
16462 shlibpath_var=LD_LIBRARY_PATH
16463 shlibpath_overrides_runpath=yes
16464 hardcode_into_libs=yes
16465 # ldd complains unless libraries are executable
16466 postinstall_cmds='chmod +x $lib'
16467 ;;
16468
16469 sunos4*)
16470 version_type=sunos
16471 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16472 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16473 shlibpath_var=LD_LIBRARY_PATH
16474 shlibpath_overrides_runpath=yes
16475 if test yes = "$with_gnu_ld"; then
16476 need_lib_prefix=no
16477 fi
16478 need_version=yes
16479 ;;
16480
16481 sysv4 | sysv4.3*)
16482 version_type=linux # correct to gnu/linux during the next big refactor
16483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16484 soname_spec='$libname$release$shared_ext$major'
16485 shlibpath_var=LD_LIBRARY_PATH
16486 case $host_vendor in
16487 sni)
16488 shlibpath_overrides_runpath=no
16489 need_lib_prefix=no
16490 runpath_var=LD_RUN_PATH
16491 ;;
16492 siemens)
16493 need_lib_prefix=no
16494 ;;
16495 motorola)
16496 need_lib_prefix=no
16497 need_version=no
16498 shlibpath_overrides_runpath=no
16499 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16500 ;;
16501 esac
16502 ;;
16503
16504 sysv4*MP*)
16505 if test -d /usr/nec; then
16506 version_type=linux # correct to gnu/linux during the next big refactor
16507 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16508 soname_spec='$libname$shared_ext.$major'
16509 shlibpath_var=LD_LIBRARY_PATH
16510 fi
16511 ;;
16512
16513 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16514 version_type=sco
16515 need_lib_prefix=no
16516 need_version=no
16517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16518 soname_spec='$libname$release$shared_ext$major'
16519 shlibpath_var=LD_LIBRARY_PATH
16520 shlibpath_overrides_runpath=yes
16521 hardcode_into_libs=yes
16522 if test yes = "$with_gnu_ld"; then
16523 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16524 else
16525 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16526 case $host_os in
16527 sco3.2v5*)
16528 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16529 ;;
16530 esac
16531 fi
16532 sys_lib_dlsearch_path_spec='/usr/lib'
16533 ;;
16534
16535 tpf*)
16536 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16537 version_type=linux # correct to gnu/linux during the next big refactor
16538 need_lib_prefix=no
16539 need_version=no
16540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16541 shlibpath_var=LD_LIBRARY_PATH
16542 shlibpath_overrides_runpath=no
16543 hardcode_into_libs=yes
16544 ;;
16545
16546 uts4*)
16547 version_type=linux # correct to gnu/linux during the next big refactor
16548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16549 soname_spec='$libname$release$shared_ext$major'
16550 shlibpath_var=LD_LIBRARY_PATH
16551 ;;
16552
16553 *)
16554 dynamic_linker=no
16555 ;;
16556 esac
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16558 $as_echo "$dynamic_linker" >&6; }
16559 test no = "$dynamic_linker" && can_build_shared=no
16560
16561 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16562 if test yes = "$GCC"; then
16563 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16564 fi
16565
16566 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16567 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16568 fi
16569
16570 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16571 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16572 fi
16573
16574 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16575 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16576
16577 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16578 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16579
16580 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16581 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16623 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16624 hardcode_action_CXX=
16625 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16626 test -n "$runpath_var_CXX" ||
16627 test yes = "$hardcode_automatic_CXX"; then
16628
16629 # We can hardcode non-existent directories.
16630 if test no != "$hardcode_direct_CXX" &&
16631 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16632 # have to relink, otherwise we might link with an installed library
16633 # when we should be linking with a yet-to-be-installed one
16634 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16635 test no != "$hardcode_minus_L_CXX"; then
16636 # Linking always hardcodes the temporary library directory.
16637 hardcode_action_CXX=relink
16638 else
16639 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16640 hardcode_action_CXX=immediate
16641 fi
16642 else
16643 # We cannot hardcode anything, or else we can only hardcode existing
16644 # directories.
16645 hardcode_action_CXX=unsupported
16646 fi
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16648 $as_echo "$hardcode_action_CXX" >&6; }
16649
16650 if test relink = "$hardcode_action_CXX" ||
16651 test yes = "$inherit_rpath_CXX"; then
16652 # Fast installation is not supported
16653 enable_fast_install=no
16654 elif test yes = "$shlibpath_overrides_runpath" ||
16655 test no = "$enable_shared"; then
16656 # Fast installation is not necessary
16657 enable_fast_install=needless
16658 fi
16659
16660
16661
16662
16663
16664
16665
16666 fi # test -n "$compiler"
16667
16668 CC=$lt_save_CC
16669 CFLAGS=$lt_save_CFLAGS
16670 LDCXX=$LD
16671 LD=$lt_save_LD
16672 GCC=$lt_save_GCC
16673 with_gnu_ld=$lt_save_with_gnu_ld
16674 lt_cv_path_LDCXX=$lt_cv_path_LD
16675 lt_cv_path_LD=$lt_save_path_LD
16676 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16677 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16678 fi # test yes != "$_lt_caught_CXX_error"
16679
16680 ac_ext=c
16681 ac_cpp='$CPP $CPPFLAGS'
16682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700 ac_config_commands="$ac_config_commands libtool"
16701
16702
16703
16704
16705 # Only expand once:
16706
16707
16708
16709
16710 saveLIBS="$LIBS"
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -ldb" >&5
16712 $as_echo_n "checking for dbopen in -ldb... " >&6; }
16713 if ${ac_cv_lib_db_dbopen+:} false; then :
16714 $as_echo_n "(cached) " >&6
16715 else
16716 ac_check_lib_save_LIBS=$LIBS
16717 LIBS="-ldb $LIBS"
16718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16719 /* end confdefs.h. */
16720
16721 /* Override any GCC internal prototype to avoid an error.
16722 Use char because int might match the return type of a GCC
16723 builtin and then its argument prototype would still apply. */
16724 #ifdef __cplusplus
16725 extern "C"
16726 #endif
16727 char dbopen ();
16728 int
16729 main ()
16730 {
16731 return dbopen ();
16732 ;
16733 return 0;
16734 }
16735 _ACEOF
16736 if ac_fn_c_try_link "$LINENO"; then :
16737 ac_cv_lib_db_dbopen=yes
16738 else
16739 ac_cv_lib_db_dbopen=no
16740 fi
16741 rm -f core conftest.err conftest.$ac_objext \
16742 conftest$ac_exeext conftest.$ac_ext
16743 LIBS=$ac_check_lib_save_LIBS
16744 fi
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_dbopen" >&5
16746 $as_echo "$ac_cv_lib_db_dbopen" >&6; }
16747 if test "x$ac_cv_lib_db_dbopen" = xyes; then :
16748 LIBDB=-ldb ; LIBS="-ldb $LIBS"
16749 else
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -ldb" >&5
16751 $as_echo_n "checking for db_open in -ldb... " >&6; }
16752 if ${ac_cv_lib_db_db_open+:} false; then :
16753 $as_echo_n "(cached) " >&6
16754 else
16755 ac_check_lib_save_LIBS=$LIBS
16756 LIBS="-ldb $LIBS"
16757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16758 /* end confdefs.h. */
16759
16760 /* Override any GCC internal prototype to avoid an error.
16761 Use char because int might match the return type of a GCC
16762 builtin and then its argument prototype would still apply. */
16763 #ifdef __cplusplus
16764 extern "C"
16765 #endif
16766 char db_open ();
16767 int
16768 main ()
16769 {
16770 return db_open ();
16771 ;
16772 return 0;
16773 }
16774 _ACEOF
16775 if ac_fn_c_try_link "$LINENO"; then :
16776 ac_cv_lib_db_db_open=yes
16777 else
16778 ac_cv_lib_db_db_open=no
16779 fi
16780 rm -f core conftest.err conftest.$ac_objext \
16781 conftest$ac_exeext conftest.$ac_ext
16782 LIBS=$ac_check_lib_save_LIBS
16783 fi
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_open" >&5
16785 $as_echo "$ac_cv_lib_db_db_open" >&6; }
16786 if test "x$ac_cv_lib_db_db_open" = xyes; then :
16787 LIBDB=-ldb ; LIBS="-ldb $LIBS"
16788 else
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb" >&5
16790 $as_echo_n "checking for db_env_create in -ldb... " >&6; }
16791 if ${ac_cv_lib_db_db_env_create+:} false; then :
16792 $as_echo_n "(cached) " >&6
16793 else
16794 ac_check_lib_save_LIBS=$LIBS
16795 LIBS="-ldb $LIBS"
16796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16797 /* end confdefs.h. */
16798
16799 /* Override any GCC internal prototype to avoid an error.
16800 Use char because int might match the return type of a GCC
16801 builtin and then its argument prototype would still apply. */
16802 #ifdef __cplusplus
16803 extern "C"
16804 #endif
16805 char db_env_create ();
16806 int
16807 main ()
16808 {
16809 return db_env_create ();
16810 ;
16811 return 0;
16812 }
16813 _ACEOF
16814 if ac_fn_c_try_link "$LINENO"; then :
16815 ac_cv_lib_db_db_env_create=yes
16816 else
16817 ac_cv_lib_db_db_env_create=no
16818 fi
16819 rm -f core conftest.err conftest.$ac_objext \
16820 conftest$ac_exeext conftest.$ac_ext
16821 LIBS=$ac_check_lib_save_LIBS
16822 fi
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_env_create" >&5
16824 $as_echo "$ac_cv_lib_db_db_env_create" >&6; }
16825 if test "x$ac_cv_lib_db_db_env_create" = xyes; then :
16826 LIBDB=-ldb; LIBS="-ldb $LIBS"
16827 fi
16828
16829
16830 fi
16831
16832 fi
16833
16834
16835 FOUND_DB=0
16836 ac_fn_c_check_func "$LINENO" "dbopen" "ac_cv_func_dbopen"
16837 if test "x$ac_cv_func_dbopen" = xyes; then :
16838 FOUND_DB=1
16839 fi
16840
16841 ac_fn_c_check_func "$LINENO" "db_open" "ac_cv_func_db_open"
16842 if test "x$ac_cv_func_db_open" = xyes; then :
16843 FOUND_DB=1
16844 fi
16845
16846 ac_fn_c_check_func "$LINENO" "db_env_create" "ac_cv_func_db_env_create"
16847 if test "x$ac_cv_func_db_env_create" = xyes; then :
16848 FOUND_DB=1
16849 fi
16850
16851
16852 LIBS="$saveLIBS"
16853
16854
16855
16856 if test "$FOUND_DB" != 0; then
16857 FOUND_DB_TRUE=
16858 FOUND_DB_FALSE='#'
16859 else
16860 FOUND_DB_TRUE='#'
16861 FOUND_DB_FALSE=
16862 fi
16863
16864
16865
16866 for ac_header in limits.h fcntl.h unistd.h
16867 do :
16868 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16869 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16870 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16871 cat >>confdefs.h <<_ACEOF
16872 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16873 _ACEOF
16874
16875 fi
16876
16877 done
16878
16879
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16881 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16882 if ${ac_cv_c_const+:} false; then :
16883 $as_echo_n "(cached) " >&6
16884 else
16885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16886 /* end confdefs.h. */
16887
16888 int
16889 main ()
16890 {
16891
16892 #ifndef __cplusplus
16893 /* Ultrix mips cc rejects this sort of thing. */
16894 typedef int charset[2];
16895 const charset cs = { 0, 0 };
16896 /* SunOS 4.1.1 cc rejects this. */
16897 char const *const *pcpcc;
16898 char **ppc;
16899 /* NEC SVR4.0.2 mips cc rejects this. */
16900 struct point {int x, y;};
16901 static struct point const zero = {0,0};
16902 /* AIX XL C 1.02.0.0 rejects this.
16903 It does not let you subtract one const X* pointer from another in
16904 an arm of an if-expression whose if-part is not a constant
16905 expression */
16906 const char *g = "string";
16907 pcpcc = &g + (g ? g-g : 0);
16908 /* HPUX 7.0 cc rejects these. */
16909 ++pcpcc;
16910 ppc = (char**) pcpcc;
16911 pcpcc = (char const *const *) ppc;
16912 { /* SCO 3.2v4 cc rejects this sort of thing. */
16913 char tx;
16914 char *t = &tx;
16915 char const *s = 0 ? (char *) 0 : (char const *) 0;
16916
16917 *t++ = 0;
16918 if (s) return 0;
16919 }
16920 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16921 int x[] = {25, 17};
16922 const int *foo = &x[0];
16923 ++foo;
16924 }
16925 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16926 typedef const int *iptr;
16927 iptr p = 0;
16928 ++p;
16929 }
16930 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16931 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16932 struct s { int j; const int *ap[3]; } bx;
16933 struct s *b = &bx; b->j = 5;
16934 }
16935 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16936 const int foo = 10;
16937 if (!foo) return 0;
16938 }
16939 return !cs[0] && !zero.x;
16940 #endif
16941
16942 ;
16943 return 0;
16944 }
16945 _ACEOF
16946 if ac_fn_c_try_compile "$LINENO"; then :
16947 ac_cv_c_const=yes
16948 else
16949 ac_cv_c_const=no
16950 fi
16951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16952 fi
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16954 $as_echo "$ac_cv_c_const" >&6; }
16955 if test $ac_cv_c_const = no; then
16956
16957 $as_echo "#define const /**/" >>confdefs.h
16958
16959 fi
16960
16961 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16962 if test "x$ac_cv_type_size_t" = xyes; then :
16963
16964 else
16965
16966 cat >>confdefs.h <<_ACEOF
16967 #define size_t unsigned int
16968 _ACEOF
16969
16970 fi
16971
16972 # Check whether --enable-largefile was given.
16973 if test "${enable_largefile+set}" = set; then :
16974 enableval=$enable_largefile;
16975 fi
16976
16977 if test "$enable_largefile" != no; then
16978
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16980 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16981 if ${ac_cv_sys_largefile_CC+:} false; then :
16982 $as_echo_n "(cached) " >&6
16983 else
16984 ac_cv_sys_largefile_CC=no
16985 if test "$GCC" != yes; then
16986 ac_save_CC=$CC
16987 while :; do
16988 # IRIX 6.2 and later do not support large files by default,
16989 # so use the C compiler's -n32 option if that helps.
16990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16991 /* end confdefs.h. */
16992 #include <sys/types.h>
16993 /* Check that off_t can represent 2**63 - 1 correctly.
16994 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16995 since some C++ compilers masquerading as C compilers
16996 incorrectly reject 9223372036854775807. */
16997 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16998 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16999 && LARGE_OFF_T % 2147483647 == 1)
17000 ? 1 : -1];
17001 int
17002 main ()
17003 {
17004
17005 ;
17006 return 0;
17007 }
17008 _ACEOF
17009 if ac_fn_c_try_compile "$LINENO"; then :
17010 break
17011 fi
17012 rm -f core conftest.err conftest.$ac_objext
17013 CC="$CC -n32"
17014 if ac_fn_c_try_compile "$LINENO"; then :
17015 ac_cv_sys_largefile_CC=' -n32'; break
17016 fi
17017 rm -f core conftest.err conftest.$ac_objext
17018 break
17019 done
17020 CC=$ac_save_CC
17021 rm -f conftest.$ac_ext
17022 fi
17023 fi
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17025 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17026 if test "$ac_cv_sys_largefile_CC" != no; then
17027 CC=$CC$ac_cv_sys_largefile_CC
17028 fi
17029
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17031 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17032 if ${ac_cv_sys_file_offset_bits+:} false; then :
17033 $as_echo_n "(cached) " >&6
17034 else
17035 while :; do
17036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17037 /* end confdefs.h. */
17038 #include <sys/types.h>
17039 /* Check that off_t can represent 2**63 - 1 correctly.
17040 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17041 since some C++ compilers masquerading as C compilers
17042 incorrectly reject 9223372036854775807. */
17043 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17044 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17045 && LARGE_OFF_T % 2147483647 == 1)
17046 ? 1 : -1];
17047 int
17048 main ()
17049 {
17050
17051 ;
17052 return 0;
17053 }
17054 _ACEOF
17055 if ac_fn_c_try_compile "$LINENO"; then :
17056 ac_cv_sys_file_offset_bits=no; break
17057 fi
17058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17060 /* end confdefs.h. */
17061 #define _FILE_OFFSET_BITS 64
17062 #include <sys/types.h>
17063 /* Check that off_t can represent 2**63 - 1 correctly.
17064 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17065 since some C++ compilers masquerading as C compilers
17066 incorrectly reject 9223372036854775807. */
17067 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17068 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17069 && LARGE_OFF_T % 2147483647 == 1)
17070 ? 1 : -1];
17071 int
17072 main ()
17073 {
17074
17075 ;
17076 return 0;
17077 }
17078 _ACEOF
17079 if ac_fn_c_try_compile "$LINENO"; then :
17080 ac_cv_sys_file_offset_bits=64; break
17081 fi
17082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17083 ac_cv_sys_file_offset_bits=unknown
17084 break
17085 done
17086 fi
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17088 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17089 case $ac_cv_sys_file_offset_bits in #(
17090 no | unknown) ;;
17091 *)
17092 cat >>confdefs.h <<_ACEOF
17093 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17094 _ACEOF
17095 ;;
17096 esac
17097 rm -rf conftest*
17098 if test $ac_cv_sys_file_offset_bits = unknown; then
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17100 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17101 if ${ac_cv_sys_large_files+:} false; then :
17102 $as_echo_n "(cached) " >&6
17103 else
17104 while :; do
17105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17106 /* end confdefs.h. */
17107 #include <sys/types.h>
17108 /* Check that off_t can represent 2**63 - 1 correctly.
17109 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17110 since some C++ compilers masquerading as C compilers
17111 incorrectly reject 9223372036854775807. */
17112 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17113 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17114 && LARGE_OFF_T % 2147483647 == 1)
17115 ? 1 : -1];
17116 int
17117 main ()
17118 {
17119
17120 ;
17121 return 0;
17122 }
17123 _ACEOF
17124 if ac_fn_c_try_compile "$LINENO"; then :
17125 ac_cv_sys_large_files=no; break
17126 fi
17127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129 /* end confdefs.h. */
17130 #define _LARGE_FILES 1
17131 #include <sys/types.h>
17132 /* Check that off_t can represent 2**63 - 1 correctly.
17133 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17134 since some C++ compilers masquerading as C compilers
17135 incorrectly reject 9223372036854775807. */
17136 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17137 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17138 && LARGE_OFF_T % 2147483647 == 1)
17139 ? 1 : -1];
17140 int
17141 main ()
17142 {
17143
17144 ;
17145 return 0;
17146 }
17147 _ACEOF
17148 if ac_fn_c_try_compile "$LINENO"; then :
17149 ac_cv_sys_large_files=1; break
17150 fi
17151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17152 ac_cv_sys_large_files=unknown
17153 break
17154 done
17155 fi
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17157 $as_echo "$ac_cv_sys_large_files" >&6; }
17158 case $ac_cv_sys_large_files in #(
17159 no | unknown) ;;
17160 *)
17161 cat >>confdefs.h <<_ACEOF
17162 #define _LARGE_FILES $ac_cv_sys_large_files
17163 _ACEOF
17164 ;;
17165 esac
17166 rm -rf conftest*
17167 fi
17168
17169
17170 fi
17171
17172
17173 ac_ext=cpp
17174 ac_cpp='$CXXCPP $CPPFLAGS'
17175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17178
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler needs -fhandle-exceptions" >&5
17180 $as_echo_n "checking if the C++ compiler needs -fhandle-exceptions... " >&6; }
17181 if ${ac_cv_need_handlexceptions+:} false; then :
17182 $as_echo_n "(cached) " >&6
17183 else
17184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17185 /* end confdefs.h. */
17186
17187 int
17188 main ()
17189 {
17190
17191 throw;
17192
17193 ;
17194 return 0;
17195 }
17196 _ACEOF
17197 if ac_fn_cxx_try_compile "$LINENO"; then :
17198 ac_cv_need_handlexceptions=no
17199 else
17200 ac_cv_need_handlexceptions=yes
17201 fi
17202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17203
17204 fi
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_need_handlexceptions" >&5
17206 $as_echo "$ac_cv_need_handlexceptions" >&6; }
17207
17208 if test "$ac_cv_need_handlexceptions" = "yes"
17209 then
17210 case "$CXXFLAGS" in
17211 *handle-exceptions*)
17212 ;;
17213 *)
17214 CXXFLAGS="-fhandle-exceptions $CXXFLAGS"
17215 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2//'`
17216 ;;
17217 esac
17218 fi
17219
17220 if test "$GCC" = "yes"
17221 then
17222 CFLAGS="-Wall $CFLAGS"
17223 fi
17224
17225 ac_config_files="$ac_config_files Makefile"
17226
17227 cat >confcache <<\_ACEOF
17228 # This file is a shell script that caches the results of configure
17229 # tests run on this system so they can be shared between configure
17230 # scripts and configure runs, see configure's option --config-cache.
17231 # It is not useful on other systems. If it contains results you don't
17232 # want to keep, you may remove or edit it.
17233 #
17234 # config.status only pays attention to the cache file if you give it
17235 # the --recheck option to rerun configure.
17236 #
17237 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17238 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17239 # following values.
17240
17241 _ACEOF
17242
17243 # The following way of writing the cache mishandles newlines in values,
17244 # but we know of no workaround that is simple, portable, and efficient.
17245 # So, we kill variables containing newlines.
17246 # Ultrix sh set writes to stderr and can't be redirected directly,
17247 # and sets the high bit in the cache file unless we assign to the vars.
17248 (
17249 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17250 eval ac_val=\$$ac_var
17251 case $ac_val in #(
17252 *${as_nl}*)
17253 case $ac_var in #(
17254 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17255 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17256 esac
17257 case $ac_var in #(
17258 _ | IFS | as_nl) ;; #(
17259 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17260 *) { eval $ac_var=; unset $ac_var;} ;;
17261 esac ;;
17262 esac
17263 done
17264
17265 (set) 2>&1 |
17266 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17267 *${as_nl}ac_space=\ *)
17268 # `set' does not quote correctly, so add quotes: double-quote
17269 # substitution turns \\\\ into \\, and sed turns \\ into \.
17270 sed -n \
17271 "s/'/'\\\\''/g;
17272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17273 ;; #(
17274 *)
17275 # `set' quotes correctly as required by POSIX, so do not add quotes.
17276 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17277 ;;
17278 esac |
17279 sort
17280 ) |
17281 sed '
17282 /^ac_cv_env_/b end
17283 t clear
17284 :clear
17285 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17286 t end
17287 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17288 :end' >>confcache
17289 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17290 if test -w "$cache_file"; then
17291 if test "x$cache_file" != "x/dev/null"; then
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17293 $as_echo "$as_me: updating cache $cache_file" >&6;}
17294 if test ! -f "$cache_file" || test -h "$cache_file"; then
17295 cat confcache >"$cache_file"
17296 else
17297 case $cache_file in #(
17298 */* | ?:*)
17299 mv -f confcache "$cache_file"$$ &&
17300 mv -f "$cache_file"$$ "$cache_file" ;; #(
17301 *)
17302 mv -f confcache "$cache_file" ;;
17303 esac
17304 fi
17305 fi
17306 else
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17308 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17309 fi
17310 fi
17311 rm -f confcache
17312
17313 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17314 # Let make expand exec_prefix.
17315 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17316
17317 DEFS=-DHAVE_CONFIG_H
17318
17319 ac_libobjs=
17320 ac_ltlibobjs=
17321 U=
17322 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17323 # 1. Remove the extension, and $U if already installed.
17324 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17325 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17326 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17327 # will be set to the directory where LIBOBJS objects are built.
17328 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17329 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17330 done
17331 LIBOBJS=$ac_libobjs
17332
17333 LTLIBOBJS=$ac_ltlibobjs
17334
17335
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17337 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17338 if test -n "$am_sleep_pid"; then
17339 # Hide warnings about reused PIDs.
17340 wait $am_sleep_pid 2>/dev/null
17341 fi
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17343 $as_echo "done" >&6; }
17344 if test -n "$EXEEXT"; then
17345 am__EXEEXT_TRUE=
17346 am__EXEEXT_FALSE='#'
17347 else
17348 am__EXEEXT_TRUE='#'
17349 am__EXEEXT_FALSE=
17350 fi
17351
17352 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17353 as_fn_error $? "conditional \"AMDEP\" was never defined.
17354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17355 fi
17356 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17357 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17359 fi
17360 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17361 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17363 fi
17364 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17365 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17367 fi
17368 if test -z "${FOUND_DB_TRUE}" && test -z "${FOUND_DB_FALSE}"; then
17369 as_fn_error $? "conditional \"FOUND_DB\" was never defined.
17370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17371 fi
17372
17373 : "${CONFIG_STATUS=./config.status}"
17374 ac_write_fail=0
17375 ac_clean_files_save=$ac_clean_files
17376 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17378 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17379 as_write_fail=0
17380 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17381 #! $SHELL
17382 # Generated by $as_me.
17383 # Run this file to recreate the current configuration.
17384 # Compiler output produced by configure, useful for debugging
17385 # configure, is in config.log if it exists.
17386
17387 debug=false
17388 ac_cs_recheck=false
17389 ac_cs_silent=false
17390
17391 SHELL=\${CONFIG_SHELL-$SHELL}
17392 export SHELL
17393 _ASEOF
17394 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17395 ## -------------------- ##
17396 ## M4sh Initialization. ##
17397 ## -------------------- ##
17398
17399 # Be more Bourne compatible
17400 DUALCASE=1; export DUALCASE # for MKS sh
17401 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17402 emulate sh
17403 NULLCMD=:
17404 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17405 # is contrary to our usage. Disable this feature.
17406 alias -g '${1+"$@"}'='"$@"'
17407 setopt NO_GLOB_SUBST
17408 else
17409 case `(set -o) 2>/dev/null` in #(
17410 *posix*) :
17411 set -o posix ;; #(
17412 *) :
17413 ;;
17414 esac
17415 fi
17416
17417
17418 as_nl='
17419 '
17420 export as_nl
17421 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17422 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17423 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17424 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17425 # Prefer a ksh shell builtin over an external printf program on Solaris,
17426 # but without wasting forks for bash or zsh.
17427 if test -z "$BASH_VERSION$ZSH_VERSION" \
17428 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17429 as_echo='print -r --'
17430 as_echo_n='print -rn --'
17431 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17432 as_echo='printf %s\n'
17433 as_echo_n='printf %s'
17434 else
17435 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17436 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17437 as_echo_n='/usr/ucb/echo -n'
17438 else
17439 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17440 as_echo_n_body='eval
17441 arg=$1;
17442 case $arg in #(
17443 *"$as_nl"*)
17444 expr "X$arg" : "X\\(.*\\)$as_nl";
17445 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17446 esac;
17447 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17448 '
17449 export as_echo_n_body
17450 as_echo_n='sh -c $as_echo_n_body as_echo'
17451 fi
17452 export as_echo_body
17453 as_echo='sh -c $as_echo_body as_echo'
17454 fi
17455
17456 # The user is always right.
17457 if test "${PATH_SEPARATOR+set}" != set; then
17458 PATH_SEPARATOR=:
17459 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17460 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17461 PATH_SEPARATOR=';'
17462 }
17463 fi
17464
17465
17466 # IFS
17467 # We need space, tab and new line, in precisely that order. Quoting is
17468 # there to prevent editors from complaining about space-tab.
17469 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17470 # splitting by setting IFS to empty value.)
17471 IFS=" "" $as_nl"
17472
17473 # Find who we are. Look in the path if we contain no directory separator.
17474 as_myself=
17475 case $0 in #((
17476 *[\\/]* ) as_myself=$0 ;;
17477 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17478 for as_dir in $PATH
17479 do
17480 IFS=$as_save_IFS
17481 test -z "$as_dir" && as_dir=.
17482 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17483 done
17484 IFS=$as_save_IFS
17485
17486 ;;
17487 esac
17488 # We did not find ourselves, most probably we were run as `sh COMMAND'
17489 # in which case we are not to be found in the path.
17490 if test "x$as_myself" = x; then
17491 as_myself=$0
17492 fi
17493 if test ! -f "$as_myself"; then
17494 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17495 exit 1
17496 fi
17497
17498 # Unset variables that we do not need and which cause bugs (e.g. in
17499 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17500 # suppresses any "Segmentation fault" message there. '((' could
17501 # trigger a bug in pdksh 5.2.14.
17502 for as_var in BASH_ENV ENV MAIL MAILPATH
17503 do eval test x\${$as_var+set} = xset \
17504 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17505 done
17506 PS1='$ '
17507 PS2='> '
17508 PS4='+ '
17509
17510 # NLS nuisances.
17511 LC_ALL=C
17512 export LC_ALL
17513 LANGUAGE=C
17514 export LANGUAGE
17515
17516 # CDPATH.
17517 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17518
17519
17520 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17521 # ----------------------------------------
17522 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17523 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17524 # script with STATUS, using 1 if that was 0.
17525 as_fn_error ()
17526 {
17527 as_status=$1; test $as_status -eq 0 && as_status=1
17528 if test "$4"; then
17529 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17530 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17531 fi
17532 $as_echo "$as_me: error: $2" >&2
17533 as_fn_exit $as_status
17534 } # as_fn_error
17535
17536
17537 # as_fn_set_status STATUS
17538 # -----------------------
17539 # Set $? to STATUS, without forking.
17540 as_fn_set_status ()
17541 {
17542 return $1
17543 } # as_fn_set_status
17544
17545 # as_fn_exit STATUS
17546 # -----------------
17547 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17548 as_fn_exit ()
17549 {
17550 set +e
17551 as_fn_set_status $1
17552 exit $1
17553 } # as_fn_exit
17554
17555 # as_fn_unset VAR
17556 # ---------------
17557 # Portably unset VAR.
17558 as_fn_unset ()
17559 {
17560 { eval $1=; unset $1;}
17561 }
17562 as_unset=as_fn_unset
17563 # as_fn_append VAR VALUE
17564 # ----------------------
17565 # Append the text in VALUE to the end of the definition contained in VAR. Take
17566 # advantage of any shell optimizations that allow amortized linear growth over
17567 # repeated appends, instead of the typical quadratic growth present in naive
17568 # implementations.
17569 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17570 eval 'as_fn_append ()
17571 {
17572 eval $1+=\$2
17573 }'
17574 else
17575 as_fn_append ()
17576 {
17577 eval $1=\$$1\$2
17578 }
17579 fi # as_fn_append
17580
17581 # as_fn_arith ARG...
17582 # ------------------
17583 # Perform arithmetic evaluation on the ARGs, and store the result in the
17584 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17585 # must be portable across $(()) and expr.
17586 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17587 eval 'as_fn_arith ()
17588 {
17589 as_val=$(( $* ))
17590 }'
17591 else
17592 as_fn_arith ()
17593 {
17594 as_val=`expr "$@" || test $? -eq 1`
17595 }
17596 fi # as_fn_arith
17597
17598
17599 if expr a : '\(a\)' >/dev/null 2>&1 &&
17600 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17601 as_expr=expr
17602 else
17603 as_expr=false
17604 fi
17605
17606 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17607 as_basename=basename
17608 else
17609 as_basename=false
17610 fi
17611
17612 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17613 as_dirname=dirname
17614 else
17615 as_dirname=false
17616 fi
17617
17618 as_me=`$as_basename -- "$0" ||
17619 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17620 X"$0" : 'X\(//\)$' \| \
17621 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17622 $as_echo X/"$0" |
17623 sed '/^.*\/\([^/][^/]*\)\/*$/{
17624 s//\1/
17625 q
17626 }
17627 /^X\/\(\/\/\)$/{
17628 s//\1/
17629 q
17630 }
17631 /^X\/\(\/\).*/{
17632 s//\1/
17633 q
17634 }
17635 s/.*/./; q'`
17636
17637 # Avoid depending upon Character Ranges.
17638 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17639 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17640 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17641 as_cr_digits='0123456789'
17642 as_cr_alnum=$as_cr_Letters$as_cr_digits
17643
17644 ECHO_C= ECHO_N= ECHO_T=
17645 case `echo -n x` in #(((((
17646 -n*)
17647 case `echo 'xy\c'` in
17648 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17649 xy) ECHO_C='\c';;
17650 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17651 ECHO_T=' ';;
17652 esac;;
17653 *)
17654 ECHO_N='-n';;
17655 esac
17656
17657 rm -f conf$$ conf$$.exe conf$$.file
17658 if test -d conf$$.dir; then
17659 rm -f conf$$.dir/conf$$.file
17660 else
17661 rm -f conf$$.dir
17662 mkdir conf$$.dir 2>/dev/null
17663 fi
17664 if (echo >conf$$.file) 2>/dev/null; then
17665 if ln -s conf$$.file conf$$ 2>/dev/null; then
17666 as_ln_s='ln -s'
17667 # ... but there are two gotchas:
17668 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17669 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17670 # In both cases, we have to default to `cp -pR'.
17671 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17672 as_ln_s='cp -pR'
17673 elif ln conf$$.file conf$$ 2>/dev/null; then
17674 as_ln_s=ln
17675 else
17676 as_ln_s='cp -pR'
17677 fi
17678 else
17679 as_ln_s='cp -pR'
17680 fi
17681 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17682 rmdir conf$$.dir 2>/dev/null
17683
17684
17685 # as_fn_mkdir_p
17686 # -------------
17687 # Create "$as_dir" as a directory, including parents if necessary.
17688 as_fn_mkdir_p ()
17689 {
17690
17691 case $as_dir in #(
17692 -*) as_dir=./$as_dir;;
17693 esac
17694 test -d "$as_dir" || eval $as_mkdir_p || {
17695 as_dirs=
17696 while :; do
17697 case $as_dir in #(
17698 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17699 *) as_qdir=$as_dir;;
17700 esac
17701 as_dirs="'$as_qdir' $as_dirs"
17702 as_dir=`$as_dirname -- "$as_dir" ||
17703 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17704 X"$as_dir" : 'X\(//\)[^/]' \| \
17705 X"$as_dir" : 'X\(//\)$' \| \
17706 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17707 $as_echo X"$as_dir" |
17708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17709 s//\1/
17710 q
17711 }
17712 /^X\(\/\/\)[^/].*/{
17713 s//\1/
17714 q
17715 }
17716 /^X\(\/\/\)$/{
17717 s//\1/
17718 q
17719 }
17720 /^X\(\/\).*/{
17721 s//\1/
17722 q
17723 }
17724 s/.*/./; q'`
17725 test -d "$as_dir" && break
17726 done
17727 test -z "$as_dirs" || eval "mkdir $as_dirs"
17728 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17729
17730
17731 } # as_fn_mkdir_p
17732 if mkdir -p . 2>/dev/null; then
17733 as_mkdir_p='mkdir -p "$as_dir"'
17734 else
17735 test -d ./-p && rmdir ./-p
17736 as_mkdir_p=false
17737 fi
17738
17739
17740 # as_fn_executable_p FILE
17741 # -----------------------
17742 # Test if FILE is an executable regular file.
17743 as_fn_executable_p ()
17744 {
17745 test -f "$1" && test -x "$1"
17746 } # as_fn_executable_p
17747 as_test_x='test -x'
17748 as_executable_p=as_fn_executable_p
17749
17750 # Sed expression to map a string onto a valid CPP name.
17751 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17752
17753 # Sed expression to map a string onto a valid variable name.
17754 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17755
17756
17757 exec 6>&1
17758 ## ----------------------------------- ##
17759 ## Main body of $CONFIG_STATUS script. ##
17760 ## ----------------------------------- ##
17761 _ASEOF
17762 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17763
17764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17765 # Save the log message, to keep $0 and so on meaningful, and to
17766 # report actual input values of CONFIG_FILES etc. instead of their
17767 # values after options handling.
17768 ac_log="
17769 This file was extended by bdbobj $as_me 0.10, which was
17770 generated by GNU Autoconf 2.69. Invocation command line was
17771
17772 CONFIG_FILES = $CONFIG_FILES
17773 CONFIG_HEADERS = $CONFIG_HEADERS
17774 CONFIG_LINKS = $CONFIG_LINKS
17775 CONFIG_COMMANDS = $CONFIG_COMMANDS
17776 $ $0 $@
17777
17778 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17779 "
17780
17781 _ACEOF
17782
17783 case $ac_config_files in *"
17784 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17785 esac
17786
17787 case $ac_config_headers in *"
17788 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17789 esac
17790
17791
17792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17793 # Files that config.status was made for.
17794 config_files="$ac_config_files"
17795 config_headers="$ac_config_headers"
17796 config_commands="$ac_config_commands"
17797
17798 _ACEOF
17799
17800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17801 ac_cs_usage="\
17802 \`$as_me' instantiates files and other configuration actions
17803 from templates according to the current configuration. Unless the files
17804 and actions are specified as TAGs, all are instantiated by default.
17805
17806 Usage: $0 [OPTION]... [TAG]...
17807
17808 -h, --help print this help, then exit
17809 -V, --version print version number and configuration settings, then exit
17810 --config print configuration, then exit
17811 -q, --quiet, --silent
17812 do not print progress messages
17813 -d, --debug don't remove temporary files
17814 --recheck update $as_me by reconfiguring in the same conditions
17815 --file=FILE[:TEMPLATE]
17816 instantiate the configuration file FILE
17817 --header=FILE[:TEMPLATE]
17818 instantiate the configuration header FILE
17819
17820 Configuration files:
17821 $config_files
17822
17823 Configuration headers:
17824 $config_headers
17825
17826 Configuration commands:
17827 $config_commands
17828
17829 Report bugs to <courier-users@lists.sourceforge.net>."
17830
17831 _ACEOF
17832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17833 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17834 ac_cs_version="\\
17835 bdbobj config.status 0.10
17836 configured by $0, generated by GNU Autoconf 2.69,
17837 with options \\"\$ac_cs_config\\"
17838
17839 Copyright (C) 2012 Free Software Foundation, Inc.
17840 This config.status script is free software; the Free Software Foundation
17841 gives unlimited permission to copy, distribute and modify it."
17842
17843 ac_pwd='$ac_pwd'
17844 srcdir='$srcdir'
17845 INSTALL='$INSTALL'
17846 MKDIR_P='$MKDIR_P'
17847 AWK='$AWK'
17848 test -n "\$AWK" || AWK=awk
17849 _ACEOF
17850
17851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17852 # The default lists apply if the user does not specify any file.
17853 ac_need_defaults=:
17854 while test $# != 0
17855 do
17856 case $1 in
17857 --*=?*)
17858 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17859 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17860 ac_shift=:
17861 ;;
17862 --*=)
17863 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17864 ac_optarg=
17865 ac_shift=:
17866 ;;
17867 *)
17868 ac_option=$1
17869 ac_optarg=$2
17870 ac_shift=shift
17871 ;;
17872 esac
17873
17874 case $ac_option in
17875 # Handling of the options.
17876 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17877 ac_cs_recheck=: ;;
17878 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17879 $as_echo "$ac_cs_version"; exit ;;
17880 --config | --confi | --conf | --con | --co | --c )
17881 $as_echo "$ac_cs_config"; exit ;;
17882 --debug | --debu | --deb | --de | --d | -d )
17883 debug=: ;;
17884 --file | --fil | --fi | --f )
17885 $ac_shift
17886 case $ac_optarg in
17887 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17888 '') as_fn_error $? "missing file argument" ;;
17889 esac
17890 as_fn_append CONFIG_FILES " '$ac_optarg'"
17891 ac_need_defaults=false;;
17892 --header | --heade | --head | --hea )
17893 $ac_shift
17894 case $ac_optarg in
17895 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17896 esac
17897 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17898 ac_need_defaults=false;;
17899 --he | --h)
17900 # Conflict between --help and --header
17901 as_fn_error $? "ambiguous option: \`$1'
17902 Try \`$0 --help' for more information.";;
17903 --help | --hel | -h )
17904 $as_echo "$ac_cs_usage"; exit ;;
17905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17906 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17907 ac_cs_silent=: ;;
17908
17909 # This is an error.
17910 -*) as_fn_error $? "unrecognized option: \`$1'
17911 Try \`$0 --help' for more information." ;;
17912
17913 *) as_fn_append ac_config_targets " $1"
17914 ac_need_defaults=false ;;
17915
17916 esac
17917 shift
17918 done
17919
17920 ac_configure_extra_args=
17921
17922 if $ac_cs_silent; then
17923 exec 6>/dev/null
17924 ac_configure_extra_args="$ac_configure_extra_args --silent"
17925 fi
17926
17927 _ACEOF
17928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17929 if \$ac_cs_recheck; then
17930 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17931 shift
17932 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17933 CONFIG_SHELL='$SHELL'
17934 export CONFIG_SHELL
17935 exec "\$@"
17936 fi
17937
17938 _ACEOF
17939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17940 exec 5>>config.log
17941 {
17942 echo
17943 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17944 ## Running $as_me. ##
17945 _ASBOX
17946 $as_echo "$ac_log"
17947 } >&5
17948
17949 _ACEOF
17950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17951 #
17952 # INIT-COMMANDS
17953 #
17954 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17955
17956
17957 # The HP-UX ksh and POSIX shell print the target directory to stdout
17958 # if CDPATH is set.
17959 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17960
17961 sed_quote_subst='$sed_quote_subst'
17962 double_quote_subst='$double_quote_subst'
17963 delay_variable_subst='$delay_variable_subst'
17964 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17965 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17966 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17967 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17968 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17969 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17970 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17971 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17972 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17973 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17974 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17975 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17976 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17977 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17978 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17979 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17980 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17981 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17982 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17983 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17984 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17985 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17986 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17987 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17988 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17989 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17990 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17991 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17992 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17993 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17994 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17995 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17996 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17997 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17998 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17999 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18000 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18001 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18002 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18003 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18004 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18005 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18006 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18007 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18008 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18009 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18010 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18011 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18012 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18013 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18014 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18015 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18016 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18017 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18018 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18019 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18020 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18021 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18022 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"`'
18023 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18024 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18025 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18026 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18027 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18028 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18029 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18030 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18031 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18032 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18033 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18034 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18035 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18036 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18037 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18038 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18039 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18040 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18041 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18042 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18043 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18044 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18045 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18046 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18047 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18048 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18049 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18050 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18051 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18052 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18053 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18054 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18055 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18056 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18057 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18058 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18059 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18060 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18061 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18062 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18063 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18064 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18065 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18066 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18067 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18068 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18069 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18070 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18071 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18072 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18073 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18074 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18075 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18076 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18077 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18078 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18079 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18080 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18081 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18082 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18083 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18084 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18085 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18086 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18087 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18088 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18089 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18090 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18091 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18092 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18093 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18094 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18095 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18096 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18097 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18098 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18099 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18100 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18101 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18102 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18103 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18104 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18105 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18106 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18107 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18108 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18109 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18110 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18111 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18112 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18113 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18114 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18115 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18116 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18117 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18118 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18119 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18120 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18121 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18122 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18123 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18124 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18125 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18126 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18127 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18128 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18129 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18130 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18131 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18132 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18133 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18134 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18135 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18136 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18137 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18138 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18139 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18140 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18141 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18142 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18143 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18144 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18145 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18146 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18147 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18148 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18149 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18150 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18151 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18152 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18153
18154 LTCC='$LTCC'
18155 LTCFLAGS='$LTCFLAGS'
18156 compiler='$compiler_DEFAULT'
18157
18158 # A function that is used when there is no print builtin or printf.
18159 func_fallback_echo ()
18160 {
18161 eval 'cat <<_LTECHO_EOF
18162 \$1
18163 _LTECHO_EOF'
18164 }
18165
18166 # Quote evaled strings.
18167 for var in SHELL \
18168 ECHO \
18169 PATH_SEPARATOR \
18170 SED \
18171 GREP \
18172 EGREP \
18173 FGREP \
18174 LD \
18175 NM \
18176 LN_S \
18177 lt_SP2NL \
18178 lt_NL2SP \
18179 reload_flag \
18180 OBJDUMP \
18181 deplibs_check_method \
18182 file_magic_cmd \
18183 file_magic_glob \
18184 want_nocaseglob \
18185 DLLTOOL \
18186 sharedlib_from_linklib_cmd \
18187 AR \
18188 AR_FLAGS \
18189 archiver_list_spec \
18190 STRIP \
18191 RANLIB \
18192 CC \
18193 CFLAGS \
18194 compiler \
18195 lt_cv_sys_global_symbol_pipe \
18196 lt_cv_sys_global_symbol_to_cdecl \
18197 lt_cv_sys_global_symbol_to_import \
18198 lt_cv_sys_global_symbol_to_c_name_address \
18199 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18200 lt_cv_nm_interface \
18201 nm_file_list_spec \
18202 lt_cv_truncate_bin \
18203 lt_prog_compiler_no_builtin_flag \
18204 lt_prog_compiler_pic \
18205 lt_prog_compiler_wl \
18206 lt_prog_compiler_static \
18207 lt_cv_prog_compiler_c_o \
18208 need_locks \
18209 MANIFEST_TOOL \
18210 DSYMUTIL \
18211 NMEDIT \
18212 LIPO \
18213 OTOOL \
18214 OTOOL64 \
18215 shrext_cmds \
18216 export_dynamic_flag_spec \
18217 whole_archive_flag_spec \
18218 compiler_needs_object \
18219 with_gnu_ld \
18220 allow_undefined_flag \
18221 no_undefined_flag \
18222 hardcode_libdir_flag_spec \
18223 hardcode_libdir_separator \
18224 exclude_expsyms \
18225 include_expsyms \
18226 file_list_spec \
18227 variables_saved_for_relink \
18228 libname_spec \
18229 library_names_spec \
18230 soname_spec \
18231 install_override_mode \
18232 finish_eval \
18233 old_striplib \
18234 striplib \
18235 compiler_lib_search_dirs \
18236 predep_objects \
18237 postdep_objects \
18238 predeps \
18239 postdeps \
18240 compiler_lib_search_path \
18241 LD_CXX \
18242 reload_flag_CXX \
18243 compiler_CXX \
18244 lt_prog_compiler_no_builtin_flag_CXX \
18245 lt_prog_compiler_pic_CXX \
18246 lt_prog_compiler_wl_CXX \
18247 lt_prog_compiler_static_CXX \
18248 lt_cv_prog_compiler_c_o_CXX \
18249 export_dynamic_flag_spec_CXX \
18250 whole_archive_flag_spec_CXX \
18251 compiler_needs_object_CXX \
18252 with_gnu_ld_CXX \
18253 allow_undefined_flag_CXX \
18254 no_undefined_flag_CXX \
18255 hardcode_libdir_flag_spec_CXX \
18256 hardcode_libdir_separator_CXX \
18257 exclude_expsyms_CXX \
18258 include_expsyms_CXX \
18259 file_list_spec_CXX \
18260 compiler_lib_search_dirs_CXX \
18261 predep_objects_CXX \
18262 postdep_objects_CXX \
18263 predeps_CXX \
18264 postdeps_CXX \
18265 compiler_lib_search_path_CXX; do
18266 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18267 *[\\\\\\\`\\"\\\$]*)
18268 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18269 ;;
18270 *)
18271 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18272 ;;
18273 esac
18274 done
18275
18276 # Double-quote double-evaled strings.
18277 for var in reload_cmds \
18278 old_postinstall_cmds \
18279 old_postuninstall_cmds \
18280 old_archive_cmds \
18281 extract_expsyms_cmds \
18282 old_archive_from_new_cmds \
18283 old_archive_from_expsyms_cmds \
18284 archive_cmds \
18285 archive_expsym_cmds \
18286 module_cmds \
18287 module_expsym_cmds \
18288 export_symbols_cmds \
18289 prelink_cmds \
18290 postlink_cmds \
18291 postinstall_cmds \
18292 postuninstall_cmds \
18293 finish_cmds \
18294 sys_lib_search_path_spec \
18295 configure_time_dlsearch_path \
18296 configure_time_lt_sys_library_path \
18297 reload_cmds_CXX \
18298 old_archive_cmds_CXX \
18299 old_archive_from_new_cmds_CXX \
18300 old_archive_from_expsyms_cmds_CXX \
18301 archive_cmds_CXX \
18302 archive_expsym_cmds_CXX \
18303 module_cmds_CXX \
18304 module_expsym_cmds_CXX \
18305 export_symbols_cmds_CXX \
18306 prelink_cmds_CXX \
18307 postlink_cmds_CXX; do
18308 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18309 *[\\\\\\\`\\"\\\$]*)
18310 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18311 ;;
18312 *)
18313 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18314 ;;
18315 esac
18316 done
18317
18318 ac_aux_dir='$ac_aux_dir'
18319
18320 # See if we are running on zsh, and set the options that allow our
18321 # commands through without removal of \ escapes INIT.
18322 if test -n "\${ZSH_VERSION+set}"; then
18323 setopt NO_GLOB_SUBST
18324 fi
18325
18326
18327 PACKAGE='$PACKAGE'
18328 VERSION='$VERSION'
18329 RM='$RM'
18330 ofile='$ofile'
18331
18332
18333
18334
18335
18336
18337 _ACEOF
18338
18339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18340
18341 # Handling of arguments.
18342 for ac_config_target in $ac_config_targets
18343 do
18344 case $ac_config_target in
18345 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18346 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18347 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18348 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18349
18350 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18351 esac
18352 done
18353
18354
18355 # If the user did not use the arguments to specify the items to instantiate,
18356 # then the envvar interface is used. Set only those that are not.
18357 # We use the long form for the default assignment because of an extremely
18358 # bizarre bug on SunOS 4.1.3.
18359 if $ac_need_defaults; then
18360 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18361 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18362 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18363 fi
18364
18365 # Have a temporary directory for convenience. Make it in the build tree
18366 # simply because there is no reason against having it here, and in addition,
18367 # creating and moving files from /tmp can sometimes cause problems.
18368 # Hook for its removal unless debugging.
18369 # Note that there is a small window in which the directory will not be cleaned:
18370 # after its creation but before its name has been assigned to `$tmp'.
18371 $debug ||
18372 {
18373 tmp= ac_tmp=
18374 trap 'exit_status=$?
18375 : "${ac_tmp:=$tmp}"
18376 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18377 ' 0
18378 trap 'as_fn_exit 1' 1 2 13 15
18379 }
18380 # Create a (secure) tmp directory for tmp files.
18381
18382 {
18383 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18384 test -d "$tmp"
18385 } ||
18386 {
18387 tmp=./conf$$-$RANDOM
18388 (umask 077 && mkdir "$tmp")
18389 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18390 ac_tmp=$tmp
18391
18392 # Set up the scripts for CONFIG_FILES section.
18393 # No need to generate them if there are no CONFIG_FILES.
18394 # This happens for instance with `./config.status config.h'.
18395 if test -n "$CONFIG_FILES"; then
18396
18397
18398 ac_cr=`echo X | tr X '\015'`
18399 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18400 # But we know of no other shell where ac_cr would be empty at this
18401 # point, so we can use a bashism as a fallback.
18402 if test "x$ac_cr" = x; then
18403 eval ac_cr=\$\'\\r\'
18404 fi
18405 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18406 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18407 ac_cs_awk_cr='\\r'
18408 else
18409 ac_cs_awk_cr=$ac_cr
18410 fi
18411
18412 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18413 _ACEOF
18414
18415
18416 {
18417 echo "cat >conf$$subs.awk <<_ACEOF" &&
18418 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18419 echo "_ACEOF"
18420 } >conf$$subs.sh ||
18421 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18422 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18423 ac_delim='%!_!# '
18424 for ac_last_try in false false false false false :; do
18425 . ./conf$$subs.sh ||
18426 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18427
18428 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18429 if test $ac_delim_n = $ac_delim_num; then
18430 break
18431 elif $ac_last_try; then
18432 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18433 else
18434 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18435 fi
18436 done
18437 rm -f conf$$subs.sh
18438
18439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18440 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18441 _ACEOF
18442 sed -n '
18443 h
18444 s/^/S["/; s/!.*/"]=/
18445 p
18446 g
18447 s/^[^!]*!//
18448 :repl
18449 t repl
18450 s/'"$ac_delim"'$//
18451 t delim
18452 :nl
18453 h
18454 s/\(.\{148\}\)..*/\1/
18455 t more1
18456 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18457 p
18458 n
18459 b repl
18460 :more1
18461 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18462 p
18463 g
18464 s/.\{148\}//
18465 t nl
18466 :delim
18467 h
18468 s/\(.\{148\}\)..*/\1/
18469 t more2
18470 s/["\\]/\\&/g; s/^/"/; s/$/"/
18471 p
18472 b
18473 :more2
18474 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18475 p
18476 g
18477 s/.\{148\}//
18478 t delim
18479 ' <conf$$subs.awk | sed '
18480 /^[^""]/{
18481 N
18482 s/\n//
18483 }
18484 ' >>$CONFIG_STATUS || ac_write_fail=1
18485 rm -f conf$$subs.awk
18486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18487 _ACAWK
18488 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18489 for (key in S) S_is_set[key] = 1
18490 FS = "\a"
18491
18492 }
18493 {
18494 line = $ 0
18495 nfields = split(line, field, "@")
18496 substed = 0
18497 len = length(field[1])
18498 for (i = 2; i < nfields; i++) {
18499 key = field[i]
18500 keylen = length(key)
18501 if (S_is_set[key]) {
18502 value = S[key]
18503 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18504 len += length(value) + length(field[++i])
18505 substed = 1
18506 } else
18507 len += 1 + keylen
18508 }
18509
18510 print line
18511 }
18512
18513 _ACAWK
18514 _ACEOF
18515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18516 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18517 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18518 else
18519 cat
18520 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18521 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18522 _ACEOF
18523
18524 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18525 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18526 # trailing colons and then remove the whole line if VPATH becomes empty
18527 # (actually we leave an empty line to preserve line numbers).
18528 if test "x$srcdir" = x.; then
18529 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18530 h
18531 s///
18532 s/^/:/
18533 s/[ ]*$/:/
18534 s/:\$(srcdir):/:/g
18535 s/:\${srcdir}:/:/g
18536 s/:@srcdir@:/:/g
18537 s/^:*//
18538 s/:*$//
18539 x
18540 s/\(=[ ]*\).*/\1/
18541 G
18542 s/\n//
18543 s/^[^=]*=[ ]*$//
18544 }'
18545 fi
18546
18547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18548 fi # test -n "$CONFIG_FILES"
18549
18550 # Set up the scripts for CONFIG_HEADERS section.
18551 # No need to generate them if there are no CONFIG_HEADERS.
18552 # This happens for instance with `./config.status Makefile'.
18553 if test -n "$CONFIG_HEADERS"; then
18554 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18555 BEGIN {
18556 _ACEOF
18557
18558 # Transform confdefs.h into an awk script `defines.awk', embedded as
18559 # here-document in config.status, that substitutes the proper values into
18560 # config.h.in to produce config.h.
18561
18562 # Create a delimiter string that does not exist in confdefs.h, to ease
18563 # handling of long lines.
18564 ac_delim='%!_!# '
18565 for ac_last_try in false false :; do
18566 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18567 if test -z "$ac_tt"; then
18568 break
18569 elif $ac_last_try; then
18570 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18571 else
18572 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18573 fi
18574 done
18575
18576 # For the awk script, D is an array of macro values keyed by name,
18577 # likewise P contains macro parameters if any. Preserve backslash
18578 # newline sequences.
18579
18580 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18581 sed -n '
18582 s/.\{148\}/&'"$ac_delim"'/g
18583 t rset
18584 :rset
18585 s/^[ ]*#[ ]*define[ ][ ]*/ /
18586 t def
18587 d
18588 :def
18589 s/\\$//
18590 t bsnl
18591 s/["\\]/\\&/g
18592 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18593 D["\1"]=" \3"/p
18594 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18595 d
18596 :bsnl
18597 s/["\\]/\\&/g
18598 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18599 D["\1"]=" \3\\\\\\n"\\/p
18600 t cont
18601 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18602 t cont
18603 d
18604 :cont
18605 n
18606 s/.\{148\}/&'"$ac_delim"'/g
18607 t clear
18608 :clear
18609 s/\\$//
18610 t bsnlc
18611 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18612 d
18613 :bsnlc
18614 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18615 b cont
18616 ' <confdefs.h | sed '
18617 s/'"$ac_delim"'/"\\\
18618 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18619
18620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18621 for (key in D) D_is_set[key] = 1
18622 FS = "\a"
18623 }
18624 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18625 line = \$ 0
18626 split(line, arg, " ")
18627 if (arg[1] == "#") {
18628 defundef = arg[2]
18629 mac1 = arg[3]
18630 } else {
18631 defundef = substr(arg[1], 2)
18632 mac1 = arg[2]
18633 }
18634 split(mac1, mac2, "(") #)
18635 macro = mac2[1]
18636 prefix = substr(line, 1, index(line, defundef) - 1)
18637 if (D_is_set[macro]) {
18638 # Preserve the white space surrounding the "#".
18639 print prefix "define", macro P[macro] D[macro]
18640 next
18641 } else {
18642 # Replace #undef with comments. This is necessary, for example,
18643 # in the case of _POSIX_SOURCE, which is predefined and required
18644 # on some systems where configure will not decide to define it.
18645 if (defundef == "undef") {
18646 print "/*", prefix defundef, macro, "*/"
18647 next
18648 }
18649 }
18650 }
18651 { print }
18652 _ACAWK
18653 _ACEOF
18654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18655 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18656 fi # test -n "$CONFIG_HEADERS"
18657
18658
18659 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18660 shift
18661 for ac_tag
18662 do
18663 case $ac_tag in
18664 :[FHLC]) ac_mode=$ac_tag; continue;;
18665 esac
18666 case $ac_mode$ac_tag in
18667 :[FHL]*:*);;
18668 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18669 :[FH]-) ac_tag=-:-;;
18670 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18671 esac
18672 ac_save_IFS=$IFS
18673 IFS=:
18674 set x $ac_tag
18675 IFS=$ac_save_IFS
18676 shift
18677 ac_file=$1
18678 shift
18679
18680 case $ac_mode in
18681 :L) ac_source=$1;;
18682 :[FH])
18683 ac_file_inputs=
18684 for ac_f
18685 do
18686 case $ac_f in
18687 -) ac_f="$ac_tmp/stdin";;
18688 *) # Look for the file first in the build tree, then in the source tree
18689 # (if the path is not absolute). The absolute path cannot be DOS-style,
18690 # because $ac_f cannot contain `:'.
18691 test -f "$ac_f" ||
18692 case $ac_f in
18693 [\\/$]*) false;;
18694 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18695 esac ||
18696 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18697 esac
18698 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18699 as_fn_append ac_file_inputs " '$ac_f'"
18700 done
18701
18702 # Let's still pretend it is `configure' which instantiates (i.e., don't
18703 # use $as_me), people would be surprised to read:
18704 # /* config.h. Generated by config.status. */
18705 configure_input='Generated from '`
18706 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18707 `' by configure.'
18708 if test x"$ac_file" != x-; then
18709 configure_input="$ac_file. $configure_input"
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18711 $as_echo "$as_me: creating $ac_file" >&6;}
18712 fi
18713 # Neutralize special characters interpreted by sed in replacement strings.
18714 case $configure_input in #(
18715 *\&* | *\|* | *\\* )
18716 ac_sed_conf_input=`$as_echo "$configure_input" |
18717 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18718 *) ac_sed_conf_input=$configure_input;;
18719 esac
18720
18721 case $ac_tag in
18722 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18723 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18724 esac
18725 ;;
18726 esac
18727
18728 ac_dir=`$as_dirname -- "$ac_file" ||
18729 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18730 X"$ac_file" : 'X\(//\)[^/]' \| \
18731 X"$ac_file" : 'X\(//\)$' \| \
18732 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18733 $as_echo X"$ac_file" |
18734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18735 s//\1/
18736 q
18737 }
18738 /^X\(\/\/\)[^/].*/{
18739 s//\1/
18740 q
18741 }
18742 /^X\(\/\/\)$/{
18743 s//\1/
18744 q
18745 }
18746 /^X\(\/\).*/{
18747 s//\1/
18748 q
18749 }
18750 s/.*/./; q'`
18751 as_dir="$ac_dir"; as_fn_mkdir_p
18752 ac_builddir=.
18753
18754 case "$ac_dir" in
18755 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18756 *)
18757 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18758 # A ".." for each directory in $ac_dir_suffix.
18759 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18760 case $ac_top_builddir_sub in
18761 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18762 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18763 esac ;;
18764 esac
18765 ac_abs_top_builddir=$ac_pwd
18766 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18767 # for backward compatibility:
18768 ac_top_builddir=$ac_top_build_prefix
18769
18770 case $srcdir in
18771 .) # We are building in place.
18772 ac_srcdir=.
18773 ac_top_srcdir=$ac_top_builddir_sub
18774 ac_abs_top_srcdir=$ac_pwd ;;
18775 [\\/]* | ?:[\\/]* ) # Absolute name.
18776 ac_srcdir=$srcdir$ac_dir_suffix;
18777 ac_top_srcdir=$srcdir
18778 ac_abs_top_srcdir=$srcdir ;;
18779 *) # Relative name.
18780 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18781 ac_top_srcdir=$ac_top_build_prefix$srcdir
18782 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18783 esac
18784 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18785
18786
18787 case $ac_mode in
18788 :F)
18789 #
18790 # CONFIG_FILE
18791 #
18792
18793 case $INSTALL in
18794 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18795 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18796 esac
18797 ac_MKDIR_P=$MKDIR_P
18798 case $MKDIR_P in
18799 [\\/$]* | ?:[\\/]* ) ;;
18800 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18801 esac
18802 _ACEOF
18803
18804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18805 # If the template does not know about datarootdir, expand it.
18806 # FIXME: This hack should be removed a few years after 2.60.
18807 ac_datarootdir_hack=; ac_datarootdir_seen=
18808 ac_sed_dataroot='
18809 /datarootdir/ {
18810 p
18811 q
18812 }
18813 /@datadir@/p
18814 /@docdir@/p
18815 /@infodir@/p
18816 /@localedir@/p
18817 /@mandir@/p'
18818 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18819 *datarootdir*) ac_datarootdir_seen=yes;;
18820 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18822 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18823 _ACEOF
18824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18825 ac_datarootdir_hack='
18826 s&@datadir@&$datadir&g
18827 s&@docdir@&$docdir&g
18828 s&@infodir@&$infodir&g
18829 s&@localedir@&$localedir&g
18830 s&@mandir@&$mandir&g
18831 s&\\\${datarootdir}&$datarootdir&g' ;;
18832 esac
18833 _ACEOF
18834
18835 # Neutralize VPATH when `$srcdir' = `.'.
18836 # Shell code in configure.ac might set extrasub.
18837 # FIXME: do we really want to maintain this feature?
18838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18839 ac_sed_extra="$ac_vpsub
18840 $extrasub
18841 _ACEOF
18842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18843 :t
18844 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18845 s|@configure_input@|$ac_sed_conf_input|;t t
18846 s&@top_builddir@&$ac_top_builddir_sub&;t t
18847 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18848 s&@srcdir@&$ac_srcdir&;t t
18849 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18850 s&@top_srcdir@&$ac_top_srcdir&;t t
18851 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18852 s&@builddir@&$ac_builddir&;t t
18853 s&@abs_builddir@&$ac_abs_builddir&;t t
18854 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18855 s&@INSTALL@&$ac_INSTALL&;t t
18856 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18857 $ac_datarootdir_hack
18858 "
18859 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18860 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18861
18862 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18863 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18864 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18865 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18867 which seems to be undefined. Please make sure it is defined" >&5
18868 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18869 which seems to be undefined. Please make sure it is defined" >&2;}
18870
18871 rm -f "$ac_tmp/stdin"
18872 case $ac_file in
18873 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18874 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18875 esac \
18876 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18877 ;;
18878 :H)
18879 #
18880 # CONFIG_HEADER
18881 #
18882 if test x"$ac_file" != x-; then
18883 {
18884 $as_echo "/* $configure_input */" \
18885 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18886 } >"$ac_tmp/config.h" \
18887 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18888 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18890 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18891 else
18892 rm -f "$ac_file"
18893 mv "$ac_tmp/config.h" "$ac_file" \
18894 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18895 fi
18896 else
18897 $as_echo "/* $configure_input */" \
18898 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18899 || as_fn_error $? "could not create -" "$LINENO" 5
18900 fi
18901 # Compute "$ac_file"'s index in $config_headers.
18902 _am_arg="$ac_file"
18903 _am_stamp_count=1
18904 for _am_header in $config_headers :; do
18905 case $_am_header in
18906 $_am_arg | $_am_arg:* )
18907 break ;;
18908 * )
18909 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18910 esac
18911 done
18912 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18913 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18914 X"$_am_arg" : 'X\(//\)[^/]' \| \
18915 X"$_am_arg" : 'X\(//\)$' \| \
18916 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18917 $as_echo X"$_am_arg" |
18918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18919 s//\1/
18920 q
18921 }
18922 /^X\(\/\/\)[^/].*/{
18923 s//\1/
18924 q
18925 }
18926 /^X\(\/\/\)$/{
18927 s//\1/
18928 q
18929 }
18930 /^X\(\/\).*/{
18931 s//\1/
18932 q
18933 }
18934 s/.*/./; q'`/stamp-h$_am_stamp_count
18935 ;;
18936
18937 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18938 $as_echo "$as_me: executing $ac_file commands" >&6;}
18939 ;;
18940 esac
18941
18942
18943 case $ac_file$ac_mode in
18944 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18945 # Older Autoconf quotes --file arguments for eval, but not when files
18946 # are listed without --file. Let's play safe and only enable the eval
18947 # if we detect the quoting.
18948 case $CONFIG_FILES in
18949 *\'*) eval set x "$CONFIG_FILES" ;;
18950 *) set x $CONFIG_FILES ;;
18951 esac
18952 shift
18953 for mf
18954 do
18955 # Strip MF so we end up with the name of the file.
18956 mf=`echo "$mf" | sed -e 's/:.*$//'`
18957 # Check whether this is an Automake generated Makefile or not.
18958 # We used to match only the files named 'Makefile.in', but
18959 # some people rename them; so instead we look at the file content.
18960 # Grep'ing the first line is not enough: some people post-process
18961 # each Makefile.in and add a new line on top of each file to say so.
18962 # Grep'ing the whole file is not good either: AIX grep has a line
18963 # limit of 2048, but all sed's we know have understand at least 4000.
18964 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18965 dirpart=`$as_dirname -- "$mf" ||
18966 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18967 X"$mf" : 'X\(//\)[^/]' \| \
18968 X"$mf" : 'X\(//\)$' \| \
18969 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18970 $as_echo X"$mf" |
18971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18972 s//\1/
18973 q
18974 }
18975 /^X\(\/\/\)[^/].*/{
18976 s//\1/
18977 q
18978 }
18979 /^X\(\/\/\)$/{
18980 s//\1/
18981 q
18982 }
18983 /^X\(\/\).*/{
18984 s//\1/
18985 q
18986 }
18987 s/.*/./; q'`
18988 else
18989 continue
18990 fi
18991 # Extract the definition of DEPDIR, am__include, and am__quote
18992 # from the Makefile without running 'make'.
18993 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18994 test -z "$DEPDIR" && continue
18995 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18996 test -z "$am__include" && continue
18997 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18998 # Find all dependency output files, they are included files with
18999 # $(DEPDIR) in their names. We invoke sed twice because it is the
19000 # simplest approach to changing $(DEPDIR) to its actual value in the
19001 # expansion.
19002 for file in `sed -n "
19003 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19004 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19005 # Make sure the directory exists.
19006 test -f "$dirpart/$file" && continue
19007 fdir=`$as_dirname -- "$file" ||
19008 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19009 X"$file" : 'X\(//\)[^/]' \| \
19010 X"$file" : 'X\(//\)$' \| \
19011 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19012 $as_echo X"$file" |
19013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19014 s//\1/
19015 q
19016 }
19017 /^X\(\/\/\)[^/].*/{
19018 s//\1/
19019 q
19020 }
19021 /^X\(\/\/\)$/{
19022 s//\1/
19023 q
19024 }
19025 /^X\(\/\).*/{
19026 s//\1/
19027 q
19028 }
19029 s/.*/./; q'`
19030 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19031 # echo "creating $dirpart/$file"
19032 echo '# dummy' > "$dirpart/$file"
19033 done
19034 done
19035 }
19036 ;;
19037 "libtool":C)
19038
19039 # See if we are running on zsh, and set the options that allow our
19040 # commands through without removal of \ escapes.
19041 if test -n "${ZSH_VERSION+set}"; then
19042 setopt NO_GLOB_SUBST
19043 fi
19044
19045 cfgfile=${ofile}T
19046 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19047 $RM "$cfgfile"
19048
19049 cat <<_LT_EOF >> "$cfgfile"
19050 #! $SHELL
19051 # Generated automatically by $as_me ($PACKAGE) $VERSION
19052 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19053 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19054
19055 # Provide generalized library-building support services.
19056 # Written by Gordon Matzigkeit, 1996
19057
19058 # Copyright (C) 2014 Free Software Foundation, Inc.
19059 # This is free software; see the source for copying conditions. There is NO
19060 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19061
19062 # GNU Libtool is free software; you can redistribute it and/or modify
19063 # it under the terms of the GNU General Public License as published by
19064 # the Free Software Foundation; either version 2 of of the License, or
19065 # (at your option) any later version.
19066 #
19067 # As a special exception to the GNU General Public License, if you
19068 # distribute this file as part of a program or library that is built
19069 # using GNU Libtool, you may include this file under the same
19070 # distribution terms that you use for the rest of that program.
19071 #
19072 # GNU Libtool is distributed in the hope that it will be useful, but
19073 # WITHOUT ANY WARRANTY; without even the implied warranty of
19074 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19075 # GNU General Public License for more details.
19076 #
19077 # You should have received a copy of the GNU General Public License
19078 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19079
19080
19081 # The names of the tagged configurations supported by this script.
19082 available_tags='CXX '
19083
19084 # Configured defaults for sys_lib_dlsearch_path munging.
19085 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19086
19087 # ### BEGIN LIBTOOL CONFIG
19088
19089 # Which release of libtool.m4 was used?
19090 macro_version=$macro_version
19091 macro_revision=$macro_revision
19092
19093 # Whether or not to build shared libraries.
19094 build_libtool_libs=$enable_shared
19095
19096 # Whether or not to build static libraries.
19097 build_old_libs=$enable_static
19098
19099 # What type of objects to build.
19100 pic_mode=$pic_mode
19101
19102 # Whether or not to optimize for fast installation.
19103 fast_install=$enable_fast_install
19104
19105 # Shared archive member basename,for filename based shared library versioning on AIX.
19106 shared_archive_member_spec=$shared_archive_member_spec
19107
19108 # Shell to use when invoking shell scripts.
19109 SHELL=$lt_SHELL
19110
19111 # An echo program that protects backslashes.
19112 ECHO=$lt_ECHO
19113
19114 # The PATH separator for the build system.
19115 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19116
19117 # The host system.
19118 host_alias=$host_alias
19119 host=$host
19120 host_os=$host_os
19121
19122 # The build system.
19123 build_alias=$build_alias
19124 build=$build
19125 build_os=$build_os
19126
19127 # A sed program that does not truncate output.
19128 SED=$lt_SED
19129
19130 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19131 Xsed="\$SED -e 1s/^X//"
19132
19133 # A grep program that handles long lines.
19134 GREP=$lt_GREP
19135
19136 # An ERE matcher.
19137 EGREP=$lt_EGREP
19138
19139 # A literal string matcher.
19140 FGREP=$lt_FGREP
19141
19142 # A BSD- or MS-compatible name lister.
19143 NM=$lt_NM
19144
19145 # Whether we need soft or hard links.
19146 LN_S=$lt_LN_S
19147
19148 # What is the maximum length of a command?
19149 max_cmd_len=$max_cmd_len
19150
19151 # Object file suffix (normally "o").
19152 objext=$ac_objext
19153
19154 # Executable file suffix (normally "").
19155 exeext=$exeext
19156
19157 # whether the shell understands "unset".
19158 lt_unset=$lt_unset
19159
19160 # turn spaces into newlines.
19161 SP2NL=$lt_lt_SP2NL
19162
19163 # turn newlines into spaces.
19164 NL2SP=$lt_lt_NL2SP
19165
19166 # convert \$build file names to \$host format.
19167 to_host_file_cmd=$lt_cv_to_host_file_cmd
19168
19169 # convert \$build files to toolchain format.
19170 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19171
19172 # An object symbol dumper.
19173 OBJDUMP=$lt_OBJDUMP
19174
19175 # Method to check whether dependent libraries are shared objects.
19176 deplibs_check_method=$lt_deplibs_check_method
19177
19178 # Command to use when deplibs_check_method = "file_magic".
19179 file_magic_cmd=$lt_file_magic_cmd
19180
19181 # How to find potential files when deplibs_check_method = "file_magic".
19182 file_magic_glob=$lt_file_magic_glob
19183
19184 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19185 want_nocaseglob=$lt_want_nocaseglob
19186
19187 # DLL creation program.
19188 DLLTOOL=$lt_DLLTOOL
19189
19190 # Command to associate shared and link libraries.
19191 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19192
19193 # The archiver.
19194 AR=$lt_AR
19195
19196 # Flags to create an archive.
19197 AR_FLAGS=$lt_AR_FLAGS
19198
19199 # How to feed a file listing to the archiver.
19200 archiver_list_spec=$lt_archiver_list_spec
19201
19202 # A symbol stripping program.
19203 STRIP=$lt_STRIP
19204
19205 # Commands used to install an old-style archive.
19206 RANLIB=$lt_RANLIB
19207 old_postinstall_cmds=$lt_old_postinstall_cmds
19208 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19209
19210 # Whether to use a lock for old archive extraction.
19211 lock_old_archive_extraction=$lock_old_archive_extraction
19212
19213 # A C compiler.
19214 LTCC=$lt_CC
19215
19216 # LTCC compiler flags.
19217 LTCFLAGS=$lt_CFLAGS
19218
19219 # Take the output of nm and produce a listing of raw symbols and C names.
19220 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19221
19222 # Transform the output of nm in a proper C declaration.
19223 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19224
19225 # Transform the output of nm into a list of symbols to manually relocate.
19226 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19227
19228 # Transform the output of nm in a C name address pair.
19229 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19230
19231 # Transform the output of nm in a C name address pair when lib prefix is needed.
19232 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19233
19234 # The name lister interface.
19235 nm_interface=$lt_lt_cv_nm_interface
19236
19237 # Specify filename containing input files for \$NM.
19238 nm_file_list_spec=$lt_nm_file_list_spec
19239
19240 # The root where to search for dependent libraries,and where our libraries should be installed.
19241 lt_sysroot=$lt_sysroot
19242
19243 # Command to truncate a binary pipe.
19244 lt_truncate_bin=$lt_lt_cv_truncate_bin
19245
19246 # The name of the directory that contains temporary libtool files.
19247 objdir=$objdir
19248
19249 # Used to examine libraries when file_magic_cmd begins with "file".
19250 MAGIC_CMD=$MAGIC_CMD
19251
19252 # Must we lock files when doing compilation?
19253 need_locks=$lt_need_locks
19254
19255 # Manifest tool.
19256 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19257
19258 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19259 DSYMUTIL=$lt_DSYMUTIL
19260
19261 # Tool to change global to local symbols on Mac OS X.
19262 NMEDIT=$lt_NMEDIT
19263
19264 # Tool to manipulate fat objects and archives on Mac OS X.
19265 LIPO=$lt_LIPO
19266
19267 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19268 OTOOL=$lt_OTOOL
19269
19270 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19271 OTOOL64=$lt_OTOOL64
19272
19273 # Old archive suffix (normally "a").
19274 libext=$libext
19275
19276 # Shared library suffix (normally ".so").
19277 shrext_cmds=$lt_shrext_cmds
19278
19279 # The commands to extract the exported symbol list from a shared archive.
19280 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19281
19282 # Variables whose values should be saved in libtool wrapper scripts and
19283 # restored at link time.
19284 variables_saved_for_relink=$lt_variables_saved_for_relink
19285
19286 # Do we need the "lib" prefix for modules?
19287 need_lib_prefix=$need_lib_prefix
19288
19289 # Do we need a version for libraries?
19290 need_version=$need_version
19291
19292 # Library versioning type.
19293 version_type=$version_type
19294
19295 # Shared library runtime path variable.
19296 runpath_var=$runpath_var
19297
19298 # Shared library path variable.
19299 shlibpath_var=$shlibpath_var
19300
19301 # Is shlibpath searched before the hard-coded library search path?
19302 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19303
19304 # Format of library name prefix.
19305 libname_spec=$lt_libname_spec
19306
19307 # List of archive names. First name is the real one, the rest are links.
19308 # The last name is the one that the linker finds with -lNAME
19309 library_names_spec=$lt_library_names_spec
19310
19311 # The coded name of the library, if different from the real name.
19312 soname_spec=$lt_soname_spec
19313
19314 # Permission mode override for installation of shared libraries.
19315 install_override_mode=$lt_install_override_mode
19316
19317 # Command to use after installation of a shared archive.
19318 postinstall_cmds=$lt_postinstall_cmds
19319
19320 # Command to use after uninstallation of a shared archive.
19321 postuninstall_cmds=$lt_postuninstall_cmds
19322
19323 # Commands used to finish a libtool library installation in a directory.
19324 finish_cmds=$lt_finish_cmds
19325
19326 # As "finish_cmds", except a single script fragment to be evaled but
19327 # not shown.
19328 finish_eval=$lt_finish_eval
19329
19330 # Whether we should hardcode library paths into libraries.
19331 hardcode_into_libs=$hardcode_into_libs
19332
19333 # Compile-time system search path for libraries.
19334 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19335
19336 # Detected run-time system search path for libraries.
19337 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19338
19339 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19340 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19341
19342 # Whether dlopen is supported.
19343 dlopen_support=$enable_dlopen
19344
19345 # Whether dlopen of programs is supported.
19346 dlopen_self=$enable_dlopen_self
19347
19348 # Whether dlopen of statically linked programs is supported.
19349 dlopen_self_static=$enable_dlopen_self_static
19350
19351 # Commands to strip libraries.
19352 old_striplib=$lt_old_striplib
19353 striplib=$lt_striplib
19354
19355
19356 # The linker used to build libraries.
19357 LD=$lt_LD
19358
19359 # How to create reloadable object files.
19360 reload_flag=$lt_reload_flag
19361 reload_cmds=$lt_reload_cmds
19362
19363 # Commands used to build an old-style archive.
19364 old_archive_cmds=$lt_old_archive_cmds
19365
19366 # A language specific compiler.
19367 CC=$lt_compiler
19368
19369 # Is the compiler the GNU compiler?
19370 with_gcc=$GCC
19371
19372 # Compiler flag to turn off builtin functions.
19373 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19374
19375 # Additional compiler flags for building library objects.
19376 pic_flag=$lt_lt_prog_compiler_pic
19377
19378 # How to pass a linker flag through the compiler.
19379 wl=$lt_lt_prog_compiler_wl
19380
19381 # Compiler flag to prevent dynamic linking.
19382 link_static_flag=$lt_lt_prog_compiler_static
19383
19384 # Does compiler simultaneously support -c and -o options?
19385 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19386
19387 # Whether or not to add -lc for building shared libraries.
19388 build_libtool_need_lc=$archive_cmds_need_lc
19389
19390 # Whether or not to disallow shared libs when runtime libs are static.
19391 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19392
19393 # Compiler flag to allow reflexive dlopens.
19394 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19395
19396 # Compiler flag to generate shared objects directly from archives.
19397 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19398
19399 # Whether the compiler copes with passing no objects directly.
19400 compiler_needs_object=$lt_compiler_needs_object
19401
19402 # Create an old-style archive from a shared archive.
19403 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19404
19405 # Create a temporary old-style archive to link instead of a shared archive.
19406 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19407
19408 # Commands used to build a shared archive.
19409 archive_cmds=$lt_archive_cmds
19410 archive_expsym_cmds=$lt_archive_expsym_cmds
19411
19412 # Commands used to build a loadable module if different from building
19413 # a shared archive.
19414 module_cmds=$lt_module_cmds
19415 module_expsym_cmds=$lt_module_expsym_cmds
19416
19417 # Whether we are building with GNU ld or not.
19418 with_gnu_ld=$lt_with_gnu_ld
19419
19420 # Flag that allows shared libraries with undefined symbols to be built.
19421 allow_undefined_flag=$lt_allow_undefined_flag
19422
19423 # Flag that enforces no undefined symbols.
19424 no_undefined_flag=$lt_no_undefined_flag
19425
19426 # Flag to hardcode \$libdir into a binary during linking.
19427 # This must work even if \$libdir does not exist
19428 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19429
19430 # Whether we need a single "-rpath" flag with a separated argument.
19431 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19432
19433 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19434 # DIR into the resulting binary.
19435 hardcode_direct=$hardcode_direct
19436
19437 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19438 # DIR into the resulting binary and the resulting library dependency is
19439 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19440 # library is relocated.
19441 hardcode_direct_absolute=$hardcode_direct_absolute
19442
19443 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19444 # into the resulting binary.
19445 hardcode_minus_L=$hardcode_minus_L
19446
19447 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19448 # into the resulting binary.
19449 hardcode_shlibpath_var=$hardcode_shlibpath_var
19450
19451 # Set to "yes" if building a shared library automatically hardcodes DIR
19452 # into the library and all subsequent libraries and executables linked
19453 # against it.
19454 hardcode_automatic=$hardcode_automatic
19455
19456 # Set to yes if linker adds runtime paths of dependent libraries
19457 # to runtime path list.
19458 inherit_rpath=$inherit_rpath
19459
19460 # Whether libtool must link a program against all its dependency libraries.
19461 link_all_deplibs=$link_all_deplibs
19462
19463 # Set to "yes" if exported symbols are required.
19464 always_export_symbols=$always_export_symbols
19465
19466 # The commands to list exported symbols.
19467 export_symbols_cmds=$lt_export_symbols_cmds
19468
19469 # Symbols that should not be listed in the preloaded symbols.
19470 exclude_expsyms=$lt_exclude_expsyms
19471
19472 # Symbols that must always be exported.
19473 include_expsyms=$lt_include_expsyms
19474
19475 # Commands necessary for linking programs (against libraries) with templates.
19476 prelink_cmds=$lt_prelink_cmds
19477
19478 # Commands necessary for finishing linking programs.
19479 postlink_cmds=$lt_postlink_cmds
19480
19481 # Specify filename containing input files.
19482 file_list_spec=$lt_file_list_spec
19483
19484 # How to hardcode a shared library path into an executable.
19485 hardcode_action=$hardcode_action
19486
19487 # The directories searched by this compiler when creating a shared library.
19488 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19489
19490 # Dependencies to place before and after the objects being linked to
19491 # create a shared library.
19492 predep_objects=$lt_predep_objects
19493 postdep_objects=$lt_postdep_objects
19494 predeps=$lt_predeps
19495 postdeps=$lt_postdeps
19496
19497 # The library search path used internally by the compiler when linking
19498 # a shared library.
19499 compiler_lib_search_path=$lt_compiler_lib_search_path
19500
19501 # ### END LIBTOOL CONFIG
19502
19503 _LT_EOF
19504
19505 cat <<'_LT_EOF' >> "$cfgfile"
19506
19507 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19508
19509 # func_munge_path_list VARIABLE PATH
19510 # -----------------------------------
19511 # VARIABLE is name of variable containing _space_ separated list of
19512 # directories to be munged by the contents of PATH, which is string
19513 # having a format:
19514 # "DIR[:DIR]:"
19515 # string "DIR[ DIR]" will be prepended to VARIABLE
19516 # ":DIR[:DIR]"
19517 # string "DIR[ DIR]" will be appended to VARIABLE
19518 # "DIRP[:DIRP]::[DIRA:]DIRA"
19519 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19520 # "DIRA[ DIRA]" will be appended to VARIABLE
19521 # "DIR[:DIR]"
19522 # VARIABLE will be replaced by "DIR[ DIR]"
19523 func_munge_path_list ()
19524 {
19525 case x$2 in
19526 x)
19527 ;;
19528 *:)
19529 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19530 ;;
19531 x:*)
19532 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19533 ;;
19534 *::*)
19535 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19536 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19537 ;;
19538 *)
19539 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19540 ;;
19541 esac
19542 }
19543
19544
19545 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19546 func_cc_basename ()
19547 {
19548 for cc_temp in $*""; do
19549 case $cc_temp in
19550 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19551 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19552 \-*) ;;
19553 *) break;;
19554 esac
19555 done
19556 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19557 }
19558
19559
19560 # ### END FUNCTIONS SHARED WITH CONFIGURE
19561
19562 _LT_EOF
19563
19564 case $host_os in
19565 aix3*)
19566 cat <<\_LT_EOF >> "$cfgfile"
19567 # AIX sometimes has problems with the GCC collect2 program. For some
19568 # reason, if we set the COLLECT_NAMES environment variable, the problems
19569 # vanish in a puff of smoke.
19570 if test set != "${COLLECT_NAMES+set}"; then
19571 COLLECT_NAMES=
19572 export COLLECT_NAMES
19573 fi
19574 _LT_EOF
19575 ;;
19576 esac
19577
19578
19579 ltmain=$ac_aux_dir/ltmain.sh
19580
19581
19582 # We use sed instead of cat because bash on DJGPP gets confused if
19583 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19584 # text mode, it properly converts lines to CR/LF. This bash problem
19585 # is reportedly fixed, but why not run on old versions too?
19586 sed '$q' "$ltmain" >> "$cfgfile" \
19587 || (rm -f "$cfgfile"; exit 1)
19588
19589 mv -f "$cfgfile" "$ofile" ||
19590 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19591 chmod +x "$ofile"
19592
19593
19594 cat <<_LT_EOF >> "$ofile"
19595
19596 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19597
19598 # The linker used to build libraries.
19599 LD=$lt_LD_CXX
19600
19601 # How to create reloadable object files.
19602 reload_flag=$lt_reload_flag_CXX
19603 reload_cmds=$lt_reload_cmds_CXX
19604
19605 # Commands used to build an old-style archive.
19606 old_archive_cmds=$lt_old_archive_cmds_CXX
19607
19608 # A language specific compiler.
19609 CC=$lt_compiler_CXX
19610
19611 # Is the compiler the GNU compiler?
19612 with_gcc=$GCC_CXX
19613
19614 # Compiler flag to turn off builtin functions.
19615 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19616
19617 # Additional compiler flags for building library objects.
19618 pic_flag=$lt_lt_prog_compiler_pic_CXX
19619
19620 # How to pass a linker flag through the compiler.
19621 wl=$lt_lt_prog_compiler_wl_CXX
19622
19623 # Compiler flag to prevent dynamic linking.
19624 link_static_flag=$lt_lt_prog_compiler_static_CXX
19625
19626 # Does compiler simultaneously support -c and -o options?
19627 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19628
19629 # Whether or not to add -lc for building shared libraries.
19630 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19631
19632 # Whether or not to disallow shared libs when runtime libs are static.
19633 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19634
19635 # Compiler flag to allow reflexive dlopens.
19636 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19637
19638 # Compiler flag to generate shared objects directly from archives.
19639 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19640
19641 # Whether the compiler copes with passing no objects directly.
19642 compiler_needs_object=$lt_compiler_needs_object_CXX
19643
19644 # Create an old-style archive from a shared archive.
19645 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19646
19647 # Create a temporary old-style archive to link instead of a shared archive.
19648 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19649
19650 # Commands used to build a shared archive.
19651 archive_cmds=$lt_archive_cmds_CXX
19652 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19653
19654 # Commands used to build a loadable module if different from building
19655 # a shared archive.
19656 module_cmds=$lt_module_cmds_CXX
19657 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19658
19659 # Whether we are building with GNU ld or not.
19660 with_gnu_ld=$lt_with_gnu_ld_CXX
19661
19662 # Flag that allows shared libraries with undefined symbols to be built.
19663 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19664
19665 # Flag that enforces no undefined symbols.
19666 no_undefined_flag=$lt_no_undefined_flag_CXX
19667
19668 # Flag to hardcode \$libdir into a binary during linking.
19669 # This must work even if \$libdir does not exist
19670 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19671
19672 # Whether we need a single "-rpath" flag with a separated argument.
19673 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19674
19675 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19676 # DIR into the resulting binary.
19677 hardcode_direct=$hardcode_direct_CXX
19678
19679 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19680 # DIR into the resulting binary and the resulting library dependency is
19681 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19682 # library is relocated.
19683 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19684
19685 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19686 # into the resulting binary.
19687 hardcode_minus_L=$hardcode_minus_L_CXX
19688
19689 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19690 # into the resulting binary.
19691 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19692
19693 # Set to "yes" if building a shared library automatically hardcodes DIR
19694 # into the library and all subsequent libraries and executables linked
19695 # against it.
19696 hardcode_automatic=$hardcode_automatic_CXX
19697
19698 # Set to yes if linker adds runtime paths of dependent libraries
19699 # to runtime path list.
19700 inherit_rpath=$inherit_rpath_CXX
19701
19702 # Whether libtool must link a program against all its dependency libraries.
19703 link_all_deplibs=$link_all_deplibs_CXX
19704
19705 # Set to "yes" if exported symbols are required.
19706 always_export_symbols=$always_export_symbols_CXX
19707
19708 # The commands to list exported symbols.
19709 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19710
19711 # Symbols that should not be listed in the preloaded symbols.
19712 exclude_expsyms=$lt_exclude_expsyms_CXX
19713
19714 # Symbols that must always be exported.
19715 include_expsyms=$lt_include_expsyms_CXX
19716
19717 # Commands necessary for linking programs (against libraries) with templates.
19718 prelink_cmds=$lt_prelink_cmds_CXX
19719
19720 # Commands necessary for finishing linking programs.
19721 postlink_cmds=$lt_postlink_cmds_CXX
19722
19723 # Specify filename containing input files.
19724 file_list_spec=$lt_file_list_spec_CXX
19725
19726 # How to hardcode a shared library path into an executable.
19727 hardcode_action=$hardcode_action_CXX
19728
19729 # The directories searched by this compiler when creating a shared library.
19730 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19731
19732 # Dependencies to place before and after the objects being linked to
19733 # create a shared library.
19734 predep_objects=$lt_predep_objects_CXX
19735 postdep_objects=$lt_postdep_objects_CXX
19736 predeps=$lt_predeps_CXX
19737 postdeps=$lt_postdeps_CXX
19738
19739 # The library search path used internally by the compiler when linking
19740 # a shared library.
19741 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19742
19743 # ### END LIBTOOL TAG CONFIG: CXX
19744 _LT_EOF
19745
19746 ;;
19747
19748 esac
19749 done # for ac_tag
19750
19751
19752 as_fn_exit 0
19753 _ACEOF
19754 ac_clean_files=$ac_clean_files_save
19755
19756 test $ac_write_fail = 0 ||
19757 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19758
19759
19760 # configure is writing to config.log, and then calls config.status.
19761 # config.status does its own redirection, appending to config.log.
19762 # Unfortunately, on DOS this fails, as config.log is still kept open
19763 # by configure, so config.status won't be able to write to it; its
19764 # output is simply discarded. So we exec the FD to /dev/null,
19765 # effectively closing config.log, so it can be properly (re)opened and
19766 # appended to by config.status. When coming back to configure, we
19767 # need to make the FD available again.
19768 if test "$no_create" != yes; then
19769 ac_cs_success=:
19770 ac_config_status_args=
19771 test "$silent" = yes &&
19772 ac_config_status_args="$ac_config_status_args --quiet"
19773 exec 5>/dev/null
19774 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19775 exec 5>>config.log
19776 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19777 # would make configure fail if this is the last instruction.
19778 $ac_cs_success || as_fn_exit 1
19779 fi
19780 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19782 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19783 fi
19784