configure revision 1.1.1.5.10.1 1 #! /bin/sh
2 # From configure.in Id: 03855d8ef42a83e02c2c57833127e6e5c7fdb2bf .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 for ldapcpplib .
5 #
6 # Report bugs to <http://www.openldap.org/its/ >.
7 #
8 # Copyright 2000-2016 The OpenLDAP Foundation. All rights reserved.
9 # Restrictions apply, see COPYRIGHT and LICENSE files.
10 #
11 #
12 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
14 # Inc.
15 #
16 #
17 # This configure script is free software; the Free Software Foundation
18 # gives unlimited permission to copy, distribute and modify it.
19 ## -------------------- ##
20 ## M4sh Initialization. ##
21 ## -------------------- ##
22
23 # Be more Bourne compatible
24 DUALCASE=1; export DUALCASE # for MKS sh
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26 emulate sh
27 NULLCMD=:
28 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29 # is contrary to our usage. Disable this feature.
30 alias -g '${1+"$@"}'='"$@"'
31 setopt NO_GLOB_SUBST
32 else
33 case `(set -o) 2>/dev/null` in #(
34 *posix*) :
35 set -o posix ;; #(
36 *) :
37 ;;
38 esac
39 fi
40
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 # Prefer a ksh shell builtin over an external printf program on Solaris,
50 # but without wasting forks for bash or zsh.
51 if test -z "$BASH_VERSION$ZSH_VERSION" \
52 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo='print -r --'
54 as_echo_n='print -rn --'
55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56 as_echo='printf %s\n'
57 as_echo_n='printf %s'
58 else
59 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
60 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
61 as_echo_n='/usr/ucb/echo -n'
62 else
63 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 as_echo_n_body='eval
65 arg=$1;
66 case $arg in #(
67 *"$as_nl"*)
68 expr "X$arg" : "X\\(.*\\)$as_nl";
69 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
70 esac;
71 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
72 '
73 export as_echo_n_body
74 as_echo_n='sh -c $as_echo_n_body as_echo'
75 fi
76 export as_echo_body
77 as_echo='sh -c $as_echo_body as_echo'
78 fi
79
80 # The user is always right.
81 if test "${PATH_SEPARATOR+set}" != set; then
82 PATH_SEPARATOR=:
83 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
84 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 PATH_SEPARATOR=';'
86 }
87 fi
88
89
90 # IFS
91 # We need space, tab and new line, in precisely that order. Quoting is
92 # there to prevent editors from complaining about space-tab.
93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
94 # splitting by setting IFS to empty value.)
95 IFS=" "" $as_nl"
96
97 # Find who we are. Look in the path if we contain no directory separator.
98 case $0 in #((
99 *[\\/]* ) as_myself=$0 ;;
100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 for as_dir in $PATH
102 do
103 IFS=$as_save_IFS
104 test -z "$as_dir" && as_dir=.
105 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 done
107 IFS=$as_save_IFS
108
109 ;;
110 esac
111 # We did not find ourselves, most probably we were run as `sh COMMAND'
112 # in which case we are not to be found in the path.
113 if test "x$as_myself" = x; then
114 as_myself=$0
115 fi
116 if test ! -f "$as_myself"; then
117 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 exit 1
119 fi
120
121 # Unset variables that we do not need and which cause bugs (e.g. in
122 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
123 # suppresses any "Segmentation fault" message there. '((' could
124 # trigger a bug in pdksh 5.2.14.
125 for as_var in BASH_ENV ENV MAIL MAILPATH
126 do eval test x\${$as_var+set} = xset \
127 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
128 done
129 PS1='$ '
130 PS2='> '
131 PS4='+ '
132
133 # NLS nuisances.
134 LC_ALL=C
135 export LC_ALL
136 LANGUAGE=C
137 export LANGUAGE
138
139 # CDPATH.
140 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
141
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
171
172 else
173 exitcode=1; echo positional parameters were not saved.
174 fi
175 test x\$exitcode = x0 || exit 1"
176 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
177 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
178 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
179 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
238 $0: http://www.openldap.org/its/ about your system,
239 $0: including any error possibly output before this
240 $0: message. Then install a modern shell, or manually run
241 $0: the script under such a shell if you do have one."
242 fi
243 exit 1
244 fi
245 fi
246 fi
247 SHELL=${CONFIG_SHELL-/bin/sh}
248 export SHELL
249 # Unset more variables known to interfere with behavior of common tools.
250 CLICOLOR_FORCE= GREP_OPTIONS=
251 unset CLICOLOR_FORCE GREP_OPTIONS
252
253 ## --------------------- ##
254 ## M4sh Shell Functions. ##
255 ## --------------------- ##
256 # as_fn_unset VAR
257 # ---------------
258 # Portably unset VAR.
259 as_fn_unset ()
260 {
261 { eval $1=; unset $1;}
262 }
263 as_unset=as_fn_unset
264
265 # as_fn_set_status STATUS
266 # -----------------------
267 # Set $? to STATUS, without forking.
268 as_fn_set_status ()
269 {
270 return $1
271 } # as_fn_set_status
272
273 # as_fn_exit STATUS
274 # -----------------
275 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 as_fn_exit ()
277 {
278 set +e
279 as_fn_set_status $1
280 exit $1
281 } # as_fn_exit
282
283 # as_fn_mkdir_p
284 # -------------
285 # Create "$as_dir" as a directory, including parents if necessary.
286 as_fn_mkdir_p ()
287 {
288
289 case $as_dir in #(
290 -*) as_dir=./$as_dir;;
291 esac
292 test -d "$as_dir" || eval $as_mkdir_p || {
293 as_dirs=
294 while :; do
295 case $as_dir in #(
296 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
297 *) as_qdir=$as_dir;;
298 esac
299 as_dirs="'$as_qdir' $as_dirs"
300 as_dir=`$as_dirname -- "$as_dir" ||
301 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
302 X"$as_dir" : 'X\(//\)[^/]' \| \
303 X"$as_dir" : 'X\(//\)$' \| \
304 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
305 $as_echo X"$as_dir" |
306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)[^/].*/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)$/{
315 s//\1/
316 q
317 }
318 /^X\(\/\).*/{
319 s//\1/
320 q
321 }
322 s/.*/./; q'`
323 test -d "$as_dir" && break
324 done
325 test -z "$as_dirs" || eval "mkdir $as_dirs"
326 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
327
328
329 } # as_fn_mkdir_p
330 # as_fn_append VAR VALUE
331 # ----------------------
332 # Append the text in VALUE to the end of the definition contained in VAR. Take
333 # advantage of any shell optimizations that allow amortized linear growth over
334 # repeated appends, instead of the typical quadratic growth present in naive
335 # implementations.
336 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
337 eval 'as_fn_append ()
338 {
339 eval $1+=\$2
340 }'
341 else
342 as_fn_append ()
343 {
344 eval $1=\$$1\$2
345 }
346 fi # as_fn_append
347
348 # as_fn_arith ARG...
349 # ------------------
350 # Perform arithmetic evaluation on the ARGs, and store the result in the
351 # global $as_val. Take advantage of shells that can avoid forks. The arguments
352 # must be portable across $(()) and expr.
353 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354 eval 'as_fn_arith ()
355 {
356 as_val=$(( $* ))
357 }'
358 else
359 as_fn_arith ()
360 {
361 as_val=`expr "$@" || test $? -eq 1`
362 }
363 fi # as_fn_arith
364
365
366 # as_fn_error ERROR [LINENO LOG_FD]
367 # ---------------------------------
368 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
369 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
370 # script with status $?, using 1 if that was 0.
371 as_fn_error ()
372 {
373 as_status=$?; test $as_status -eq 0 && as_status=1
374 if test "$3"; then
375 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
376 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 fi
378 $as_echo "$as_me: error: $1" >&2
379 as_fn_exit $as_status
380 } # as_fn_error
381
382 if expr a : '\(a\)' >/dev/null 2>&1 &&
383 test "X`expr 00001 : '.*\(...\)'`" = X001; then
384 as_expr=expr
385 else
386 as_expr=false
387 fi
388
389 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
390 as_basename=basename
391 else
392 as_basename=false
393 fi
394
395 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
396 as_dirname=dirname
397 else
398 as_dirname=false
399 fi
400
401 as_me=`$as_basename -- "$0" ||
402 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
403 X"$0" : 'X\(//\)$' \| \
404 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 $as_echo X/"$0" |
406 sed '/^.*\/\([^/][^/]*\)\/*$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\/\)$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\).*/{
415 s//\1/
416 q
417 }
418 s/.*/./; q'`
419
420 # Avoid depending upon Character Ranges.
421 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
422 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
423 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
424 as_cr_digits='0123456789'
425 as_cr_alnum=$as_cr_Letters$as_cr_digits
426
427
428 as_lineno_1=$LINENO as_lineno_1a=$LINENO
429 as_lineno_2=$LINENO as_lineno_2a=$LINENO
430 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
431 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
432 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
433 sed -n '
434 p
435 /[$]LINENO/=
436 ' <$as_myself |
437 sed '
438 s/[$]LINENO.*/&-/
439 t lineno
440 b
441 :lineno
442 N
443 :loop
444 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
445 t loop
446 s/-\n.*//
447 ' >$as_me.lineno &&
448 chmod +x "$as_me.lineno" ||
449 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
454 . "./$as_me.lineno"
455 # Exit status is that of the last command.
456 exit
457 }
458
459 ECHO_C= ECHO_N= ECHO_T=
460 case `echo -n x` in #(((((
461 -n*)
462 case `echo 'xy\c'` in
463 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
464 xy) ECHO_C='\c';;
465 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
466 ECHO_T=' ';;
467 esac;;
468 *)
469 ECHO_N='-n';;
470 esac
471
472 rm -f conf$$ conf$$.exe conf$$.file
473 if test -d conf$$.dir; then
474 rm -f conf$$.dir/conf$$.file
475 else
476 rm -f conf$$.dir
477 mkdir conf$$.dir 2>/dev/null
478 fi
479 if (echo >conf$$.file) 2>/dev/null; then
480 if ln -s conf$$.file conf$$ 2>/dev/null; then
481 as_ln_s='ln -s'
482 # ... but there are two gotchas:
483 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
484 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
485 # In both cases, we have to default to `cp -p'.
486 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487 as_ln_s='cp -p'
488 elif ln conf$$.file conf$$ 2>/dev/null; then
489 as_ln_s=ln
490 else
491 as_ln_s='cp -p'
492 fi
493 else
494 as_ln_s='cp -p'
495 fi
496 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
497 rmdir conf$$.dir 2>/dev/null
498
499 if mkdir -p . 2>/dev/null; then
500 as_mkdir_p='mkdir -p "$as_dir"'
501 else
502 test -d ./-p && rmdir ./-p
503 as_mkdir_p=false
504 fi
505
506 if test -x / >/dev/null 2>&1; then
507 as_test_x='test -x'
508 else
509 if ls -dL / >/dev/null 2>&1; then
510 as_ls_L_option=L
511 else
512 as_ls_L_option=
513 fi
514 as_test_x='
515 eval sh -c '\''
516 if test -d "$1"; then
517 test -d "$1/.";
518 else
519 case $1 in #(
520 -*)set "./$1";;
521 esac;
522 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
523 ???[sx]*):;;*)false;;esac;fi
524 '\'' sh
525 '
526 fi
527 as_executable_p=$as_test_x
528
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537 # Check that we are running under the correct shell.
538 SHELL=${CONFIG_SHELL-/bin/sh}
539
540 case X$ECHO in
541 X*--fallback-echo)
542 # Remove one level of quotation (which was required for Make).
543 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
544 ;;
545 esac
546
547 echo=${ECHO-echo}
548 if test "X$1" = X--no-reexec; then
549 # Discard the --no-reexec flag, and continue.
550 shift
551 elif test "X$1" = X--fallback-echo; then
552 # Avoid inline document here, it may be left over
553 :
554 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
555 # Yippee, $echo works!
556 :
557 else
558 # Restart under the correct shell.
559 exec $SHELL "$0" --no-reexec ${1+"$@"}
560 fi
561
562 if test "X$1" = X--fallback-echo; then
563 # used as fallback echo
564 shift
565 cat <<EOF
566 $*
567 EOF
568 exit 0
569 fi
570
571 # The HP-UX ksh and POSIX shell print the target directory to stdout
572 # if CDPATH is set.
573 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
574
575 if test -z "$ECHO"; then
576 if test "X${echo_test_string+set}" != Xset; then
577 # find a string as large as possible, as long as the shell can cope with it
578 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
579 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
580 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
581 echo_test_string=`eval $cmd` &&
582 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
583 then
584 break
585 fi
586 done
587 fi
588
589 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
590 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
591 test "X$echo_testing_string" = "X$echo_test_string"; then
592 :
593 else
594 # The Solaris, AIX, and Digital Unix default echo programs unquote
595 # backslashes. This makes it impossible to quote backslashes using
596 # echo "$something" | sed 's/\\/\\\\/g'
597 #
598 # So, first we look for a working echo in the user's PATH.
599
600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
601 for dir in $PATH /usr/ucb; do
602 IFS="$lt_save_ifs"
603 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
604 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
607 echo="$dir/echo"
608 break
609 fi
610 done
611 IFS="$lt_save_ifs"
612
613 if test "X$echo" = Xecho; then
614 # We didn't find a better echo, so look for alternatives.
615 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
616 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
617 test "X$echo_testing_string" = "X$echo_test_string"; then
618 # This shell has a builtin print -r that does the trick.
619 echo='print -r'
620 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
621 test "X$CONFIG_SHELL" != X/bin/ksh; then
622 # If we have ksh, try running configure again with it.
623 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
624 export ORIGINAL_CONFIG_SHELL
625 CONFIG_SHELL=/bin/ksh
626 export CONFIG_SHELL
627 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
628 else
629 # Try using printf.
630 echo='printf %s\n'
631 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # Cool, printf works
635 :
636 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637 test "X$echo_testing_string" = 'X\t' &&
638 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639 test "X$echo_testing_string" = "X$echo_test_string"; then
640 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
641 export CONFIG_SHELL
642 SHELL="$CONFIG_SHELL"
643 export SHELL
644 echo="$CONFIG_SHELL $0 --fallback-echo"
645 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
646 test "X$echo_testing_string" = 'X\t' &&
647 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 else
651 # maybe with a smaller string...
652 prev=:
653
654 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
655 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
656 then
657 break
658 fi
659 prev="$cmd"
660 done
661
662 if test "$prev" != 'sed 50q "$0"'; then
663 echo_test_string=`eval $prev`
664 export echo_test_string
665 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
666 else
667 # Oops. We lost completely, so just stick with echo.
668 echo=echo
669 fi
670 fi
671 fi
672 fi
673 fi
674 fi
675
676 # Copy echo and quote the copy suitably for passing to libtool from
677 # the Makefile, instead of quoting the original, which is used later.
678 ECHO=$echo
679 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
680 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681 fi
682
683
684
685
686 tagnames=${tagnames+${tagnames},}CXX
687
688 tagnames=${tagnames+${tagnames},}F77
689
690 test -n "$DJDIR" || exec 7<&0 </dev/null
691 exec 6>&1
692
693 # Name of the host.
694 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695 # so uname gets run too.
696 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
697
698 #
699 # Initializations.
700 #
701 ac_default_prefix=/usr/local
702 ac_clean_files=
703 ac_config_libobj_dir=.
704 LIBOBJS=
705 cross_compiling=no
706 subdirs=
707 MFLAGS=
708 MAKEFLAGS=
709
710 # Identity of this package.
711 PACKAGE_NAME='ldapcpplib'
712 PACKAGE_TARNAME='ldapcpplib'
713 PACKAGE_VERSION=' '
714 PACKAGE_STRING='ldapcpplib '
715 PACKAGE_BUGREPORT='http://www.openldap.org/its/ '
716 PACKAGE_URL=''
717
718 ac_unique_file="src/LDAPConnection.h"
719 # Factoring default headers for most tests.
720 ac_includes_default="\
721 #include <stdio.h>
722 #ifdef HAVE_SYS_TYPES_H
723 # include <sys/types.h>
724 #endif
725 #ifdef HAVE_SYS_STAT_H
726 # include <sys/stat.h>
727 #endif
728 #ifdef STDC_HEADERS
729 # include <stdlib.h>
730 # include <stddef.h>
731 #else
732 # ifdef HAVE_STDLIB_H
733 # include <stdlib.h>
734 # endif
735 #endif
736 #ifdef HAVE_STRING_H
737 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
738 # include <memory.h>
739 # endif
740 # include <string.h>
741 #endif
742 #ifdef HAVE_STRINGS_H
743 # include <strings.h>
744 #endif
745 #ifdef HAVE_INTTYPES_H
746 # include <inttypes.h>
747 #endif
748 #ifdef HAVE_STDINT_H
749 # include <stdint.h>
750 #endif
751 #ifdef HAVE_UNISTD_H
752 # include <unistd.h>
753 #endif"
754
755 ac_subst_vars='LTLIBOBJS
756 LIBOBJS
757 LIBTOOL
758 ac_ct_F77
759 FFLAGS
760 F77
761 CXXCPP
762 CPP
763 NMEDIT
764 DSYMUTIL
765 RANLIB
766 AR
767 ECHO
768 LN_S
769 EGREP
770 GREP
771 SED
772 am__fastdepCC_FALSE
773 am__fastdepCC_TRUE
774 CCDEPMODE
775 ac_ct_CC
776 CFLAGS
777 CC
778 host_os
779 host_vendor
780 host_cpu
781 host
782 build_os
783 build_vendor
784 build_cpu
785 build
786 am__fastdepCXX_FALSE
787 am__fastdepCXX_TRUE
788 CXXDEPMODE
789 AMDEPBACKSLASH
790 AMDEP_FALSE
791 AMDEP_TRUE
792 am__quote
793 am__include
794 DEPDIR
795 OBJEXT
796 EXEEXT
797 ac_ct_CXX
798 CPPFLAGS
799 LDFLAGS
800 CXXFLAGS
801 CXX
802 OPENLDAP_CPP_API_VERSION
803 am__untar
804 am__tar
805 AMTAR
806 am__leading_dot
807 SET_MAKE
808 AWK
809 mkdir_p
810 MKDIR_P
811 INSTALL_STRIP_PROGRAM
812 STRIP
813 install_sh
814 MAKEINFO
815 AUTOHEADER
816 AUTOMAKE
817 AUTOCONF
818 ACLOCAL
819 VERSION
820 PACKAGE
821 CYGPATH_W
822 am__isrc
823 INSTALL_DATA
824 INSTALL_SCRIPT
825 INSTALL_PROGRAM
826 target_alias
827 host_alias
828 build_alias
829 LIBS
830 ECHO_T
831 ECHO_N
832 ECHO_C
833 DEFS
834 mandir
835 localedir
836 libdir
837 psdir
838 pdfdir
839 dvidir
840 htmldir
841 infodir
842 docdir
843 oldincludedir
844 includedir
845 localstatedir
846 sharedstatedir
847 sysconfdir
848 datadir
849 datarootdir
850 libexecdir
851 sbindir
852 bindir
853 program_transform_name
854 prefix
855 exec_prefix
856 PACKAGE_URL
857 PACKAGE_BUGREPORT
858 PACKAGE_STRING
859 PACKAGE_VERSION
860 PACKAGE_TARNAME
861 PACKAGE_NAME
862 PATH_SEPARATOR
863 SHELL'
864 ac_subst_files=''
865 ac_user_opts='
866 enable_option_checking
867 enable_dependency_tracking
868 enable_shared
869 enable_static
870 enable_fast_install
871 with_gnu_ld
872 enable_libtool_lock
873 with_pic
874 with_tags
875 enable_debug
876 with_libldap
877 with_ldap_includes
878 '
879 ac_precious_vars='build_alias
880 host_alias
881 target_alias
882 CXX
883 CXXFLAGS
884 LDFLAGS
885 LIBS
886 CPPFLAGS
887 CCC
888 CC
889 CFLAGS
890 CPP
891 CXXCPP
892 F77
893 FFLAGS'
894
895
896 # Initialize some variables set by options.
897 ac_init_help=
898 ac_init_version=false
899 ac_unrecognized_opts=
900 ac_unrecognized_sep=
901 # The variables have the same names as the options, with
902 # dashes changed to underlines.
903 cache_file=/dev/null
904 exec_prefix=NONE
905 no_create=
906 no_recursion=
907 prefix=NONE
908 program_prefix=NONE
909 program_suffix=NONE
910 program_transform_name=s,x,x,
911 silent=
912 site=
913 srcdir=
914 verbose=
915 x_includes=NONE
916 x_libraries=NONE
917
918 # Installation directory options.
919 # These are left unexpanded so users can "make install exec_prefix=/foo"
920 # and all the variables that are supposed to be based on exec_prefix
921 # by default will actually change.
922 # Use braces instead of parens because sh, perl, etc. also accept them.
923 # (The list follows the same order as the GNU Coding Standards.)
924 bindir='${exec_prefix}/bin'
925 sbindir='${exec_prefix}/sbin'
926 libexecdir='${exec_prefix}/libexec'
927 datarootdir='${prefix}/share'
928 datadir='${datarootdir}'
929 sysconfdir='${prefix}/etc'
930 sharedstatedir='${prefix}/com'
931 localstatedir='${prefix}/var'
932 includedir='${prefix}/include'
933 oldincludedir='/usr/include'
934 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
935 infodir='${datarootdir}/info'
936 htmldir='${docdir}'
937 dvidir='${docdir}'
938 pdfdir='${docdir}'
939 psdir='${docdir}'
940 libdir='${exec_prefix}/lib'
941 localedir='${datarootdir}/locale'
942 mandir='${datarootdir}/man'
943
944 ac_prev=
945 ac_dashdash=
946 for ac_option
947 do
948 # If the previous option needs an argument, assign it.
949 if test -n "$ac_prev"; then
950 eval $ac_prev=\$ac_option
951 ac_prev=
952 continue
953 fi
954
955 case $ac_option in
956 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
957 *) ac_optarg=yes ;;
958 esac
959
960 # Accept the important Cygnus configure options, so we can diagnose typos.
961
962 case $ac_dashdash$ac_option in
963 --)
964 ac_dashdash=yes ;;
965
966 -bindir | --bindir | --bindi | --bind | --bin | --bi)
967 ac_prev=bindir ;;
968 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
969 bindir=$ac_optarg ;;
970
971 -build | --build | --buil | --bui | --bu)
972 ac_prev=build_alias ;;
973 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974 build_alias=$ac_optarg ;;
975
976 -cache-file | --cache-file | --cache-fil | --cache-fi \
977 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978 ac_prev=cache_file ;;
979 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981 cache_file=$ac_optarg ;;
982
983 --config-cache | -C)
984 cache_file=config.cache ;;
985
986 -datadir | --datadir | --datadi | --datad)
987 ac_prev=datadir ;;
988 -datadir=* | --datadir=* | --datadi=* | --datad=*)
989 datadir=$ac_optarg ;;
990
991 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992 | --dataroo | --dataro | --datar)
993 ac_prev=datarootdir ;;
994 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996 datarootdir=$ac_optarg ;;
997
998 -disable-* | --disable-*)
999 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 as_fn_error "invalid feature name: $ac_useropt"
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1006 *"
1007 "enable_$ac_useropt"
1008 "*) ;;
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1011 esac
1012 eval enable_$ac_useropt=no ;;
1013
1014 -docdir | --docdir | --docdi | --doc | --do)
1015 ac_prev=docdir ;;
1016 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017 docdir=$ac_optarg ;;
1018
1019 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1020 ac_prev=dvidir ;;
1021 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022 dvidir=$ac_optarg ;;
1023
1024 -enable-* | --enable-*)
1025 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028 as_fn_error "invalid feature name: $ac_useropt"
1029 ac_useropt_orig=$ac_useropt
1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1032 *"
1033 "enable_$ac_useropt"
1034 "*) ;;
1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1036 ac_unrecognized_sep=', ';;
1037 esac
1038 eval enable_$ac_useropt=\$ac_optarg ;;
1039
1040 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1041 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1042 | --exec | --exe | --ex)
1043 ac_prev=exec_prefix ;;
1044 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1045 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1046 | --exec=* | --exe=* | --ex=*)
1047 exec_prefix=$ac_optarg ;;
1048
1049 -gas | --gas | --ga | --g)
1050 # Obsolete; use --with-gas.
1051 with_gas=yes ;;
1052
1053 -help | --help | --hel | --he | -h)
1054 ac_init_help=long ;;
1055 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1056 ac_init_help=recursive ;;
1057 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1058 ac_init_help=short ;;
1059
1060 -host | --host | --hos | --ho)
1061 ac_prev=host_alias ;;
1062 -host=* | --host=* | --hos=* | --ho=*)
1063 host_alias=$ac_optarg ;;
1064
1065 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1066 ac_prev=htmldir ;;
1067 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1068 | --ht=*)
1069 htmldir=$ac_optarg ;;
1070
1071 -includedir | --includedir | --includedi | --included | --include \
1072 | --includ | --inclu | --incl | --inc)
1073 ac_prev=includedir ;;
1074 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1075 | --includ=* | --inclu=* | --incl=* | --inc=*)
1076 includedir=$ac_optarg ;;
1077
1078 -infodir | --infodir | --infodi | --infod | --info | --inf)
1079 ac_prev=infodir ;;
1080 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1081 infodir=$ac_optarg ;;
1082
1083 -libdir | --libdir | --libdi | --libd)
1084 ac_prev=libdir ;;
1085 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1086 libdir=$ac_optarg ;;
1087
1088 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1089 | --libexe | --libex | --libe)
1090 ac_prev=libexecdir ;;
1091 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1092 | --libexe=* | --libex=* | --libe=*)
1093 libexecdir=$ac_optarg ;;
1094
1095 -localedir | --localedir | --localedi | --localed | --locale)
1096 ac_prev=localedir ;;
1097 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1098 localedir=$ac_optarg ;;
1099
1100 -localstatedir | --localstatedir | --localstatedi | --localstated \
1101 | --localstate | --localstat | --localsta | --localst | --locals)
1102 ac_prev=localstatedir ;;
1103 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1104 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1105 localstatedir=$ac_optarg ;;
1106
1107 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1108 ac_prev=mandir ;;
1109 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1110 mandir=$ac_optarg ;;
1111
1112 -nfp | --nfp | --nf)
1113 # Obsolete; use --without-fp.
1114 with_fp=no ;;
1115
1116 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1117 | --no-cr | --no-c | -n)
1118 no_create=yes ;;
1119
1120 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1121 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1122 no_recursion=yes ;;
1123
1124 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1125 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1126 | --oldin | --oldi | --old | --ol | --o)
1127 ac_prev=oldincludedir ;;
1128 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1129 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1130 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1131 oldincludedir=$ac_optarg ;;
1132
1133 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1134 ac_prev=prefix ;;
1135 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1136 prefix=$ac_optarg ;;
1137
1138 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1139 | --program-pre | --program-pr | --program-p)
1140 ac_prev=program_prefix ;;
1141 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1142 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1143 program_prefix=$ac_optarg ;;
1144
1145 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1146 | --program-suf | --program-su | --program-s)
1147 ac_prev=program_suffix ;;
1148 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1149 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1150 program_suffix=$ac_optarg ;;
1151
1152 -program-transform-name | --program-transform-name \
1153 | --program-transform-nam | --program-transform-na \
1154 | --program-transform-n | --program-transform- \
1155 | --program-transform | --program-transfor \
1156 | --program-transfo | --program-transf \
1157 | --program-trans | --program-tran \
1158 | --progr-tra | --program-tr | --program-t)
1159 ac_prev=program_transform_name ;;
1160 -program-transform-name=* | --program-transform-name=* \
1161 | --program-transform-nam=* | --program-transform-na=* \
1162 | --program-transform-n=* | --program-transform-=* \
1163 | --program-transform=* | --program-transfor=* \
1164 | --program-transfo=* | --program-transf=* \
1165 | --program-trans=* | --program-tran=* \
1166 | --progr-tra=* | --program-tr=* | --program-t=*)
1167 program_transform_name=$ac_optarg ;;
1168
1169 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1170 ac_prev=pdfdir ;;
1171 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1172 pdfdir=$ac_optarg ;;
1173
1174 -psdir | --psdir | --psdi | --psd | --ps)
1175 ac_prev=psdir ;;
1176 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1177 psdir=$ac_optarg ;;
1178
1179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1180 | -silent | --silent | --silen | --sile | --sil)
1181 silent=yes ;;
1182
1183 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1184 ac_prev=sbindir ;;
1185 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1186 | --sbi=* | --sb=*)
1187 sbindir=$ac_optarg ;;
1188
1189 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1190 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1191 | --sharedst | --shareds | --shared | --share | --shar \
1192 | --sha | --sh)
1193 ac_prev=sharedstatedir ;;
1194 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1195 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1196 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1197 | --sha=* | --sh=*)
1198 sharedstatedir=$ac_optarg ;;
1199
1200 -site | --site | --sit)
1201 ac_prev=site ;;
1202 -site=* | --site=* | --sit=*)
1203 site=$ac_optarg ;;
1204
1205 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1206 ac_prev=srcdir ;;
1207 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1208 srcdir=$ac_optarg ;;
1209
1210 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1211 | --syscon | --sysco | --sysc | --sys | --sy)
1212 ac_prev=sysconfdir ;;
1213 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1214 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1215 sysconfdir=$ac_optarg ;;
1216
1217 -target | --target | --targe | --targ | --tar | --ta | --t)
1218 ac_prev=target_alias ;;
1219 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1220 target_alias=$ac_optarg ;;
1221
1222 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1223 verbose=yes ;;
1224
1225 -version | --version | --versio | --versi | --vers | -V)
1226 ac_init_version=: ;;
1227
1228 -with-* | --with-*)
1229 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error "invalid package name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1236 *"
1237 "with_$ac_useropt"
1238 "*) ;;
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1241 esac
1242 eval with_$ac_useropt=\$ac_optarg ;;
1243
1244 -without-* | --without-*)
1245 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248 as_fn_error "invalid package name: $ac_useropt"
1249 ac_useropt_orig=$ac_useropt
1250 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1252 *"
1253 "with_$ac_useropt"
1254 "*) ;;
1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1256 ac_unrecognized_sep=', ';;
1257 esac
1258 eval with_$ac_useropt=no ;;
1259
1260 --x)
1261 # Obsolete; use --with-x.
1262 with_x=yes ;;
1263
1264 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1265 | --x-incl | --x-inc | --x-in | --x-i)
1266 ac_prev=x_includes ;;
1267 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1268 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1269 x_includes=$ac_optarg ;;
1270
1271 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1272 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1273 ac_prev=x_libraries ;;
1274 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1275 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1276 x_libraries=$ac_optarg ;;
1277
1278 -*) as_fn_error "unrecognized option: \`$ac_option'
1279 Try \`$0 --help' for more information."
1280 ;;
1281
1282 *=*)
1283 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1284 # Reject names that are not valid shell variable names.
1285 case $ac_envvar in #(
1286 '' | [0-9]* | *[!_$as_cr_alnum]* )
1287 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1288 esac
1289 eval $ac_envvar=\$ac_optarg
1290 export $ac_envvar ;;
1291
1292 *)
1293 # FIXME: should be removed in autoconf 3.0.
1294 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1295 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1298 ;;
1299
1300 esac
1301 done
1302
1303 if test -n "$ac_prev"; then
1304 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305 as_fn_error "missing argument to $ac_option"
1306 fi
1307
1308 if test -n "$ac_unrecognized_opts"; then
1309 case $enable_option_checking in
1310 no) ;;
1311 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1312 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1313 esac
1314 fi
1315
1316 # Check all directory arguments for consistency.
1317 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir
1321 do
1322 eval ac_val=\$$ac_var
1323 # Remove trailing slashes.
1324 case $ac_val in
1325 */ )
1326 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1327 eval $ac_var=\$ac_val;;
1328 esac
1329 # Be sure to have absolute directory names.
1330 case $ac_val in
1331 [\\/$]* | ?:[\\/]* ) continue;;
1332 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1333 esac
1334 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1335 done
1336
1337 # There might be people who depend on the old broken behavior: `$host'
1338 # used to hold the argument of --host etc.
1339 # FIXME: To remove some day.
1340 build=$build_alias
1341 host=$host_alias
1342 target=$target_alias
1343
1344 # FIXME: To remove some day.
1345 if test "x$host_alias" != x; then
1346 if test "x$build_alias" = x; then
1347 cross_compiling=maybe
1348 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1349 If a cross compiler is detected then cross compile mode will be used." >&2
1350 elif test "x$build_alias" != "x$host_alias"; then
1351 cross_compiling=yes
1352 fi
1353 fi
1354
1355 ac_tool_prefix=
1356 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1357
1358 test "$silent" = yes && exec 6>/dev/null
1359
1360
1361 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di=`ls -di .` &&
1363 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364 as_fn_error "working directory cannot be determined"
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366 as_fn_error "pwd does not report name of working directory"
1367
1368
1369 # Find the source files, if location was not specified.
1370 if test -z "$srcdir"; then
1371 ac_srcdir_defaulted=yes
1372 # Try the directory containing this script, then the parent directory.
1373 ac_confdir=`$as_dirname -- "$as_myself" ||
1374 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375 X"$as_myself" : 'X\(//\)[^/]' \| \
1376 X"$as_myself" : 'X\(//\)$' \| \
1377 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378 $as_echo X"$as_myself" |
1379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\/\)[^/].*/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\/\)$/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\).*/{
1392 s//\1/
1393 q
1394 }
1395 s/.*/./; q'`
1396 srcdir=$ac_confdir
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1398 srcdir=..
1399 fi
1400 else
1401 ac_srcdir_defaulted=no
1402 fi
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1406 fi
1407 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1408 ac_abs_confdir=`(
1409 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1410 pwd)`
1411 # When building in place, set srcdir=.
1412 if test "$ac_abs_confdir" = "$ac_pwd"; then
1413 srcdir=.
1414 fi
1415 # Remove unnecessary trailing slashes from srcdir.
1416 # Double slashes in file names in object file debugging info
1417 # mess up M-x gdb in Emacs.
1418 case $srcdir in
1419 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1420 esac
1421 for ac_var in $ac_precious_vars; do
1422 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_env_${ac_var}_value=\$${ac_var}
1424 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426 done
1427
1428 #
1429 # Report the --help message.
1430 #
1431 if test "$ac_init_help" = "long"; then
1432 # Omit some internal or obsolete options to make the list less imposing.
1433 # This message is too long to be a string in the A/UX 3.1 sh.
1434 cat <<_ACEOF
1435 \`configure' configures ldapcpplib to adapt to many kinds of systems.
1436
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1438
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE. See below for descriptions of some of the useful variables.
1441
1442 Defaults for the options are specified in brackets.
1443
1444 Configuration:
1445 -h, --help display this help and exit
1446 --help=short display options specific to this package
1447 --help=recursive display the short help of all the included packages
1448 -V, --version display version information and exit
1449 -q, --quiet, --silent do not print \`checking...' messages
1450 --cache-file=FILE cache test results in FILE [disabled]
1451 -C, --config-cache alias for \`--cache-file=config.cache'
1452 -n, --no-create do not create output files
1453 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1454
1455 Installation directories:
1456 --prefix=PREFIX install architecture-independent files in PREFIX
1457 [$ac_default_prefix]
1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1459 [PREFIX]
1460
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1465
1466 For better control, use the options below.
1467
1468 Fine tuning of the installation directories:
1469 --bindir=DIR user executables [EPREFIX/bin]
1470 --sbindir=DIR system admin executables [EPREFIX/sbin]
1471 --libexecdir=DIR program executables [EPREFIX/libexec]
1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1475 --libdir=DIR object code libraries [EPREFIX/lib]
1476 --includedir=DIR C header files [PREFIX/include]
1477 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1478 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1479 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1480 --infodir=DIR info documentation [DATAROOTDIR/info]
1481 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1482 --mandir=DIR man documentation [DATAROOTDIR/man]
1483 --docdir=DIR documentation root [DATAROOTDIR/doc/ldapcpplib]
1484 --htmldir=DIR html documentation [DOCDIR]
1485 --dvidir=DIR dvi documentation [DOCDIR]
1486 --pdfdir=DIR pdf documentation [DOCDIR]
1487 --psdir=DIR ps documentation [DOCDIR]
1488 _ACEOF
1489
1490 cat <<\_ACEOF
1491
1492 Program names:
1493 --program-prefix=PREFIX prepend PREFIX to installed program names
1494 --program-suffix=SUFFIX append SUFFIX to installed program names
1495 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1496
1497 System types:
1498 --build=BUILD configure for building on BUILD [guessed]
1499 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1500 _ACEOF
1501 fi
1502
1503 if test -n "$ac_init_help"; then
1504 case $ac_init_help in
1505 short | recursive ) echo "Configuration of ldapcpplib :";;
1506 esac
1507 cat <<\_ACEOF
1508
1509 Optional Features:
1510 --disable-option-checking ignore unrecognized --enable/--with options
1511 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1512 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1513 --disable-dependency-tracking speeds up one-time build
1514 --enable-dependency-tracking do not reject slow dependency extractors
1515 --enable-shared[=PKGS] build shared libraries [default=yes]
1516 --enable-static[=PKGS] build static libraries [default=yes]
1517 --enable-fast-install[=PKGS]
1518 optimize for fast installation [default=yes]
1519 --disable-libtool-lock avoid locking (might break parallel builds)
1520 --enable-debug
1521
1522 Optional Packages:
1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1525 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1526 --with-pic try to use only PIC/non-PIC objects [default=use
1527 both]
1528 --with-tags[=TAGS] include additional configurations [automatic]
1529 --with-libldap=DIR Path to the libldap library /usr/local/lib
1530 --with-ldap-includes=DIR Path to the libldap include files /usr/local/include
1531
1532 Some influential environment variables:
1533 CXX C++ compiler command
1534 CXXFLAGS C++ compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
1537 LIBS libraries to pass to the linker, e.g. -l<library>
1538 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539 you have headers in a nonstandard directory <include dir>
1540 CC C compiler command
1541 CFLAGS C compiler flags
1542 CPP C preprocessor
1543 CXXCPP C++ preprocessor
1544 F77 Fortran 77 compiler command
1545 FFLAGS Fortran 77 compiler flags
1546
1547 Use these variables to override the choices made by `configure' or to help
1548 it to find libraries and programs with nonstandard names/locations.
1549
1550 Report bugs to <http://www.openldap.org/its/ >.
1551 _ACEOF
1552 ac_status=$?
1553 fi
1554
1555 if test "$ac_init_help" = "recursive"; then
1556 # If there are subdirs, report their specific --help.
1557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558 test -d "$ac_dir" ||
1559 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1560 continue
1561 ac_builddir=.
1562
1563 case "$ac_dir" in
1564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *)
1566 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1567 # A ".." for each directory in $ac_dir_suffix.
1568 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1569 case $ac_top_builddir_sub in
1570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1572 esac ;;
1573 esac
1574 ac_abs_top_builddir=$ac_pwd
1575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576 # for backward compatibility:
1577 ac_top_builddir=$ac_top_build_prefix
1578
1579 case $srcdir in
1580 .) # We are building in place.
1581 ac_srcdir=.
1582 ac_top_srcdir=$ac_top_builddir_sub
1583 ac_abs_top_srcdir=$ac_pwd ;;
1584 [\\/]* | ?:[\\/]* ) # Absolute name.
1585 ac_srcdir=$srcdir$ac_dir_suffix;
1586 ac_top_srcdir=$srcdir
1587 ac_abs_top_srcdir=$srcdir ;;
1588 *) # Relative name.
1589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590 ac_top_srcdir=$ac_top_build_prefix$srcdir
1591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592 esac
1593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594
1595 cd "$ac_dir" || { ac_status=$?; continue; }
1596 # Check for guested configure.
1597 if test -f "$ac_srcdir/configure.gnu"; then
1598 echo &&
1599 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600 elif test -f "$ac_srcdir/configure"; then
1601 echo &&
1602 $SHELL "$ac_srcdir/configure" --help=recursive
1603 else
1604 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605 fi || ac_status=$?
1606 cd "$ac_pwd" || { ac_status=$?; break; }
1607 done
1608 fi
1609
1610 test -n "$ac_init_help" && exit $ac_status
1611 if $ac_init_version; then
1612 cat <<\_ACEOF
1613 ldapcpplib configure
1614 generated by GNU Autoconf 2.65
1615
1616 Copyright (C) 2009 Free Software Foundation, Inc.
1617 This configure script is free software; the Free Software Foundation
1618 gives unlimited permission to copy, distribute and modify it.
1619
1620 Copyright 2000-2016 The OpenLDAP Foundation. All rights reserved.
1621 Restrictions apply, see COPYRIGHT and LICENSE files.
1622 _ACEOF
1623 exit
1624 fi
1625
1626 ## ------------------------ ##
1627 ## Autoconf initialization. ##
1628 ## ------------------------ ##
1629
1630 # ac_fn_cxx_try_compile LINENO
1631 # ----------------------------
1632 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1633 ac_fn_cxx_try_compile ()
1634 {
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 rm -f conftest.$ac_objext
1637 if { { ac_try="$ac_compile"
1638 case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_compile") 2>conftest.err
1645 ac_status=$?
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1650 fi
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } && {
1653 test -z "$ac_cxx_werror_flag" ||
1654 test ! -s conftest.err
1655 } && test -s conftest.$ac_objext; then :
1656 ac_retval=0
1657 else
1658 $as_echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.$ac_ext >&5
1660
1661 ac_retval=1
1662 fi
1663 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1664 as_fn_set_status $ac_retval
1665
1666 } # ac_fn_cxx_try_compile
1667
1668 # ac_fn_c_try_compile LINENO
1669 # --------------------------
1670 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1671 ac_fn_c_try_compile ()
1672 {
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 rm -f conftest.$ac_objext
1675 if { { ac_try="$ac_compile"
1676 case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_compile") 2>conftest.err
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1688 fi
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && {
1691 test -z "$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 } && test -s conftest.$ac_objext; then :
1694 ac_retval=0
1695 else
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1698
1699 ac_retval=1
1700 fi
1701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1702 as_fn_set_status $ac_retval
1703
1704 } # ac_fn_c_try_compile
1705
1706 # ac_fn_c_try_link LINENO
1707 # -----------------------
1708 # Try to link conftest.$ac_ext, and return whether this succeeded.
1709 ac_fn_c_try_link ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 rm -f conftest.$ac_objext conftest$ac_exeext
1713 if { { ac_try="$ac_link"
1714 case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_link") 2>conftest.err
1721 ac_status=$?
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1726 fi
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && {
1729 test -z "$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 } && test -s conftest$ac_exeext && {
1732 test "$cross_compiling" = yes ||
1733 $as_test_x conftest$ac_exeext
1734 }; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740 ac_retval=1
1741 fi
1742 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1743 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1744 # interfere with the next link command; also delete a directory that is
1745 # left behind by Apple's compiler. We do this before executing the actions.
1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748 as_fn_set_status $ac_retval
1749
1750 } # ac_fn_c_try_link
1751
1752 # ac_fn_c_try_cpp LINENO
1753 # ----------------------
1754 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1755 ac_fn_c_try_cpp ()
1756 {
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 if { { ac_try="$ac_cpp conftest.$ac_ext"
1759 case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1762 esac
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1766 ac_status=$?
1767 if test -s conftest.err; then
1768 grep -v '^ *+' conftest.err >conftest.er1
1769 cat conftest.er1 >&5
1770 mv -f conftest.er1 conftest.err
1771 fi
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } >/dev/null && {
1774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1775 test ! -s conftest.err
1776 }; then :
1777 ac_retval=0
1778 else
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1781
1782 ac_retval=1
1783 fi
1784 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1785 as_fn_set_status $ac_retval
1786
1787 } # ac_fn_c_try_cpp
1788
1789 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1790 # -------------------------------------------------------
1791 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1792 # the include files in INCLUDES and setting the cache variable VAR
1793 # accordingly.
1794 ac_fn_c_check_header_mongrel ()
1795 {
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 $as_echo_n "checking for $2... " >&6; }
1800 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1801 $as_echo_n "(cached) " >&6
1802 fi
1803 eval ac_res=\$$3
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806 else
1807 # Is the header compilable?
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1809 $as_echo_n "checking $2 usability... " >&6; }
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1812 $4
1813 #include <$2>
1814 _ACEOF
1815 if ac_fn_c_try_compile "$LINENO"; then :
1816 ac_header_compiler=yes
1817 else
1818 ac_header_compiler=no
1819 fi
1820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1822 $as_echo "$ac_header_compiler" >&6; }
1823
1824 # Is the header present?
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1826 $as_echo_n "checking $2 presence... " >&6; }
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1829 #include <$2>
1830 _ACEOF
1831 if ac_fn_c_try_cpp "$LINENO"; then :
1832 ac_header_preproc=yes
1833 else
1834 ac_header_preproc=no
1835 fi
1836 rm -f conftest.err conftest.$ac_ext
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1838 $as_echo "$ac_header_preproc" >&6; }
1839
1840 # So? What about this header?
1841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1842 yes:no: )
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1844 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847 ;;
1848 no:yes:* )
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1850 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1852 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1854 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1856 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859 ( cat <<\_ASBOX
1860 ## -------------------------------------------- ##
1861 ## Report this to http://www.openldap.org/its/ ##
1862 ## -------------------------------------------- ##
1863 _ASBOX
1864 ) | sed "s/^/$as_me: WARNING: /" >&2
1865 ;;
1866 esac
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 $as_echo_n "checking for $2... " >&6; }
1869 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1870 $as_echo_n "(cached) " >&6
1871 else
1872 eval "$3=\$ac_header_compiler"
1873 fi
1874 eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 fi
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879
1880 } # ac_fn_c_check_header_mongrel
1881
1882 # ac_fn_c_try_run LINENO
1883 # ----------------------
1884 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1885 # that executables *can* be run.
1886 ac_fn_c_try_run ()
1887 {
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 if { { ac_try="$ac_link"
1890 case "(($ac_try" in
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_link") 2>&5
1897 ac_status=$?
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1900 { { case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_try") 2>&5
1907 ac_status=$?
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; }; }; then :
1910 ac_retval=0
1911 else
1912 $as_echo "$as_me: program exited with status $ac_status" >&5
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1915
1916 ac_retval=$ac_status
1917 fi
1918 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920 as_fn_set_status $ac_retval
1921
1922 } # ac_fn_c_try_run
1923
1924 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1925 # -------------------------------------------------------
1926 # Tests whether HEADER exists and can be compiled using the include files in
1927 # INCLUDES, setting the cache variable VAR accordingly.
1928 ac_fn_c_check_header_compile ()
1929 {
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 $as_echo_n "checking for $2... " >&6; }
1933 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1934 $as_echo_n "(cached) " >&6
1935 else
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1938 $4
1939 #include <$2>
1940 _ACEOF
1941 if ac_fn_c_try_compile "$LINENO"; then :
1942 eval "$3=yes"
1943 else
1944 eval "$3=no"
1945 fi
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 fi
1948 eval ac_res=\$$3
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1952
1953 } # ac_fn_c_check_header_compile
1954
1955 # ac_fn_c_check_func LINENO FUNC VAR
1956 # ----------------------------------
1957 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1958 ac_fn_c_check_func ()
1959 {
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964 $as_echo_n "(cached) " >&6
1965 else
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1968 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1970 #define $2 innocuous_$2
1971
1972 /* System header to define __stub macros and hopefully few prototypes,
1973 which can conflict with char $2 (); below.
1974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1975 <limits.h> exists even on freestanding compilers. */
1976
1977 #ifdef __STDC__
1978 # include <limits.h>
1979 #else
1980 # include <assert.h>
1981 #endif
1982
1983 #undef $2
1984
1985 /* Override any GCC internal prototype to avoid an error.
1986 Use char because int might match the return type of a GCC
1987 builtin and then its argument prototype would still apply. */
1988 #ifdef __cplusplus
1989 extern "C"
1990 #endif
1991 char $2 ();
1992 /* The GNU C library defines this for functions which it implements
1993 to always fail with ENOSYS. Some functions are actually named
1994 something starting with __ and the normal name is an alias. */
1995 #if defined __stub_$2 || defined __stub___$2
1996 choke me
1997 #endif
1998
1999 int
2000 main ()
2001 {
2002 return $2 ();
2003 ;
2004 return 0;
2005 }
2006 _ACEOF
2007 if ac_fn_c_try_link "$LINENO"; then :
2008 eval "$3=yes"
2009 else
2010 eval "$3=no"
2011 fi
2012 rm -f core conftest.err conftest.$ac_objext \
2013 conftest$ac_exeext conftest.$ac_ext
2014 fi
2015 eval ac_res=\$$3
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 $as_echo "$ac_res" >&6; }
2018 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2019
2020 } # ac_fn_c_check_func
2021
2022 # ac_fn_cxx_try_cpp LINENO
2023 # ------------------------
2024 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2025 ac_fn_cxx_try_cpp ()
2026 {
2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028 if { { ac_try="$ac_cpp conftest.$ac_ext"
2029 case "(($ac_try" in
2030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2031 *) ac_try_echo=$ac_try;;
2032 esac
2033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2034 $as_echo "$ac_try_echo"; } >&5
2035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2036 ac_status=$?
2037 if test -s conftest.err; then
2038 grep -v '^ *+' conftest.err >conftest.er1
2039 cat conftest.er1 >&5
2040 mv -f conftest.er1 conftest.err
2041 fi
2042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2043 test $ac_status = 0; } >/dev/null && {
2044 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2045 test ! -s conftest.err
2046 }; then :
2047 ac_retval=0
2048 else
2049 $as_echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2051
2052 ac_retval=1
2053 fi
2054 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2055 as_fn_set_status $ac_retval
2056
2057 } # ac_fn_cxx_try_cpp
2058
2059 # ac_fn_cxx_try_link LINENO
2060 # -------------------------
2061 # Try to link conftest.$ac_ext, and return whether this succeeded.
2062 ac_fn_cxx_try_link ()
2063 {
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 rm -f conftest.$ac_objext conftest$ac_exeext
2066 if { { ac_try="$ac_link"
2067 case "(($ac_try" in
2068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069 *) ac_try_echo=$ac_try;;
2070 esac
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 $as_echo "$ac_try_echo"; } >&5
2073 (eval "$ac_link") 2>conftest.err
2074 ac_status=$?
2075 if test -s conftest.err; then
2076 grep -v '^ *+' conftest.err >conftest.er1
2077 cat conftest.er1 >&5
2078 mv -f conftest.er1 conftest.err
2079 fi
2080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081 test $ac_status = 0; } && {
2082 test -z "$ac_cxx_werror_flag" ||
2083 test ! -s conftest.err
2084 } && test -s conftest$ac_exeext && {
2085 test "$cross_compiling" = yes ||
2086 $as_test_x conftest$ac_exeext
2087 }; then :
2088 ac_retval=0
2089 else
2090 $as_echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2092
2093 ac_retval=1
2094 fi
2095 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2096 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2097 # interfere with the next link command; also delete a directory that is
2098 # left behind by Apple's compiler. We do this before executing the actions.
2099 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2100 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2101 as_fn_set_status $ac_retval
2102
2103 } # ac_fn_cxx_try_link
2104
2105 # ac_fn_f77_try_compile LINENO
2106 # ----------------------------
2107 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2108 ac_fn_f77_try_compile ()
2109 {
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 rm -f conftest.$ac_objext
2112 if { { ac_try="$ac_compile"
2113 case "(($ac_try" in
2114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115 *) ac_try_echo=$ac_try;;
2116 esac
2117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2118 $as_echo "$ac_try_echo"; } >&5
2119 (eval "$ac_compile") 2>conftest.err
2120 ac_status=$?
2121 if test -s conftest.err; then
2122 grep -v '^ *+' conftest.err >conftest.er1
2123 cat conftest.er1 >&5
2124 mv -f conftest.er1 conftest.err
2125 fi
2126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2127 test $ac_status = 0; } && {
2128 test -z "$ac_f77_werror_flag" ||
2129 test ! -s conftest.err
2130 } && test -s conftest.$ac_objext; then :
2131 ac_retval=0
2132 else
2133 $as_echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.$ac_ext >&5
2135
2136 ac_retval=1
2137 fi
2138 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2139 as_fn_set_status $ac_retval
2140
2141 } # ac_fn_f77_try_compile
2142
2143 # ac_fn_f77_try_link LINENO
2144 # -------------------------
2145 # Try to link conftest.$ac_ext, and return whether this succeeded.
2146 ac_fn_f77_try_link ()
2147 {
2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149 rm -f conftest.$ac_objext conftest$ac_exeext
2150 if { { ac_try="$ac_link"
2151 case "(($ac_try" in
2152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153 *) ac_try_echo=$ac_try;;
2154 esac
2155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2156 $as_echo "$ac_try_echo"; } >&5
2157 (eval "$ac_link") 2>conftest.err
2158 ac_status=$?
2159 if test -s conftest.err; then
2160 grep -v '^ *+' conftest.err >conftest.er1
2161 cat conftest.er1 >&5
2162 mv -f conftest.er1 conftest.err
2163 fi
2164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2165 test $ac_status = 0; } && {
2166 test -z "$ac_f77_werror_flag" ||
2167 test ! -s conftest.err
2168 } && test -s conftest$ac_exeext && {
2169 test "$cross_compiling" = yes ||
2170 $as_test_x conftest$ac_exeext
2171 }; then :
2172 ac_retval=0
2173 else
2174 $as_echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2176
2177 ac_retval=1
2178 fi
2179 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2180 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2181 # interfere with the next link command; also delete a directory that is
2182 # left behind by Apple's compiler. We do this before executing the actions.
2183 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2184 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2185 as_fn_set_status $ac_retval
2186
2187 } # ac_fn_f77_try_link
2188 cat >config.log <<_ACEOF
2189 This file contains any messages produced by compilers while
2190 running configure, to aid debugging if configure makes a mistake.
2191
2192 It was created by ldapcpplib $as_me , which was
2193 generated by GNU Autoconf 2.65. Invocation command line was
2194
2195 $ $0 $@
2196
2197 _ACEOF
2198 exec 5>>config.log
2199 {
2200 cat <<_ASUNAME
2201 ## --------- ##
2202 ## Platform. ##
2203 ## --------- ##
2204
2205 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2206 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2207 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2208 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2209 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2210
2211 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2212 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2213
2214 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2215 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2216 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2217 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2218 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2219 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2220 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2221
2222 _ASUNAME
2223
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2226 do
2227 IFS=$as_save_IFS
2228 test -z "$as_dir" && as_dir=.
2229 $as_echo "PATH: $as_dir"
2230 done
2231 IFS=$as_save_IFS
2232
2233 } >&5
2234
2235 cat >&5 <<_ACEOF
2236
2237
2238 ## ----------- ##
2239 ## Core tests. ##
2240 ## ----------- ##
2241
2242 _ACEOF
2243
2244
2245 # Keep a trace of the command line.
2246 # Strip out --no-create and --no-recursion so they do not pile up.
2247 # Strip out --silent because we don't want to record it for future runs.
2248 # Also quote any args containing shell meta-characters.
2249 # Make two passes to allow for proper duplicate-argument suppression.
2250 ac_configure_args=
2251 ac_configure_args0=
2252 ac_configure_args1=
2253 ac_must_keep_next=false
2254 for ac_pass in 1 2
2255 do
2256 for ac_arg
2257 do
2258 case $ac_arg in
2259 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2261 | -silent | --silent | --silen | --sile | --sil)
2262 continue ;;
2263 *\'*)
2264 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2265 esac
2266 case $ac_pass in
2267 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2268 2)
2269 as_fn_append ac_configure_args1 " '$ac_arg'"
2270 if test $ac_must_keep_next = true; then
2271 ac_must_keep_next=false # Got value, back to normal.
2272 else
2273 case $ac_arg in
2274 *=* | --config-cache | -C | -disable-* | --disable-* \
2275 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2276 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2277 | -with-* | --with-* | -without-* | --without-* | --x)
2278 case "$ac_configure_args0 " in
2279 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2280 esac
2281 ;;
2282 -* ) ac_must_keep_next=true ;;
2283 esac
2284 fi
2285 as_fn_append ac_configure_args " '$ac_arg'"
2286 ;;
2287 esac
2288 done
2289 done
2290 { ac_configure_args0=; unset ac_configure_args0;}
2291 { ac_configure_args1=; unset ac_configure_args1;}
2292
2293 # When interrupted or exit'd, cleanup temporary files, and complete
2294 # config.log. We remove comments because anyway the quotes in there
2295 # would cause problems or look ugly.
2296 # WARNING: Use '\'' to represent an apostrophe within the trap.
2297 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2298 trap 'exit_status=$?
2299 # Save into config.log some information that might help in debugging.
2300 {
2301 echo
2302
2303 cat <<\_ASBOX
2304 ## ---------------- ##
2305 ## Cache variables. ##
2306 ## ---------------- ##
2307 _ASBOX
2308 echo
2309 # The following way of writing the cache mishandles newlines in values,
2310 (
2311 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2312 eval ac_val=\$$ac_var
2313 case $ac_val in #(
2314 *${as_nl}*)
2315 case $ac_var in #(
2316 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2317 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2318 esac
2319 case $ac_var in #(
2320 _ | IFS | as_nl) ;; #(
2321 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2322 *) { eval $ac_var=; unset $ac_var;} ;;
2323 esac ;;
2324 esac
2325 done
2326 (set) 2>&1 |
2327 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2328 *${as_nl}ac_space=\ *)
2329 sed -n \
2330 "s/'\''/'\''\\\\'\'''\''/g;
2331 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2332 ;; #(
2333 *)
2334 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2335 ;;
2336 esac |
2337 sort
2338 )
2339 echo
2340
2341 cat <<\_ASBOX
2342 ## ----------------- ##
2343 ## Output variables. ##
2344 ## ----------------- ##
2345 _ASBOX
2346 echo
2347 for ac_var in $ac_subst_vars
2348 do
2349 eval ac_val=\$$ac_var
2350 case $ac_val in
2351 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2352 esac
2353 $as_echo "$ac_var='\''$ac_val'\''"
2354 done | sort
2355 echo
2356
2357 if test -n "$ac_subst_files"; then
2358 cat <<\_ASBOX
2359 ## ------------------- ##
2360 ## File substitutions. ##
2361 ## ------------------- ##
2362 _ASBOX
2363 echo
2364 for ac_var in $ac_subst_files
2365 do
2366 eval ac_val=\$$ac_var
2367 case $ac_val in
2368 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2369 esac
2370 $as_echo "$ac_var='\''$ac_val'\''"
2371 done | sort
2372 echo
2373 fi
2374
2375 if test -s confdefs.h; then
2376 cat <<\_ASBOX
2377 ## ----------- ##
2378 ## confdefs.h. ##
2379 ## ----------- ##
2380 _ASBOX
2381 echo
2382 cat confdefs.h
2383 echo
2384 fi
2385 test "$ac_signal" != 0 &&
2386 $as_echo "$as_me: caught signal $ac_signal"
2387 $as_echo "$as_me: exit $exit_status"
2388 } >&5
2389 rm -f core *.core core.conftest.* &&
2390 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2391 exit $exit_status
2392 ' 0
2393 for ac_signal in 1 2 13 15; do
2394 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2395 done
2396 ac_signal=0
2397
2398 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2399 rm -f -r conftest* confdefs.h
2400
2401 $as_echo "/* confdefs.h */" > confdefs.h
2402
2403 # Predefined preprocessor variables.
2404
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_NAME "$PACKAGE_NAME"
2407 _ACEOF
2408
2409 cat >>confdefs.h <<_ACEOF
2410 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2411 _ACEOF
2412
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2415 _ACEOF
2416
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_STRING "$PACKAGE_STRING"
2419 _ACEOF
2420
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2423 _ACEOF
2424
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE_URL "$PACKAGE_URL"
2427 _ACEOF
2428
2429
2430 # Let the site file select an alternate cache file if it wants to.
2431 # Prefer an explicitly selected file to automatically selected ones.
2432 ac_site_file1=NONE
2433 ac_site_file2=NONE
2434 if test -n "$CONFIG_SITE"; then
2435 ac_site_file1=$CONFIG_SITE
2436 elif test "x$prefix" != xNONE; then
2437 ac_site_file1=$prefix/share/config.site
2438 ac_site_file2=$prefix/etc/config.site
2439 else
2440 ac_site_file1=$ac_default_prefix/share/config.site
2441 ac_site_file2=$ac_default_prefix/etc/config.site
2442 fi
2443 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2444 do
2445 test "x$ac_site_file" = xNONE && continue
2446 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2448 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2449 sed 's/^/| /' "$ac_site_file" >&5
2450 . "$ac_site_file"
2451 fi
2452 done
2453
2454 if test -r "$cache_file"; then
2455 # Some versions of bash will fail to source /dev/null (special files
2456 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2457 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2459 $as_echo "$as_me: loading cache $cache_file" >&6;}
2460 case $cache_file in
2461 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2462 *) . "./$cache_file";;
2463 esac
2464 fi
2465 else
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2467 $as_echo "$as_me: creating cache $cache_file" >&6;}
2468 >$cache_file
2469 fi
2470
2471 # Check that the precious variables saved in the cache have kept the same
2472 # value.
2473 ac_cache_corrupted=false
2474 for ac_var in $ac_precious_vars; do
2475 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2476 eval ac_new_set=\$ac_env_${ac_var}_set
2477 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2478 eval ac_new_val=\$ac_env_${ac_var}_value
2479 case $ac_old_set,$ac_new_set in
2480 set,)
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2482 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2483 ac_cache_corrupted=: ;;
2484 ,set)
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2486 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2487 ac_cache_corrupted=: ;;
2488 ,);;
2489 *)
2490 if test "x$ac_old_val" != "x$ac_new_val"; then
2491 # differences in whitespace do not lead to failure.
2492 ac_old_val_w=`echo x $ac_old_val`
2493 ac_new_val_w=`echo x $ac_new_val`
2494 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2496 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2497 ac_cache_corrupted=:
2498 else
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2500 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2501 eval $ac_var=\$ac_old_val
2502 fi
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2504 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2506 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2507 fi;;
2508 esac
2509 # Pass precious variables to config.status.
2510 if test "$ac_new_set" = set; then
2511 case $ac_new_val in
2512 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2513 *) ac_arg=$ac_var=$ac_new_val ;;
2514 esac
2515 case " $ac_configure_args " in
2516 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2517 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2518 esac
2519 fi
2520 done
2521 if $ac_cache_corrupted; then
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2525 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2526 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2527 fi
2528 ## -------------------- ##
2529 ## Main body of script. ##
2530 ## -------------------- ##
2531
2532 ac_ext=c
2533 ac_cpp='$CPP $CPPFLAGS'
2534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2537
2538
2539
2540 am__api_version='1.10'
2541
2542 ac_aux_dir=
2543 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2544 for ac_t in install-sh install.sh shtool; do
2545 if test -f "$ac_dir/$ac_t"; then
2546 ac_aux_dir=$ac_dir
2547 ac_install_sh="$ac_aux_dir/$ac_t -c"
2548 break 2
2549 fi
2550 done
2551 done
2552 if test -z "$ac_aux_dir"; then
2553 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2554 fi
2555
2556 # These three variables are undocumented and unsupported,
2557 # and are intended to be withdrawn in a future Autoconf release.
2558 # They can cause serious problems if a builder's source tree is in a directory
2559 # whose full name contains unusual characters.
2560 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2561 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2562 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2563
2564
2565 # Find a good install program. We prefer a C program (faster),
2566 # so one script is as good as another. But avoid the broken or
2567 # incompatible versions:
2568 # SysV /etc/install, /usr/sbin/install
2569 # SunOS /usr/etc/install
2570 # IRIX /sbin/install
2571 # AIX /bin/install
2572 # AmigaOS /C/install, which installs bootblocks on floppy discs
2573 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2574 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2575 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2576 # OS/2's system install, which has a completely different semantic
2577 # ./install, which can be erroneously created by make from ./install.sh.
2578 # Reject install programs that cannot install multiple files.
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2580 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2581 if test -z "$INSTALL"; then
2582 if test "${ac_cv_path_install+set}" = set; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 for as_dir in $PATH
2587 do
2588 IFS=$as_save_IFS
2589 test -z "$as_dir" && as_dir=.
2590 # Account for people who put trailing slashes in PATH elements.
2591 case $as_dir/ in #((
2592 ./ | .// | /[cC]/* | \
2593 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2594 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2595 /usr/ucb/* ) ;;
2596 *)
2597 # OSF1 and SCO ODT 3.0 have their own names for install.
2598 # Don't use installbsd from OSF since it installs stuff as root
2599 # by default.
2600 for ac_prog in ginstall scoinst install; do
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2603 if test $ac_prog = install &&
2604 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2605 # AIX install. It has an incompatible calling convention.
2606 :
2607 elif test $ac_prog = install &&
2608 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2609 # program-specific install script used by HP pwplus--don't use.
2610 :
2611 else
2612 rm -rf conftest.one conftest.two conftest.dir
2613 echo one > conftest.one
2614 echo two > conftest.two
2615 mkdir conftest.dir
2616 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2617 test -s conftest.one && test -s conftest.two &&
2618 test -s conftest.dir/conftest.one &&
2619 test -s conftest.dir/conftest.two
2620 then
2621 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2622 break 3
2623 fi
2624 fi
2625 fi
2626 done
2627 done
2628 ;;
2629 esac
2630
2631 done
2632 IFS=$as_save_IFS
2633
2634 rm -rf conftest.one conftest.two conftest.dir
2635
2636 fi
2637 if test "${ac_cv_path_install+set}" = set; then
2638 INSTALL=$ac_cv_path_install
2639 else
2640 # As a last resort, use the slow shell script. Don't cache a
2641 # value for INSTALL within a source directory, because that will
2642 # break other packages using the cache if that directory is
2643 # removed, or if the value is a relative name.
2644 INSTALL=$ac_install_sh
2645 fi
2646 fi
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2648 $as_echo "$INSTALL" >&6; }
2649
2650 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2651 # It thinks the first close brace ends the variable substitution.
2652 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2653
2654 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2655
2656 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2657
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2659 $as_echo_n "checking whether build environment is sane... " >&6; }
2660 # Just in case
2661 sleep 1
2662 echo timestamp > conftest.file
2663 # Do `set' in a subshell so we don't clobber the current shell's
2664 # arguments. Must try -L first in case configure is actually a
2665 # symlink; some systems play weird games with the mod time of symlinks
2666 # (eg FreeBSD returns the mod time of the symlink's containing
2667 # directory).
2668 if (
2669 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2670 if test "$*" = "X"; then
2671 # -L didn't work.
2672 set X `ls -t $srcdir/configure conftest.file`
2673 fi
2674 rm -f conftest.file
2675 if test "$*" != "X $srcdir/configure conftest.file" \
2676 && test "$*" != "X conftest.file $srcdir/configure"; then
2677
2678 # If neither matched, then we have a broken ls. This can happen
2679 # if, for instance, CONFIG_SHELL is bash and it inherits a
2680 # broken ls alias from the environment. This has actually
2681 # happened. Such a system could not be considered "sane".
2682 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2683 alias in your environment" "$LINENO" 5
2684 fi
2685
2686 test "$2" = conftest.file
2687 )
2688 then
2689 # Ok.
2690 :
2691 else
2692 as_fn_error "newly created file is older than distributed files!
2693 Check your system clock" "$LINENO" 5
2694 fi
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2696 $as_echo "yes" >&6; }
2697 test "$program_prefix" != NONE &&
2698 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2699 # Use a double $ so make ignores it.
2700 test "$program_suffix" != NONE &&
2701 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2702 # Double any \ or $.
2703 # By default was `s,x,x', remove it if useless.
2704 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2705 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2706
2707 # expand $ac_aux_dir to an absolute path
2708 am_aux_dir=`cd $ac_aux_dir && pwd`
2709
2710 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2711 # Use eval to expand $SHELL
2712 if eval "$MISSING --run true"; then
2713 am_missing_run="$MISSING --run "
2714 else
2715 am_missing_run=
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2717 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2718 fi
2719
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2721 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2722 if test -z "$MKDIR_P"; then
2723 if test "${ac_cv_path_mkdir+set}" = set; then :
2724 $as_echo_n "(cached) " >&6
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2728 do
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_prog in mkdir gmkdir; do
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2734 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2735 'mkdir (GNU coreutils) '* | \
2736 'mkdir (coreutils) '* | \
2737 'mkdir (fileutils) '4.1*)
2738 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2739 break 3;;
2740 esac
2741 done
2742 done
2743 done
2744 IFS=$as_save_IFS
2745
2746 fi
2747
2748 test -d ./--version && rmdir ./--version
2749 if test "${ac_cv_path_mkdir+set}" = set; then
2750 MKDIR_P="$ac_cv_path_mkdir -p"
2751 else
2752 # As a last resort, use the slow shell script. Don't cache a
2753 # value for MKDIR_P within a source directory, because that will
2754 # break other packages using the cache if that directory is
2755 # removed, or if the value is a relative name.
2756 MKDIR_P="$ac_install_sh -d"
2757 fi
2758 fi
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2760 $as_echo "$MKDIR_P" >&6; }
2761
2762 mkdir_p="$MKDIR_P"
2763 case $mkdir_p in
2764 [\\/$]* | ?:[\\/]*) ;;
2765 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2766 esac
2767
2768 for ac_prog in gawk mawk nawk awk
2769 do
2770 # Extract the first word of "$ac_prog", so it can be a program name with args.
2771 set dummy $ac_prog; ac_word=$2
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773 $as_echo_n "checking for $ac_word... " >&6; }
2774 if test "${ac_cv_prog_AWK+set}" = set; then :
2775 $as_echo_n "(cached) " >&6
2776 else
2777 if test -n "$AWK"; then
2778 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2787 ac_cv_prog_AWK="$ac_prog"
2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791 done
2792 done
2793 IFS=$as_save_IFS
2794
2795 fi
2796 fi
2797 AWK=$ac_cv_prog_AWK
2798 if test -n "$AWK"; then
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2800 $as_echo "$AWK" >&6; }
2801 else
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 $as_echo "no" >&6; }
2804 fi
2805
2806
2807 test -n "$AWK" && break
2808 done
2809
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2811 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2812 set x ${MAKE-make}
2813 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2814 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2815 $as_echo_n "(cached) " >&6
2816 else
2817 cat >conftest.make <<\_ACEOF
2818 SHELL = /bin/sh
2819 all:
2820 @echo '@@@%%%=$(MAKE)=@@@%%%'
2821 _ACEOF
2822 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2823 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2824 *@@@%%%=?*=@@@%%%*)
2825 eval ac_cv_prog_make_${ac_make}_set=yes;;
2826 *)
2827 eval ac_cv_prog_make_${ac_make}_set=no;;
2828 esac
2829 rm -f conftest.make
2830 fi
2831 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2833 $as_echo "yes" >&6; }
2834 SET_MAKE=
2835 else
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2838 SET_MAKE="MAKE=${MAKE-make}"
2839 fi
2840
2841 rm -rf .tst 2>/dev/null
2842 mkdir .tst 2>/dev/null
2843 if test -d .tst; then
2844 am__leading_dot=.
2845 else
2846 am__leading_dot=_
2847 fi
2848 rmdir .tst 2>/dev/null
2849
2850 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2851 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2852 # is not polluted with repeated "-I."
2853 am__isrc=' -I$(srcdir)'
2854 # test to see if srcdir already configured
2855 if test -f $srcdir/config.status; then
2856 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2857 fi
2858 fi
2859
2860 # test whether we have cygpath
2861 if test -z "$CYGPATH_W"; then
2862 if (cygpath --version) >/dev/null 2>/dev/null; then
2863 CYGPATH_W='cygpath -w'
2864 else
2865 CYGPATH_W=echo
2866 fi
2867 fi
2868
2869
2870 # Define the identity of the package.
2871 PACKAGE='ldapcpplib'
2872 VERSION=' '
2873
2874
2875 cat >>confdefs.h <<_ACEOF
2876 #define PACKAGE "$PACKAGE"
2877 _ACEOF
2878
2879
2880 cat >>confdefs.h <<_ACEOF
2881 #define VERSION "$VERSION"
2882 _ACEOF
2883
2884 # Some tools Automake needs.
2885
2886 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2887
2888
2889 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2890
2891
2892 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2893
2894
2895 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2896
2897
2898 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2899
2900 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2901
2902 # Installed binaries are usually stripped using `strip' when the user
2903 # run `make install-strip'. However `strip' might not be the right
2904 # tool to use in cross-compilation environments, therefore Automake
2905 # will honor the `STRIP' environment variable to overrule this program.
2906 if test "$cross_compiling" != no; then
2907 if test -n "$ac_tool_prefix"; then
2908 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2909 set dummy ${ac_tool_prefix}strip; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if test "${ac_cv_prog_STRIP+set}" = set; then :
2913 $as_echo_n "(cached) " >&6
2914 else
2915 if test -n "$STRIP"; then
2916 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929 done
2930 done
2931 IFS=$as_save_IFS
2932
2933 fi
2934 fi
2935 STRIP=$ac_cv_prog_STRIP
2936 if test -n "$STRIP"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2938 $as_echo "$STRIP" >&6; }
2939 else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2942 fi
2943
2944
2945 fi
2946 if test -z "$ac_cv_prog_STRIP"; then
2947 ac_ct_STRIP=$STRIP
2948 # Extract the first word of "strip", so it can be a program name with args.
2949 set dummy strip; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 if test -n "$ac_ct_STRIP"; then
2956 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2957 else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2960 do
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2965 ac_cv_prog_ac_ct_STRIP="strip"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 break 2
2968 fi
2969 done
2970 done
2971 IFS=$as_save_IFS
2972
2973 fi
2974 fi
2975 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2976 if test -n "$ac_ct_STRIP"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2978 $as_echo "$ac_ct_STRIP" >&6; }
2979 else
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2982 fi
2983
2984 if test "x$ac_ct_STRIP" = x; then
2985 STRIP=":"
2986 else
2987 case $cross_compiling:$ac_tool_warned in
2988 yes:)
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2991 ac_tool_warned=yes ;;
2992 esac
2993 STRIP=$ac_ct_STRIP
2994 fi
2995 else
2996 STRIP="$ac_cv_prog_STRIP"
2997 fi
2998
2999 fi
3000 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3001
3002 # We need awk for the "check" target. The system "awk" is bad on
3003 # some platforms.
3004 # Always define AMTAR for backward compatibility.
3005
3006 AMTAR=${AMTAR-"${am_missing_run}tar"}
3007
3008 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3009
3010
3011
3012
3013
3014 ac_config_headers="$ac_config_headers src/config.h"
3015
3016
3017 eval `$ac_aux_dir/version.sh`
3018 if test -z "$OL_CPP_API_RELEASE"; then
3019 as_fn_error "could not determine version" "$LINENO" 5
3020 fi
3021
3022 VERSION=$OL_CPP_API_RELEASE
3023 OPENLDAP_CPP_API_VERSION=$OL_CPP_API_VERSION
3024
3025
3026
3027 ac_ext=cpp
3028 ac_cpp='$CXXCPP $CPPFLAGS'
3029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3032 if test -z "$CXX"; then
3033 if test -n "$CCC"; then
3034 CXX=$CCC
3035 else
3036 if test -n "$ac_tool_prefix"; then
3037 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3038 do
3039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if test "${ac_cv_prog_CXX+set}" = set; then :
3044 $as_echo_n "(cached) " >&6
3045 else
3046 if test -n "$CXX"; then
3047 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3048 else
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH
3051 do
3052 IFS=$as_save_IFS
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3056 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 break 2
3059 fi
3060 done
3061 done
3062 IFS=$as_save_IFS
3063
3064 fi
3065 fi
3066 CXX=$ac_cv_prog_CXX
3067 if test -n "$CXX"; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3069 $as_echo "$CXX" >&6; }
3070 else
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3073 fi
3074
3075
3076 test -n "$CXX" && break
3077 done
3078 fi
3079 if test -z "$CXX"; then
3080 ac_ct_CXX=$CXX
3081 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3082 do
3083 # Extract the first word of "$ac_prog", so it can be a program name with args.
3084 set dummy $ac_prog; ac_word=$2
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086 $as_echo_n "checking for $ac_word... " >&6; }
3087 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3088 $as_echo_n "(cached) " >&6
3089 else
3090 if test -n "$ac_ct_CXX"; then
3091 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3092 else
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH
3095 do
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3100 ac_cv_prog_ac_ct_CXX="$ac_prog"
3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 break 2
3103 fi
3104 done
3105 done
3106 IFS=$as_save_IFS
3107
3108 fi
3109 fi
3110 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3111 if test -n "$ac_ct_CXX"; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3113 $as_echo "$ac_ct_CXX" >&6; }
3114 else
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3117 fi
3118
3119
3120 test -n "$ac_ct_CXX" && break
3121 done
3122
3123 if test "x$ac_ct_CXX" = x; then
3124 CXX="g++"
3125 else
3126 case $cross_compiling:$ac_tool_warned in
3127 yes:)
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3130 ac_tool_warned=yes ;;
3131 esac
3132 CXX=$ac_ct_CXX
3133 fi
3134 fi
3135
3136 fi
3137 fi
3138 # Provide some information about the compiler.
3139 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3140 set X $ac_compile
3141 ac_compiler=$2
3142 for ac_option in --version -v -V -qversion; do
3143 { { ac_try="$ac_compiler $ac_option >&5"
3144 case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147 esac
3148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149 $as_echo "$ac_try_echo"; } >&5
3150 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3151 ac_status=$?
3152 if test -s conftest.err; then
3153 sed '10a\
3154 ... rest of stderr output deleted ...
3155 10q' conftest.err >conftest.er1
3156 cat conftest.er1 >&5
3157 fi
3158 rm -f conftest.er1 conftest.err
3159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3160 test $ac_status = 0; }
3161 done
3162
3163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164 /* end confdefs.h. */
3165
3166 int
3167 main ()
3168 {
3169
3170 ;
3171 return 0;
3172 }
3173 _ACEOF
3174 ac_clean_files_save=$ac_clean_files
3175 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3176 # Try to create an executable without -o first, disregard a.out.
3177 # It will help us diagnose broken compilers, and finding out an intuition
3178 # of exeext.
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3180 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3181 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3182
3183 # The possible output files:
3184 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3185
3186 ac_rmfiles=
3187 for ac_file in $ac_files
3188 do
3189 case $ac_file in
3190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3191 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3192 esac
3193 done
3194 rm -f $ac_rmfiles
3195
3196 if { { ac_try="$ac_link_default"
3197 case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202 $as_echo "$ac_try_echo"; } >&5
3203 (eval "$ac_link_default") 2>&5
3204 ac_status=$?
3205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206 test $ac_status = 0; }; then :
3207 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3208 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3209 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3210 # so that the user can short-circuit this test for compilers unknown to
3211 # Autoconf.
3212 for ac_file in $ac_files ''
3213 do
3214 test -f "$ac_file" || continue
3215 case $ac_file in
3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3217 ;;
3218 [ab].out )
3219 # We found the default executable, but exeext='' is most
3220 # certainly right.
3221 break;;
3222 *.* )
3223 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3224 then :; else
3225 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3226 fi
3227 # We set ac_cv_exeext here because the later test for it is not
3228 # safe: cross compilers may not add the suffix if given an `-o'
3229 # argument, so we may need to know it at that point already.
3230 # Even if this section looks crufty: it has the advantage of
3231 # actually working.
3232 break;;
3233 * )
3234 break;;
3235 esac
3236 done
3237 test "$ac_cv_exeext" = no && ac_cv_exeext=
3238
3239 else
3240 ac_file=''
3241 fi
3242 if test -z "$ac_file"; then :
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3245 $as_echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3247
3248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250 { as_fn_set_status 77
3251 as_fn_error "C++ compiler cannot create executables
3252 See \`config.log' for more details." "$LINENO" 5; }; }
3253 else
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3255 $as_echo "yes" >&6; }
3256 fi
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3258 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3260 $as_echo "$ac_file" >&6; }
3261 ac_exeext=$ac_cv_exeext
3262
3263 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3264 ac_clean_files=$ac_clean_files_save
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3266 $as_echo_n "checking for suffix of executables... " >&6; }
3267 if { { ac_try="$ac_link"
3268 case "(($ac_try" in
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3271 esac
3272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273 $as_echo "$ac_try_echo"; } >&5
3274 (eval "$ac_link") 2>&5
3275 ac_status=$?
3276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277 test $ac_status = 0; }; then :
3278 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3279 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3280 # work properly (i.e., refer to `conftest.exe'), while it won't with
3281 # `rm'.
3282 for ac_file in conftest.exe conftest conftest.*; do
3283 test -f "$ac_file" || continue
3284 case $ac_file in
3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3286 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3287 break;;
3288 * ) break;;
3289 esac
3290 done
3291 else
3292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 as_fn_error "cannot compute suffix of executables: cannot compile and link
3295 See \`config.log' for more details." "$LINENO" 5; }
3296 fi
3297 rm -f conftest conftest$ac_cv_exeext
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3299 $as_echo "$ac_cv_exeext" >&6; }
3300
3301 rm -f conftest.$ac_ext
3302 EXEEXT=$ac_cv_exeext
3303 ac_exeext=$EXEEXT
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3306 #include <stdio.h>
3307 int
3308 main ()
3309 {
3310 FILE *f = fopen ("conftest.out", "w");
3311 return ferror (f) || fclose (f) != 0;
3312
3313 ;
3314 return 0;
3315 }
3316 _ACEOF
3317 ac_clean_files="$ac_clean_files conftest.out"
3318 # Check that the compiler produces executables we can run. If not, either
3319 # the compiler is broken, or we cross compile.
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3321 $as_echo_n "checking whether we are cross compiling... " >&6; }
3322 if test "$cross_compiling" != yes; then
3323 { { ac_try="$ac_link"
3324 case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327 esac
3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_link") 2>&5
3331 ac_status=$?
3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }
3334 if { ac_try='./conftest$ac_cv_exeext'
3335 { { case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3338 esac
3339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340 $as_echo "$ac_try_echo"; } >&5
3341 (eval "$ac_try") 2>&5
3342 ac_status=$?
3343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344 test $ac_status = 0; }; }; then
3345 cross_compiling=no
3346 else
3347 if test "$cross_compiling" = maybe; then
3348 cross_compiling=yes
3349 else
3350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3352 as_fn_error "cannot run C++ compiled programs.
3353 If you meant to cross compile, use \`--host'.
3354 See \`config.log' for more details." "$LINENO" 5; }
3355 fi
3356 fi
3357 fi
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3359 $as_echo "$cross_compiling" >&6; }
3360
3361 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3362 ac_clean_files=$ac_clean_files_save
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3364 $as_echo_n "checking for suffix of object files... " >&6; }
3365 if test "${ac_cv_objext+set}" = set; then :
3366 $as_echo_n "(cached) " >&6
3367 else
3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h. */
3370
3371 int
3372 main ()
3373 {
3374
3375 ;
3376 return 0;
3377 }
3378 _ACEOF
3379 rm -f conftest.o conftest.obj
3380 if { { ac_try="$ac_compile"
3381 case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384 esac
3385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386 $as_echo "$ac_try_echo"; } >&5
3387 (eval "$ac_compile") 2>&5
3388 ac_status=$?
3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }; then :
3391 for ac_file in conftest.o conftest.obj conftest.*; do
3392 test -f "$ac_file" || continue;
3393 case $ac_file in
3394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3395 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3396 break;;
3397 esac
3398 done
3399 else
3400 $as_echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3402
3403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405 as_fn_error "cannot compute suffix of object files: cannot compile
3406 See \`config.log' for more details." "$LINENO" 5; }
3407 fi
3408 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3409 fi
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3411 $as_echo "$ac_cv_objext" >&6; }
3412 OBJEXT=$ac_cv_objext
3413 ac_objext=$OBJEXT
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3415 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3416 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3417 $as_echo_n "(cached) " >&6
3418 else
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3421
3422 int
3423 main ()
3424 {
3425 #ifndef __GNUC__
3426 choke me
3427 #endif
3428
3429 ;
3430 return 0;
3431 }
3432 _ACEOF
3433 if ac_fn_cxx_try_compile "$LINENO"; then :
3434 ac_compiler_gnu=yes
3435 else
3436 ac_compiler_gnu=no
3437 fi
3438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3439 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3440
3441 fi
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3443 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3444 if test $ac_compiler_gnu = yes; then
3445 GXX=yes
3446 else
3447 GXX=
3448 fi
3449 ac_test_CXXFLAGS=${CXXFLAGS+set}
3450 ac_save_CXXFLAGS=$CXXFLAGS
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3452 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3453 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3454 $as_echo_n "(cached) " >&6
3455 else
3456 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3457 ac_cxx_werror_flag=yes
3458 ac_cv_prog_cxx_g=no
3459 CXXFLAGS="-g"
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3462
3463 int
3464 main ()
3465 {
3466
3467 ;
3468 return 0;
3469 }
3470 _ACEOF
3471 if ac_fn_cxx_try_compile "$LINENO"; then :
3472 ac_cv_prog_cxx_g=yes
3473 else
3474 CXXFLAGS=""
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3477
3478 int
3479 main ()
3480 {
3481
3482 ;
3483 return 0;
3484 }
3485 _ACEOF
3486 if ac_fn_cxx_try_compile "$LINENO"; then :
3487
3488 else
3489 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3490 CXXFLAGS="-g"
3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492 /* end confdefs.h. */
3493
3494 int
3495 main ()
3496 {
3497
3498 ;
3499 return 0;
3500 }
3501 _ACEOF
3502 if ac_fn_cxx_try_compile "$LINENO"; then :
3503 ac_cv_prog_cxx_g=yes
3504 fi
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 fi
3507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3508 fi
3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3511 fi
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3513 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3514 if test "$ac_test_CXXFLAGS" = set; then
3515 CXXFLAGS=$ac_save_CXXFLAGS
3516 elif test $ac_cv_prog_cxx_g = yes; then
3517 if test "$GXX" = yes; then
3518 CXXFLAGS="-g -O2"
3519 else
3520 CXXFLAGS="-g"
3521 fi
3522 else
3523 if test "$GXX" = yes; then
3524 CXXFLAGS="-O2"
3525 else
3526 CXXFLAGS=
3527 fi
3528 fi
3529 ac_ext=c
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534 DEPDIR="${am__leading_dot}deps"
3535
3536 ac_config_commands="$ac_config_commands depfiles"
3537
3538
3539 am_make=${MAKE-make}
3540 cat > confinc << 'END'
3541 am__doit:
3542 @echo done
3543 .PHONY: am__doit
3544 END
3545 # If we don't find an include directive, just comment out the code.
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3547 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3548 am__include="#"
3549 am__quote=
3550 _am_result=none
3551 # First try GNU make style include.
3552 echo "include confinc" > confmf
3553 # We grep out `Entering directory' and `Leaving directory'
3554 # messages which can occur if `w' ends up in MAKEFLAGS.
3555 # In particular we don't look at `^make:' because GNU make might
3556 # be invoked under some other name (usually "gmake"), in which
3557 # case it prints its new name instead of `make'.
3558 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3559 am__include=include
3560 am__quote=
3561 _am_result=GNU
3562 fi
3563 # Now try BSD make style include.
3564 if test "$am__include" = "#"; then
3565 echo '.include "confinc"' > confmf
3566 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3567 am__include=.include
3568 am__quote="\""
3569 _am_result=BSD
3570 fi
3571 fi
3572
3573
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3575 $as_echo "$_am_result" >&6; }
3576 rm -f confinc confmf
3577
3578 # Check whether --enable-dependency-tracking was given.
3579 if test "${enable_dependency_tracking+set}" = set; then :
3580 enableval=$enable_dependency_tracking;
3581 fi
3582
3583 if test "x$enable_dependency_tracking" != xno; then
3584 am_depcomp="$ac_aux_dir/depcomp"
3585 AMDEPBACKSLASH='\'
3586 fi
3587 if test "x$enable_dependency_tracking" != xno; then
3588 AMDEP_TRUE=
3589 AMDEP_FALSE='#'
3590 else
3591 AMDEP_TRUE='#'
3592 AMDEP_FALSE=
3593 fi
3594
3595
3596
3597 depcc="$CXX" am_compiler_list=
3598
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3600 $as_echo_n "checking dependency style of $depcc... " >&6; }
3601 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3602 $as_echo_n "(cached) " >&6
3603 else
3604 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3605 # We make a subdir and do the tests there. Otherwise we can end up
3606 # making bogus files that we don't know about and never remove. For
3607 # instance it was reported that on HP-UX the gcc test will end up
3608 # making a dummy file named `D' -- because `-MD' means `put the output
3609 # in D'.
3610 mkdir conftest.dir
3611 # Copy depcomp to subdir because otherwise we won't find it if we're
3612 # using a relative directory.
3613 cp "$am_depcomp" conftest.dir
3614 cd conftest.dir
3615 # We will build objects and dependencies in a subdirectory because
3616 # it helps to detect inapplicable dependency modes. For instance
3617 # both Tru64's cc and ICC support -MD to output dependencies as a
3618 # side effect of compilation, but ICC will put the dependencies in
3619 # the current directory while Tru64 will put them in the object
3620 # directory.
3621 mkdir sub
3622
3623 am_cv_CXX_dependencies_compiler_type=none
3624 if test "$am_compiler_list" = ""; then
3625 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3626 fi
3627 for depmode in $am_compiler_list; do
3628 # Setup a source with many dependencies, because some compilers
3629 # like to wrap large dependency lists on column 80 (with \), and
3630 # we should not choose a depcomp mode which is confused by this.
3631 #
3632 # We need to recreate these files for each test, as the compiler may
3633 # overwrite some of them when testing with obscure command lines.
3634 # This happens at least with the AIX C compiler.
3635 : > sub/conftest.c
3636 for i in 1 2 3 4 5 6; do
3637 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3638 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3639 # Solaris 8's {/usr,}/bin/sh.
3640 touch sub/conftst$i.h
3641 done
3642 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3643
3644 case $depmode in
3645 nosideeffect)
3646 # after this tag, mechanisms are not by side-effect, so they'll
3647 # only be used when explicitly requested
3648 if test "x$enable_dependency_tracking" = xyes; then
3649 continue
3650 else
3651 break
3652 fi
3653 ;;
3654 none) break ;;
3655 esac
3656 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3657 # mode. It turns out that the SunPro C++ compiler does not properly
3658 # handle `-M -o', and we need to detect this.
3659 if depmode=$depmode \
3660 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3661 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3662 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3663 >/dev/null 2>conftest.err &&
3664 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3665 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3666 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3667 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3668 # icc doesn't choke on unknown options, it will just issue warnings
3669 # or remarks (even with -Werror). So we grep stderr for any message
3670 # that says an option was ignored or not supported.
3671 # When given -MP, icc 7.0 and 7.1 complain thusly:
3672 # icc: Command line warning: ignoring option '-M'; no argument required
3673 # The diagnosis changed in icc 8.0:
3674 # icc: Command line remark: option '-MP' not supported
3675 if (grep 'ignoring option' conftest.err ||
3676 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3677 am_cv_CXX_dependencies_compiler_type=$depmode
3678 break
3679 fi
3680 fi
3681 done
3682
3683 cd ..
3684 rm -rf conftest.dir
3685 else
3686 am_cv_CXX_dependencies_compiler_type=none
3687 fi
3688
3689 fi
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3691 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3692 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3693
3694 if
3695 test "x$enable_dependency_tracking" != xno \
3696 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3697 am__fastdepCXX_TRUE=
3698 am__fastdepCXX_FALSE='#'
3699 else
3700 am__fastdepCXX_TRUE='#'
3701 am__fastdepCXX_FALSE=
3702 fi
3703
3704
3705 # Check whether --enable-shared was given.
3706 if test "${enable_shared+set}" = set; then :
3707 enableval=$enable_shared; p=${PACKAGE-default}
3708 case $enableval in
3709 yes) enable_shared=yes ;;
3710 no) enable_shared=no ;;
3711 *)
3712 enable_shared=no
3713 # Look at the argument we got. We use all the common list separators.
3714 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3715 for pkg in $enableval; do
3716 IFS="$lt_save_ifs"
3717 if test "X$pkg" = "X$p"; then
3718 enable_shared=yes
3719 fi
3720 done
3721 IFS="$lt_save_ifs"
3722 ;;
3723 esac
3724 else
3725 enable_shared=yes
3726 fi
3727
3728
3729 # Check whether --enable-static was given.
3730 if test "${enable_static+set}" = set; then :
3731 enableval=$enable_static; p=${PACKAGE-default}
3732 case $enableval in
3733 yes) enable_static=yes ;;
3734 no) enable_static=no ;;
3735 *)
3736 enable_static=no
3737 # Look at the argument we got. We use all the common list separators.
3738 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3739 for pkg in $enableval; do
3740 IFS="$lt_save_ifs"
3741 if test "X$pkg" = "X$p"; then
3742 enable_static=yes
3743 fi
3744 done
3745 IFS="$lt_save_ifs"
3746 ;;
3747 esac
3748 else
3749 enable_static=yes
3750 fi
3751
3752
3753 # Check whether --enable-fast-install was given.
3754 if test "${enable_fast_install+set}" = set; then :
3755 enableval=$enable_fast_install; p=${PACKAGE-default}
3756 case $enableval in
3757 yes) enable_fast_install=yes ;;
3758 no) enable_fast_install=no ;;
3759 *)
3760 enable_fast_install=no
3761 # Look at the argument we got. We use all the common list separators.
3762 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3763 for pkg in $enableval; do
3764 IFS="$lt_save_ifs"
3765 if test "X$pkg" = "X$p"; then
3766 enable_fast_install=yes
3767 fi
3768 done
3769 IFS="$lt_save_ifs"
3770 ;;
3771 esac
3772 else
3773 enable_fast_install=yes
3774 fi
3775
3776
3777 # Make sure we can run config.sub.
3778 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3779 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3780
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3782 $as_echo_n "checking build system type... " >&6; }
3783 if test "${ac_cv_build+set}" = set; then :
3784 $as_echo_n "(cached) " >&6
3785 else
3786 ac_build_alias=$build_alias
3787 test "x$ac_build_alias" = x &&
3788 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3789 test "x$ac_build_alias" = x &&
3790 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3791 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3792 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3793
3794 fi
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3796 $as_echo "$ac_cv_build" >&6; }
3797 case $ac_cv_build in
3798 *-*-*) ;;
3799 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3800 esac
3801 build=$ac_cv_build
3802 ac_save_IFS=$IFS; IFS='-'
3803 set x $ac_cv_build
3804 shift
3805 build_cpu=$1
3806 build_vendor=$2
3807 shift; shift
3808 # Remember, the first character of IFS is used to create $*,
3809 # except with old shells:
3810 build_os=$*
3811 IFS=$ac_save_IFS
3812 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3813
3814
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3816 $as_echo_n "checking host system type... " >&6; }
3817 if test "${ac_cv_host+set}" = set; then :
3818 $as_echo_n "(cached) " >&6
3819 else
3820 if test "x$host_alias" = x; then
3821 ac_cv_host=$ac_cv_build
3822 else
3823 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3824 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3825 fi
3826
3827 fi
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3829 $as_echo "$ac_cv_host" >&6; }
3830 case $ac_cv_host in
3831 *-*-*) ;;
3832 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3833 esac
3834 host=$ac_cv_host
3835 ac_save_IFS=$IFS; IFS='-'
3836 set x $ac_cv_host
3837 shift
3838 host_cpu=$1
3839 host_vendor=$2
3840 shift; shift
3841 # Remember, the first character of IFS is used to create $*,
3842 # except with old shells:
3843 host_os=$*
3844 IFS=$ac_save_IFS
3845 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3846
3847
3848 ac_ext=c
3849 ac_cpp='$CPP $CPPFLAGS'
3850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853 if test -n "$ac_tool_prefix"; then
3854 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3855 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857 $as_echo_n "checking for $ac_word... " >&6; }
3858 if test "${ac_cv_prog_CC+set}" = set; then :
3859 $as_echo_n "(cached) " >&6
3860 else
3861 if test -n "$CC"; then
3862 ac_cv_prog_CC="$CC" # Let the user override the test.
3863 else
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 for as_dir in $PATH
3866 do
3867 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=.
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3871 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3873 break 2
3874 fi
3875 done
3876 done
3877 IFS=$as_save_IFS
3878
3879 fi
3880 fi
3881 CC=$ac_cv_prog_CC
3882 if test -n "$CC"; then
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3884 $as_echo "$CC" >&6; }
3885 else
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 $as_echo "no" >&6; }
3888 fi
3889
3890
3891 fi
3892 if test -z "$ac_cv_prog_CC"; then
3893 ac_ct_CC=$CC
3894 # Extract the first word of "gcc", so it can be a program name with args.
3895 set dummy gcc; ac_word=$2
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3897 $as_echo_n "checking for $ac_word... " >&6; }
3898 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3899 $as_echo_n "(cached) " >&6
3900 else
3901 if test -n "$ac_ct_CC"; then
3902 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3903 else
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH
3906 do
3907 IFS=$as_save_IFS
3908 test -z "$as_dir" && as_dir=.
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3911 ac_cv_prog_ac_ct_CC="gcc"
3912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 break 2
3914 fi
3915 done
3916 done
3917 IFS=$as_save_IFS
3918
3919 fi
3920 fi
3921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3922 if test -n "$ac_ct_CC"; then
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3924 $as_echo "$ac_ct_CC" >&6; }
3925 else
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927 $as_echo "no" >&6; }
3928 fi
3929
3930 if test "x$ac_ct_CC" = x; then
3931 CC=""
3932 else
3933 case $cross_compiling:$ac_tool_warned in
3934 yes:)
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3937 ac_tool_warned=yes ;;
3938 esac
3939 CC=$ac_ct_CC
3940 fi
3941 else
3942 CC="$ac_cv_prog_CC"
3943 fi
3944
3945 if test -z "$CC"; then
3946 if test -n "$ac_tool_prefix"; then
3947 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3948 set dummy ${ac_tool_prefix}cc; ac_word=$2
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3950 $as_echo_n "checking for $ac_word... " >&6; }
3951 if test "${ac_cv_prog_CC+set}" = set; then :
3952 $as_echo_n "(cached) " >&6
3953 else
3954 if test -n "$CC"; then
3955 ac_cv_prog_CC="$CC" # Let the user override the test.
3956 else
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH
3959 do
3960 IFS=$as_save_IFS
3961 test -z "$as_dir" && as_dir=.
3962 for ac_exec_ext in '' $ac_executable_extensions; do
3963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3964 ac_cv_prog_CC="${ac_tool_prefix}cc"
3965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3966 break 2
3967 fi
3968 done
3969 done
3970 IFS=$as_save_IFS
3971
3972 fi
3973 fi
3974 CC=$ac_cv_prog_CC
3975 if test -n "$CC"; then
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3977 $as_echo "$CC" >&6; }
3978 else
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980 $as_echo "no" >&6; }
3981 fi
3982
3983
3984 fi
3985 fi
3986 if test -z "$CC"; then
3987 # Extract the first word of "cc", so it can be a program name with args.
3988 set dummy cc; ac_word=$2
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990 $as_echo_n "checking for $ac_word... " >&6; }
3991 if test "${ac_cv_prog_CC+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3993 else
3994 if test -n "$CC"; then
3995 ac_cv_prog_CC="$CC" # Let the user override the test.
3996 else
3997 ac_prog_rejected=no
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 for as_dir in $PATH
4000 do
4001 IFS=$as_save_IFS
4002 test -z "$as_dir" && as_dir=.
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4005 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4006 ac_prog_rejected=yes
4007 continue
4008 fi
4009 ac_cv_prog_CC="cc"
4010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 break 2
4012 fi
4013 done
4014 done
4015 IFS=$as_save_IFS
4016
4017 if test $ac_prog_rejected = yes; then
4018 # We found a bogon in the path, so make sure we never use it.
4019 set dummy $ac_cv_prog_CC
4020 shift
4021 if test $# != 0; then
4022 # We chose a different compiler from the bogus one.
4023 # However, it has the same basename, so the bogon will be chosen
4024 # first if we set CC to just the basename; use the full file name.
4025 shift
4026 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4027 fi
4028 fi
4029 fi
4030 fi
4031 CC=$ac_cv_prog_CC
4032 if test -n "$CC"; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4034 $as_echo "$CC" >&6; }
4035 else
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4038 fi
4039
4040
4041 fi
4042 if test -z "$CC"; then
4043 if test -n "$ac_tool_prefix"; then
4044 for ac_prog in cl.exe
4045 do
4046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049 $as_echo_n "checking for $ac_word... " >&6; }
4050 if test "${ac_cv_prog_CC+set}" = set; then :
4051 $as_echo_n "(cached) " >&6
4052 else
4053 if test -n "$CC"; then
4054 ac_cv_prog_CC="$CC" # Let the user override the test.
4055 else
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH
4058 do
4059 IFS=$as_save_IFS
4060 test -z "$as_dir" && as_dir=.
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4063 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4065 break 2
4066 fi
4067 done
4068 done
4069 IFS=$as_save_IFS
4070
4071 fi
4072 fi
4073 CC=$ac_cv_prog_CC
4074 if test -n "$CC"; then
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4076 $as_echo "$CC" >&6; }
4077 else
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4080 fi
4081
4082
4083 test -n "$CC" && break
4084 done
4085 fi
4086 if test -z "$CC"; then
4087 ac_ct_CC=$CC
4088 for ac_prog in cl.exe
4089 do
4090 # Extract the first word of "$ac_prog", so it can be a program name with args.
4091 set dummy $ac_prog; ac_word=$2
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093 $as_echo_n "checking for $ac_word... " >&6; }
4094 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4095 $as_echo_n "(cached) " >&6
4096 else
4097 if test -n "$ac_ct_CC"; then
4098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4099 else
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH
4102 do
4103 IFS=$as_save_IFS
4104 test -z "$as_dir" && as_dir=.
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4107 ac_cv_prog_ac_ct_CC="$ac_prog"
4108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4109 break 2
4110 fi
4111 done
4112 done
4113 IFS=$as_save_IFS
4114
4115 fi
4116 fi
4117 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4118 if test -n "$ac_ct_CC"; then
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4120 $as_echo "$ac_ct_CC" >&6; }
4121 else
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123 $as_echo "no" >&6; }
4124 fi
4125
4126
4127 test -n "$ac_ct_CC" && break
4128 done
4129
4130 if test "x$ac_ct_CC" = x; then
4131 CC=""
4132 else
4133 case $cross_compiling:$ac_tool_warned in
4134 yes:)
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4137 ac_tool_warned=yes ;;
4138 esac
4139 CC=$ac_ct_CC
4140 fi
4141 fi
4142
4143 fi
4144
4145
4146 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4148 as_fn_error "no acceptable C compiler found in \$PATH
4149 See \`config.log' for more details." "$LINENO" 5; }
4150
4151 # Provide some information about the compiler.
4152 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4153 set X $ac_compile
4154 ac_compiler=$2
4155 for ac_option in --version -v -V -qversion; do
4156 { { ac_try="$ac_compiler $ac_option >&5"
4157 case "(($ac_try" in
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4160 esac
4161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4162 $as_echo "$ac_try_echo"; } >&5
4163 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4164 ac_status=$?
4165 if test -s conftest.err; then
4166 sed '10a\
4167 ... rest of stderr output deleted ...
4168 10q' conftest.err >conftest.er1
4169 cat conftest.er1 >&5
4170 fi
4171 rm -f conftest.er1 conftest.err
4172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4173 test $ac_status = 0; }
4174 done
4175
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4177 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4178 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4183
4184 int
4185 main ()
4186 {
4187 #ifndef __GNUC__
4188 choke me
4189 #endif
4190
4191 ;
4192 return 0;
4193 }
4194 _ACEOF
4195 if ac_fn_c_try_compile "$LINENO"; then :
4196 ac_compiler_gnu=yes
4197 else
4198 ac_compiler_gnu=no
4199 fi
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4202
4203 fi
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4205 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4206 if test $ac_compiler_gnu = yes; then
4207 GCC=yes
4208 else
4209 GCC=
4210 fi
4211 ac_test_CFLAGS=${CFLAGS+set}
4212 ac_save_CFLAGS=$CFLAGS
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4214 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4215 if test "${ac_cv_prog_cc_g+set}" = set; then :
4216 $as_echo_n "(cached) " >&6
4217 else
4218 ac_save_c_werror_flag=$ac_c_werror_flag
4219 ac_c_werror_flag=yes
4220 ac_cv_prog_cc_g=no
4221 CFLAGS="-g"
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4224
4225 int
4226 main ()
4227 {
4228
4229 ;
4230 return 0;
4231 }
4232 _ACEOF
4233 if ac_fn_c_try_compile "$LINENO"; then :
4234 ac_cv_prog_cc_g=yes
4235 else
4236 CFLAGS=""
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4239
4240 int
4241 main ()
4242 {
4243
4244 ;
4245 return 0;
4246 }
4247 _ACEOF
4248 if ac_fn_c_try_compile "$LINENO"; then :
4249
4250 else
4251 ac_c_werror_flag=$ac_save_c_werror_flag
4252 CFLAGS="-g"
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4255
4256 int
4257 main ()
4258 {
4259
4260 ;
4261 return 0;
4262 }
4263 _ACEOF
4264 if ac_fn_c_try_compile "$LINENO"; then :
4265 ac_cv_prog_cc_g=yes
4266 fi
4267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4268 fi
4269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270 fi
4271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4272 ac_c_werror_flag=$ac_save_c_werror_flag
4273 fi
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4275 $as_echo "$ac_cv_prog_cc_g" >&6; }
4276 if test "$ac_test_CFLAGS" = set; then
4277 CFLAGS=$ac_save_CFLAGS
4278 elif test $ac_cv_prog_cc_g = yes; then
4279 if test "$GCC" = yes; then
4280 CFLAGS="-g -O2"
4281 else
4282 CFLAGS="-g"
4283 fi
4284 else
4285 if test "$GCC" = yes; then
4286 CFLAGS="-O2"
4287 else
4288 CFLAGS=
4289 fi
4290 fi
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4292 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4293 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4294 $as_echo_n "(cached) " >&6
4295 else
4296 ac_cv_prog_cc_c89=no
4297 ac_save_CC=$CC
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4300 #include <stdarg.h>
4301 #include <stdio.h>
4302 #include <sys/types.h>
4303 #include <sys/stat.h>
4304 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4305 struct buf { int x; };
4306 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4307 static char *e (p, i)
4308 char **p;
4309 int i;
4310 {
4311 return p[i];
4312 }
4313 static char *f (char * (*g) (char **, int), char **p, ...)
4314 {
4315 char *s;
4316 va_list v;
4317 va_start (v,p);
4318 s = g (p, va_arg (v,int));
4319 va_end (v);
4320 return s;
4321 }
4322
4323 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4324 function prototypes and stuff, but not '\xHH' hex character constants.
4325 These don't provoke an error unfortunately, instead are silently treated
4326 as 'x'. The following induces an error, until -std is added to get
4327 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4328 array size at least. It's necessary to write '\x00'==0 to get something
4329 that's true only with -std. */
4330 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4331
4332 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4333 inside strings and character constants. */
4334 #define FOO(x) 'x'
4335 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4336
4337 int test (int i, double x);
4338 struct s1 {int (*f) (int a);};
4339 struct s2 {int (*f) (double a);};
4340 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4341 int argc;
4342 char **argv;
4343 int
4344 main ()
4345 {
4346 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4347 ;
4348 return 0;
4349 }
4350 _ACEOF
4351 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4352 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4353 do
4354 CC="$ac_save_CC $ac_arg"
4355 if ac_fn_c_try_compile "$LINENO"; then :
4356 ac_cv_prog_cc_c89=$ac_arg
4357 fi
4358 rm -f core conftest.err conftest.$ac_objext
4359 test "x$ac_cv_prog_cc_c89" != "xno" && break
4360 done
4361 rm -f conftest.$ac_ext
4362 CC=$ac_save_CC
4363
4364 fi
4365 # AC_CACHE_VAL
4366 case "x$ac_cv_prog_cc_c89" in
4367 x)
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4369 $as_echo "none needed" >&6; } ;;
4370 xno)
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4372 $as_echo "unsupported" >&6; } ;;
4373 *)
4374 CC="$CC $ac_cv_prog_cc_c89"
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4376 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4377 esac
4378 if test "x$ac_cv_prog_cc_c89" != xno; then :
4379
4380 fi
4381
4382 ac_ext=c
4383 ac_cpp='$CPP $CPPFLAGS'
4384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4387
4388 depcc="$CC" am_compiler_list=
4389
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4391 $as_echo_n "checking dependency style of $depcc... " >&6; }
4392 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4394 else
4395 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4396 # We make a subdir and do the tests there. Otherwise we can end up
4397 # making bogus files that we don't know about and never remove. For
4398 # instance it was reported that on HP-UX the gcc test will end up
4399 # making a dummy file named `D' -- because `-MD' means `put the output
4400 # in D'.
4401 mkdir conftest.dir
4402 # Copy depcomp to subdir because otherwise we won't find it if we're
4403 # using a relative directory.
4404 cp "$am_depcomp" conftest.dir
4405 cd conftest.dir
4406 # We will build objects and dependencies in a subdirectory because
4407 # it helps to detect inapplicable dependency modes. For instance
4408 # both Tru64's cc and ICC support -MD to output dependencies as a
4409 # side effect of compilation, but ICC will put the dependencies in
4410 # the current directory while Tru64 will put them in the object
4411 # directory.
4412 mkdir sub
4413
4414 am_cv_CC_dependencies_compiler_type=none
4415 if test "$am_compiler_list" = ""; then
4416 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4417 fi
4418 for depmode in $am_compiler_list; do
4419 # Setup a source with many dependencies, because some compilers
4420 # like to wrap large dependency lists on column 80 (with \), and
4421 # we should not choose a depcomp mode which is confused by this.
4422 #
4423 # We need to recreate these files for each test, as the compiler may
4424 # overwrite some of them when testing with obscure command lines.
4425 # This happens at least with the AIX C compiler.
4426 : > sub/conftest.c
4427 for i in 1 2 3 4 5 6; do
4428 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4429 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4430 # Solaris 8's {/usr,}/bin/sh.
4431 touch sub/conftst$i.h
4432 done
4433 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4434
4435 case $depmode in
4436 nosideeffect)
4437 # after this tag, mechanisms are not by side-effect, so they'll
4438 # only be used when explicitly requested
4439 if test "x$enable_dependency_tracking" = xyes; then
4440 continue
4441 else
4442 break
4443 fi
4444 ;;
4445 none) break ;;
4446 esac
4447 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4448 # mode. It turns out that the SunPro C++ compiler does not properly
4449 # handle `-M -o', and we need to detect this.
4450 if depmode=$depmode \
4451 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4452 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4453 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4454 >/dev/null 2>conftest.err &&
4455 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4456 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4457 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4458 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4459 # icc doesn't choke on unknown options, it will just issue warnings
4460 # or remarks (even with -Werror). So we grep stderr for any message
4461 # that says an option was ignored or not supported.
4462 # When given -MP, icc 7.0 and 7.1 complain thusly:
4463 # icc: Command line warning: ignoring option '-M'; no argument required
4464 # The diagnosis changed in icc 8.0:
4465 # icc: Command line remark: option '-MP' not supported
4466 if (grep 'ignoring option' conftest.err ||
4467 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4468 am_cv_CC_dependencies_compiler_type=$depmode
4469 break
4470 fi
4471 fi
4472 done
4473
4474 cd ..
4475 rm -rf conftest.dir
4476 else
4477 am_cv_CC_dependencies_compiler_type=none
4478 fi
4479
4480 fi
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4482 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4483 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4484
4485 if
4486 test "x$enable_dependency_tracking" != xno \
4487 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4488 am__fastdepCC_TRUE=
4489 am__fastdepCC_FALSE='#'
4490 else
4491 am__fastdepCC_TRUE='#'
4492 am__fastdepCC_FALSE=
4493 fi
4494
4495
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4497 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4498 if test "${lt_cv_path_SED+set}" = set; then :
4499 $as_echo_n "(cached) " >&6
4500 else
4501 # Loop through the user's path and test for sed and gsed.
4502 # Then use that list of sed's as ones to test for truncation.
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH
4505 do
4506 IFS=$as_save_IFS
4507 test -z "$as_dir" && as_dir=.
4508 for lt_ac_prog in sed gsed; do
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4511 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4512 fi
4513 done
4514 done
4515 done
4516 IFS=$as_save_IFS
4517 lt_ac_max=0
4518 lt_ac_count=0
4519 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4520 # along with /bin/sed that truncates output.
4521 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4522 test ! -f $lt_ac_sed && continue
4523 cat /dev/null > conftest.in
4524 lt_ac_count=0
4525 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4526 # Check for GNU sed and select it if it is found.
4527 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4528 lt_cv_path_SED=$lt_ac_sed
4529 break
4530 fi
4531 while true; do
4532 cat conftest.in conftest.in >conftest.tmp
4533 mv conftest.tmp conftest.in
4534 cp conftest.in conftest.nl
4535 echo >>conftest.nl
4536 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4537 cmp -s conftest.out conftest.nl || break
4538 # 10000 chars as input seems more than enough
4539 test $lt_ac_count -gt 10 && break
4540 lt_ac_count=`expr $lt_ac_count + 1`
4541 if test $lt_ac_count -gt $lt_ac_max; then
4542 lt_ac_max=$lt_ac_count
4543 lt_cv_path_SED=$lt_ac_sed
4544 fi
4545 done
4546 done
4547
4548 fi
4549
4550 SED=$lt_cv_path_SED
4551
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4553 $as_echo "$SED" >&6; }
4554
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4556 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4557 if test "${ac_cv_path_GREP+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 if test -z "$GREP"; then
4561 ac_path_GREP_found=false
4562 # Loop through the user's path and test for each of PROGNAME-LIST
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4565 do
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_prog in grep ggrep; do
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4571 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4572 # Check for GNU ac_path_GREP and select it if it is found.
4573 # Check for GNU $ac_path_GREP
4574 case `"$ac_path_GREP" --version 2>&1` in
4575 *GNU*)
4576 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4577 *)
4578 ac_count=0
4579 $as_echo_n 0123456789 >"conftest.in"
4580 while :
4581 do
4582 cat "conftest.in" "conftest.in" >"conftest.tmp"
4583 mv "conftest.tmp" "conftest.in"
4584 cp "conftest.in" "conftest.nl"
4585 $as_echo 'GREP' >> "conftest.nl"
4586 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4587 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4588 as_fn_arith $ac_count + 1 && ac_count=$as_val
4589 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4590 # Best one so far, save it but keep looking for a better one
4591 ac_cv_path_GREP="$ac_path_GREP"
4592 ac_path_GREP_max=$ac_count
4593 fi
4594 # 10*(2^10) chars as input seems more than enough
4595 test $ac_count -gt 10 && break
4596 done
4597 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4598 esac
4599
4600 $ac_path_GREP_found && break 3
4601 done
4602 done
4603 done
4604 IFS=$as_save_IFS
4605 if test -z "$ac_cv_path_GREP"; then
4606 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4607 fi
4608 else
4609 ac_cv_path_GREP=$GREP
4610 fi
4611
4612 fi
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4614 $as_echo "$ac_cv_path_GREP" >&6; }
4615 GREP="$ac_cv_path_GREP"
4616
4617
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4619 $as_echo_n "checking for egrep... " >&6; }
4620 if test "${ac_cv_path_EGREP+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4624 then ac_cv_path_EGREP="$GREP -E"
4625 else
4626 if test -z "$EGREP"; then
4627 ac_path_EGREP_found=false
4628 # Loop through the user's path and test for each of PROGNAME-LIST
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4631 do
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_prog in egrep; do
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4637 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4638 # Check for GNU ac_path_EGREP and select it if it is found.
4639 # Check for GNU $ac_path_EGREP
4640 case `"$ac_path_EGREP" --version 2>&1` in
4641 *GNU*)
4642 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4643 *)
4644 ac_count=0
4645 $as_echo_n 0123456789 >"conftest.in"
4646 while :
4647 do
4648 cat "conftest.in" "conftest.in" >"conftest.tmp"
4649 mv "conftest.tmp" "conftest.in"
4650 cp "conftest.in" "conftest.nl"
4651 $as_echo 'EGREP' >> "conftest.nl"
4652 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4654 as_fn_arith $ac_count + 1 && ac_count=$as_val
4655 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4656 # Best one so far, save it but keep looking for a better one
4657 ac_cv_path_EGREP="$ac_path_EGREP"
4658 ac_path_EGREP_max=$ac_count
4659 fi
4660 # 10*(2^10) chars as input seems more than enough
4661 test $ac_count -gt 10 && break
4662 done
4663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4664 esac
4665
4666 $ac_path_EGREP_found && break 3
4667 done
4668 done
4669 done
4670 IFS=$as_save_IFS
4671 if test -z "$ac_cv_path_EGREP"; then
4672 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4673 fi
4674 else
4675 ac_cv_path_EGREP=$EGREP
4676 fi
4677
4678 fi
4679 fi
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4681 $as_echo "$ac_cv_path_EGREP" >&6; }
4682 EGREP="$ac_cv_path_EGREP"
4683
4684
4685
4686 # Check whether --with-gnu-ld was given.
4687 if test "${with_gnu_ld+set}" = set; then :
4688 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4689 else
4690 with_gnu_ld=no
4691 fi
4692
4693 ac_prog=ld
4694 if test "$GCC" = yes; then
4695 # Check if gcc -print-prog-name=ld gives a path.
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4697 $as_echo_n "checking for ld used by $CC... " >&6; }
4698 case $host in
4699 *-*-mingw*)
4700 # gcc leaves a trailing carriage return which upsets mingw
4701 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4702 *)
4703 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4704 esac
4705 case $ac_prog in
4706 # Accept absolute paths.
4707 [\\/]* | ?:[\\/]*)
4708 re_direlt='/[^/][^/]*/\.\./'
4709 # Canonicalize the pathname of ld
4710 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4711 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4712 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4713 done
4714 test -z "$LD" && LD="$ac_prog"
4715 ;;
4716 "")
4717 # If it fails, then pretend we aren't using GCC.
4718 ac_prog=ld
4719 ;;
4720 *)
4721 # If it is relative, then search for the first ld in PATH.
4722 with_gnu_ld=unknown
4723 ;;
4724 esac
4725 elif test "$with_gnu_ld" = yes; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4727 $as_echo_n "checking for GNU ld... " >&6; }
4728 else
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4730 $as_echo_n "checking for non-GNU ld... " >&6; }
4731 fi
4732 if test "${lt_cv_path_LD+set}" = set; then :
4733 $as_echo_n "(cached) " >&6
4734 else
4735 if test -z "$LD"; then
4736 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4737 for ac_dir in $PATH; do
4738 IFS="$lt_save_ifs"
4739 test -z "$ac_dir" && ac_dir=.
4740 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4741 lt_cv_path_LD="$ac_dir/$ac_prog"
4742 # Check to see if the program is GNU ld. I'd rather use --version,
4743 # but apparently some variants of GNU ld only accept -v.
4744 # Break only if it was the GNU/non-GNU ld that we prefer.
4745 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4746 *GNU* | *'with BFD'*)
4747 test "$with_gnu_ld" != no && break
4748 ;;
4749 *)
4750 test "$with_gnu_ld" != yes && break
4751 ;;
4752 esac
4753 fi
4754 done
4755 IFS="$lt_save_ifs"
4756 else
4757 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4758 fi
4759 fi
4760
4761 LD="$lt_cv_path_LD"
4762 if test -n "$LD"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4764 $as_echo "$LD" >&6; }
4765 else
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4768 fi
4769 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4771 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4772 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4774 else
4775 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4776 case `$LD -v 2>&1 </dev/null` in
4777 *GNU* | *'with BFD'*)
4778 lt_cv_prog_gnu_ld=yes
4779 ;;
4780 *)
4781 lt_cv_prog_gnu_ld=no
4782 ;;
4783 esac
4784 fi
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4786 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4787 with_gnu_ld=$lt_cv_prog_gnu_ld
4788
4789
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4791 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4792 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4793 $as_echo_n "(cached) " >&6
4794 else
4795 lt_cv_ld_reload_flag='-r'
4796 fi
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4798 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4799 reload_flag=$lt_cv_ld_reload_flag
4800 case $reload_flag in
4801 "" | " "*) ;;
4802 *) reload_flag=" $reload_flag" ;;
4803 esac
4804 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4805 case $host_os in
4806 darwin*)
4807 if test "$GCC" = yes; then
4808 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4809 else
4810 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4811 fi
4812 ;;
4813 esac
4814
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4816 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4817 if test "${lt_cv_path_NM+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 if test -n "$NM"; then
4821 # Let the user override the test.
4822 lt_cv_path_NM="$NM"
4823 else
4824 lt_nm_to_check="${ac_tool_prefix}nm"
4825 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4826 lt_nm_to_check="$lt_nm_to_check nm"
4827 fi
4828 for lt_tmp_nm in $lt_nm_to_check; do
4829 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4830 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4831 IFS="$lt_save_ifs"
4832 test -z "$ac_dir" && ac_dir=.
4833 tmp_nm="$ac_dir/$lt_tmp_nm"
4834 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4835 # Check to see if the nm accepts a BSD-compat flag.
4836 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4837 # nm: unknown option "B" ignored
4838 # Tru64's nm complains that /dev/null is an invalid object file
4839 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4840 */dev/null* | *'Invalid file or object type'*)
4841 lt_cv_path_NM="$tmp_nm -B"
4842 break
4843 ;;
4844 *)
4845 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4846 */dev/null*)
4847 lt_cv_path_NM="$tmp_nm -p"
4848 break
4849 ;;
4850 *)
4851 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4852 continue # so that we can try to find one that supports BSD flags
4853 ;;
4854 esac
4855 ;;
4856 esac
4857 fi
4858 done
4859 IFS="$lt_save_ifs"
4860 done
4861 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4862 fi
4863 fi
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4865 $as_echo "$lt_cv_path_NM" >&6; }
4866 NM="$lt_cv_path_NM"
4867
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4869 $as_echo_n "checking whether ln -s works... " >&6; }
4870 LN_S=$as_ln_s
4871 if test "$LN_S" = "ln -s"; then
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4873 $as_echo "yes" >&6; }
4874 else
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4876 $as_echo "no, using $LN_S" >&6; }
4877 fi
4878
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4880 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4881 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4882 $as_echo_n "(cached) " >&6
4883 else
4884 lt_cv_file_magic_cmd='$MAGIC_CMD'
4885 lt_cv_file_magic_test_file=
4886 lt_cv_deplibs_check_method='unknown'
4887 # Need to set the preceding variable on all platforms that support
4888 # interlibrary dependencies.
4889 # 'none' -- dependencies not supported.
4890 # `unknown' -- same as none, but documents that we really don't know.
4891 # 'pass_all' -- all dependencies passed with no checks.
4892 # 'test_compile' -- check by making test program.
4893 # 'file_magic [[regex]]' -- check by looking for files in library path
4894 # which responds to the $file_magic_cmd with a given extended regex.
4895 # If you have `file' or equivalent on your system and you're not sure
4896 # whether `pass_all' will *always* work, you probably want this one.
4897
4898 case $host_os in
4899 aix[4-9]*)
4900 lt_cv_deplibs_check_method=pass_all
4901 ;;
4902
4903 beos*)
4904 lt_cv_deplibs_check_method=pass_all
4905 ;;
4906
4907 bsdi[45]*)
4908 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4909 lt_cv_file_magic_cmd='/usr/bin/file -L'
4910 lt_cv_file_magic_test_file=/shlib/libc.so
4911 ;;
4912
4913 cygwin*)
4914 # func_win32_libid is a shell function defined in ltmain.sh
4915 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4916 lt_cv_file_magic_cmd='func_win32_libid'
4917 ;;
4918
4919 mingw* | pw32*)
4920 # Base MSYS/MinGW do not provide the 'file' command needed by
4921 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4922 # unless we find 'file', for example because we are cross-compiling.
4923 if ( file / ) >/dev/null 2>&1; then
4924 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4925 lt_cv_file_magic_cmd='func_win32_libid'
4926 else
4927 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4928 lt_cv_file_magic_cmd='$OBJDUMP -f'
4929 fi
4930 ;;
4931
4932 darwin* | rhapsody*)
4933 lt_cv_deplibs_check_method=pass_all
4934 ;;
4935
4936 freebsd* | dragonfly*)
4937 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4938 case $host_cpu in
4939 i*86 )
4940 # Not sure whether the presence of OpenBSD here was a mistake.
4941 # Let's accept both of them until this is cleared up.
4942 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4943 lt_cv_file_magic_cmd=/usr/bin/file
4944 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4945 ;;
4946 esac
4947 else
4948 lt_cv_deplibs_check_method=pass_all
4949 fi
4950 ;;
4951
4952 gnu*)
4953 lt_cv_deplibs_check_method=pass_all
4954 ;;
4955
4956 hpux10.20* | hpux11*)
4957 lt_cv_file_magic_cmd=/usr/bin/file
4958 case $host_cpu in
4959 ia64*)
4960 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4961 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4962 ;;
4963 hppa*64*)
4964 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4965 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4966 ;;
4967 *)
4968 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4969 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4970 ;;
4971 esac
4972 ;;
4973
4974 interix[3-9]*)
4975 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4977 ;;
4978
4979 irix5* | irix6* | nonstopux*)
4980 case $LD in
4981 *-32|*"-32 ") libmagic=32-bit;;
4982 *-n32|*"-n32 ") libmagic=N32;;
4983 *-64|*"-64 ") libmagic=64-bit;;
4984 *) libmagic=never-match;;
4985 esac
4986 lt_cv_deplibs_check_method=pass_all
4987 ;;
4988
4989 # This must be Linux ELF.
4990 linux* | k*bsd*-gnu)
4991 lt_cv_deplibs_check_method=pass_all
4992 ;;
4993
4994 netbsd* | netbsdelf*-gnu)
4995 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4996 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4997 else
4998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4999 fi
5000 ;;
5001
5002 newos6*)
5003 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5004 lt_cv_file_magic_cmd=/usr/bin/file
5005 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5006 ;;
5007
5008 nto-qnx*)
5009 lt_cv_deplibs_check_method=unknown
5010 ;;
5011
5012 openbsd*)
5013 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5014 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5015 else
5016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5017 fi
5018 ;;
5019
5020 osf3* | osf4* | osf5*)
5021 lt_cv_deplibs_check_method=pass_all
5022 ;;
5023
5024 rdos*)
5025 lt_cv_deplibs_check_method=pass_all
5026 ;;
5027
5028 solaris*)
5029 lt_cv_deplibs_check_method=pass_all
5030 ;;
5031
5032 sysv4 | sysv4.3*)
5033 case $host_vendor in
5034 motorola)
5035 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]'
5036 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5037 ;;
5038 ncr)
5039 lt_cv_deplibs_check_method=pass_all
5040 ;;
5041 sequent)
5042 lt_cv_file_magic_cmd='/bin/file'
5043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5044 ;;
5045 sni)
5046 lt_cv_file_magic_cmd='/bin/file'
5047 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5048 lt_cv_file_magic_test_file=/lib/libc.so
5049 ;;
5050 siemens)
5051 lt_cv_deplibs_check_method=pass_all
5052 ;;
5053 pc)
5054 lt_cv_deplibs_check_method=pass_all
5055 ;;
5056 esac
5057 ;;
5058
5059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5060 lt_cv_deplibs_check_method=pass_all
5061 ;;
5062 esac
5063
5064 fi
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5066 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5067 file_magic_cmd=$lt_cv_file_magic_cmd
5068 deplibs_check_method=$lt_cv_deplibs_check_method
5069 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5070
5071
5072
5073
5074 # If no C compiler was specified, use CC.
5075 LTCC=${LTCC-"$CC"}
5076
5077 # If no C compiler flags were specified, use CFLAGS.
5078 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5079
5080 # Allow CC to be a program name with arguments.
5081 compiler=$CC
5082
5083
5084 # Check whether --enable-libtool-lock was given.
5085 if test "${enable_libtool_lock+set}" = set; then :
5086 enableval=$enable_libtool_lock;
5087 fi
5088
5089 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5090
5091 # Some flags need to be propagated to the compiler or linker for good
5092 # libtool support.
5093 case $host in
5094 ia64-*-hpux*)
5095 # Find out which ABI we are using.
5096 echo 'int i;' > conftest.$ac_ext
5097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5098 (eval $ac_compile) 2>&5
5099 ac_status=$?
5100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5101 test $ac_status = 0; }; then
5102 case `/usr/bin/file conftest.$ac_objext` in
5103 *ELF-32*)
5104 HPUX_IA64_MODE="32"
5105 ;;
5106 *ELF-64*)
5107 HPUX_IA64_MODE="64"
5108 ;;
5109 esac
5110 fi
5111 rm -rf conftest*
5112 ;;
5113 *-*-irix6*)
5114 # Find out which ABI we are using.
5115 echo '#line 5115 "configure"' > conftest.$ac_ext
5116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5117 (eval $ac_compile) 2>&5
5118 ac_status=$?
5119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5120 test $ac_status = 0; }; then
5121 if test "$lt_cv_prog_gnu_ld" = yes; then
5122 case `/usr/bin/file conftest.$ac_objext` in
5123 *32-bit*)
5124 LD="${LD-ld} -melf32bsmip"
5125 ;;
5126 *N32*)
5127 LD="${LD-ld} -melf32bmipn32"
5128 ;;
5129 *64-bit*)
5130 LD="${LD-ld} -melf64bmip"
5131 ;;
5132 esac
5133 else
5134 case `/usr/bin/file conftest.$ac_objext` in
5135 *32-bit*)
5136 LD="${LD-ld} -32"
5137 ;;
5138 *N32*)
5139 LD="${LD-ld} -n32"
5140 ;;
5141 *64-bit*)
5142 LD="${LD-ld} -64"
5143 ;;
5144 esac
5145 fi
5146 fi
5147 rm -rf conftest*
5148 ;;
5149
5150 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5151 s390*-*linux*|sparc*-*linux*)
5152 # Find out which ABI we are using.
5153 echo 'int i;' > conftest.$ac_ext
5154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5155 (eval $ac_compile) 2>&5
5156 ac_status=$?
5157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5158 test $ac_status = 0; }; then
5159 case `/usr/bin/file conftest.o` in
5160 *32-bit*)
5161 case $host in
5162 x86_64-*kfreebsd*-gnu)
5163 LD="${LD-ld} -m elf_i386_fbsd"
5164 ;;
5165 x86_64-*linux*)
5166 LD="${LD-ld} -m elf_i386"
5167 ;;
5168 ppc64-*linux*|powerpc64-*linux*)
5169 LD="${LD-ld} -m elf32ppclinux"
5170 ;;
5171 s390x-*linux*)
5172 LD="${LD-ld} -m elf_s390"
5173 ;;
5174 sparc64-*linux*)
5175 LD="${LD-ld} -m elf32_sparc"
5176 ;;
5177 esac
5178 ;;
5179 *64-bit*)
5180 case $host in
5181 x86_64-*kfreebsd*-gnu)
5182 LD="${LD-ld} -m elf_x86_64_fbsd"
5183 ;;
5184 x86_64-*linux*)
5185 LD="${LD-ld} -m elf_x86_64"
5186 ;;
5187 ppc*-*linux*|powerpc*-*linux*)
5188 LD="${LD-ld} -m elf64ppc"
5189 ;;
5190 s390*-*linux*)
5191 LD="${LD-ld} -m elf64_s390"
5192 ;;
5193 sparc*-*linux*)
5194 LD="${LD-ld} -m elf64_sparc"
5195 ;;
5196 esac
5197 ;;
5198 esac
5199 fi
5200 rm -rf conftest*
5201 ;;
5202
5203 *-*-sco3.2v5*)
5204 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5205 SAVE_CFLAGS="$CFLAGS"
5206 CFLAGS="$CFLAGS -belf"
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5208 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5209 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 ac_ext=c
5213 ac_cpp='$CPP $CPPFLAGS'
5214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5217
5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h. */
5220
5221 int
5222 main ()
5223 {
5224
5225 ;
5226 return 0;
5227 }
5228 _ACEOF
5229 if ac_fn_c_try_link "$LINENO"; then :
5230 lt_cv_cc_needs_belf=yes
5231 else
5232 lt_cv_cc_needs_belf=no
5233 fi
5234 rm -f core conftest.err conftest.$ac_objext \
5235 conftest$ac_exeext conftest.$ac_ext
5236 ac_ext=c
5237 ac_cpp='$CPP $CPPFLAGS'
5238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5241
5242 fi
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5244 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5245 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5246 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5247 CFLAGS="$SAVE_CFLAGS"
5248 fi
5249 ;;
5250 sparc*-*solaris*)
5251 # Find out which ABI we are using.
5252 echo 'int i;' > conftest.$ac_ext
5253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5254 (eval $ac_compile) 2>&5
5255 ac_status=$?
5256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5257 test $ac_status = 0; }; then
5258 case `/usr/bin/file conftest.o` in
5259 *64-bit*)
5260 case $lt_cv_prog_gnu_ld in
5261 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5262 *)
5263 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5264 LD="${LD-ld} -64"
5265 fi
5266 ;;
5267 esac
5268 ;;
5269 esac
5270 fi
5271 rm -rf conftest*
5272 ;;
5273
5274
5275 esac
5276
5277 need_locks="$enable_libtool_lock"
5278
5279
5280 ac_ext=c
5281 ac_cpp='$CPP $CPPFLAGS'
5282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5286 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5287 # On Suns, sometimes $CPP names a directory.
5288 if test -n "$CPP" && test -d "$CPP"; then
5289 CPP=
5290 fi
5291 if test -z "$CPP"; then
5292 if test "${ac_cv_prog_CPP+set}" = set; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 # Double quotes because CPP needs to be expanded
5296 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5297 do
5298 ac_preproc_ok=false
5299 for ac_c_preproc_warn_flag in '' yes
5300 do
5301 # Use a header file that comes with gcc, so configuring glibc
5302 # with a fresh cross-compiler works.
5303 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5304 # <limits.h> exists even on freestanding compilers.
5305 # On the NeXT, cc -E runs the code through the compiler's parser,
5306 # not just through cpp. "Syntax error" is here to catch this case.
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5309 #ifdef __STDC__
5310 # include <limits.h>
5311 #else
5312 # include <assert.h>
5313 #endif
5314 Syntax error
5315 _ACEOF
5316 if ac_fn_c_try_cpp "$LINENO"; then :
5317
5318 else
5319 # Broken: fails on valid input.
5320 continue
5321 fi
5322 rm -f conftest.err conftest.$ac_ext
5323
5324 # OK, works on sane cases. Now check whether nonexistent headers
5325 # can be detected and how.
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5328 #include <ac_nonexistent.h>
5329 _ACEOF
5330 if ac_fn_c_try_cpp "$LINENO"; then :
5331 # Broken: success on invalid input.
5332 continue
5333 else
5334 # Passes both tests.
5335 ac_preproc_ok=:
5336 break
5337 fi
5338 rm -f conftest.err conftest.$ac_ext
5339
5340 done
5341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5342 rm -f conftest.err conftest.$ac_ext
5343 if $ac_preproc_ok; then :
5344 break
5345 fi
5346
5347 done
5348 ac_cv_prog_CPP=$CPP
5349
5350 fi
5351 CPP=$ac_cv_prog_CPP
5352 else
5353 ac_cv_prog_CPP=$CPP
5354 fi
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5356 $as_echo "$CPP" >&6; }
5357 ac_preproc_ok=false
5358 for ac_c_preproc_warn_flag in '' yes
5359 do
5360 # Use a header file that comes with gcc, so configuring glibc
5361 # with a fresh cross-compiler works.
5362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5363 # <limits.h> exists even on freestanding compilers.
5364 # On the NeXT, cc -E runs the code through the compiler's parser,
5365 # not just through cpp. "Syntax error" is here to catch this case.
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5368 #ifdef __STDC__
5369 # include <limits.h>
5370 #else
5371 # include <assert.h>
5372 #endif
5373 Syntax error
5374 _ACEOF
5375 if ac_fn_c_try_cpp "$LINENO"; then :
5376
5377 else
5378 # Broken: fails on valid input.
5379 continue
5380 fi
5381 rm -f conftest.err conftest.$ac_ext
5382
5383 # OK, works on sane cases. Now check whether nonexistent headers
5384 # can be detected and how.
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5387 #include <ac_nonexistent.h>
5388 _ACEOF
5389 if ac_fn_c_try_cpp "$LINENO"; then :
5390 # Broken: success on invalid input.
5391 continue
5392 else
5393 # Passes both tests.
5394 ac_preproc_ok=:
5395 break
5396 fi
5397 rm -f conftest.err conftest.$ac_ext
5398
5399 done
5400 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5401 rm -f conftest.err conftest.$ac_ext
5402 if $ac_preproc_ok; then :
5403
5404 else
5405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5407 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5408 See \`config.log' for more details." "$LINENO" 5; }
5409 fi
5410
5411 ac_ext=c
5412 ac_cpp='$CPP $CPPFLAGS'
5413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5416
5417
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5419 $as_echo_n "checking for ANSI C header files... " >&6; }
5420 if test "${ac_cv_header_stdc+set}" = set; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5425 #include <stdlib.h>
5426 #include <stdarg.h>
5427 #include <string.h>
5428 #include <float.h>
5429
5430 int
5431 main ()
5432 {
5433
5434 ;
5435 return 0;
5436 }
5437 _ACEOF
5438 if ac_fn_c_try_compile "$LINENO"; then :
5439 ac_cv_header_stdc=yes
5440 else
5441 ac_cv_header_stdc=no
5442 fi
5443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444
5445 if test $ac_cv_header_stdc = yes; then
5446 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5449 #include <string.h>
5450
5451 _ACEOF
5452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5453 $EGREP "memchr" >/dev/null 2>&1; then :
5454
5455 else
5456 ac_cv_header_stdc=no
5457 fi
5458 rm -f conftest*
5459
5460 fi
5461
5462 if test $ac_cv_header_stdc = yes; then
5463 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465 /* end confdefs.h. */
5466 #include <stdlib.h>
5467
5468 _ACEOF
5469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5470 $EGREP "free" >/dev/null 2>&1; then :
5471
5472 else
5473 ac_cv_header_stdc=no
5474 fi
5475 rm -f conftest*
5476
5477 fi
5478
5479 if test $ac_cv_header_stdc = yes; then
5480 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5481 if test "$cross_compiling" = yes; then :
5482 :
5483 else
5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h. */
5486 #include <ctype.h>
5487 #include <stdlib.h>
5488 #if ((' ' & 0x0FF) == 0x020)
5489 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5490 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5491 #else
5492 # define ISLOWER(c) \
5493 (('a' <= (c) && (c) <= 'i') \
5494 || ('j' <= (c) && (c) <= 'r') \
5495 || ('s' <= (c) && (c) <= 'z'))
5496 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5497 #endif
5498
5499 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5500 int
5501 main ()
5502 {
5503 int i;
5504 for (i = 0; i < 256; i++)
5505 if (XOR (islower (i), ISLOWER (i))
5506 || toupper (i) != TOUPPER (i))
5507 return 2;
5508 return 0;
5509 }
5510 _ACEOF
5511 if ac_fn_c_try_run "$LINENO"; then :
5512
5513 else
5514 ac_cv_header_stdc=no
5515 fi
5516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5517 conftest.$ac_objext conftest.beam conftest.$ac_ext
5518 fi
5519
5520 fi
5521 fi
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5523 $as_echo "$ac_cv_header_stdc" >&6; }
5524 if test $ac_cv_header_stdc = yes; then
5525
5526 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5527
5528 fi
5529
5530 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5531 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5532 inttypes.h stdint.h unistd.h
5533 do :
5534 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5535 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5536 "
5537 eval as_val=\$$as_ac_Header
5538 if test "x$as_val" = x""yes; then :
5539 cat >>confdefs.h <<_ACEOF
5540 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5541 _ACEOF
5542
5543 fi
5544
5545 done
5546
5547
5548 for ac_header in dlfcn.h
5549 do :
5550 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5551 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
5552 cat >>confdefs.h <<_ACEOF
5553 #define HAVE_DLFCN_H 1
5554 _ACEOF
5555
5556 fi
5557
5558 done
5559
5560
5561
5562 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5563 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5564 (test "X$CXX" != "Xg++"))) ; then
5565 ac_ext=cpp
5566 ac_cpp='$CXXCPP $CPPFLAGS'
5567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5571 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5572 if test -z "$CXXCPP"; then
5573 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 # Double quotes because CXXCPP needs to be expanded
5577 for CXXCPP in "$CXX -E" "/lib/cpp"
5578 do
5579 ac_preproc_ok=false
5580 for ac_cxx_preproc_warn_flag in '' yes
5581 do
5582 # Use a header file that comes with gcc, so configuring glibc
5583 # with a fresh cross-compiler works.
5584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5585 # <limits.h> exists even on freestanding compilers.
5586 # On the NeXT, cc -E runs the code through the compiler's parser,
5587 # not just through cpp. "Syntax error" is here to catch this case.
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5590 #ifdef __STDC__
5591 # include <limits.h>
5592 #else
5593 # include <assert.h>
5594 #endif
5595 Syntax error
5596 _ACEOF
5597 if ac_fn_cxx_try_cpp "$LINENO"; then :
5598
5599 else
5600 # Broken: fails on valid input.
5601 continue
5602 fi
5603 rm -f conftest.err conftest.$ac_ext
5604
5605 # OK, works on sane cases. Now check whether nonexistent headers
5606 # can be detected and how.
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 #include <ac_nonexistent.h>
5610 _ACEOF
5611 if ac_fn_cxx_try_cpp "$LINENO"; then :
5612 # Broken: success on invalid input.
5613 continue
5614 else
5615 # Passes both tests.
5616 ac_preproc_ok=:
5617 break
5618 fi
5619 rm -f conftest.err conftest.$ac_ext
5620
5621 done
5622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5623 rm -f conftest.err conftest.$ac_ext
5624 if $ac_preproc_ok; then :
5625 break
5626 fi
5627
5628 done
5629 ac_cv_prog_CXXCPP=$CXXCPP
5630
5631 fi
5632 CXXCPP=$ac_cv_prog_CXXCPP
5633 else
5634 ac_cv_prog_CXXCPP=$CXXCPP
5635 fi
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5637 $as_echo "$CXXCPP" >&6; }
5638 ac_preproc_ok=false
5639 for ac_cxx_preproc_warn_flag in '' yes
5640 do
5641 # Use a header file that comes with gcc, so configuring glibc
5642 # with a fresh cross-compiler works.
5643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5644 # <limits.h> exists even on freestanding compilers.
5645 # On the NeXT, cc -E runs the code through the compiler's parser,
5646 # not just through cpp. "Syntax error" is here to catch this case.
5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648 /* end confdefs.h. */
5649 #ifdef __STDC__
5650 # include <limits.h>
5651 #else
5652 # include <assert.h>
5653 #endif
5654 Syntax error
5655 _ACEOF
5656 if ac_fn_cxx_try_cpp "$LINENO"; then :
5657
5658 else
5659 # Broken: fails on valid input.
5660 continue
5661 fi
5662 rm -f conftest.err conftest.$ac_ext
5663
5664 # OK, works on sane cases. Now check whether nonexistent headers
5665 # can be detected and how.
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5668 #include <ac_nonexistent.h>
5669 _ACEOF
5670 if ac_fn_cxx_try_cpp "$LINENO"; then :
5671 # Broken: success on invalid input.
5672 continue
5673 else
5674 # Passes both tests.
5675 ac_preproc_ok=:
5676 break
5677 fi
5678 rm -f conftest.err conftest.$ac_ext
5679
5680 done
5681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5682 rm -f conftest.err conftest.$ac_ext
5683 if $ac_preproc_ok; then :
5684
5685 else
5686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5688 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5689 See \`config.log' for more details." "$LINENO" 5; }
5690 fi
5691
5692 ac_ext=cpp
5693 ac_cpp='$CXXCPP $CPPFLAGS'
5694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5697
5698 fi
5699
5700
5701 ac_ext=f
5702 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5703 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5704 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5705 if test -n "$ac_tool_prefix"; then
5706 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5707 do
5708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5709 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711 $as_echo_n "checking for $ac_word... " >&6; }
5712 if test "${ac_cv_prog_F77+set}" = set; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5715 if test -n "$F77"; then
5716 ac_cv_prog_F77="$F77" # Let the user override the test.
5717 else
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 for as_dir in $PATH
5720 do
5721 IFS=$as_save_IFS
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5725 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5727 break 2
5728 fi
5729 done
5730 done
5731 IFS=$as_save_IFS
5732
5733 fi
5734 fi
5735 F77=$ac_cv_prog_F77
5736 if test -n "$F77"; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5738 $as_echo "$F77" >&6; }
5739 else
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5742 fi
5743
5744
5745 test -n "$F77" && break
5746 done
5747 fi
5748 if test -z "$F77"; then
5749 ac_ct_F77=$F77
5750 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5751 do
5752 # Extract the first word of "$ac_prog", so it can be a program name with args.
5753 set dummy $ac_prog; ac_word=$2
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755 $as_echo_n "checking for $ac_word... " >&6; }
5756 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
5757 $as_echo_n "(cached) " >&6
5758 else
5759 if test -n "$ac_ct_F77"; then
5760 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5764 do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_prog_ac_ct_F77="$ac_prog"
5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5772 fi
5773 done
5774 done
5775 IFS=$as_save_IFS
5776
5777 fi
5778 fi
5779 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5780 if test -n "$ac_ct_F77"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5782 $as_echo "$ac_ct_F77" >&6; }
5783 else
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5786 fi
5787
5788
5789 test -n "$ac_ct_F77" && break
5790 done
5791
5792 if test "x$ac_ct_F77" = x; then
5793 F77=""
5794 else
5795 case $cross_compiling:$ac_tool_warned in
5796 yes:)
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5799 ac_tool_warned=yes ;;
5800 esac
5801 F77=$ac_ct_F77
5802 fi
5803 fi
5804
5805
5806 # Provide some information about the compiler.
5807 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5808 set X $ac_compile
5809 ac_compiler=$2
5810 for ac_option in --version -v -V -qversion; do
5811 { { ac_try="$ac_compiler $ac_option >&5"
5812 case "(($ac_try" in
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5815 esac
5816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5817 $as_echo "$ac_try_echo"; } >&5
5818 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5819 ac_status=$?
5820 if test -s conftest.err; then
5821 sed '10a\
5822 ... rest of stderr output deleted ...
5823 10q' conftest.err >conftest.er1
5824 cat conftest.er1 >&5
5825 fi
5826 rm -f conftest.er1 conftest.err
5827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5828 test $ac_status = 0; }
5829 done
5830 rm -f a.out
5831
5832 # If we don't use `.F' as extension, the preprocessor is not run on the
5833 # input file. (Note that this only needs to work for GNU compilers.)
5834 ac_save_ext=$ac_ext
5835 ac_ext=F
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
5837 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5838 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
5839 $as_echo_n "(cached) " >&6
5840 else
5841 cat > conftest.$ac_ext <<_ACEOF
5842 program main
5843 #ifndef __GNUC__
5844 choke me
5845 #endif
5846
5847 end
5848 _ACEOF
5849 if ac_fn_f77_try_compile "$LINENO"; then :
5850 ac_compiler_gnu=yes
5851 else
5852 ac_compiler_gnu=no
5853 fi
5854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5856
5857 fi
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
5859 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5860 ac_ext=$ac_save_ext
5861 ac_test_FFLAGS=${FFLAGS+set}
5862 ac_save_FFLAGS=$FFLAGS
5863 FFLAGS=
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
5865 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5866 if test "${ac_cv_prog_f77_g+set}" = set; then :
5867 $as_echo_n "(cached) " >&6
5868 else
5869 FFLAGS=-g
5870 cat > conftest.$ac_ext <<_ACEOF
5871 program main
5872
5873 end
5874 _ACEOF
5875 if ac_fn_f77_try_compile "$LINENO"; then :
5876 ac_cv_prog_f77_g=yes
5877 else
5878 ac_cv_prog_f77_g=no
5879 fi
5880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5881
5882 fi
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
5884 $as_echo "$ac_cv_prog_f77_g" >&6; }
5885 if test "$ac_test_FFLAGS" = set; then
5886 FFLAGS=$ac_save_FFLAGS
5887 elif test $ac_cv_prog_f77_g = yes; then
5888 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5889 FFLAGS="-g -O2"
5890 else
5891 FFLAGS="-g"
5892 fi
5893 else
5894 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5895 FFLAGS="-O2"
5896 else
5897 FFLAGS=
5898 fi
5899 fi
5900
5901 if test $ac_compiler_gnu = yes; then
5902 G77=yes
5903 else
5904 G77=
5905 fi
5906 ac_ext=c
5907 ac_cpp='$CPP $CPPFLAGS'
5908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5911
5912
5913
5914 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5915 # find the maximum length of command line arguments
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5917 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5918 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 i=0
5922 teststring="ABCD"
5923
5924 case $build_os in
5925 msdosdjgpp*)
5926 # On DJGPP, this test can blow up pretty badly due to problems in libc
5927 # (any single argument exceeding 2000 bytes causes a buffer overrun
5928 # during glob expansion). Even if it were fixed, the result of this
5929 # check would be larger than it should be.
5930 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5931 ;;
5932
5933 gnu*)
5934 # Under GNU Hurd, this test is not required because there is
5935 # no limit to the length of command line arguments.
5936 # Libtool will interpret -1 as no limit whatsoever
5937 lt_cv_sys_max_cmd_len=-1;
5938 ;;
5939
5940 cygwin* | mingw*)
5941 # On Win9x/ME, this test blows up -- it succeeds, but takes
5942 # about 5 minutes as the teststring grows exponentially.
5943 # Worse, since 9x/ME are not pre-emptively multitasking,
5944 # you end up with a "frozen" computer, even though with patience
5945 # the test eventually succeeds (with a max line length of 256k).
5946 # Instead, let's just punt: use the minimum linelength reported by
5947 # all of the supported platforms: 8192 (on NT/2K/XP).
5948 lt_cv_sys_max_cmd_len=8192;
5949 ;;
5950
5951 amigaos*)
5952 # On AmigaOS with pdksh, this test takes hours, literally.
5953 # So we just punt and use a minimum line length of 8192.
5954 lt_cv_sys_max_cmd_len=8192;
5955 ;;
5956
5957 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5958 # This has been around since 386BSD, at least. Likely further.
5959 if test -x /sbin/sysctl; then
5960 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5961 elif test -x /usr/sbin/sysctl; then
5962 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5963 else
5964 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5965 fi
5966 # And add a safety zone
5967 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5968 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5969 ;;
5970
5971 interix*)
5972 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5973 lt_cv_sys_max_cmd_len=196608
5974 ;;
5975
5976 osf*)
5977 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5978 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5979 # nice to cause kernel panics so lets avoid the loop below.
5980 # First set a reasonable default.
5981 lt_cv_sys_max_cmd_len=16384
5982 #
5983 if test -x /sbin/sysconfig; then
5984 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5985 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5986 esac
5987 fi
5988 ;;
5989 sco3.2v5*)
5990 lt_cv_sys_max_cmd_len=102400
5991 ;;
5992 sysv5* | sco5v6* | sysv4.2uw2*)
5993 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5994 if test -n "$kargmax"; then
5995 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5996 else
5997 lt_cv_sys_max_cmd_len=32768
5998 fi
5999 ;;
6000 *)
6001 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6002 if test -n "$lt_cv_sys_max_cmd_len"; then
6003 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6005 else
6006 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6007 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6008 = "XX$teststring") >/dev/null 2>&1 &&
6009 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6010 lt_cv_sys_max_cmd_len=$new_result &&
6011 test $i != 17 # 1/2 MB should be enough
6012 do
6013 i=`expr $i + 1`
6014 teststring=$teststring$teststring
6015 done
6016 teststring=
6017 # Add a significant safety factor because C++ compilers can tack on massive
6018 # amounts of additional arguments before passing them to the linker.
6019 # It appears as though 1/2 is a usable value.
6020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6021 fi
6022 ;;
6023 esac
6024
6025 fi
6026
6027 if test -n $lt_cv_sys_max_cmd_len ; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6029 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6030 else
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6032 $as_echo "none" >&6; }
6033 fi
6034
6035
6036
6037
6038
6039 # Check for command to grab the raw symbol name followed by C symbol from nm.
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6041 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6042 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6043 $as_echo_n "(cached) " >&6
6044 else
6045
6046 # These are sane defaults that work on at least a few old systems.
6047 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6048
6049 # Character class describing NM global symbol codes.
6050 symcode='[BCDEGRST]'
6051
6052 # Regexp to match symbols that can be accessed directly from C.
6053 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6054
6055 # Transform an extracted symbol line into a proper C declaration
6056 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6057
6058 # Transform an extracted symbol line into symbol name and symbol address
6059 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6060
6061 # Define system-specific variables.
6062 case $host_os in
6063 aix*)
6064 symcode='[BCDT]'
6065 ;;
6066 cygwin* | mingw* | pw32*)
6067 symcode='[ABCDGISTW]'
6068 ;;
6069 hpux*) # Its linker distinguishes data from code symbols
6070 if test "$host_cpu" = ia64; then
6071 symcode='[ABCDEGRST]'
6072 fi
6073 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6074 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6075 ;;
6076 linux* | k*bsd*-gnu)
6077 if test "$host_cpu" = ia64; then
6078 symcode='[ABCDGIRSTW]'
6079 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6080 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6081 fi
6082 ;;
6083 irix* | nonstopux*)
6084 symcode='[BCDEGRST]'
6085 ;;
6086 osf*)
6087 symcode='[BCDEGQRST]'
6088 ;;
6089 solaris*)
6090 symcode='[BDRT]'
6091 ;;
6092 sco3.2v5*)
6093 symcode='[DT]'
6094 ;;
6095 sysv4.2uw2*)
6096 symcode='[DT]'
6097 ;;
6098 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6099 symcode='[ABDT]'
6100 ;;
6101 sysv4)
6102 symcode='[DFNSTU]'
6103 ;;
6104 esac
6105
6106 # Handle CRLF in mingw tool chain
6107 opt_cr=
6108 case $build_os in
6109 mingw*)
6110 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6111 ;;
6112 esac
6113
6114 # If we're using GNU nm, then use its standard symbol codes.
6115 case `$NM -V 2>&1` in
6116 *GNU* | *'with BFD'*)
6117 symcode='[ABCDGIRSTW]' ;;
6118 esac
6119
6120 # Try without a prefix undercore, then with it.
6121 for ac_symprfx in "" "_"; do
6122
6123 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6124 symxfrm="\\1 $ac_symprfx\\2 \\2"
6125
6126 # Write the raw and C identifiers.
6127 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6128
6129 # Check to see that the pipe works correctly.
6130 pipe_works=no
6131
6132 rm -f conftest*
6133 cat > conftest.$ac_ext <<EOF
6134 #ifdef __cplusplus
6135 extern "C" {
6136 #endif
6137 char nm_test_var;
6138 void nm_test_func(){}
6139 #ifdef __cplusplus
6140 }
6141 #endif
6142 int main(){nm_test_var='a';nm_test_func();return(0);}
6143 EOF
6144
6145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6146 (eval $ac_compile) 2>&5
6147 ac_status=$?
6148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6149 test $ac_status = 0; }; then
6150 # Now try to grab the symbols.
6151 nlist=conftest.nm
6152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6153 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6154 ac_status=$?
6155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6156 test $ac_status = 0; } && test -s "$nlist"; then
6157 # Try sorting and uniquifying the output.
6158 if sort "$nlist" | uniq > "$nlist"T; then
6159 mv -f "$nlist"T "$nlist"
6160 else
6161 rm -f "$nlist"T
6162 fi
6163
6164 # Make sure that we snagged all the symbols we need.
6165 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6166 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6167 cat <<EOF > conftest.$ac_ext
6168 #ifdef __cplusplus
6169 extern "C" {
6170 #endif
6171
6172 EOF
6173 # Now generate the symbol file.
6174 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6175
6176 cat <<EOF >> conftest.$ac_ext
6177 #if defined (__STDC__) && __STDC__
6178 # define lt_ptr_t void *
6179 #else
6180 # define lt_ptr_t char *
6181 # define const
6182 #endif
6183
6184 /* The mapping between symbol names and symbols. */
6185 const struct {
6186 const char *name;
6187 lt_ptr_t address;
6188 }
6189 lt_preloaded_symbols[] =
6190 {
6191 EOF
6192 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6193 cat <<\EOF >> conftest.$ac_ext
6194 {0, (lt_ptr_t) 0}
6195 };
6196
6197 #ifdef __cplusplus
6198 }
6199 #endif
6200 EOF
6201 # Now try linking the two files.
6202 mv conftest.$ac_objext conftstm.$ac_objext
6203 lt_save_LIBS="$LIBS"
6204 lt_save_CFLAGS="$CFLAGS"
6205 LIBS="conftstm.$ac_objext"
6206 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6208 (eval $ac_link) 2>&5
6209 ac_status=$?
6210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6211 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6212 pipe_works=yes
6213 fi
6214 LIBS="$lt_save_LIBS"
6215 CFLAGS="$lt_save_CFLAGS"
6216 else
6217 echo "cannot find nm_test_func in $nlist" >&5
6218 fi
6219 else
6220 echo "cannot find nm_test_var in $nlist" >&5
6221 fi
6222 else
6223 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6224 fi
6225 else
6226 echo "$progname: failed program was:" >&5
6227 cat conftest.$ac_ext >&5
6228 fi
6229 rm -rf conftest* conftst*
6230
6231 # Do not use the global_symbol_pipe unless it works.
6232 if test "$pipe_works" = yes; then
6233 break
6234 else
6235 lt_cv_sys_global_symbol_pipe=
6236 fi
6237 done
6238
6239 fi
6240
6241 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6242 lt_cv_sys_global_symbol_to_cdecl=
6243 fi
6244 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6246 $as_echo "failed" >&6; }
6247 else
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6249 $as_echo "ok" >&6; }
6250 fi
6251
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6253 $as_echo_n "checking for objdir... " >&6; }
6254 if test "${lt_cv_objdir+set}" = set; then :
6255 $as_echo_n "(cached) " >&6
6256 else
6257 rm -f .libs 2>/dev/null
6258 mkdir .libs 2>/dev/null
6259 if test -d .libs; then
6260 lt_cv_objdir=.libs
6261 else
6262 # MS-DOS does not allow filenames that begin with a dot.
6263 lt_cv_objdir=_libs
6264 fi
6265 rmdir .libs 2>/dev/null
6266 fi
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6268 $as_echo "$lt_cv_objdir" >&6; }
6269 objdir=$lt_cv_objdir
6270
6271
6272
6273
6274
6275 case $host_os in
6276 aix3*)
6277 # AIX sometimes has problems with the GCC collect2 program. For some
6278 # reason, if we set the COLLECT_NAMES environment variable, the problems
6279 # vanish in a puff of smoke.
6280 if test "X${COLLECT_NAMES+set}" != Xset; then
6281 COLLECT_NAMES=
6282 export COLLECT_NAMES
6283 fi
6284 ;;
6285 esac
6286
6287 # Sed substitution that helps us do robust quoting. It backslashifies
6288 # metacharacters that are still active within double-quoted strings.
6289 Xsed='sed -e 1s/^X//'
6290 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6291
6292 # Same as above, but do not quote variable references.
6293 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6294
6295 # Sed substitution to delay expansion of an escaped shell variable in a
6296 # double_quote_subst'ed string.
6297 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6298
6299 # Sed substitution to avoid accidental globbing in evaled expressions
6300 no_glob_subst='s/\*/\\\*/g'
6301
6302 # Constants:
6303 rm="rm -f"
6304
6305 # Global variables:
6306 default_ofile=libtool
6307 can_build_shared=yes
6308
6309 # All known linkers require a `.a' archive for static linking (except MSVC,
6310 # which needs '.lib').
6311 libext=a
6312 ltmain="$ac_aux_dir/ltmain.sh"
6313 ofile="$default_ofile"
6314 with_gnu_ld="$lt_cv_prog_gnu_ld"
6315
6316 if test -n "$ac_tool_prefix"; then
6317 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6318 set dummy ${ac_tool_prefix}ar; ac_word=$2
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6320 $as_echo_n "checking for $ac_word... " >&6; }
6321 if test "${ac_cv_prog_AR+set}" = set; then :
6322 $as_echo_n "(cached) " >&6
6323 else
6324 if test -n "$AR"; then
6325 ac_cv_prog_AR="$AR" # Let the user override the test.
6326 else
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 for as_dir in $PATH
6329 do
6330 IFS=$as_save_IFS
6331 test -z "$as_dir" && as_dir=.
6332 for ac_exec_ext in '' $ac_executable_extensions; do
6333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6334 ac_cv_prog_AR="${ac_tool_prefix}ar"
6335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 break 2
6337 fi
6338 done
6339 done
6340 IFS=$as_save_IFS
6341
6342 fi
6343 fi
6344 AR=$ac_cv_prog_AR
6345 if test -n "$AR"; then
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6347 $as_echo "$AR" >&6; }
6348 else
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350 $as_echo "no" >&6; }
6351 fi
6352
6353
6354 fi
6355 if test -z "$ac_cv_prog_AR"; then
6356 ac_ct_AR=$AR
6357 # Extract the first word of "ar", so it can be a program name with args.
6358 set dummy ar; ac_word=$2
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6360 $as_echo_n "checking for $ac_word... " >&6; }
6361 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6362 $as_echo_n "(cached) " >&6
6363 else
6364 if test -n "$ac_ct_AR"; then
6365 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6366 else
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 for as_dir in $PATH
6369 do
6370 IFS=$as_save_IFS
6371 test -z "$as_dir" && as_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6374 ac_cv_prog_ac_ct_AR="ar"
6375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 break 2
6377 fi
6378 done
6379 done
6380 IFS=$as_save_IFS
6381
6382 fi
6383 fi
6384 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6385 if test -n "$ac_ct_AR"; then
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6387 $as_echo "$ac_ct_AR" >&6; }
6388 else
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6390 $as_echo "no" >&6; }
6391 fi
6392
6393 if test "x$ac_ct_AR" = x; then
6394 AR="false"
6395 else
6396 case $cross_compiling:$ac_tool_warned in
6397 yes:)
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6400 ac_tool_warned=yes ;;
6401 esac
6402 AR=$ac_ct_AR
6403 fi
6404 else
6405 AR="$ac_cv_prog_AR"
6406 fi
6407
6408 if test -n "$ac_tool_prefix"; then
6409 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6410 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 $as_echo_n "checking for $ac_word... " >&6; }
6413 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6414 $as_echo_n "(cached) " >&6
6415 else
6416 if test -n "$RANLIB"; then
6417 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6418 else
6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 for as_dir in $PATH
6421 do
6422 IFS=$as_save_IFS
6423 test -z "$as_dir" && as_dir=.
6424 for ac_exec_ext in '' $ac_executable_extensions; do
6425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6426 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6428 break 2
6429 fi
6430 done
6431 done
6432 IFS=$as_save_IFS
6433
6434 fi
6435 fi
6436 RANLIB=$ac_cv_prog_RANLIB
6437 if test -n "$RANLIB"; then
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6439 $as_echo "$RANLIB" >&6; }
6440 else
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6442 $as_echo "no" >&6; }
6443 fi
6444
6445
6446 fi
6447 if test -z "$ac_cv_prog_RANLIB"; then
6448 ac_ct_RANLIB=$RANLIB
6449 # Extract the first word of "ranlib", so it can be a program name with args.
6450 set dummy ranlib; ac_word=$2
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452 $as_echo_n "checking for $ac_word... " >&6; }
6453 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 if test -n "$ac_ct_RANLIB"; then
6457 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6458 else
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 for as_dir in $PATH
6461 do
6462 IFS=$as_save_IFS
6463 test -z "$as_dir" && as_dir=.
6464 for ac_exec_ext in '' $ac_executable_extensions; do
6465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6466 ac_cv_prog_ac_ct_RANLIB="ranlib"
6467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468 break 2
6469 fi
6470 done
6471 done
6472 IFS=$as_save_IFS
6473
6474 fi
6475 fi
6476 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6477 if test -n "$ac_ct_RANLIB"; then
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6479 $as_echo "$ac_ct_RANLIB" >&6; }
6480 else
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6483 fi
6484
6485 if test "x$ac_ct_RANLIB" = x; then
6486 RANLIB=":"
6487 else
6488 case $cross_compiling:$ac_tool_warned in
6489 yes:)
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6492 ac_tool_warned=yes ;;
6493 esac
6494 RANLIB=$ac_ct_RANLIB
6495 fi
6496 else
6497 RANLIB="$ac_cv_prog_RANLIB"
6498 fi
6499
6500 if test -n "$ac_tool_prefix"; then
6501 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6502 set dummy ${ac_tool_prefix}strip; ac_word=$2
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6504 $as_echo_n "checking for $ac_word... " >&6; }
6505 if test "${ac_cv_prog_STRIP+set}" = set; then :
6506 $as_echo_n "(cached) " >&6
6507 else
6508 if test -n "$STRIP"; then
6509 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6510 else
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 for as_dir in $PATH
6513 do
6514 IFS=$as_save_IFS
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6518 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6520 break 2
6521 fi
6522 done
6523 done
6524 IFS=$as_save_IFS
6525
6526 fi
6527 fi
6528 STRIP=$ac_cv_prog_STRIP
6529 if test -n "$STRIP"; then
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6531 $as_echo "$STRIP" >&6; }
6532 else
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534 $as_echo "no" >&6; }
6535 fi
6536
6537
6538 fi
6539 if test -z "$ac_cv_prog_STRIP"; then
6540 ac_ct_STRIP=$STRIP
6541 # Extract the first word of "strip", so it can be a program name with args.
6542 set dummy strip; ac_word=$2
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 $as_echo_n "checking for $ac_word... " >&6; }
6545 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6546 $as_echo_n "(cached) " >&6
6547 else
6548 if test -n "$ac_ct_STRIP"; then
6549 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6550 else
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 for as_dir in $PATH
6553 do
6554 IFS=$as_save_IFS
6555 test -z "$as_dir" && as_dir=.
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6558 ac_cv_prog_ac_ct_STRIP="strip"
6559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6560 break 2
6561 fi
6562 done
6563 done
6564 IFS=$as_save_IFS
6565
6566 fi
6567 fi
6568 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6569 if test -n "$ac_ct_STRIP"; then
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6571 $as_echo "$ac_ct_STRIP" >&6; }
6572 else
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 $as_echo "no" >&6; }
6575 fi
6576
6577 if test "x$ac_ct_STRIP" = x; then
6578 STRIP=":"
6579 else
6580 case $cross_compiling:$ac_tool_warned in
6581 yes:)
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6584 ac_tool_warned=yes ;;
6585 esac
6586 STRIP=$ac_ct_STRIP
6587 fi
6588 else
6589 STRIP="$ac_cv_prog_STRIP"
6590 fi
6591
6592
6593 old_CC="$CC"
6594 old_CFLAGS="$CFLAGS"
6595
6596 # Set sane defaults for various variables
6597 test -z "$AR" && AR=ar
6598 test -z "$AR_FLAGS" && AR_FLAGS=cru
6599 test -z "$AS" && AS=as
6600 test -z "$CC" && CC=cc
6601 test -z "$LTCC" && LTCC=$CC
6602 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6603 test -z "$DLLTOOL" && DLLTOOL=dlltool
6604 test -z "$LD" && LD=ld
6605 test -z "$LN_S" && LN_S="ln -s"
6606 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6607 test -z "$NM" && NM=nm
6608 test -z "$SED" && SED=sed
6609 test -z "$OBJDUMP" && OBJDUMP=objdump
6610 test -z "$RANLIB" && RANLIB=:
6611 test -z "$STRIP" && STRIP=:
6612 test -z "$ac_objext" && ac_objext=o
6613
6614 # Determine commands to create old-style static archives.
6615 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6616 old_postinstall_cmds='chmod 644 $oldlib'
6617 old_postuninstall_cmds=
6618
6619 if test -n "$RANLIB"; then
6620 case $host_os in
6621 openbsd*)
6622 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6623 ;;
6624 *)
6625 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6626 ;;
6627 esac
6628 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6629 fi
6630
6631 for cc_temp in $compiler""; do
6632 case $cc_temp in
6633 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6634 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6635 \-*) ;;
6636 *) break;;
6637 esac
6638 done
6639 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6640
6641
6642 # Only perform the check for file, if the check method requires it
6643 case $deplibs_check_method in
6644 file_magic*)
6645 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6647 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6648 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 case $MAGIC_CMD in
6652 [\\/*] | ?:[\\/]*)
6653 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6654 ;;
6655 *)
6656 lt_save_MAGIC_CMD="$MAGIC_CMD"
6657 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6658 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6659 for ac_dir in $ac_dummy; do
6660 IFS="$lt_save_ifs"
6661 test -z "$ac_dir" && ac_dir=.
6662 if test -f $ac_dir/${ac_tool_prefix}file; then
6663 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6664 if test -n "$file_magic_test_file"; then
6665 case $deplibs_check_method in
6666 "file_magic "*)
6667 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6668 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6669 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6670 $EGREP "$file_magic_regex" > /dev/null; then
6671 :
6672 else
6673 cat <<EOF 1>&2
6674
6675 *** Warning: the command libtool uses to detect shared libraries,
6676 *** $file_magic_cmd, produces output that libtool cannot recognize.
6677 *** The result is that libtool may fail to recognize shared libraries
6678 *** as such. This will affect the creation of libtool libraries that
6679 *** depend on shared libraries, but programs linked with such libtool
6680 *** libraries will work regardless of this problem. Nevertheless, you
6681 *** may want to report the problem to your system manager and/or to
6682 *** bug-libtool@gnu.org
6683
6684 EOF
6685 fi ;;
6686 esac
6687 fi
6688 break
6689 fi
6690 done
6691 IFS="$lt_save_ifs"
6692 MAGIC_CMD="$lt_save_MAGIC_CMD"
6693 ;;
6694 esac
6695 fi
6696
6697 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6698 if test -n "$MAGIC_CMD"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6700 $as_echo "$MAGIC_CMD" >&6; }
6701 else
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6704 fi
6705
6706 if test -z "$lt_cv_path_MAGIC_CMD"; then
6707 if test -n "$ac_tool_prefix"; then
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6709 $as_echo_n "checking for file... " >&6; }
6710 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6711 $as_echo_n "(cached) " >&6
6712 else
6713 case $MAGIC_CMD in
6714 [\\/*] | ?:[\\/]*)
6715 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6716 ;;
6717 *)
6718 lt_save_MAGIC_CMD="$MAGIC_CMD"
6719 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6720 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6721 for ac_dir in $ac_dummy; do
6722 IFS="$lt_save_ifs"
6723 test -z "$ac_dir" && ac_dir=.
6724 if test -f $ac_dir/file; then
6725 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6726 if test -n "$file_magic_test_file"; then
6727 case $deplibs_check_method in
6728 "file_magic "*)
6729 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6731 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6732 $EGREP "$file_magic_regex" > /dev/null; then
6733 :
6734 else
6735 cat <<EOF 1>&2
6736
6737 *** Warning: the command libtool uses to detect shared libraries,
6738 *** $file_magic_cmd, produces output that libtool cannot recognize.
6739 *** The result is that libtool may fail to recognize shared libraries
6740 *** as such. This will affect the creation of libtool libraries that
6741 *** depend on shared libraries, but programs linked with such libtool
6742 *** libraries will work regardless of this problem. Nevertheless, you
6743 *** may want to report the problem to your system manager and/or to
6744 *** bug-libtool@gnu.org
6745
6746 EOF
6747 fi ;;
6748 esac
6749 fi
6750 break
6751 fi
6752 done
6753 IFS="$lt_save_ifs"
6754 MAGIC_CMD="$lt_save_MAGIC_CMD"
6755 ;;
6756 esac
6757 fi
6758
6759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6760 if test -n "$MAGIC_CMD"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6762 $as_echo "$MAGIC_CMD" >&6; }
6763 else
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 $as_echo "no" >&6; }
6766 fi
6767
6768 else
6769 MAGIC_CMD=:
6770 fi
6771 fi
6772
6773 fi
6774 ;;
6775 esac
6776
6777
6778 case $host_os in
6779 rhapsody* | darwin*)
6780 if test -n "$ac_tool_prefix"; then
6781 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6782 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784 $as_echo_n "checking for $ac_word... " >&6; }
6785 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6786 $as_echo_n "(cached) " >&6
6787 else
6788 if test -n "$DSYMUTIL"; then
6789 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6790 else
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6793 do
6794 IFS=$as_save_IFS
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 break 2
6801 fi
6802 done
6803 done
6804 IFS=$as_save_IFS
6805
6806 fi
6807 fi
6808 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6809 if test -n "$DSYMUTIL"; then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6811 $as_echo "$DSYMUTIL" >&6; }
6812 else
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814 $as_echo "no" >&6; }
6815 fi
6816
6817
6818 fi
6819 if test -z "$ac_cv_prog_DSYMUTIL"; then
6820 ac_ct_DSYMUTIL=$DSYMUTIL
6821 # Extract the first word of "dsymutil", so it can be a program name with args.
6822 set dummy dsymutil; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 if test -n "$ac_ct_DSYMUTIL"; then
6829 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834 IFS=$as_save_IFS
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6838 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 break 2
6841 fi
6842 done
6843 done
6844 IFS=$as_save_IFS
6845
6846 fi
6847 fi
6848 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6849 if test -n "$ac_ct_DSYMUTIL"; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6851 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6852 else
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6855 fi
6856
6857 if test "x$ac_ct_DSYMUTIL" = x; then
6858 DSYMUTIL=":"
6859 else
6860 case $cross_compiling:$ac_tool_warned in
6861 yes:)
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6864 ac_tool_warned=yes ;;
6865 esac
6866 DSYMUTIL=$ac_ct_DSYMUTIL
6867 fi
6868 else
6869 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6870 fi
6871
6872 if test -n "$ac_tool_prefix"; then
6873 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6874 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876 $as_echo_n "checking for $ac_word... " >&6; }
6877 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6878 $as_echo_n "(cached) " >&6
6879 else
6880 if test -n "$NMEDIT"; then
6881 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6882 else
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 for as_dir in $PATH
6885 do
6886 IFS=$as_save_IFS
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6890 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 break 2
6893 fi
6894 done
6895 done
6896 IFS=$as_save_IFS
6897
6898 fi
6899 fi
6900 NMEDIT=$ac_cv_prog_NMEDIT
6901 if test -n "$NMEDIT"; then
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6903 $as_echo "$NMEDIT" >&6; }
6904 else
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906 $as_echo "no" >&6; }
6907 fi
6908
6909
6910 fi
6911 if test -z "$ac_cv_prog_NMEDIT"; then
6912 ac_ct_NMEDIT=$NMEDIT
6913 # Extract the first word of "nmedit", so it can be a program name with args.
6914 set dummy nmedit; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 if test -n "$ac_ct_NMEDIT"; then
6921 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6930 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 break 2
6933 fi
6934 done
6935 done
6936 IFS=$as_save_IFS
6937
6938 fi
6939 fi
6940 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6941 if test -n "$ac_ct_NMEDIT"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6943 $as_echo "$ac_ct_NMEDIT" >&6; }
6944 else
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6947 fi
6948
6949 if test "x$ac_ct_NMEDIT" = x; then
6950 NMEDIT=":"
6951 else
6952 case $cross_compiling:$ac_tool_warned in
6953 yes:)
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6956 ac_tool_warned=yes ;;
6957 esac
6958 NMEDIT=$ac_ct_NMEDIT
6959 fi
6960 else
6961 NMEDIT="$ac_cv_prog_NMEDIT"
6962 fi
6963
6964
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6966 $as_echo_n "checking for -single_module linker flag... " >&6; }
6967 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6968 $as_echo_n "(cached) " >&6
6969 else
6970 lt_cv_apple_cc_single_mod=no
6971 if test -z "${LT_MULTI_MODULE}"; then
6972 # By default we will add the -single_module flag. You can override
6973 # by either setting the environment variable LT_MULTI_MODULE
6974 # non-empty at configure time, or by adding -multi_module to the
6975 # link flags.
6976 echo "int foo(void){return 1;}" > conftest.c
6977 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6978 -dynamiclib ${wl}-single_module conftest.c
6979 if test -f libconftest.dylib; then
6980 lt_cv_apple_cc_single_mod=yes
6981 rm -rf libconftest.dylib*
6982 fi
6983 rm conftest.c
6984 fi
6985 fi
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6987 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6989 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6990 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6991 $as_echo_n "(cached) " >&6
6992 else
6993 lt_cv_ld_exported_symbols_list=no
6994 save_LDFLAGS=$LDFLAGS
6995 echo "_main" > conftest.sym
6996 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
6999
7000 int
7001 main ()
7002 {
7003
7004 ;
7005 return 0;
7006 }
7007 _ACEOF
7008 if ac_fn_c_try_link "$LINENO"; then :
7009 lt_cv_ld_exported_symbols_list=yes
7010 else
7011 lt_cv_ld_exported_symbols_list=no
7012 fi
7013 rm -f core conftest.err conftest.$ac_objext \
7014 conftest$ac_exeext conftest.$ac_ext
7015 LDFLAGS="$save_LDFLAGS"
7016
7017 fi
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7019 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7020 case $host_os in
7021 rhapsody* | darwin1.[0123])
7022 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7023 darwin1.*)
7024 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7025 darwin*)
7026 # if running on 10.5 or later, the deployment target defaults
7027 # to the OS version, if on x86, and 10.4, the deployment
7028 # target defaults to 10.4. Don't you love it?
7029 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7030 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7031 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7032 10.[012]*)
7033 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7034 10.*)
7035 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7036 esac
7037 ;;
7038 esac
7039 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7040 _lt_dar_single_mod='$single_module'
7041 fi
7042 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7043 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7044 else
7045 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7046 fi
7047 if test "$DSYMUTIL" != ":"; then
7048 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7049 else
7050 _lt_dsymutil=
7051 fi
7052 ;;
7053 esac
7054
7055
7056 enable_dlopen=no
7057 enable_win32_dll=no
7058
7059 # Check whether --enable-libtool-lock was given.
7060 if test "${enable_libtool_lock+set}" = set; then :
7061 enableval=$enable_libtool_lock;
7062 fi
7063
7064 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7065
7066
7067 # Check whether --with-pic was given.
7068 if test "${with_pic+set}" = set; then :
7069 withval=$with_pic; pic_mode="$withval"
7070 else
7071 pic_mode=default
7072 fi
7073
7074 test -z "$pic_mode" && pic_mode=default
7075
7076 # Use C for the default configuration in the libtool script
7077 tagname=
7078 lt_save_CC="$CC"
7079 ac_ext=c
7080 ac_cpp='$CPP $CPPFLAGS'
7081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7084
7085
7086 # Source file extension for C test sources.
7087 ac_ext=c
7088
7089 # Object file extension for compiled C test sources.
7090 objext=o
7091 objext=$objext
7092
7093 # Code to be used in simple compile tests
7094 lt_simple_compile_test_code="int some_variable = 0;"
7095
7096 # Code to be used in simple link tests
7097 lt_simple_link_test_code='int main(){return(0);}'
7098
7099
7100 # If no C compiler was specified, use CC.
7101 LTCC=${LTCC-"$CC"}
7102
7103 # If no C compiler flags were specified, use CFLAGS.
7104 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7105
7106 # Allow CC to be a program name with arguments.
7107 compiler=$CC
7108
7109
7110 # save warnings/boilerplate of simple test code
7111 ac_outfile=conftest.$ac_objext
7112 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7113 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7114 _lt_compiler_boilerplate=`cat conftest.err`
7115 $rm conftest*
7116
7117 ac_outfile=conftest.$ac_objext
7118 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7119 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7120 _lt_linker_boilerplate=`cat conftest.err`
7121 $rm -r conftest*
7122
7123
7124
7125 lt_prog_compiler_no_builtin_flag=
7126
7127 if test "$GCC" = yes; then
7128 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7129
7130
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7132 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7133 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7134 $as_echo_n "(cached) " >&6
7135 else
7136 lt_cv_prog_compiler_rtti_exceptions=no
7137 ac_outfile=conftest.$ac_objext
7138 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7139 lt_compiler_flag="-fno-rtti -fno-exceptions"
7140 # Insert the option either (1) after the last *FLAGS variable, or
7141 # (2) before a word containing "conftest.", or (3) at the end.
7142 # Note that $ac_compile itself does not contain backslashes and begins
7143 # with a dollar sign (not a hyphen), so the echo should work correctly.
7144 # The option is referenced via a variable to avoid confusing sed.
7145 lt_compile=`echo "$ac_compile" | $SED \
7146 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7148 -e 's:$: $lt_compiler_flag:'`
7149 (eval echo "\"\$as_me:7149: $lt_compile\"" >&5)
7150 (eval "$lt_compile" 2>conftest.err)
7151 ac_status=$?
7152 cat conftest.err >&5
7153 echo "$as_me:7153: \$? = $ac_status" >&5
7154 if (exit $ac_status) && test -s "$ac_outfile"; then
7155 # The compiler can only warn and ignore the option if not recognized
7156 # So say no if there are warnings other than the usual output.
7157 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7159 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7160 lt_cv_prog_compiler_rtti_exceptions=yes
7161 fi
7162 fi
7163 $rm conftest*
7164
7165 fi
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7167 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7168
7169 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7170 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7171 else
7172 :
7173 fi
7174
7175 fi
7176
7177 lt_prog_compiler_wl=
7178 lt_prog_compiler_pic=
7179 lt_prog_compiler_static=
7180
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7182 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7183
7184 if test "$GCC" = yes; then
7185 lt_prog_compiler_wl='-Wl,'
7186 lt_prog_compiler_static='-static'
7187
7188 case $host_os in
7189 aix*)
7190 # All AIX code is PIC.
7191 if test "$host_cpu" = ia64; then
7192 # AIX 5 now supports IA64 processor
7193 lt_prog_compiler_static='-Bstatic'
7194 fi
7195 ;;
7196
7197 amigaos*)
7198 # FIXME: we need at least 68020 code to build shared libraries, but
7199 # adding the `-m68020' flag to GCC prevents building anything better,
7200 # like `-m68040'.
7201 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7202 ;;
7203
7204 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7205 # PIC is the default for these OSes.
7206 ;;
7207
7208 mingw* | cygwin* | pw32* | os2*)
7209 # This hack is so that the source file can tell whether it is being
7210 # built for inclusion in a dll (and should export symbols for example).
7211 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7212 # (--disable-auto-import) libraries
7213 lt_prog_compiler_pic='-DDLL_EXPORT'
7214 ;;
7215
7216 darwin* | rhapsody*)
7217 # PIC is the default on this platform
7218 # Common symbols not allowed in MH_DYLIB files
7219 lt_prog_compiler_pic='-fno-common'
7220 ;;
7221
7222 interix[3-9]*)
7223 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7224 # Instead, we relocate shared libraries at runtime.
7225 ;;
7226
7227 msdosdjgpp*)
7228 # Just because we use GCC doesn't mean we suddenly get shared libraries
7229 # on systems that don't support them.
7230 lt_prog_compiler_can_build_shared=no
7231 enable_shared=no
7232 ;;
7233
7234 sysv4*MP*)
7235 if test -d /usr/nec; then
7236 lt_prog_compiler_pic=-Kconform_pic
7237 fi
7238 ;;
7239
7240 hpux*)
7241 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7242 # not for PA HP-UX.
7243 case $host_cpu in
7244 hppa*64*|ia64*)
7245 # +Z the default
7246 ;;
7247 *)
7248 lt_prog_compiler_pic='-fPIC'
7249 ;;
7250 esac
7251 ;;
7252
7253 *)
7254 lt_prog_compiler_pic='-fPIC'
7255 ;;
7256 esac
7257 else
7258 # PORTME Check for flag to pass linker flags through the system compiler.
7259 case $host_os in
7260 aix*)
7261 lt_prog_compiler_wl='-Wl,'
7262 if test "$host_cpu" = ia64; then
7263 # AIX 5 now supports IA64 processor
7264 lt_prog_compiler_static='-Bstatic'
7265 else
7266 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7267 fi
7268 ;;
7269 darwin*)
7270 # PIC is the default on this platform
7271 # Common symbols not allowed in MH_DYLIB files
7272 case $cc_basename in
7273 xlc*)
7274 lt_prog_compiler_pic='-qnocommon'
7275 lt_prog_compiler_wl='-Wl,'
7276 ;;
7277 esac
7278 ;;
7279
7280 mingw* | cygwin* | pw32* | os2*)
7281 # This hack is so that the source file can tell whether it is being
7282 # built for inclusion in a dll (and should export symbols for example).
7283 lt_prog_compiler_pic='-DDLL_EXPORT'
7284 ;;
7285
7286 hpux9* | hpux10* | hpux11*)
7287 lt_prog_compiler_wl='-Wl,'
7288 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7289 # not for PA HP-UX.
7290 case $host_cpu in
7291 hppa*64*|ia64*)
7292 # +Z the default
7293 ;;
7294 *)
7295 lt_prog_compiler_pic='+Z'
7296 ;;
7297 esac
7298 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7299 lt_prog_compiler_static='${wl}-a ${wl}archive'
7300 ;;
7301
7302 irix5* | irix6* | nonstopux*)
7303 lt_prog_compiler_wl='-Wl,'
7304 # PIC (with -KPIC) is the default.
7305 lt_prog_compiler_static='-non_shared'
7306 ;;
7307
7308 newsos6)
7309 lt_prog_compiler_pic='-KPIC'
7310 lt_prog_compiler_static='-Bstatic'
7311 ;;
7312
7313 linux* | k*bsd*-gnu)
7314 case $cc_basename in
7315 icc* | ecc*)
7316 lt_prog_compiler_wl='-Wl,'
7317 lt_prog_compiler_pic='-KPIC'
7318 lt_prog_compiler_static='-static'
7319 ;;
7320 pgcc* | pgf77* | pgf90* | pgf95*)
7321 # Portland Group compilers (*not* the Pentium gcc compiler,
7322 # which looks to be a dead project)
7323 lt_prog_compiler_wl='-Wl,'
7324 lt_prog_compiler_pic='-fpic'
7325 lt_prog_compiler_static='-Bstatic'
7326 ;;
7327 ccc*)
7328 lt_prog_compiler_wl='-Wl,'
7329 # All Alpha code is PIC.
7330 lt_prog_compiler_static='-non_shared'
7331 ;;
7332 *)
7333 case `$CC -V 2>&1 | sed 5q` in
7334 *Sun\ C*)
7335 # Sun C 5.9
7336 lt_prog_compiler_pic='-KPIC'
7337 lt_prog_compiler_static='-Bstatic'
7338 lt_prog_compiler_wl='-Wl,'
7339 ;;
7340 *Sun\ F*)
7341 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7342 lt_prog_compiler_pic='-KPIC'
7343 lt_prog_compiler_static='-Bstatic'
7344 lt_prog_compiler_wl=''
7345 ;;
7346 esac
7347 ;;
7348 esac
7349 ;;
7350
7351 osf3* | osf4* | osf5*)
7352 lt_prog_compiler_wl='-Wl,'
7353 # All OSF/1 code is PIC.
7354 lt_prog_compiler_static='-non_shared'
7355 ;;
7356
7357 rdos*)
7358 lt_prog_compiler_static='-non_shared'
7359 ;;
7360
7361 solaris*)
7362 lt_prog_compiler_pic='-KPIC'
7363 lt_prog_compiler_static='-Bstatic'
7364 case $cc_basename in
7365 f77* | f90* | f95*)
7366 lt_prog_compiler_wl='-Qoption ld ';;
7367 *)
7368 lt_prog_compiler_wl='-Wl,';;
7369 esac
7370 ;;
7371
7372 sunos4*)
7373 lt_prog_compiler_wl='-Qoption ld '
7374 lt_prog_compiler_pic='-PIC'
7375 lt_prog_compiler_static='-Bstatic'
7376 ;;
7377
7378 sysv4 | sysv4.2uw2* | sysv4.3*)
7379 lt_prog_compiler_wl='-Wl,'
7380 lt_prog_compiler_pic='-KPIC'
7381 lt_prog_compiler_static='-Bstatic'
7382 ;;
7383
7384 sysv4*MP*)
7385 if test -d /usr/nec ;then
7386 lt_prog_compiler_pic='-Kconform_pic'
7387 lt_prog_compiler_static='-Bstatic'
7388 fi
7389 ;;
7390
7391 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7392 lt_prog_compiler_wl='-Wl,'
7393 lt_prog_compiler_pic='-KPIC'
7394 lt_prog_compiler_static='-Bstatic'
7395 ;;
7396
7397 unicos*)
7398 lt_prog_compiler_wl='-Wl,'
7399 lt_prog_compiler_can_build_shared=no
7400 ;;
7401
7402 uts4*)
7403 lt_prog_compiler_pic='-pic'
7404 lt_prog_compiler_static='-Bstatic'
7405 ;;
7406
7407 *)
7408 lt_prog_compiler_can_build_shared=no
7409 ;;
7410 esac
7411 fi
7412
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7414 $as_echo "$lt_prog_compiler_pic" >&6; }
7415
7416 #
7417 # Check to make sure the PIC flag actually works.
7418 #
7419 if test -n "$lt_prog_compiler_pic"; then
7420
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7422 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7423 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7424 $as_echo_n "(cached) " >&6
7425 else
7426 lt_cv_prog_compiler_pic_works=no
7427 ac_outfile=conftest.$ac_objext
7428 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7429 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7430 # Insert the option either (1) after the last *FLAGS variable, or
7431 # (2) before a word containing "conftest.", or (3) at the end.
7432 # Note that $ac_compile itself does not contain backslashes and begins
7433 # with a dollar sign (not a hyphen), so the echo should work correctly.
7434 # The option is referenced via a variable to avoid confusing sed.
7435 lt_compile=`echo "$ac_compile" | $SED \
7436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7438 -e 's:$: $lt_compiler_flag:'`
7439 (eval echo "\"\$as_me:7439: $lt_compile\"" >&5)
7440 (eval "$lt_compile" 2>conftest.err)
7441 ac_status=$?
7442 cat conftest.err >&5
7443 echo "$as_me:7443: \$? = $ac_status" >&5
7444 if (exit $ac_status) && test -s "$ac_outfile"; then
7445 # The compiler can only warn and ignore the option if not recognized
7446 # So say no if there are warnings other than the usual output.
7447 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7448 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7449 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7450 lt_cv_prog_compiler_pic_works=yes
7451 fi
7452 fi
7453 $rm conftest*
7454
7455 fi
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7457 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7458
7459 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7460 case $lt_prog_compiler_pic in
7461 "" | " "*) ;;
7462 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7463 esac
7464 else
7465 lt_prog_compiler_pic=
7466 lt_prog_compiler_can_build_shared=no
7467 fi
7468
7469 fi
7470 case $host_os in
7471 # For platforms which do not support PIC, -DPIC is meaningless:
7472 *djgpp*)
7473 lt_prog_compiler_pic=
7474 ;;
7475 *)
7476 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7477 ;;
7478 esac
7479
7480 #
7481 # Check to make sure the static flag actually works.
7482 #
7483 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7485 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7486 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7487 $as_echo_n "(cached) " >&6
7488 else
7489 lt_cv_prog_compiler_static_works=no
7490 save_LDFLAGS="$LDFLAGS"
7491 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7492 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7493 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7494 # The linker can only warn and ignore the option if not recognized
7495 # So say no if there are warnings
7496 if test -s conftest.err; then
7497 # Append any errors to the config.log.
7498 cat conftest.err 1>&5
7499 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7501 if diff conftest.exp conftest.er2 >/dev/null; then
7502 lt_cv_prog_compiler_static_works=yes
7503 fi
7504 else
7505 lt_cv_prog_compiler_static_works=yes
7506 fi
7507 fi
7508 $rm -r conftest*
7509 LDFLAGS="$save_LDFLAGS"
7510
7511 fi
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7513 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7514
7515 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7516 :
7517 else
7518 lt_prog_compiler_static=
7519 fi
7520
7521
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7523 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7524 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7525 $as_echo_n "(cached) " >&6
7526 else
7527 lt_cv_prog_compiler_c_o=no
7528 $rm -r conftest 2>/dev/null
7529 mkdir conftest
7530 cd conftest
7531 mkdir out
7532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7533
7534 lt_compiler_flag="-o out/conftest2.$ac_objext"
7535 # Insert the option either (1) after the last *FLAGS variable, or
7536 # (2) before a word containing "conftest.", or (3) at the end.
7537 # Note that $ac_compile itself does not contain backslashes and begins
7538 # with a dollar sign (not a hyphen), so the echo should work correctly.
7539 lt_compile=`echo "$ac_compile" | $SED \
7540 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7542 -e 's:$: $lt_compiler_flag:'`
7543 (eval echo "\"\$as_me:7543: $lt_compile\"" >&5)
7544 (eval "$lt_compile" 2>out/conftest.err)
7545 ac_status=$?
7546 cat out/conftest.err >&5
7547 echo "$as_me:7547: \$? = $ac_status" >&5
7548 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7549 then
7550 # The compiler can only warn and ignore the option if not recognized
7551 # So say no if there are warnings
7552 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7553 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7554 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7555 lt_cv_prog_compiler_c_o=yes
7556 fi
7557 fi
7558 chmod u+w . 2>&5
7559 $rm conftest*
7560 # SGI C++ compiler will create directory out/ii_files/ for
7561 # template instantiation
7562 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7563 $rm out/* && rmdir out
7564 cd ..
7565 rmdir conftest
7566 $rm conftest*
7567
7568 fi
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7570 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7571
7572
7573 hard_links="nottested"
7574 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7575 # do not overwrite the value of need_locks provided by the user
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7577 $as_echo_n "checking if we can lock with hard links... " >&6; }
7578 hard_links=yes
7579 $rm conftest*
7580 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7581 touch conftest.a
7582 ln conftest.a conftest.b 2>&5 || hard_links=no
7583 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7585 $as_echo "$hard_links" >&6; }
7586 if test "$hard_links" = no; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7588 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7589 need_locks=warn
7590 fi
7591 else
7592 need_locks=no
7593 fi
7594
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7596 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7597
7598 runpath_var=
7599 allow_undefined_flag=
7600 enable_shared_with_static_runtimes=no
7601 archive_cmds=
7602 archive_expsym_cmds=
7603 old_archive_From_new_cmds=
7604 old_archive_from_expsyms_cmds=
7605 export_dynamic_flag_spec=
7606 whole_archive_flag_spec=
7607 thread_safe_flag_spec=
7608 hardcode_libdir_flag_spec=
7609 hardcode_libdir_flag_spec_ld=
7610 hardcode_libdir_separator=
7611 hardcode_direct=no
7612 hardcode_minus_L=no
7613 hardcode_shlibpath_var=unsupported
7614 link_all_deplibs=unknown
7615 hardcode_automatic=no
7616 module_cmds=
7617 module_expsym_cmds=
7618 always_export_symbols=no
7619 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7620 # include_expsyms should be a list of space-separated symbols to be *always*
7621 # included in the symbol list
7622 include_expsyms=
7623 # exclude_expsyms can be an extended regexp of symbols to exclude
7624 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7625 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7626 # as well as any symbol that contains `d'.
7627 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7628 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7629 # platforms (ab)use it in PIC code, but their linkers get confused if
7630 # the symbol is explicitly referenced. Since portable code cannot
7631 # rely on this symbol name, it's probably fine to never include it in
7632 # preloaded symbol tables.
7633 # Exclude shared library initialization/finalization symbols.
7634 extract_expsyms_cmds=
7635 # Just being paranoid about ensuring that cc_basename is set.
7636 for cc_temp in $compiler""; do
7637 case $cc_temp in
7638 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7639 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7640 \-*) ;;
7641 *) break;;
7642 esac
7643 done
7644 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7645
7646 case $host_os in
7647 cygwin* | mingw* | pw32*)
7648 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7649 # When not using gcc, we currently assume that we are using
7650 # Microsoft Visual C++.
7651 if test "$GCC" != yes; then
7652 with_gnu_ld=no
7653 fi
7654 ;;
7655 interix*)
7656 # we just hope/assume this is gcc and not c89 (= MSVC++)
7657 with_gnu_ld=yes
7658 ;;
7659 openbsd*)
7660 with_gnu_ld=no
7661 ;;
7662 esac
7663
7664 ld_shlibs=yes
7665 if test "$with_gnu_ld" = yes; then
7666 # If archive_cmds runs LD, not CC, wlarc should be empty
7667 wlarc='${wl}'
7668
7669 # Set some defaults for GNU ld with shared library support. These
7670 # are reset later if shared libraries are not supported. Putting them
7671 # here allows them to be overridden if necessary.
7672 runpath_var=LD_RUN_PATH
7673 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7674 export_dynamic_flag_spec='${wl}--export-dynamic'
7675 # ancient GNU ld didn't support --whole-archive et. al.
7676 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7677 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7678 else
7679 whole_archive_flag_spec=
7680 fi
7681 supports_anon_versioning=no
7682 case `$LD -v 2>/dev/null` in
7683 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7684 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7685 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7686 *\ 2.11.*) ;; # other 2.11 versions
7687 *) supports_anon_versioning=yes ;;
7688 esac
7689
7690 # See if GNU ld supports shared libraries.
7691 case $host_os in
7692 aix[3-9]*)
7693 # On AIX/PPC, the GNU linker is very broken
7694 if test "$host_cpu" != ia64; then
7695 ld_shlibs=no
7696 cat <<EOF 1>&2
7697
7698 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7699 *** to be unable to reliably create shared libraries on AIX.
7700 *** Therefore, libtool is disabling shared libraries support. If you
7701 *** really care for shared libraries, you may want to modify your PATH
7702 *** so that a non-GNU linker is found, and then restart.
7703
7704 EOF
7705 fi
7706 ;;
7707
7708 amigaos*)
7709 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)'
7710 hardcode_libdir_flag_spec='-L$libdir'
7711 hardcode_minus_L=yes
7712
7713 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
7714 # that the semantics of dynamic libraries on AmigaOS, at least up
7715 # to version 4, is to share data among multiple programs linked
7716 # with the same dynamic library. Since this doesn't match the
7717 # behavior of shared libraries on other platforms, we can't use
7718 # them.
7719 ld_shlibs=no
7720 ;;
7721
7722 beos*)
7723 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7724 allow_undefined_flag=unsupported
7725 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
7726 # support --undefined. This deserves some investigation. FIXME
7727 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7728 else
7729 ld_shlibs=no
7730 fi
7731 ;;
7732
7733 cygwin* | mingw* | pw32*)
7734 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7735 # as there is no search path for DLLs.
7736 hardcode_libdir_flag_spec='-L$libdir'
7737 allow_undefined_flag=unsupported
7738 always_export_symbols=no
7739 enable_shared_with_static_runtimes=yes
7740 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7741
7742 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7743 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7744 # If the export-symbols file already is a .def file (1st line
7745 # is EXPORTS), use it as is; otherwise, prepend...
7746 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7747 cp $export_symbols $output_objdir/$soname.def;
7748 else
7749 echo EXPORTS > $output_objdir/$soname.def;
7750 cat $export_symbols >> $output_objdir/$soname.def;
7751 fi~
7752 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7753 else
7754 ld_shlibs=no
7755 fi
7756 ;;
7757
7758 interix[3-9]*)
7759 hardcode_direct=no
7760 hardcode_shlibpath_var=no
7761 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7762 export_dynamic_flag_spec='${wl}-E'
7763 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7764 # Instead, shared libraries are loaded at an image base (0x10000000 by
7765 # default) and relocated if they conflict, which is a slow very memory
7766 # consuming and fragmenting process. To avoid this, we pick a random,
7767 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7768 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7769 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7770 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'
7771 ;;
7772
7773 gnu* | linux* | k*bsd*-gnu)
7774 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7775 tmp_addflag=
7776 case $cc_basename,$host_cpu in
7777 pgcc*) # Portland Group C compiler
7778 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7779 tmp_addflag=' $pic_flag'
7780 ;;
7781 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7782 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7783 tmp_addflag=' $pic_flag -Mnomain' ;;
7784 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7785 tmp_addflag=' -i_dynamic' ;;
7786 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7787 tmp_addflag=' -i_dynamic -nofor_main' ;;
7788 ifc* | ifort*) # Intel Fortran compiler
7789 tmp_addflag=' -nofor_main' ;;
7790 esac
7791 case `$CC -V 2>&1 | sed 5q` in
7792 *Sun\ C*) # Sun C 5.9
7793 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7794 tmp_sharedflag='-G' ;;
7795 *Sun\ F*) # Sun Fortran 8.3
7796 tmp_sharedflag='-G' ;;
7797 *)
7798 tmp_sharedflag='-shared' ;;
7799 esac
7800 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7801
7802 if test $supports_anon_versioning = yes; then
7803 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7804 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7805 $echo "local: *; };" >> $output_objdir/$libname.ver~
7806 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7807 fi
7808 link_all_deplibs=no
7809 else
7810 ld_shlibs=no
7811 fi
7812 ;;
7813
7814 netbsd* | netbsdelf*-gnu)
7815 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7816 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7817 wlarc=
7818 else
7819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7820 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7821 fi
7822 ;;
7823
7824 solaris*)
7825 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7826 ld_shlibs=no
7827 cat <<EOF 1>&2
7828
7829 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7830 *** create shared libraries on Solaris systems. Therefore, libtool
7831 *** is disabling shared libraries support. We urge you to upgrade GNU
7832 *** binutils to release 2.9.1 or newer. Another option is to modify
7833 *** your PATH or compiler configuration so that the native linker is
7834 *** used, and then restart.
7835
7836 EOF
7837 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7839 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7840 else
7841 ld_shlibs=no
7842 fi
7843 ;;
7844
7845 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7846 case `$LD -v 2>&1` in
7847 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7848 ld_shlibs=no
7849 cat <<_LT_EOF 1>&2
7850
7851 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7852 *** reliably create shared libraries on SCO systems. Therefore, libtool
7853 *** is disabling shared libraries support. We urge you to upgrade GNU
7854 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7855 *** your PATH or compiler configuration so that the native linker is
7856 *** used, and then restart.
7857
7858 _LT_EOF
7859 ;;
7860 *)
7861 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7862 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7864 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7865 else
7866 ld_shlibs=no
7867 fi
7868 ;;
7869 esac
7870 ;;
7871
7872 sunos4*)
7873 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7874 wlarc=
7875 hardcode_direct=yes
7876 hardcode_shlibpath_var=no
7877 ;;
7878
7879 *)
7880 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7881 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7882 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7883 else
7884 ld_shlibs=no
7885 fi
7886 ;;
7887 esac
7888
7889 if test "$ld_shlibs" = no; then
7890 runpath_var=
7891 hardcode_libdir_flag_spec=
7892 export_dynamic_flag_spec=
7893 whole_archive_flag_spec=
7894 fi
7895 else
7896 # PORTME fill in a description of your system's linker (not GNU ld)
7897 case $host_os in
7898 aix3*)
7899 allow_undefined_flag=unsupported
7900 always_export_symbols=yes
7901 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'
7902 # Note: this linker hardcodes the directories in LIBPATH if there
7903 # are no directories specified by -L.
7904 hardcode_minus_L=yes
7905 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7906 # Neither direct hardcoding nor static linking is supported with a
7907 # broken collect2.
7908 hardcode_direct=unsupported
7909 fi
7910 ;;
7911
7912 aix[4-9]*)
7913 if test "$host_cpu" = ia64; then
7914 # On IA64, the linker does run time linking by default, so we don't
7915 # have to do anything special.
7916 aix_use_runtimelinking=no
7917 exp_sym_flag='-Bexport'
7918 no_entry_flag=""
7919 else
7920 # If we're using GNU nm, then we don't want the "-C" option.
7921 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7922 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7923 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7924 else
7925 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7926 fi
7927 aix_use_runtimelinking=no
7928
7929 # Test if we are trying to use run time linking or normal
7930 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7931 # need to do runtime linking.
7932 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7933 for ld_flag in $LDFLAGS; do
7934 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7935 aix_use_runtimelinking=yes
7936 break
7937 fi
7938 done
7939 ;;
7940 esac
7941
7942 exp_sym_flag='-bexport'
7943 no_entry_flag='-bnoentry'
7944 fi
7945
7946 # When large executables or shared objects are built, AIX ld can
7947 # have problems creating the table of contents. If linking a library
7948 # or program results in "error TOC overflow" add -mminimal-toc to
7949 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7950 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7951
7952 archive_cmds=''
7953 hardcode_direct=yes
7954 hardcode_libdir_separator=':'
7955 link_all_deplibs=yes
7956
7957 if test "$GCC" = yes; then
7958 case $host_os in aix4.[012]|aix4.[012].*)
7959 # We only want to do this on AIX 4.2 and lower, the check
7960 # below for broken collect2 doesn't work under 4.3+
7961 collect2name=`${CC} -print-prog-name=collect2`
7962 if test -f "$collect2name" && \
7963 strings "$collect2name" | grep resolve_lib_name >/dev/null
7964 then
7965 # We have reworked collect2
7966 :
7967 else
7968 # We have old collect2
7969 hardcode_direct=unsupported
7970 # It fails to find uninstalled libraries when the uninstalled
7971 # path is not listed in the libpath. Setting hardcode_minus_L
7972 # to unsupported forces relinking
7973 hardcode_minus_L=yes
7974 hardcode_libdir_flag_spec='-L$libdir'
7975 hardcode_libdir_separator=
7976 fi
7977 ;;
7978 esac
7979 shared_flag='-shared'
7980 if test "$aix_use_runtimelinking" = yes; then
7981 shared_flag="$shared_flag "'${wl}-G'
7982 fi
7983 else
7984 # not using gcc
7985 if test "$host_cpu" = ia64; then
7986 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7987 # chokes on -Wl,-G. The following line is correct:
7988 shared_flag='-G'
7989 else
7990 if test "$aix_use_runtimelinking" = yes; then
7991 shared_flag='${wl}-G'
7992 else
7993 shared_flag='${wl}-bM:SRE'
7994 fi
7995 fi
7996 fi
7997
7998 # It seems that -bexpall does not export symbols beginning with
7999 # underscore (_), so it is better to generate a list of symbols to export.
8000 always_export_symbols=yes
8001 if test "$aix_use_runtimelinking" = yes; then
8002 # Warning - without using the other runtime loading flags (-brtl),
8003 # -berok will link without error, but may produce a broken library.
8004 allow_undefined_flag='-berok'
8005 # Determine the default libpath from the value encoded in an empty executable.
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8008
8009 int
8010 main ()
8011 {
8012
8013 ;
8014 return 0;
8015 }
8016 _ACEOF
8017 if ac_fn_c_try_link "$LINENO"; then :
8018
8019 lt_aix_libpath_sed='
8020 /Import File Strings/,/^$/ {
8021 /^0/ {
8022 s/^0 *\(.*\)$/\1/
8023 p
8024 }
8025 }'
8026 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8027 # Check for a 64-bit object if we didn't find anything.
8028 if test -z "$aix_libpath"; then
8029 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8030 fi
8031 fi
8032 rm -f core conftest.err conftest.$ac_objext \
8033 conftest$ac_exeext conftest.$ac_ext
8034 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8035
8036 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8037 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8038 else
8039 if test "$host_cpu" = ia64; then
8040 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8041 allow_undefined_flag="-z nodefs"
8042 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"
8043 else
8044 # Determine the default libpath from the value encoded in an empty executable.
8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046 /* end confdefs.h. */
8047
8048 int
8049 main ()
8050 {
8051
8052 ;
8053 return 0;
8054 }
8055 _ACEOF
8056 if ac_fn_c_try_link "$LINENO"; then :
8057
8058 lt_aix_libpath_sed='
8059 /Import File Strings/,/^$/ {
8060 /^0/ {
8061 s/^0 *\(.*\)$/\1/
8062 p
8063 }
8064 }'
8065 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8066 # Check for a 64-bit object if we didn't find anything.
8067 if test -z "$aix_libpath"; then
8068 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8069 fi
8070 fi
8071 rm -f core conftest.err conftest.$ac_objext \
8072 conftest$ac_exeext conftest.$ac_ext
8073 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8074
8075 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8076 # Warning - without using the other run time loading flags,
8077 # -berok will link without error, but may produce a broken library.
8078 no_undefined_flag=' ${wl}-bernotok'
8079 allow_undefined_flag=' ${wl}-berok'
8080 # Exported symbols can be pulled into shared objects from archives
8081 whole_archive_flag_spec='$convenience'
8082 archive_cmds_need_lc=yes
8083 # This is similar to how AIX traditionally builds its shared libraries.
8084 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8085 fi
8086 fi
8087 ;;
8088
8089 amigaos*)
8090 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)'
8091 hardcode_libdir_flag_spec='-L$libdir'
8092 hardcode_minus_L=yes
8093 # see comment about different semantics on the GNU ld section
8094 ld_shlibs=no
8095 ;;
8096
8097 bsdi[45]*)
8098 export_dynamic_flag_spec=-rdynamic
8099 ;;
8100
8101 cygwin* | mingw* | pw32*)
8102 # When not using gcc, we currently assume that we are using
8103 # Microsoft Visual C++.
8104 # hardcode_libdir_flag_spec is actually meaningless, as there is
8105 # no search path for DLLs.
8106 hardcode_libdir_flag_spec=' '
8107 allow_undefined_flag=unsupported
8108 # Tell ltmain to make .lib files, not .a files.
8109 libext=lib
8110 # Tell ltmain to make .dll files, not .so files.
8111 shrext_cmds=".dll"
8112 # FIXME: Setting linknames here is a bad hack.
8113 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8114 # The linker will automatically build a .lib file if we build a DLL.
8115 old_archive_From_new_cmds='true'
8116 # FIXME: Should let the user specify the lib program.
8117 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8118 fix_srcfile_path='`cygpath -w "$srcfile"`'
8119 enable_shared_with_static_runtimes=yes
8120 ;;
8121
8122 darwin* | rhapsody*)
8123 case $host_os in
8124 rhapsody* | darwin1.[012])
8125 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8126 ;;
8127 *) # Darwin 1.3 on
8128 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8129 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8130 else
8131 case ${MACOSX_DEPLOYMENT_TARGET} in
8132 10.[012])
8133 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8134 ;;
8135 10.*)
8136 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8137 ;;
8138 esac
8139 fi
8140 ;;
8141 esac
8142 archive_cmds_need_lc=no
8143 hardcode_direct=no
8144 hardcode_automatic=yes
8145 hardcode_shlibpath_var=unsupported
8146 whole_archive_flag_spec=''
8147 link_all_deplibs=yes
8148 if test "$GCC" = yes ; then
8149 output_verbose_link_cmd='echo'
8150 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8151 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8152 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}"
8153 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}"
8154 else
8155 case $cc_basename in
8156 xlc*)
8157 output_verbose_link_cmd='echo'
8158 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8159 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8160 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8161 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8162 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8163 ;;
8164 *)
8165 ld_shlibs=no
8166 ;;
8167 esac
8168 fi
8169 ;;
8170
8171 dgux*)
8172 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8173 hardcode_libdir_flag_spec='-L$libdir'
8174 hardcode_shlibpath_var=no
8175 ;;
8176
8177 freebsd1*)
8178 ld_shlibs=no
8179 ;;
8180
8181 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8182 # support. Future versions do this automatically, but an explicit c++rt0.o
8183 # does not break anything, and helps significantly (at the cost of a little
8184 # extra space).
8185 freebsd2.2*)
8186 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8187 hardcode_libdir_flag_spec='-R$libdir'
8188 hardcode_direct=yes
8189 hardcode_shlibpath_var=no
8190 ;;
8191
8192 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8193 freebsd2*)
8194 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8195 hardcode_direct=yes
8196 hardcode_minus_L=yes
8197 hardcode_shlibpath_var=no
8198 ;;
8199
8200 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8201 freebsd* | dragonfly*)
8202 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8203 hardcode_libdir_flag_spec='-R$libdir'
8204 hardcode_direct=yes
8205 hardcode_shlibpath_var=no
8206 ;;
8207
8208 hpux9*)
8209 if test "$GCC" = yes; then
8210 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8211 else
8212 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8213 fi
8214 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8215 hardcode_libdir_separator=:
8216 hardcode_direct=yes
8217
8218 # hardcode_minus_L: Not really in the search PATH,
8219 # but as the default location of the library.
8220 hardcode_minus_L=yes
8221 export_dynamic_flag_spec='${wl}-E'
8222 ;;
8223
8224 hpux10*)
8225 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8226 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8227 else
8228 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8229 fi
8230 if test "$with_gnu_ld" = no; then
8231 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8232 hardcode_libdir_separator=:
8233
8234 hardcode_direct=yes
8235 export_dynamic_flag_spec='${wl}-E'
8236
8237 # hardcode_minus_L: Not really in the search PATH,
8238 # but as the default location of the library.
8239 hardcode_minus_L=yes
8240 fi
8241 ;;
8242
8243 hpux11*)
8244 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8245 case $host_cpu in
8246 hppa*64*)
8247 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8248 ;;
8249 ia64*)
8250 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8251 ;;
8252 *)
8253 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8254 ;;
8255 esac
8256 else
8257 case $host_cpu in
8258 hppa*64*)
8259 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8260 ;;
8261 ia64*)
8262 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8263 ;;
8264 *)
8265 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8266 ;;
8267 esac
8268 fi
8269 if test "$with_gnu_ld" = no; then
8270 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8271 hardcode_libdir_separator=:
8272
8273 case $host_cpu in
8274 hppa*64*|ia64*)
8275 hardcode_libdir_flag_spec_ld='+b $libdir'
8276 hardcode_direct=no
8277 hardcode_shlibpath_var=no
8278 ;;
8279 *)
8280 hardcode_direct=yes
8281 export_dynamic_flag_spec='${wl}-E'
8282
8283 # hardcode_minus_L: Not really in the search PATH,
8284 # but as the default location of the library.
8285 hardcode_minus_L=yes
8286 ;;
8287 esac
8288 fi
8289 ;;
8290
8291 irix5* | irix6* | nonstopux*)
8292 if test "$GCC" = yes; then
8293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8294 else
8295 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8296 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8297 fi
8298 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8299 hardcode_libdir_separator=:
8300 link_all_deplibs=yes
8301 ;;
8302
8303 netbsd* | netbsdelf*-gnu)
8304 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8305 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8306 else
8307 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8308 fi
8309 hardcode_libdir_flag_spec='-R$libdir'
8310 hardcode_direct=yes
8311 hardcode_shlibpath_var=no
8312 ;;
8313
8314 newsos6)
8315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8316 hardcode_direct=yes
8317 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8318 hardcode_libdir_separator=:
8319 hardcode_shlibpath_var=no
8320 ;;
8321
8322 openbsd*)
8323 if test -f /usr/libexec/ld.so; then
8324 hardcode_direct=yes
8325 hardcode_shlibpath_var=no
8326 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8327 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8328 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8329 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8330 export_dynamic_flag_spec='${wl}-E'
8331 else
8332 case $host_os in
8333 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8334 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8335 hardcode_libdir_flag_spec='-R$libdir'
8336 ;;
8337 *)
8338 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8339 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8340 ;;
8341 esac
8342 fi
8343 else
8344 ld_shlibs=no
8345 fi
8346 ;;
8347
8348 os2*)
8349 hardcode_libdir_flag_spec='-L$libdir'
8350 hardcode_minus_L=yes
8351 allow_undefined_flag=unsupported
8352 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8353 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8354 ;;
8355
8356 osf3*)
8357 if test "$GCC" = yes; then
8358 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8359 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8360 else
8361 allow_undefined_flag=' -expect_unresolved \*'
8362 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8363 fi
8364 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8365 hardcode_libdir_separator=:
8366 ;;
8367
8368 osf4* | osf5*) # as osf3* with the addition of -msym flag
8369 if test "$GCC" = yes; then
8370 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8371 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8373 else
8374 allow_undefined_flag=' -expect_unresolved \*'
8375 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8376 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8377 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8378
8379 # Both c and cxx compiler support -rpath directly
8380 hardcode_libdir_flag_spec='-rpath $libdir'
8381 fi
8382 hardcode_libdir_separator=:
8383 ;;
8384
8385 solaris*)
8386 no_undefined_flag=' -z text'
8387 if test "$GCC" = yes; then
8388 wlarc='${wl}'
8389 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8390 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8391 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8392 else
8393 wlarc=''
8394 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8395 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8396 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8397 fi
8398 hardcode_libdir_flag_spec='-R$libdir'
8399 hardcode_shlibpath_var=no
8400 case $host_os in
8401 solaris2.[0-5] | solaris2.[0-5].*) ;;
8402 *)
8403 # The compiler driver will combine and reorder linker options,
8404 # but understands `-z linker_flag'. GCC discards it without `$wl',
8405 # but is careful enough not to reorder.
8406 # Supported since Solaris 2.6 (maybe 2.5.1?)
8407 if test "$GCC" = yes; then
8408 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8409 else
8410 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8411 fi
8412 ;;
8413 esac
8414 link_all_deplibs=yes
8415 ;;
8416
8417 sunos4*)
8418 if test "x$host_vendor" = xsequent; then
8419 # Use $CC to link under sequent, because it throws in some extra .o
8420 # files that make .init and .fini sections work.
8421 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8422 else
8423 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8424 fi
8425 hardcode_libdir_flag_spec='-L$libdir'
8426 hardcode_direct=yes
8427 hardcode_minus_L=yes
8428 hardcode_shlibpath_var=no
8429 ;;
8430
8431 sysv4)
8432 case $host_vendor in
8433 sni)
8434 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8435 hardcode_direct=yes # is this really true???
8436 ;;
8437 siemens)
8438 ## LD is ld it makes a PLAMLIB
8439 ## CC just makes a GrossModule.
8440 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8441 reload_cmds='$CC -r -o $output$reload_objs'
8442 hardcode_direct=no
8443 ;;
8444 motorola)
8445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8446 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8447 ;;
8448 esac
8449 runpath_var='LD_RUN_PATH'
8450 hardcode_shlibpath_var=no
8451 ;;
8452
8453 sysv4.3*)
8454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8455 hardcode_shlibpath_var=no
8456 export_dynamic_flag_spec='-Bexport'
8457 ;;
8458
8459 sysv4*MP*)
8460 if test -d /usr/nec; then
8461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8462 hardcode_shlibpath_var=no
8463 runpath_var=LD_RUN_PATH
8464 hardcode_runpath_var=yes
8465 ld_shlibs=yes
8466 fi
8467 ;;
8468
8469 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8470 no_undefined_flag='${wl}-z,text'
8471 archive_cmds_need_lc=no
8472 hardcode_shlibpath_var=no
8473 runpath_var='LD_RUN_PATH'
8474
8475 if test "$GCC" = yes; then
8476 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8477 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8478 else
8479 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8480 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8481 fi
8482 ;;
8483
8484 sysv5* | sco3.2v5* | sco5v6*)
8485 # Note: We can NOT use -z defs as we might desire, because we do not
8486 # link with -lc, and that would cause any symbols used from libc to
8487 # always be unresolved, which means just about no library would
8488 # ever link correctly. If we're not using GNU ld we use -z text
8489 # though, which does catch some bad symbols but isn't as heavy-handed
8490 # as -z defs.
8491 no_undefined_flag='${wl}-z,text'
8492 allow_undefined_flag='${wl}-z,nodefs'
8493 archive_cmds_need_lc=no
8494 hardcode_shlibpath_var=no
8495 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8496 hardcode_libdir_separator=':'
8497 link_all_deplibs=yes
8498 export_dynamic_flag_spec='${wl}-Bexport'
8499 runpath_var='LD_RUN_PATH'
8500
8501 if test "$GCC" = yes; then
8502 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8503 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8504 else
8505 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8506 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8507 fi
8508 ;;
8509
8510 uts4*)
8511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8512 hardcode_libdir_flag_spec='-L$libdir'
8513 hardcode_shlibpath_var=no
8514 ;;
8515
8516 *)
8517 ld_shlibs=no
8518 ;;
8519 esac
8520 fi
8521
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8523 $as_echo "$ld_shlibs" >&6; }
8524 test "$ld_shlibs" = no && can_build_shared=no
8525
8526 #
8527 # Do we need to explicitly link libc?
8528 #
8529 case "x$archive_cmds_need_lc" in
8530 x|xyes)
8531 # Assume -lc should be added
8532 archive_cmds_need_lc=yes
8533
8534 if test "$enable_shared" = yes && test "$GCC" = yes; then
8535 case $archive_cmds in
8536 *'~'*)
8537 # FIXME: we may have to deal with multi-command sequences.
8538 ;;
8539 '$CC '*)
8540 # Test whether the compiler implicitly links with -lc since on some
8541 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8542 # to ld, don't add -lc before -lgcc.
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8544 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8545 $rm conftest*
8546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8547
8548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8549 (eval $ac_compile) 2>&5
8550 ac_status=$?
8551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8552 test $ac_status = 0; } 2>conftest.err; then
8553 soname=conftest
8554 lib=conftest
8555 libobjs=conftest.$ac_objext
8556 deplibs=
8557 wl=$lt_prog_compiler_wl
8558 pic_flag=$lt_prog_compiler_pic
8559 compiler_flags=-v
8560 linker_flags=-v
8561 verstring=
8562 output_objdir=.
8563 libname=conftest
8564 lt_save_allow_undefined_flag=$allow_undefined_flag
8565 allow_undefined_flag=
8566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8567 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8568 ac_status=$?
8569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8570 test $ac_status = 0; }
8571 then
8572 archive_cmds_need_lc=no
8573 else
8574 archive_cmds_need_lc=yes
8575 fi
8576 allow_undefined_flag=$lt_save_allow_undefined_flag
8577 else
8578 cat conftest.err 1>&5
8579 fi
8580 $rm conftest*
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8582 $as_echo "$archive_cmds_need_lc" >&6; }
8583 ;;
8584 esac
8585 fi
8586 ;;
8587 esac
8588
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8590 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8591 library_names_spec=
8592 libname_spec='lib$name'
8593 soname_spec=
8594 shrext_cmds=".so"
8595 postinstall_cmds=
8596 postuninstall_cmds=
8597 finish_cmds=
8598 finish_eval=
8599 shlibpath_var=
8600 shlibpath_overrides_runpath=unknown
8601 version_type=none
8602 dynamic_linker="$host_os ld.so"
8603 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8604
8605 if test "$GCC" = yes; then
8606 case $host_os in
8607 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8608 *) lt_awk_arg="/^libraries:/" ;;
8609 esac
8610 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8611 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8612 # if the path contains ";" then we assume it to be the separator
8613 # otherwise default to the standard path separator (i.e. ":") - it is
8614 # assumed that no part of a normal pathname contains ";" but that should
8615 # okay in the real world where ";" in dirpaths is itself problematic.
8616 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8617 else
8618 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8619 fi
8620 # Ok, now we have the path, separated by spaces, we can step through it
8621 # and add multilib dir if necessary.
8622 lt_tmp_lt_search_path_spec=
8623 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8624 for lt_sys_path in $lt_search_path_spec; do
8625 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8626 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8627 else
8628 test -d "$lt_sys_path" && \
8629 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8630 fi
8631 done
8632 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8633 BEGIN {RS=" "; FS="/|\n";} {
8634 lt_foo="";
8635 lt_count=0;
8636 for (lt_i = NF; lt_i > 0; lt_i--) {
8637 if ($lt_i != "" && $lt_i != ".") {
8638 if ($lt_i == "..") {
8639 lt_count++;
8640 } else {
8641 if (lt_count == 0) {
8642 lt_foo="/" $lt_i lt_foo;
8643 } else {
8644 lt_count--;
8645 }
8646 }
8647 }
8648 }
8649 if (lt_foo != "") { lt_freq[lt_foo]++; }
8650 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8651 }'`
8652 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8653 else
8654 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8655 fi
8656 need_lib_prefix=unknown
8657 hardcode_into_libs=no
8658
8659 # when you set need_version to no, make sure it does not cause -set_version
8660 # flags to be left without arguments
8661 need_version=unknown
8662
8663 case $host_os in
8664 aix3*)
8665 version_type=linux
8666 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8667 shlibpath_var=LIBPATH
8668
8669 # AIX 3 has no versioning support, so we append a major version to the name.
8670 soname_spec='${libname}${release}${shared_ext}$major'
8671 ;;
8672
8673 aix[4-9]*)
8674 version_type=linux
8675 need_lib_prefix=no
8676 need_version=no
8677 hardcode_into_libs=yes
8678 if test "$host_cpu" = ia64; then
8679 # AIX 5 supports IA64
8680 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8681 shlibpath_var=LD_LIBRARY_PATH
8682 else
8683 # With GCC up to 2.95.x, collect2 would create an import file
8684 # for dependence libraries. The import file would start with
8685 # the line `#! .'. This would cause the generated library to
8686 # depend on `.', always an invalid library. This was fixed in
8687 # development snapshots of GCC prior to 3.0.
8688 case $host_os in
8689 aix4 | aix4.[01] | aix4.[01].*)
8690 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8691 echo ' yes '
8692 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8693 :
8694 else
8695 can_build_shared=no
8696 fi
8697 ;;
8698 esac
8699 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8700 # soname into executable. Probably we can add versioning support to
8701 # collect2, so additional links can be useful in future.
8702 if test "$aix_use_runtimelinking" = yes; then
8703 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8704 # instead of lib<name>.a to let people know that these are not
8705 # typical AIX shared libraries.
8706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8707 else
8708 # We preserve .a as extension for shared libraries through AIX4.2
8709 # and later when we are not doing run time linking.
8710 library_names_spec='${libname}${release}.a $libname.a'
8711 soname_spec='${libname}${release}${shared_ext}$major'
8712 fi
8713 shlibpath_var=LIBPATH
8714 fi
8715 ;;
8716
8717 amigaos*)
8718 library_names_spec='$libname.ixlibrary $libname.a'
8719 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8720 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8721 ;;
8722
8723 beos*)
8724 library_names_spec='${libname}${shared_ext}'
8725 dynamic_linker="$host_os ld.so"
8726 shlibpath_var=LIBRARY_PATH
8727 ;;
8728
8729 bsdi[45]*)
8730 version_type=linux
8731 need_version=no
8732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8733 soname_spec='${libname}${release}${shared_ext}$major'
8734 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8735 shlibpath_var=LD_LIBRARY_PATH
8736 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8737 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8738 # the default ld.so.conf also contains /usr/contrib/lib and
8739 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8740 # libtool to hard-code these into programs
8741 ;;
8742
8743 cygwin* | mingw* | pw32*)
8744 version_type=windows
8745 shrext_cmds=".dll"
8746 need_version=no
8747 need_lib_prefix=no
8748
8749 case $GCC,$host_os in
8750 yes,cygwin* | yes,mingw* | yes,pw32*)
8751 library_names_spec='$libname.dll.a'
8752 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8753 postinstall_cmds='base_file=`basename \${file}`~
8754 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8755 dldir=$destdir/`dirname \$dlpath`~
8756 test -d \$dldir || mkdir -p \$dldir~
8757 $install_prog $dir/$dlname \$dldir/$dlname~
8758 chmod a+x \$dldir/$dlname'
8759 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8760 dlpath=$dir/\$dldll~
8761 $rm \$dlpath'
8762 shlibpath_overrides_runpath=yes
8763
8764 case $host_os in
8765 cygwin*)
8766 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8767 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8768 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8769 ;;
8770 mingw*)
8771 # MinGW DLLs use traditional 'lib' prefix
8772 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8773 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8774 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8775 # It is most probably a Windows format PATH printed by
8776 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8777 # path with ; separators, and with drive letters. We can handle the
8778 # drive letters (cygwin fileutils understands them), so leave them,
8779 # especially as we might pass files found there to a mingw objdump,
8780 # which wouldn't understand a cygwinified path. Ahh.
8781 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8782 else
8783 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8784 fi
8785 ;;
8786 pw32*)
8787 # pw32 DLLs use 'pw' prefix rather than 'lib'
8788 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8789 ;;
8790 esac
8791 ;;
8792
8793 *)
8794 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8795 ;;
8796 esac
8797 dynamic_linker='Win32 ld.exe'
8798 # FIXME: first we should search . and the directory the executable is in
8799 shlibpath_var=PATH
8800 ;;
8801
8802 darwin* | rhapsody*)
8803 dynamic_linker="$host_os dyld"
8804 version_type=darwin
8805 need_lib_prefix=no
8806 need_version=no
8807 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8808 soname_spec='${libname}${release}${major}$shared_ext'
8809 shlibpath_overrides_runpath=yes
8810 shlibpath_var=DYLD_LIBRARY_PATH
8811 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8812
8813 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8814 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8815 ;;
8816
8817 dgux*)
8818 version_type=linux
8819 need_lib_prefix=no
8820 need_version=no
8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8822 soname_spec='${libname}${release}${shared_ext}$major'
8823 shlibpath_var=LD_LIBRARY_PATH
8824 ;;
8825
8826 freebsd1*)
8827 dynamic_linker=no
8828 ;;
8829
8830 freebsd* | dragonfly*)
8831 # DragonFly does not have aout. When/if they implement a new
8832 # versioning mechanism, adjust this.
8833 if test -x /usr/bin/objformat; then
8834 objformat=`/usr/bin/objformat`
8835 else
8836 case $host_os in
8837 freebsd[123]*) objformat=aout ;;
8838 *) objformat=elf ;;
8839 esac
8840 fi
8841 version_type=freebsd-$objformat
8842 case $version_type in
8843 freebsd-elf*)
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8845 need_version=no
8846 need_lib_prefix=no
8847 ;;
8848 freebsd-*)
8849 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8850 need_version=yes
8851 ;;
8852 esac
8853 shlibpath_var=LD_LIBRARY_PATH
8854 case $host_os in
8855 freebsd2*)
8856 shlibpath_overrides_runpath=yes
8857 ;;
8858 freebsd3.[01]* | freebsdelf3.[01]*)
8859 shlibpath_overrides_runpath=yes
8860 hardcode_into_libs=yes
8861 ;;
8862 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8863 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8864 shlibpath_overrides_runpath=no
8865 hardcode_into_libs=yes
8866 ;;
8867 *) # from 4.6 on, and DragonFly
8868 shlibpath_overrides_runpath=yes
8869 hardcode_into_libs=yes
8870 ;;
8871 esac
8872 ;;
8873
8874 gnu*)
8875 version_type=linux
8876 need_lib_prefix=no
8877 need_version=no
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8879 soname_spec='${libname}${release}${shared_ext}$major'
8880 shlibpath_var=LD_LIBRARY_PATH
8881 hardcode_into_libs=yes
8882 ;;
8883
8884 hpux9* | hpux10* | hpux11*)
8885 # Give a soname corresponding to the major version so that dld.sl refuses to
8886 # link against other versions.
8887 version_type=sunos
8888 need_lib_prefix=no
8889 need_version=no
8890 case $host_cpu in
8891 ia64*)
8892 shrext_cmds='.so'
8893 hardcode_into_libs=yes
8894 dynamic_linker="$host_os dld.so"
8895 shlibpath_var=LD_LIBRARY_PATH
8896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8898 soname_spec='${libname}${release}${shared_ext}$major'
8899 if test "X$HPUX_IA64_MODE" = X32; then
8900 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8901 else
8902 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8903 fi
8904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8905 ;;
8906 hppa*64*)
8907 shrext_cmds='.sl'
8908 hardcode_into_libs=yes
8909 dynamic_linker="$host_os dld.sl"
8910 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8913 soname_spec='${libname}${release}${shared_ext}$major'
8914 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8916 ;;
8917 *)
8918 shrext_cmds='.sl'
8919 dynamic_linker="$host_os dld.sl"
8920 shlibpath_var=SHLIB_PATH
8921 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8923 soname_spec='${libname}${release}${shared_ext}$major'
8924 ;;
8925 esac
8926 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8927 postinstall_cmds='chmod 555 $lib'
8928 ;;
8929
8930 interix[3-9]*)
8931 version_type=linux
8932 need_lib_prefix=no
8933 need_version=no
8934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8935 soname_spec='${libname}${release}${shared_ext}$major'
8936 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8937 shlibpath_var=LD_LIBRARY_PATH
8938 shlibpath_overrides_runpath=no
8939 hardcode_into_libs=yes
8940 ;;
8941
8942 irix5* | irix6* | nonstopux*)
8943 case $host_os in
8944 nonstopux*) version_type=nonstopux ;;
8945 *)
8946 if test "$lt_cv_prog_gnu_ld" = yes; then
8947 version_type=linux
8948 else
8949 version_type=irix
8950 fi ;;
8951 esac
8952 need_lib_prefix=no
8953 need_version=no
8954 soname_spec='${libname}${release}${shared_ext}$major'
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8956 case $host_os in
8957 irix5* | nonstopux*)
8958 libsuff= shlibsuff=
8959 ;;
8960 *)
8961 case $LD in # libtool.m4 will add one of these switches to LD
8962 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8963 libsuff= shlibsuff= libmagic=32-bit;;
8964 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8965 libsuff=32 shlibsuff=N32 libmagic=N32;;
8966 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8967 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8968 *) libsuff= shlibsuff= libmagic=never-match;;
8969 esac
8970 ;;
8971 esac
8972 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8973 shlibpath_overrides_runpath=no
8974 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8975 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8976 hardcode_into_libs=yes
8977 ;;
8978
8979 # No shared lib support for Linux oldld, aout, or coff.
8980 linux*oldld* | linux*aout* | linux*coff*)
8981 dynamic_linker=no
8982 ;;
8983
8984 # This must be Linux ELF.
8985 linux* | k*bsd*-gnu)
8986 version_type=linux
8987 need_lib_prefix=no
8988 need_version=no
8989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8990 soname_spec='${libname}${release}${shared_ext}$major'
8991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8992 shlibpath_var=LD_LIBRARY_PATH
8993 shlibpath_overrides_runpath=no
8994 # This implies no fast_install, which is unacceptable.
8995 # Some rework will be needed to allow for fast_install
8996 # before this can be enabled.
8997 hardcode_into_libs=yes
8998
8999 # Append ld.so.conf contents to the search path
9000 if test -f /etc/ld.so.conf; then
9001 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;/^$/d' | tr '\n' ' '`
9002 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9003 fi
9004
9005 # We used to test for /lib/ld.so.1 and disable shared libraries on
9006 # powerpc, because MkLinux only supported shared libraries with the
9007 # GNU dynamic linker. Since this was broken with cross compilers,
9008 # most powerpc-linux boxes support dynamic linking these days and
9009 # people can always --disable-shared, the test was removed, and we
9010 # assume the GNU/Linux dynamic linker is in use.
9011 dynamic_linker='GNU/Linux ld.so'
9012 ;;
9013
9014 netbsdelf*-gnu)
9015 version_type=linux
9016 need_lib_prefix=no
9017 need_version=no
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9020 shlibpath_var=LD_LIBRARY_PATH
9021 shlibpath_overrides_runpath=no
9022 hardcode_into_libs=yes
9023 dynamic_linker='NetBSD ld.elf_so'
9024 ;;
9025
9026 netbsd*)
9027 version_type=sunos
9028 need_lib_prefix=no
9029 need_version=no
9030 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9033 dynamic_linker='NetBSD (a.out) ld.so'
9034 else
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9036 soname_spec='${libname}${release}${shared_ext}$major'
9037 dynamic_linker='NetBSD ld.elf_so'
9038 fi
9039 shlibpath_var=LD_LIBRARY_PATH
9040 shlibpath_overrides_runpath=yes
9041 hardcode_into_libs=yes
9042 ;;
9043
9044 newsos6)
9045 version_type=linux
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047 shlibpath_var=LD_LIBRARY_PATH
9048 shlibpath_overrides_runpath=yes
9049 ;;
9050
9051 nto-qnx*)
9052 version_type=linux
9053 need_lib_prefix=no
9054 need_version=no
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 shlibpath_overrides_runpath=yes
9059 ;;
9060
9061 openbsd*)
9062 version_type=sunos
9063 sys_lib_dlsearch_path_spec="/usr/lib"
9064 need_lib_prefix=no
9065 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9066 case $host_os in
9067 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9068 *) need_version=no ;;
9069 esac
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9072 shlibpath_var=LD_LIBRARY_PATH
9073 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9074 case $host_os in
9075 openbsd2.[89] | openbsd2.[89].*)
9076 shlibpath_overrides_runpath=no
9077 ;;
9078 *)
9079 shlibpath_overrides_runpath=yes
9080 ;;
9081 esac
9082 else
9083 shlibpath_overrides_runpath=yes
9084 fi
9085 ;;
9086
9087 os2*)
9088 libname_spec='$name'
9089 shrext_cmds=".dll"
9090 need_lib_prefix=no
9091 library_names_spec='$libname${shared_ext} $libname.a'
9092 dynamic_linker='OS/2 ld.exe'
9093 shlibpath_var=LIBPATH
9094 ;;
9095
9096 osf3* | osf4* | osf5*)
9097 version_type=osf
9098 need_lib_prefix=no
9099 need_version=no
9100 soname_spec='${libname}${release}${shared_ext}$major'
9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102 shlibpath_var=LD_LIBRARY_PATH
9103 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9104 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9105 ;;
9106
9107 rdos*)
9108 dynamic_linker=no
9109 ;;
9110
9111 solaris*)
9112 version_type=linux
9113 need_lib_prefix=no
9114 need_version=no
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116 soname_spec='${libname}${release}${shared_ext}$major'
9117 shlibpath_var=LD_LIBRARY_PATH
9118 shlibpath_overrides_runpath=yes
9119 hardcode_into_libs=yes
9120 # ldd complains unless libraries are executable
9121 postinstall_cmds='chmod +x $lib'
9122 ;;
9123
9124 sunos4*)
9125 version_type=sunos
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9127 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9128 shlibpath_var=LD_LIBRARY_PATH
9129 shlibpath_overrides_runpath=yes
9130 if test "$with_gnu_ld" = yes; then
9131 need_lib_prefix=no
9132 fi
9133 need_version=yes
9134 ;;
9135
9136 sysv4 | sysv4.3*)
9137 version_type=linux
9138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9139 soname_spec='${libname}${release}${shared_ext}$major'
9140 shlibpath_var=LD_LIBRARY_PATH
9141 case $host_vendor in
9142 sni)
9143 shlibpath_overrides_runpath=no
9144 need_lib_prefix=no
9145 export_dynamic_flag_spec='${wl}-Blargedynsym'
9146 runpath_var=LD_RUN_PATH
9147 ;;
9148 siemens)
9149 need_lib_prefix=no
9150 ;;
9151 motorola)
9152 need_lib_prefix=no
9153 need_version=no
9154 shlibpath_overrides_runpath=no
9155 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9156 ;;
9157 esac
9158 ;;
9159
9160 sysv4*MP*)
9161 if test -d /usr/nec ;then
9162 version_type=linux
9163 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9164 soname_spec='$libname${shared_ext}.$major'
9165 shlibpath_var=LD_LIBRARY_PATH
9166 fi
9167 ;;
9168
9169 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9170 version_type=freebsd-elf
9171 need_lib_prefix=no
9172 need_version=no
9173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9174 soname_spec='${libname}${release}${shared_ext}$major'
9175 shlibpath_var=LD_LIBRARY_PATH
9176 hardcode_into_libs=yes
9177 if test "$with_gnu_ld" = yes; then
9178 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9179 shlibpath_overrides_runpath=no
9180 else
9181 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9182 shlibpath_overrides_runpath=yes
9183 case $host_os in
9184 sco3.2v5*)
9185 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9186 ;;
9187 esac
9188 fi
9189 sys_lib_dlsearch_path_spec='/usr/lib'
9190 ;;
9191
9192 uts4*)
9193 version_type=linux
9194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9195 soname_spec='${libname}${release}${shared_ext}$major'
9196 shlibpath_var=LD_LIBRARY_PATH
9197 ;;
9198
9199 *)
9200 dynamic_linker=no
9201 ;;
9202 esac
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9204 $as_echo "$dynamic_linker" >&6; }
9205 test "$dynamic_linker" = no && can_build_shared=no
9206
9207 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
9208 $as_echo_n "(cached) " >&6
9209 else
9210 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9211 fi
9212
9213 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9214 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
9215 $as_echo_n "(cached) " >&6
9216 else
9217 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9218 fi
9219
9220 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9221
9222 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9223 if test "$GCC" = yes; then
9224 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9225 fi
9226
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9228 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9229 hardcode_action=
9230 if test -n "$hardcode_libdir_flag_spec" || \
9231 test -n "$runpath_var" || \
9232 test "X$hardcode_automatic" = "Xyes" ; then
9233
9234 # We can hardcode non-existant directories.
9235 if test "$hardcode_direct" != no &&
9236 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9237 # have to relink, otherwise we might link with an installed library
9238 # when we should be linking with a yet-to-be-installed one
9239 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9240 test "$hardcode_minus_L" != no; then
9241 # Linking always hardcodes the temporary library directory.
9242 hardcode_action=relink
9243 else
9244 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9245 hardcode_action=immediate
9246 fi
9247 else
9248 # We cannot hardcode anything, or else we can only hardcode existing
9249 # directories.
9250 hardcode_action=unsupported
9251 fi
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9253 $as_echo "$hardcode_action" >&6; }
9254
9255 if test "$hardcode_action" = relink; then
9256 # Fast installation is not supported
9257 enable_fast_install=no
9258 elif test "$shlibpath_overrides_runpath" = yes ||
9259 test "$enable_shared" = no; then
9260 # Fast installation is not necessary
9261 enable_fast_install=needless
9262 fi
9263
9264 striplib=
9265 old_striplib=
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9267 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9268 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9269 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9270 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9272 $as_echo "yes" >&6; }
9273 else
9274 # FIXME - insert some real tests, host_os isn't really good enough
9275 case $host_os in
9276 darwin*)
9277 if test -n "$STRIP" ; then
9278 striplib="$STRIP -x"
9279 old_striplib="$STRIP -S"
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9281 $as_echo "yes" >&6; }
9282 else
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9284 $as_echo "no" >&6; }
9285 fi
9286 ;;
9287 *)
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9289 $as_echo "no" >&6; }
9290 ;;
9291 esac
9292 fi
9293
9294 if test "x$enable_dlopen" != xyes; then
9295 enable_dlopen=unknown
9296 enable_dlopen_self=unknown
9297 enable_dlopen_self_static=unknown
9298 else
9299 lt_cv_dlopen=no
9300 lt_cv_dlopen_libs=
9301
9302 case $host_os in
9303 beos*)
9304 lt_cv_dlopen="load_add_on"
9305 lt_cv_dlopen_libs=
9306 lt_cv_dlopen_self=yes
9307 ;;
9308
9309 mingw* | pw32*)
9310 lt_cv_dlopen="LoadLibrary"
9311 lt_cv_dlopen_libs=
9312 ;;
9313
9314 cygwin*)
9315 lt_cv_dlopen="dlopen"
9316 lt_cv_dlopen_libs=
9317 ;;
9318
9319 darwin*)
9320 # if libdl is installed we need to link against it
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9322 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9323 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9324 $as_echo_n "(cached) " >&6
9325 else
9326 ac_check_lib_save_LIBS=$LIBS
9327 LIBS="-ldl $LIBS"
9328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9329 /* end confdefs.h. */
9330
9331 /* Override any GCC internal prototype to avoid an error.
9332 Use char because int might match the return type of a GCC
9333 builtin and then its argument prototype would still apply. */
9334 #ifdef __cplusplus
9335 extern "C"
9336 #endif
9337 char dlopen ();
9338 int
9339 main ()
9340 {
9341 return dlopen ();
9342 ;
9343 return 0;
9344 }
9345 _ACEOF
9346 if ac_fn_c_try_link "$LINENO"; then :
9347 ac_cv_lib_dl_dlopen=yes
9348 else
9349 ac_cv_lib_dl_dlopen=no
9350 fi
9351 rm -f core conftest.err conftest.$ac_objext \
9352 conftest$ac_exeext conftest.$ac_ext
9353 LIBS=$ac_check_lib_save_LIBS
9354 fi
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9356 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9357 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9358 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9359 else
9360
9361 lt_cv_dlopen="dyld"
9362 lt_cv_dlopen_libs=
9363 lt_cv_dlopen_self=yes
9364
9365 fi
9366
9367 ;;
9368
9369 *)
9370 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9371 if test "x$ac_cv_func_shl_load" = x""yes; then :
9372 lt_cv_dlopen="shl_load"
9373 else
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9375 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9376 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9377 $as_echo_n "(cached) " >&6
9378 else
9379 ac_check_lib_save_LIBS=$LIBS
9380 LIBS="-ldld $LIBS"
9381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9382 /* end confdefs.h. */
9383
9384 /* Override any GCC internal prototype to avoid an error.
9385 Use char because int might match the return type of a GCC
9386 builtin and then its argument prototype would still apply. */
9387 #ifdef __cplusplus
9388 extern "C"
9389 #endif
9390 char shl_load ();
9391 int
9392 main ()
9393 {
9394 return shl_load ();
9395 ;
9396 return 0;
9397 }
9398 _ACEOF
9399 if ac_fn_c_try_link "$LINENO"; then :
9400 ac_cv_lib_dld_shl_load=yes
9401 else
9402 ac_cv_lib_dld_shl_load=no
9403 fi
9404 rm -f core conftest.err conftest.$ac_objext \
9405 conftest$ac_exeext conftest.$ac_ext
9406 LIBS=$ac_check_lib_save_LIBS
9407 fi
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9409 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9410 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9411 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9412 else
9413 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9414 if test "x$ac_cv_func_dlopen" = x""yes; then :
9415 lt_cv_dlopen="dlopen"
9416 else
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9418 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9419 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9420 $as_echo_n "(cached) " >&6
9421 else
9422 ac_check_lib_save_LIBS=$LIBS
9423 LIBS="-ldl $LIBS"
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9426
9427 /* Override any GCC internal prototype to avoid an error.
9428 Use char because int might match the return type of a GCC
9429 builtin and then its argument prototype would still apply. */
9430 #ifdef __cplusplus
9431 extern "C"
9432 #endif
9433 char dlopen ();
9434 int
9435 main ()
9436 {
9437 return dlopen ();
9438 ;
9439 return 0;
9440 }
9441 _ACEOF
9442 if ac_fn_c_try_link "$LINENO"; then :
9443 ac_cv_lib_dl_dlopen=yes
9444 else
9445 ac_cv_lib_dl_dlopen=no
9446 fi
9447 rm -f core conftest.err conftest.$ac_objext \
9448 conftest$ac_exeext conftest.$ac_ext
9449 LIBS=$ac_check_lib_save_LIBS
9450 fi
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9452 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9453 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9454 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9455 else
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9457 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9458 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9459 $as_echo_n "(cached) " >&6
9460 else
9461 ac_check_lib_save_LIBS=$LIBS
9462 LIBS="-lsvld $LIBS"
9463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464 /* end confdefs.h. */
9465
9466 /* Override any GCC internal prototype to avoid an error.
9467 Use char because int might match the return type of a GCC
9468 builtin and then its argument prototype would still apply. */
9469 #ifdef __cplusplus
9470 extern "C"
9471 #endif
9472 char dlopen ();
9473 int
9474 main ()
9475 {
9476 return dlopen ();
9477 ;
9478 return 0;
9479 }
9480 _ACEOF
9481 if ac_fn_c_try_link "$LINENO"; then :
9482 ac_cv_lib_svld_dlopen=yes
9483 else
9484 ac_cv_lib_svld_dlopen=no
9485 fi
9486 rm -f core conftest.err conftest.$ac_objext \
9487 conftest$ac_exeext conftest.$ac_ext
9488 LIBS=$ac_check_lib_save_LIBS
9489 fi
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9491 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9492 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9493 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9494 else
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9496 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9497 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9498 $as_echo_n "(cached) " >&6
9499 else
9500 ac_check_lib_save_LIBS=$LIBS
9501 LIBS="-ldld $LIBS"
9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9504
9505 /* Override any GCC internal prototype to avoid an error.
9506 Use char because int might match the return type of a GCC
9507 builtin and then its argument prototype would still apply. */
9508 #ifdef __cplusplus
9509 extern "C"
9510 #endif
9511 char dld_link ();
9512 int
9513 main ()
9514 {
9515 return dld_link ();
9516 ;
9517 return 0;
9518 }
9519 _ACEOF
9520 if ac_fn_c_try_link "$LINENO"; then :
9521 ac_cv_lib_dld_dld_link=yes
9522 else
9523 ac_cv_lib_dld_dld_link=no
9524 fi
9525 rm -f core conftest.err conftest.$ac_objext \
9526 conftest$ac_exeext conftest.$ac_ext
9527 LIBS=$ac_check_lib_save_LIBS
9528 fi
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9530 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9531 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9532 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9533 fi
9534
9535
9536 fi
9537
9538
9539 fi
9540
9541
9542 fi
9543
9544
9545 fi
9546
9547
9548 fi
9549
9550 ;;
9551 esac
9552
9553 if test "x$lt_cv_dlopen" != xno; then
9554 enable_dlopen=yes
9555 else
9556 enable_dlopen=no
9557 fi
9558
9559 case $lt_cv_dlopen in
9560 dlopen)
9561 save_CPPFLAGS="$CPPFLAGS"
9562 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9563
9564 save_LDFLAGS="$LDFLAGS"
9565 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9566
9567 save_LIBS="$LIBS"
9568 LIBS="$lt_cv_dlopen_libs $LIBS"
9569
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9571 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9572 if test "${lt_cv_dlopen_self+set}" = set; then :
9573 $as_echo_n "(cached) " >&6
9574 else
9575 if test "$cross_compiling" = yes; then :
9576 lt_cv_dlopen_self=cross
9577 else
9578 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9579 lt_status=$lt_dlunknown
9580 cat > conftest.$ac_ext <<EOF
9581 #line 9581 "configure"
9582 #include "confdefs.h"
9583
9584 #if HAVE_DLFCN_H
9585 #include <dlfcn.h>
9586 #endif
9587
9588 #include <stdio.h>
9589
9590 #ifdef RTLD_GLOBAL
9591 # define LT_DLGLOBAL RTLD_GLOBAL
9592 #else
9593 # ifdef DL_GLOBAL
9594 # define LT_DLGLOBAL DL_GLOBAL
9595 # else
9596 # define LT_DLGLOBAL 0
9597 # endif
9598 #endif
9599
9600 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9601 find out it does not work in some platform. */
9602 #ifndef LT_DLLAZY_OR_NOW
9603 # ifdef RTLD_LAZY
9604 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9605 # else
9606 # ifdef DL_LAZY
9607 # define LT_DLLAZY_OR_NOW DL_LAZY
9608 # else
9609 # ifdef RTLD_NOW
9610 # define LT_DLLAZY_OR_NOW RTLD_NOW
9611 # else
9612 # ifdef DL_NOW
9613 # define LT_DLLAZY_OR_NOW DL_NOW
9614 # else
9615 # define LT_DLLAZY_OR_NOW 0
9616 # endif
9617 # endif
9618 # endif
9619 # endif
9620 #endif
9621
9622 #ifdef __cplusplus
9623 extern "C" void exit (int);
9624 #endif
9625
9626 void fnord() { int i=42;}
9627 int main ()
9628 {
9629 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9630 int status = $lt_dlunknown;
9631
9632 if (self)
9633 {
9634 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9635 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9636 /* dlclose (self); */
9637 }
9638 else
9639 puts (dlerror ());
9640
9641 exit (status);
9642 }
9643 EOF
9644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9645 (eval $ac_link) 2>&5
9646 ac_status=$?
9647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9648 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9649 (./conftest; exit; ) >&5 2>/dev/null
9650 lt_status=$?
9651 case x$lt_status in
9652 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9653 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9654 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9655 esac
9656 else :
9657 # compilation failed
9658 lt_cv_dlopen_self=no
9659 fi
9660 fi
9661 rm -fr conftest*
9662
9663
9664 fi
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9666 $as_echo "$lt_cv_dlopen_self" >&6; }
9667
9668 if test "x$lt_cv_dlopen_self" = xyes; then
9669 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9671 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9672 if test "${lt_cv_dlopen_self_static+set}" = set; then :
9673 $as_echo_n "(cached) " >&6
9674 else
9675 if test "$cross_compiling" = yes; then :
9676 lt_cv_dlopen_self_static=cross
9677 else
9678 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9679 lt_status=$lt_dlunknown
9680 cat > conftest.$ac_ext <<EOF
9681 #line 9681 "configure"
9682 #include "confdefs.h"
9683
9684 #if HAVE_DLFCN_H
9685 #include <dlfcn.h>
9686 #endif
9687
9688 #include <stdio.h>
9689
9690 #ifdef RTLD_GLOBAL
9691 # define LT_DLGLOBAL RTLD_GLOBAL
9692 #else
9693 # ifdef DL_GLOBAL
9694 # define LT_DLGLOBAL DL_GLOBAL
9695 # else
9696 # define LT_DLGLOBAL 0
9697 # endif
9698 #endif
9699
9700 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9701 find out it does not work in some platform. */
9702 #ifndef LT_DLLAZY_OR_NOW
9703 # ifdef RTLD_LAZY
9704 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9705 # else
9706 # ifdef DL_LAZY
9707 # define LT_DLLAZY_OR_NOW DL_LAZY
9708 # else
9709 # ifdef RTLD_NOW
9710 # define LT_DLLAZY_OR_NOW RTLD_NOW
9711 # else
9712 # ifdef DL_NOW
9713 # define LT_DLLAZY_OR_NOW DL_NOW
9714 # else
9715 # define LT_DLLAZY_OR_NOW 0
9716 # endif
9717 # endif
9718 # endif
9719 # endif
9720 #endif
9721
9722 #ifdef __cplusplus
9723 extern "C" void exit (int);
9724 #endif
9725
9726 void fnord() { int i=42;}
9727 int main ()
9728 {
9729 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9730 int status = $lt_dlunknown;
9731
9732 if (self)
9733 {
9734 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9735 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9736 /* dlclose (self); */
9737 }
9738 else
9739 puts (dlerror ());
9740
9741 exit (status);
9742 }
9743 EOF
9744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9745 (eval $ac_link) 2>&5
9746 ac_status=$?
9747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9748 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9749 (./conftest; exit; ) >&5 2>/dev/null
9750 lt_status=$?
9751 case x$lt_status in
9752 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9753 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9754 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9755 esac
9756 else :
9757 # compilation failed
9758 lt_cv_dlopen_self_static=no
9759 fi
9760 fi
9761 rm -fr conftest*
9762
9763
9764 fi
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9766 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9767 fi
9768
9769 CPPFLAGS="$save_CPPFLAGS"
9770 LDFLAGS="$save_LDFLAGS"
9771 LIBS="$save_LIBS"
9772 ;;
9773 esac
9774
9775 case $lt_cv_dlopen_self in
9776 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9777 *) enable_dlopen_self=unknown ;;
9778 esac
9779
9780 case $lt_cv_dlopen_self_static in
9781 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9782 *) enable_dlopen_self_static=unknown ;;
9783 esac
9784 fi
9785
9786
9787 # Report which library types will actually be built
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9789 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9791 $as_echo "$can_build_shared" >&6; }
9792
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9794 $as_echo_n "checking whether to build shared libraries... " >&6; }
9795 test "$can_build_shared" = "no" && enable_shared=no
9796
9797 # On AIX, shared libraries and static libraries use the same namespace, and
9798 # are all built from PIC.
9799 case $host_os in
9800 aix3*)
9801 test "$enable_shared" = yes && enable_static=no
9802 if test -n "$RANLIB"; then
9803 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9804 postinstall_cmds='$RANLIB $lib'
9805 fi
9806 ;;
9807
9808 aix[4-9]*)
9809 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9810 test "$enable_shared" = yes && enable_static=no
9811 fi
9812 ;;
9813 esac
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9815 $as_echo "$enable_shared" >&6; }
9816
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9818 $as_echo_n "checking whether to build static libraries... " >&6; }
9819 # Make sure either enable_shared or enable_static is yes.
9820 test "$enable_shared" = yes || enable_static=yes
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9822 $as_echo "$enable_static" >&6; }
9823
9824 # The else clause should only fire when bootstrapping the
9825 # libtool distribution, otherwise you forgot to ship ltmain.sh
9826 # with your package, and you will get complaints that there are
9827 # no rules to generate ltmain.sh.
9828 if test -f "$ltmain"; then
9829 # See if we are running on zsh, and set the options which allow our commands through
9830 # without removal of \ escapes.
9831 if test -n "${ZSH_VERSION+set}" ; then
9832 setopt NO_GLOB_SUBST
9833 fi
9834 # Now quote all the things that may contain metacharacters while being
9835 # careful not to overquote the AC_SUBSTed values. We take copies of the
9836 # variables and quote the copies for generation of the libtool script.
9837 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9838 SED SHELL STRIP \
9839 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9840 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9841 deplibs_check_method reload_flag reload_cmds need_locks \
9842 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9843 lt_cv_sys_global_symbol_to_c_name_address \
9844 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9845 old_postinstall_cmds old_postuninstall_cmds \
9846 compiler \
9847 CC \
9848 LD \
9849 lt_prog_compiler_wl \
9850 lt_prog_compiler_pic \
9851 lt_prog_compiler_static \
9852 lt_prog_compiler_no_builtin_flag \
9853 export_dynamic_flag_spec \
9854 thread_safe_flag_spec \
9855 whole_archive_flag_spec \
9856 enable_shared_with_static_runtimes \
9857 old_archive_cmds \
9858 old_archive_from_new_cmds \
9859 predep_objects \
9860 postdep_objects \
9861 predeps \
9862 postdeps \
9863 compiler_lib_search_path \
9864 compiler_lib_search_dirs \
9865 archive_cmds \
9866 archive_expsym_cmds \
9867 postinstall_cmds \
9868 postuninstall_cmds \
9869 old_archive_from_expsyms_cmds \
9870 allow_undefined_flag \
9871 no_undefined_flag \
9872 export_symbols_cmds \
9873 hardcode_libdir_flag_spec \
9874 hardcode_libdir_flag_spec_ld \
9875 hardcode_libdir_separator \
9876 hardcode_automatic \
9877 module_cmds \
9878 module_expsym_cmds \
9879 lt_cv_prog_compiler_c_o \
9880 fix_srcfile_path \
9881 exclude_expsyms \
9882 include_expsyms; do
9883
9884 case $var in
9885 old_archive_cmds | \
9886 old_archive_from_new_cmds | \
9887 archive_cmds | \
9888 archive_expsym_cmds | \
9889 module_cmds | \
9890 module_expsym_cmds | \
9891 old_archive_from_expsyms_cmds | \
9892 export_symbols_cmds | \
9893 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9894 postinstall_cmds | postuninstall_cmds | \
9895 old_postinstall_cmds | old_postuninstall_cmds | \
9896 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9897 # Double-quote double-evaled strings.
9898 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9899 ;;
9900 *)
9901 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9902 ;;
9903 esac
9904 done
9905
9906 case $lt_echo in
9907 *'\$0 --fallback-echo"')
9908 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9909 ;;
9910 esac
9911
9912 cfgfile="${ofile}T"
9913 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9914 $rm -f "$cfgfile"
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
9916 $as_echo "$as_me: creating $ofile" >&6;}
9917
9918 cat <<__EOF__ >> "$cfgfile"
9919 #! $SHELL
9920
9921 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9922 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9923 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9924 #
9925 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
9926 # Free Software Foundation, Inc.
9927 #
9928 # This file is part of GNU Libtool:
9929 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
9930 #
9931 # This program is free software; you can redistribute it and/or modify
9932 # it under the terms of the GNU General Public License as published by
9933 # the Free Software Foundation; either version 2 of the License, or
9934 # (at your option) any later version.
9935 #
9936 # This program is distributed in the hope that it will be useful, but
9937 # WITHOUT ANY WARRANTY; without even the implied warranty of
9938 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9939 # General Public License for more details.
9940 #
9941 # You should have received a copy of the GNU General Public License
9942 # along with this program; if not, write to the Free Software
9943 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9944 #
9945 # As a special exception to the GNU General Public License, if you
9946 # distribute this file as part of a program that contains a
9947 # configuration script generated by Autoconf, you may include it under
9948 # the same distribution terms that you use for the rest of that program.
9949
9950 # A sed program that does not truncate output.
9951 SED=$lt_SED
9952
9953 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9954 Xsed="$SED -e 1s/^X//"
9955
9956 # The HP-UX ksh and POSIX shell print the target directory to stdout
9957 # if CDPATH is set.
9958 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9959
9960 # The names of the tagged configurations supported by this script.
9961 available_tags=
9962
9963 # ### BEGIN LIBTOOL CONFIG
9964
9965 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9966
9967 # Shell to use when invoking shell scripts.
9968 SHELL=$lt_SHELL
9969
9970 # Whether or not to build shared libraries.
9971 build_libtool_libs=$enable_shared
9972
9973 # Whether or not to build static libraries.
9974 build_old_libs=$enable_static
9975
9976 # Whether or not to add -lc for building shared libraries.
9977 build_libtool_need_lc=$archive_cmds_need_lc
9978
9979 # Whether or not to disallow shared libs when runtime libs are static
9980 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9981
9982 # Whether or not to optimize for fast installation.
9983 fast_install=$enable_fast_install
9984
9985 # The host system.
9986 host_alias=$host_alias
9987 host=$host
9988 host_os=$host_os
9989
9990 # The build system.
9991 build_alias=$build_alias
9992 build=$build
9993 build_os=$build_os
9994
9995 # An echo program that does not interpret backslashes.
9996 echo=$lt_echo
9997
9998 # The archiver.
9999 AR=$lt_AR
10000 AR_FLAGS=$lt_AR_FLAGS
10001
10002 # A C compiler.
10003 LTCC=$lt_LTCC
10004
10005 # LTCC compiler flags.
10006 LTCFLAGS=$lt_LTCFLAGS
10007
10008 # A language-specific compiler.
10009 CC=$lt_compiler
10010
10011 # Is the compiler the GNU C compiler?
10012 with_gcc=$GCC
10013
10014 # An ERE matcher.
10015 EGREP=$lt_EGREP
10016
10017 # The linker used to build libraries.
10018 LD=$lt_LD
10019
10020 # Whether we need hard or soft links.
10021 LN_S=$lt_LN_S
10022
10023 # A BSD-compatible nm program.
10024 NM=$lt_NM
10025
10026 # A symbol stripping program
10027 STRIP=$lt_STRIP
10028
10029 # Used to examine libraries when file_magic_cmd begins "file"
10030 MAGIC_CMD=$MAGIC_CMD
10031
10032 # Used on cygwin: DLL creation program.
10033 DLLTOOL="$DLLTOOL"
10034
10035 # Used on cygwin: object dumper.
10036 OBJDUMP="$OBJDUMP"
10037
10038 # Used on cygwin: assembler.
10039 AS="$AS"
10040
10041 # The name of the directory that contains temporary libtool files.
10042 objdir=$objdir
10043
10044 # How to create reloadable object files.
10045 reload_flag=$lt_reload_flag
10046 reload_cmds=$lt_reload_cmds
10047
10048 # How to pass a linker flag through the compiler.
10049 wl=$lt_lt_prog_compiler_wl
10050
10051 # Object file suffix (normally "o").
10052 objext="$ac_objext"
10053
10054 # Old archive suffix (normally "a").
10055 libext="$libext"
10056
10057 # Shared library suffix (normally ".so").
10058 shrext_cmds='$shrext_cmds'
10059
10060 # Executable file suffix (normally "").
10061 exeext="$exeext"
10062
10063 # Additional compiler flags for building library objects.
10064 pic_flag=$lt_lt_prog_compiler_pic
10065 pic_mode=$pic_mode
10066
10067 # What is the maximum length of a command?
10068 max_cmd_len=$lt_cv_sys_max_cmd_len
10069
10070 # Does compiler simultaneously support -c and -o options?
10071 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10072
10073 # Must we lock files when doing compilation?
10074 need_locks=$lt_need_locks
10075
10076 # Do we need the lib prefix for modules?
10077 need_lib_prefix=$need_lib_prefix
10078
10079 # Do we need a version for libraries?
10080 need_version=$need_version
10081
10082 # Whether dlopen is supported.
10083 dlopen_support=$enable_dlopen
10084
10085 # Whether dlopen of programs is supported.
10086 dlopen_self=$enable_dlopen_self
10087
10088 # Whether dlopen of statically linked programs is supported.
10089 dlopen_self_static=$enable_dlopen_self_static
10090
10091 # Compiler flag to prevent dynamic linking.
10092 link_static_flag=$lt_lt_prog_compiler_static
10093
10094 # Compiler flag to turn off builtin functions.
10095 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10096
10097 # Compiler flag to allow reflexive dlopens.
10098 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10099
10100 # Compiler flag to generate shared objects directly from archives.
10101 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10102
10103 # Compiler flag to generate thread-safe objects.
10104 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10105
10106 # Library versioning type.
10107 version_type=$version_type
10108
10109 # Format of library name prefix.
10110 libname_spec=$lt_libname_spec
10111
10112 # List of archive names. First name is the real one, the rest are links.
10113 # The last name is the one that the linker finds with -lNAME.
10114 library_names_spec=$lt_library_names_spec
10115
10116 # The coded name of the library, if different from the real name.
10117 soname_spec=$lt_soname_spec
10118
10119 # Commands used to build and install an old-style archive.
10120 RANLIB=$lt_RANLIB
10121 old_archive_cmds=$lt_old_archive_cmds
10122 old_postinstall_cmds=$lt_old_postinstall_cmds
10123 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10124
10125 # Create an old-style archive from a shared archive.
10126 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10127
10128 # Create a temporary old-style archive to link instead of a shared archive.
10129 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10130
10131 # Commands used to build and install a shared archive.
10132 archive_cmds=$lt_archive_cmds
10133 archive_expsym_cmds=$lt_archive_expsym_cmds
10134 postinstall_cmds=$lt_postinstall_cmds
10135 postuninstall_cmds=$lt_postuninstall_cmds
10136
10137 # Commands used to build a loadable module (assumed same as above if empty)
10138 module_cmds=$lt_module_cmds
10139 module_expsym_cmds=$lt_module_expsym_cmds
10140
10141 # Commands to strip libraries.
10142 old_striplib=$lt_old_striplib
10143 striplib=$lt_striplib
10144
10145 # Dependencies to place before the objects being linked to create a
10146 # shared library.
10147 predep_objects=$lt_predep_objects
10148
10149 # Dependencies to place after the objects being linked to create a
10150 # shared library.
10151 postdep_objects=$lt_postdep_objects
10152
10153 # Dependencies to place before the objects being linked to create a
10154 # shared library.
10155 predeps=$lt_predeps
10156
10157 # Dependencies to place after the objects being linked to create a
10158 # shared library.
10159 postdeps=$lt_postdeps
10160
10161 # The directories searched by this compiler when creating a shared
10162 # library
10163 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10164
10165 # The library search path used internally by the compiler when linking
10166 # a shared library.
10167 compiler_lib_search_path=$lt_compiler_lib_search_path
10168
10169 # Method to check whether dependent libraries are shared objects.
10170 deplibs_check_method=$lt_deplibs_check_method
10171
10172 # Command to use when deplibs_check_method == file_magic.
10173 file_magic_cmd=$lt_file_magic_cmd
10174
10175 # Flag that allows shared libraries with undefined symbols to be built.
10176 allow_undefined_flag=$lt_allow_undefined_flag
10177
10178 # Flag that forces no undefined symbols.
10179 no_undefined_flag=$lt_no_undefined_flag
10180
10181 # Commands used to finish a libtool library installation in a directory.
10182 finish_cmds=$lt_finish_cmds
10183
10184 # Same as above, but a single script fragment to be evaled but not shown.
10185 finish_eval=$lt_finish_eval
10186
10187 # Take the output of nm and produce a listing of raw symbols and C names.
10188 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10189
10190 # Transform the output of nm in a proper C declaration
10191 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10192
10193 # Transform the output of nm in a C name address pair
10194 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10195
10196 # This is the shared library runtime path variable.
10197 runpath_var=$runpath_var
10198
10199 # This is the shared library path variable.
10200 shlibpath_var=$shlibpath_var
10201
10202 # Is shlibpath searched before the hard-coded library search path?
10203 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10204
10205 # How to hardcode a shared library path into an executable.
10206 hardcode_action=$hardcode_action
10207
10208 # Whether we should hardcode library paths into libraries.
10209 hardcode_into_libs=$hardcode_into_libs
10210
10211 # Flag to hardcode \$libdir into a binary during linking.
10212 # This must work even if \$libdir does not exist.
10213 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10214
10215 # If ld is used when linking, flag to hardcode \$libdir into
10216 # a binary during linking. This must work even if \$libdir does
10217 # not exist.
10218 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10219
10220 # Whether we need a single -rpath flag with a separated argument.
10221 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10222
10223 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10224 # resulting binary.
10225 hardcode_direct=$hardcode_direct
10226
10227 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10228 # resulting binary.
10229 hardcode_minus_L=$hardcode_minus_L
10230
10231 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10232 # the resulting binary.
10233 hardcode_shlibpath_var=$hardcode_shlibpath_var
10234
10235 # Set to yes if building a shared library automatically hardcodes DIR into the library
10236 # and all subsequent libraries and executables linked against it.
10237 hardcode_automatic=$hardcode_automatic
10238
10239 # Variables whose values should be saved in libtool wrapper scripts and
10240 # restored at relink time.
10241 variables_saved_for_relink="$variables_saved_for_relink"
10242
10243 # Whether libtool must link a program against all its dependency libraries.
10244 link_all_deplibs=$link_all_deplibs
10245
10246 # Compile-time system search path for libraries
10247 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10248
10249 # Run-time system search path for libraries
10250 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10251
10252 # Fix the shell variable \$srcfile for the compiler.
10253 fix_srcfile_path=$lt_fix_srcfile_path
10254
10255 # Set to yes if exported symbols are required.
10256 always_export_symbols=$always_export_symbols
10257
10258 # The commands to list exported symbols.
10259 export_symbols_cmds=$lt_export_symbols_cmds
10260
10261 # The commands to extract the exported symbol list from a shared archive.
10262 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10263
10264 # Symbols that should not be listed in the preloaded symbols.
10265 exclude_expsyms=$lt_exclude_expsyms
10266
10267 # Symbols that must always be exported.
10268 include_expsyms=$lt_include_expsyms
10269
10270 # ### END LIBTOOL CONFIG
10271
10272 __EOF__
10273
10274
10275 case $host_os in
10276 aix3*)
10277 cat <<\EOF >> "$cfgfile"
10278
10279 # AIX sometimes has problems with the GCC collect2 program. For some
10280 # reason, if we set the COLLECT_NAMES environment variable, the problems
10281 # vanish in a puff of smoke.
10282 if test "X${COLLECT_NAMES+set}" != Xset; then
10283 COLLECT_NAMES=
10284 export COLLECT_NAMES
10285 fi
10286 EOF
10287 ;;
10288 esac
10289
10290 # We use sed instead of cat because bash on DJGPP gets confused if
10291 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10292 # text mode, it properly converts lines to CR/LF. This bash problem
10293 # is reportedly fixed, but why not run on old versions too?
10294 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10295
10296 mv -f "$cfgfile" "$ofile" || \
10297 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10298 chmod +x "$ofile"
10299
10300 else
10301 # If there is no Makefile yet, we rely on a make rule to execute
10302 # `config.status --recheck' to rerun these tests and create the
10303 # libtool script then.
10304 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10305 if test -f "$ltmain_in"; then
10306 test -f Makefile && make "$ltmain"
10307 fi
10308 fi
10309
10310
10311 ac_ext=c
10312 ac_cpp='$CPP $CPPFLAGS'
10313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10316
10317 CC="$lt_save_CC"
10318
10319
10320 # Check whether --with-tags was given.
10321 if test "${with_tags+set}" = set; then :
10322 withval=$with_tags; tagnames="$withval"
10323 fi
10324
10325
10326 if test -f "$ltmain" && test -n "$tagnames"; then
10327 if test ! -f "${ofile}"; then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10329 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10330 fi
10331
10332 if test -z "$LTCC"; then
10333 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10334 if test -z "$LTCC"; then
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10336 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10337 else
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10339 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10340 fi
10341 fi
10342 if test -z "$LTCFLAGS"; then
10343 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10344 fi
10345
10346 # Extract list of available tagged configurations in $ofile.
10347 # Note that this assumes the entire list is on one line.
10348 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10349
10350 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10351 for tagname in $tagnames; do
10352 IFS="$lt_save_ifs"
10353 # Check whether tagname contains only valid characters
10354 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10355 "") ;;
10356 *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5
10357 ;;
10358 esac
10359
10360 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10361 then
10362 as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
10363 fi
10364
10365 # Update the list of available tags.
10366 if test -n "$tagname"; then
10367 echo appending configuration tag \"$tagname\" to $ofile
10368
10369 case $tagname in
10370 CXX)
10371 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10372 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10373 (test "X$CXX" != "Xg++"))) ; then
10374 ac_ext=cpp
10375 ac_cpp='$CXXCPP $CPPFLAGS'
10376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10379
10380
10381
10382
10383 archive_cmds_need_lc_CXX=no
10384 allow_undefined_flag_CXX=
10385 always_export_symbols_CXX=no
10386 archive_expsym_cmds_CXX=
10387 export_dynamic_flag_spec_CXX=
10388 hardcode_direct_CXX=no
10389 hardcode_libdir_flag_spec_CXX=
10390 hardcode_libdir_flag_spec_ld_CXX=
10391 hardcode_libdir_separator_CXX=
10392 hardcode_minus_L_CXX=no
10393 hardcode_shlibpath_var_CXX=unsupported
10394 hardcode_automatic_CXX=no
10395 module_cmds_CXX=
10396 module_expsym_cmds_CXX=
10397 link_all_deplibs_CXX=unknown
10398 old_archive_cmds_CXX=$old_archive_cmds
10399 no_undefined_flag_CXX=
10400 whole_archive_flag_spec_CXX=
10401 enable_shared_with_static_runtimes_CXX=no
10402
10403 # Dependencies to place before and after the object being linked:
10404 predep_objects_CXX=
10405 postdep_objects_CXX=
10406 predeps_CXX=
10407 postdeps_CXX=
10408 compiler_lib_search_path_CXX=
10409 compiler_lib_search_dirs_CXX=
10410
10411 # Source file extension for C++ test sources.
10412 ac_ext=cpp
10413
10414 # Object file extension for compiled C++ test sources.
10415 objext=o
10416 objext_CXX=$objext
10417
10418 # Code to be used in simple compile tests
10419 lt_simple_compile_test_code="int some_variable = 0;"
10420
10421 # Code to be used in simple link tests
10422 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10423
10424 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10425
10426 # If no C compiler was specified, use CC.
10427 LTCC=${LTCC-"$CC"}
10428
10429 # If no C compiler flags were specified, use CFLAGS.
10430 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10431
10432 # Allow CC to be a program name with arguments.
10433 compiler=$CC
10434
10435
10436 # save warnings/boilerplate of simple test code
10437 ac_outfile=conftest.$ac_objext
10438 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10439 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10440 _lt_compiler_boilerplate=`cat conftest.err`
10441 $rm conftest*
10442
10443 ac_outfile=conftest.$ac_objext
10444 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10445 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10446 _lt_linker_boilerplate=`cat conftest.err`
10447 $rm -r conftest*
10448
10449
10450 # Allow CC to be a program name with arguments.
10451 lt_save_CC=$CC
10452 lt_save_LD=$LD
10453 lt_save_GCC=$GCC
10454 GCC=$GXX
10455 lt_save_with_gnu_ld=$with_gnu_ld
10456 lt_save_path_LD=$lt_cv_path_LD
10457 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10458 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10459 else
10460 $as_unset lt_cv_prog_gnu_ld
10461 fi
10462 if test -n "${lt_cv_path_LDCXX+set}"; then
10463 lt_cv_path_LD=$lt_cv_path_LDCXX
10464 else
10465 $as_unset lt_cv_path_LD
10466 fi
10467 test -z "${LDCXX+set}" || LD=$LDCXX
10468 CC=${CXX-"c++"}
10469 compiler=$CC
10470 compiler_CXX=$CC
10471 for cc_temp in $compiler""; do
10472 case $cc_temp in
10473 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10474 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10475 \-*) ;;
10476 *) break;;
10477 esac
10478 done
10479 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10480
10481
10482 # We don't want -fno-exception wen compiling C++ code, so set the
10483 # no_builtin_flag separately
10484 if test "$GXX" = yes; then
10485 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10486 else
10487 lt_prog_compiler_no_builtin_flag_CXX=
10488 fi
10489
10490 if test "$GXX" = yes; then
10491 # Set up default GNU C++ configuration
10492
10493
10494 # Check whether --with-gnu-ld was given.
10495 if test "${with_gnu_ld+set}" = set; then :
10496 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10497 else
10498 with_gnu_ld=no
10499 fi
10500
10501 ac_prog=ld
10502 if test "$GCC" = yes; then
10503 # Check if gcc -print-prog-name=ld gives a path.
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10505 $as_echo_n "checking for ld used by $CC... " >&6; }
10506 case $host in
10507 *-*-mingw*)
10508 # gcc leaves a trailing carriage return which upsets mingw
10509 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10510 *)
10511 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10512 esac
10513 case $ac_prog in
10514 # Accept absolute paths.
10515 [\\/]* | ?:[\\/]*)
10516 re_direlt='/[^/][^/]*/\.\./'
10517 # Canonicalize the pathname of ld
10518 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10519 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10520 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10521 done
10522 test -z "$LD" && LD="$ac_prog"
10523 ;;
10524 "")
10525 # If it fails, then pretend we aren't using GCC.
10526 ac_prog=ld
10527 ;;
10528 *)
10529 # If it is relative, then search for the first ld in PATH.
10530 with_gnu_ld=unknown
10531 ;;
10532 esac
10533 elif test "$with_gnu_ld" = yes; then
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10535 $as_echo_n "checking for GNU ld... " >&6; }
10536 else
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10538 $as_echo_n "checking for non-GNU ld... " >&6; }
10539 fi
10540 if test "${lt_cv_path_LD+set}" = set; then :
10541 $as_echo_n "(cached) " >&6
10542 else
10543 if test -z "$LD"; then
10544 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10545 for ac_dir in $PATH; do
10546 IFS="$lt_save_ifs"
10547 test -z "$ac_dir" && ac_dir=.
10548 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10549 lt_cv_path_LD="$ac_dir/$ac_prog"
10550 # Check to see if the program is GNU ld. I'd rather use --version,
10551 # but apparently some variants of GNU ld only accept -v.
10552 # Break only if it was the GNU/non-GNU ld that we prefer.
10553 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10554 *GNU* | *'with BFD'*)
10555 test "$with_gnu_ld" != no && break
10556 ;;
10557 *)
10558 test "$with_gnu_ld" != yes && break
10559 ;;
10560 esac
10561 fi
10562 done
10563 IFS="$lt_save_ifs"
10564 else
10565 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10566 fi
10567 fi
10568
10569 LD="$lt_cv_path_LD"
10570 if test -n "$LD"; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10572 $as_echo "$LD" >&6; }
10573 else
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575 $as_echo "no" >&6; }
10576 fi
10577 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10579 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10580 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
10581 $as_echo_n "(cached) " >&6
10582 else
10583 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10584 case `$LD -v 2>&1 </dev/null` in
10585 *GNU* | *'with BFD'*)
10586 lt_cv_prog_gnu_ld=yes
10587 ;;
10588 *)
10589 lt_cv_prog_gnu_ld=no
10590 ;;
10591 esac
10592 fi
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10594 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10595 with_gnu_ld=$lt_cv_prog_gnu_ld
10596
10597
10598
10599 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10600 # archiving commands below assume that GNU ld is being used.
10601 if test "$with_gnu_ld" = yes; then
10602 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10603 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10604
10605 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10606 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10607
10608 # If archive_cmds runs LD, not CC, wlarc should be empty
10609 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10610 # investigate it a little bit more. (MM)
10611 wlarc='${wl}'
10612
10613 # ancient GNU ld didn't support --whole-archive et. al.
10614 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10615 grep 'no-whole-archive' > /dev/null; then
10616 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10617 else
10618 whole_archive_flag_spec_CXX=
10619 fi
10620 else
10621 with_gnu_ld=no
10622 wlarc=
10623
10624 # A generic and very simple default shared library creation
10625 # command for GNU C++ for the case where it uses the native
10626 # linker, instead of GNU ld. If possible, this setting should
10627 # overridden to take advantage of the native linker features on
10628 # the platform it is being used on.
10629 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10630 fi
10631
10632 # Commands to make compiler produce verbose output that lists
10633 # what "hidden" libraries, object files and flags are used when
10634 # linking a shared library.
10635 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10636
10637 else
10638 GXX=no
10639 with_gnu_ld=no
10640 wlarc=
10641 fi
10642
10643 # PORTME: fill in a description of your system's C++ link characteristics
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10645 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10646 ld_shlibs_CXX=yes
10647 case $host_os in
10648 aix3*)
10649 # FIXME: insert proper C++ library support
10650 ld_shlibs_CXX=no
10651 ;;
10652 aix[4-9]*)
10653 if test "$host_cpu" = ia64; then
10654 # On IA64, the linker does run time linking by default, so we don't
10655 # have to do anything special.
10656 aix_use_runtimelinking=no
10657 exp_sym_flag='-Bexport'
10658 no_entry_flag=""
10659 else
10660 aix_use_runtimelinking=no
10661
10662 # Test if we are trying to use run time linking or normal
10663 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10664 # need to do runtime linking.
10665 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10666 for ld_flag in $LDFLAGS; do
10667 case $ld_flag in
10668 *-brtl*)
10669 aix_use_runtimelinking=yes
10670 break
10671 ;;
10672 esac
10673 done
10674 ;;
10675 esac
10676
10677 exp_sym_flag='-bexport'
10678 no_entry_flag='-bnoentry'
10679 fi
10680
10681 # When large executables or shared objects are built, AIX ld can
10682 # have problems creating the table of contents. If linking a library
10683 # or program results in "error TOC overflow" add -mminimal-toc to
10684 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10685 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10686
10687 archive_cmds_CXX=''
10688 hardcode_direct_CXX=yes
10689 hardcode_libdir_separator_CXX=':'
10690 link_all_deplibs_CXX=yes
10691
10692 if test "$GXX" = yes; then
10693 case $host_os in aix4.[012]|aix4.[012].*)
10694 # We only want to do this on AIX 4.2 and lower, the check
10695 # below for broken collect2 doesn't work under 4.3+
10696 collect2name=`${CC} -print-prog-name=collect2`
10697 if test -f "$collect2name" && \
10698 strings "$collect2name" | grep resolve_lib_name >/dev/null
10699 then
10700 # We have reworked collect2
10701 :
10702 else
10703 # We have old collect2
10704 hardcode_direct_CXX=unsupported
10705 # It fails to find uninstalled libraries when the uninstalled
10706 # path is not listed in the libpath. Setting hardcode_minus_L
10707 # to unsupported forces relinking
10708 hardcode_minus_L_CXX=yes
10709 hardcode_libdir_flag_spec_CXX='-L$libdir'
10710 hardcode_libdir_separator_CXX=
10711 fi
10712 ;;
10713 esac
10714 shared_flag='-shared'
10715 if test "$aix_use_runtimelinking" = yes; then
10716 shared_flag="$shared_flag "'${wl}-G'
10717 fi
10718 else
10719 # not using gcc
10720 if test "$host_cpu" = ia64; then
10721 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10722 # chokes on -Wl,-G. The following line is correct:
10723 shared_flag='-G'
10724 else
10725 if test "$aix_use_runtimelinking" = yes; then
10726 shared_flag='${wl}-G'
10727 else
10728 shared_flag='${wl}-bM:SRE'
10729 fi
10730 fi
10731 fi
10732
10733 # It seems that -bexpall does not export symbols beginning with
10734 # underscore (_), so it is better to generate a list of symbols to export.
10735 always_export_symbols_CXX=yes
10736 if test "$aix_use_runtimelinking" = yes; then
10737 # Warning - without using the other runtime loading flags (-brtl),
10738 # -berok will link without error, but may produce a broken library.
10739 allow_undefined_flag_CXX='-berok'
10740 # Determine the default libpath from the value encoded in an empty executable.
10741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10742 /* end confdefs.h. */
10743
10744 int
10745 main ()
10746 {
10747
10748 ;
10749 return 0;
10750 }
10751 _ACEOF
10752 if ac_fn_cxx_try_link "$LINENO"; then :
10753
10754 lt_aix_libpath_sed='
10755 /Import File Strings/,/^$/ {
10756 /^0/ {
10757 s/^0 *\(.*\)$/\1/
10758 p
10759 }
10760 }'
10761 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10762 # Check for a 64-bit object if we didn't find anything.
10763 if test -z "$aix_libpath"; then
10764 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10765 fi
10766 fi
10767 rm -f core conftest.err conftest.$ac_objext \
10768 conftest$ac_exeext conftest.$ac_ext
10769 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10770
10771 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10772
10773 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10774 else
10775 if test "$host_cpu" = ia64; then
10776 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10777 allow_undefined_flag_CXX="-z nodefs"
10778 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"
10779 else
10780 # Determine the default libpath from the value encoded in an empty executable.
10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h. */
10783
10784 int
10785 main ()
10786 {
10787
10788 ;
10789 return 0;
10790 }
10791 _ACEOF
10792 if ac_fn_cxx_try_link "$LINENO"; then :
10793
10794 lt_aix_libpath_sed='
10795 /Import File Strings/,/^$/ {
10796 /^0/ {
10797 s/^0 *\(.*\)$/\1/
10798 p
10799 }
10800 }'
10801 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10802 # Check for a 64-bit object if we didn't find anything.
10803 if test -z "$aix_libpath"; then
10804 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10805 fi
10806 fi
10807 rm -f core conftest.err conftest.$ac_objext \
10808 conftest$ac_exeext conftest.$ac_ext
10809 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10810
10811 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10812 # Warning - without using the other run time loading flags,
10813 # -berok will link without error, but may produce a broken library.
10814 no_undefined_flag_CXX=' ${wl}-bernotok'
10815 allow_undefined_flag_CXX=' ${wl}-berok'
10816 # Exported symbols can be pulled into shared objects from archives
10817 whole_archive_flag_spec_CXX='$convenience'
10818 archive_cmds_need_lc_CXX=yes
10819 # This is similar to how AIX traditionally builds its shared libraries.
10820 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10821 fi
10822 fi
10823 ;;
10824
10825 beos*)
10826 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10827 allow_undefined_flag_CXX=unsupported
10828 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
10829 # support --undefined. This deserves some investigation. FIXME
10830 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10831 else
10832 ld_shlibs_CXX=no
10833 fi
10834 ;;
10835
10836 chorus*)
10837 case $cc_basename in
10838 *)
10839 # FIXME: insert proper C++ library support
10840 ld_shlibs_CXX=no
10841 ;;
10842 esac
10843 ;;
10844
10845 cygwin* | mingw* | pw32*)
10846 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10847 # as there is no search path for DLLs.
10848 hardcode_libdir_flag_spec_CXX='-L$libdir'
10849 allow_undefined_flag_CXX=unsupported
10850 always_export_symbols_CXX=no
10851 enable_shared_with_static_runtimes_CXX=yes
10852
10853 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10854 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'
10855 # If the export-symbols file already is a .def file (1st line
10856 # is EXPORTS), use it as is; otherwise, prepend...
10857 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10858 cp $export_symbols $output_objdir/$soname.def;
10859 else
10860 echo EXPORTS > $output_objdir/$soname.def;
10861 cat $export_symbols >> $output_objdir/$soname.def;
10862 fi~
10863 $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'
10864 else
10865 ld_shlibs_CXX=no
10866 fi
10867 ;;
10868 darwin* | rhapsody*)
10869 archive_cmds_need_lc_CXX=no
10870 hardcode_direct_CXX=no
10871 hardcode_automatic_CXX=yes
10872 hardcode_shlibpath_var_CXX=unsupported
10873 whole_archive_flag_spec_CXX=''
10874 link_all_deplibs_CXX=yes
10875 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
10876 if test "$GXX" = yes ; then
10877 output_verbose_link_cmd='echo'
10878 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}"
10879 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10880 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}"
10881 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}"
10882 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
10883 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}"
10884 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}"
10885 fi
10886 else
10887 case $cc_basename in
10888 xlc*)
10889 output_verbose_link_cmd='echo'
10890 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10891 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10892 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10893 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10894 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10895 ;;
10896 *)
10897 ld_shlibs_CXX=no
10898 ;;
10899 esac
10900 fi
10901 ;;
10902
10903 dgux*)
10904 case $cc_basename in
10905 ec++*)
10906 # FIXME: insert proper C++ library support
10907 ld_shlibs_CXX=no
10908 ;;
10909 ghcx*)
10910 # Green Hills C++ Compiler
10911 # FIXME: insert proper C++ library support
10912 ld_shlibs_CXX=no
10913 ;;
10914 *)
10915 # FIXME: insert proper C++ library support
10916 ld_shlibs_CXX=no
10917 ;;
10918 esac
10919 ;;
10920 freebsd[12]*)
10921 # C++ shared libraries reported to be fairly broken before switch to ELF
10922 ld_shlibs_CXX=no
10923 ;;
10924 freebsd-elf*)
10925 archive_cmds_need_lc_CXX=no
10926 ;;
10927 freebsd* | dragonfly*)
10928 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10929 # conventions
10930 ld_shlibs_CXX=yes
10931 ;;
10932 gnu*)
10933 ;;
10934 hpux9*)
10935 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10936 hardcode_libdir_separator_CXX=:
10937 export_dynamic_flag_spec_CXX='${wl}-E'
10938 hardcode_direct_CXX=yes
10939 hardcode_minus_L_CXX=yes # Not in the search PATH,
10940 # but as the default
10941 # location of the library.
10942
10943 case $cc_basename in
10944 CC*)
10945 # FIXME: insert proper C++ library support
10946 ld_shlibs_CXX=no
10947 ;;
10948 aCC*)
10949 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10950 # Commands to make compiler produce verbose output that lists
10951 # what "hidden" libraries, object files and flags are used when
10952 # linking a shared library.
10953 #
10954 # There doesn't appear to be a way to prevent this compiler from
10955 # explicitly linking system object files so we need to strip them
10956 # from the output so that they don't get included in the library
10957 # dependencies.
10958 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; echo $list'
10959 ;;
10960 *)
10961 if test "$GXX" = yes; then
10962 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10963 else
10964 # FIXME: insert proper C++ library support
10965 ld_shlibs_CXX=no
10966 fi
10967 ;;
10968 esac
10969 ;;
10970 hpux10*|hpux11*)
10971 if test $with_gnu_ld = no; then
10972 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10973 hardcode_libdir_separator_CXX=:
10974
10975 case $host_cpu in
10976 hppa*64*|ia64*) ;;
10977 *)
10978 export_dynamic_flag_spec_CXX='${wl}-E'
10979 ;;
10980 esac
10981 fi
10982 case $host_cpu in
10983 hppa*64*|ia64*)
10984 hardcode_direct_CXX=no
10985 hardcode_shlibpath_var_CXX=no
10986 ;;
10987 *)
10988 hardcode_direct_CXX=yes
10989 hardcode_minus_L_CXX=yes # Not in the search PATH,
10990 # but as the default
10991 # location of the library.
10992 ;;
10993 esac
10994
10995 case $cc_basename in
10996 CC*)
10997 # FIXME: insert proper C++ library support
10998 ld_shlibs_CXX=no
10999 ;;
11000 aCC*)
11001 case $host_cpu in
11002 hppa*64*)
11003 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11004 ;;
11005 ia64*)
11006 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11007 ;;
11008 *)
11009 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11010 ;;
11011 esac
11012 # Commands to make compiler produce verbose output that lists
11013 # what "hidden" libraries, object files and flags are used when
11014 # linking a shared library.
11015 #
11016 # There doesn't appear to be a way to prevent this compiler from
11017 # explicitly linking system object files so we need to strip them
11018 # from the output so that they don't get included in the library
11019 # dependencies.
11020 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; echo $list'
11021 ;;
11022 *)
11023 if test "$GXX" = yes; then
11024 if test $with_gnu_ld = no; then
11025 case $host_cpu in
11026 hppa*64*)
11027 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11028 ;;
11029 ia64*)
11030 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11031 ;;
11032 *)
11033 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11034 ;;
11035 esac
11036 fi
11037 else
11038 # FIXME: insert proper C++ library support
11039 ld_shlibs_CXX=no
11040 fi
11041 ;;
11042 esac
11043 ;;
11044 interix[3-9]*)
11045 hardcode_direct_CXX=no
11046 hardcode_shlibpath_var_CXX=no
11047 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11048 export_dynamic_flag_spec_CXX='${wl}-E'
11049 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11050 # Instead, shared libraries are loaded at an image base (0x10000000 by
11051 # default) and relocated if they conflict, which is a slow very memory
11052 # consuming and fragmenting process. To avoid this, we pick a random,
11053 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11054 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11055 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'
11056 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'
11057 ;;
11058 irix5* | irix6*)
11059 case $cc_basename in
11060 CC*)
11061 # SGI C++
11062 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11063
11064 # Archives containing C++ object files must be created using
11065 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11066 # necessary to make sure instantiated templates are included
11067 # in the archive.
11068 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11069 ;;
11070 *)
11071 if test "$GXX" = yes; then
11072 if test "$with_gnu_ld" = no; then
11073 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11074 else
11075 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11076 fi
11077 fi
11078 link_all_deplibs_CXX=yes
11079 ;;
11080 esac
11081 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11082 hardcode_libdir_separator_CXX=:
11083 ;;
11084 linux* | k*bsd*-gnu)
11085 case $cc_basename in
11086 KCC*)
11087 # Kuck and Associates, Inc. (KAI) C++ Compiler
11088
11089 # KCC will only create a shared library if the output file
11090 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11091 # to its proper name (with version) after linking.
11092 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'
11093 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'
11094 # Commands to make compiler produce verbose output that lists
11095 # what "hidden" libraries, object files and flags are used when
11096 # linking a shared library.
11097 #
11098 # There doesn't appear to be a way to prevent this compiler from
11099 # explicitly linking system object files so we need to strip them
11100 # from the output so that they don't get included in the library
11101 # dependencies.
11102 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; echo $list'
11103
11104 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11105 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11106
11107 # Archives containing C++ object files must be created using
11108 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11109 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11110 ;;
11111 icpc*)
11112 # Intel C++
11113 with_gnu_ld=yes
11114 # version 8.0 and above of icpc choke on multiply defined symbols
11115 # if we add $predep_objects and $postdep_objects, however 7.1 and
11116 # earlier do not add the objects themselves.
11117 case `$CC -V 2>&1` in
11118 *"Version 7."*)
11119 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11120 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'
11121 ;;
11122 *) # Version 8.0 or newer
11123 tmp_idyn=
11124 case $host_cpu in
11125 ia64*) tmp_idyn=' -i_dynamic';;
11126 esac
11127 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11128 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'
11129 ;;
11130 esac
11131 archive_cmds_need_lc_CXX=no
11132 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11133 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11134 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11135 ;;
11136 pgCC* | pgcpp*)
11137 # Portland Group C++ compiler
11138 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11139 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'
11140
11141 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11142 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11143 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11144 ;;
11145 cxx*)
11146 # Compaq C++
11147 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11148 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'
11149
11150 runpath_var=LD_RUN_PATH
11151 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11152 hardcode_libdir_separator_CXX=:
11153
11154 # Commands to make compiler produce verbose output that lists
11155 # what "hidden" libraries, object files and flags are used when
11156 # linking a shared library.
11157 #
11158 # There doesn't appear to be a way to prevent this compiler from
11159 # explicitly linking system object files so we need to strip them
11160 # from the output so that they don't get included in the library
11161 # dependencies.
11162 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
11163 ;;
11164 *)
11165 case `$CC -V 2>&1 | sed 5q` in
11166 *Sun\ C*)
11167 # Sun C++ 5.9
11168 no_undefined_flag_CXX=' -zdefs'
11169 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11170 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'
11171 hardcode_libdir_flag_spec_CXX='-R$libdir'
11172 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11173
11174 # Not sure whether something based on
11175 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11176 # would be better.
11177 output_verbose_link_cmd='echo'
11178
11179 # Archives containing C++ object files must be created using
11180 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11181 # necessary to make sure instantiated templates are included
11182 # in the archive.
11183 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11184 ;;
11185 esac
11186 ;;
11187 esac
11188 ;;
11189 lynxos*)
11190 # FIXME: insert proper C++ library support
11191 ld_shlibs_CXX=no
11192 ;;
11193 m88k*)
11194 # FIXME: insert proper C++ library support
11195 ld_shlibs_CXX=no
11196 ;;
11197 mvs*)
11198 case $cc_basename in
11199 cxx*)
11200 # FIXME: insert proper C++ library support
11201 ld_shlibs_CXX=no
11202 ;;
11203 *)
11204 # FIXME: insert proper C++ library support
11205 ld_shlibs_CXX=no
11206 ;;
11207 esac
11208 ;;
11209 netbsd* | netbsdelf*-gnu)
11210 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11211 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11212 wlarc=
11213 hardcode_libdir_flag_spec_CXX='-R$libdir'
11214 hardcode_direct_CXX=yes
11215 hardcode_shlibpath_var_CXX=no
11216 fi
11217 # Workaround some broken pre-1.5 toolchains
11218 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11219 ;;
11220 openbsd2*)
11221 # C++ shared libraries are fairly broken
11222 ld_shlibs_CXX=no
11223 ;;
11224 openbsd*)
11225 if test -f /usr/libexec/ld.so; then
11226 hardcode_direct_CXX=yes
11227 hardcode_shlibpath_var_CXX=no
11228 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11229 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11230 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11231 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11232 export_dynamic_flag_spec_CXX='${wl}-E'
11233 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11234 fi
11235 output_verbose_link_cmd='echo'
11236 else
11237 ld_shlibs_CXX=no
11238 fi
11239 ;;
11240 osf3*)
11241 case $cc_basename in
11242 KCC*)
11243 # Kuck and Associates, Inc. (KAI) C++ Compiler
11244
11245 # KCC will only create a shared library if the output file
11246 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11247 # to its proper name (with version) after linking.
11248 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'
11249
11250 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11251 hardcode_libdir_separator_CXX=:
11252
11253 # Archives containing C++ object files must be created using
11254 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11255 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11256
11257 ;;
11258 RCC*)
11259 # Rational C++ 2.4.1
11260 # FIXME: insert proper C++ library support
11261 ld_shlibs_CXX=no
11262 ;;
11263 cxx*)
11264 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11265 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11266
11267 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11268 hardcode_libdir_separator_CXX=:
11269
11270 # Commands to make compiler produce verbose output that lists
11271 # what "hidden" libraries, object files and flags are used when
11272 # linking a shared library.
11273 #
11274 # There doesn't appear to be a way to prevent this compiler from
11275 # explicitly linking system object files so we need to strip them
11276 # from the output so that they don't get included in the library
11277 # dependencies.
11278 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
11279 ;;
11280 *)
11281 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11282 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11283 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11284
11285 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11286 hardcode_libdir_separator_CXX=:
11287
11288 # Commands to make compiler produce verbose output that lists
11289 # what "hidden" libraries, object files and flags are used when
11290 # linking a shared library.
11291 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11292
11293 else
11294 # FIXME: insert proper C++ library support
11295 ld_shlibs_CXX=no
11296 fi
11297 ;;
11298 esac
11299 ;;
11300 osf4* | osf5*)
11301 case $cc_basename in
11302 KCC*)
11303 # Kuck and Associates, Inc. (KAI) C++ Compiler
11304
11305 # KCC will only create a shared library if the output file
11306 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11307 # to its proper name (with version) after linking.
11308 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'
11309
11310 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11311 hardcode_libdir_separator_CXX=:
11312
11313 # Archives containing C++ object files must be created using
11314 # the KAI C++ compiler.
11315 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11316 ;;
11317 RCC*)
11318 # Rational C++ 2.4.1
11319 # FIXME: insert proper C++ library support
11320 ld_shlibs_CXX=no
11321 ;;
11322 cxx*)
11323 allow_undefined_flag_CXX=' -expect_unresolved \*'
11324 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11325 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11326 echo "-hidden">> $lib.exp~
11327 $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~
11328 $rm $lib.exp'
11329
11330 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11331 hardcode_libdir_separator_CXX=:
11332
11333 # Commands to make compiler produce verbose output that lists
11334 # what "hidden" libraries, object files and flags are used when
11335 # linking a shared library.
11336 #
11337 # There doesn't appear to be a way to prevent this compiler from
11338 # explicitly linking system object files so we need to strip them
11339 # from the output so that they don't get included in the library
11340 # dependencies.
11341 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
11342 ;;
11343 *)
11344 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11345 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11346 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11347
11348 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11349 hardcode_libdir_separator_CXX=:
11350
11351 # Commands to make compiler produce verbose output that lists
11352 # what "hidden" libraries, object files and flags are used when
11353 # linking a shared library.
11354 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11355
11356 else
11357 # FIXME: insert proper C++ library support
11358 ld_shlibs_CXX=no
11359 fi
11360 ;;
11361 esac
11362 ;;
11363 psos*)
11364 # FIXME: insert proper C++ library support
11365 ld_shlibs_CXX=no
11366 ;;
11367 sunos4*)
11368 case $cc_basename in
11369 CC*)
11370 # Sun C++ 4.x
11371 # FIXME: insert proper C++ library support
11372 ld_shlibs_CXX=no
11373 ;;
11374 lcc*)
11375 # Lucid
11376 # FIXME: insert proper C++ library support
11377 ld_shlibs_CXX=no
11378 ;;
11379 *)
11380 # FIXME: insert proper C++ library support
11381 ld_shlibs_CXX=no
11382 ;;
11383 esac
11384 ;;
11385 solaris*)
11386 case $cc_basename in
11387 CC*)
11388 # Sun C++ 4.2, 5.x and Centerline C++
11389 archive_cmds_need_lc_CXX=yes
11390 no_undefined_flag_CXX=' -zdefs'
11391 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11392 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11393 $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'
11394
11395 hardcode_libdir_flag_spec_CXX='-R$libdir'
11396 hardcode_shlibpath_var_CXX=no
11397 case $host_os in
11398 solaris2.[0-5] | solaris2.[0-5].*) ;;
11399 *)
11400 # The compiler driver will combine and reorder linker options,
11401 # but understands `-z linker_flag'.
11402 # Supported since Solaris 2.6 (maybe 2.5.1?)
11403 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11404 ;;
11405 esac
11406 link_all_deplibs_CXX=yes
11407
11408 output_verbose_link_cmd='echo'
11409
11410 # Archives containing C++ object files must be created using
11411 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11412 # necessary to make sure instantiated templates are included
11413 # in the archive.
11414 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11415 ;;
11416 gcx*)
11417 # Green Hills C++ Compiler
11418 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11419
11420 # The C++ compiler must be used to create the archive.
11421 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11422 ;;
11423 *)
11424 # GNU C++ compiler with Solaris linker
11425 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11426 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11427 if $CC --version | grep -v '^2\.7' > /dev/null; then
11428 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11429 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11430 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11431
11432 # Commands to make compiler produce verbose output that lists
11433 # what "hidden" libraries, object files and flags are used when
11434 # linking a shared library.
11435 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11436 else
11437 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11438 # platform.
11439 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11440 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11441 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11442
11443 # Commands to make compiler produce verbose output that lists
11444 # what "hidden" libraries, object files and flags are used when
11445 # linking a shared library.
11446 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11447 fi
11448
11449 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11450 case $host_os in
11451 solaris2.[0-5] | solaris2.[0-5].*) ;;
11452 *)
11453 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11454 ;;
11455 esac
11456 fi
11457 ;;
11458 esac
11459 ;;
11460 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11461 no_undefined_flag_CXX='${wl}-z,text'
11462 archive_cmds_need_lc_CXX=no
11463 hardcode_shlibpath_var_CXX=no
11464 runpath_var='LD_RUN_PATH'
11465
11466 case $cc_basename in
11467 CC*)
11468 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11469 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11470 ;;
11471 *)
11472 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11473 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11474 ;;
11475 esac
11476 ;;
11477 sysv5* | sco3.2v5* | sco5v6*)
11478 # Note: We can NOT use -z defs as we might desire, because we do not
11479 # link with -lc, and that would cause any symbols used from libc to
11480 # always be unresolved, which means just about no library would
11481 # ever link correctly. If we're not using GNU ld we use -z text
11482 # though, which does catch some bad symbols but isn't as heavy-handed
11483 # as -z defs.
11484 # For security reasons, it is highly recommended that you always
11485 # use absolute paths for naming shared libraries, and exclude the
11486 # DT_RUNPATH tag from executables and libraries. But doing so
11487 # requires that you compile everything twice, which is a pain.
11488 # So that behaviour is only enabled if SCOABSPATH is set to a
11489 # non-empty value in the environment. Most likely only useful for
11490 # creating official distributions of packages.
11491 # This is a hack until libtool officially supports absolute path
11492 # names for shared libraries.
11493 no_undefined_flag_CXX='${wl}-z,text'
11494 allow_undefined_flag_CXX='${wl}-z,nodefs'
11495 archive_cmds_need_lc_CXX=no
11496 hardcode_shlibpath_var_CXX=no
11497 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11498 hardcode_libdir_separator_CXX=':'
11499 link_all_deplibs_CXX=yes
11500 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11501 runpath_var='LD_RUN_PATH'
11502
11503 case $cc_basename in
11504 CC*)
11505 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11506 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11507 ;;
11508 *)
11509 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11510 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11511 ;;
11512 esac
11513 ;;
11514 tandem*)
11515 case $cc_basename in
11516 NCC*)
11517 # NonStop-UX NCC 3.20
11518 # FIXME: insert proper C++ library support
11519 ld_shlibs_CXX=no
11520 ;;
11521 *)
11522 # FIXME: insert proper C++ library support
11523 ld_shlibs_CXX=no
11524 ;;
11525 esac
11526 ;;
11527 vxworks*)
11528 # FIXME: insert proper C++ library support
11529 ld_shlibs_CXX=no
11530 ;;
11531 *)
11532 # FIXME: insert proper C++ library support
11533 ld_shlibs_CXX=no
11534 ;;
11535 esac
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11537 $as_echo "$ld_shlibs_CXX" >&6; }
11538 test "$ld_shlibs_CXX" = no && can_build_shared=no
11539
11540 GCC_CXX="$GXX"
11541 LD_CXX="$LD"
11542
11543 cat > conftest.$ac_ext <<EOF
11544 class Foo
11545 {
11546 public:
11547 Foo (void) { a = 0; }
11548 private:
11549 int a;
11550 };
11551 EOF
11552
11553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11554 (eval $ac_compile) 2>&5
11555 ac_status=$?
11556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11557 test $ac_status = 0; }; then
11558 # Parse the compiler output and extract the necessary
11559 # objects, libraries and library flags.
11560
11561 # Sentinel used to keep track of whether or not we are before
11562 # the conftest object file.
11563 pre_test_object_deps_done=no
11564
11565 # The `*' in the case matches for architectures that use `case' in
11566 # $output_verbose_cmd can trigger glob expansion during the loop
11567 # eval without this substitution.
11568 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11569
11570 for p in `eval $output_verbose_link_cmd`; do
11571 case $p in
11572
11573 -L* | -R* | -l*)
11574 # Some compilers place space between "-{L,R}" and the path.
11575 # Remove the space.
11576 if test $p = "-L" \
11577 || test $p = "-R"; then
11578 prev=$p
11579 continue
11580 else
11581 prev=
11582 fi
11583
11584 if test "$pre_test_object_deps_done" = no; then
11585 case $p in
11586 -L* | -R*)
11587 # Internal compiler library paths should come after those
11588 # provided the user. The postdeps already come after the
11589 # user supplied libs so there is no need to process them.
11590 if test -z "$compiler_lib_search_path_CXX"; then
11591 compiler_lib_search_path_CXX="${prev}${p}"
11592 else
11593 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11594 fi
11595 ;;
11596 # The "-l" case would never come before the object being
11597 # linked, so don't bother handling this case.
11598 esac
11599 else
11600 if test -z "$postdeps_CXX"; then
11601 postdeps_CXX="${prev}${p}"
11602 else
11603 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11604 fi
11605 fi
11606 ;;
11607
11608 *.$objext)
11609 # This assumes that the test object file only shows up
11610 # once in the compiler output.
11611 if test "$p" = "conftest.$objext"; then
11612 pre_test_object_deps_done=yes
11613 continue
11614 fi
11615
11616 if test "$pre_test_object_deps_done" = no; then
11617 if test -z "$predep_objects_CXX"; then
11618 predep_objects_CXX="$p"
11619 else
11620 predep_objects_CXX="$predep_objects_CXX $p"
11621 fi
11622 else
11623 if test -z "$postdep_objects_CXX"; then
11624 postdep_objects_CXX="$p"
11625 else
11626 postdep_objects_CXX="$postdep_objects_CXX $p"
11627 fi
11628 fi
11629 ;;
11630
11631 *) ;; # Ignore the rest.
11632
11633 esac
11634 done
11635
11636 # Clean up.
11637 rm -f a.out a.exe
11638 else
11639 echo "libtool.m4: error: problem compiling CXX test program"
11640 fi
11641
11642 $rm -f confest.$objext
11643
11644 compiler_lib_search_dirs_CXX=
11645 if test -n "$compiler_lib_search_path_CXX"; then
11646 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11647 fi
11648
11649 # PORTME: override above test on systems where it is broken
11650 case $host_os in
11651 interix[3-9]*)
11652 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11653 # hack all around it, let's just trust "g++" to DTRT.
11654 predep_objects_CXX=
11655 postdep_objects_CXX=
11656 postdeps_CXX=
11657 ;;
11658
11659 linux*)
11660 case `$CC -V 2>&1 | sed 5q` in
11661 *Sun\ C*)
11662 # Sun C++ 5.9
11663 #
11664 # The more standards-conforming stlport4 library is
11665 # incompatible with the Cstd library. Avoid specifying
11666 # it if it's in CXXFLAGS. Ignore libCrun as
11667 # -library=stlport4 depends on it.
11668 case " $CXX $CXXFLAGS " in
11669 *" -library=stlport4 "*)
11670 solaris_use_stlport4=yes
11671 ;;
11672 esac
11673 if test "$solaris_use_stlport4" != yes; then
11674 postdeps_CXX='-library=Cstd -library=Crun'
11675 fi
11676 ;;
11677 esac
11678 ;;
11679
11680 solaris*)
11681 case $cc_basename in
11682 CC*)
11683 # The more standards-conforming stlport4 library is
11684 # incompatible with the Cstd library. Avoid specifying
11685 # it if it's in CXXFLAGS. Ignore libCrun as
11686 # -library=stlport4 depends on it.
11687 case " $CXX $CXXFLAGS " in
11688 *" -library=stlport4 "*)
11689 solaris_use_stlport4=yes
11690 ;;
11691 esac
11692
11693 # Adding this requires a known-good setup of shared libraries for
11694 # Sun compiler versions before 5.6, else PIC objects from an old
11695 # archive will be linked into the output, leading to subtle bugs.
11696 if test "$solaris_use_stlport4" != yes; then
11697 postdeps_CXX='-library=Cstd -library=Crun'
11698 fi
11699 ;;
11700 esac
11701 ;;
11702 esac
11703
11704 case " $postdeps_CXX " in
11705 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11706 esac
11707
11708 lt_prog_compiler_wl_CXX=
11709 lt_prog_compiler_pic_CXX=
11710 lt_prog_compiler_static_CXX=
11711
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11713 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11714
11715 # C++ specific cases for pic, static, wl, etc.
11716 if test "$GXX" = yes; then
11717 lt_prog_compiler_wl_CXX='-Wl,'
11718 lt_prog_compiler_static_CXX='-static'
11719
11720 case $host_os in
11721 aix*)
11722 # All AIX code is PIC.
11723 if test "$host_cpu" = ia64; then
11724 # AIX 5 now supports IA64 processor
11725 lt_prog_compiler_static_CXX='-Bstatic'
11726 fi
11727 ;;
11728 amigaos*)
11729 # FIXME: we need at least 68020 code to build shared libraries, but
11730 # adding the `-m68020' flag to GCC prevents building anything better,
11731 # like `-m68040'.
11732 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11733 ;;
11734 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11735 # PIC is the default for these OSes.
11736 ;;
11737 mingw* | cygwin* | os2* | pw32*)
11738 # This hack is so that the source file can tell whether it is being
11739 # built for inclusion in a dll (and should export symbols for example).
11740 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11741 # (--disable-auto-import) libraries
11742 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11743 ;;
11744 darwin* | rhapsody*)
11745 # PIC is the default on this platform
11746 # Common symbols not allowed in MH_DYLIB files
11747 lt_prog_compiler_pic_CXX='-fno-common'
11748 ;;
11749 *djgpp*)
11750 # DJGPP does not support shared libraries at all
11751 lt_prog_compiler_pic_CXX=
11752 ;;
11753 interix[3-9]*)
11754 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11755 # Instead, we relocate shared libraries at runtime.
11756 ;;
11757 sysv4*MP*)
11758 if test -d /usr/nec; then
11759 lt_prog_compiler_pic_CXX=-Kconform_pic
11760 fi
11761 ;;
11762 hpux*)
11763 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11764 # not for PA HP-UX.
11765 case $host_cpu in
11766 hppa*64*|ia64*)
11767 ;;
11768 *)
11769 lt_prog_compiler_pic_CXX='-fPIC'
11770 ;;
11771 esac
11772 ;;
11773 *)
11774 lt_prog_compiler_pic_CXX='-fPIC'
11775 ;;
11776 esac
11777 else
11778 case $host_os in
11779 aix[4-9]*)
11780 # All AIX code is PIC.
11781 if test "$host_cpu" = ia64; then
11782 # AIX 5 now supports IA64 processor
11783 lt_prog_compiler_static_CXX='-Bstatic'
11784 else
11785 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11786 fi
11787 ;;
11788 chorus*)
11789 case $cc_basename in
11790 cxch68*)
11791 # Green Hills C++ Compiler
11792 # _LT_AC_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"
11793 ;;
11794 esac
11795 ;;
11796 darwin*)
11797 # PIC is the default on this platform
11798 # Common symbols not allowed in MH_DYLIB files
11799 case $cc_basename in
11800 xlc*)
11801 lt_prog_compiler_pic_CXX='-qnocommon'
11802 lt_prog_compiler_wl_CXX='-Wl,'
11803 ;;
11804 esac
11805 ;;
11806 dgux*)
11807 case $cc_basename in
11808 ec++*)
11809 lt_prog_compiler_pic_CXX='-KPIC'
11810 ;;
11811 ghcx*)
11812 # Green Hills C++ Compiler
11813 lt_prog_compiler_pic_CXX='-pic'
11814 ;;
11815 *)
11816 ;;
11817 esac
11818 ;;
11819 freebsd* | dragonfly*)
11820 # FreeBSD uses GNU C++
11821 ;;
11822 hpux9* | hpux10* | hpux11*)
11823 case $cc_basename in
11824 CC*)
11825 lt_prog_compiler_wl_CXX='-Wl,'
11826 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11827 if test "$host_cpu" != ia64; then
11828 lt_prog_compiler_pic_CXX='+Z'
11829 fi
11830 ;;
11831 aCC*)
11832 lt_prog_compiler_wl_CXX='-Wl,'
11833 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11834 case $host_cpu in
11835 hppa*64*|ia64*)
11836 # +Z the default
11837 ;;
11838 *)
11839 lt_prog_compiler_pic_CXX='+Z'
11840 ;;
11841 esac
11842 ;;
11843 *)
11844 ;;
11845 esac
11846 ;;
11847 interix*)
11848 # This is c89, which is MS Visual C++ (no shared libs)
11849 # Anyone wants to do a port?
11850 ;;
11851 irix5* | irix6* | nonstopux*)
11852 case $cc_basename in
11853 CC*)
11854 lt_prog_compiler_wl_CXX='-Wl,'
11855 lt_prog_compiler_static_CXX='-non_shared'
11856 # CC pic flag -KPIC is the default.
11857 ;;
11858 *)
11859 ;;
11860 esac
11861 ;;
11862 linux* | k*bsd*-gnu)
11863 case $cc_basename in
11864 KCC*)
11865 # KAI C++ Compiler
11866 lt_prog_compiler_wl_CXX='--backend -Wl,'
11867 lt_prog_compiler_pic_CXX='-fPIC'
11868 ;;
11869 icpc* | ecpc*)
11870 # Intel C++
11871 lt_prog_compiler_wl_CXX='-Wl,'
11872 lt_prog_compiler_pic_CXX='-KPIC'
11873 lt_prog_compiler_static_CXX='-static'
11874 ;;
11875 pgCC* | pgcpp*)
11876 # Portland Group C++ compiler.
11877 lt_prog_compiler_wl_CXX='-Wl,'
11878 lt_prog_compiler_pic_CXX='-fpic'
11879 lt_prog_compiler_static_CXX='-Bstatic'
11880 ;;
11881 cxx*)
11882 # Compaq C++
11883 # Make sure the PIC flag is empty. It appears that all Alpha
11884 # Linux and Compaq Tru64 Unix objects are PIC.
11885 lt_prog_compiler_pic_CXX=
11886 lt_prog_compiler_static_CXX='-non_shared'
11887 ;;
11888 *)
11889 case `$CC -V 2>&1 | sed 5q` in
11890 *Sun\ C*)
11891 # Sun C++ 5.9
11892 lt_prog_compiler_pic_CXX='-KPIC'
11893 lt_prog_compiler_static_CXX='-Bstatic'
11894 lt_prog_compiler_wl_CXX='-Qoption ld '
11895 ;;
11896 esac
11897 ;;
11898 esac
11899 ;;
11900 lynxos*)
11901 ;;
11902 m88k*)
11903 ;;
11904 mvs*)
11905 case $cc_basename in
11906 cxx*)
11907 lt_prog_compiler_pic_CXX='-W c,exportall'
11908 ;;
11909 *)
11910 ;;
11911 esac
11912 ;;
11913 netbsd* | netbsdelf*-gnu)
11914 ;;
11915 osf3* | osf4* | osf5*)
11916 case $cc_basename in
11917 KCC*)
11918 lt_prog_compiler_wl_CXX='--backend -Wl,'
11919 ;;
11920 RCC*)
11921 # Rational C++ 2.4.1
11922 lt_prog_compiler_pic_CXX='-pic'
11923 ;;
11924 cxx*)
11925 # Digital/Compaq C++
11926 lt_prog_compiler_wl_CXX='-Wl,'
11927 # Make sure the PIC flag is empty. It appears that all Alpha
11928 # Linux and Compaq Tru64 Unix objects are PIC.
11929 lt_prog_compiler_pic_CXX=
11930 lt_prog_compiler_static_CXX='-non_shared'
11931 ;;
11932 *)
11933 ;;
11934 esac
11935 ;;
11936 psos*)
11937 ;;
11938 solaris*)
11939 case $cc_basename in
11940 CC*)
11941 # Sun C++ 4.2, 5.x and Centerline C++
11942 lt_prog_compiler_pic_CXX='-KPIC'
11943 lt_prog_compiler_static_CXX='-Bstatic'
11944 lt_prog_compiler_wl_CXX='-Qoption ld '
11945 ;;
11946 gcx*)
11947 # Green Hills C++ Compiler
11948 lt_prog_compiler_pic_CXX='-PIC'
11949 ;;
11950 *)
11951 ;;
11952 esac
11953 ;;
11954 sunos4*)
11955 case $cc_basename in
11956 CC*)
11957 # Sun C++ 4.x
11958 lt_prog_compiler_pic_CXX='-pic'
11959 lt_prog_compiler_static_CXX='-Bstatic'
11960 ;;
11961 lcc*)
11962 # Lucid
11963 lt_prog_compiler_pic_CXX='-pic'
11964 ;;
11965 *)
11966 ;;
11967 esac
11968 ;;
11969 tandem*)
11970 case $cc_basename in
11971 NCC*)
11972 # NonStop-UX NCC 3.20
11973 lt_prog_compiler_pic_CXX='-KPIC'
11974 ;;
11975 *)
11976 ;;
11977 esac
11978 ;;
11979 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11980 case $cc_basename in
11981 CC*)
11982 lt_prog_compiler_wl_CXX='-Wl,'
11983 lt_prog_compiler_pic_CXX='-KPIC'
11984 lt_prog_compiler_static_CXX='-Bstatic'
11985 ;;
11986 esac
11987 ;;
11988 vxworks*)
11989 ;;
11990 *)
11991 lt_prog_compiler_can_build_shared_CXX=no
11992 ;;
11993 esac
11994 fi
11995
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
11997 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
11998
11999 #
12000 # Check to make sure the PIC flag actually works.
12001 #
12002 if test -n "$lt_prog_compiler_pic_CXX"; then
12003
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12005 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12006 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
12007 $as_echo_n "(cached) " >&6
12008 else
12009 lt_cv_prog_compiler_pic_works_CXX=no
12010 ac_outfile=conftest.$ac_objext
12011 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12012 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12013 # Insert the option either (1) after the last *FLAGS variable, or
12014 # (2) before a word containing "conftest.", or (3) at the end.
12015 # Note that $ac_compile itself does not contain backslashes and begins
12016 # with a dollar sign (not a hyphen), so the echo should work correctly.
12017 # The option is referenced via a variable to avoid confusing sed.
12018 lt_compile=`echo "$ac_compile" | $SED \
12019 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12020 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12021 -e 's:$: $lt_compiler_flag:'`
12022 (eval echo "\"\$as_me:12022: $lt_compile\"" >&5)
12023 (eval "$lt_compile" 2>conftest.err)
12024 ac_status=$?
12025 cat conftest.err >&5
12026 echo "$as_me:12026: \$? = $ac_status" >&5
12027 if (exit $ac_status) && test -s "$ac_outfile"; then
12028 # The compiler can only warn and ignore the option if not recognized
12029 # So say no if there are warnings other than the usual output.
12030 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12032 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12033 lt_cv_prog_compiler_pic_works_CXX=yes
12034 fi
12035 fi
12036 $rm conftest*
12037
12038 fi
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12040 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12041
12042 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12043 case $lt_prog_compiler_pic_CXX in
12044 "" | " "*) ;;
12045 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12046 esac
12047 else
12048 lt_prog_compiler_pic_CXX=
12049 lt_prog_compiler_can_build_shared_CXX=no
12050 fi
12051
12052 fi
12053 case $host_os in
12054 # For platforms which do not support PIC, -DPIC is meaningless:
12055 *djgpp*)
12056 lt_prog_compiler_pic_CXX=
12057 ;;
12058 *)
12059 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12060 ;;
12061 esac
12062
12063 #
12064 # Check to make sure the static flag actually works.
12065 #
12066 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12068 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12069 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
12070 $as_echo_n "(cached) " >&6
12071 else
12072 lt_cv_prog_compiler_static_works_CXX=no
12073 save_LDFLAGS="$LDFLAGS"
12074 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12075 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12076 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12077 # The linker can only warn and ignore the option if not recognized
12078 # So say no if there are warnings
12079 if test -s conftest.err; then
12080 # Append any errors to the config.log.
12081 cat conftest.err 1>&5
12082 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12084 if diff conftest.exp conftest.er2 >/dev/null; then
12085 lt_cv_prog_compiler_static_works_CXX=yes
12086 fi
12087 else
12088 lt_cv_prog_compiler_static_works_CXX=yes
12089 fi
12090 fi
12091 $rm -r conftest*
12092 LDFLAGS="$save_LDFLAGS"
12093
12094 fi
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12096 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12097
12098 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12099 :
12100 else
12101 lt_prog_compiler_static_CXX=
12102 fi
12103
12104
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12106 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12107 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12108 $as_echo_n "(cached) " >&6
12109 else
12110 lt_cv_prog_compiler_c_o_CXX=no
12111 $rm -r conftest 2>/dev/null
12112 mkdir conftest
12113 cd conftest
12114 mkdir out
12115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12116
12117 lt_compiler_flag="-o out/conftest2.$ac_objext"
12118 # Insert the option either (1) after the last *FLAGS variable, or
12119 # (2) before a word containing "conftest.", or (3) at the end.
12120 # Note that $ac_compile itself does not contain backslashes and begins
12121 # with a dollar sign (not a hyphen), so the echo should work correctly.
12122 lt_compile=`echo "$ac_compile" | $SED \
12123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12125 -e 's:$: $lt_compiler_flag:'`
12126 (eval echo "\"\$as_me:12126: $lt_compile\"" >&5)
12127 (eval "$lt_compile" 2>out/conftest.err)
12128 ac_status=$?
12129 cat out/conftest.err >&5
12130 echo "$as_me:12130: \$? = $ac_status" >&5
12131 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12132 then
12133 # The compiler can only warn and ignore the option if not recognized
12134 # So say no if there are warnings
12135 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12136 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12137 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12138 lt_cv_prog_compiler_c_o_CXX=yes
12139 fi
12140 fi
12141 chmod u+w . 2>&5
12142 $rm conftest*
12143 # SGI C++ compiler will create directory out/ii_files/ for
12144 # template instantiation
12145 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12146 $rm out/* && rmdir out
12147 cd ..
12148 rmdir conftest
12149 $rm conftest*
12150
12151 fi
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12153 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12154
12155
12156 hard_links="nottested"
12157 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12158 # do not overwrite the value of need_locks provided by the user
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12160 $as_echo_n "checking if we can lock with hard links... " >&6; }
12161 hard_links=yes
12162 $rm conftest*
12163 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12164 touch conftest.a
12165 ln conftest.a conftest.b 2>&5 || hard_links=no
12166 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12168 $as_echo "$hard_links" >&6; }
12169 if test "$hard_links" = no; then
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12171 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12172 need_locks=warn
12173 fi
12174 else
12175 need_locks=no
12176 fi
12177
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12179 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12180
12181 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12182 case $host_os in
12183 aix[4-9]*)
12184 # If we're using GNU nm, then we don't want the "-C" option.
12185 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12186 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12187 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12188 else
12189 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12190 fi
12191 ;;
12192 pw32*)
12193 export_symbols_cmds_CXX="$ltdll_cmds"
12194 ;;
12195 cygwin* | mingw*)
12196 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12197 ;;
12198 linux* | k*bsd*-gnu)
12199 link_all_deplibs_CXX=no
12200 ;;
12201 *)
12202 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12203 ;;
12204 esac
12205 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12206
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12208 $as_echo "$ld_shlibs_CXX" >&6; }
12209 test "$ld_shlibs_CXX" = no && can_build_shared=no
12210
12211 #
12212 # Do we need to explicitly link libc?
12213 #
12214 case "x$archive_cmds_need_lc_CXX" in
12215 x|xyes)
12216 # Assume -lc should be added
12217 archive_cmds_need_lc_CXX=yes
12218
12219 if test "$enable_shared" = yes && test "$GCC" = yes; then
12220 case $archive_cmds_CXX in
12221 *'~'*)
12222 # FIXME: we may have to deal with multi-command sequences.
12223 ;;
12224 '$CC '*)
12225 # Test whether the compiler implicitly links with -lc since on some
12226 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12227 # to ld, don't add -lc before -lgcc.
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12229 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12230 $rm conftest*
12231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12232
12233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12234 (eval $ac_compile) 2>&5
12235 ac_status=$?
12236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12237 test $ac_status = 0; } 2>conftest.err; then
12238 soname=conftest
12239 lib=conftest
12240 libobjs=conftest.$ac_objext
12241 deplibs=
12242 wl=$lt_prog_compiler_wl_CXX
12243 pic_flag=$lt_prog_compiler_pic_CXX
12244 compiler_flags=-v
12245 linker_flags=-v
12246 verstring=
12247 output_objdir=.
12248 libname=conftest
12249 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12250 allow_undefined_flag_CXX=
12251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12252 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12253 ac_status=$?
12254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12255 test $ac_status = 0; }
12256 then
12257 archive_cmds_need_lc_CXX=no
12258 else
12259 archive_cmds_need_lc_CXX=yes
12260 fi
12261 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12262 else
12263 cat conftest.err 1>&5
12264 fi
12265 $rm conftest*
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12267 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12268 ;;
12269 esac
12270 fi
12271 ;;
12272 esac
12273
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12275 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12276 library_names_spec=
12277 libname_spec='lib$name'
12278 soname_spec=
12279 shrext_cmds=".so"
12280 postinstall_cmds=
12281 postuninstall_cmds=
12282 finish_cmds=
12283 finish_eval=
12284 shlibpath_var=
12285 shlibpath_overrides_runpath=unknown
12286 version_type=none
12287 dynamic_linker="$host_os ld.so"
12288 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12289
12290 need_lib_prefix=unknown
12291 hardcode_into_libs=no
12292
12293 # when you set need_version to no, make sure it does not cause -set_version
12294 # flags to be left without arguments
12295 need_version=unknown
12296
12297 case $host_os in
12298 aix3*)
12299 version_type=linux
12300 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12301 shlibpath_var=LIBPATH
12302
12303 # AIX 3 has no versioning support, so we append a major version to the name.
12304 soname_spec='${libname}${release}${shared_ext}$major'
12305 ;;
12306
12307 aix[4-9]*)
12308 version_type=linux
12309 need_lib_prefix=no
12310 need_version=no
12311 hardcode_into_libs=yes
12312 if test "$host_cpu" = ia64; then
12313 # AIX 5 supports IA64
12314 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12315 shlibpath_var=LD_LIBRARY_PATH
12316 else
12317 # With GCC up to 2.95.x, collect2 would create an import file
12318 # for dependence libraries. The import file would start with
12319 # the line `#! .'. This would cause the generated library to
12320 # depend on `.', always an invalid library. This was fixed in
12321 # development snapshots of GCC prior to 3.0.
12322 case $host_os in
12323 aix4 | aix4.[01] | aix4.[01].*)
12324 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12325 echo ' yes '
12326 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12327 :
12328 else
12329 can_build_shared=no
12330 fi
12331 ;;
12332 esac
12333 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12334 # soname into executable. Probably we can add versioning support to
12335 # collect2, so additional links can be useful in future.
12336 if test "$aix_use_runtimelinking" = yes; then
12337 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12338 # instead of lib<name>.a to let people know that these are not
12339 # typical AIX shared libraries.
12340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12341 else
12342 # We preserve .a as extension for shared libraries through AIX4.2
12343 # and later when we are not doing run time linking.
12344 library_names_spec='${libname}${release}.a $libname.a'
12345 soname_spec='${libname}${release}${shared_ext}$major'
12346 fi
12347 shlibpath_var=LIBPATH
12348 fi
12349 ;;
12350
12351 amigaos*)
12352 library_names_spec='$libname.ixlibrary $libname.a'
12353 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12354 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12355 ;;
12356
12357 beos*)
12358 library_names_spec='${libname}${shared_ext}'
12359 dynamic_linker="$host_os ld.so"
12360 shlibpath_var=LIBRARY_PATH
12361 ;;
12362
12363 bsdi[45]*)
12364 version_type=linux
12365 need_version=no
12366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12367 soname_spec='${libname}${release}${shared_ext}$major'
12368 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12369 shlibpath_var=LD_LIBRARY_PATH
12370 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12371 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12372 # the default ld.so.conf also contains /usr/contrib/lib and
12373 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12374 # libtool to hard-code these into programs
12375 ;;
12376
12377 cygwin* | mingw* | pw32*)
12378 version_type=windows
12379 shrext_cmds=".dll"
12380 need_version=no
12381 need_lib_prefix=no
12382
12383 case $GCC,$host_os in
12384 yes,cygwin* | yes,mingw* | yes,pw32*)
12385 library_names_spec='$libname.dll.a'
12386 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12387 postinstall_cmds='base_file=`basename \${file}`~
12388 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12389 dldir=$destdir/`dirname \$dlpath`~
12390 test -d \$dldir || mkdir -p \$dldir~
12391 $install_prog $dir/$dlname \$dldir/$dlname~
12392 chmod a+x \$dldir/$dlname'
12393 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12394 dlpath=$dir/\$dldll~
12395 $rm \$dlpath'
12396 shlibpath_overrides_runpath=yes
12397
12398 case $host_os in
12399 cygwin*)
12400 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12401 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12402 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12403 ;;
12404 mingw*)
12405 # MinGW DLLs use traditional 'lib' prefix
12406 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12407 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12408 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12409 # It is most probably a Windows format PATH printed by
12410 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12411 # path with ; separators, and with drive letters. We can handle the
12412 # drive letters (cygwin fileutils understands them), so leave them,
12413 # especially as we might pass files found there to a mingw objdump,
12414 # which wouldn't understand a cygwinified path. Ahh.
12415 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12416 else
12417 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12418 fi
12419 ;;
12420 pw32*)
12421 # pw32 DLLs use 'pw' prefix rather than 'lib'
12422 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12423 ;;
12424 esac
12425 ;;
12426
12427 *)
12428 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12429 ;;
12430 esac
12431 dynamic_linker='Win32 ld.exe'
12432 # FIXME: first we should search . and the directory the executable is in
12433 shlibpath_var=PATH
12434 ;;
12435
12436 darwin* | rhapsody*)
12437 dynamic_linker="$host_os dyld"
12438 version_type=darwin
12439 need_lib_prefix=no
12440 need_version=no
12441 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12442 soname_spec='${libname}${release}${major}$shared_ext'
12443 shlibpath_overrides_runpath=yes
12444 shlibpath_var=DYLD_LIBRARY_PATH
12445 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12446
12447 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12448 ;;
12449
12450 dgux*)
12451 version_type=linux
12452 need_lib_prefix=no
12453 need_version=no
12454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12455 soname_spec='${libname}${release}${shared_ext}$major'
12456 shlibpath_var=LD_LIBRARY_PATH
12457 ;;
12458
12459 freebsd1*)
12460 dynamic_linker=no
12461 ;;
12462
12463 freebsd* | dragonfly*)
12464 # DragonFly does not have aout. When/if they implement a new
12465 # versioning mechanism, adjust this.
12466 if test -x /usr/bin/objformat; then
12467 objformat=`/usr/bin/objformat`
12468 else
12469 case $host_os in
12470 freebsd[123]*) objformat=aout ;;
12471 *) objformat=elf ;;
12472 esac
12473 fi
12474 version_type=freebsd-$objformat
12475 case $version_type in
12476 freebsd-elf*)
12477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12478 need_version=no
12479 need_lib_prefix=no
12480 ;;
12481 freebsd-*)
12482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12483 need_version=yes
12484 ;;
12485 esac
12486 shlibpath_var=LD_LIBRARY_PATH
12487 case $host_os in
12488 freebsd2*)
12489 shlibpath_overrides_runpath=yes
12490 ;;
12491 freebsd3.[01]* | freebsdelf3.[01]*)
12492 shlibpath_overrides_runpath=yes
12493 hardcode_into_libs=yes
12494 ;;
12495 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12496 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12497 shlibpath_overrides_runpath=no
12498 hardcode_into_libs=yes
12499 ;;
12500 *) # from 4.6 on, and DragonFly
12501 shlibpath_overrides_runpath=yes
12502 hardcode_into_libs=yes
12503 ;;
12504 esac
12505 ;;
12506
12507 gnu*)
12508 version_type=linux
12509 need_lib_prefix=no
12510 need_version=no
12511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12512 soname_spec='${libname}${release}${shared_ext}$major'
12513 shlibpath_var=LD_LIBRARY_PATH
12514 hardcode_into_libs=yes
12515 ;;
12516
12517 hpux9* | hpux10* | hpux11*)
12518 # Give a soname corresponding to the major version so that dld.sl refuses to
12519 # link against other versions.
12520 version_type=sunos
12521 need_lib_prefix=no
12522 need_version=no
12523 case $host_cpu in
12524 ia64*)
12525 shrext_cmds='.so'
12526 hardcode_into_libs=yes
12527 dynamic_linker="$host_os dld.so"
12528 shlibpath_var=LD_LIBRARY_PATH
12529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12531 soname_spec='${libname}${release}${shared_ext}$major'
12532 if test "X$HPUX_IA64_MODE" = X32; then
12533 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12534 else
12535 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12536 fi
12537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12538 ;;
12539 hppa*64*)
12540 shrext_cmds='.sl'
12541 hardcode_into_libs=yes
12542 dynamic_linker="$host_os dld.sl"
12543 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12546 soname_spec='${libname}${release}${shared_ext}$major'
12547 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12549 ;;
12550 *)
12551 shrext_cmds='.sl'
12552 dynamic_linker="$host_os dld.sl"
12553 shlibpath_var=SHLIB_PATH
12554 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12556 soname_spec='${libname}${release}${shared_ext}$major'
12557 ;;
12558 esac
12559 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12560 postinstall_cmds='chmod 555 $lib'
12561 ;;
12562
12563 interix[3-9]*)
12564 version_type=linux
12565 need_lib_prefix=no
12566 need_version=no
12567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12568 soname_spec='${libname}${release}${shared_ext}$major'
12569 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12570 shlibpath_var=LD_LIBRARY_PATH
12571 shlibpath_overrides_runpath=no
12572 hardcode_into_libs=yes
12573 ;;
12574
12575 irix5* | irix6* | nonstopux*)
12576 case $host_os in
12577 nonstopux*) version_type=nonstopux ;;
12578 *)
12579 if test "$lt_cv_prog_gnu_ld" = yes; then
12580 version_type=linux
12581 else
12582 version_type=irix
12583 fi ;;
12584 esac
12585 need_lib_prefix=no
12586 need_version=no
12587 soname_spec='${libname}${release}${shared_ext}$major'
12588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12589 case $host_os in
12590 irix5* | nonstopux*)
12591 libsuff= shlibsuff=
12592 ;;
12593 *)
12594 case $LD in # libtool.m4 will add one of these switches to LD
12595 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12596 libsuff= shlibsuff= libmagic=32-bit;;
12597 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12598 libsuff=32 shlibsuff=N32 libmagic=N32;;
12599 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12600 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12601 *) libsuff= shlibsuff= libmagic=never-match;;
12602 esac
12603 ;;
12604 esac
12605 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12606 shlibpath_overrides_runpath=no
12607 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12608 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12609 hardcode_into_libs=yes
12610 ;;
12611
12612 # No shared lib support for Linux oldld, aout, or coff.
12613 linux*oldld* | linux*aout* | linux*coff*)
12614 dynamic_linker=no
12615 ;;
12616
12617 # This must be Linux ELF.
12618 linux* | k*bsd*-gnu)
12619 version_type=linux
12620 need_lib_prefix=no
12621 need_version=no
12622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12623 soname_spec='${libname}${release}${shared_ext}$major'
12624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12625 shlibpath_var=LD_LIBRARY_PATH
12626 shlibpath_overrides_runpath=no
12627 # This implies no fast_install, which is unacceptable.
12628 # Some rework will be needed to allow for fast_install
12629 # before this can be enabled.
12630 hardcode_into_libs=yes
12631
12632 # Append ld.so.conf contents to the search path
12633 if test -f /etc/ld.so.conf; then
12634 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;/^$/d' | tr '\n' ' '`
12635 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12636 fi
12637
12638 # We used to test for /lib/ld.so.1 and disable shared libraries on
12639 # powerpc, because MkLinux only supported shared libraries with the
12640 # GNU dynamic linker. Since this was broken with cross compilers,
12641 # most powerpc-linux boxes support dynamic linking these days and
12642 # people can always --disable-shared, the test was removed, and we
12643 # assume the GNU/Linux dynamic linker is in use.
12644 dynamic_linker='GNU/Linux ld.so'
12645 ;;
12646
12647 netbsdelf*-gnu)
12648 version_type=linux
12649 need_lib_prefix=no
12650 need_version=no
12651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12652 soname_spec='${libname}${release}${shared_ext}$major'
12653 shlibpath_var=LD_LIBRARY_PATH
12654 shlibpath_overrides_runpath=no
12655 hardcode_into_libs=yes
12656 dynamic_linker='NetBSD ld.elf_so'
12657 ;;
12658
12659 netbsd*)
12660 version_type=sunos
12661 need_lib_prefix=no
12662 need_version=no
12663 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12666 dynamic_linker='NetBSD (a.out) ld.so'
12667 else
12668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12669 soname_spec='${libname}${release}${shared_ext}$major'
12670 dynamic_linker='NetBSD ld.elf_so'
12671 fi
12672 shlibpath_var=LD_LIBRARY_PATH
12673 shlibpath_overrides_runpath=yes
12674 hardcode_into_libs=yes
12675 ;;
12676
12677 newsos6)
12678 version_type=linux
12679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12680 shlibpath_var=LD_LIBRARY_PATH
12681 shlibpath_overrides_runpath=yes
12682 ;;
12683
12684 nto-qnx*)
12685 version_type=linux
12686 need_lib_prefix=no
12687 need_version=no
12688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12689 soname_spec='${libname}${release}${shared_ext}$major'
12690 shlibpath_var=LD_LIBRARY_PATH
12691 shlibpath_overrides_runpath=yes
12692 ;;
12693
12694 openbsd*)
12695 version_type=sunos
12696 sys_lib_dlsearch_path_spec="/usr/lib"
12697 need_lib_prefix=no
12698 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12699 case $host_os in
12700 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12701 *) need_version=no ;;
12702 esac
12703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12705 shlibpath_var=LD_LIBRARY_PATH
12706 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12707 case $host_os in
12708 openbsd2.[89] | openbsd2.[89].*)
12709 shlibpath_overrides_runpath=no
12710 ;;
12711 *)
12712 shlibpath_overrides_runpath=yes
12713 ;;
12714 esac
12715 else
12716 shlibpath_overrides_runpath=yes
12717 fi
12718 ;;
12719
12720 os2*)
12721 libname_spec='$name'
12722 shrext_cmds=".dll"
12723 need_lib_prefix=no
12724 library_names_spec='$libname${shared_ext} $libname.a'
12725 dynamic_linker='OS/2 ld.exe'
12726 shlibpath_var=LIBPATH
12727 ;;
12728
12729 osf3* | osf4* | osf5*)
12730 version_type=osf
12731 need_lib_prefix=no
12732 need_version=no
12733 soname_spec='${libname}${release}${shared_ext}$major'
12734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12735 shlibpath_var=LD_LIBRARY_PATH
12736 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12737 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12738 ;;
12739
12740 rdos*)
12741 dynamic_linker=no
12742 ;;
12743
12744 solaris*)
12745 version_type=linux
12746 need_lib_prefix=no
12747 need_version=no
12748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12749 soname_spec='${libname}${release}${shared_ext}$major'
12750 shlibpath_var=LD_LIBRARY_PATH
12751 shlibpath_overrides_runpath=yes
12752 hardcode_into_libs=yes
12753 # ldd complains unless libraries are executable
12754 postinstall_cmds='chmod +x $lib'
12755 ;;
12756
12757 sunos4*)
12758 version_type=sunos
12759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12760 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12761 shlibpath_var=LD_LIBRARY_PATH
12762 shlibpath_overrides_runpath=yes
12763 if test "$with_gnu_ld" = yes; then
12764 need_lib_prefix=no
12765 fi
12766 need_version=yes
12767 ;;
12768
12769 sysv4 | sysv4.3*)
12770 version_type=linux
12771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12772 soname_spec='${libname}${release}${shared_ext}$major'
12773 shlibpath_var=LD_LIBRARY_PATH
12774 case $host_vendor in
12775 sni)
12776 shlibpath_overrides_runpath=no
12777 need_lib_prefix=no
12778 export_dynamic_flag_spec='${wl}-Blargedynsym'
12779 runpath_var=LD_RUN_PATH
12780 ;;
12781 siemens)
12782 need_lib_prefix=no
12783 ;;
12784 motorola)
12785 need_lib_prefix=no
12786 need_version=no
12787 shlibpath_overrides_runpath=no
12788 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12789 ;;
12790 esac
12791 ;;
12792
12793 sysv4*MP*)
12794 if test -d /usr/nec ;then
12795 version_type=linux
12796 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12797 soname_spec='$libname${shared_ext}.$major'
12798 shlibpath_var=LD_LIBRARY_PATH
12799 fi
12800 ;;
12801
12802 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12803 version_type=freebsd-elf
12804 need_lib_prefix=no
12805 need_version=no
12806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12807 soname_spec='${libname}${release}${shared_ext}$major'
12808 shlibpath_var=LD_LIBRARY_PATH
12809 hardcode_into_libs=yes
12810 if test "$with_gnu_ld" = yes; then
12811 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12812 shlibpath_overrides_runpath=no
12813 else
12814 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12815 shlibpath_overrides_runpath=yes
12816 case $host_os in
12817 sco3.2v5*)
12818 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12819 ;;
12820 esac
12821 fi
12822 sys_lib_dlsearch_path_spec='/usr/lib'
12823 ;;
12824
12825 uts4*)
12826 version_type=linux
12827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12828 soname_spec='${libname}${release}${shared_ext}$major'
12829 shlibpath_var=LD_LIBRARY_PATH
12830 ;;
12831
12832 *)
12833 dynamic_linker=no
12834 ;;
12835 esac
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12837 $as_echo "$dynamic_linker" >&6; }
12838 test "$dynamic_linker" = no && can_build_shared=no
12839
12840 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
12841 $as_echo_n "(cached) " >&6
12842 else
12843 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
12844 fi
12845
12846 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12847 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
12848 $as_echo_n "(cached) " >&6
12849 else
12850 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
12851 fi
12852
12853 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12854
12855 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12856 if test "$GCC" = yes; then
12857 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12858 fi
12859
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12861 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12862 hardcode_action_CXX=
12863 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12864 test -n "$runpath_var_CXX" || \
12865 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12866
12867 # We can hardcode non-existant directories.
12868 if test "$hardcode_direct_CXX" != no &&
12869 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12870 # have to relink, otherwise we might link with an installed library
12871 # when we should be linking with a yet-to-be-installed one
12872 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12873 test "$hardcode_minus_L_CXX" != no; then
12874 # Linking always hardcodes the temporary library directory.
12875 hardcode_action_CXX=relink
12876 else
12877 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12878 hardcode_action_CXX=immediate
12879 fi
12880 else
12881 # We cannot hardcode anything, or else we can only hardcode existing
12882 # directories.
12883 hardcode_action_CXX=unsupported
12884 fi
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
12886 $as_echo "$hardcode_action_CXX" >&6; }
12887
12888 if test "$hardcode_action_CXX" = relink; then
12889 # Fast installation is not supported
12890 enable_fast_install=no
12891 elif test "$shlibpath_overrides_runpath" = yes ||
12892 test "$enable_shared" = no; then
12893 # Fast installation is not necessary
12894 enable_fast_install=needless
12895 fi
12896
12897
12898 # The else clause should only fire when bootstrapping the
12899 # libtool distribution, otherwise you forgot to ship ltmain.sh
12900 # with your package, and you will get complaints that there are
12901 # no rules to generate ltmain.sh.
12902 if test -f "$ltmain"; then
12903 # See if we are running on zsh, and set the options which allow our commands through
12904 # without removal of \ escapes.
12905 if test -n "${ZSH_VERSION+set}" ; then
12906 setopt NO_GLOB_SUBST
12907 fi
12908 # Now quote all the things that may contain metacharacters while being
12909 # careful not to overquote the AC_SUBSTed values. We take copies of the
12910 # variables and quote the copies for generation of the libtool script.
12911 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12912 SED SHELL STRIP \
12913 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12914 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12915 deplibs_check_method reload_flag reload_cmds need_locks \
12916 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12917 lt_cv_sys_global_symbol_to_c_name_address \
12918 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12919 old_postinstall_cmds old_postuninstall_cmds \
12920 compiler_CXX \
12921 CC_CXX \
12922 LD_CXX \
12923 lt_prog_compiler_wl_CXX \
12924 lt_prog_compiler_pic_CXX \
12925 lt_prog_compiler_static_CXX \
12926 lt_prog_compiler_no_builtin_flag_CXX \
12927 export_dynamic_flag_spec_CXX \
12928 thread_safe_flag_spec_CXX \
12929 whole_archive_flag_spec_CXX \
12930 enable_shared_with_static_runtimes_CXX \
12931 old_archive_cmds_CXX \
12932 old_archive_from_new_cmds_CXX \
12933 predep_objects_CXX \
12934 postdep_objects_CXX \
12935 predeps_CXX \
12936 postdeps_CXX \
12937 compiler_lib_search_path_CXX \
12938 compiler_lib_search_dirs_CXX \
12939 archive_cmds_CXX \
12940 archive_expsym_cmds_CXX \
12941 postinstall_cmds_CXX \
12942 postuninstall_cmds_CXX \
12943 old_archive_from_expsyms_cmds_CXX \
12944 allow_undefined_flag_CXX \
12945 no_undefined_flag_CXX \
12946 export_symbols_cmds_CXX \
12947 hardcode_libdir_flag_spec_CXX \
12948 hardcode_libdir_flag_spec_ld_CXX \
12949 hardcode_libdir_separator_CXX \
12950 hardcode_automatic_CXX \
12951 module_cmds_CXX \
12952 module_expsym_cmds_CXX \
12953 lt_cv_prog_compiler_c_o_CXX \
12954 fix_srcfile_path_CXX \
12955 exclude_expsyms_CXX \
12956 include_expsyms_CXX; do
12957
12958 case $var in
12959 old_archive_cmds_CXX | \
12960 old_archive_from_new_cmds_CXX | \
12961 archive_cmds_CXX | \
12962 archive_expsym_cmds_CXX | \
12963 module_cmds_CXX | \
12964 module_expsym_cmds_CXX | \
12965 old_archive_from_expsyms_cmds_CXX | \
12966 export_symbols_cmds_CXX | \
12967 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12968 postinstall_cmds | postuninstall_cmds | \
12969 old_postinstall_cmds | old_postuninstall_cmds | \
12970 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12971 # Double-quote double-evaled strings.
12972 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12973 ;;
12974 *)
12975 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12976 ;;
12977 esac
12978 done
12979
12980 case $lt_echo in
12981 *'\$0 --fallback-echo"')
12982 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12983 ;;
12984 esac
12985
12986 cfgfile="$ofile"
12987
12988 cat <<__EOF__ >> "$cfgfile"
12989 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12990
12991 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12992
12993 # Shell to use when invoking shell scripts.
12994 SHELL=$lt_SHELL
12995
12996 # Whether or not to build shared libraries.
12997 build_libtool_libs=$enable_shared
12998
12999 # Whether or not to build static libraries.
13000 build_old_libs=$enable_static
13001
13002 # Whether or not to add -lc for building shared libraries.
13003 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13004
13005 # Whether or not to disallow shared libs when runtime libs are static
13006 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13007
13008 # Whether or not to optimize for fast installation.
13009 fast_install=$enable_fast_install
13010
13011 # The host system.
13012 host_alias=$host_alias
13013 host=$host
13014 host_os=$host_os
13015
13016 # The build system.
13017 build_alias=$build_alias
13018 build=$build
13019 build_os=$build_os
13020
13021 # An echo program that does not interpret backslashes.
13022 echo=$lt_echo
13023
13024 # The archiver.
13025 AR=$lt_AR
13026 AR_FLAGS=$lt_AR_FLAGS
13027
13028 # A C compiler.
13029 LTCC=$lt_LTCC
13030
13031 # LTCC compiler flags.
13032 LTCFLAGS=$lt_LTCFLAGS
13033
13034 # A language-specific compiler.
13035 CC=$lt_compiler_CXX
13036
13037 # Is the compiler the GNU C compiler?
13038 with_gcc=$GCC_CXX
13039
13040 # An ERE matcher.
13041 EGREP=$lt_EGREP
13042
13043 # The linker used to build libraries.
13044 LD=$lt_LD_CXX
13045
13046 # Whether we need hard or soft links.
13047 LN_S=$lt_LN_S
13048
13049 # A BSD-compatible nm program.
13050 NM=$lt_NM
13051
13052 # A symbol stripping program
13053 STRIP=$lt_STRIP
13054
13055 # Used to examine libraries when file_magic_cmd begins "file"
13056 MAGIC_CMD=$MAGIC_CMD
13057
13058 # Used on cygwin: DLL creation program.
13059 DLLTOOL="$DLLTOOL"
13060
13061 # Used on cygwin: object dumper.
13062 OBJDUMP="$OBJDUMP"
13063
13064 # Used on cygwin: assembler.
13065 AS="$AS"
13066
13067 # The name of the directory that contains temporary libtool files.
13068 objdir=$objdir
13069
13070 # How to create reloadable object files.
13071 reload_flag=$lt_reload_flag
13072 reload_cmds=$lt_reload_cmds
13073
13074 # How to pass a linker flag through the compiler.
13075 wl=$lt_lt_prog_compiler_wl_CXX
13076
13077 # Object file suffix (normally "o").
13078 objext="$ac_objext"
13079
13080 # Old archive suffix (normally "a").
13081 libext="$libext"
13082
13083 # Shared library suffix (normally ".so").
13084 shrext_cmds='$shrext_cmds'
13085
13086 # Executable file suffix (normally "").
13087 exeext="$exeext"
13088
13089 # Additional compiler flags for building library objects.
13090 pic_flag=$lt_lt_prog_compiler_pic_CXX
13091 pic_mode=$pic_mode
13092
13093 # What is the maximum length of a command?
13094 max_cmd_len=$lt_cv_sys_max_cmd_len
13095
13096 # Does compiler simultaneously support -c and -o options?
13097 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13098
13099 # Must we lock files when doing compilation?
13100 need_locks=$lt_need_locks
13101
13102 # Do we need the lib prefix for modules?
13103 need_lib_prefix=$need_lib_prefix
13104
13105 # Do we need a version for libraries?
13106 need_version=$need_version
13107
13108 # Whether dlopen is supported.
13109 dlopen_support=$enable_dlopen
13110
13111 # Whether dlopen of programs is supported.
13112 dlopen_self=$enable_dlopen_self
13113
13114 # Whether dlopen of statically linked programs is supported.
13115 dlopen_self_static=$enable_dlopen_self_static
13116
13117 # Compiler flag to prevent dynamic linking.
13118 link_static_flag=$lt_lt_prog_compiler_static_CXX
13119
13120 # Compiler flag to turn off builtin functions.
13121 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13122
13123 # Compiler flag to allow reflexive dlopens.
13124 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13125
13126 # Compiler flag to generate shared objects directly from archives.
13127 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13128
13129 # Compiler flag to generate thread-safe objects.
13130 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13131
13132 # Library versioning type.
13133 version_type=$version_type
13134
13135 # Format of library name prefix.
13136 libname_spec=$lt_libname_spec
13137
13138 # List of archive names. First name is the real one, the rest are links.
13139 # The last name is the one that the linker finds with -lNAME.
13140 library_names_spec=$lt_library_names_spec
13141
13142 # The coded name of the library, if different from the real name.
13143 soname_spec=$lt_soname_spec
13144
13145 # Commands used to build and install an old-style archive.
13146 RANLIB=$lt_RANLIB
13147 old_archive_cmds=$lt_old_archive_cmds_CXX
13148 old_postinstall_cmds=$lt_old_postinstall_cmds
13149 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13150
13151 # Create an old-style archive from a shared archive.
13152 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13153
13154 # Create a temporary old-style archive to link instead of a shared archive.
13155 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13156
13157 # Commands used to build and install a shared archive.
13158 archive_cmds=$lt_archive_cmds_CXX
13159 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13160 postinstall_cmds=$lt_postinstall_cmds
13161 postuninstall_cmds=$lt_postuninstall_cmds
13162
13163 # Commands used to build a loadable module (assumed same as above if empty)
13164 module_cmds=$lt_module_cmds_CXX
13165 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13166
13167 # Commands to strip libraries.
13168 old_striplib=$lt_old_striplib
13169 striplib=$lt_striplib
13170
13171 # Dependencies to place before the objects being linked to create a
13172 # shared library.
13173 predep_objects=$lt_predep_objects_CXX
13174
13175 # Dependencies to place after the objects being linked to create a
13176 # shared library.
13177 postdep_objects=$lt_postdep_objects_CXX
13178
13179 # Dependencies to place before the objects being linked to create a
13180 # shared library.
13181 predeps=$lt_predeps_CXX
13182
13183 # Dependencies to place after the objects being linked to create a
13184 # shared library.
13185 postdeps=$lt_postdeps_CXX
13186
13187 # The directories searched by this compiler when creating a shared
13188 # library
13189 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13190
13191 # The library search path used internally by the compiler when linking
13192 # a shared library.
13193 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13194
13195 # Method to check whether dependent libraries are shared objects.
13196 deplibs_check_method=$lt_deplibs_check_method
13197
13198 # Command to use when deplibs_check_method == file_magic.
13199 file_magic_cmd=$lt_file_magic_cmd
13200
13201 # Flag that allows shared libraries with undefined symbols to be built.
13202 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13203
13204 # Flag that forces no undefined symbols.
13205 no_undefined_flag=$lt_no_undefined_flag_CXX
13206
13207 # Commands used to finish a libtool library installation in a directory.
13208 finish_cmds=$lt_finish_cmds
13209
13210 # Same as above, but a single script fragment to be evaled but not shown.
13211 finish_eval=$lt_finish_eval
13212
13213 # Take the output of nm and produce a listing of raw symbols and C names.
13214 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13215
13216 # Transform the output of nm in a proper C declaration
13217 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13218
13219 # Transform the output of nm in a C name address pair
13220 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13221
13222 # This is the shared library runtime path variable.
13223 runpath_var=$runpath_var
13224
13225 # This is the shared library path variable.
13226 shlibpath_var=$shlibpath_var
13227
13228 # Is shlibpath searched before the hard-coded library search path?
13229 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13230
13231 # How to hardcode a shared library path into an executable.
13232 hardcode_action=$hardcode_action_CXX
13233
13234 # Whether we should hardcode library paths into libraries.
13235 hardcode_into_libs=$hardcode_into_libs
13236
13237 # Flag to hardcode \$libdir into a binary during linking.
13238 # This must work even if \$libdir does not exist.
13239 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13240
13241 # If ld is used when linking, flag to hardcode \$libdir into
13242 # a binary during linking. This must work even if \$libdir does
13243 # not exist.
13244 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13245
13246 # Whether we need a single -rpath flag with a separated argument.
13247 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13248
13249 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13250 # resulting binary.
13251 hardcode_direct=$hardcode_direct_CXX
13252
13253 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13254 # resulting binary.
13255 hardcode_minus_L=$hardcode_minus_L_CXX
13256
13257 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13258 # the resulting binary.
13259 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13260
13261 # Set to yes if building a shared library automatically hardcodes DIR into the library
13262 # and all subsequent libraries and executables linked against it.
13263 hardcode_automatic=$hardcode_automatic_CXX
13264
13265 # Variables whose values should be saved in libtool wrapper scripts and
13266 # restored at relink time.
13267 variables_saved_for_relink="$variables_saved_for_relink"
13268
13269 # Whether libtool must link a program against all its dependency libraries.
13270 link_all_deplibs=$link_all_deplibs_CXX
13271
13272 # Compile-time system search path for libraries
13273 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13274
13275 # Run-time system search path for libraries
13276 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13277
13278 # Fix the shell variable \$srcfile for the compiler.
13279 fix_srcfile_path=$lt_fix_srcfile_path
13280
13281 # Set to yes if exported symbols are required.
13282 always_export_symbols=$always_export_symbols_CXX
13283
13284 # The commands to list exported symbols.
13285 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13286
13287 # The commands to extract the exported symbol list from a shared archive.
13288 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13289
13290 # Symbols that should not be listed in the preloaded symbols.
13291 exclude_expsyms=$lt_exclude_expsyms_CXX
13292
13293 # Symbols that must always be exported.
13294 include_expsyms=$lt_include_expsyms_CXX
13295
13296 # ### END LIBTOOL TAG CONFIG: $tagname
13297
13298 __EOF__
13299
13300
13301 else
13302 # If there is no Makefile yet, we rely on a make rule to execute
13303 # `config.status --recheck' to rerun these tests and create the
13304 # libtool script then.
13305 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13306 if test -f "$ltmain_in"; then
13307 test -f Makefile && make "$ltmain"
13308 fi
13309 fi
13310
13311
13312 ac_ext=c
13313 ac_cpp='$CPP $CPPFLAGS'
13314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13317
13318 CC=$lt_save_CC
13319 LDCXX=$LD
13320 LD=$lt_save_LD
13321 GCC=$lt_save_GCC
13322 with_gnu_ldcxx=$with_gnu_ld
13323 with_gnu_ld=$lt_save_with_gnu_ld
13324 lt_cv_path_LDCXX=$lt_cv_path_LD
13325 lt_cv_path_LD=$lt_save_path_LD
13326 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13327 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13328
13329 else
13330 tagname=""
13331 fi
13332 ;;
13333
13334 F77)
13335 if test -n "$F77" && test "X$F77" != "Xno"; then
13336
13337 ac_ext=f
13338 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13339 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13340 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13341
13342
13343 archive_cmds_need_lc_F77=no
13344 allow_undefined_flag_F77=
13345 always_export_symbols_F77=no
13346 archive_expsym_cmds_F77=
13347 export_dynamic_flag_spec_F77=
13348 hardcode_direct_F77=no
13349 hardcode_libdir_flag_spec_F77=
13350 hardcode_libdir_flag_spec_ld_F77=
13351 hardcode_libdir_separator_F77=
13352 hardcode_minus_L_F77=no
13353 hardcode_automatic_F77=no
13354 module_cmds_F77=
13355 module_expsym_cmds_F77=
13356 link_all_deplibs_F77=unknown
13357 old_archive_cmds_F77=$old_archive_cmds
13358 no_undefined_flag_F77=
13359 whole_archive_flag_spec_F77=
13360 enable_shared_with_static_runtimes_F77=no
13361
13362 # Source file extension for f77 test sources.
13363 ac_ext=f
13364
13365 # Object file extension for compiled f77 test sources.
13366 objext=o
13367 objext_F77=$objext
13368
13369 # Code to be used in simple compile tests
13370 lt_simple_compile_test_code="\
13371 subroutine t
13372 return
13373 end
13374 "
13375
13376 # Code to be used in simple link tests
13377 lt_simple_link_test_code="\
13378 program t
13379 end
13380 "
13381
13382 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13383
13384 # If no C compiler was specified, use CC.
13385 LTCC=${LTCC-"$CC"}
13386
13387 # If no C compiler flags were specified, use CFLAGS.
13388 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13389
13390 # Allow CC to be a program name with arguments.
13391 compiler=$CC
13392
13393
13394 # save warnings/boilerplate of simple test code
13395 ac_outfile=conftest.$ac_objext
13396 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13397 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13398 _lt_compiler_boilerplate=`cat conftest.err`
13399 $rm conftest*
13400
13401 ac_outfile=conftest.$ac_objext
13402 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13403 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13404 _lt_linker_boilerplate=`cat conftest.err`
13405 $rm -r conftest*
13406
13407
13408 # Allow CC to be a program name with arguments.
13409 lt_save_CC="$CC"
13410 CC=${F77-"f77"}
13411 compiler=$CC
13412 compiler_F77=$CC
13413 for cc_temp in $compiler""; do
13414 case $cc_temp in
13415 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13416 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13417 \-*) ;;
13418 *) break;;
13419 esac
13420 done
13421 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13422
13423
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13425 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13427 $as_echo "$can_build_shared" >&6; }
13428
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13430 $as_echo_n "checking whether to build shared libraries... " >&6; }
13431 test "$can_build_shared" = "no" && enable_shared=no
13432
13433 # On AIX, shared libraries and static libraries use the same namespace, and
13434 # are all built from PIC.
13435 case $host_os in
13436 aix3*)
13437 test "$enable_shared" = yes && enable_static=no
13438 if test -n "$RANLIB"; then
13439 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13440 postinstall_cmds='$RANLIB $lib'
13441 fi
13442 ;;
13443 aix[4-9]*)
13444 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13445 test "$enable_shared" = yes && enable_static=no
13446 fi
13447 ;;
13448 esac
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13450 $as_echo "$enable_shared" >&6; }
13451
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13453 $as_echo_n "checking whether to build static libraries... " >&6; }
13454 # Make sure either enable_shared or enable_static is yes.
13455 test "$enable_shared" = yes || enable_static=yes
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13457 $as_echo "$enable_static" >&6; }
13458
13459 GCC_F77="$G77"
13460 LD_F77="$LD"
13461
13462 lt_prog_compiler_wl_F77=
13463 lt_prog_compiler_pic_F77=
13464 lt_prog_compiler_static_F77=
13465
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13467 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13468
13469 if test "$GCC" = yes; then
13470 lt_prog_compiler_wl_F77='-Wl,'
13471 lt_prog_compiler_static_F77='-static'
13472
13473 case $host_os in
13474 aix*)
13475 # All AIX code is PIC.
13476 if test "$host_cpu" = ia64; then
13477 # AIX 5 now supports IA64 processor
13478 lt_prog_compiler_static_F77='-Bstatic'
13479 fi
13480 ;;
13481
13482 amigaos*)
13483 # FIXME: we need at least 68020 code to build shared libraries, but
13484 # adding the `-m68020' flag to GCC prevents building anything better,
13485 # like `-m68040'.
13486 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13487 ;;
13488
13489 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13490 # PIC is the default for these OSes.
13491 ;;
13492
13493 mingw* | cygwin* | pw32* | os2*)
13494 # This hack is so that the source file can tell whether it is being
13495 # built for inclusion in a dll (and should export symbols for example).
13496 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13497 # (--disable-auto-import) libraries
13498 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13499 ;;
13500
13501 darwin* | rhapsody*)
13502 # PIC is the default on this platform
13503 # Common symbols not allowed in MH_DYLIB files
13504 lt_prog_compiler_pic_F77='-fno-common'
13505 ;;
13506
13507 interix[3-9]*)
13508 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13509 # Instead, we relocate shared libraries at runtime.
13510 ;;
13511
13512 msdosdjgpp*)
13513 # Just because we use GCC doesn't mean we suddenly get shared libraries
13514 # on systems that don't support them.
13515 lt_prog_compiler_can_build_shared_F77=no
13516 enable_shared=no
13517 ;;
13518
13519 sysv4*MP*)
13520 if test -d /usr/nec; then
13521 lt_prog_compiler_pic_F77=-Kconform_pic
13522 fi
13523 ;;
13524
13525 hpux*)
13526 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13527 # not for PA HP-UX.
13528 case $host_cpu in
13529 hppa*64*|ia64*)
13530 # +Z the default
13531 ;;
13532 *)
13533 lt_prog_compiler_pic_F77='-fPIC'
13534 ;;
13535 esac
13536 ;;
13537
13538 *)
13539 lt_prog_compiler_pic_F77='-fPIC'
13540 ;;
13541 esac
13542 else
13543 # PORTME Check for flag to pass linker flags through the system compiler.
13544 case $host_os in
13545 aix*)
13546 lt_prog_compiler_wl_F77='-Wl,'
13547 if test "$host_cpu" = ia64; then
13548 # AIX 5 now supports IA64 processor
13549 lt_prog_compiler_static_F77='-Bstatic'
13550 else
13551 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13552 fi
13553 ;;
13554 darwin*)
13555 # PIC is the default on this platform
13556 # Common symbols not allowed in MH_DYLIB files
13557 case $cc_basename in
13558 xlc*)
13559 lt_prog_compiler_pic_F77='-qnocommon'
13560 lt_prog_compiler_wl_F77='-Wl,'
13561 ;;
13562 esac
13563 ;;
13564
13565 mingw* | cygwin* | pw32* | os2*)
13566 # This hack is so that the source file can tell whether it is being
13567 # built for inclusion in a dll (and should export symbols for example).
13568 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13569 ;;
13570
13571 hpux9* | hpux10* | hpux11*)
13572 lt_prog_compiler_wl_F77='-Wl,'
13573 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13574 # not for PA HP-UX.
13575 case $host_cpu in
13576 hppa*64*|ia64*)
13577 # +Z the default
13578 ;;
13579 *)
13580 lt_prog_compiler_pic_F77='+Z'
13581 ;;
13582 esac
13583 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13584 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13585 ;;
13586
13587 irix5* | irix6* | nonstopux*)
13588 lt_prog_compiler_wl_F77='-Wl,'
13589 # PIC (with -KPIC) is the default.
13590 lt_prog_compiler_static_F77='-non_shared'
13591 ;;
13592
13593 newsos6)
13594 lt_prog_compiler_pic_F77='-KPIC'
13595 lt_prog_compiler_static_F77='-Bstatic'
13596 ;;
13597
13598 linux* | k*bsd*-gnu)
13599 case $cc_basename in
13600 icc* | ecc*)
13601 lt_prog_compiler_wl_F77='-Wl,'
13602 lt_prog_compiler_pic_F77='-KPIC'
13603 lt_prog_compiler_static_F77='-static'
13604 ;;
13605 pgcc* | pgf77* | pgf90* | pgf95*)
13606 # Portland Group compilers (*not* the Pentium gcc compiler,
13607 # which looks to be a dead project)
13608 lt_prog_compiler_wl_F77='-Wl,'
13609 lt_prog_compiler_pic_F77='-fpic'
13610 lt_prog_compiler_static_F77='-Bstatic'
13611 ;;
13612 ccc*)
13613 lt_prog_compiler_wl_F77='-Wl,'
13614 # All Alpha code is PIC.
13615 lt_prog_compiler_static_F77='-non_shared'
13616 ;;
13617 *)
13618 case `$CC -V 2>&1 | sed 5q` in
13619 *Sun\ C*)
13620 # Sun C 5.9
13621 lt_prog_compiler_pic_F77='-KPIC'
13622 lt_prog_compiler_static_F77='-Bstatic'
13623 lt_prog_compiler_wl_F77='-Wl,'
13624 ;;
13625 *Sun\ F*)
13626 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13627 lt_prog_compiler_pic_F77='-KPIC'
13628 lt_prog_compiler_static_F77='-Bstatic'
13629 lt_prog_compiler_wl_F77=''
13630 ;;
13631 esac
13632 ;;
13633 esac
13634 ;;
13635
13636 osf3* | osf4* | osf5*)
13637 lt_prog_compiler_wl_F77='-Wl,'
13638 # All OSF/1 code is PIC.
13639 lt_prog_compiler_static_F77='-non_shared'
13640 ;;
13641
13642 rdos*)
13643 lt_prog_compiler_static_F77='-non_shared'
13644 ;;
13645
13646 solaris*)
13647 lt_prog_compiler_pic_F77='-KPIC'
13648 lt_prog_compiler_static_F77='-Bstatic'
13649 case $cc_basename in
13650 f77* | f90* | f95*)
13651 lt_prog_compiler_wl_F77='-Qoption ld ';;
13652 *)
13653 lt_prog_compiler_wl_F77='-Wl,';;
13654 esac
13655 ;;
13656
13657 sunos4*)
13658 lt_prog_compiler_wl_F77='-Qoption ld '
13659 lt_prog_compiler_pic_F77='-PIC'
13660 lt_prog_compiler_static_F77='-Bstatic'
13661 ;;
13662
13663 sysv4 | sysv4.2uw2* | sysv4.3*)
13664 lt_prog_compiler_wl_F77='-Wl,'
13665 lt_prog_compiler_pic_F77='-KPIC'
13666 lt_prog_compiler_static_F77='-Bstatic'
13667 ;;
13668
13669 sysv4*MP*)
13670 if test -d /usr/nec ;then
13671 lt_prog_compiler_pic_F77='-Kconform_pic'
13672 lt_prog_compiler_static_F77='-Bstatic'
13673 fi
13674 ;;
13675
13676 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13677 lt_prog_compiler_wl_F77='-Wl,'
13678 lt_prog_compiler_pic_F77='-KPIC'
13679 lt_prog_compiler_static_F77='-Bstatic'
13680 ;;
13681
13682 unicos*)
13683 lt_prog_compiler_wl_F77='-Wl,'
13684 lt_prog_compiler_can_build_shared_F77=no
13685 ;;
13686
13687 uts4*)
13688 lt_prog_compiler_pic_F77='-pic'
13689 lt_prog_compiler_static_F77='-Bstatic'
13690 ;;
13691
13692 *)
13693 lt_prog_compiler_can_build_shared_F77=no
13694 ;;
13695 esac
13696 fi
13697
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13699 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13700
13701 #
13702 # Check to make sure the PIC flag actually works.
13703 #
13704 if test -n "$lt_prog_compiler_pic_F77"; then
13705
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13707 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13708 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then :
13709 $as_echo_n "(cached) " >&6
13710 else
13711 lt_cv_prog_compiler_pic_works_F77=no
13712 ac_outfile=conftest.$ac_objext
13713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13714 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13715 # Insert the option either (1) after the last *FLAGS variable, or
13716 # (2) before a word containing "conftest.", or (3) at the end.
13717 # Note that $ac_compile itself does not contain backslashes and begins
13718 # with a dollar sign (not a hyphen), so the echo should work correctly.
13719 # The option is referenced via a variable to avoid confusing sed.
13720 lt_compile=`echo "$ac_compile" | $SED \
13721 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13723 -e 's:$: $lt_compiler_flag:'`
13724 (eval echo "\"\$as_me:13724: $lt_compile\"" >&5)
13725 (eval "$lt_compile" 2>conftest.err)
13726 ac_status=$?
13727 cat conftest.err >&5
13728 echo "$as_me:13728: \$? = $ac_status" >&5
13729 if (exit $ac_status) && test -s "$ac_outfile"; then
13730 # The compiler can only warn and ignore the option if not recognized
13731 # So say no if there are warnings other than the usual output.
13732 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13733 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13734 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13735 lt_cv_prog_compiler_pic_works_F77=yes
13736 fi
13737 fi
13738 $rm conftest*
13739
13740 fi
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
13742 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
13743
13744 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
13745 case $lt_prog_compiler_pic_F77 in
13746 "" | " "*) ;;
13747 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13748 esac
13749 else
13750 lt_prog_compiler_pic_F77=
13751 lt_prog_compiler_can_build_shared_F77=no
13752 fi
13753
13754 fi
13755 case $host_os in
13756 # For platforms which do not support PIC, -DPIC is meaningless:
13757 *djgpp*)
13758 lt_prog_compiler_pic_F77=
13759 ;;
13760 *)
13761 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13762 ;;
13763 esac
13764
13765 #
13766 # Check to make sure the static flag actually works.
13767 #
13768 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13770 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13771 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then :
13772 $as_echo_n "(cached) " >&6
13773 else
13774 lt_cv_prog_compiler_static_works_F77=no
13775 save_LDFLAGS="$LDFLAGS"
13776 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13777 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13778 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13779 # The linker can only warn and ignore the option if not recognized
13780 # So say no if there are warnings
13781 if test -s conftest.err; then
13782 # Append any errors to the config.log.
13783 cat conftest.err 1>&5
13784 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13785 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13786 if diff conftest.exp conftest.er2 >/dev/null; then
13787 lt_cv_prog_compiler_static_works_F77=yes
13788 fi
13789 else
13790 lt_cv_prog_compiler_static_works_F77=yes
13791 fi
13792 fi
13793 $rm -r conftest*
13794 LDFLAGS="$save_LDFLAGS"
13795
13796 fi
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
13798 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
13799
13800 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
13801 :
13802 else
13803 lt_prog_compiler_static_F77=
13804 fi
13805
13806
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13808 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13809 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
13810 $as_echo_n "(cached) " >&6
13811 else
13812 lt_cv_prog_compiler_c_o_F77=no
13813 $rm -r conftest 2>/dev/null
13814 mkdir conftest
13815 cd conftest
13816 mkdir out
13817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13818
13819 lt_compiler_flag="-o out/conftest2.$ac_objext"
13820 # Insert the option either (1) after the last *FLAGS variable, or
13821 # (2) before a word containing "conftest.", or (3) at the end.
13822 # Note that $ac_compile itself does not contain backslashes and begins
13823 # with a dollar sign (not a hyphen), so the echo should work correctly.
13824 lt_compile=`echo "$ac_compile" | $SED \
13825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13827 -e 's:$: $lt_compiler_flag:'`
13828 (eval echo "\"\$as_me:13828: $lt_compile\"" >&5)
13829 (eval "$lt_compile" 2>out/conftest.err)
13830 ac_status=$?
13831 cat out/conftest.err >&5
13832 echo "$as_me:13832: \$? = $ac_status" >&5
13833 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13834 then
13835 # The compiler can only warn and ignore the option if not recognized
13836 # So say no if there are warnings
13837 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13838 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13839 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13840 lt_cv_prog_compiler_c_o_F77=yes
13841 fi
13842 fi
13843 chmod u+w . 2>&5
13844 $rm conftest*
13845 # SGI C++ compiler will create directory out/ii_files/ for
13846 # template instantiation
13847 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13848 $rm out/* && rmdir out
13849 cd ..
13850 rmdir conftest
13851 $rm conftest*
13852
13853 fi
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13855 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13856
13857
13858 hard_links="nottested"
13859 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13860 # do not overwrite the value of need_locks provided by the user
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13862 $as_echo_n "checking if we can lock with hard links... " >&6; }
13863 hard_links=yes
13864 $rm conftest*
13865 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13866 touch conftest.a
13867 ln conftest.a conftest.b 2>&5 || hard_links=no
13868 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13870 $as_echo "$hard_links" >&6; }
13871 if test "$hard_links" = no; then
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13873 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13874 need_locks=warn
13875 fi
13876 else
13877 need_locks=no
13878 fi
13879
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13881 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13882
13883 runpath_var=
13884 allow_undefined_flag_F77=
13885 enable_shared_with_static_runtimes_F77=no
13886 archive_cmds_F77=
13887 archive_expsym_cmds_F77=
13888 old_archive_From_new_cmds_F77=
13889 old_archive_from_expsyms_cmds_F77=
13890 export_dynamic_flag_spec_F77=
13891 whole_archive_flag_spec_F77=
13892 thread_safe_flag_spec_F77=
13893 hardcode_libdir_flag_spec_F77=
13894 hardcode_libdir_flag_spec_ld_F77=
13895 hardcode_libdir_separator_F77=
13896 hardcode_direct_F77=no
13897 hardcode_minus_L_F77=no
13898 hardcode_shlibpath_var_F77=unsupported
13899 link_all_deplibs_F77=unknown
13900 hardcode_automatic_F77=no
13901 module_cmds_F77=
13902 module_expsym_cmds_F77=
13903 always_export_symbols_F77=no
13904 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13905 # include_expsyms should be a list of space-separated symbols to be *always*
13906 # included in the symbol list
13907 include_expsyms_F77=
13908 # exclude_expsyms can be an extended regexp of symbols to exclude
13909 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13910 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13911 # as well as any symbol that contains `d'.
13912 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13913 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13914 # platforms (ab)use it in PIC code, but their linkers get confused if
13915 # the symbol is explicitly referenced. Since portable code cannot
13916 # rely on this symbol name, it's probably fine to never include it in
13917 # preloaded symbol tables.
13918 # Exclude shared library initialization/finalization symbols.
13919 extract_expsyms_cmds=
13920 # Just being paranoid about ensuring that cc_basename is set.
13921 for cc_temp in $compiler""; do
13922 case $cc_temp in
13923 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13924 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13925 \-*) ;;
13926 *) break;;
13927 esac
13928 done
13929 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13930
13931 case $host_os in
13932 cygwin* | mingw* | pw32*)
13933 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13934 # When not using gcc, we currently assume that we are using
13935 # Microsoft Visual C++.
13936 if test "$GCC" != yes; then
13937 with_gnu_ld=no
13938 fi
13939 ;;
13940 interix*)
13941 # we just hope/assume this is gcc and not c89 (= MSVC++)
13942 with_gnu_ld=yes
13943 ;;
13944 openbsd*)
13945 with_gnu_ld=no
13946 ;;
13947 esac
13948
13949 ld_shlibs_F77=yes
13950 if test "$with_gnu_ld" = yes; then
13951 # If archive_cmds runs LD, not CC, wlarc should be empty
13952 wlarc='${wl}'
13953
13954 # Set some defaults for GNU ld with shared library support. These
13955 # are reset later if shared libraries are not supported. Putting them
13956 # here allows them to be overridden if necessary.
13957 runpath_var=LD_RUN_PATH
13958 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13959 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13960 # ancient GNU ld didn't support --whole-archive et. al.
13961 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13962 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13963 else
13964 whole_archive_flag_spec_F77=
13965 fi
13966 supports_anon_versioning=no
13967 case `$LD -v 2>/dev/null` in
13968 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13969 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13970 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13971 *\ 2.11.*) ;; # other 2.11 versions
13972 *) supports_anon_versioning=yes ;;
13973 esac
13974
13975 # See if GNU ld supports shared libraries.
13976 case $host_os in
13977 aix[3-9]*)
13978 # On AIX/PPC, the GNU linker is very broken
13979 if test "$host_cpu" != ia64; then
13980 ld_shlibs_F77=no
13981 cat <<EOF 1>&2
13982
13983 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13984 *** to be unable to reliably create shared libraries on AIX.
13985 *** Therefore, libtool is disabling shared libraries support. If you
13986 *** really care for shared libraries, you may want to modify your PATH
13987 *** so that a non-GNU linker is found, and then restart.
13988
13989 EOF
13990 fi
13991 ;;
13992
13993 amigaos*)
13994 archive_cmds_F77='$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)'
13995 hardcode_libdir_flag_spec_F77='-L$libdir'
13996 hardcode_minus_L_F77=yes
13997
13998 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
13999 # that the semantics of dynamic libraries on AmigaOS, at least up
14000 # to version 4, is to share data among multiple programs linked
14001 # with the same dynamic library. Since this doesn't match the
14002 # behavior of shared libraries on other platforms, we can't use
14003 # them.
14004 ld_shlibs_F77=no
14005 ;;
14006
14007 beos*)
14008 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14009 allow_undefined_flag_F77=unsupported
14010 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14011 # support --undefined. This deserves some investigation. FIXME
14012 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14013 else
14014 ld_shlibs_F77=no
14015 fi
14016 ;;
14017
14018 cygwin* | mingw* | pw32*)
14019 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14020 # as there is no search path for DLLs.
14021 hardcode_libdir_flag_spec_F77='-L$libdir'
14022 allow_undefined_flag_F77=unsupported
14023 always_export_symbols_F77=no
14024 enable_shared_with_static_runtimes_F77=yes
14025 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14026
14027 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14028 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14029 # If the export-symbols file already is a .def file (1st line
14030 # is EXPORTS), use it as is; otherwise, prepend...
14031 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14032 cp $export_symbols $output_objdir/$soname.def;
14033 else
14034 echo EXPORTS > $output_objdir/$soname.def;
14035 cat $export_symbols >> $output_objdir/$soname.def;
14036 fi~
14037 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14038 else
14039 ld_shlibs_F77=no
14040 fi
14041 ;;
14042
14043 interix[3-9]*)
14044 hardcode_direct_F77=no
14045 hardcode_shlibpath_var_F77=no
14046 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14047 export_dynamic_flag_spec_F77='${wl}-E'
14048 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14049 # Instead, shared libraries are loaded at an image base (0x10000000 by
14050 # default) and relocated if they conflict, which is a slow very memory
14051 # consuming and fragmenting process. To avoid this, we pick a random,
14052 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14053 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14054 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14055 archive_expsym_cmds_F77='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'
14056 ;;
14057
14058 gnu* | linux* | k*bsd*-gnu)
14059 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14060 tmp_addflag=
14061 case $cc_basename,$host_cpu in
14062 pgcc*) # Portland Group C compiler
14063 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14064 tmp_addflag=' $pic_flag'
14065 ;;
14066 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14067 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14068 tmp_addflag=' $pic_flag -Mnomain' ;;
14069 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14070 tmp_addflag=' -i_dynamic' ;;
14071 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14072 tmp_addflag=' -i_dynamic -nofor_main' ;;
14073 ifc* | ifort*) # Intel Fortran compiler
14074 tmp_addflag=' -nofor_main' ;;
14075 esac
14076 case `$CC -V 2>&1 | sed 5q` in
14077 *Sun\ C*) # Sun C 5.9
14078 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14079 tmp_sharedflag='-G' ;;
14080 *Sun\ F*) # Sun Fortran 8.3
14081 tmp_sharedflag='-G' ;;
14082 *)
14083 tmp_sharedflag='-shared' ;;
14084 esac
14085 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14086
14087 if test $supports_anon_versioning = yes; then
14088 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14089 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14090 $echo "local: *; };" >> $output_objdir/$libname.ver~
14091 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14092 fi
14093 link_all_deplibs_F77=no
14094 else
14095 ld_shlibs_F77=no
14096 fi
14097 ;;
14098
14099 netbsd* | netbsdelf*-gnu)
14100 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14101 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14102 wlarc=
14103 else
14104 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14105 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14106 fi
14107 ;;
14108
14109 solaris*)
14110 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14111 ld_shlibs_F77=no
14112 cat <<EOF 1>&2
14113
14114 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14115 *** create shared libraries on Solaris systems. Therefore, libtool
14116 *** is disabling shared libraries support. We urge you to upgrade GNU
14117 *** binutils to release 2.9.1 or newer. Another option is to modify
14118 *** your PATH or compiler configuration so that the native linker is
14119 *** used, and then restart.
14120
14121 EOF
14122 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14123 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14124 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14125 else
14126 ld_shlibs_F77=no
14127 fi
14128 ;;
14129
14130 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14131 case `$LD -v 2>&1` in
14132 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14133 ld_shlibs_F77=no
14134 cat <<_LT_EOF 1>&2
14135
14136 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14137 *** reliably create shared libraries on SCO systems. Therefore, libtool
14138 *** is disabling shared libraries support. We urge you to upgrade GNU
14139 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14140 *** your PATH or compiler configuration so that the native linker is
14141 *** used, and then restart.
14142
14143 _LT_EOF
14144 ;;
14145 *)
14146 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14147 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14148 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14149 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14150 else
14151 ld_shlibs_F77=no
14152 fi
14153 ;;
14154 esac
14155 ;;
14156
14157 sunos4*)
14158 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14159 wlarc=
14160 hardcode_direct_F77=yes
14161 hardcode_shlibpath_var_F77=no
14162 ;;
14163
14164 *)
14165 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14166 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14167 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14168 else
14169 ld_shlibs_F77=no
14170 fi
14171 ;;
14172 esac
14173
14174 if test "$ld_shlibs_F77" = no; then
14175 runpath_var=
14176 hardcode_libdir_flag_spec_F77=
14177 export_dynamic_flag_spec_F77=
14178 whole_archive_flag_spec_F77=
14179 fi
14180 else
14181 # PORTME fill in a description of your system's linker (not GNU ld)
14182 case $host_os in
14183 aix3*)
14184 allow_undefined_flag_F77=unsupported
14185 always_export_symbols_F77=yes
14186 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14187 # Note: this linker hardcodes the directories in LIBPATH if there
14188 # are no directories specified by -L.
14189 hardcode_minus_L_F77=yes
14190 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14191 # Neither direct hardcoding nor static linking is supported with a
14192 # broken collect2.
14193 hardcode_direct_F77=unsupported
14194 fi
14195 ;;
14196
14197 aix[4-9]*)
14198 if test "$host_cpu" = ia64; then
14199 # On IA64, the linker does run time linking by default, so we don't
14200 # have to do anything special.
14201 aix_use_runtimelinking=no
14202 exp_sym_flag='-Bexport'
14203 no_entry_flag=""
14204 else
14205 # If we're using GNU nm, then we don't want the "-C" option.
14206 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14207 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14208 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14209 else
14210 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14211 fi
14212 aix_use_runtimelinking=no
14213
14214 # Test if we are trying to use run time linking or normal
14215 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14216 # need to do runtime linking.
14217 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14218 for ld_flag in $LDFLAGS; do
14219 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14220 aix_use_runtimelinking=yes
14221 break
14222 fi
14223 done
14224 ;;
14225 esac
14226
14227 exp_sym_flag='-bexport'
14228 no_entry_flag='-bnoentry'
14229 fi
14230
14231 # When large executables or shared objects are built, AIX ld can
14232 # have problems creating the table of contents. If linking a library
14233 # or program results in "error TOC overflow" add -mminimal-toc to
14234 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14235 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14236
14237 archive_cmds_F77=''
14238 hardcode_direct_F77=yes
14239 hardcode_libdir_separator_F77=':'
14240 link_all_deplibs_F77=yes
14241
14242 if test "$GCC" = yes; then
14243 case $host_os in aix4.[012]|aix4.[012].*)
14244 # We only want to do this on AIX 4.2 and lower, the check
14245 # below for broken collect2 doesn't work under 4.3+
14246 collect2name=`${CC} -print-prog-name=collect2`
14247 if test -f "$collect2name" && \
14248 strings "$collect2name" | grep resolve_lib_name >/dev/null
14249 then
14250 # We have reworked collect2
14251 :
14252 else
14253 # We have old collect2
14254 hardcode_direct_F77=unsupported
14255 # It fails to find uninstalled libraries when the uninstalled
14256 # path is not listed in the libpath. Setting hardcode_minus_L
14257 # to unsupported forces relinking
14258 hardcode_minus_L_F77=yes
14259 hardcode_libdir_flag_spec_F77='-L$libdir'
14260 hardcode_libdir_separator_F77=
14261 fi
14262 ;;
14263 esac
14264 shared_flag='-shared'
14265 if test "$aix_use_runtimelinking" = yes; then
14266 shared_flag="$shared_flag "'${wl}-G'
14267 fi
14268 else
14269 # not using gcc
14270 if test "$host_cpu" = ia64; then
14271 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14272 # chokes on -Wl,-G. The following line is correct:
14273 shared_flag='-G'
14274 else
14275 if test "$aix_use_runtimelinking" = yes; then
14276 shared_flag='${wl}-G'
14277 else
14278 shared_flag='${wl}-bM:SRE'
14279 fi
14280 fi
14281 fi
14282
14283 # It seems that -bexpall does not export symbols beginning with
14284 # underscore (_), so it is better to generate a list of symbols to export.
14285 always_export_symbols_F77=yes
14286 if test "$aix_use_runtimelinking" = yes; then
14287 # Warning - without using the other runtime loading flags (-brtl),
14288 # -berok will link without error, but may produce a broken library.
14289 allow_undefined_flag_F77='-berok'
14290 # Determine the default libpath from the value encoded in an empty executable.
14291 cat > conftest.$ac_ext <<_ACEOF
14292 program main
14293
14294 end
14295 _ACEOF
14296 if ac_fn_f77_try_link "$LINENO"; then :
14297
14298 lt_aix_libpath_sed='
14299 /Import File Strings/,/^$/ {
14300 /^0/ {
14301 s/^0 *\(.*\)$/\1/
14302 p
14303 }
14304 }'
14305 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14306 # Check for a 64-bit object if we didn't find anything.
14307 if test -z "$aix_libpath"; then
14308 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14309 fi
14310 fi
14311 rm -f core conftest.err conftest.$ac_objext \
14312 conftest$ac_exeext conftest.$ac_ext
14313 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14314
14315 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14316 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14317 else
14318 if test "$host_cpu" = ia64; then
14319 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14320 allow_undefined_flag_F77="-z nodefs"
14321 archive_expsym_cmds_F77="\$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"
14322 else
14323 # Determine the default libpath from the value encoded in an empty executable.
14324 cat > conftest.$ac_ext <<_ACEOF
14325 program main
14326
14327 end
14328 _ACEOF
14329 if ac_fn_f77_try_link "$LINENO"; then :
14330
14331 lt_aix_libpath_sed='
14332 /Import File Strings/,/^$/ {
14333 /^0/ {
14334 s/^0 *\(.*\)$/\1/
14335 p
14336 }
14337 }'
14338 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14339 # Check for a 64-bit object if we didn't find anything.
14340 if test -z "$aix_libpath"; then
14341 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14342 fi
14343 fi
14344 rm -f core conftest.err conftest.$ac_objext \
14345 conftest$ac_exeext conftest.$ac_ext
14346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14347
14348 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14349 # Warning - without using the other run time loading flags,
14350 # -berok will link without error, but may produce a broken library.
14351 no_undefined_flag_F77=' ${wl}-bernotok'
14352 allow_undefined_flag_F77=' ${wl}-berok'
14353 # Exported symbols can be pulled into shared objects from archives
14354 whole_archive_flag_spec_F77='$convenience'
14355 archive_cmds_need_lc_F77=yes
14356 # This is similar to how AIX traditionally builds its shared libraries.
14357 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14358 fi
14359 fi
14360 ;;
14361
14362 amigaos*)
14363 archive_cmds_F77='$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)'
14364 hardcode_libdir_flag_spec_F77='-L$libdir'
14365 hardcode_minus_L_F77=yes
14366 # see comment about different semantics on the GNU ld section
14367 ld_shlibs_F77=no
14368 ;;
14369
14370 bsdi[45]*)
14371 export_dynamic_flag_spec_F77=-rdynamic
14372 ;;
14373
14374 cygwin* | mingw* | pw32*)
14375 # When not using gcc, we currently assume that we are using
14376 # Microsoft Visual C++.
14377 # hardcode_libdir_flag_spec is actually meaningless, as there is
14378 # no search path for DLLs.
14379 hardcode_libdir_flag_spec_F77=' '
14380 allow_undefined_flag_F77=unsupported
14381 # Tell ltmain to make .lib files, not .a files.
14382 libext=lib
14383 # Tell ltmain to make .dll files, not .so files.
14384 shrext_cmds=".dll"
14385 # FIXME: Setting linknames here is a bad hack.
14386 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14387 # The linker will automatically build a .lib file if we build a DLL.
14388 old_archive_From_new_cmds_F77='true'
14389 # FIXME: Should let the user specify the lib program.
14390 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14391 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14392 enable_shared_with_static_runtimes_F77=yes
14393 ;;
14394
14395 darwin* | rhapsody*)
14396 case $host_os in
14397 rhapsody* | darwin1.[012])
14398 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14399 ;;
14400 *) # Darwin 1.3 on
14401 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14402 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14403 else
14404 case ${MACOSX_DEPLOYMENT_TARGET} in
14405 10.[012])
14406 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14407 ;;
14408 10.*)
14409 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14410 ;;
14411 esac
14412 fi
14413 ;;
14414 esac
14415 archive_cmds_need_lc_F77=no
14416 hardcode_direct_F77=no
14417 hardcode_automatic_F77=yes
14418 hardcode_shlibpath_var_F77=unsupported
14419 whole_archive_flag_spec_F77=''
14420 link_all_deplibs_F77=yes
14421 if test "$GCC" = yes ; then
14422 output_verbose_link_cmd='echo'
14423 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14424 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14425 archive_expsym_cmds_F77="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}"
14426 module_expsym_cmds_F77="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}"
14427 else
14428 case $cc_basename in
14429 xlc*)
14430 output_verbose_link_cmd='echo'
14431 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14432 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14433 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14434 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14435 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14436 ;;
14437 *)
14438 ld_shlibs_F77=no
14439 ;;
14440 esac
14441 fi
14442 ;;
14443
14444 dgux*)
14445 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14446 hardcode_libdir_flag_spec_F77='-L$libdir'
14447 hardcode_shlibpath_var_F77=no
14448 ;;
14449
14450 freebsd1*)
14451 ld_shlibs_F77=no
14452 ;;
14453
14454 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14455 # support. Future versions do this automatically, but an explicit c++rt0.o
14456 # does not break anything, and helps significantly (at the cost of a little
14457 # extra space).
14458 freebsd2.2*)
14459 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14460 hardcode_libdir_flag_spec_F77='-R$libdir'
14461 hardcode_direct_F77=yes
14462 hardcode_shlibpath_var_F77=no
14463 ;;
14464
14465 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14466 freebsd2*)
14467 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14468 hardcode_direct_F77=yes
14469 hardcode_minus_L_F77=yes
14470 hardcode_shlibpath_var_F77=no
14471 ;;
14472
14473 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14474 freebsd* | dragonfly*)
14475 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14476 hardcode_libdir_flag_spec_F77='-R$libdir'
14477 hardcode_direct_F77=yes
14478 hardcode_shlibpath_var_F77=no
14479 ;;
14480
14481 hpux9*)
14482 if test "$GCC" = yes; then
14483 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14484 else
14485 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14486 fi
14487 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14488 hardcode_libdir_separator_F77=:
14489 hardcode_direct_F77=yes
14490
14491 # hardcode_minus_L: Not really in the search PATH,
14492 # but as the default location of the library.
14493 hardcode_minus_L_F77=yes
14494 export_dynamic_flag_spec_F77='${wl}-E'
14495 ;;
14496
14497 hpux10*)
14498 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14499 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14500 else
14501 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14502 fi
14503 if test "$with_gnu_ld" = no; then
14504 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14505 hardcode_libdir_separator_F77=:
14506
14507 hardcode_direct_F77=yes
14508 export_dynamic_flag_spec_F77='${wl}-E'
14509
14510 # hardcode_minus_L: Not really in the search PATH,
14511 # but as the default location of the library.
14512 hardcode_minus_L_F77=yes
14513 fi
14514 ;;
14515
14516 hpux11*)
14517 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14518 case $host_cpu in
14519 hppa*64*)
14520 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14521 ;;
14522 ia64*)
14523 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14524 ;;
14525 *)
14526 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14527 ;;
14528 esac
14529 else
14530 case $host_cpu in
14531 hppa*64*)
14532 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14533 ;;
14534 ia64*)
14535 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14536 ;;
14537 *)
14538 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14539 ;;
14540 esac
14541 fi
14542 if test "$with_gnu_ld" = no; then
14543 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14544 hardcode_libdir_separator_F77=:
14545
14546 case $host_cpu in
14547 hppa*64*|ia64*)
14548 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14549 hardcode_direct_F77=no
14550 hardcode_shlibpath_var_F77=no
14551 ;;
14552 *)
14553 hardcode_direct_F77=yes
14554 export_dynamic_flag_spec_F77='${wl}-E'
14555
14556 # hardcode_minus_L: Not really in the search PATH,
14557 # but as the default location of the library.
14558 hardcode_minus_L_F77=yes
14559 ;;
14560 esac
14561 fi
14562 ;;
14563
14564 irix5* | irix6* | nonstopux*)
14565 if test "$GCC" = yes; then
14566 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14567 else
14568 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14569 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14570 fi
14571 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14572 hardcode_libdir_separator_F77=:
14573 link_all_deplibs_F77=yes
14574 ;;
14575
14576 netbsd* | netbsdelf*-gnu)
14577 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14578 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14579 else
14580 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14581 fi
14582 hardcode_libdir_flag_spec_F77='-R$libdir'
14583 hardcode_direct_F77=yes
14584 hardcode_shlibpath_var_F77=no
14585 ;;
14586
14587 newsos6)
14588 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14589 hardcode_direct_F77=yes
14590 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14591 hardcode_libdir_separator_F77=:
14592 hardcode_shlibpath_var_F77=no
14593 ;;
14594
14595 openbsd*)
14596 if test -f /usr/libexec/ld.so; then
14597 hardcode_direct_F77=yes
14598 hardcode_shlibpath_var_F77=no
14599 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14600 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14601 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14602 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14603 export_dynamic_flag_spec_F77='${wl}-E'
14604 else
14605 case $host_os in
14606 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14607 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14608 hardcode_libdir_flag_spec_F77='-R$libdir'
14609 ;;
14610 *)
14611 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14612 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14613 ;;
14614 esac
14615 fi
14616 else
14617 ld_shlibs_F77=no
14618 fi
14619 ;;
14620
14621 os2*)
14622 hardcode_libdir_flag_spec_F77='-L$libdir'
14623 hardcode_minus_L_F77=yes
14624 allow_undefined_flag_F77=unsupported
14625 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14626 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14627 ;;
14628
14629 osf3*)
14630 if test "$GCC" = yes; then
14631 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14632 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14633 else
14634 allow_undefined_flag_F77=' -expect_unresolved \*'
14635 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14636 fi
14637 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14638 hardcode_libdir_separator_F77=:
14639 ;;
14640
14641 osf4* | osf5*) # as osf3* with the addition of -msym flag
14642 if test "$GCC" = yes; then
14643 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14644 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14645 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14646 else
14647 allow_undefined_flag_F77=' -expect_unresolved \*'
14648 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14649 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14650 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14651
14652 # Both c and cxx compiler support -rpath directly
14653 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14654 fi
14655 hardcode_libdir_separator_F77=:
14656 ;;
14657
14658 solaris*)
14659 no_undefined_flag_F77=' -z text'
14660 if test "$GCC" = yes; then
14661 wlarc='${wl}'
14662 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14663 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14664 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14665 else
14666 wlarc=''
14667 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14668 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14669 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14670 fi
14671 hardcode_libdir_flag_spec_F77='-R$libdir'
14672 hardcode_shlibpath_var_F77=no
14673 case $host_os in
14674 solaris2.[0-5] | solaris2.[0-5].*) ;;
14675 *)
14676 # The compiler driver will combine and reorder linker options,
14677 # but understands `-z linker_flag'. GCC discards it without `$wl',
14678 # but is careful enough not to reorder.
14679 # Supported since Solaris 2.6 (maybe 2.5.1?)
14680 if test "$GCC" = yes; then
14681 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14682 else
14683 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14684 fi
14685 ;;
14686 esac
14687 link_all_deplibs_F77=yes
14688 ;;
14689
14690 sunos4*)
14691 if test "x$host_vendor" = xsequent; then
14692 # Use $CC to link under sequent, because it throws in some extra .o
14693 # files that make .init and .fini sections work.
14694 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14695 else
14696 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14697 fi
14698 hardcode_libdir_flag_spec_F77='-L$libdir'
14699 hardcode_direct_F77=yes
14700 hardcode_minus_L_F77=yes
14701 hardcode_shlibpath_var_F77=no
14702 ;;
14703
14704 sysv4)
14705 case $host_vendor in
14706 sni)
14707 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14708 hardcode_direct_F77=yes # is this really true???
14709 ;;
14710 siemens)
14711 ## LD is ld it makes a PLAMLIB
14712 ## CC just makes a GrossModule.
14713 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14714 reload_cmds_F77='$CC -r -o $output$reload_objs'
14715 hardcode_direct_F77=no
14716 ;;
14717 motorola)
14718 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14719 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14720 ;;
14721 esac
14722 runpath_var='LD_RUN_PATH'
14723 hardcode_shlibpath_var_F77=no
14724 ;;
14725
14726 sysv4.3*)
14727 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14728 hardcode_shlibpath_var_F77=no
14729 export_dynamic_flag_spec_F77='-Bexport'
14730 ;;
14731
14732 sysv4*MP*)
14733 if test -d /usr/nec; then
14734 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14735 hardcode_shlibpath_var_F77=no
14736 runpath_var=LD_RUN_PATH
14737 hardcode_runpath_var=yes
14738 ld_shlibs_F77=yes
14739 fi
14740 ;;
14741
14742 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14743 no_undefined_flag_F77='${wl}-z,text'
14744 archive_cmds_need_lc_F77=no
14745 hardcode_shlibpath_var_F77=no
14746 runpath_var='LD_RUN_PATH'
14747
14748 if test "$GCC" = yes; then
14749 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14750 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14751 else
14752 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14753 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14754 fi
14755 ;;
14756
14757 sysv5* | sco3.2v5* | sco5v6*)
14758 # Note: We can NOT use -z defs as we might desire, because we do not
14759 # link with -lc, and that would cause any symbols used from libc to
14760 # always be unresolved, which means just about no library would
14761 # ever link correctly. If we're not using GNU ld we use -z text
14762 # though, which does catch some bad symbols but isn't as heavy-handed
14763 # as -z defs.
14764 no_undefined_flag_F77='${wl}-z,text'
14765 allow_undefined_flag_F77='${wl}-z,nodefs'
14766 archive_cmds_need_lc_F77=no
14767 hardcode_shlibpath_var_F77=no
14768 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14769 hardcode_libdir_separator_F77=':'
14770 link_all_deplibs_F77=yes
14771 export_dynamic_flag_spec_F77='${wl}-Bexport'
14772 runpath_var='LD_RUN_PATH'
14773
14774 if test "$GCC" = yes; then
14775 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14776 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14777 else
14778 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14779 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14780 fi
14781 ;;
14782
14783 uts4*)
14784 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14785 hardcode_libdir_flag_spec_F77='-L$libdir'
14786 hardcode_shlibpath_var_F77=no
14787 ;;
14788
14789 *)
14790 ld_shlibs_F77=no
14791 ;;
14792 esac
14793 fi
14794
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14796 $as_echo "$ld_shlibs_F77" >&6; }
14797 test "$ld_shlibs_F77" = no && can_build_shared=no
14798
14799 #
14800 # Do we need to explicitly link libc?
14801 #
14802 case "x$archive_cmds_need_lc_F77" in
14803 x|xyes)
14804 # Assume -lc should be added
14805 archive_cmds_need_lc_F77=yes
14806
14807 if test "$enable_shared" = yes && test "$GCC" = yes; then
14808 case $archive_cmds_F77 in
14809 *'~'*)
14810 # FIXME: we may have to deal with multi-command sequences.
14811 ;;
14812 '$CC '*)
14813 # Test whether the compiler implicitly links with -lc since on some
14814 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14815 # to ld, don't add -lc before -lgcc.
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14817 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14818 $rm conftest*
14819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14820
14821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14822 (eval $ac_compile) 2>&5
14823 ac_status=$?
14824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14825 test $ac_status = 0; } 2>conftest.err; then
14826 soname=conftest
14827 lib=conftest
14828 libobjs=conftest.$ac_objext
14829 deplibs=
14830 wl=$lt_prog_compiler_wl_F77
14831 pic_flag=$lt_prog_compiler_pic_F77
14832 compiler_flags=-v
14833 linker_flags=-v
14834 verstring=
14835 output_objdir=.
14836 libname=conftest
14837 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14838 allow_undefined_flag_F77=
14839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14840 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14841 ac_status=$?
14842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14843 test $ac_status = 0; }
14844 then
14845 archive_cmds_need_lc_F77=no
14846 else
14847 archive_cmds_need_lc_F77=yes
14848 fi
14849 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14850 else
14851 cat conftest.err 1>&5
14852 fi
14853 $rm conftest*
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14855 $as_echo "$archive_cmds_need_lc_F77" >&6; }
14856 ;;
14857 esac
14858 fi
14859 ;;
14860 esac
14861
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14863 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14864 library_names_spec=
14865 libname_spec='lib$name'
14866 soname_spec=
14867 shrext_cmds=".so"
14868 postinstall_cmds=
14869 postuninstall_cmds=
14870 finish_cmds=
14871 finish_eval=
14872 shlibpath_var=
14873 shlibpath_overrides_runpath=unknown
14874 version_type=none
14875 dynamic_linker="$host_os ld.so"
14876 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14877
14878 need_lib_prefix=unknown
14879 hardcode_into_libs=no
14880
14881 # when you set need_version to no, make sure it does not cause -set_version
14882 # flags to be left without arguments
14883 need_version=unknown
14884
14885 case $host_os in
14886 aix3*)
14887 version_type=linux
14888 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14889 shlibpath_var=LIBPATH
14890
14891 # AIX 3 has no versioning support, so we append a major version to the name.
14892 soname_spec='${libname}${release}${shared_ext}$major'
14893 ;;
14894
14895 aix[4-9]*)
14896 version_type=linux
14897 need_lib_prefix=no
14898 need_version=no
14899 hardcode_into_libs=yes
14900 if test "$host_cpu" = ia64; then
14901 # AIX 5 supports IA64
14902 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14903 shlibpath_var=LD_LIBRARY_PATH
14904 else
14905 # With GCC up to 2.95.x, collect2 would create an import file
14906 # for dependence libraries. The import file would start with
14907 # the line `#! .'. This would cause the generated library to
14908 # depend on `.', always an invalid library. This was fixed in
14909 # development snapshots of GCC prior to 3.0.
14910 case $host_os in
14911 aix4 | aix4.[01] | aix4.[01].*)
14912 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14913 echo ' yes '
14914 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14915 :
14916 else
14917 can_build_shared=no
14918 fi
14919 ;;
14920 esac
14921 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14922 # soname into executable. Probably we can add versioning support to
14923 # collect2, so additional links can be useful in future.
14924 if test "$aix_use_runtimelinking" = yes; then
14925 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14926 # instead of lib<name>.a to let people know that these are not
14927 # typical AIX shared libraries.
14928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14929 else
14930 # We preserve .a as extension for shared libraries through AIX4.2
14931 # and later when we are not doing run time linking.
14932 library_names_spec='${libname}${release}.a $libname.a'
14933 soname_spec='${libname}${release}${shared_ext}$major'
14934 fi
14935 shlibpath_var=LIBPATH
14936 fi
14937 ;;
14938
14939 amigaos*)
14940 library_names_spec='$libname.ixlibrary $libname.a'
14941 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14942 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14943 ;;
14944
14945 beos*)
14946 library_names_spec='${libname}${shared_ext}'
14947 dynamic_linker="$host_os ld.so"
14948 shlibpath_var=LIBRARY_PATH
14949 ;;
14950
14951 bsdi[45]*)
14952 version_type=linux
14953 need_version=no
14954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14955 soname_spec='${libname}${release}${shared_ext}$major'
14956 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14957 shlibpath_var=LD_LIBRARY_PATH
14958 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14959 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14960 # the default ld.so.conf also contains /usr/contrib/lib and
14961 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14962 # libtool to hard-code these into programs
14963 ;;
14964
14965 cygwin* | mingw* | pw32*)
14966 version_type=windows
14967 shrext_cmds=".dll"
14968 need_version=no
14969 need_lib_prefix=no
14970
14971 case $GCC,$host_os in
14972 yes,cygwin* | yes,mingw* | yes,pw32*)
14973 library_names_spec='$libname.dll.a'
14974 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14975 postinstall_cmds='base_file=`basename \${file}`~
14976 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14977 dldir=$destdir/`dirname \$dlpath`~
14978 test -d \$dldir || mkdir -p \$dldir~
14979 $install_prog $dir/$dlname \$dldir/$dlname~
14980 chmod a+x \$dldir/$dlname'
14981 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14982 dlpath=$dir/\$dldll~
14983 $rm \$dlpath'
14984 shlibpath_overrides_runpath=yes
14985
14986 case $host_os in
14987 cygwin*)
14988 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14989 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14990 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14991 ;;
14992 mingw*)
14993 # MinGW DLLs use traditional 'lib' prefix
14994 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14995 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14996 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14997 # It is most probably a Windows format PATH printed by
14998 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14999 # path with ; separators, and with drive letters. We can handle the
15000 # drive letters (cygwin fileutils understands them), so leave them,
15001 # especially as we might pass files found there to a mingw objdump,
15002 # which wouldn't understand a cygwinified path. Ahh.
15003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15004 else
15005 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15006 fi
15007 ;;
15008 pw32*)
15009 # pw32 DLLs use 'pw' prefix rather than 'lib'
15010 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15011 ;;
15012 esac
15013 ;;
15014
15015 *)
15016 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15017 ;;
15018 esac
15019 dynamic_linker='Win32 ld.exe'
15020 # FIXME: first we should search . and the directory the executable is in
15021 shlibpath_var=PATH
15022 ;;
15023
15024 darwin* | rhapsody*)
15025 dynamic_linker="$host_os dyld"
15026 version_type=darwin
15027 need_lib_prefix=no
15028 need_version=no
15029 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15030 soname_spec='${libname}${release}${major}$shared_ext'
15031 shlibpath_overrides_runpath=yes
15032 shlibpath_var=DYLD_LIBRARY_PATH
15033 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15034
15035 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15036 ;;
15037
15038 dgux*)
15039 version_type=linux
15040 need_lib_prefix=no
15041 need_version=no
15042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15043 soname_spec='${libname}${release}${shared_ext}$major'
15044 shlibpath_var=LD_LIBRARY_PATH
15045 ;;
15046
15047 freebsd1*)
15048 dynamic_linker=no
15049 ;;
15050
15051 freebsd* | dragonfly*)
15052 # DragonFly does not have aout. When/if they implement a new
15053 # versioning mechanism, adjust this.
15054 if test -x /usr/bin/objformat; then
15055 objformat=`/usr/bin/objformat`
15056 else
15057 case $host_os in
15058 freebsd[123]*) objformat=aout ;;
15059 *) objformat=elf ;;
15060 esac
15061 fi
15062 version_type=freebsd-$objformat
15063 case $version_type in
15064 freebsd-elf*)
15065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15066 need_version=no
15067 need_lib_prefix=no
15068 ;;
15069 freebsd-*)
15070 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15071 need_version=yes
15072 ;;
15073 esac
15074 shlibpath_var=LD_LIBRARY_PATH
15075 case $host_os in
15076 freebsd2*)
15077 shlibpath_overrides_runpath=yes
15078 ;;
15079 freebsd3.[01]* | freebsdelf3.[01]*)
15080 shlibpath_overrides_runpath=yes
15081 hardcode_into_libs=yes
15082 ;;
15083 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15084 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15085 shlibpath_overrides_runpath=no
15086 hardcode_into_libs=yes
15087 ;;
15088 *) # from 4.6 on, and DragonFly
15089 shlibpath_overrides_runpath=yes
15090 hardcode_into_libs=yes
15091 ;;
15092 esac
15093 ;;
15094
15095 gnu*)
15096 version_type=linux
15097 need_lib_prefix=no
15098 need_version=no
15099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15100 soname_spec='${libname}${release}${shared_ext}$major'
15101 shlibpath_var=LD_LIBRARY_PATH
15102 hardcode_into_libs=yes
15103 ;;
15104
15105 hpux9* | hpux10* | hpux11*)
15106 # Give a soname corresponding to the major version so that dld.sl refuses to
15107 # link against other versions.
15108 version_type=sunos
15109 need_lib_prefix=no
15110 need_version=no
15111 case $host_cpu in
15112 ia64*)
15113 shrext_cmds='.so'
15114 hardcode_into_libs=yes
15115 dynamic_linker="$host_os dld.so"
15116 shlibpath_var=LD_LIBRARY_PATH
15117 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15119 soname_spec='${libname}${release}${shared_ext}$major'
15120 if test "X$HPUX_IA64_MODE" = X32; then
15121 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15122 else
15123 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15124 fi
15125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15126 ;;
15127 hppa*64*)
15128 shrext_cmds='.sl'
15129 hardcode_into_libs=yes
15130 dynamic_linker="$host_os dld.sl"
15131 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15132 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15134 soname_spec='${libname}${release}${shared_ext}$major'
15135 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15136 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15137 ;;
15138 *)
15139 shrext_cmds='.sl'
15140 dynamic_linker="$host_os dld.sl"
15141 shlibpath_var=SHLIB_PATH
15142 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15144 soname_spec='${libname}${release}${shared_ext}$major'
15145 ;;
15146 esac
15147 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15148 postinstall_cmds='chmod 555 $lib'
15149 ;;
15150
15151 interix[3-9]*)
15152 version_type=linux
15153 need_lib_prefix=no
15154 need_version=no
15155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15156 soname_spec='${libname}${release}${shared_ext}$major'
15157 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15158 shlibpath_var=LD_LIBRARY_PATH
15159 shlibpath_overrides_runpath=no
15160 hardcode_into_libs=yes
15161 ;;
15162
15163 irix5* | irix6* | nonstopux*)
15164 case $host_os in
15165 nonstopux*) version_type=nonstopux ;;
15166 *)
15167 if test "$lt_cv_prog_gnu_ld" = yes; then
15168 version_type=linux
15169 else
15170 version_type=irix
15171 fi ;;
15172 esac
15173 need_lib_prefix=no
15174 need_version=no
15175 soname_spec='${libname}${release}${shared_ext}$major'
15176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15177 case $host_os in
15178 irix5* | nonstopux*)
15179 libsuff= shlibsuff=
15180 ;;
15181 *)
15182 case $LD in # libtool.m4 will add one of these switches to LD
15183 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15184 libsuff= shlibsuff= libmagic=32-bit;;
15185 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15186 libsuff=32 shlibsuff=N32 libmagic=N32;;
15187 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15188 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15189 *) libsuff= shlibsuff= libmagic=never-match;;
15190 esac
15191 ;;
15192 esac
15193 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15194 shlibpath_overrides_runpath=no
15195 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15196 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15197 hardcode_into_libs=yes
15198 ;;
15199
15200 # No shared lib support for Linux oldld, aout, or coff.
15201 linux*oldld* | linux*aout* | linux*coff*)
15202 dynamic_linker=no
15203 ;;
15204
15205 # This must be Linux ELF.
15206 linux* | k*bsd*-gnu)
15207 version_type=linux
15208 need_lib_prefix=no
15209 need_version=no
15210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211 soname_spec='${libname}${release}${shared_ext}$major'
15212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15213 shlibpath_var=LD_LIBRARY_PATH
15214 shlibpath_overrides_runpath=no
15215 # This implies no fast_install, which is unacceptable.
15216 # Some rework will be needed to allow for fast_install
15217 # before this can be enabled.
15218 hardcode_into_libs=yes
15219
15220 # Append ld.so.conf contents to the search path
15221 if test -f /etc/ld.so.conf; then
15222 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;/^$/d' | tr '\n' ' '`
15223 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15224 fi
15225
15226 # We used to test for /lib/ld.so.1 and disable shared libraries on
15227 # powerpc, because MkLinux only supported shared libraries with the
15228 # GNU dynamic linker. Since this was broken with cross compilers,
15229 # most powerpc-linux boxes support dynamic linking these days and
15230 # people can always --disable-shared, the test was removed, and we
15231 # assume the GNU/Linux dynamic linker is in use.
15232 dynamic_linker='GNU/Linux ld.so'
15233 ;;
15234
15235 netbsdelf*-gnu)
15236 version_type=linux
15237 need_lib_prefix=no
15238 need_version=no
15239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15240 soname_spec='${libname}${release}${shared_ext}$major'
15241 shlibpath_var=LD_LIBRARY_PATH
15242 shlibpath_overrides_runpath=no
15243 hardcode_into_libs=yes
15244 dynamic_linker='NetBSD ld.elf_so'
15245 ;;
15246
15247 netbsd*)
15248 version_type=sunos
15249 need_lib_prefix=no
15250 need_version=no
15251 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15254 dynamic_linker='NetBSD (a.out) ld.so'
15255 else
15256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15257 soname_spec='${libname}${release}${shared_ext}$major'
15258 dynamic_linker='NetBSD ld.elf_so'
15259 fi
15260 shlibpath_var=LD_LIBRARY_PATH
15261 shlibpath_overrides_runpath=yes
15262 hardcode_into_libs=yes
15263 ;;
15264
15265 newsos6)
15266 version_type=linux
15267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15268 shlibpath_var=LD_LIBRARY_PATH
15269 shlibpath_overrides_runpath=yes
15270 ;;
15271
15272 nto-qnx*)
15273 version_type=linux
15274 need_lib_prefix=no
15275 need_version=no
15276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15277 soname_spec='${libname}${release}${shared_ext}$major'
15278 shlibpath_var=LD_LIBRARY_PATH
15279 shlibpath_overrides_runpath=yes
15280 ;;
15281
15282 openbsd*)
15283 version_type=sunos
15284 sys_lib_dlsearch_path_spec="/usr/lib"
15285 need_lib_prefix=no
15286 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15287 case $host_os in
15288 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15289 *) need_version=no ;;
15290 esac
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15293 shlibpath_var=LD_LIBRARY_PATH
15294 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15295 case $host_os in
15296 openbsd2.[89] | openbsd2.[89].*)
15297 shlibpath_overrides_runpath=no
15298 ;;
15299 *)
15300 shlibpath_overrides_runpath=yes
15301 ;;
15302 esac
15303 else
15304 shlibpath_overrides_runpath=yes
15305 fi
15306 ;;
15307
15308 os2*)
15309 libname_spec='$name'
15310 shrext_cmds=".dll"
15311 need_lib_prefix=no
15312 library_names_spec='$libname${shared_ext} $libname.a'
15313 dynamic_linker='OS/2 ld.exe'
15314 shlibpath_var=LIBPATH
15315 ;;
15316
15317 osf3* | osf4* | osf5*)
15318 version_type=osf
15319 need_lib_prefix=no
15320 need_version=no
15321 soname_spec='${libname}${release}${shared_ext}$major'
15322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15323 shlibpath_var=LD_LIBRARY_PATH
15324 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15325 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15326 ;;
15327
15328 rdos*)
15329 dynamic_linker=no
15330 ;;
15331
15332 solaris*)
15333 version_type=linux
15334 need_lib_prefix=no
15335 need_version=no
15336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15337 soname_spec='${libname}${release}${shared_ext}$major'
15338 shlibpath_var=LD_LIBRARY_PATH
15339 shlibpath_overrides_runpath=yes
15340 hardcode_into_libs=yes
15341 # ldd complains unless libraries are executable
15342 postinstall_cmds='chmod +x $lib'
15343 ;;
15344
15345 sunos4*)
15346 version_type=sunos
15347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15348 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15349 shlibpath_var=LD_LIBRARY_PATH
15350 shlibpath_overrides_runpath=yes
15351 if test "$with_gnu_ld" = yes; then
15352 need_lib_prefix=no
15353 fi
15354 need_version=yes
15355 ;;
15356
15357 sysv4 | sysv4.3*)
15358 version_type=linux
15359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15360 soname_spec='${libname}${release}${shared_ext}$major'
15361 shlibpath_var=LD_LIBRARY_PATH
15362 case $host_vendor in
15363 sni)
15364 shlibpath_overrides_runpath=no
15365 need_lib_prefix=no
15366 export_dynamic_flag_spec='${wl}-Blargedynsym'
15367 runpath_var=LD_RUN_PATH
15368 ;;
15369 siemens)
15370 need_lib_prefix=no
15371 ;;
15372 motorola)
15373 need_lib_prefix=no
15374 need_version=no
15375 shlibpath_overrides_runpath=no
15376 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15377 ;;
15378 esac
15379 ;;
15380
15381 sysv4*MP*)
15382 if test -d /usr/nec ;then
15383 version_type=linux
15384 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15385 soname_spec='$libname${shared_ext}.$major'
15386 shlibpath_var=LD_LIBRARY_PATH
15387 fi
15388 ;;
15389
15390 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15391 version_type=freebsd-elf
15392 need_lib_prefix=no
15393 need_version=no
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15395 soname_spec='${libname}${release}${shared_ext}$major'
15396 shlibpath_var=LD_LIBRARY_PATH
15397 hardcode_into_libs=yes
15398 if test "$with_gnu_ld" = yes; then
15399 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15400 shlibpath_overrides_runpath=no
15401 else
15402 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15403 shlibpath_overrides_runpath=yes
15404 case $host_os in
15405 sco3.2v5*)
15406 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15407 ;;
15408 esac
15409 fi
15410 sys_lib_dlsearch_path_spec='/usr/lib'
15411 ;;
15412
15413 uts4*)
15414 version_type=linux
15415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15416 soname_spec='${libname}${release}${shared_ext}$major'
15417 shlibpath_var=LD_LIBRARY_PATH
15418 ;;
15419
15420 *)
15421 dynamic_linker=no
15422 ;;
15423 esac
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15425 $as_echo "$dynamic_linker" >&6; }
15426 test "$dynamic_linker" = no && can_build_shared=no
15427
15428 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
15429 $as_echo_n "(cached) " >&6
15430 else
15431 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15432 fi
15433
15434 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15435 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
15436 $as_echo_n "(cached) " >&6
15437 else
15438 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15439 fi
15440
15441 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15442
15443 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15444 if test "$GCC" = yes; then
15445 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15446 fi
15447
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15449 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15450 hardcode_action_F77=
15451 if test -n "$hardcode_libdir_flag_spec_F77" || \
15452 test -n "$runpath_var_F77" || \
15453 test "X$hardcode_automatic_F77" = "Xyes" ; then
15454
15455 # We can hardcode non-existant directories.
15456 if test "$hardcode_direct_F77" != no &&
15457 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15458 # have to relink, otherwise we might link with an installed library
15459 # when we should be linking with a yet-to-be-installed one
15460 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15461 test "$hardcode_minus_L_F77" != no; then
15462 # Linking always hardcodes the temporary library directory.
15463 hardcode_action_F77=relink
15464 else
15465 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15466 hardcode_action_F77=immediate
15467 fi
15468 else
15469 # We cannot hardcode anything, or else we can only hardcode existing
15470 # directories.
15471 hardcode_action_F77=unsupported
15472 fi
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15474 $as_echo "$hardcode_action_F77" >&6; }
15475
15476 if test "$hardcode_action_F77" = relink; then
15477 # Fast installation is not supported
15478 enable_fast_install=no
15479 elif test "$shlibpath_overrides_runpath" = yes ||
15480 test "$enable_shared" = no; then
15481 # Fast installation is not necessary
15482 enable_fast_install=needless
15483 fi
15484
15485
15486 # The else clause should only fire when bootstrapping the
15487 # libtool distribution, otherwise you forgot to ship ltmain.sh
15488 # with your package, and you will get complaints that there are
15489 # no rules to generate ltmain.sh.
15490 if test -f "$ltmain"; then
15491 # See if we are running on zsh, and set the options which allow our commands through
15492 # without removal of \ escapes.
15493 if test -n "${ZSH_VERSION+set}" ; then
15494 setopt NO_GLOB_SUBST
15495 fi
15496 # Now quote all the things that may contain metacharacters while being
15497 # careful not to overquote the AC_SUBSTed values. We take copies of the
15498 # variables and quote the copies for generation of the libtool script.
15499 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15500 SED SHELL STRIP \
15501 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15502 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15503 deplibs_check_method reload_flag reload_cmds need_locks \
15504 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15505 lt_cv_sys_global_symbol_to_c_name_address \
15506 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15507 old_postinstall_cmds old_postuninstall_cmds \
15508 compiler_F77 \
15509 CC_F77 \
15510 LD_F77 \
15511 lt_prog_compiler_wl_F77 \
15512 lt_prog_compiler_pic_F77 \
15513 lt_prog_compiler_static_F77 \
15514 lt_prog_compiler_no_builtin_flag_F77 \
15515 export_dynamic_flag_spec_F77 \
15516 thread_safe_flag_spec_F77 \
15517 whole_archive_flag_spec_F77 \
15518 enable_shared_with_static_runtimes_F77 \
15519 old_archive_cmds_F77 \
15520 old_archive_from_new_cmds_F77 \
15521 predep_objects_F77 \
15522 postdep_objects_F77 \
15523 predeps_F77 \
15524 postdeps_F77 \
15525 compiler_lib_search_path_F77 \
15526 compiler_lib_search_dirs_F77 \
15527 archive_cmds_F77 \
15528 archive_expsym_cmds_F77 \
15529 postinstall_cmds_F77 \
15530 postuninstall_cmds_F77 \
15531 old_archive_from_expsyms_cmds_F77 \
15532 allow_undefined_flag_F77 \
15533 no_undefined_flag_F77 \
15534 export_symbols_cmds_F77 \
15535 hardcode_libdir_flag_spec_F77 \
15536 hardcode_libdir_flag_spec_ld_F77 \
15537 hardcode_libdir_separator_F77 \
15538 hardcode_automatic_F77 \
15539 module_cmds_F77 \
15540 module_expsym_cmds_F77 \
15541 lt_cv_prog_compiler_c_o_F77 \
15542 fix_srcfile_path_F77 \
15543 exclude_expsyms_F77 \
15544 include_expsyms_F77; do
15545
15546 case $var in
15547 old_archive_cmds_F77 | \
15548 old_archive_from_new_cmds_F77 | \
15549 archive_cmds_F77 | \
15550 archive_expsym_cmds_F77 | \
15551 module_cmds_F77 | \
15552 module_expsym_cmds_F77 | \
15553 old_archive_from_expsyms_cmds_F77 | \
15554 export_symbols_cmds_F77 | \
15555 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15556 postinstall_cmds | postuninstall_cmds | \
15557 old_postinstall_cmds | old_postuninstall_cmds | \
15558 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15559 # Double-quote double-evaled strings.
15560 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15561 ;;
15562 *)
15563 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15564 ;;
15565 esac
15566 done
15567
15568 case $lt_echo in
15569 *'\$0 --fallback-echo"')
15570 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15571 ;;
15572 esac
15573
15574 cfgfile="$ofile"
15575
15576 cat <<__EOF__ >> "$cfgfile"
15577 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15578
15579 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15580
15581 # Shell to use when invoking shell scripts.
15582 SHELL=$lt_SHELL
15583
15584 # Whether or not to build shared libraries.
15585 build_libtool_libs=$enable_shared
15586
15587 # Whether or not to build static libraries.
15588 build_old_libs=$enable_static
15589
15590 # Whether or not to add -lc for building shared libraries.
15591 build_libtool_need_lc=$archive_cmds_need_lc_F77
15592
15593 # Whether or not to disallow shared libs when runtime libs are static
15594 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15595
15596 # Whether or not to optimize for fast installation.
15597 fast_install=$enable_fast_install
15598
15599 # The host system.
15600 host_alias=$host_alias
15601 host=$host
15602 host_os=$host_os
15603
15604 # The build system.
15605 build_alias=$build_alias
15606 build=$build
15607 build_os=$build_os
15608
15609 # An echo program that does not interpret backslashes.
15610 echo=$lt_echo
15611
15612 # The archiver.
15613 AR=$lt_AR
15614 AR_FLAGS=$lt_AR_FLAGS
15615
15616 # A C compiler.
15617 LTCC=$lt_LTCC
15618
15619 # LTCC compiler flags.
15620 LTCFLAGS=$lt_LTCFLAGS
15621
15622 # A language-specific compiler.
15623 CC=$lt_compiler_F77
15624
15625 # Is the compiler the GNU C compiler?
15626 with_gcc=$GCC_F77
15627
15628 # An ERE matcher.
15629 EGREP=$lt_EGREP
15630
15631 # The linker used to build libraries.
15632 LD=$lt_LD_F77
15633
15634 # Whether we need hard or soft links.
15635 LN_S=$lt_LN_S
15636
15637 # A BSD-compatible nm program.
15638 NM=$lt_NM
15639
15640 # A symbol stripping program
15641 STRIP=$lt_STRIP
15642
15643 # Used to examine libraries when file_magic_cmd begins "file"
15644 MAGIC_CMD=$MAGIC_CMD
15645
15646 # Used on cygwin: DLL creation program.
15647 DLLTOOL="$DLLTOOL"
15648
15649 # Used on cygwin: object dumper.
15650 OBJDUMP="$OBJDUMP"
15651
15652 # Used on cygwin: assembler.
15653 AS="$AS"
15654
15655 # The name of the directory that contains temporary libtool files.
15656 objdir=$objdir
15657
15658 # How to create reloadable object files.
15659 reload_flag=$lt_reload_flag
15660 reload_cmds=$lt_reload_cmds
15661
15662 # How to pass a linker flag through the compiler.
15663 wl=$lt_lt_prog_compiler_wl_F77
15664
15665 # Object file suffix (normally "o").
15666 objext="$ac_objext"
15667
15668 # Old archive suffix (normally "a").
15669 libext="$libext"
15670
15671 # Shared library suffix (normally ".so").
15672 shrext_cmds='$shrext_cmds'
15673
15674 # Executable file suffix (normally "").
15675 exeext="$exeext"
15676
15677 # Additional compiler flags for building library objects.
15678 pic_flag=$lt_lt_prog_compiler_pic_F77
15679 pic_mode=$pic_mode
15680
15681 # What is the maximum length of a command?
15682 max_cmd_len=$lt_cv_sys_max_cmd_len
15683
15684 # Does compiler simultaneously support -c and -o options?
15685 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15686
15687 # Must we lock files when doing compilation?
15688 need_locks=$lt_need_locks
15689
15690 # Do we need the lib prefix for modules?
15691 need_lib_prefix=$need_lib_prefix
15692
15693 # Do we need a version for libraries?
15694 need_version=$need_version
15695
15696 # Whether dlopen is supported.
15697 dlopen_support=$enable_dlopen
15698
15699 # Whether dlopen of programs is supported.
15700 dlopen_self=$enable_dlopen_self
15701
15702 # Whether dlopen of statically linked programs is supported.
15703 dlopen_self_static=$enable_dlopen_self_static
15704
15705 # Compiler flag to prevent dynamic linking.
15706 link_static_flag=$lt_lt_prog_compiler_static_F77
15707
15708 # Compiler flag to turn off builtin functions.
15709 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15710
15711 # Compiler flag to allow reflexive dlopens.
15712 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15713
15714 # Compiler flag to generate shared objects directly from archives.
15715 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15716
15717 # Compiler flag to generate thread-safe objects.
15718 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15719
15720 # Library versioning type.
15721 version_type=$version_type
15722
15723 # Format of library name prefix.
15724 libname_spec=$lt_libname_spec
15725
15726 # List of archive names. First name is the real one, the rest are links.
15727 # The last name is the one that the linker finds with -lNAME.
15728 library_names_spec=$lt_library_names_spec
15729
15730 # The coded name of the library, if different from the real name.
15731 soname_spec=$lt_soname_spec
15732
15733 # Commands used to build and install an old-style archive.
15734 RANLIB=$lt_RANLIB
15735 old_archive_cmds=$lt_old_archive_cmds_F77
15736 old_postinstall_cmds=$lt_old_postinstall_cmds
15737 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15738
15739 # Create an old-style archive from a shared archive.
15740 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15741
15742 # Create a temporary old-style archive to link instead of a shared archive.
15743 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15744
15745 # Commands used to build and install a shared archive.
15746 archive_cmds=$lt_archive_cmds_F77
15747 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15748 postinstall_cmds=$lt_postinstall_cmds
15749 postuninstall_cmds=$lt_postuninstall_cmds
15750
15751 # Commands used to build a loadable module (assumed same as above if empty)
15752 module_cmds=$lt_module_cmds_F77
15753 module_expsym_cmds=$lt_module_expsym_cmds_F77
15754
15755 # Commands to strip libraries.
15756 old_striplib=$lt_old_striplib
15757 striplib=$lt_striplib
15758
15759 # Dependencies to place before the objects being linked to create a
15760 # shared library.
15761 predep_objects=$lt_predep_objects_F77
15762
15763 # Dependencies to place after the objects being linked to create a
15764 # shared library.
15765 postdep_objects=$lt_postdep_objects_F77
15766
15767 # Dependencies to place before the objects being linked to create a
15768 # shared library.
15769 predeps=$lt_predeps_F77
15770
15771 # Dependencies to place after the objects being linked to create a
15772 # shared library.
15773 postdeps=$lt_postdeps_F77
15774
15775 # The directories searched by this compiler when creating a shared
15776 # library
15777 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
15778
15779 # The library search path used internally by the compiler when linking
15780 # a shared library.
15781 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15782
15783 # Method to check whether dependent libraries are shared objects.
15784 deplibs_check_method=$lt_deplibs_check_method
15785
15786 # Command to use when deplibs_check_method == file_magic.
15787 file_magic_cmd=$lt_file_magic_cmd
15788
15789 # Flag that allows shared libraries with undefined symbols to be built.
15790 allow_undefined_flag=$lt_allow_undefined_flag_F77
15791
15792 # Flag that forces no undefined symbols.
15793 no_undefined_flag=$lt_no_undefined_flag_F77
15794
15795 # Commands used to finish a libtool library installation in a directory.
15796 finish_cmds=$lt_finish_cmds
15797
15798 # Same as above, but a single script fragment to be evaled but not shown.
15799 finish_eval=$lt_finish_eval
15800
15801 # Take the output of nm and produce a listing of raw symbols and C names.
15802 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15803
15804 # Transform the output of nm in a proper C declaration
15805 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15806
15807 # Transform the output of nm in a C name address pair
15808 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15809
15810 # This is the shared library runtime path variable.
15811 runpath_var=$runpath_var
15812
15813 # This is the shared library path variable.
15814 shlibpath_var=$shlibpath_var
15815
15816 # Is shlibpath searched before the hard-coded library search path?
15817 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15818
15819 # How to hardcode a shared library path into an executable.
15820 hardcode_action=$hardcode_action_F77
15821
15822 # Whether we should hardcode library paths into libraries.
15823 hardcode_into_libs=$hardcode_into_libs
15824
15825 # Flag to hardcode \$libdir into a binary during linking.
15826 # This must work even if \$libdir does not exist.
15827 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15828
15829 # If ld is used when linking, flag to hardcode \$libdir into
15830 # a binary during linking. This must work even if \$libdir does
15831 # not exist.
15832 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15833
15834 # Whether we need a single -rpath flag with a separated argument.
15835 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15836
15837 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15838 # resulting binary.
15839 hardcode_direct=$hardcode_direct_F77
15840
15841 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15842 # resulting binary.
15843 hardcode_minus_L=$hardcode_minus_L_F77
15844
15845 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15846 # the resulting binary.
15847 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15848
15849 # Set to yes if building a shared library automatically hardcodes DIR into the library
15850 # and all subsequent libraries and executables linked against it.
15851 hardcode_automatic=$hardcode_automatic_F77
15852
15853 # Variables whose values should be saved in libtool wrapper scripts and
15854 # restored at relink time.
15855 variables_saved_for_relink="$variables_saved_for_relink"
15856
15857 # Whether libtool must link a program against all its dependency libraries.
15858 link_all_deplibs=$link_all_deplibs_F77
15859
15860 # Compile-time system search path for libraries
15861 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15862
15863 # Run-time system search path for libraries
15864 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15865
15866 # Fix the shell variable \$srcfile for the compiler.
15867 fix_srcfile_path=$lt_fix_srcfile_path
15868
15869 # Set to yes if exported symbols are required.
15870 always_export_symbols=$always_export_symbols_F77
15871
15872 # The commands to list exported symbols.
15873 export_symbols_cmds=$lt_export_symbols_cmds_F77
15874
15875 # The commands to extract the exported symbol list from a shared archive.
15876 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15877
15878 # Symbols that should not be listed in the preloaded symbols.
15879 exclude_expsyms=$lt_exclude_expsyms_F77
15880
15881 # Symbols that must always be exported.
15882 include_expsyms=$lt_include_expsyms_F77
15883
15884 # ### END LIBTOOL TAG CONFIG: $tagname
15885
15886 __EOF__
15887
15888
15889 else
15890 # If there is no Makefile yet, we rely on a make rule to execute
15891 # `config.status --recheck' to rerun these tests and create the
15892 # libtool script then.
15893 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15894 if test -f "$ltmain_in"; then
15895 test -f Makefile && make "$ltmain"
15896 fi
15897 fi
15898
15899
15900 ac_ext=c
15901 ac_cpp='$CPP $CPPFLAGS'
15902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15905
15906 CC="$lt_save_CC"
15907
15908 else
15909 tagname=""
15910 fi
15911 ;;
15912
15913 GCJ)
15914 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15915
15916
15917 # Source file extension for Java test sources.
15918 ac_ext=java
15919
15920 # Object file extension for compiled Java test sources.
15921 objext=o
15922 objext_GCJ=$objext
15923
15924 # Code to be used in simple compile tests
15925 lt_simple_compile_test_code="class foo {}"
15926
15927 # Code to be used in simple link tests
15928 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
15929
15930 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15931
15932 # If no C compiler was specified, use CC.
15933 LTCC=${LTCC-"$CC"}
15934
15935 # If no C compiler flags were specified, use CFLAGS.
15936 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15937
15938 # Allow CC to be a program name with arguments.
15939 compiler=$CC
15940
15941
15942 # save warnings/boilerplate of simple test code
15943 ac_outfile=conftest.$ac_objext
15944 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15945 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15946 _lt_compiler_boilerplate=`cat conftest.err`
15947 $rm conftest*
15948
15949 ac_outfile=conftest.$ac_objext
15950 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15951 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15952 _lt_linker_boilerplate=`cat conftest.err`
15953 $rm -r conftest*
15954
15955
15956 # Allow CC to be a program name with arguments.
15957 lt_save_CC="$CC"
15958 CC=${GCJ-"gcj"}
15959 compiler=$CC
15960 compiler_GCJ=$CC
15961 for cc_temp in $compiler""; do
15962 case $cc_temp in
15963 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15964 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15965 \-*) ;;
15966 *) break;;
15967 esac
15968 done
15969 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15970
15971
15972 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15973 archive_cmds_need_lc_GCJ=no
15974
15975 old_archive_cmds_GCJ=$old_archive_cmds
15976
15977
15978 lt_prog_compiler_no_builtin_flag_GCJ=
15979
15980 if test "$GCC" = yes; then
15981 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15982
15983
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15985 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15986 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15987 $as_echo_n "(cached) " >&6
15988 else
15989 lt_cv_prog_compiler_rtti_exceptions=no
15990 ac_outfile=conftest.$ac_objext
15991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15992 lt_compiler_flag="-fno-rtti -fno-exceptions"
15993 # Insert the option either (1) after the last *FLAGS variable, or
15994 # (2) before a word containing "conftest.", or (3) at the end.
15995 # Note that $ac_compile itself does not contain backslashes and begins
15996 # with a dollar sign (not a hyphen), so the echo should work correctly.
15997 # The option is referenced via a variable to avoid confusing sed.
15998 lt_compile=`echo "$ac_compile" | $SED \
15999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16001 -e 's:$: $lt_compiler_flag:'`
16002 (eval echo "\"\$as_me:16002: $lt_compile\"" >&5)
16003 (eval "$lt_compile" 2>conftest.err)
16004 ac_status=$?
16005 cat conftest.err >&5
16006 echo "$as_me:16006: \$? = $ac_status" >&5
16007 if (exit $ac_status) && test -s "$ac_outfile"; then
16008 # The compiler can only warn and ignore the option if not recognized
16009 # So say no if there are warnings other than the usual output.
16010 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16012 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16013 lt_cv_prog_compiler_rtti_exceptions=yes
16014 fi
16015 fi
16016 $rm conftest*
16017
16018 fi
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16020 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16021
16022 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16023 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16024 else
16025 :
16026 fi
16027
16028 fi
16029
16030 lt_prog_compiler_wl_GCJ=
16031 lt_prog_compiler_pic_GCJ=
16032 lt_prog_compiler_static_GCJ=
16033
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16035 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16036
16037 if test "$GCC" = yes; then
16038 lt_prog_compiler_wl_GCJ='-Wl,'
16039 lt_prog_compiler_static_GCJ='-static'
16040
16041 case $host_os in
16042 aix*)
16043 # All AIX code is PIC.
16044 if test "$host_cpu" = ia64; then
16045 # AIX 5 now supports IA64 processor
16046 lt_prog_compiler_static_GCJ='-Bstatic'
16047 fi
16048 ;;
16049
16050 amigaos*)
16051 # FIXME: we need at least 68020 code to build shared libraries, but
16052 # adding the `-m68020' flag to GCC prevents building anything better,
16053 # like `-m68040'.
16054 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16055 ;;
16056
16057 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16058 # PIC is the default for these OSes.
16059 ;;
16060
16061 mingw* | cygwin* | pw32* | os2*)
16062 # This hack is so that the source file can tell whether it is being
16063 # built for inclusion in a dll (and should export symbols for example).
16064 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16065 # (--disable-auto-import) libraries
16066
16067 ;;
16068
16069 darwin* | rhapsody*)
16070 # PIC is the default on this platform
16071 # Common symbols not allowed in MH_DYLIB files
16072 lt_prog_compiler_pic_GCJ='-fno-common'
16073 ;;
16074
16075 interix[3-9]*)
16076 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16077 # Instead, we relocate shared libraries at runtime.
16078 ;;
16079
16080 msdosdjgpp*)
16081 # Just because we use GCC doesn't mean we suddenly get shared libraries
16082 # on systems that don't support them.
16083 lt_prog_compiler_can_build_shared_GCJ=no
16084 enable_shared=no
16085 ;;
16086
16087 sysv4*MP*)
16088 if test -d /usr/nec; then
16089 lt_prog_compiler_pic_GCJ=-Kconform_pic
16090 fi
16091 ;;
16092
16093 hpux*)
16094 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16095 # not for PA HP-UX.
16096 case $host_cpu in
16097 hppa*64*|ia64*)
16098 # +Z the default
16099 ;;
16100 *)
16101 lt_prog_compiler_pic_GCJ='-fPIC'
16102 ;;
16103 esac
16104 ;;
16105
16106 *)
16107 lt_prog_compiler_pic_GCJ='-fPIC'
16108 ;;
16109 esac
16110 else
16111 # PORTME Check for flag to pass linker flags through the system compiler.
16112 case $host_os in
16113 aix*)
16114 lt_prog_compiler_wl_GCJ='-Wl,'
16115 if test "$host_cpu" = ia64; then
16116 # AIX 5 now supports IA64 processor
16117 lt_prog_compiler_static_GCJ='-Bstatic'
16118 else
16119 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16120 fi
16121 ;;
16122 darwin*)
16123 # PIC is the default on this platform
16124 # Common symbols not allowed in MH_DYLIB files
16125 case $cc_basename in
16126 xlc*)
16127 lt_prog_compiler_pic_GCJ='-qnocommon'
16128 lt_prog_compiler_wl_GCJ='-Wl,'
16129 ;;
16130 esac
16131 ;;
16132
16133 mingw* | cygwin* | pw32* | os2*)
16134 # This hack is so that the source file can tell whether it is being
16135 # built for inclusion in a dll (and should export symbols for example).
16136
16137 ;;
16138
16139 hpux9* | hpux10* | hpux11*)
16140 lt_prog_compiler_wl_GCJ='-Wl,'
16141 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16142 # not for PA HP-UX.
16143 case $host_cpu in
16144 hppa*64*|ia64*)
16145 # +Z the default
16146 ;;
16147 *)
16148 lt_prog_compiler_pic_GCJ='+Z'
16149 ;;
16150 esac
16151 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16152 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16153 ;;
16154
16155 irix5* | irix6* | nonstopux*)
16156 lt_prog_compiler_wl_GCJ='-Wl,'
16157 # PIC (with -KPIC) is the default.
16158 lt_prog_compiler_static_GCJ='-non_shared'
16159 ;;
16160
16161 newsos6)
16162 lt_prog_compiler_pic_GCJ='-KPIC'
16163 lt_prog_compiler_static_GCJ='-Bstatic'
16164 ;;
16165
16166 linux* | k*bsd*-gnu)
16167 case $cc_basename in
16168 icc* | ecc*)
16169 lt_prog_compiler_wl_GCJ='-Wl,'
16170 lt_prog_compiler_pic_GCJ='-KPIC'
16171 lt_prog_compiler_static_GCJ='-static'
16172 ;;
16173 pgcc* | pgf77* | pgf90* | pgf95*)
16174 # Portland Group compilers (*not* the Pentium gcc compiler,
16175 # which looks to be a dead project)
16176 lt_prog_compiler_wl_GCJ='-Wl,'
16177 lt_prog_compiler_pic_GCJ='-fpic'
16178 lt_prog_compiler_static_GCJ='-Bstatic'
16179 ;;
16180 ccc*)
16181 lt_prog_compiler_wl_GCJ='-Wl,'
16182 # All Alpha code is PIC.
16183 lt_prog_compiler_static_GCJ='-non_shared'
16184 ;;
16185 *)
16186 case `$CC -V 2>&1 | sed 5q` in
16187 *Sun\ C*)
16188 # Sun C 5.9
16189 lt_prog_compiler_pic_GCJ='-KPIC'
16190 lt_prog_compiler_static_GCJ='-Bstatic'
16191 lt_prog_compiler_wl_GCJ='-Wl,'
16192 ;;
16193 *Sun\ F*)
16194 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16195 lt_prog_compiler_pic_GCJ='-KPIC'
16196 lt_prog_compiler_static_GCJ='-Bstatic'
16197 lt_prog_compiler_wl_GCJ=''
16198 ;;
16199 esac
16200 ;;
16201 esac
16202 ;;
16203
16204 osf3* | osf4* | osf5*)
16205 lt_prog_compiler_wl_GCJ='-Wl,'
16206 # All OSF/1 code is PIC.
16207 lt_prog_compiler_static_GCJ='-non_shared'
16208 ;;
16209
16210 rdos*)
16211 lt_prog_compiler_static_GCJ='-non_shared'
16212 ;;
16213
16214 solaris*)
16215 lt_prog_compiler_pic_GCJ='-KPIC'
16216 lt_prog_compiler_static_GCJ='-Bstatic'
16217 case $cc_basename in
16218 f77* | f90* | f95*)
16219 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16220 *)
16221 lt_prog_compiler_wl_GCJ='-Wl,';;
16222 esac
16223 ;;
16224
16225 sunos4*)
16226 lt_prog_compiler_wl_GCJ='-Qoption ld '
16227 lt_prog_compiler_pic_GCJ='-PIC'
16228 lt_prog_compiler_static_GCJ='-Bstatic'
16229 ;;
16230
16231 sysv4 | sysv4.2uw2* | sysv4.3*)
16232 lt_prog_compiler_wl_GCJ='-Wl,'
16233 lt_prog_compiler_pic_GCJ='-KPIC'
16234 lt_prog_compiler_static_GCJ='-Bstatic'
16235 ;;
16236
16237 sysv4*MP*)
16238 if test -d /usr/nec ;then
16239 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16240 lt_prog_compiler_static_GCJ='-Bstatic'
16241 fi
16242 ;;
16243
16244 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16245 lt_prog_compiler_wl_GCJ='-Wl,'
16246 lt_prog_compiler_pic_GCJ='-KPIC'
16247 lt_prog_compiler_static_GCJ='-Bstatic'
16248 ;;
16249
16250 unicos*)
16251 lt_prog_compiler_wl_GCJ='-Wl,'
16252 lt_prog_compiler_can_build_shared_GCJ=no
16253 ;;
16254
16255 uts4*)
16256 lt_prog_compiler_pic_GCJ='-pic'
16257 lt_prog_compiler_static_GCJ='-Bstatic'
16258 ;;
16259
16260 *)
16261 lt_prog_compiler_can_build_shared_GCJ=no
16262 ;;
16263 esac
16264 fi
16265
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16267 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16268
16269 #
16270 # Check to make sure the PIC flag actually works.
16271 #
16272 if test -n "$lt_prog_compiler_pic_GCJ"; then
16273
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16275 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16276 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
16277 $as_echo_n "(cached) " >&6
16278 else
16279 lt_cv_prog_compiler_pic_works_GCJ=no
16280 ac_outfile=conftest.$ac_objext
16281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16282 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16283 # Insert the option either (1) after the last *FLAGS variable, or
16284 # (2) before a word containing "conftest.", or (3) at the end.
16285 # Note that $ac_compile itself does not contain backslashes and begins
16286 # with a dollar sign (not a hyphen), so the echo should work correctly.
16287 # The option is referenced via a variable to avoid confusing sed.
16288 lt_compile=`echo "$ac_compile" | $SED \
16289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16291 -e 's:$: $lt_compiler_flag:'`
16292 (eval echo "\"\$as_me:16292: $lt_compile\"" >&5)
16293 (eval "$lt_compile" 2>conftest.err)
16294 ac_status=$?
16295 cat conftest.err >&5
16296 echo "$as_me:16296: \$? = $ac_status" >&5
16297 if (exit $ac_status) && test -s "$ac_outfile"; then
16298 # The compiler can only warn and ignore the option if not recognized
16299 # So say no if there are warnings other than the usual output.
16300 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16302 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16303 lt_cv_prog_compiler_pic_works_GCJ=yes
16304 fi
16305 fi
16306 $rm conftest*
16307
16308 fi
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16310 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16311
16312 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16313 case $lt_prog_compiler_pic_GCJ in
16314 "" | " "*) ;;
16315 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16316 esac
16317 else
16318 lt_prog_compiler_pic_GCJ=
16319 lt_prog_compiler_can_build_shared_GCJ=no
16320 fi
16321
16322 fi
16323 case $host_os in
16324 # For platforms which do not support PIC, -DPIC is meaningless:
16325 *djgpp*)
16326 lt_prog_compiler_pic_GCJ=
16327 ;;
16328 *)
16329 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16330 ;;
16331 esac
16332
16333 #
16334 # Check to make sure the static flag actually works.
16335 #
16336 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16338 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16339 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
16340 $as_echo_n "(cached) " >&6
16341 else
16342 lt_cv_prog_compiler_static_works_GCJ=no
16343 save_LDFLAGS="$LDFLAGS"
16344 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16345 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16346 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16347 # The linker can only warn and ignore the option if not recognized
16348 # So say no if there are warnings
16349 if test -s conftest.err; then
16350 # Append any errors to the config.log.
16351 cat conftest.err 1>&5
16352 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16354 if diff conftest.exp conftest.er2 >/dev/null; then
16355 lt_cv_prog_compiler_static_works_GCJ=yes
16356 fi
16357 else
16358 lt_cv_prog_compiler_static_works_GCJ=yes
16359 fi
16360 fi
16361 $rm -r conftest*
16362 LDFLAGS="$save_LDFLAGS"
16363
16364 fi
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16366 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16367
16368 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16369 :
16370 else
16371 lt_prog_compiler_static_GCJ=
16372 fi
16373
16374
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16376 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16377 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
16378 $as_echo_n "(cached) " >&6
16379 else
16380 lt_cv_prog_compiler_c_o_GCJ=no
16381 $rm -r conftest 2>/dev/null
16382 mkdir conftest
16383 cd conftest
16384 mkdir out
16385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16386
16387 lt_compiler_flag="-o out/conftest2.$ac_objext"
16388 # Insert the option either (1) after the last *FLAGS variable, or
16389 # (2) before a word containing "conftest.", or (3) at the end.
16390 # Note that $ac_compile itself does not contain backslashes and begins
16391 # with a dollar sign (not a hyphen), so the echo should work correctly.
16392 lt_compile=`echo "$ac_compile" | $SED \
16393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16395 -e 's:$: $lt_compiler_flag:'`
16396 (eval echo "\"\$as_me:16396: $lt_compile\"" >&5)
16397 (eval "$lt_compile" 2>out/conftest.err)
16398 ac_status=$?
16399 cat out/conftest.err >&5
16400 echo "$as_me:16400: \$? = $ac_status" >&5
16401 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16402 then
16403 # The compiler can only warn and ignore the option if not recognized
16404 # So say no if there are warnings
16405 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16406 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16407 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16408 lt_cv_prog_compiler_c_o_GCJ=yes
16409 fi
16410 fi
16411 chmod u+w . 2>&5
16412 $rm conftest*
16413 # SGI C++ compiler will create directory out/ii_files/ for
16414 # template instantiation
16415 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16416 $rm out/* && rmdir out
16417 cd ..
16418 rmdir conftest
16419 $rm conftest*
16420
16421 fi
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16423 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16424
16425
16426 hard_links="nottested"
16427 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16428 # do not overwrite the value of need_locks provided by the user
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16430 $as_echo_n "checking if we can lock with hard links... " >&6; }
16431 hard_links=yes
16432 $rm conftest*
16433 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16434 touch conftest.a
16435 ln conftest.a conftest.b 2>&5 || hard_links=no
16436 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16438 $as_echo "$hard_links" >&6; }
16439 if test "$hard_links" = no; then
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16441 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16442 need_locks=warn
16443 fi
16444 else
16445 need_locks=no
16446 fi
16447
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16449 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16450
16451 runpath_var=
16452 allow_undefined_flag_GCJ=
16453 enable_shared_with_static_runtimes_GCJ=no
16454 archive_cmds_GCJ=
16455 archive_expsym_cmds_GCJ=
16456 old_archive_From_new_cmds_GCJ=
16457 old_archive_from_expsyms_cmds_GCJ=
16458 export_dynamic_flag_spec_GCJ=
16459 whole_archive_flag_spec_GCJ=
16460 thread_safe_flag_spec_GCJ=
16461 hardcode_libdir_flag_spec_GCJ=
16462 hardcode_libdir_flag_spec_ld_GCJ=
16463 hardcode_libdir_separator_GCJ=
16464 hardcode_direct_GCJ=no
16465 hardcode_minus_L_GCJ=no
16466 hardcode_shlibpath_var_GCJ=unsupported
16467 link_all_deplibs_GCJ=unknown
16468 hardcode_automatic_GCJ=no
16469 module_cmds_GCJ=
16470 module_expsym_cmds_GCJ=
16471 always_export_symbols_GCJ=no
16472 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16473 # include_expsyms should be a list of space-separated symbols to be *always*
16474 # included in the symbol list
16475 include_expsyms_GCJ=
16476 # exclude_expsyms can be an extended regexp of symbols to exclude
16477 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16478 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16479 # as well as any symbol that contains `d'.
16480 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16481 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16482 # platforms (ab)use it in PIC code, but their linkers get confused if
16483 # the symbol is explicitly referenced. Since portable code cannot
16484 # rely on this symbol name, it's probably fine to never include it in
16485 # preloaded symbol tables.
16486 # Exclude shared library initialization/finalization symbols.
16487 extract_expsyms_cmds=
16488 # Just being paranoid about ensuring that cc_basename is set.
16489 for cc_temp in $compiler""; do
16490 case $cc_temp in
16491 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16492 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16493 \-*) ;;
16494 *) break;;
16495 esac
16496 done
16497 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16498
16499 case $host_os in
16500 cygwin* | mingw* | pw32*)
16501 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16502 # When not using gcc, we currently assume that we are using
16503 # Microsoft Visual C++.
16504 if test "$GCC" != yes; then
16505 with_gnu_ld=no
16506 fi
16507 ;;
16508 interix*)
16509 # we just hope/assume this is gcc and not c89 (= MSVC++)
16510 with_gnu_ld=yes
16511 ;;
16512 openbsd*)
16513 with_gnu_ld=no
16514 ;;
16515 esac
16516
16517 ld_shlibs_GCJ=yes
16518 if test "$with_gnu_ld" = yes; then
16519 # If archive_cmds runs LD, not CC, wlarc should be empty
16520 wlarc='${wl}'
16521
16522 # Set some defaults for GNU ld with shared library support. These
16523 # are reset later if shared libraries are not supported. Putting them
16524 # here allows them to be overridden if necessary.
16525 runpath_var=LD_RUN_PATH
16526 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16527 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16528 # ancient GNU ld didn't support --whole-archive et. al.
16529 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16530 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16531 else
16532 whole_archive_flag_spec_GCJ=
16533 fi
16534 supports_anon_versioning=no
16535 case `$LD -v 2>/dev/null` in
16536 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16537 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16538 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16539 *\ 2.11.*) ;; # other 2.11 versions
16540 *) supports_anon_versioning=yes ;;
16541 esac
16542
16543 # See if GNU ld supports shared libraries.
16544 case $host_os in
16545 aix[3-9]*)
16546 # On AIX/PPC, the GNU linker is very broken
16547 if test "$host_cpu" != ia64; then
16548 ld_shlibs_GCJ=no
16549 cat <<EOF 1>&2
16550
16551 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16552 *** to be unable to reliably create shared libraries on AIX.
16553 *** Therefore, libtool is disabling shared libraries support. If you
16554 *** really care for shared libraries, you may want to modify your PATH
16555 *** so that a non-GNU linker is found, and then restart.
16556
16557 EOF
16558 fi
16559 ;;
16560
16561 amigaos*)
16562 archive_cmds_GCJ='$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)'
16563 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16564 hardcode_minus_L_GCJ=yes
16565
16566 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
16567 # that the semantics of dynamic libraries on AmigaOS, at least up
16568 # to version 4, is to share data among multiple programs linked
16569 # with the same dynamic library. Since this doesn't match the
16570 # behavior of shared libraries on other platforms, we can't use
16571 # them.
16572 ld_shlibs_GCJ=no
16573 ;;
16574
16575 beos*)
16576 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16577 allow_undefined_flag_GCJ=unsupported
16578 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16579 # support --undefined. This deserves some investigation. FIXME
16580 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16581 else
16582 ld_shlibs_GCJ=no
16583 fi
16584 ;;
16585
16586 cygwin* | mingw* | pw32*)
16587 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16588 # as there is no search path for DLLs.
16589 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16590 allow_undefined_flag_GCJ=unsupported
16591 always_export_symbols_GCJ=no
16592 enable_shared_with_static_runtimes_GCJ=yes
16593 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16594
16595 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16596 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16597 # If the export-symbols file already is a .def file (1st line
16598 # is EXPORTS), use it as is; otherwise, prepend...
16599 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16600 cp $export_symbols $output_objdir/$soname.def;
16601 else
16602 echo EXPORTS > $output_objdir/$soname.def;
16603 cat $export_symbols >> $output_objdir/$soname.def;
16604 fi~
16605 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16606 else
16607 ld_shlibs_GCJ=no
16608 fi
16609 ;;
16610
16611 interix[3-9]*)
16612 hardcode_direct_GCJ=no
16613 hardcode_shlibpath_var_GCJ=no
16614 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16615 export_dynamic_flag_spec_GCJ='${wl}-E'
16616 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16617 # Instead, shared libraries are loaded at an image base (0x10000000 by
16618 # default) and relocated if they conflict, which is a slow very memory
16619 # consuming and fragmenting process. To avoid this, we pick a random,
16620 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16621 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16622 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16623 archive_expsym_cmds_GCJ='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'
16624 ;;
16625
16626 gnu* | linux* | k*bsd*-gnu)
16627 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16628 tmp_addflag=
16629 case $cc_basename,$host_cpu in
16630 pgcc*) # Portland Group C compiler
16631 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16632 tmp_addflag=' $pic_flag'
16633 ;;
16634 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16635 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16636 tmp_addflag=' $pic_flag -Mnomain' ;;
16637 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16638 tmp_addflag=' -i_dynamic' ;;
16639 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16640 tmp_addflag=' -i_dynamic -nofor_main' ;;
16641 ifc* | ifort*) # Intel Fortran compiler
16642 tmp_addflag=' -nofor_main' ;;
16643 esac
16644 case `$CC -V 2>&1 | sed 5q` in
16645 *Sun\ C*) # Sun C 5.9
16646 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16647 tmp_sharedflag='-G' ;;
16648 *Sun\ F*) # Sun Fortran 8.3
16649 tmp_sharedflag='-G' ;;
16650 *)
16651 tmp_sharedflag='-shared' ;;
16652 esac
16653 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16654
16655 if test $supports_anon_versioning = yes; then
16656 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16657 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16658 $echo "local: *; };" >> $output_objdir/$libname.ver~
16659 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16660 fi
16661 link_all_deplibs_GCJ=no
16662 else
16663 ld_shlibs_GCJ=no
16664 fi
16665 ;;
16666
16667 netbsd* | netbsdelf*-gnu)
16668 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16669 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16670 wlarc=
16671 else
16672 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16673 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16674 fi
16675 ;;
16676
16677 solaris*)
16678 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16679 ld_shlibs_GCJ=no
16680 cat <<EOF 1>&2
16681
16682 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16683 *** create shared libraries on Solaris systems. Therefore, libtool
16684 *** is disabling shared libraries support. We urge you to upgrade GNU
16685 *** binutils to release 2.9.1 or newer. Another option is to modify
16686 *** your PATH or compiler configuration so that the native linker is
16687 *** used, and then restart.
16688
16689 EOF
16690 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16691 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16692 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16693 else
16694 ld_shlibs_GCJ=no
16695 fi
16696 ;;
16697
16698 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16699 case `$LD -v 2>&1` in
16700 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16701 ld_shlibs_GCJ=no
16702 cat <<_LT_EOF 1>&2
16703
16704 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16705 *** reliably create shared libraries on SCO systems. Therefore, libtool
16706 *** is disabling shared libraries support. We urge you to upgrade GNU
16707 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16708 *** your PATH or compiler configuration so that the native linker is
16709 *** used, and then restart.
16710
16711 _LT_EOF
16712 ;;
16713 *)
16714 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16715 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16716 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16717 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16718 else
16719 ld_shlibs_GCJ=no
16720 fi
16721 ;;
16722 esac
16723 ;;
16724
16725 sunos4*)
16726 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16727 wlarc=
16728 hardcode_direct_GCJ=yes
16729 hardcode_shlibpath_var_GCJ=no
16730 ;;
16731
16732 *)
16733 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16734 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16735 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16736 else
16737 ld_shlibs_GCJ=no
16738 fi
16739 ;;
16740 esac
16741
16742 if test "$ld_shlibs_GCJ" = no; then
16743 runpath_var=
16744 hardcode_libdir_flag_spec_GCJ=
16745 export_dynamic_flag_spec_GCJ=
16746 whole_archive_flag_spec_GCJ=
16747 fi
16748 else
16749 # PORTME fill in a description of your system's linker (not GNU ld)
16750 case $host_os in
16751 aix3*)
16752 allow_undefined_flag_GCJ=unsupported
16753 always_export_symbols_GCJ=yes
16754 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16755 # Note: this linker hardcodes the directories in LIBPATH if there
16756 # are no directories specified by -L.
16757 hardcode_minus_L_GCJ=yes
16758 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16759 # Neither direct hardcoding nor static linking is supported with a
16760 # broken collect2.
16761 hardcode_direct_GCJ=unsupported
16762 fi
16763 ;;
16764
16765 aix[4-9]*)
16766 if test "$host_cpu" = ia64; then
16767 # On IA64, the linker does run time linking by default, so we don't
16768 # have to do anything special.
16769 aix_use_runtimelinking=no
16770 exp_sym_flag='-Bexport'
16771 no_entry_flag=""
16772 else
16773 # If we're using GNU nm, then we don't want the "-C" option.
16774 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16775 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16776 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16777 else
16778 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16779 fi
16780 aix_use_runtimelinking=no
16781
16782 # Test if we are trying to use run time linking or normal
16783 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16784 # need to do runtime linking.
16785 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16786 for ld_flag in $LDFLAGS; do
16787 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16788 aix_use_runtimelinking=yes
16789 break
16790 fi
16791 done
16792 ;;
16793 esac
16794
16795 exp_sym_flag='-bexport'
16796 no_entry_flag='-bnoentry'
16797 fi
16798
16799 # When large executables or shared objects are built, AIX ld can
16800 # have problems creating the table of contents. If linking a library
16801 # or program results in "error TOC overflow" add -mminimal-toc to
16802 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16803 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16804
16805 archive_cmds_GCJ=''
16806 hardcode_direct_GCJ=yes
16807 hardcode_libdir_separator_GCJ=':'
16808 link_all_deplibs_GCJ=yes
16809
16810 if test "$GCC" = yes; then
16811 case $host_os in aix4.[012]|aix4.[012].*)
16812 # We only want to do this on AIX 4.2 and lower, the check
16813 # below for broken collect2 doesn't work under 4.3+
16814 collect2name=`${CC} -print-prog-name=collect2`
16815 if test -f "$collect2name" && \
16816 strings "$collect2name" | grep resolve_lib_name >/dev/null
16817 then
16818 # We have reworked collect2
16819 :
16820 else
16821 # We have old collect2
16822 hardcode_direct_GCJ=unsupported
16823 # It fails to find uninstalled libraries when the uninstalled
16824 # path is not listed in the libpath. Setting hardcode_minus_L
16825 # to unsupported forces relinking
16826 hardcode_minus_L_GCJ=yes
16827 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16828 hardcode_libdir_separator_GCJ=
16829 fi
16830 ;;
16831 esac
16832 shared_flag='-shared'
16833 if test "$aix_use_runtimelinking" = yes; then
16834 shared_flag="$shared_flag "'${wl}-G'
16835 fi
16836 else
16837 # not using gcc
16838 if test "$host_cpu" = ia64; then
16839 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16840 # chokes on -Wl,-G. The following line is correct:
16841 shared_flag='-G'
16842 else
16843 if test "$aix_use_runtimelinking" = yes; then
16844 shared_flag='${wl}-G'
16845 else
16846 shared_flag='${wl}-bM:SRE'
16847 fi
16848 fi
16849 fi
16850
16851 # It seems that -bexpall does not export symbols beginning with
16852 # underscore (_), so it is better to generate a list of symbols to export.
16853 always_export_symbols_GCJ=yes
16854 if test "$aix_use_runtimelinking" = yes; then
16855 # Warning - without using the other runtime loading flags (-brtl),
16856 # -berok will link without error, but may produce a broken library.
16857 allow_undefined_flag_GCJ='-berok'
16858 # Determine the default libpath from the value encoded in an empty executable.
16859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16860 /* end confdefs.h. */
16861
16862 int
16863 main ()
16864 {
16865
16866 ;
16867 return 0;
16868 }
16869 _ACEOF
16870 if ac_fn_c_try_link "$LINENO"; then :
16871
16872 lt_aix_libpath_sed='
16873 /Import File Strings/,/^$/ {
16874 /^0/ {
16875 s/^0 *\(.*\)$/\1/
16876 p
16877 }
16878 }'
16879 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16880 # Check for a 64-bit object if we didn't find anything.
16881 if test -z "$aix_libpath"; then
16882 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16883 fi
16884 fi
16885 rm -f core conftest.err conftest.$ac_objext \
16886 conftest$ac_exeext conftest.$ac_ext
16887 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16888
16889 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16890 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16891 else
16892 if test "$host_cpu" = ia64; then
16893 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16894 allow_undefined_flag_GCJ="-z nodefs"
16895 archive_expsym_cmds_GCJ="\$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"
16896 else
16897 # Determine the default libpath from the value encoded in an empty executable.
16898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16899 /* end confdefs.h. */
16900
16901 int
16902 main ()
16903 {
16904
16905 ;
16906 return 0;
16907 }
16908 _ACEOF
16909 if ac_fn_c_try_link "$LINENO"; then :
16910
16911 lt_aix_libpath_sed='
16912 /Import File Strings/,/^$/ {
16913 /^0/ {
16914 s/^0 *\(.*\)$/\1/
16915 p
16916 }
16917 }'
16918 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16919 # Check for a 64-bit object if we didn't find anything.
16920 if test -z "$aix_libpath"; then
16921 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16922 fi
16923 fi
16924 rm -f core conftest.err conftest.$ac_objext \
16925 conftest$ac_exeext conftest.$ac_ext
16926 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16927
16928 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16929 # Warning - without using the other run time loading flags,
16930 # -berok will link without error, but may produce a broken library.
16931 no_undefined_flag_GCJ=' ${wl}-bernotok'
16932 allow_undefined_flag_GCJ=' ${wl}-berok'
16933 # Exported symbols can be pulled into shared objects from archives
16934 whole_archive_flag_spec_GCJ='$convenience'
16935 archive_cmds_need_lc_GCJ=yes
16936 # This is similar to how AIX traditionally builds its shared libraries.
16937 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16938 fi
16939 fi
16940 ;;
16941
16942 amigaos*)
16943 archive_cmds_GCJ='$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)'
16944 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16945 hardcode_minus_L_GCJ=yes
16946 # see comment about different semantics on the GNU ld section
16947 ld_shlibs_GCJ=no
16948 ;;
16949
16950 bsdi[45]*)
16951 export_dynamic_flag_spec_GCJ=-rdynamic
16952 ;;
16953
16954 cygwin* | mingw* | pw32*)
16955 # When not using gcc, we currently assume that we are using
16956 # Microsoft Visual C++.
16957 # hardcode_libdir_flag_spec is actually meaningless, as there is
16958 # no search path for DLLs.
16959 hardcode_libdir_flag_spec_GCJ=' '
16960 allow_undefined_flag_GCJ=unsupported
16961 # Tell ltmain to make .lib files, not .a files.
16962 libext=lib
16963 # Tell ltmain to make .dll files, not .so files.
16964 shrext_cmds=".dll"
16965 # FIXME: Setting linknames here is a bad hack.
16966 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16967 # The linker will automatically build a .lib file if we build a DLL.
16968 old_archive_From_new_cmds_GCJ='true'
16969 # FIXME: Should let the user specify the lib program.
16970 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16971 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16972 enable_shared_with_static_runtimes_GCJ=yes
16973 ;;
16974
16975 darwin* | rhapsody*)
16976 case $host_os in
16977 rhapsody* | darwin1.[012])
16978 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16979 ;;
16980 *) # Darwin 1.3 on
16981 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16982 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16983 else
16984 case ${MACOSX_DEPLOYMENT_TARGET} in
16985 10.[012])
16986 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16987 ;;
16988 10.*)
16989 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16990 ;;
16991 esac
16992 fi
16993 ;;
16994 esac
16995 archive_cmds_need_lc_GCJ=no
16996 hardcode_direct_GCJ=no
16997 hardcode_automatic_GCJ=yes
16998 hardcode_shlibpath_var_GCJ=unsupported
16999 whole_archive_flag_spec_GCJ=''
17000 link_all_deplibs_GCJ=yes
17001 if test "$GCC" = yes ; then
17002 output_verbose_link_cmd='echo'
17003 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17004 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17005 archive_expsym_cmds_GCJ="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}"
17006 module_expsym_cmds_GCJ="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}"
17007 else
17008 case $cc_basename in
17009 xlc*)
17010 output_verbose_link_cmd='echo'
17011 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17012 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17013 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17014 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17015 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17016 ;;
17017 *)
17018 ld_shlibs_GCJ=no
17019 ;;
17020 esac
17021 fi
17022 ;;
17023
17024 dgux*)
17025 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17026 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17027 hardcode_shlibpath_var_GCJ=no
17028 ;;
17029
17030 freebsd1*)
17031 ld_shlibs_GCJ=no
17032 ;;
17033
17034 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17035 # support. Future versions do this automatically, but an explicit c++rt0.o
17036 # does not break anything, and helps significantly (at the cost of a little
17037 # extra space).
17038 freebsd2.2*)
17039 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17040 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17041 hardcode_direct_GCJ=yes
17042 hardcode_shlibpath_var_GCJ=no
17043 ;;
17044
17045 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17046 freebsd2*)
17047 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17048 hardcode_direct_GCJ=yes
17049 hardcode_minus_L_GCJ=yes
17050 hardcode_shlibpath_var_GCJ=no
17051 ;;
17052
17053 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17054 freebsd* | dragonfly*)
17055 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17056 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17057 hardcode_direct_GCJ=yes
17058 hardcode_shlibpath_var_GCJ=no
17059 ;;
17060
17061 hpux9*)
17062 if test "$GCC" = yes; then
17063 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17064 else
17065 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17066 fi
17067 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17068 hardcode_libdir_separator_GCJ=:
17069 hardcode_direct_GCJ=yes
17070
17071 # hardcode_minus_L: Not really in the search PATH,
17072 # but as the default location of the library.
17073 hardcode_minus_L_GCJ=yes
17074 export_dynamic_flag_spec_GCJ='${wl}-E'
17075 ;;
17076
17077 hpux10*)
17078 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17079 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17080 else
17081 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17082 fi
17083 if test "$with_gnu_ld" = no; then
17084 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17085 hardcode_libdir_separator_GCJ=:
17086
17087 hardcode_direct_GCJ=yes
17088 export_dynamic_flag_spec_GCJ='${wl}-E'
17089
17090 # hardcode_minus_L: Not really in the search PATH,
17091 # but as the default location of the library.
17092 hardcode_minus_L_GCJ=yes
17093 fi
17094 ;;
17095
17096 hpux11*)
17097 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17098 case $host_cpu in
17099 hppa*64*)
17100 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17101 ;;
17102 ia64*)
17103 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17104 ;;
17105 *)
17106 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17107 ;;
17108 esac
17109 else
17110 case $host_cpu in
17111 hppa*64*)
17112 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17113 ;;
17114 ia64*)
17115 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17116 ;;
17117 *)
17118 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17119 ;;
17120 esac
17121 fi
17122 if test "$with_gnu_ld" = no; then
17123 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17124 hardcode_libdir_separator_GCJ=:
17125
17126 case $host_cpu in
17127 hppa*64*|ia64*)
17128 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17129 hardcode_direct_GCJ=no
17130 hardcode_shlibpath_var_GCJ=no
17131 ;;
17132 *)
17133 hardcode_direct_GCJ=yes
17134 export_dynamic_flag_spec_GCJ='${wl}-E'
17135
17136 # hardcode_minus_L: Not really in the search PATH,
17137 # but as the default location of the library.
17138 hardcode_minus_L_GCJ=yes
17139 ;;
17140 esac
17141 fi
17142 ;;
17143
17144 irix5* | irix6* | nonstopux*)
17145 if test "$GCC" = yes; then
17146 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17147 else
17148 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17149 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17150 fi
17151 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17152 hardcode_libdir_separator_GCJ=:
17153 link_all_deplibs_GCJ=yes
17154 ;;
17155
17156 netbsd* | netbsdelf*-gnu)
17157 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17158 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17159 else
17160 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17161 fi
17162 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17163 hardcode_direct_GCJ=yes
17164 hardcode_shlibpath_var_GCJ=no
17165 ;;
17166
17167 newsos6)
17168 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17169 hardcode_direct_GCJ=yes
17170 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17171 hardcode_libdir_separator_GCJ=:
17172 hardcode_shlibpath_var_GCJ=no
17173 ;;
17174
17175 openbsd*)
17176 if test -f /usr/libexec/ld.so; then
17177 hardcode_direct_GCJ=yes
17178 hardcode_shlibpath_var_GCJ=no
17179 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17180 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17181 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17182 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17183 export_dynamic_flag_spec_GCJ='${wl}-E'
17184 else
17185 case $host_os in
17186 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17187 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17188 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17189 ;;
17190 *)
17191 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17192 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17193 ;;
17194 esac
17195 fi
17196 else
17197 ld_shlibs_GCJ=no
17198 fi
17199 ;;
17200
17201 os2*)
17202 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17203 hardcode_minus_L_GCJ=yes
17204 allow_undefined_flag_GCJ=unsupported
17205 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17206 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17207 ;;
17208
17209 osf3*)
17210 if test "$GCC" = yes; then
17211 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17212 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17213 else
17214 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17215 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17216 fi
17217 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17218 hardcode_libdir_separator_GCJ=:
17219 ;;
17220
17221 osf4* | osf5*) # as osf3* with the addition of -msym flag
17222 if test "$GCC" = yes; then
17223 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17224 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17225 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17226 else
17227 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17228 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17229 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17230 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17231
17232 # Both c and cxx compiler support -rpath directly
17233 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17234 fi
17235 hardcode_libdir_separator_GCJ=:
17236 ;;
17237
17238 solaris*)
17239 no_undefined_flag_GCJ=' -z text'
17240 if test "$GCC" = yes; then
17241 wlarc='${wl}'
17242 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17243 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17244 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17245 else
17246 wlarc=''
17247 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17248 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17249 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17250 fi
17251 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17252 hardcode_shlibpath_var_GCJ=no
17253 case $host_os in
17254 solaris2.[0-5] | solaris2.[0-5].*) ;;
17255 *)
17256 # The compiler driver will combine and reorder linker options,
17257 # but understands `-z linker_flag'. GCC discards it without `$wl',
17258 # but is careful enough not to reorder.
17259 # Supported since Solaris 2.6 (maybe 2.5.1?)
17260 if test "$GCC" = yes; then
17261 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17262 else
17263 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17264 fi
17265 ;;
17266 esac
17267 link_all_deplibs_GCJ=yes
17268 ;;
17269
17270 sunos4*)
17271 if test "x$host_vendor" = xsequent; then
17272 # Use $CC to link under sequent, because it throws in some extra .o
17273 # files that make .init and .fini sections work.
17274 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17275 else
17276 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17277 fi
17278 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17279 hardcode_direct_GCJ=yes
17280 hardcode_minus_L_GCJ=yes
17281 hardcode_shlibpath_var_GCJ=no
17282 ;;
17283
17284 sysv4)
17285 case $host_vendor in
17286 sni)
17287 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17288 hardcode_direct_GCJ=yes # is this really true???
17289 ;;
17290 siemens)
17291 ## LD is ld it makes a PLAMLIB
17292 ## CC just makes a GrossModule.
17293 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17294 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17295 hardcode_direct_GCJ=no
17296 ;;
17297 motorola)
17298 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17299 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17300 ;;
17301 esac
17302 runpath_var='LD_RUN_PATH'
17303 hardcode_shlibpath_var_GCJ=no
17304 ;;
17305
17306 sysv4.3*)
17307 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17308 hardcode_shlibpath_var_GCJ=no
17309 export_dynamic_flag_spec_GCJ='-Bexport'
17310 ;;
17311
17312 sysv4*MP*)
17313 if test -d /usr/nec; then
17314 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17315 hardcode_shlibpath_var_GCJ=no
17316 runpath_var=LD_RUN_PATH
17317 hardcode_runpath_var=yes
17318 ld_shlibs_GCJ=yes
17319 fi
17320 ;;
17321
17322 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17323 no_undefined_flag_GCJ='${wl}-z,text'
17324 archive_cmds_need_lc_GCJ=no
17325 hardcode_shlibpath_var_GCJ=no
17326 runpath_var='LD_RUN_PATH'
17327
17328 if test "$GCC" = yes; then
17329 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17330 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17331 else
17332 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17333 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17334 fi
17335 ;;
17336
17337 sysv5* | sco3.2v5* | sco5v6*)
17338 # Note: We can NOT use -z defs as we might desire, because we do not
17339 # link with -lc, and that would cause any symbols used from libc to
17340 # always be unresolved, which means just about no library would
17341 # ever link correctly. If we're not using GNU ld we use -z text
17342 # though, which does catch some bad symbols but isn't as heavy-handed
17343 # as -z defs.
17344 no_undefined_flag_GCJ='${wl}-z,text'
17345 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17346 archive_cmds_need_lc_GCJ=no
17347 hardcode_shlibpath_var_GCJ=no
17348 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17349 hardcode_libdir_separator_GCJ=':'
17350 link_all_deplibs_GCJ=yes
17351 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17352 runpath_var='LD_RUN_PATH'
17353
17354 if test "$GCC" = yes; then
17355 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17356 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17357 else
17358 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17359 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17360 fi
17361 ;;
17362
17363 uts4*)
17364 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17365 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17366 hardcode_shlibpath_var_GCJ=no
17367 ;;
17368
17369 *)
17370 ld_shlibs_GCJ=no
17371 ;;
17372 esac
17373 fi
17374
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17376 $as_echo "$ld_shlibs_GCJ" >&6; }
17377 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17378
17379 #
17380 # Do we need to explicitly link libc?
17381 #
17382 case "x$archive_cmds_need_lc_GCJ" in
17383 x|xyes)
17384 # Assume -lc should be added
17385 archive_cmds_need_lc_GCJ=yes
17386
17387 if test "$enable_shared" = yes && test "$GCC" = yes; then
17388 case $archive_cmds_GCJ in
17389 *'~'*)
17390 # FIXME: we may have to deal with multi-command sequences.
17391 ;;
17392 '$CC '*)
17393 # Test whether the compiler implicitly links with -lc since on some
17394 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17395 # to ld, don't add -lc before -lgcc.
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17397 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17398 $rm conftest*
17399 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17400
17401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17402 (eval $ac_compile) 2>&5
17403 ac_status=$?
17404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17405 test $ac_status = 0; } 2>conftest.err; then
17406 soname=conftest
17407 lib=conftest
17408 libobjs=conftest.$ac_objext
17409 deplibs=
17410 wl=$lt_prog_compiler_wl_GCJ
17411 pic_flag=$lt_prog_compiler_pic_GCJ
17412 compiler_flags=-v
17413 linker_flags=-v
17414 verstring=
17415 output_objdir=.
17416 libname=conftest
17417 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17418 allow_undefined_flag_GCJ=
17419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17420 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17421 ac_status=$?
17422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17423 test $ac_status = 0; }
17424 then
17425 archive_cmds_need_lc_GCJ=no
17426 else
17427 archive_cmds_need_lc_GCJ=yes
17428 fi
17429 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17430 else
17431 cat conftest.err 1>&5
17432 fi
17433 $rm conftest*
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17435 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17436 ;;
17437 esac
17438 fi
17439 ;;
17440 esac
17441
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17443 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17444 library_names_spec=
17445 libname_spec='lib$name'
17446 soname_spec=
17447 shrext_cmds=".so"
17448 postinstall_cmds=
17449 postuninstall_cmds=
17450 finish_cmds=
17451 finish_eval=
17452 shlibpath_var=
17453 shlibpath_overrides_runpath=unknown
17454 version_type=none
17455 dynamic_linker="$host_os ld.so"
17456 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17457
17458 need_lib_prefix=unknown
17459 hardcode_into_libs=no
17460
17461 # when you set need_version to no, make sure it does not cause -set_version
17462 # flags to be left without arguments
17463 need_version=unknown
17464
17465 case $host_os in
17466 aix3*)
17467 version_type=linux
17468 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17469 shlibpath_var=LIBPATH
17470
17471 # AIX 3 has no versioning support, so we append a major version to the name.
17472 soname_spec='${libname}${release}${shared_ext}$major'
17473 ;;
17474
17475 aix[4-9]*)
17476 version_type=linux
17477 need_lib_prefix=no
17478 need_version=no
17479 hardcode_into_libs=yes
17480 if test "$host_cpu" = ia64; then
17481 # AIX 5 supports IA64
17482 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17483 shlibpath_var=LD_LIBRARY_PATH
17484 else
17485 # With GCC up to 2.95.x, collect2 would create an import file
17486 # for dependence libraries. The import file would start with
17487 # the line `#! .'. This would cause the generated library to
17488 # depend on `.', always an invalid library. This was fixed in
17489 # development snapshots of GCC prior to 3.0.
17490 case $host_os in
17491 aix4 | aix4.[01] | aix4.[01].*)
17492 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17493 echo ' yes '
17494 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17495 :
17496 else
17497 can_build_shared=no
17498 fi
17499 ;;
17500 esac
17501 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17502 # soname into executable. Probably we can add versioning support to
17503 # collect2, so additional links can be useful in future.
17504 if test "$aix_use_runtimelinking" = yes; then
17505 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17506 # instead of lib<name>.a to let people know that these are not
17507 # typical AIX shared libraries.
17508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17509 else
17510 # We preserve .a as extension for shared libraries through AIX4.2
17511 # and later when we are not doing run time linking.
17512 library_names_spec='${libname}${release}.a $libname.a'
17513 soname_spec='${libname}${release}${shared_ext}$major'
17514 fi
17515 shlibpath_var=LIBPATH
17516 fi
17517 ;;
17518
17519 amigaos*)
17520 library_names_spec='$libname.ixlibrary $libname.a'
17521 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17522 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17523 ;;
17524
17525 beos*)
17526 library_names_spec='${libname}${shared_ext}'
17527 dynamic_linker="$host_os ld.so"
17528 shlibpath_var=LIBRARY_PATH
17529 ;;
17530
17531 bsdi[45]*)
17532 version_type=linux
17533 need_version=no
17534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17535 soname_spec='${libname}${release}${shared_ext}$major'
17536 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17537 shlibpath_var=LD_LIBRARY_PATH
17538 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17539 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17540 # the default ld.so.conf also contains /usr/contrib/lib and
17541 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17542 # libtool to hard-code these into programs
17543 ;;
17544
17545 cygwin* | mingw* | pw32*)
17546 version_type=windows
17547 shrext_cmds=".dll"
17548 need_version=no
17549 need_lib_prefix=no
17550
17551 case $GCC,$host_os in
17552 yes,cygwin* | yes,mingw* | yes,pw32*)
17553 library_names_spec='$libname.dll.a'
17554 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17555 postinstall_cmds='base_file=`basename \${file}`~
17556 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17557 dldir=$destdir/`dirname \$dlpath`~
17558 test -d \$dldir || mkdir -p \$dldir~
17559 $install_prog $dir/$dlname \$dldir/$dlname~
17560 chmod a+x \$dldir/$dlname'
17561 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17562 dlpath=$dir/\$dldll~
17563 $rm \$dlpath'
17564 shlibpath_overrides_runpath=yes
17565
17566 case $host_os in
17567 cygwin*)
17568 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17569 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17570 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17571 ;;
17572 mingw*)
17573 # MinGW DLLs use traditional 'lib' prefix
17574 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17575 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17576 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17577 # It is most probably a Windows format PATH printed by
17578 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17579 # path with ; separators, and with drive letters. We can handle the
17580 # drive letters (cygwin fileutils understands them), so leave them,
17581 # especially as we might pass files found there to a mingw objdump,
17582 # which wouldn't understand a cygwinified path. Ahh.
17583 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17584 else
17585 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17586 fi
17587 ;;
17588 pw32*)
17589 # pw32 DLLs use 'pw' prefix rather than 'lib'
17590 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17591 ;;
17592 esac
17593 ;;
17594
17595 *)
17596 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17597 ;;
17598 esac
17599 dynamic_linker='Win32 ld.exe'
17600 # FIXME: first we should search . and the directory the executable is in
17601 shlibpath_var=PATH
17602 ;;
17603
17604 darwin* | rhapsody*)
17605 dynamic_linker="$host_os dyld"
17606 version_type=darwin
17607 need_lib_prefix=no
17608 need_version=no
17609 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17610 soname_spec='${libname}${release}${major}$shared_ext'
17611 shlibpath_overrides_runpath=yes
17612 shlibpath_var=DYLD_LIBRARY_PATH
17613 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17614
17615 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17616 ;;
17617
17618 dgux*)
17619 version_type=linux
17620 need_lib_prefix=no
17621 need_version=no
17622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17623 soname_spec='${libname}${release}${shared_ext}$major'
17624 shlibpath_var=LD_LIBRARY_PATH
17625 ;;
17626
17627 freebsd1*)
17628 dynamic_linker=no
17629 ;;
17630
17631 freebsd* | dragonfly*)
17632 # DragonFly does not have aout. When/if they implement a new
17633 # versioning mechanism, adjust this.
17634 if test -x /usr/bin/objformat; then
17635 objformat=`/usr/bin/objformat`
17636 else
17637 case $host_os in
17638 freebsd[123]*) objformat=aout ;;
17639 *) objformat=elf ;;
17640 esac
17641 fi
17642 version_type=freebsd-$objformat
17643 case $version_type in
17644 freebsd-elf*)
17645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17646 need_version=no
17647 need_lib_prefix=no
17648 ;;
17649 freebsd-*)
17650 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17651 need_version=yes
17652 ;;
17653 esac
17654 shlibpath_var=LD_LIBRARY_PATH
17655 case $host_os in
17656 freebsd2*)
17657 shlibpath_overrides_runpath=yes
17658 ;;
17659 freebsd3.[01]* | freebsdelf3.[01]*)
17660 shlibpath_overrides_runpath=yes
17661 hardcode_into_libs=yes
17662 ;;
17663 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17664 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17665 shlibpath_overrides_runpath=no
17666 hardcode_into_libs=yes
17667 ;;
17668 *) # from 4.6 on, and DragonFly
17669 shlibpath_overrides_runpath=yes
17670 hardcode_into_libs=yes
17671 ;;
17672 esac
17673 ;;
17674
17675 gnu*)
17676 version_type=linux
17677 need_lib_prefix=no
17678 need_version=no
17679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17680 soname_spec='${libname}${release}${shared_ext}$major'
17681 shlibpath_var=LD_LIBRARY_PATH
17682 hardcode_into_libs=yes
17683 ;;
17684
17685 hpux9* | hpux10* | hpux11*)
17686 # Give a soname corresponding to the major version so that dld.sl refuses to
17687 # link against other versions.
17688 version_type=sunos
17689 need_lib_prefix=no
17690 need_version=no
17691 case $host_cpu in
17692 ia64*)
17693 shrext_cmds='.so'
17694 hardcode_into_libs=yes
17695 dynamic_linker="$host_os dld.so"
17696 shlibpath_var=LD_LIBRARY_PATH
17697 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17699 soname_spec='${libname}${release}${shared_ext}$major'
17700 if test "X$HPUX_IA64_MODE" = X32; then
17701 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17702 else
17703 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17704 fi
17705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17706 ;;
17707 hppa*64*)
17708 shrext_cmds='.sl'
17709 hardcode_into_libs=yes
17710 dynamic_linker="$host_os dld.sl"
17711 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17712 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17714 soname_spec='${libname}${release}${shared_ext}$major'
17715 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17716 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17717 ;;
17718 *)
17719 shrext_cmds='.sl'
17720 dynamic_linker="$host_os dld.sl"
17721 shlibpath_var=SHLIB_PATH
17722 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17724 soname_spec='${libname}${release}${shared_ext}$major'
17725 ;;
17726 esac
17727 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17728 postinstall_cmds='chmod 555 $lib'
17729 ;;
17730
17731 interix[3-9]*)
17732 version_type=linux
17733 need_lib_prefix=no
17734 need_version=no
17735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17736 soname_spec='${libname}${release}${shared_ext}$major'
17737 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17738 shlibpath_var=LD_LIBRARY_PATH
17739 shlibpath_overrides_runpath=no
17740 hardcode_into_libs=yes
17741 ;;
17742
17743 irix5* | irix6* | nonstopux*)
17744 case $host_os in
17745 nonstopux*) version_type=nonstopux ;;
17746 *)
17747 if test "$lt_cv_prog_gnu_ld" = yes; then
17748 version_type=linux
17749 else
17750 version_type=irix
17751 fi ;;
17752 esac
17753 need_lib_prefix=no
17754 need_version=no
17755 soname_spec='${libname}${release}${shared_ext}$major'
17756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17757 case $host_os in
17758 irix5* | nonstopux*)
17759 libsuff= shlibsuff=
17760 ;;
17761 *)
17762 case $LD in # libtool.m4 will add one of these switches to LD
17763 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17764 libsuff= shlibsuff= libmagic=32-bit;;
17765 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17766 libsuff=32 shlibsuff=N32 libmagic=N32;;
17767 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17768 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17769 *) libsuff= shlibsuff= libmagic=never-match;;
17770 esac
17771 ;;
17772 esac
17773 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17774 shlibpath_overrides_runpath=no
17775 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17776 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17777 hardcode_into_libs=yes
17778 ;;
17779
17780 # No shared lib support for Linux oldld, aout, or coff.
17781 linux*oldld* | linux*aout* | linux*coff*)
17782 dynamic_linker=no
17783 ;;
17784
17785 # This must be Linux ELF.
17786 linux* | k*bsd*-gnu)
17787 version_type=linux
17788 need_lib_prefix=no
17789 need_version=no
17790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17791 soname_spec='${libname}${release}${shared_ext}$major'
17792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17793 shlibpath_var=LD_LIBRARY_PATH
17794 shlibpath_overrides_runpath=no
17795 # This implies no fast_install, which is unacceptable.
17796 # Some rework will be needed to allow for fast_install
17797 # before this can be enabled.
17798 hardcode_into_libs=yes
17799
17800 # Append ld.so.conf contents to the search path
17801 if test -f /etc/ld.so.conf; then
17802 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;/^$/d' | tr '\n' ' '`
17803 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17804 fi
17805
17806 # We used to test for /lib/ld.so.1 and disable shared libraries on
17807 # powerpc, because MkLinux only supported shared libraries with the
17808 # GNU dynamic linker. Since this was broken with cross compilers,
17809 # most powerpc-linux boxes support dynamic linking these days and
17810 # people can always --disable-shared, the test was removed, and we
17811 # assume the GNU/Linux dynamic linker is in use.
17812 dynamic_linker='GNU/Linux ld.so'
17813 ;;
17814
17815 netbsdelf*-gnu)
17816 version_type=linux
17817 need_lib_prefix=no
17818 need_version=no
17819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17820 soname_spec='${libname}${release}${shared_ext}$major'
17821 shlibpath_var=LD_LIBRARY_PATH
17822 shlibpath_overrides_runpath=no
17823 hardcode_into_libs=yes
17824 dynamic_linker='NetBSD ld.elf_so'
17825 ;;
17826
17827 netbsd*)
17828 version_type=sunos
17829 need_lib_prefix=no
17830 need_version=no
17831 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17833 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17834 dynamic_linker='NetBSD (a.out) ld.so'
17835 else
17836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17837 soname_spec='${libname}${release}${shared_ext}$major'
17838 dynamic_linker='NetBSD ld.elf_so'
17839 fi
17840 shlibpath_var=LD_LIBRARY_PATH
17841 shlibpath_overrides_runpath=yes
17842 hardcode_into_libs=yes
17843 ;;
17844
17845 newsos6)
17846 version_type=linux
17847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17848 shlibpath_var=LD_LIBRARY_PATH
17849 shlibpath_overrides_runpath=yes
17850 ;;
17851
17852 nto-qnx*)
17853 version_type=linux
17854 need_lib_prefix=no
17855 need_version=no
17856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17857 soname_spec='${libname}${release}${shared_ext}$major'
17858 shlibpath_var=LD_LIBRARY_PATH
17859 shlibpath_overrides_runpath=yes
17860 ;;
17861
17862 openbsd*)
17863 version_type=sunos
17864 sys_lib_dlsearch_path_spec="/usr/lib"
17865 need_lib_prefix=no
17866 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17867 case $host_os in
17868 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17869 *) need_version=no ;;
17870 esac
17871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17872 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17873 shlibpath_var=LD_LIBRARY_PATH
17874 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17875 case $host_os in
17876 openbsd2.[89] | openbsd2.[89].*)
17877 shlibpath_overrides_runpath=no
17878 ;;
17879 *)
17880 shlibpath_overrides_runpath=yes
17881 ;;
17882 esac
17883 else
17884 shlibpath_overrides_runpath=yes
17885 fi
17886 ;;
17887
17888 os2*)
17889 libname_spec='$name'
17890 shrext_cmds=".dll"
17891 need_lib_prefix=no
17892 library_names_spec='$libname${shared_ext} $libname.a'
17893 dynamic_linker='OS/2 ld.exe'
17894 shlibpath_var=LIBPATH
17895 ;;
17896
17897 osf3* | osf4* | osf5*)
17898 version_type=osf
17899 need_lib_prefix=no
17900 need_version=no
17901 soname_spec='${libname}${release}${shared_ext}$major'
17902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17903 shlibpath_var=LD_LIBRARY_PATH
17904 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17905 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17906 ;;
17907
17908 rdos*)
17909 dynamic_linker=no
17910 ;;
17911
17912 solaris*)
17913 version_type=linux
17914 need_lib_prefix=no
17915 need_version=no
17916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17917 soname_spec='${libname}${release}${shared_ext}$major'
17918 shlibpath_var=LD_LIBRARY_PATH
17919 shlibpath_overrides_runpath=yes
17920 hardcode_into_libs=yes
17921 # ldd complains unless libraries are executable
17922 postinstall_cmds='chmod +x $lib'
17923 ;;
17924
17925 sunos4*)
17926 version_type=sunos
17927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17928 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17929 shlibpath_var=LD_LIBRARY_PATH
17930 shlibpath_overrides_runpath=yes
17931 if test "$with_gnu_ld" = yes; then
17932 need_lib_prefix=no
17933 fi
17934 need_version=yes
17935 ;;
17936
17937 sysv4 | sysv4.3*)
17938 version_type=linux
17939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17940 soname_spec='${libname}${release}${shared_ext}$major'
17941 shlibpath_var=LD_LIBRARY_PATH
17942 case $host_vendor in
17943 sni)
17944 shlibpath_overrides_runpath=no
17945 need_lib_prefix=no
17946 export_dynamic_flag_spec='${wl}-Blargedynsym'
17947 runpath_var=LD_RUN_PATH
17948 ;;
17949 siemens)
17950 need_lib_prefix=no
17951 ;;
17952 motorola)
17953 need_lib_prefix=no
17954 need_version=no
17955 shlibpath_overrides_runpath=no
17956 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17957 ;;
17958 esac
17959 ;;
17960
17961 sysv4*MP*)
17962 if test -d /usr/nec ;then
17963 version_type=linux
17964 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17965 soname_spec='$libname${shared_ext}.$major'
17966 shlibpath_var=LD_LIBRARY_PATH
17967 fi
17968 ;;
17969
17970 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17971 version_type=freebsd-elf
17972 need_lib_prefix=no
17973 need_version=no
17974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17975 soname_spec='${libname}${release}${shared_ext}$major'
17976 shlibpath_var=LD_LIBRARY_PATH
17977 hardcode_into_libs=yes
17978 if test "$with_gnu_ld" = yes; then
17979 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17980 shlibpath_overrides_runpath=no
17981 else
17982 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17983 shlibpath_overrides_runpath=yes
17984 case $host_os in
17985 sco3.2v5*)
17986 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17987 ;;
17988 esac
17989 fi
17990 sys_lib_dlsearch_path_spec='/usr/lib'
17991 ;;
17992
17993 uts4*)
17994 version_type=linux
17995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17996 soname_spec='${libname}${release}${shared_ext}$major'
17997 shlibpath_var=LD_LIBRARY_PATH
17998 ;;
17999
18000 *)
18001 dynamic_linker=no
18002 ;;
18003 esac
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18005 $as_echo "$dynamic_linker" >&6; }
18006 test "$dynamic_linker" = no && can_build_shared=no
18007
18008 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
18009 $as_echo_n "(cached) " >&6
18010 else
18011 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18012 fi
18013
18014 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18015 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
18016 $as_echo_n "(cached) " >&6
18017 else
18018 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18019 fi
18020
18021 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18022
18023 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18024 if test "$GCC" = yes; then
18025 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18026 fi
18027
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18029 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18030 hardcode_action_GCJ=
18031 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18032 test -n "$runpath_var_GCJ" || \
18033 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18034
18035 # We can hardcode non-existant directories.
18036 if test "$hardcode_direct_GCJ" != no &&
18037 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18038 # have to relink, otherwise we might link with an installed library
18039 # when we should be linking with a yet-to-be-installed one
18040 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18041 test "$hardcode_minus_L_GCJ" != no; then
18042 # Linking always hardcodes the temporary library directory.
18043 hardcode_action_GCJ=relink
18044 else
18045 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18046 hardcode_action_GCJ=immediate
18047 fi
18048 else
18049 # We cannot hardcode anything, or else we can only hardcode existing
18050 # directories.
18051 hardcode_action_GCJ=unsupported
18052 fi
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18054 $as_echo "$hardcode_action_GCJ" >&6; }
18055
18056 if test "$hardcode_action_GCJ" = relink; then
18057 # Fast installation is not supported
18058 enable_fast_install=no
18059 elif test "$shlibpath_overrides_runpath" = yes ||
18060 test "$enable_shared" = no; then
18061 # Fast installation is not necessary
18062 enable_fast_install=needless
18063 fi
18064
18065
18066 # The else clause should only fire when bootstrapping the
18067 # libtool distribution, otherwise you forgot to ship ltmain.sh
18068 # with your package, and you will get complaints that there are
18069 # no rules to generate ltmain.sh.
18070 if test -f "$ltmain"; then
18071 # See if we are running on zsh, and set the options which allow our commands through
18072 # without removal of \ escapes.
18073 if test -n "${ZSH_VERSION+set}" ; then
18074 setopt NO_GLOB_SUBST
18075 fi
18076 # Now quote all the things that may contain metacharacters while being
18077 # careful not to overquote the AC_SUBSTed values. We take copies of the
18078 # variables and quote the copies for generation of the libtool script.
18079 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18080 SED SHELL STRIP \
18081 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18082 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18083 deplibs_check_method reload_flag reload_cmds need_locks \
18084 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18085 lt_cv_sys_global_symbol_to_c_name_address \
18086 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18087 old_postinstall_cmds old_postuninstall_cmds \
18088 compiler_GCJ \
18089 CC_GCJ \
18090 LD_GCJ \
18091 lt_prog_compiler_wl_GCJ \
18092 lt_prog_compiler_pic_GCJ \
18093 lt_prog_compiler_static_GCJ \
18094 lt_prog_compiler_no_builtin_flag_GCJ \
18095 export_dynamic_flag_spec_GCJ \
18096 thread_safe_flag_spec_GCJ \
18097 whole_archive_flag_spec_GCJ \
18098 enable_shared_with_static_runtimes_GCJ \
18099 old_archive_cmds_GCJ \
18100 old_archive_from_new_cmds_GCJ \
18101 predep_objects_GCJ \
18102 postdep_objects_GCJ \
18103 predeps_GCJ \
18104 postdeps_GCJ \
18105 compiler_lib_search_path_GCJ \
18106 compiler_lib_search_dirs_GCJ \
18107 archive_cmds_GCJ \
18108 archive_expsym_cmds_GCJ \
18109 postinstall_cmds_GCJ \
18110 postuninstall_cmds_GCJ \
18111 old_archive_from_expsyms_cmds_GCJ \
18112 allow_undefined_flag_GCJ \
18113 no_undefined_flag_GCJ \
18114 export_symbols_cmds_GCJ \
18115 hardcode_libdir_flag_spec_GCJ \
18116 hardcode_libdir_flag_spec_ld_GCJ \
18117 hardcode_libdir_separator_GCJ \
18118 hardcode_automatic_GCJ \
18119 module_cmds_GCJ \
18120 module_expsym_cmds_GCJ \
18121 lt_cv_prog_compiler_c_o_GCJ \
18122 fix_srcfile_path_GCJ \
18123 exclude_expsyms_GCJ \
18124 include_expsyms_GCJ; do
18125
18126 case $var in
18127 old_archive_cmds_GCJ | \
18128 old_archive_from_new_cmds_GCJ | \
18129 archive_cmds_GCJ | \
18130 archive_expsym_cmds_GCJ | \
18131 module_cmds_GCJ | \
18132 module_expsym_cmds_GCJ | \
18133 old_archive_from_expsyms_cmds_GCJ | \
18134 export_symbols_cmds_GCJ | \
18135 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18136 postinstall_cmds | postuninstall_cmds | \
18137 old_postinstall_cmds | old_postuninstall_cmds | \
18138 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18139 # Double-quote double-evaled strings.
18140 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18141 ;;
18142 *)
18143 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18144 ;;
18145 esac
18146 done
18147
18148 case $lt_echo in
18149 *'\$0 --fallback-echo"')
18150 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18151 ;;
18152 esac
18153
18154 cfgfile="$ofile"
18155
18156 cat <<__EOF__ >> "$cfgfile"
18157 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18158
18159 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18160
18161 # Shell to use when invoking shell scripts.
18162 SHELL=$lt_SHELL
18163
18164 # Whether or not to build shared libraries.
18165 build_libtool_libs=$enable_shared
18166
18167 # Whether or not to build static libraries.
18168 build_old_libs=$enable_static
18169
18170 # Whether or not to add -lc for building shared libraries.
18171 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18172
18173 # Whether or not to disallow shared libs when runtime libs are static
18174 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18175
18176 # Whether or not to optimize for fast installation.
18177 fast_install=$enable_fast_install
18178
18179 # The host system.
18180 host_alias=$host_alias
18181 host=$host
18182 host_os=$host_os
18183
18184 # The build system.
18185 build_alias=$build_alias
18186 build=$build
18187 build_os=$build_os
18188
18189 # An echo program that does not interpret backslashes.
18190 echo=$lt_echo
18191
18192 # The archiver.
18193 AR=$lt_AR
18194 AR_FLAGS=$lt_AR_FLAGS
18195
18196 # A C compiler.
18197 LTCC=$lt_LTCC
18198
18199 # LTCC compiler flags.
18200 LTCFLAGS=$lt_LTCFLAGS
18201
18202 # A language-specific compiler.
18203 CC=$lt_compiler_GCJ
18204
18205 # Is the compiler the GNU C compiler?
18206 with_gcc=$GCC_GCJ
18207
18208 # An ERE matcher.
18209 EGREP=$lt_EGREP
18210
18211 # The linker used to build libraries.
18212 LD=$lt_LD_GCJ
18213
18214 # Whether we need hard or soft links.
18215 LN_S=$lt_LN_S
18216
18217 # A BSD-compatible nm program.
18218 NM=$lt_NM
18219
18220 # A symbol stripping program
18221 STRIP=$lt_STRIP
18222
18223 # Used to examine libraries when file_magic_cmd begins "file"
18224 MAGIC_CMD=$MAGIC_CMD
18225
18226 # Used on cygwin: DLL creation program.
18227 DLLTOOL="$DLLTOOL"
18228
18229 # Used on cygwin: object dumper.
18230 OBJDUMP="$OBJDUMP"
18231
18232 # Used on cygwin: assembler.
18233 AS="$AS"
18234
18235 # The name of the directory that contains temporary libtool files.
18236 objdir=$objdir
18237
18238 # How to create reloadable object files.
18239 reload_flag=$lt_reload_flag
18240 reload_cmds=$lt_reload_cmds
18241
18242 # How to pass a linker flag through the compiler.
18243 wl=$lt_lt_prog_compiler_wl_GCJ
18244
18245 # Object file suffix (normally "o").
18246 objext="$ac_objext"
18247
18248 # Old archive suffix (normally "a").
18249 libext="$libext"
18250
18251 # Shared library suffix (normally ".so").
18252 shrext_cmds='$shrext_cmds'
18253
18254 # Executable file suffix (normally "").
18255 exeext="$exeext"
18256
18257 # Additional compiler flags for building library objects.
18258 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18259 pic_mode=$pic_mode
18260
18261 # What is the maximum length of a command?
18262 max_cmd_len=$lt_cv_sys_max_cmd_len
18263
18264 # Does compiler simultaneously support -c and -o options?
18265 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18266
18267 # Must we lock files when doing compilation?
18268 need_locks=$lt_need_locks
18269
18270 # Do we need the lib prefix for modules?
18271 need_lib_prefix=$need_lib_prefix
18272
18273 # Do we need a version for libraries?
18274 need_version=$need_version
18275
18276 # Whether dlopen is supported.
18277 dlopen_support=$enable_dlopen
18278
18279 # Whether dlopen of programs is supported.
18280 dlopen_self=$enable_dlopen_self
18281
18282 # Whether dlopen of statically linked programs is supported.
18283 dlopen_self_static=$enable_dlopen_self_static
18284
18285 # Compiler flag to prevent dynamic linking.
18286 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18287
18288 # Compiler flag to turn off builtin functions.
18289 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18290
18291 # Compiler flag to allow reflexive dlopens.
18292 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18293
18294 # Compiler flag to generate shared objects directly from archives.
18295 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18296
18297 # Compiler flag to generate thread-safe objects.
18298 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18299
18300 # Library versioning type.
18301 version_type=$version_type
18302
18303 # Format of library name prefix.
18304 libname_spec=$lt_libname_spec
18305
18306 # List of archive names. First name is the real one, the rest are links.
18307 # The last name is the one that the linker finds with -lNAME.
18308 library_names_spec=$lt_library_names_spec
18309
18310 # The coded name of the library, if different from the real name.
18311 soname_spec=$lt_soname_spec
18312
18313 # Commands used to build and install an old-style archive.
18314 RANLIB=$lt_RANLIB
18315 old_archive_cmds=$lt_old_archive_cmds_GCJ
18316 old_postinstall_cmds=$lt_old_postinstall_cmds
18317 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18318
18319 # Create an old-style archive from a shared archive.
18320 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18321
18322 # Create a temporary old-style archive to link instead of a shared archive.
18323 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18324
18325 # Commands used to build and install a shared archive.
18326 archive_cmds=$lt_archive_cmds_GCJ
18327 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18328 postinstall_cmds=$lt_postinstall_cmds
18329 postuninstall_cmds=$lt_postuninstall_cmds
18330
18331 # Commands used to build a loadable module (assumed same as above if empty)
18332 module_cmds=$lt_module_cmds_GCJ
18333 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18334
18335 # Commands to strip libraries.
18336 old_striplib=$lt_old_striplib
18337 striplib=$lt_striplib
18338
18339 # Dependencies to place before the objects being linked to create a
18340 # shared library.
18341 predep_objects=$lt_predep_objects_GCJ
18342
18343 # Dependencies to place after the objects being linked to create a
18344 # shared library.
18345 postdep_objects=$lt_postdep_objects_GCJ
18346
18347 # Dependencies to place before the objects being linked to create a
18348 # shared library.
18349 predeps=$lt_predeps_GCJ
18350
18351 # Dependencies to place after the objects being linked to create a
18352 # shared library.
18353 postdeps=$lt_postdeps_GCJ
18354
18355 # The directories searched by this compiler when creating a shared
18356 # library
18357 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18358
18359 # The library search path used internally by the compiler when linking
18360 # a shared library.
18361 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18362
18363 # Method to check whether dependent libraries are shared objects.
18364 deplibs_check_method=$lt_deplibs_check_method
18365
18366 # Command to use when deplibs_check_method == file_magic.
18367 file_magic_cmd=$lt_file_magic_cmd
18368
18369 # Flag that allows shared libraries with undefined symbols to be built.
18370 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18371
18372 # Flag that forces no undefined symbols.
18373 no_undefined_flag=$lt_no_undefined_flag_GCJ
18374
18375 # Commands used to finish a libtool library installation in a directory.
18376 finish_cmds=$lt_finish_cmds
18377
18378 # Same as above, but a single script fragment to be evaled but not shown.
18379 finish_eval=$lt_finish_eval
18380
18381 # Take the output of nm and produce a listing of raw symbols and C names.
18382 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18383
18384 # Transform the output of nm in a proper C declaration
18385 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18386
18387 # Transform the output of nm in a C name address pair
18388 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18389
18390 # This is the shared library runtime path variable.
18391 runpath_var=$runpath_var
18392
18393 # This is the shared library path variable.
18394 shlibpath_var=$shlibpath_var
18395
18396 # Is shlibpath searched before the hard-coded library search path?
18397 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18398
18399 # How to hardcode a shared library path into an executable.
18400 hardcode_action=$hardcode_action_GCJ
18401
18402 # Whether we should hardcode library paths into libraries.
18403 hardcode_into_libs=$hardcode_into_libs
18404
18405 # Flag to hardcode \$libdir into a binary during linking.
18406 # This must work even if \$libdir does not exist.
18407 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18408
18409 # If ld is used when linking, flag to hardcode \$libdir into
18410 # a binary during linking. This must work even if \$libdir does
18411 # not exist.
18412 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18413
18414 # Whether we need a single -rpath flag with a separated argument.
18415 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18416
18417 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18418 # resulting binary.
18419 hardcode_direct=$hardcode_direct_GCJ
18420
18421 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18422 # resulting binary.
18423 hardcode_minus_L=$hardcode_minus_L_GCJ
18424
18425 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18426 # the resulting binary.
18427 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18428
18429 # Set to yes if building a shared library automatically hardcodes DIR into the library
18430 # and all subsequent libraries and executables linked against it.
18431 hardcode_automatic=$hardcode_automatic_GCJ
18432
18433 # Variables whose values should be saved in libtool wrapper scripts and
18434 # restored at relink time.
18435 variables_saved_for_relink="$variables_saved_for_relink"
18436
18437 # Whether libtool must link a program against all its dependency libraries.
18438 link_all_deplibs=$link_all_deplibs_GCJ
18439
18440 # Compile-time system search path for libraries
18441 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18442
18443 # Run-time system search path for libraries
18444 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18445
18446 # Fix the shell variable \$srcfile for the compiler.
18447 fix_srcfile_path=$lt_fix_srcfile_path
18448
18449 # Set to yes if exported symbols are required.
18450 always_export_symbols=$always_export_symbols_GCJ
18451
18452 # The commands to list exported symbols.
18453 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18454
18455 # The commands to extract the exported symbol list from a shared archive.
18456 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18457
18458 # Symbols that should not be listed in the preloaded symbols.
18459 exclude_expsyms=$lt_exclude_expsyms_GCJ
18460
18461 # Symbols that must always be exported.
18462 include_expsyms=$lt_include_expsyms_GCJ
18463
18464 # ### END LIBTOOL TAG CONFIG: $tagname
18465
18466 __EOF__
18467
18468
18469 else
18470 # If there is no Makefile yet, we rely on a make rule to execute
18471 # `config.status --recheck' to rerun these tests and create the
18472 # libtool script then.
18473 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18474 if test -f "$ltmain_in"; then
18475 test -f Makefile && make "$ltmain"
18476 fi
18477 fi
18478
18479
18480 ac_ext=c
18481 ac_cpp='$CPP $CPPFLAGS'
18482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18485
18486 CC="$lt_save_CC"
18487
18488 else
18489 tagname=""
18490 fi
18491 ;;
18492
18493 RC)
18494
18495
18496 # Source file extension for RC test sources.
18497 ac_ext=rc
18498
18499 # Object file extension for compiled RC test sources.
18500 objext=o
18501 objext_RC=$objext
18502
18503 # Code to be used in simple compile tests
18504 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18505
18506 # Code to be used in simple link tests
18507 lt_simple_link_test_code="$lt_simple_compile_test_code"
18508
18509 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18510
18511 # If no C compiler was specified, use CC.
18512 LTCC=${LTCC-"$CC"}
18513
18514 # If no C compiler flags were specified, use CFLAGS.
18515 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18516
18517 # Allow CC to be a program name with arguments.
18518 compiler=$CC
18519
18520
18521 # save warnings/boilerplate of simple test code
18522 ac_outfile=conftest.$ac_objext
18523 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18524 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18525 _lt_compiler_boilerplate=`cat conftest.err`
18526 $rm conftest*
18527
18528 ac_outfile=conftest.$ac_objext
18529 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18530 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18531 _lt_linker_boilerplate=`cat conftest.err`
18532 $rm -r conftest*
18533
18534
18535 # Allow CC to be a program name with arguments.
18536 lt_save_CC="$CC"
18537 CC=${RC-"windres"}
18538 compiler=$CC
18539 compiler_RC=$CC
18540 for cc_temp in $compiler""; do
18541 case $cc_temp in
18542 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18543 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18544 \-*) ;;
18545 *) break;;
18546 esac
18547 done
18548 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18549
18550 lt_cv_prog_compiler_c_o_RC=yes
18551
18552 # The else clause should only fire when bootstrapping the
18553 # libtool distribution, otherwise you forgot to ship ltmain.sh
18554 # with your package, and you will get complaints that there are
18555 # no rules to generate ltmain.sh.
18556 if test -f "$ltmain"; then
18557 # See if we are running on zsh, and set the options which allow our commands through
18558 # without removal of \ escapes.
18559 if test -n "${ZSH_VERSION+set}" ; then
18560 setopt NO_GLOB_SUBST
18561 fi
18562 # Now quote all the things that may contain metacharacters while being
18563 # careful not to overquote the AC_SUBSTed values. We take copies of the
18564 # variables and quote the copies for generation of the libtool script.
18565 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18566 SED SHELL STRIP \
18567 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18568 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18569 deplibs_check_method reload_flag reload_cmds need_locks \
18570 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18571 lt_cv_sys_global_symbol_to_c_name_address \
18572 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18573 old_postinstall_cmds old_postuninstall_cmds \
18574 compiler_RC \
18575 CC_RC \
18576 LD_RC \
18577 lt_prog_compiler_wl_RC \
18578 lt_prog_compiler_pic_RC \
18579 lt_prog_compiler_static_RC \
18580 lt_prog_compiler_no_builtin_flag_RC \
18581 export_dynamic_flag_spec_RC \
18582 thread_safe_flag_spec_RC \
18583 whole_archive_flag_spec_RC \
18584 enable_shared_with_static_runtimes_RC \
18585 old_archive_cmds_RC \
18586 old_archive_from_new_cmds_RC \
18587 predep_objects_RC \
18588 postdep_objects_RC \
18589 predeps_RC \
18590 postdeps_RC \
18591 compiler_lib_search_path_RC \
18592 compiler_lib_search_dirs_RC \
18593 archive_cmds_RC \
18594 archive_expsym_cmds_RC \
18595 postinstall_cmds_RC \
18596 postuninstall_cmds_RC \
18597 old_archive_from_expsyms_cmds_RC \
18598 allow_undefined_flag_RC \
18599 no_undefined_flag_RC \
18600 export_symbols_cmds_RC \
18601 hardcode_libdir_flag_spec_RC \
18602 hardcode_libdir_flag_spec_ld_RC \
18603 hardcode_libdir_separator_RC \
18604 hardcode_automatic_RC \
18605 module_cmds_RC \
18606 module_expsym_cmds_RC \
18607 lt_cv_prog_compiler_c_o_RC \
18608 fix_srcfile_path_RC \
18609 exclude_expsyms_RC \
18610 include_expsyms_RC; do
18611
18612 case $var in
18613 old_archive_cmds_RC | \
18614 old_archive_from_new_cmds_RC | \
18615 archive_cmds_RC | \
18616 archive_expsym_cmds_RC | \
18617 module_cmds_RC | \
18618 module_expsym_cmds_RC | \
18619 old_archive_from_expsyms_cmds_RC | \
18620 export_symbols_cmds_RC | \
18621 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18622 postinstall_cmds | postuninstall_cmds | \
18623 old_postinstall_cmds | old_postuninstall_cmds | \
18624 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18625 # Double-quote double-evaled strings.
18626 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18627 ;;
18628 *)
18629 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18630 ;;
18631 esac
18632 done
18633
18634 case $lt_echo in
18635 *'\$0 --fallback-echo"')
18636 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18637 ;;
18638 esac
18639
18640 cfgfile="$ofile"
18641
18642 cat <<__EOF__ >> "$cfgfile"
18643 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18644
18645 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18646
18647 # Shell to use when invoking shell scripts.
18648 SHELL=$lt_SHELL
18649
18650 # Whether or not to build shared libraries.
18651 build_libtool_libs=$enable_shared
18652
18653 # Whether or not to build static libraries.
18654 build_old_libs=$enable_static
18655
18656 # Whether or not to add -lc for building shared libraries.
18657 build_libtool_need_lc=$archive_cmds_need_lc_RC
18658
18659 # Whether or not to disallow shared libs when runtime libs are static
18660 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18661
18662 # Whether or not to optimize for fast installation.
18663 fast_install=$enable_fast_install
18664
18665 # The host system.
18666 host_alias=$host_alias
18667 host=$host
18668 host_os=$host_os
18669
18670 # The build system.
18671 build_alias=$build_alias
18672 build=$build
18673 build_os=$build_os
18674
18675 # An echo program that does not interpret backslashes.
18676 echo=$lt_echo
18677
18678 # The archiver.
18679 AR=$lt_AR
18680 AR_FLAGS=$lt_AR_FLAGS
18681
18682 # A C compiler.
18683 LTCC=$lt_LTCC
18684
18685 # LTCC compiler flags.
18686 LTCFLAGS=$lt_LTCFLAGS
18687
18688 # A language-specific compiler.
18689 CC=$lt_compiler_RC
18690
18691 # Is the compiler the GNU C compiler?
18692 with_gcc=$GCC_RC
18693
18694 # An ERE matcher.
18695 EGREP=$lt_EGREP
18696
18697 # The linker used to build libraries.
18698 LD=$lt_LD_RC
18699
18700 # Whether we need hard or soft links.
18701 LN_S=$lt_LN_S
18702
18703 # A BSD-compatible nm program.
18704 NM=$lt_NM
18705
18706 # A symbol stripping program
18707 STRIP=$lt_STRIP
18708
18709 # Used to examine libraries when file_magic_cmd begins "file"
18710 MAGIC_CMD=$MAGIC_CMD
18711
18712 # Used on cygwin: DLL creation program.
18713 DLLTOOL="$DLLTOOL"
18714
18715 # Used on cygwin: object dumper.
18716 OBJDUMP="$OBJDUMP"
18717
18718 # Used on cygwin: assembler.
18719 AS="$AS"
18720
18721 # The name of the directory that contains temporary libtool files.
18722 objdir=$objdir
18723
18724 # How to create reloadable object files.
18725 reload_flag=$lt_reload_flag
18726 reload_cmds=$lt_reload_cmds
18727
18728 # How to pass a linker flag through the compiler.
18729 wl=$lt_lt_prog_compiler_wl_RC
18730
18731 # Object file suffix (normally "o").
18732 objext="$ac_objext"
18733
18734 # Old archive suffix (normally "a").
18735 libext="$libext"
18736
18737 # Shared library suffix (normally ".so").
18738 shrext_cmds='$shrext_cmds'
18739
18740 # Executable file suffix (normally "").
18741 exeext="$exeext"
18742
18743 # Additional compiler flags for building library objects.
18744 pic_flag=$lt_lt_prog_compiler_pic_RC
18745 pic_mode=$pic_mode
18746
18747 # What is the maximum length of a command?
18748 max_cmd_len=$lt_cv_sys_max_cmd_len
18749
18750 # Does compiler simultaneously support -c and -o options?
18751 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18752
18753 # Must we lock files when doing compilation?
18754 need_locks=$lt_need_locks
18755
18756 # Do we need the lib prefix for modules?
18757 need_lib_prefix=$need_lib_prefix
18758
18759 # Do we need a version for libraries?
18760 need_version=$need_version
18761
18762 # Whether dlopen is supported.
18763 dlopen_support=$enable_dlopen
18764
18765 # Whether dlopen of programs is supported.
18766 dlopen_self=$enable_dlopen_self
18767
18768 # Whether dlopen of statically linked programs is supported.
18769 dlopen_self_static=$enable_dlopen_self_static
18770
18771 # Compiler flag to prevent dynamic linking.
18772 link_static_flag=$lt_lt_prog_compiler_static_RC
18773
18774 # Compiler flag to turn off builtin functions.
18775 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18776
18777 # Compiler flag to allow reflexive dlopens.
18778 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18779
18780 # Compiler flag to generate shared objects directly from archives.
18781 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18782
18783 # Compiler flag to generate thread-safe objects.
18784 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18785
18786 # Library versioning type.
18787 version_type=$version_type
18788
18789 # Format of library name prefix.
18790 libname_spec=$lt_libname_spec
18791
18792 # List of archive names. First name is the real one, the rest are links.
18793 # The last name is the one that the linker finds with -lNAME.
18794 library_names_spec=$lt_library_names_spec
18795
18796 # The coded name of the library, if different from the real name.
18797 soname_spec=$lt_soname_spec
18798
18799 # Commands used to build and install an old-style archive.
18800 RANLIB=$lt_RANLIB
18801 old_archive_cmds=$lt_old_archive_cmds_RC
18802 old_postinstall_cmds=$lt_old_postinstall_cmds
18803 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18804
18805 # Create an old-style archive from a shared archive.
18806 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18807
18808 # Create a temporary old-style archive to link instead of a shared archive.
18809 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18810
18811 # Commands used to build and install a shared archive.
18812 archive_cmds=$lt_archive_cmds_RC
18813 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18814 postinstall_cmds=$lt_postinstall_cmds
18815 postuninstall_cmds=$lt_postuninstall_cmds
18816
18817 # Commands used to build a loadable module (assumed same as above if empty)
18818 module_cmds=$lt_module_cmds_RC
18819 module_expsym_cmds=$lt_module_expsym_cmds_RC
18820
18821 # Commands to strip libraries.
18822 old_striplib=$lt_old_striplib
18823 striplib=$lt_striplib
18824
18825 # Dependencies to place before the objects being linked to create a
18826 # shared library.
18827 predep_objects=$lt_predep_objects_RC
18828
18829 # Dependencies to place after the objects being linked to create a
18830 # shared library.
18831 postdep_objects=$lt_postdep_objects_RC
18832
18833 # Dependencies to place before the objects being linked to create a
18834 # shared library.
18835 predeps=$lt_predeps_RC
18836
18837 # Dependencies to place after the objects being linked to create a
18838 # shared library.
18839 postdeps=$lt_postdeps_RC
18840
18841 # The directories searched by this compiler when creating a shared
18842 # library
18843 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
18844
18845 # The library search path used internally by the compiler when linking
18846 # a shared library.
18847 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18848
18849 # Method to check whether dependent libraries are shared objects.
18850 deplibs_check_method=$lt_deplibs_check_method
18851
18852 # Command to use when deplibs_check_method == file_magic.
18853 file_magic_cmd=$lt_file_magic_cmd
18854
18855 # Flag that allows shared libraries with undefined symbols to be built.
18856 allow_undefined_flag=$lt_allow_undefined_flag_RC
18857
18858 # Flag that forces no undefined symbols.
18859 no_undefined_flag=$lt_no_undefined_flag_RC
18860
18861 # Commands used to finish a libtool library installation in a directory.
18862 finish_cmds=$lt_finish_cmds
18863
18864 # Same as above, but a single script fragment to be evaled but not shown.
18865 finish_eval=$lt_finish_eval
18866
18867 # Take the output of nm and produce a listing of raw symbols and C names.
18868 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18869
18870 # Transform the output of nm in a proper C declaration
18871 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18872
18873 # Transform the output of nm in a C name address pair
18874 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18875
18876 # This is the shared library runtime path variable.
18877 runpath_var=$runpath_var
18878
18879 # This is the shared library path variable.
18880 shlibpath_var=$shlibpath_var
18881
18882 # Is shlibpath searched before the hard-coded library search path?
18883 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18884
18885 # How to hardcode a shared library path into an executable.
18886 hardcode_action=$hardcode_action_RC
18887
18888 # Whether we should hardcode library paths into libraries.
18889 hardcode_into_libs=$hardcode_into_libs
18890
18891 # Flag to hardcode \$libdir into a binary during linking.
18892 # This must work even if \$libdir does not exist.
18893 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18894
18895 # If ld is used when linking, flag to hardcode \$libdir into
18896 # a binary during linking. This must work even if \$libdir does
18897 # not exist.
18898 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18899
18900 # Whether we need a single -rpath flag with a separated argument.
18901 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18902
18903 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18904 # resulting binary.
18905 hardcode_direct=$hardcode_direct_RC
18906
18907 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18908 # resulting binary.
18909 hardcode_minus_L=$hardcode_minus_L_RC
18910
18911 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18912 # the resulting binary.
18913 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18914
18915 # Set to yes if building a shared library automatically hardcodes DIR into the library
18916 # and all subsequent libraries and executables linked against it.
18917 hardcode_automatic=$hardcode_automatic_RC
18918
18919 # Variables whose values should be saved in libtool wrapper scripts and
18920 # restored at relink time.
18921 variables_saved_for_relink="$variables_saved_for_relink"
18922
18923 # Whether libtool must link a program against all its dependency libraries.
18924 link_all_deplibs=$link_all_deplibs_RC
18925
18926 # Compile-time system search path for libraries
18927 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18928
18929 # Run-time system search path for libraries
18930 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18931
18932 # Fix the shell variable \$srcfile for the compiler.
18933 fix_srcfile_path=$lt_fix_srcfile_path
18934
18935 # Set to yes if exported symbols are required.
18936 always_export_symbols=$always_export_symbols_RC
18937
18938 # The commands to list exported symbols.
18939 export_symbols_cmds=$lt_export_symbols_cmds_RC
18940
18941 # The commands to extract the exported symbol list from a shared archive.
18942 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18943
18944 # Symbols that should not be listed in the preloaded symbols.
18945 exclude_expsyms=$lt_exclude_expsyms_RC
18946
18947 # Symbols that must always be exported.
18948 include_expsyms=$lt_include_expsyms_RC
18949
18950 # ### END LIBTOOL TAG CONFIG: $tagname
18951
18952 __EOF__
18953
18954
18955 else
18956 # If there is no Makefile yet, we rely on a make rule to execute
18957 # `config.status --recheck' to rerun these tests and create the
18958 # libtool script then.
18959 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18960 if test -f "$ltmain_in"; then
18961 test -f Makefile && make "$ltmain"
18962 fi
18963 fi
18964
18965
18966 ac_ext=c
18967 ac_cpp='$CPP $CPPFLAGS'
18968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18971
18972 CC="$lt_save_CC"
18973
18974 ;;
18975
18976 *)
18977 as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
18978 ;;
18979 esac
18980
18981 # Append the new tag name to the list of available tags.
18982 if test -n "$tagname" ; then
18983 available_tags="$available_tags $tagname"
18984 fi
18985 fi
18986 done
18987 IFS="$lt_save_ifs"
18988
18989 # Now substitute the updated list of available tags.
18990 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18991 mv "${ofile}T" "$ofile"
18992 chmod +x "$ofile"
18993 else
18994 rm -f "${ofile}T"
18995 as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
18996 fi
18997 fi
18998
18999
19000
19001 # This can be used to rebuild libtool when needed
19002 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19003
19004 # Always use our own libtool.
19005 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19006
19007 # Prevent multiple expansion
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028 # Check whether --enable-debug was given.
19029 if test "${enable_debug+set}" = set; then :
19030 enableval=$enable_debug;
19031 CXXFLAGS="-g -O0 -Wall"
19032
19033 $as_echo "#define WITH_DEBUG /**/" >>confdefs.h
19034
19035
19036 fi
19037
19038
19039
19040 # Check whether --with-libldap was given.
19041 if test "${with_libldap+set}" = set; then :
19042 withval=$with_libldap;
19043 LIBS="-L$with_libldap $LIBS "
19044
19045 else
19046
19047 LIBS="-L/usr/local/lib $LIBS "
19048
19049
19050 fi
19051
19052
19053
19054 # Check whether --with-ldap-includes was given.
19055 if test "${with_ldap_includes+set}" = set; then :
19056 withval=$with_ldap_includes;
19057 CPPFLAGS="-I$with_ldap_includes $CPPFLAGS "
19058
19059 else
19060
19061 CPPFLAGS="-I/usr/local/include $CPPFLAGS "
19062
19063
19064 fi
19065
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lresolv" >&5
19067 $as_echo_n "checking for main in -lresolv... " >&6; }
19068 if test "${ac_cv_lib_resolv_main+set}" = set; then :
19069 $as_echo_n "(cached) " >&6
19070 else
19071 ac_check_lib_save_LIBS=$LIBS
19072 LIBS="-lresolv $LIBS"
19073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19074 /* end confdefs.h. */
19075
19076
19077 int
19078 main ()
19079 {
19080 return main ();
19081 ;
19082 return 0;
19083 }
19084 _ACEOF
19085 if ac_fn_c_try_link "$LINENO"; then :
19086 ac_cv_lib_resolv_main=yes
19087 else
19088 ac_cv_lib_resolv_main=no
19089 fi
19090 rm -f core conftest.err conftest.$ac_objext \
19091 conftest$ac_exeext conftest.$ac_ext
19092 LIBS=$ac_check_lib_save_LIBS
19093 fi
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_main" >&5
19095 $as_echo "$ac_cv_lib_resolv_main" >&6; }
19096 if test "x$ac_cv_lib_resolv_main" = x""yes; then :
19097 cat >>confdefs.h <<_ACEOF
19098 #define HAVE_LIBRESOLV 1
19099 _ACEOF
19100
19101 LIBS="-lresolv $LIBS"
19102
19103 fi
19104
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_strdup in -llber" >&5
19106 $as_echo_n "checking for ber_strdup in -llber... " >&6; }
19107 if test "${ac_cv_lib_lber_ber_strdup+set}" = set; then :
19108 $as_echo_n "(cached) " >&6
19109 else
19110 ac_check_lib_save_LIBS=$LIBS
19111 LIBS="-llber $LIBS"
19112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19113 /* end confdefs.h. */
19114
19115 /* Override any GCC internal prototype to avoid an error.
19116 Use char because int might match the return type of a GCC
19117 builtin and then its argument prototype would still apply. */
19118 #ifdef __cplusplus
19119 extern "C"
19120 #endif
19121 char ber_strdup ();
19122 int
19123 main ()
19124 {
19125 return ber_strdup ();
19126 ;
19127 return 0;
19128 }
19129 _ACEOF
19130 if ac_fn_c_try_link "$LINENO"; then :
19131 ac_cv_lib_lber_ber_strdup=yes
19132 else
19133 ac_cv_lib_lber_ber_strdup=no
19134 fi
19135 rm -f core conftest.err conftest.$ac_objext \
19136 conftest$ac_exeext conftest.$ac_ext
19137 LIBS=$ac_check_lib_save_LIBS
19138 fi
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_strdup" >&5
19140 $as_echo "$ac_cv_lib_lber_ber_strdup" >&6; }
19141 if test "x$ac_cv_lib_lber_ber_strdup" = x""yes; then :
19142
19143 :
19144
19145 else
19146
19147 echo " didn't find ber_strdup in liblber !";
19148 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
19149 echo " or try the --with-libldap option.";
19150 exit
19151
19152 fi
19153
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_add_ext in -lldap" >&5
19155 $as_echo_n "checking for ldap_add_ext in -lldap... " >&6; }
19156 if test "${ac_cv_lib_ldap_ldap_add_ext+set}" = set; then :
19157 $as_echo_n "(cached) " >&6
19158 else
19159 ac_check_lib_save_LIBS=$LIBS
19160 LIBS="-lldap
19161 -llber
19162 $LIBS"
19163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19164 /* end confdefs.h. */
19165
19166 /* Override any GCC internal prototype to avoid an error.
19167 Use char because int might match the return type of a GCC
19168 builtin and then its argument prototype would still apply. */
19169 #ifdef __cplusplus
19170 extern "C"
19171 #endif
19172 char ldap_add_ext ();
19173 int
19174 main ()
19175 {
19176 return ldap_add_ext ();
19177 ;
19178 return 0;
19179 }
19180 _ACEOF
19181 if ac_fn_c_try_link "$LINENO"; then :
19182 ac_cv_lib_ldap_ldap_add_ext=yes
19183 else
19184 ac_cv_lib_ldap_ldap_add_ext=no
19185 fi
19186 rm -f core conftest.err conftest.$ac_objext \
19187 conftest$ac_exeext conftest.$ac_ext
19188 LIBS=$ac_check_lib_save_LIBS
19189 fi
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_add_ext" >&5
19191 $as_echo "$ac_cv_lib_ldap_ldap_add_ext" >&6; }
19192 if test "x$ac_cv_lib_ldap_ldap_add_ext" = x""yes; then :
19193
19194 :
19195
19196 else
19197
19198 echo " didn't find ldap_add_ext in libldap !";
19199 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
19200 echo " or try the --with-libldap option.";
19201 exit
19202
19203 fi
19204
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19206 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19207 if test "${ac_cv_header_time+set}" = set; then :
19208 $as_echo_n "(cached) " >&6
19209 else
19210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19211 /* end confdefs.h. */
19212 #include <sys/types.h>
19213 #include <sys/time.h>
19214 #include <time.h>
19215
19216 int
19217 main ()
19218 {
19219 if ((struct tm *) 0)
19220 return 0;
19221 ;
19222 return 0;
19223 }
19224 _ACEOF
19225 if ac_fn_c_try_compile "$LINENO"; then :
19226 ac_cv_header_time=yes
19227 else
19228 ac_cv_header_time=no
19229 fi
19230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19231 fi
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19233 $as_echo "$ac_cv_header_time" >&6; }
19234 if test $ac_cv_header_time = yes; then
19235
19236 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19237
19238 fi
19239
19240 for ac_header in termios.h ldap.h
19241 do :
19242 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19243 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19244 eval as_val=\$$as_ac_Header
19245 if test "x$as_val" = x""yes; then :
19246 cat >>confdefs.h <<_ACEOF
19247 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19248 _ACEOF
19249
19250 fi
19251
19252 done
19253
19254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19255 /* end confdefs.h. */
19256 #include <ldap.h>
19257
19258 _ACEOF
19259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19260 $EGREP "ldap_add_ext" >/dev/null 2>&1; then :
19261
19262 :
19263
19264 else
19265
19266 echo " didn't find ldap_add_ext in ldap.h!";
19267 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
19268 echo " or try --with-ldap-includes option.";
19269 exit
19270
19271 fi
19272 rm -f conftest*
19273
19274 ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default"
19275 if test "x$ac_cv_header_lber_h" = x""yes; then :
19276
19277 fi
19278
19279
19280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19281 /* end confdefs.h. */
19282 #include <lber.h>
19283
19284 _ACEOF
19285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19286 $EGREP "ber_strdup" >/dev/null 2>&1; then :
19287
19288 :
19289
19290 else
19291
19292 echo " didn't find ber_strdup in lber.h!";
19293 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
19294 echo " or try --with-ldap-includes option.";
19295 exit
19296
19297 fi
19298 rm -f conftest*
19299
19300
19301
19302
19303 ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile"
19304
19305 cat >confcache <<\_ACEOF
19306 # This file is a shell script that caches the results of configure
19307 # tests run on this system so they can be shared between configure
19308 # scripts and configure runs, see configure's option --config-cache.
19309 # It is not useful on other systems. If it contains results you don't
19310 # want to keep, you may remove or edit it.
19311 #
19312 # config.status only pays attention to the cache file if you give it
19313 # the --recheck option to rerun configure.
19314 #
19315 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19316 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19317 # following values.
19318
19319 _ACEOF
19320
19321 # The following way of writing the cache mishandles newlines in values,
19322 # but we know of no workaround that is simple, portable, and efficient.
19323 # So, we kill variables containing newlines.
19324 # Ultrix sh set writes to stderr and can't be redirected directly,
19325 # and sets the high bit in the cache file unless we assign to the vars.
19326 (
19327 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19328 eval ac_val=\$$ac_var
19329 case $ac_val in #(
19330 *${as_nl}*)
19331 case $ac_var in #(
19332 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19333 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19334 esac
19335 case $ac_var in #(
19336 _ | IFS | as_nl) ;; #(
19337 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19338 *) { eval $ac_var=; unset $ac_var;} ;;
19339 esac ;;
19340 esac
19341 done
19342
19343 (set) 2>&1 |
19344 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19345 *${as_nl}ac_space=\ *)
19346 # `set' does not quote correctly, so add quotes: double-quote
19347 # substitution turns \\\\ into \\, and sed turns \\ into \.
19348 sed -n \
19349 "s/'/'\\\\''/g;
19350 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19351 ;; #(
19352 *)
19353 # `set' quotes correctly as required by POSIX, so do not add quotes.
19354 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19355 ;;
19356 esac |
19357 sort
19358 ) |
19359 sed '
19360 /^ac_cv_env_/b end
19361 t clear
19362 :clear
19363 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19364 t end
19365 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19366 :end' >>confcache
19367 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19368 if test -w "$cache_file"; then
19369 test "x$cache_file" != "x/dev/null" &&
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19371 $as_echo "$as_me: updating cache $cache_file" >&6;}
19372 cat confcache >$cache_file
19373 else
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19375 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19376 fi
19377 fi
19378 rm -f confcache
19379
19380 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19381 # Let make expand exec_prefix.
19382 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19383
19384 DEFS=-DHAVE_CONFIG_H
19385
19386 ac_libobjs=
19387 ac_ltlibobjs=
19388 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19389 # 1. Remove the extension, and $U if already installed.
19390 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19391 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19392 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19393 # will be set to the directory where LIBOBJS objects are built.
19394 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19395 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19396 done
19397 LIBOBJS=$ac_libobjs
19398
19399 LTLIBOBJS=$ac_ltlibobjs
19400
19401
19402 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19403 as_fn_error "conditional \"AMDEP\" was never defined.
19404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19405 fi
19406 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19407 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
19408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19409 fi
19410 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19411 as_fn_error "conditional \"am__fastdepCC\" was never defined.
19412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19413 fi
19414
19415 : ${CONFIG_STATUS=./config.status}
19416 ac_write_fail=0
19417 ac_clean_files_save=$ac_clean_files
19418 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19420 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19421 as_write_fail=0
19422 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19423 #! $SHELL
19424 # Generated by $as_me.
19425 # Run this file to recreate the current configuration.
19426 # Compiler output produced by configure, useful for debugging
19427 # configure, is in config.log if it exists.
19428
19429 debug=false
19430 ac_cs_recheck=false
19431 ac_cs_silent=false
19432
19433 SHELL=\${CONFIG_SHELL-$SHELL}
19434 export SHELL
19435 _ASEOF
19436 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19437 ## -------------------- ##
19438 ## M4sh Initialization. ##
19439 ## -------------------- ##
19440
19441 # Be more Bourne compatible
19442 DUALCASE=1; export DUALCASE # for MKS sh
19443 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19444 emulate sh
19445 NULLCMD=:
19446 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19447 # is contrary to our usage. Disable this feature.
19448 alias -g '${1+"$@"}'='"$@"'
19449 setopt NO_GLOB_SUBST
19450 else
19451 case `(set -o) 2>/dev/null` in #(
19452 *posix*) :
19453 set -o posix ;; #(
19454 *) :
19455 ;;
19456 esac
19457 fi
19458
19459
19460 as_nl='
19461 '
19462 export as_nl
19463 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19464 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19465 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19466 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19467 # Prefer a ksh shell builtin over an external printf program on Solaris,
19468 # but without wasting forks for bash or zsh.
19469 if test -z "$BASH_VERSION$ZSH_VERSION" \
19470 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19471 as_echo='print -r --'
19472 as_echo_n='print -rn --'
19473 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19474 as_echo='printf %s\n'
19475 as_echo_n='printf %s'
19476 else
19477 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19478 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19479 as_echo_n='/usr/ucb/echo -n'
19480 else
19481 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19482 as_echo_n_body='eval
19483 arg=$1;
19484 case $arg in #(
19485 *"$as_nl"*)
19486 expr "X$arg" : "X\\(.*\\)$as_nl";
19487 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19488 esac;
19489 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19490 '
19491 export as_echo_n_body
19492 as_echo_n='sh -c $as_echo_n_body as_echo'
19493 fi
19494 export as_echo_body
19495 as_echo='sh -c $as_echo_body as_echo'
19496 fi
19497
19498 # The user is always right.
19499 if test "${PATH_SEPARATOR+set}" != set; then
19500 PATH_SEPARATOR=:
19501 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19502 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19503 PATH_SEPARATOR=';'
19504 }
19505 fi
19506
19507
19508 # IFS
19509 # We need space, tab and new line, in precisely that order. Quoting is
19510 # there to prevent editors from complaining about space-tab.
19511 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19512 # splitting by setting IFS to empty value.)
19513 IFS=" "" $as_nl"
19514
19515 # Find who we are. Look in the path if we contain no directory separator.
19516 case $0 in #((
19517 *[\\/]* ) as_myself=$0 ;;
19518 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19519 for as_dir in $PATH
19520 do
19521 IFS=$as_save_IFS
19522 test -z "$as_dir" && as_dir=.
19523 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19524 done
19525 IFS=$as_save_IFS
19526
19527 ;;
19528 esac
19529 # We did not find ourselves, most probably we were run as `sh COMMAND'
19530 # in which case we are not to be found in the path.
19531 if test "x$as_myself" = x; then
19532 as_myself=$0
19533 fi
19534 if test ! -f "$as_myself"; then
19535 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19536 exit 1
19537 fi
19538
19539 # Unset variables that we do not need and which cause bugs (e.g. in
19540 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19541 # suppresses any "Segmentation fault" message there. '((' could
19542 # trigger a bug in pdksh 5.2.14.
19543 for as_var in BASH_ENV ENV MAIL MAILPATH
19544 do eval test x\${$as_var+set} = xset \
19545 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19546 done
19547 PS1='$ '
19548 PS2='> '
19549 PS4='+ '
19550
19551 # NLS nuisances.
19552 LC_ALL=C
19553 export LC_ALL
19554 LANGUAGE=C
19555 export LANGUAGE
19556
19557 # CDPATH.
19558 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19559
19560
19561 # as_fn_error ERROR [LINENO LOG_FD]
19562 # ---------------------------------
19563 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19564 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19565 # script with status $?, using 1 if that was 0.
19566 as_fn_error ()
19567 {
19568 as_status=$?; test $as_status -eq 0 && as_status=1
19569 if test "$3"; then
19570 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19571 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
19572 fi
19573 $as_echo "$as_me: error: $1" >&2
19574 as_fn_exit $as_status
19575 } # as_fn_error
19576
19577
19578 # as_fn_set_status STATUS
19579 # -----------------------
19580 # Set $? to STATUS, without forking.
19581 as_fn_set_status ()
19582 {
19583 return $1
19584 } # as_fn_set_status
19585
19586 # as_fn_exit STATUS
19587 # -----------------
19588 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19589 as_fn_exit ()
19590 {
19591 set +e
19592 as_fn_set_status $1
19593 exit $1
19594 } # as_fn_exit
19595
19596 # as_fn_unset VAR
19597 # ---------------
19598 # Portably unset VAR.
19599 as_fn_unset ()
19600 {
19601 { eval $1=; unset $1;}
19602 }
19603 as_unset=as_fn_unset
19604 # as_fn_append VAR VALUE
19605 # ----------------------
19606 # Append the text in VALUE to the end of the definition contained in VAR. Take
19607 # advantage of any shell optimizations that allow amortized linear growth over
19608 # repeated appends, instead of the typical quadratic growth present in naive
19609 # implementations.
19610 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19611 eval 'as_fn_append ()
19612 {
19613 eval $1+=\$2
19614 }'
19615 else
19616 as_fn_append ()
19617 {
19618 eval $1=\$$1\$2
19619 }
19620 fi # as_fn_append
19621
19622 # as_fn_arith ARG...
19623 # ------------------
19624 # Perform arithmetic evaluation on the ARGs, and store the result in the
19625 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19626 # must be portable across $(()) and expr.
19627 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19628 eval 'as_fn_arith ()
19629 {
19630 as_val=$(( $* ))
19631 }'
19632 else
19633 as_fn_arith ()
19634 {
19635 as_val=`expr "$@" || test $? -eq 1`
19636 }
19637 fi # as_fn_arith
19638
19639
19640 if expr a : '\(a\)' >/dev/null 2>&1 &&
19641 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19642 as_expr=expr
19643 else
19644 as_expr=false
19645 fi
19646
19647 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19648 as_basename=basename
19649 else
19650 as_basename=false
19651 fi
19652
19653 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19654 as_dirname=dirname
19655 else
19656 as_dirname=false
19657 fi
19658
19659 as_me=`$as_basename -- "$0" ||
19660 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19661 X"$0" : 'X\(//\)$' \| \
19662 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19663 $as_echo X/"$0" |
19664 sed '/^.*\/\([^/][^/]*\)\/*$/{
19665 s//\1/
19666 q
19667 }
19668 /^X\/\(\/\/\)$/{
19669 s//\1/
19670 q
19671 }
19672 /^X\/\(\/\).*/{
19673 s//\1/
19674 q
19675 }
19676 s/.*/./; q'`
19677
19678 # Avoid depending upon Character Ranges.
19679 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19680 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19681 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19682 as_cr_digits='0123456789'
19683 as_cr_alnum=$as_cr_Letters$as_cr_digits
19684
19685 ECHO_C= ECHO_N= ECHO_T=
19686 case `echo -n x` in #(((((
19687 -n*)
19688 case `echo 'xy\c'` in
19689 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19690 xy) ECHO_C='\c';;
19691 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19692 ECHO_T=' ';;
19693 esac;;
19694 *)
19695 ECHO_N='-n';;
19696 esac
19697
19698 rm -f conf$$ conf$$.exe conf$$.file
19699 if test -d conf$$.dir; then
19700 rm -f conf$$.dir/conf$$.file
19701 else
19702 rm -f conf$$.dir
19703 mkdir conf$$.dir 2>/dev/null
19704 fi
19705 if (echo >conf$$.file) 2>/dev/null; then
19706 if ln -s conf$$.file conf$$ 2>/dev/null; then
19707 as_ln_s='ln -s'
19708 # ... but there are two gotchas:
19709 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19710 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19711 # In both cases, we have to default to `cp -p'.
19712 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19713 as_ln_s='cp -p'
19714 elif ln conf$$.file conf$$ 2>/dev/null; then
19715 as_ln_s=ln
19716 else
19717 as_ln_s='cp -p'
19718 fi
19719 else
19720 as_ln_s='cp -p'
19721 fi
19722 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19723 rmdir conf$$.dir 2>/dev/null
19724
19725
19726 # as_fn_mkdir_p
19727 # -------------
19728 # Create "$as_dir" as a directory, including parents if necessary.
19729 as_fn_mkdir_p ()
19730 {
19731
19732 case $as_dir in #(
19733 -*) as_dir=./$as_dir;;
19734 esac
19735 test -d "$as_dir" || eval $as_mkdir_p || {
19736 as_dirs=
19737 while :; do
19738 case $as_dir in #(
19739 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19740 *) as_qdir=$as_dir;;
19741 esac
19742 as_dirs="'$as_qdir' $as_dirs"
19743 as_dir=`$as_dirname -- "$as_dir" ||
19744 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19745 X"$as_dir" : 'X\(//\)[^/]' \| \
19746 X"$as_dir" : 'X\(//\)$' \| \
19747 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19748 $as_echo X"$as_dir" |
19749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19750 s//\1/
19751 q
19752 }
19753 /^X\(\/\/\)[^/].*/{
19754 s//\1/
19755 q
19756 }
19757 /^X\(\/\/\)$/{
19758 s//\1/
19759 q
19760 }
19761 /^X\(\/\).*/{
19762 s//\1/
19763 q
19764 }
19765 s/.*/./; q'`
19766 test -d "$as_dir" && break
19767 done
19768 test -z "$as_dirs" || eval "mkdir $as_dirs"
19769 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
19770
19771
19772 } # as_fn_mkdir_p
19773 if mkdir -p . 2>/dev/null; then
19774 as_mkdir_p='mkdir -p "$as_dir"'
19775 else
19776 test -d ./-p && rmdir ./-p
19777 as_mkdir_p=false
19778 fi
19779
19780 if test -x / >/dev/null 2>&1; then
19781 as_test_x='test -x'
19782 else
19783 if ls -dL / >/dev/null 2>&1; then
19784 as_ls_L_option=L
19785 else
19786 as_ls_L_option=
19787 fi
19788 as_test_x='
19789 eval sh -c '\''
19790 if test -d "$1"; then
19791 test -d "$1/.";
19792 else
19793 case $1 in #(
19794 -*)set "./$1";;
19795 esac;
19796 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19797 ???[sx]*):;;*)false;;esac;fi
19798 '\'' sh
19799 '
19800 fi
19801 as_executable_p=$as_test_x
19802
19803 # Sed expression to map a string onto a valid CPP name.
19804 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19805
19806 # Sed expression to map a string onto a valid variable name.
19807 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19808
19809
19810 exec 6>&1
19811 ## ----------------------------------- ##
19812 ## Main body of $CONFIG_STATUS script. ##
19813 ## ----------------------------------- ##
19814 _ASEOF
19815 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19816
19817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19818 # Save the log message, to keep $0 and so on meaningful, and to
19819 # report actual input values of CONFIG_FILES etc. instead of their
19820 # values after options handling.
19821 ac_log="
19822 This file was extended by ldapcpplib $as_me , which was
19823 generated by GNU Autoconf 2.65. Invocation command line was
19824
19825 CONFIG_FILES = $CONFIG_FILES
19826 CONFIG_HEADERS = $CONFIG_HEADERS
19827 CONFIG_LINKS = $CONFIG_LINKS
19828 CONFIG_COMMANDS = $CONFIG_COMMANDS
19829 $ $0 $@
19830
19831 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19832 "
19833
19834 _ACEOF
19835
19836 case $ac_config_files in *"
19837 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19838 esac
19839
19840 case $ac_config_headers in *"
19841 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19842 esac
19843
19844
19845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19846 # Files that config.status was made for.
19847 config_files="$ac_config_files"
19848 config_headers="$ac_config_headers"
19849 config_commands="$ac_config_commands"
19850
19851 _ACEOF
19852
19853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19854 ac_cs_usage="\
19855 \`$as_me' instantiates files and other configuration actions
19856 from templates according to the current configuration. Unless the files
19857 and actions are specified as TAGs, all are instantiated by default.
19858
19859 Usage: $0 [OPTION]... [TAG]...
19860
19861 -h, --help print this help, then exit
19862 -V, --version print version number and configuration settings, then exit
19863 --config print configuration, then exit
19864 -q, --quiet, --silent
19865 do not print progress messages
19866 -d, --debug don't remove temporary files
19867 --recheck update $as_me by reconfiguring in the same conditions
19868 --file=FILE[:TEMPLATE]
19869 instantiate the configuration file FILE
19870 --header=FILE[:TEMPLATE]
19871 instantiate the configuration header FILE
19872
19873 Configuration files:
19874 $config_files
19875
19876 Configuration headers:
19877 $config_headers
19878
19879 Configuration commands:
19880 $config_commands
19881
19882 Report bugs to <http://www.openldap.org/its/ >."
19883
19884 _ACEOF
19885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19886 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19887 ac_cs_version="\\
19888 ldapcpplib config.status
19889 configured by $0, generated by GNU Autoconf 2.65,
19890 with options \\"\$ac_cs_config\\"
19891
19892 Copyright (C) 2009 Free Software Foundation, Inc.
19893 This config.status script is free software; the Free Software Foundation
19894 gives unlimited permission to copy, distribute and modify it."
19895
19896 ac_pwd='$ac_pwd'
19897 srcdir='$srcdir'
19898 INSTALL='$INSTALL'
19899 MKDIR_P='$MKDIR_P'
19900 AWK='$AWK'
19901 test -n "\$AWK" || AWK=awk
19902 _ACEOF
19903
19904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19905 # The default lists apply if the user does not specify any file.
19906 ac_need_defaults=:
19907 while test $# != 0
19908 do
19909 case $1 in
19910 --*=*)
19911 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19912 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19913 ac_shift=:
19914 ;;
19915 *)
19916 ac_option=$1
19917 ac_optarg=$2
19918 ac_shift=shift
19919 ;;
19920 esac
19921
19922 case $ac_option in
19923 # Handling of the options.
19924 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19925 ac_cs_recheck=: ;;
19926 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19927 $as_echo "$ac_cs_version"; exit ;;
19928 --config | --confi | --conf | --con | --co | --c )
19929 $as_echo "$ac_cs_config"; exit ;;
19930 --debug | --debu | --deb | --de | --d | -d )
19931 debug=: ;;
19932 --file | --fil | --fi | --f )
19933 $ac_shift
19934 case $ac_optarg in
19935 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19936 esac
19937 as_fn_append CONFIG_FILES " '$ac_optarg'"
19938 ac_need_defaults=false;;
19939 --header | --heade | --head | --hea )
19940 $ac_shift
19941 case $ac_optarg in
19942 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19943 esac
19944 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19945 ac_need_defaults=false;;
19946 --he | --h)
19947 # Conflict between --help and --header
19948 as_fn_error "ambiguous option: \`$1'
19949 Try \`$0 --help' for more information.";;
19950 --help | --hel | -h )
19951 $as_echo "$ac_cs_usage"; exit ;;
19952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19953 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19954 ac_cs_silent=: ;;
19955
19956 # This is an error.
19957 -*) as_fn_error "unrecognized option: \`$1'
19958 Try \`$0 --help' for more information." ;;
19959
19960 *) as_fn_append ac_config_targets " $1"
19961 ac_need_defaults=false ;;
19962
19963 esac
19964 shift
19965 done
19966
19967 ac_configure_extra_args=
19968
19969 if $ac_cs_silent; then
19970 exec 6>/dev/null
19971 ac_configure_extra_args="$ac_configure_extra_args --silent"
19972 fi
19973
19974 _ACEOF
19975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19976 if \$ac_cs_recheck; then
19977 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19978 shift
19979 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19980 CONFIG_SHELL='$SHELL'
19981 export CONFIG_SHELL
19982 exec "\$@"
19983 fi
19984
19985 _ACEOF
19986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19987 exec 5>>config.log
19988 {
19989 echo
19990 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19991 ## Running $as_me. ##
19992 _ASBOX
19993 $as_echo "$ac_log"
19994 } >&5
19995
19996 _ACEOF
19997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19998 #
19999 # INIT-COMMANDS
20000 #
20001 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20002
20003 _ACEOF
20004
20005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20006
20007 # Handling of arguments.
20008 for ac_config_target in $ac_config_targets
20009 do
20010 case $ac_config_target in
20011 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
20012 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20013 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20014 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20015 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
20016
20017 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20018 esac
20019 done
20020
20021
20022 # If the user did not use the arguments to specify the items to instantiate,
20023 # then the envvar interface is used. Set only those that are not.
20024 # We use the long form for the default assignment because of an extremely
20025 # bizarre bug on SunOS 4.1.3.
20026 if $ac_need_defaults; then
20027 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20028 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20029 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20030 fi
20031
20032 # Have a temporary directory for convenience. Make it in the build tree
20033 # simply because there is no reason against having it here, and in addition,
20034 # creating and moving files from /tmp can sometimes cause problems.
20035 # Hook for its removal unless debugging.
20036 # Note that there is a small window in which the directory will not be cleaned:
20037 # after its creation but before its name has been assigned to `$tmp'.
20038 $debug ||
20039 {
20040 tmp=
20041 trap 'exit_status=$?
20042 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20043 ' 0
20044 trap 'as_fn_exit 1' 1 2 13 15
20045 }
20046 # Create a (secure) tmp directory for tmp files.
20047
20048 {
20049 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20050 test -n "$tmp" && test -d "$tmp"
20051 } ||
20052 {
20053 tmp=./conf$$-$RANDOM
20054 (umask 077 && mkdir "$tmp")
20055 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
20056
20057 # Set up the scripts for CONFIG_FILES section.
20058 # No need to generate them if there are no CONFIG_FILES.
20059 # This happens for instance with `./config.status config.h'.
20060 if test -n "$CONFIG_FILES"; then
20061
20062
20063 ac_cr=`echo X | tr X '\015'`
20064 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20065 # But we know of no other shell where ac_cr would be empty at this
20066 # point, so we can use a bashism as a fallback.
20067 if test "x$ac_cr" = x; then
20068 eval ac_cr=\$\'\\r\'
20069 fi
20070 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20071 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20072 ac_cs_awk_cr='\r'
20073 else
20074 ac_cs_awk_cr=$ac_cr
20075 fi
20076
20077 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20078 _ACEOF
20079
20080
20081 {
20082 echo "cat >conf$$subs.awk <<_ACEOF" &&
20083 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20084 echo "_ACEOF"
20085 } >conf$$subs.sh ||
20086 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20087 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20088 ac_delim='%!_!# '
20089 for ac_last_try in false false false false false :; do
20090 . ./conf$$subs.sh ||
20091 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20092
20093 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20094 if test $ac_delim_n = $ac_delim_num; then
20095 break
20096 elif $ac_last_try; then
20097 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20098 else
20099 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20100 fi
20101 done
20102 rm -f conf$$subs.sh
20103
20104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20105 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20106 _ACEOF
20107 sed -n '
20108 h
20109 s/^/S["/; s/!.*/"]=/
20110 p
20111 g
20112 s/^[^!]*!//
20113 :repl
20114 t repl
20115 s/'"$ac_delim"'$//
20116 t delim
20117 :nl
20118 h
20119 s/\(.\{148\}\)..*/\1/
20120 t more1
20121 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20122 p
20123 n
20124 b repl
20125 :more1
20126 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20127 p
20128 g
20129 s/.\{148\}//
20130 t nl
20131 :delim
20132 h
20133 s/\(.\{148\}\)..*/\1/
20134 t more2
20135 s/["\\]/\\&/g; s/^/"/; s/$/"/
20136 p
20137 b
20138 :more2
20139 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20140 p
20141 g
20142 s/.\{148\}//
20143 t delim
20144 ' <conf$$subs.awk | sed '
20145 /^[^""]/{
20146 N
20147 s/\n//
20148 }
20149 ' >>$CONFIG_STATUS || ac_write_fail=1
20150 rm -f conf$$subs.awk
20151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20152 _ACAWK
20153 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20154 for (key in S) S_is_set[key] = 1
20155 FS = ""
20156
20157 }
20158 {
20159 line = $ 0
20160 nfields = split(line, field, "@")
20161 substed = 0
20162 len = length(field[1])
20163 for (i = 2; i < nfields; i++) {
20164 key = field[i]
20165 keylen = length(key)
20166 if (S_is_set[key]) {
20167 value = S[key]
20168 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20169 len += length(value) + length(field[++i])
20170 substed = 1
20171 } else
20172 len += 1 + keylen
20173 }
20174
20175 print line
20176 }
20177
20178 _ACAWK
20179 _ACEOF
20180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20181 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20182 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20183 else
20184 cat
20185 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20186 || as_fn_error "could not setup config files machinery" "$LINENO" 5
20187 _ACEOF
20188
20189 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20190 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20191 # trailing colons and then remove the whole line if VPATH becomes empty
20192 # (actually we leave an empty line to preserve line numbers).
20193 if test "x$srcdir" = x.; then
20194 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20195 s/:*\$(srcdir):*/:/
20196 s/:*\${srcdir}:*/:/
20197 s/:*@srcdir@:*/:/
20198 s/^\([^=]*=[ ]*\):*/\1/
20199 s/:*$//
20200 s/^[^=]*=[ ]*$//
20201 }'
20202 fi
20203
20204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20205 fi # test -n "$CONFIG_FILES"
20206
20207 # Set up the scripts for CONFIG_HEADERS section.
20208 # No need to generate them if there are no CONFIG_HEADERS.
20209 # This happens for instance with `./config.status Makefile'.
20210 if test -n "$CONFIG_HEADERS"; then
20211 cat >"$tmp/defines.awk" <<\_ACAWK ||
20212 BEGIN {
20213 _ACEOF
20214
20215 # Transform confdefs.h into an awk script `defines.awk', embedded as
20216 # here-document in config.status, that substitutes the proper values into
20217 # config.h.in to produce config.h.
20218
20219 # Create a delimiter string that does not exist in confdefs.h, to ease
20220 # handling of long lines.
20221 ac_delim='%!_!# '
20222 for ac_last_try in false false :; do
20223 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20224 if test -z "$ac_t"; then
20225 break
20226 elif $ac_last_try; then
20227 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
20228 else
20229 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20230 fi
20231 done
20232
20233 # For the awk script, D is an array of macro values keyed by name,
20234 # likewise P contains macro parameters if any. Preserve backslash
20235 # newline sequences.
20236
20237 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20238 sed -n '
20239 s/.\{148\}/&'"$ac_delim"'/g
20240 t rset
20241 :rset
20242 s/^[ ]*#[ ]*define[ ][ ]*/ /
20243 t def
20244 d
20245 :def
20246 s/\\$//
20247 t bsnl
20248 s/["\\]/\\&/g
20249 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20250 D["\1"]=" \3"/p
20251 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20252 d
20253 :bsnl
20254 s/["\\]/\\&/g
20255 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20256 D["\1"]=" \3\\\\\\n"\\/p
20257 t cont
20258 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20259 t cont
20260 d
20261 :cont
20262 n
20263 s/.\{148\}/&'"$ac_delim"'/g
20264 t clear
20265 :clear
20266 s/\\$//
20267 t bsnlc
20268 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20269 d
20270 :bsnlc
20271 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20272 b cont
20273 ' <confdefs.h | sed '
20274 s/'"$ac_delim"'/"\\\
20275 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20276
20277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20278 for (key in D) D_is_set[key] = 1
20279 FS = ""
20280 }
20281 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20282 line = \$ 0
20283 split(line, arg, " ")
20284 if (arg[1] == "#") {
20285 defundef = arg[2]
20286 mac1 = arg[3]
20287 } else {
20288 defundef = substr(arg[1], 2)
20289 mac1 = arg[2]
20290 }
20291 split(mac1, mac2, "(") #)
20292 macro = mac2[1]
20293 prefix = substr(line, 1, index(line, defundef) - 1)
20294 if (D_is_set[macro]) {
20295 # Preserve the white space surrounding the "#".
20296 print prefix "define", macro P[macro] D[macro]
20297 next
20298 } else {
20299 # Replace #undef with comments. This is necessary, for example,
20300 # in the case of _POSIX_SOURCE, which is predefined and required
20301 # on some systems where configure will not decide to define it.
20302 if (defundef == "undef") {
20303 print "/*", prefix defundef, macro, "*/"
20304 next
20305 }
20306 }
20307 }
20308 { print }
20309 _ACAWK
20310 _ACEOF
20311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20312 as_fn_error "could not setup config headers machinery" "$LINENO" 5
20313 fi # test -n "$CONFIG_HEADERS"
20314
20315
20316 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20317 shift
20318 for ac_tag
20319 do
20320 case $ac_tag in
20321 :[FHLC]) ac_mode=$ac_tag; continue;;
20322 esac
20323 case $ac_mode$ac_tag in
20324 :[FHL]*:*);;
20325 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
20326 :[FH]-) ac_tag=-:-;;
20327 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20328 esac
20329 ac_save_IFS=$IFS
20330 IFS=:
20331 set x $ac_tag
20332 IFS=$ac_save_IFS
20333 shift
20334 ac_file=$1
20335 shift
20336
20337 case $ac_mode in
20338 :L) ac_source=$1;;
20339 :[FH])
20340 ac_file_inputs=
20341 for ac_f
20342 do
20343 case $ac_f in
20344 -) ac_f="$tmp/stdin";;
20345 *) # Look for the file first in the build tree, then in the source tree
20346 # (if the path is not absolute). The absolute path cannot be DOS-style,
20347 # because $ac_f cannot contain `:'.
20348 test -f "$ac_f" ||
20349 case $ac_f in
20350 [\\/$]*) false;;
20351 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20352 esac ||
20353 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20354 esac
20355 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20356 as_fn_append ac_file_inputs " '$ac_f'"
20357 done
20358
20359 # Let's still pretend it is `configure' which instantiates (i.e., don't
20360 # use $as_me), people would be surprised to read:
20361 # /* config.h. Generated by config.status. */
20362 configure_input='Generated from '`
20363 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20364 `' by configure.'
20365 if test x"$ac_file" != x-; then
20366 configure_input="$ac_file. $configure_input"
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20368 $as_echo "$as_me: creating $ac_file" >&6;}
20369 fi
20370 # Neutralize special characters interpreted by sed in replacement strings.
20371 case $configure_input in #(
20372 *\&* | *\|* | *\\* )
20373 ac_sed_conf_input=`$as_echo "$configure_input" |
20374 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20375 *) ac_sed_conf_input=$configure_input;;
20376 esac
20377
20378 case $ac_tag in
20379 *:-:* | *:-) cat >"$tmp/stdin" \
20380 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
20381 esac
20382 ;;
20383 esac
20384
20385 ac_dir=`$as_dirname -- "$ac_file" ||
20386 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20387 X"$ac_file" : 'X\(//\)[^/]' \| \
20388 X"$ac_file" : 'X\(//\)$' \| \
20389 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20390 $as_echo X"$ac_file" |
20391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20392 s//\1/
20393 q
20394 }
20395 /^X\(\/\/\)[^/].*/{
20396 s//\1/
20397 q
20398 }
20399 /^X\(\/\/\)$/{
20400 s//\1/
20401 q
20402 }
20403 /^X\(\/\).*/{
20404 s//\1/
20405 q
20406 }
20407 s/.*/./; q'`
20408 as_dir="$ac_dir"; as_fn_mkdir_p
20409 ac_builddir=.
20410
20411 case "$ac_dir" in
20412 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20413 *)
20414 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20415 # A ".." for each directory in $ac_dir_suffix.
20416 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20417 case $ac_top_builddir_sub in
20418 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20419 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20420 esac ;;
20421 esac
20422 ac_abs_top_builddir=$ac_pwd
20423 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20424 # for backward compatibility:
20425 ac_top_builddir=$ac_top_build_prefix
20426
20427 case $srcdir in
20428 .) # We are building in place.
20429 ac_srcdir=.
20430 ac_top_srcdir=$ac_top_builddir_sub
20431 ac_abs_top_srcdir=$ac_pwd ;;
20432 [\\/]* | ?:[\\/]* ) # Absolute name.
20433 ac_srcdir=$srcdir$ac_dir_suffix;
20434 ac_top_srcdir=$srcdir
20435 ac_abs_top_srcdir=$srcdir ;;
20436 *) # Relative name.
20437 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20438 ac_top_srcdir=$ac_top_build_prefix$srcdir
20439 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20440 esac
20441 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20442
20443
20444 case $ac_mode in
20445 :F)
20446 #
20447 # CONFIG_FILE
20448 #
20449
20450 case $INSTALL in
20451 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20452 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20453 esac
20454 ac_MKDIR_P=$MKDIR_P
20455 case $MKDIR_P in
20456 [\\/$]* | ?:[\\/]* ) ;;
20457 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20458 esac
20459 _ACEOF
20460
20461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20462 # If the template does not know about datarootdir, expand it.
20463 # FIXME: This hack should be removed a few years after 2.60.
20464 ac_datarootdir_hack=; ac_datarootdir_seen=
20465 ac_sed_dataroot='
20466 /datarootdir/ {
20467 p
20468 q
20469 }
20470 /@datadir@/p
20471 /@docdir@/p
20472 /@infodir@/p
20473 /@localedir@/p
20474 /@mandir@/p'
20475 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20476 *datarootdir*) ac_datarootdir_seen=yes;;
20477 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20479 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20480 _ACEOF
20481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20482 ac_datarootdir_hack='
20483 s&@datadir@&$datadir&g
20484 s&@docdir@&$docdir&g
20485 s&@infodir@&$infodir&g
20486 s&@localedir@&$localedir&g
20487 s&@mandir@&$mandir&g
20488 s&\\\${datarootdir}&$datarootdir&g' ;;
20489 esac
20490 _ACEOF
20491
20492 # Neutralize VPATH when `$srcdir' = `.'.
20493 # Shell code in configure.ac might set extrasub.
20494 # FIXME: do we really want to maintain this feature?
20495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20496 ac_sed_extra="$ac_vpsub
20497 $extrasub
20498 _ACEOF
20499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20500 :t
20501 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20502 s|@configure_input@|$ac_sed_conf_input|;t t
20503 s&@top_builddir@&$ac_top_builddir_sub&;t t
20504 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20505 s&@srcdir@&$ac_srcdir&;t t
20506 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20507 s&@top_srcdir@&$ac_top_srcdir&;t t
20508 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20509 s&@builddir@&$ac_builddir&;t t
20510 s&@abs_builddir@&$ac_abs_builddir&;t t
20511 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20512 s&@INSTALL@&$ac_INSTALL&;t t
20513 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20514 $ac_datarootdir_hack
20515 "
20516 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20517 || as_fn_error "could not create $ac_file" "$LINENO" 5
20518
20519 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20520 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20521 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20523 which seems to be undefined. Please make sure it is defined." >&5
20524 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20525 which seems to be undefined. Please make sure it is defined." >&2;}
20526
20527 rm -f "$tmp/stdin"
20528 case $ac_file in
20529 -) cat "$tmp/out" && rm -f "$tmp/out";;
20530 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20531 esac \
20532 || as_fn_error "could not create $ac_file" "$LINENO" 5
20533 ;;
20534 :H)
20535 #
20536 # CONFIG_HEADER
20537 #
20538 if test x"$ac_file" != x-; then
20539 {
20540 $as_echo "/* $configure_input */" \
20541 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20542 } >"$tmp/config.h" \
20543 || as_fn_error "could not create $ac_file" "$LINENO" 5
20544 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20545 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20546 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20547 else
20548 rm -f "$ac_file"
20549 mv "$tmp/config.h" "$ac_file" \
20550 || as_fn_error "could not create $ac_file" "$LINENO" 5
20551 fi
20552 else
20553 $as_echo "/* $configure_input */" \
20554 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20555 || as_fn_error "could not create -" "$LINENO" 5
20556 fi
20557 # Compute "$ac_file"'s index in $config_headers.
20558 _am_arg="$ac_file"
20559 _am_stamp_count=1
20560 for _am_header in $config_headers :; do
20561 case $_am_header in
20562 $_am_arg | $_am_arg:* )
20563 break ;;
20564 * )
20565 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20566 esac
20567 done
20568 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20569 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20570 X"$_am_arg" : 'X\(//\)[^/]' \| \
20571 X"$_am_arg" : 'X\(//\)$' \| \
20572 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20573 $as_echo X"$_am_arg" |
20574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20575 s//\1/
20576 q
20577 }
20578 /^X\(\/\/\)[^/].*/{
20579 s//\1/
20580 q
20581 }
20582 /^X\(\/\/\)$/{
20583 s//\1/
20584 q
20585 }
20586 /^X\(\/\).*/{
20587 s//\1/
20588 q
20589 }
20590 s/.*/./; q'`/stamp-h$_am_stamp_count
20591 ;;
20592
20593 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20594 $as_echo "$as_me: executing $ac_file commands" >&6;}
20595 ;;
20596 esac
20597
20598
20599 case $ac_file$ac_mode in
20600 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20601 # Strip MF so we end up with the name of the file.
20602 mf=`echo "$mf" | sed -e 's/:.*$//'`
20603 # Check whether this is an Automake generated Makefile or not.
20604 # We used to match only the files named `Makefile.in', but
20605 # some people rename them; so instead we look at the file content.
20606 # Grep'ing the first line is not enough: some people post-process
20607 # each Makefile.in and add a new line on top of each file to say so.
20608 # Grep'ing the whole file is not good either: AIX grep has a line
20609 # limit of 2048, but all sed's we know have understand at least 4000.
20610 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20611 dirpart=`$as_dirname -- "$mf" ||
20612 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20613 X"$mf" : 'X\(//\)[^/]' \| \
20614 X"$mf" : 'X\(//\)$' \| \
20615 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20616 $as_echo X"$mf" |
20617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20618 s//\1/
20619 q
20620 }
20621 /^X\(\/\/\)[^/].*/{
20622 s//\1/
20623 q
20624 }
20625 /^X\(\/\/\)$/{
20626 s//\1/
20627 q
20628 }
20629 /^X\(\/\).*/{
20630 s//\1/
20631 q
20632 }
20633 s/.*/./; q'`
20634 else
20635 continue
20636 fi
20637 # Extract the definition of DEPDIR, am__include, and am__quote
20638 # from the Makefile without running `make'.
20639 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20640 test -z "$DEPDIR" && continue
20641 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20642 test -z "am__include" && continue
20643 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20644 # When using ansi2knr, U may be empty or an underscore; expand it
20645 U=`sed -n 's/^U = //p' < "$mf"`
20646 # Find all dependency output files, they are included files with
20647 # $(DEPDIR) in their names. We invoke sed twice because it is the
20648 # simplest approach to changing $(DEPDIR) to its actual value in the
20649 # expansion.
20650 for file in `sed -n "
20651 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20652 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20653 # Make sure the directory exists.
20654 test -f "$dirpart/$file" && continue
20655 fdir=`$as_dirname -- "$file" ||
20656 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20657 X"$file" : 'X\(//\)[^/]' \| \
20658 X"$file" : 'X\(//\)$' \| \
20659 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20660 $as_echo X"$file" |
20661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20662 s//\1/
20663 q
20664 }
20665 /^X\(\/\/\)[^/].*/{
20666 s//\1/
20667 q
20668 }
20669 /^X\(\/\/\)$/{
20670 s//\1/
20671 q
20672 }
20673 /^X\(\/\).*/{
20674 s//\1/
20675 q
20676 }
20677 s/.*/./; q'`
20678 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20679 # echo "creating $dirpart/$file"
20680 echo '# dummy' > "$dirpart/$file"
20681 done
20682 done
20683 ;;
20684
20685 esac
20686 done # for ac_tag
20687
20688
20689 as_fn_exit 0
20690 _ACEOF
20691 ac_clean_files=$ac_clean_files_save
20692
20693 test $ac_write_fail = 0 ||
20694 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20695
20696
20697 # configure is writing to config.log, and then calls config.status.
20698 # config.status does its own redirection, appending to config.log.
20699 # Unfortunately, on DOS this fails, as config.log is still kept open
20700 # by configure, so config.status won't be able to write to it; its
20701 # output is simply discarded. So we exec the FD to /dev/null,
20702 # effectively closing config.log, so it can be properly (re)opened and
20703 # appended to by config.status. When coming back to configure, we
20704 # need to make the FD available again.
20705 if test "$no_create" != yes; then
20706 ac_cs_success=:
20707 ac_config_status_args=
20708 test "$silent" = yes &&
20709 ac_config_status_args="$ac_config_status_args --quiet"
20710 exec 5>/dev/null
20711 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20712 exec 5>>config.log
20713 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20714 # would make configure fail if this is the last instruction.
20715 $ac_cs_success || as_fn_exit $?
20716 fi
20717 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20719 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20720 fi
20721
20722