Import Debian package 0.61.0-1+lenny1
[hcoop/debian/courier-authlib.git] / userdb / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libuserdb 0.10.
4 #
5 # Report bugs to <courier-users@lists.sourceforge.net>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584 $*
585 EOF
586 exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611 else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='libuserdb'
730 PACKAGE_TARNAME='libuserdb'
731 PACKAGE_VERSION='0.10'
732 PACKAGE_STRING='libuserdb 0.10'
733 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
734
735 ac_unique_file="userdb.c"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 am__isrc
813 CYGPATH_W
814 PACKAGE
815 VERSION
816 ACLOCAL
817 AUTOCONF
818 AUTOMAKE
819 AUTOHEADER
820 MAKEINFO
821 install_sh
822 STRIP
823 INSTALL_STRIP_PROGRAM
824 mkdir_p
825 AWK
826 SET_MAKE
827 am__leading_dot
828 AMTAR
829 am__tar
830 am__untar
831 CC
832 CFLAGS
833 LDFLAGS
834 CPPFLAGS
835 ac_ct_CC
836 EXEEXT
837 OBJEXT
838 DEPDIR
839 am__include
840 am__quote
841 AMDEP_TRUE
842 AMDEP_FALSE
843 AMDEPBACKSLASH
844 CCDEPMODE
845 am__fastdepCC_TRUE
846 am__fastdepCC_FALSE
847 LN_S
848 build
849 build_cpu
850 build_vendor
851 build_os
852 host
853 host_cpu
854 host_vendor
855 host_os
856 SED
857 GREP
858 EGREP
859 ECHO
860 AR
861 RANLIB
862 CPP
863 CXX
864 CXXFLAGS
865 ac_ct_CXX
866 CXXDEPMODE
867 am__fastdepCXX_TRUE
868 am__fastdepCXX_FALSE
869 CXXCPP
870 F77
871 FFLAGS
872 ac_ct_F77
873 LIBTOOL
874 PERL
875 userdb
876 USERDB
877 userdbtmpdir
878 tmpdir
879 makedat
880 MD5LIB
881 SHA1LIB
882 HMACLIB
883 CRYPTLIBS
884 HAVE_SGML_TRUE
885 HAVE_SGML_FALSE
886 LIBOBJS
887 LTLIBOBJS'
888 ac_subst_files=''
889 ac_precious_vars='build_alias
890 host_alias
891 target_alias
892 CC
893 CFLAGS
894 LDFLAGS
895 LIBS
896 CPPFLAGS
897 CPP
898 CXX
899 CXXFLAGS
900 CCC
901 CXXCPP
902 F77
903 FFLAGS'
904
905
906 # Initialize some variables set by options.
907 ac_init_help=
908 ac_init_version=false
909 # The variables have the same names as the options, with
910 # dashes changed to underlines.
911 cache_file=/dev/null
912 exec_prefix=NONE
913 no_create=
914 no_recursion=
915 prefix=NONE
916 program_prefix=NONE
917 program_suffix=NONE
918 program_transform_name=s,x,x,
919 silent=
920 site=
921 srcdir=
922 verbose=
923 x_includes=NONE
924 x_libraries=NONE
925
926 # Installation directory options.
927 # These are left unexpanded so users can "make install exec_prefix=/foo"
928 # and all the variables that are supposed to be based on exec_prefix
929 # by default will actually change.
930 # Use braces instead of parens because sh, perl, etc. also accept them.
931 # (The list follows the same order as the GNU Coding Standards.)
932 bindir='${exec_prefix}/bin'
933 sbindir='${exec_prefix}/sbin'
934 libexecdir='${exec_prefix}/libexec'
935 datarootdir='${prefix}/share'
936 datadir='${datarootdir}'
937 sysconfdir='${prefix}/etc'
938 sharedstatedir='${prefix}/com'
939 localstatedir='${prefix}/var'
940 includedir='${prefix}/include'
941 oldincludedir='/usr/include'
942 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
943 infodir='${datarootdir}/info'
944 htmldir='${docdir}'
945 dvidir='${docdir}'
946 pdfdir='${docdir}'
947 psdir='${docdir}'
948 libdir='${exec_prefix}/lib'
949 localedir='${datarootdir}/locale'
950 mandir='${datarootdir}/man'
951
952 ac_prev=
953 ac_dashdash=
954 for ac_option
955 do
956 # If the previous option needs an argument, assign it.
957 if test -n "$ac_prev"; then
958 eval $ac_prev=\$ac_option
959 ac_prev=
960 continue
961 fi
962
963 case $ac_option in
964 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965 *) ac_optarg=yes ;;
966 esac
967
968 # Accept the important Cygnus configure options, so we can diagnose typos.
969
970 case $ac_dashdash$ac_option in
971 --)
972 ac_dashdash=yes ;;
973
974 -bindir | --bindir | --bindi | --bind | --bin | --bi)
975 ac_prev=bindir ;;
976 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
977 bindir=$ac_optarg ;;
978
979 -build | --build | --buil | --bui | --bu)
980 ac_prev=build_alias ;;
981 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
982 build_alias=$ac_optarg ;;
983
984 -cache-file | --cache-file | --cache-fil | --cache-fi \
985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986 ac_prev=cache_file ;;
987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
989 cache_file=$ac_optarg ;;
990
991 --config-cache | -C)
992 cache_file=config.cache ;;
993
994 -datadir | --datadir | --datadi | --datad)
995 ac_prev=datadir ;;
996 -datadir=* | --datadir=* | --datadi=* | --datad=*)
997 datadir=$ac_optarg ;;
998
999 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000 | --dataroo | --dataro | --datar)
1001 ac_prev=datarootdir ;;
1002 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004 datarootdir=$ac_optarg ;;
1005
1006 -disable-* | --disable-*)
1007 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1010 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1011 { (exit 1); exit 1; }; }
1012 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1013 eval enable_$ac_feature=no ;;
1014
1015 -docdir | --docdir | --docdi | --doc | --do)
1016 ac_prev=docdir ;;
1017 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1018 docdir=$ac_optarg ;;
1019
1020 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021 ac_prev=dvidir ;;
1022 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1023 dvidir=$ac_optarg ;;
1024
1025 -enable-* | --enable-*)
1026 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1029 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1030 { (exit 1); exit 1; }; }
1031 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1032 eval enable_$ac_feature=\$ac_optarg ;;
1033
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
1041 exec_prefix=$ac_optarg ;;
1042
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1046
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
1053
1054 -host | --host | --hos | --ho)
1055 ac_prev=host_alias ;;
1056 -host=* | --host=* | --hos=* | --ho=*)
1057 host_alias=$ac_optarg ;;
1058
1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1064
1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
1070 includedir=$ac_optarg ;;
1071
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075 infodir=$ac_optarg ;;
1076
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080 libdir=$ac_optarg ;;
1081
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
1087 libexecdir=$ac_optarg ;;
1088
1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1093
1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
1095 | --localstate | --localstat | --localsta | --localst | --locals)
1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1099 localstatedir=$ac_optarg ;;
1100
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104 mandir=$ac_optarg ;;
1105
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1109
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111 | --no-cr | --no-c | -n)
1112 no_create=yes ;;
1113
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1117
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125 oldincludedir=$ac_optarg ;;
1126
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130 prefix=$ac_optarg ;;
1131
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137 program_prefix=$ac_optarg ;;
1138
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144 program_suffix=$ac_optarg ;;
1145
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
1161 program_transform_name=$ac_optarg ;;
1162
1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1167
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1172
1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1176
1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 ac_prev=sbindir ;;
1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 | --sbi=* | --sb=*)
1181 sbindir=$ac_optarg ;;
1182
1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185 | --sharedst | --shareds | --shared | --share | --shar \
1186 | --sha | --sh)
1187 ac_prev=sharedstatedir ;;
1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 | --sha=* | --sh=*)
1192 sharedstatedir=$ac_optarg ;;
1193
1194 -site | --site | --sit)
1195 ac_prev=site ;;
1196 -site=* | --site=* | --sit=*)
1197 site=$ac_optarg ;;
1198
1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 ac_prev=srcdir ;;
1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202 srcdir=$ac_optarg ;;
1203
1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205 | --syscon | --sysco | --sysc | --sys | --sy)
1206 ac_prev=sysconfdir ;;
1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209 sysconfdir=$ac_optarg ;;
1210
1211 -target | --target | --targe | --targ | --tar | --ta | --t)
1212 ac_prev=target_alias ;;
1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214 target_alias=$ac_optarg ;;
1215
1216 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 verbose=yes ;;
1218
1219 -version | --version | --versio | --versi | --vers | -V)
1220 ac_init_version=: ;;
1221
1222 -with-* | --with-*)
1223 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226 { echo "$as_me: error: invalid package name: $ac_package" >&2
1227 { (exit 1); exit 1; }; }
1228 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1229 eval with_$ac_package=\$ac_optarg ;;
1230
1231 -without-* | --without-*)
1232 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 { echo "$as_me: error: invalid package name: $ac_package" >&2
1236 { (exit 1); exit 1; }; }
1237 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1238 eval with_$ac_package=no ;;
1239
1240 --x)
1241 # Obsolete; use --with-x.
1242 with_x=yes ;;
1243
1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245 | --x-incl | --x-inc | --x-in | --x-i)
1246 ac_prev=x_includes ;;
1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249 x_includes=$ac_optarg ;;
1250
1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253 ac_prev=x_libraries ;;
1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256 x_libraries=$ac_optarg ;;
1257
1258 -*) { echo "$as_me: error: unrecognized option: $ac_option
1259 Try \`$0 --help' for more information." >&2
1260 { (exit 1); exit 1; }; }
1261 ;;
1262
1263 *=*)
1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1267 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1268 { (exit 1); exit 1; }; }
1269 eval $ac_envvar=\$ac_optarg
1270 export $ac_envvar ;;
1271
1272 *)
1273 # FIXME: should be removed in autoconf 3.0.
1274 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1277 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1278 ;;
1279
1280 esac
1281 done
1282
1283 if test -n "$ac_prev"; then
1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285 { echo "$as_me: error: missing argument to $ac_option" >&2
1286 { (exit 1); exit 1; }; }
1287 fi
1288
1289 # Be sure to have absolute directory names.
1290 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291 datadir sysconfdir sharedstatedir localstatedir includedir \
1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293 libdir localedir mandir
1294 do
1295 eval ac_val=\$$ac_var
1296 case $ac_val in
1297 [\\/$]* | ?:[\\/]* ) continue;;
1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 esac
1300 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1301 { (exit 1); exit 1; }; }
1302 done
1303
1304 # There might be people who depend on the old broken behavior: `$host'
1305 # used to hold the argument of --host etc.
1306 # FIXME: To remove some day.
1307 build=$build_alias
1308 host=$host_alias
1309 target=$target_alias
1310
1311 # FIXME: To remove some day.
1312 if test "x$host_alias" != x; then
1313 if test "x$build_alias" = x; then
1314 cross_compiling=maybe
1315 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1316 If a cross compiler is detected then cross compile mode will be used." >&2
1317 elif test "x$build_alias" != "x$host_alias"; then
1318 cross_compiling=yes
1319 fi
1320 fi
1321
1322 ac_tool_prefix=
1323 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
1325 test "$silent" = yes && exec 6>/dev/null
1326
1327
1328 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329 ac_ls_di=`ls -di .` &&
1330 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331 { echo "$as_me: error: Working directory cannot be determined" >&2
1332 { (exit 1); exit 1; }; }
1333 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334 { echo "$as_me: error: pwd does not report name of working directory" >&2
1335 { (exit 1); exit 1; }; }
1336
1337
1338 # Find the source files, if location was not specified.
1339 if test -z "$srcdir"; then
1340 ac_srcdir_defaulted=yes
1341 # Try the directory containing this script, then the parent directory.
1342 ac_confdir=`$as_dirname -- "$0" ||
1343 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344 X"$0" : 'X\(//\)[^/]' \| \
1345 X"$0" : 'X\(//\)$' \| \
1346 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1347 echo X"$0" |
1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)[^/].*/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\/\)$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\).*/{
1361 s//\1/
1362 q
1363 }
1364 s/.*/./; q'`
1365 srcdir=$ac_confdir
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 srcdir=..
1368 fi
1369 else
1370 ac_srcdir_defaulted=no
1371 fi
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1375 { (exit 1); exit 1; }; }
1376 fi
1377 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378 ac_abs_confdir=`(
1379 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1380 { (exit 1); exit 1; }; }
1381 pwd)`
1382 # When building in place, set srcdir=.
1383 if test "$ac_abs_confdir" = "$ac_pwd"; then
1384 srcdir=.
1385 fi
1386 # Remove unnecessary trailing slashes from srcdir.
1387 # Double slashes in file names in object file debugging info
1388 # mess up M-x gdb in Emacs.
1389 case $srcdir in
1390 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391 esac
1392 for ac_var in $ac_precious_vars; do
1393 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_env_${ac_var}_value=\$${ac_var}
1395 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397 done
1398
1399 #
1400 # Report the --help message.
1401 #
1402 if test "$ac_init_help" = "long"; then
1403 # Omit some internal or obsolete options to make the list less imposing.
1404 # This message is too long to be a string in the A/UX 3.1 sh.
1405 cat <<_ACEOF
1406 \`configure' configures libuserdb 0.10 to adapt to many kinds of systems.
1407
1408 Usage: $0 [OPTION]... [VAR=VALUE]...
1409
1410 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1411 VAR=VALUE. See below for descriptions of some of the useful variables.
1412
1413 Defaults for the options are specified in brackets.
1414
1415 Configuration:
1416 -h, --help display this help and exit
1417 --help=short display options specific to this package
1418 --help=recursive display the short help of all the included packages
1419 -V, --version display version information and exit
1420 -q, --quiet, --silent do not print \`checking...' messages
1421 --cache-file=FILE cache test results in FILE [disabled]
1422 -C, --config-cache alias for \`--cache-file=config.cache'
1423 -n, --no-create do not create output files
1424 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1425
1426 Installation directories:
1427 --prefix=PREFIX install architecture-independent files in PREFIX
1428 [$ac_default_prefix]
1429 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1430 [PREFIX]
1431
1432 By default, \`make install' will install all the files in
1433 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1434 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1435 for instance \`--prefix=\$HOME'.
1436
1437 For better control, use the options below.
1438
1439 Fine tuning of the installation directories:
1440 --bindir=DIR user executables [EPREFIX/bin]
1441 --sbindir=DIR system admin executables [EPREFIX/sbin]
1442 --libexecdir=DIR program executables [EPREFIX/libexec]
1443 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1444 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1445 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1446 --libdir=DIR object code libraries [EPREFIX/lib]
1447 --includedir=DIR C header files [PREFIX/include]
1448 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1449 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1450 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1451 --infodir=DIR info documentation [DATAROOTDIR/info]
1452 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1453 --mandir=DIR man documentation [DATAROOTDIR/man]
1454 --docdir=DIR documentation root [DATAROOTDIR/doc/libuserdb]
1455 --htmldir=DIR html documentation [DOCDIR]
1456 --dvidir=DIR dvi documentation [DOCDIR]
1457 --pdfdir=DIR pdf documentation [DOCDIR]
1458 --psdir=DIR ps documentation [DOCDIR]
1459 _ACEOF
1460
1461 cat <<\_ACEOF
1462
1463 Program names:
1464 --program-prefix=PREFIX prepend PREFIX to installed program names
1465 --program-suffix=SUFFIX append SUFFIX to installed program names
1466 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1467
1468 System types:
1469 --build=BUILD configure for building on BUILD [guessed]
1470 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1471 _ACEOF
1472 fi
1473
1474 if test -n "$ac_init_help"; then
1475 case $ac_init_help in
1476 short | recursive ) echo "Configuration of libuserdb 0.10:";;
1477 esac
1478 cat <<\_ACEOF
1479
1480 Optional Features:
1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1483 --disable-dependency-tracking speeds up one-time build
1484 --enable-dependency-tracking do not reject slow dependency extractors
1485 --enable-shared[=PKGS] build shared libraries [default=yes]
1486 --enable-static[=PKGS] build static libraries [default=yes]
1487 --enable-fast-install[=PKGS]
1488 optimize for fast installation [default=yes]
1489 --disable-libtool-lock avoid locking (might break parallel builds)
1490
1491 Optional Packages:
1492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1494 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1495 --with-pic try to use only PIC/non-PIC objects [default=use
1496 both]
1497 --with-tags[=TAGS] include additional configurations [automatic]
1498
1499 --with-random=/dev/urandom - location of the system random file generator
1500 --without-random - there is no system random file generator
1501
1502 Some influential environment variables:
1503 CC C compiler command
1504 CFLAGS C compiler flags
1505 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1506 nonstandard directory <lib dir>
1507 LIBS libraries to pass to the linker, e.g. -l<library>
1508 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1509 you have headers in a nonstandard directory <include dir>
1510 CPP C preprocessor
1511 CXX C++ compiler command
1512 CXXFLAGS C++ compiler flags
1513 CXXCPP C++ preprocessor
1514 F77 Fortran 77 compiler command
1515 FFLAGS Fortran 77 compiler flags
1516
1517 Use these variables to override the choices made by `configure' or to help
1518 it to find libraries and programs with nonstandard names/locations.
1519
1520 Report bugs to <courier-users@lists.sourceforge.net>.
1521 _ACEOF
1522 ac_status=$?
1523 fi
1524
1525 if test "$ac_init_help" = "recursive"; then
1526 # If there are subdirs, report their specific --help.
1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528 test -d "$ac_dir" || continue
1529 ac_builddir=.
1530
1531 case "$ac_dir" in
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *)
1534 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1535 # A ".." for each directory in $ac_dir_suffix.
1536 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540 esac ;;
1541 esac
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1546
1547 case $srcdir in
1548 .) # We are building in place.
1549 ac_srcdir=.
1550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
1553 ac_srcdir=$srcdir$ac_dir_suffix;
1554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1556 *) # Relative name.
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 esac
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562
1563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for guested configure.
1565 if test -f "$ac_srcdir/configure.gnu"; then
1566 echo &&
1567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568 elif test -f "$ac_srcdir/configure"; then
1569 echo &&
1570 $SHELL "$ac_srcdir/configure" --help=recursive
1571 else
1572 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573 fi || ac_status=$?
1574 cd "$ac_pwd" || { ac_status=$?; break; }
1575 done
1576 fi
1577
1578 test -n "$ac_init_help" && exit $ac_status
1579 if $ac_init_version; then
1580 cat <<\_ACEOF
1581 libuserdb configure 0.10
1582 generated by GNU Autoconf 2.61
1583
1584 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1585 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1588 _ACEOF
1589 exit
1590 fi
1591 cat >config.log <<_ACEOF
1592 This file contains any messages produced by compilers while
1593 running configure, to aid debugging if configure makes a mistake.
1594
1595 It was created by libuserdb $as_me 0.10, which was
1596 generated by GNU Autoconf 2.61. Invocation command line was
1597
1598 $ $0 $@
1599
1600 _ACEOF
1601 exec 5>>config.log
1602 {
1603 cat <<_ASUNAME
1604 ## --------- ##
1605 ## Platform. ##
1606 ## --------- ##
1607
1608 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1609 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1610 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1611 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1612 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1613
1614 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1615 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1616
1617 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1618 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1619 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1620 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1621 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1622 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1623 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1624
1625 _ASUNAME
1626
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 for as_dir in $PATH
1629 do
1630 IFS=$as_save_IFS
1631 test -z "$as_dir" && as_dir=.
1632 echo "PATH: $as_dir"
1633 done
1634 IFS=$as_save_IFS
1635
1636 } >&5
1637
1638 cat >&5 <<_ACEOF
1639
1640
1641 ## ----------- ##
1642 ## Core tests. ##
1643 ## ----------- ##
1644
1645 _ACEOF
1646
1647
1648 # Keep a trace of the command line.
1649 # Strip out --no-create and --no-recursion so they do not pile up.
1650 # Strip out --silent because we don't want to record it for future runs.
1651 # Also quote any args containing shell meta-characters.
1652 # Make two passes to allow for proper duplicate-argument suppression.
1653 ac_configure_args=
1654 ac_configure_args0=
1655 ac_configure_args1=
1656 ac_must_keep_next=false
1657 for ac_pass in 1 2
1658 do
1659 for ac_arg
1660 do
1661 case $ac_arg in
1662 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1663 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1664 | -silent | --silent | --silen | --sile | --sil)
1665 continue ;;
1666 *\'*)
1667 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1668 esac
1669 case $ac_pass in
1670 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1671 2)
1672 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1673 if test $ac_must_keep_next = true; then
1674 ac_must_keep_next=false # Got value, back to normal.
1675 else
1676 case $ac_arg in
1677 *=* | --config-cache | -C | -disable-* | --disable-* \
1678 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1679 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1680 | -with-* | --with-* | -without-* | --without-* | --x)
1681 case "$ac_configure_args0 " in
1682 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1683 esac
1684 ;;
1685 -* ) ac_must_keep_next=true ;;
1686 esac
1687 fi
1688 ac_configure_args="$ac_configure_args '$ac_arg'"
1689 ;;
1690 esac
1691 done
1692 done
1693 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1694 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1695
1696 # When interrupted or exit'd, cleanup temporary files, and complete
1697 # config.log. We remove comments because anyway the quotes in there
1698 # would cause problems or look ugly.
1699 # WARNING: Use '\'' to represent an apostrophe within the trap.
1700 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1701 trap 'exit_status=$?
1702 # Save into config.log some information that might help in debugging.
1703 {
1704 echo
1705
1706 cat <<\_ASBOX
1707 ## ---------------- ##
1708 ## Cache variables. ##
1709 ## ---------------- ##
1710 _ASBOX
1711 echo
1712 # The following way of writing the cache mishandles newlines in values,
1713 (
1714 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1715 eval ac_val=\$$ac_var
1716 case $ac_val in #(
1717 *${as_nl}*)
1718 case $ac_var in #(
1719 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1720 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1721 esac
1722 case $ac_var in #(
1723 _ | IFS | as_nl) ;; #(
1724 *) $as_unset $ac_var ;;
1725 esac ;;
1726 esac
1727 done
1728 (set) 2>&1 |
1729 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1730 *${as_nl}ac_space=\ *)
1731 sed -n \
1732 "s/'\''/'\''\\\\'\'''\''/g;
1733 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1734 ;; #(
1735 *)
1736 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1737 ;;
1738 esac |
1739 sort
1740 )
1741 echo
1742
1743 cat <<\_ASBOX
1744 ## ----------------- ##
1745 ## Output variables. ##
1746 ## ----------------- ##
1747 _ASBOX
1748 echo
1749 for ac_var in $ac_subst_vars
1750 do
1751 eval ac_val=\$$ac_var
1752 case $ac_val in
1753 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754 esac
1755 echo "$ac_var='\''$ac_val'\''"
1756 done | sort
1757 echo
1758
1759 if test -n "$ac_subst_files"; then
1760 cat <<\_ASBOX
1761 ## ------------------- ##
1762 ## File substitutions. ##
1763 ## ------------------- ##
1764 _ASBOX
1765 echo
1766 for ac_var in $ac_subst_files
1767 do
1768 eval ac_val=\$$ac_var
1769 case $ac_val in
1770 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1771 esac
1772 echo "$ac_var='\''$ac_val'\''"
1773 done | sort
1774 echo
1775 fi
1776
1777 if test -s confdefs.h; then
1778 cat <<\_ASBOX
1779 ## ----------- ##
1780 ## confdefs.h. ##
1781 ## ----------- ##
1782 _ASBOX
1783 echo
1784 cat confdefs.h
1785 echo
1786 fi
1787 test "$ac_signal" != 0 &&
1788 echo "$as_me: caught signal $ac_signal"
1789 echo "$as_me: exit $exit_status"
1790 } >&5
1791 rm -f core *.core core.conftest.* &&
1792 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1793 exit $exit_status
1794 ' 0
1795 for ac_signal in 1 2 13 15; do
1796 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1797 done
1798 ac_signal=0
1799
1800 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1801 rm -f -r conftest* confdefs.h
1802
1803 # Predefined preprocessor variables.
1804
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_NAME "$PACKAGE_NAME"
1807 _ACEOF
1808
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1812 _ACEOF
1813
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1817 _ACEOF
1818
1819
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_STRING "$PACKAGE_STRING"
1822 _ACEOF
1823
1824
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1827 _ACEOF
1828
1829
1830 # Let the site file select an alternate cache file if it wants to.
1831 # Prefer explicitly selected file to automatically selected ones.
1832 if test -n "$CONFIG_SITE"; then
1833 set x "$CONFIG_SITE"
1834 elif test "x$prefix" != xNONE; then
1835 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1836 else
1837 set x "$ac_default_prefix/share/config.site" \
1838 "$ac_default_prefix/etc/config.site"
1839 fi
1840 shift
1841 for ac_site_file
1842 do
1843 if test -r "$ac_site_file"; then
1844 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1845 echo "$as_me: loading site script $ac_site_file" >&6;}
1846 sed 's/^/| /' "$ac_site_file" >&5
1847 . "$ac_site_file"
1848 fi
1849 done
1850
1851 if test -r "$cache_file"; then
1852 # Some versions of bash will fail to source /dev/null (special
1853 # files actually), so we avoid doing that.
1854 if test -f "$cache_file"; then
1855 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1856 echo "$as_me: loading cache $cache_file" >&6;}
1857 case $cache_file in
1858 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1859 *) . "./$cache_file";;
1860 esac
1861 fi
1862 else
1863 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1864 echo "$as_me: creating cache $cache_file" >&6;}
1865 >$cache_file
1866 fi
1867
1868 # Check that the precious variables saved in the cache have kept the same
1869 # value.
1870 ac_cache_corrupted=false
1871 for ac_var in $ac_precious_vars; do
1872 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1873 eval ac_new_set=\$ac_env_${ac_var}_set
1874 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1875 eval ac_new_val=\$ac_env_${ac_var}_value
1876 case $ac_old_set,$ac_new_set in
1877 set,)
1878 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1879 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1880 ac_cache_corrupted=: ;;
1881 ,set)
1882 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1883 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1884 ac_cache_corrupted=: ;;
1885 ,);;
1886 *)
1887 if test "x$ac_old_val" != "x$ac_new_val"; then
1888 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1889 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1890 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1891 echo "$as_me: former value: $ac_old_val" >&2;}
1892 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1893 echo "$as_me: current value: $ac_new_val" >&2;}
1894 ac_cache_corrupted=:
1895 fi;;
1896 esac
1897 # Pass precious variables to config.status.
1898 if test "$ac_new_set" = set; then
1899 case $ac_new_val in
1900 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1901 *) ac_arg=$ac_var=$ac_new_val ;;
1902 esac
1903 case " $ac_configure_args " in
1904 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1905 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1906 esac
1907 fi
1908 done
1909 if $ac_cache_corrupted; then
1910 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1911 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1912 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1913 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1914 { (exit 1); exit 1; }; }
1915 fi
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941 ac_ext=c
1942 ac_cpp='$CPP $CPPFLAGS'
1943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1946
1947
1948
1949 >confdefs.h # Kill PACKAGE_ macros.
1950
1951 LPATH="$PATH:/usr/local/bin"
1952
1953
1954 am__api_version='1.10'
1955
1956 ac_aux_dir=
1957 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1958 if test -f "$ac_dir/install-sh"; then
1959 ac_aux_dir=$ac_dir
1960 ac_install_sh="$ac_aux_dir/install-sh -c"
1961 break
1962 elif test -f "$ac_dir/install.sh"; then
1963 ac_aux_dir=$ac_dir
1964 ac_install_sh="$ac_aux_dir/install.sh -c"
1965 break
1966 elif test -f "$ac_dir/shtool"; then
1967 ac_aux_dir=$ac_dir
1968 ac_install_sh="$ac_aux_dir/shtool install -c"
1969 break
1970 fi
1971 done
1972 if test -z "$ac_aux_dir"; then
1973 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1974 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1975 { (exit 1); exit 1; }; }
1976 fi
1977
1978 # These three variables are undocumented and unsupported,
1979 # and are intended to be withdrawn in a future Autoconf release.
1980 # They can cause serious problems if a builder's source tree is in a directory
1981 # whose full name contains unusual characters.
1982 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1983 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1984 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1985
1986
1987 # Find a good install program. We prefer a C program (faster),
1988 # so one script is as good as another. But avoid the broken or
1989 # incompatible versions:
1990 # SysV /etc/install, /usr/sbin/install
1991 # SunOS /usr/etc/install
1992 # IRIX /sbin/install
1993 # AIX /bin/install
1994 # AmigaOS /C/install, which installs bootblocks on floppy discs
1995 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1996 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1997 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1998 # OS/2's system install, which has a completely different semantic
1999 # ./install, which can be erroneously created by make from ./install.sh.
2000 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2001 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2002 if test -z "$INSTALL"; then
2003 if test "${ac_cv_path_install+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2008 do
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 # Account for people who put trailing slashes in PATH elements.
2012 case $as_dir/ in
2013 ./ | .// | /cC/* | \
2014 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2015 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2016 /usr/ucb/* ) ;;
2017 *)
2018 # OSF1 and SCO ODT 3.0 have their own names for install.
2019 # Don't use installbsd from OSF since it installs stuff as root
2020 # by default.
2021 for ac_prog in ginstall scoinst install; do
2022 for ac_exec_ext in '' $ac_executable_extensions; do
2023 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2024 if test $ac_prog = install &&
2025 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2026 # AIX install. It has an incompatible calling convention.
2027 :
2028 elif test $ac_prog = install &&
2029 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2030 # program-specific install script used by HP pwplus--don't use.
2031 :
2032 else
2033 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2034 break 3
2035 fi
2036 fi
2037 done
2038 done
2039 ;;
2040 esac
2041 done
2042 IFS=$as_save_IFS
2043
2044
2045 fi
2046 if test "${ac_cv_path_install+set}" = set; then
2047 INSTALL=$ac_cv_path_install
2048 else
2049 # As a last resort, use the slow shell script. Don't cache a
2050 # value for INSTALL within a source directory, because that will
2051 # break other packages using the cache if that directory is
2052 # removed, or if the value is a relative name.
2053 INSTALL=$ac_install_sh
2054 fi
2055 fi
2056 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2057 echo "${ECHO_T}$INSTALL" >&6; }
2058
2059 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2060 # It thinks the first close brace ends the variable substitution.
2061 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2062
2063 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2064
2065 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2066
2067 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2068 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2069 # Just in case
2070 sleep 1
2071 echo timestamp > conftest.file
2072 # Do `set' in a subshell so we don't clobber the current shell's
2073 # arguments. Must try -L first in case configure is actually a
2074 # symlink; some systems play weird games with the mod time of symlinks
2075 # (eg FreeBSD returns the mod time of the symlink's containing
2076 # directory).
2077 if (
2078 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2079 if test "$*" = "X"; then
2080 # -L didn't work.
2081 set X `ls -t $srcdir/configure conftest.file`
2082 fi
2083 rm -f conftest.file
2084 if test "$*" != "X $srcdir/configure conftest.file" \
2085 && test "$*" != "X conftest.file $srcdir/configure"; then
2086
2087 # If neither matched, then we have a broken ls. This can happen
2088 # if, for instance, CONFIG_SHELL is bash and it inherits a
2089 # broken ls alias from the environment. This has actually
2090 # happened. Such a system could not be considered "sane".
2091 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2092 alias in your environment" >&5
2093 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2094 alias in your environment" >&2;}
2095 { (exit 1); exit 1; }; }
2096 fi
2097
2098 test "$2" = conftest.file
2099 )
2100 then
2101 # Ok.
2102 :
2103 else
2104 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2105 Check your system clock" >&5
2106 echo "$as_me: error: newly created file is older than distributed files!
2107 Check your system clock" >&2;}
2108 { (exit 1); exit 1; }; }
2109 fi
2110 { echo "$as_me:$LINENO: result: yes" >&5
2111 echo "${ECHO_T}yes" >&6; }
2112 test "$program_prefix" != NONE &&
2113 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2114 # Use a double $ so make ignores it.
2115 test "$program_suffix" != NONE &&
2116 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2117 # Double any \ or $. echo might interpret backslashes.
2118 # By default was `s,x,x', remove it if useless.
2119 cat <<\_ACEOF >conftest.sed
2120 s/[\\$]/&&/g;s/;s,x,x,$//
2121 _ACEOF
2122 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2123 rm -f conftest.sed
2124
2125 # expand $ac_aux_dir to an absolute path
2126 am_aux_dir=`cd $ac_aux_dir && pwd`
2127
2128 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2129 # Use eval to expand $SHELL
2130 if eval "$MISSING --run true"; then
2131 am_missing_run="$MISSING --run "
2132 else
2133 am_missing_run=
2134 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2135 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2136 fi
2137
2138 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2139 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2140 if test -z "$MKDIR_P"; then
2141 if test "${ac_cv_path_mkdir+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 else
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2146 do
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
2149 for ac_prog in mkdir gmkdir; do
2150 for ac_exec_ext in '' $ac_executable_extensions; do
2151 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2152 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2153 'mkdir (GNU coreutils) '* | \
2154 'mkdir (coreutils) '* | \
2155 'mkdir (fileutils) '4.1*)
2156 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2157 break 3;;
2158 esac
2159 done
2160 done
2161 done
2162 IFS=$as_save_IFS
2163
2164 fi
2165
2166 if test "${ac_cv_path_mkdir+set}" = set; then
2167 MKDIR_P="$ac_cv_path_mkdir -p"
2168 else
2169 # As a last resort, use the slow shell script. Don't cache a
2170 # value for MKDIR_P within a source directory, because that will
2171 # break other packages using the cache if that directory is
2172 # removed, or if the value is a relative name.
2173 test -d ./--version && rmdir ./--version
2174 MKDIR_P="$ac_install_sh -d"
2175 fi
2176 fi
2177 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2178 echo "${ECHO_T}$MKDIR_P" >&6; }
2179
2180 mkdir_p="$MKDIR_P"
2181 case $mkdir_p in
2182 [\\/$]* | ?:[\\/]*) ;;
2183 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2184 esac
2185
2186 for ac_prog in gawk mawk nawk awk
2187 do
2188 # Extract the first word of "$ac_prog", so it can be a program name with args.
2189 set dummy $ac_prog; ac_word=$2
2190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2192 if test "${ac_cv_prog_AWK+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2194 else
2195 if test -n "$AWK"; then
2196 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2197 else
2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199 for as_dir in $PATH
2200 do
2201 IFS=$as_save_IFS
2202 test -z "$as_dir" && as_dir=.
2203 for ac_exec_ext in '' $ac_executable_extensions; do
2204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2205 ac_cv_prog_AWK="$ac_prog"
2206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2207 break 2
2208 fi
2209 done
2210 done
2211 IFS=$as_save_IFS
2212
2213 fi
2214 fi
2215 AWK=$ac_cv_prog_AWK
2216 if test -n "$AWK"; then
2217 { echo "$as_me:$LINENO: result: $AWK" >&5
2218 echo "${ECHO_T}$AWK" >&6; }
2219 else
2220 { echo "$as_me:$LINENO: result: no" >&5
2221 echo "${ECHO_T}no" >&6; }
2222 fi
2223
2224
2225 test -n "$AWK" && break
2226 done
2227
2228 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2229 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2230 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2231 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 else
2234 cat >conftest.make <<\_ACEOF
2235 SHELL = /bin/sh
2236 all:
2237 @echo '@@@%%%=$(MAKE)=@@@%%%'
2238 _ACEOF
2239 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2240 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2241 *@@@%%%=?*=@@@%%%*)
2242 eval ac_cv_prog_make_${ac_make}_set=yes;;
2243 *)
2244 eval ac_cv_prog_make_${ac_make}_set=no;;
2245 esac
2246 rm -f conftest.make
2247 fi
2248 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2249 { echo "$as_me:$LINENO: result: yes" >&5
2250 echo "${ECHO_T}yes" >&6; }
2251 SET_MAKE=
2252 else
2253 { echo "$as_me:$LINENO: result: no" >&5
2254 echo "${ECHO_T}no" >&6; }
2255 SET_MAKE="MAKE=${MAKE-make}"
2256 fi
2257
2258 rm -rf .tst 2>/dev/null
2259 mkdir .tst 2>/dev/null
2260 if test -d .tst; then
2261 am__leading_dot=.
2262 else
2263 am__leading_dot=_
2264 fi
2265 rmdir .tst 2>/dev/null
2266
2267 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2268 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2269 # is not polluted with repeated "-I."
2270 am__isrc=' -I$(srcdir)'
2271 # test to see if srcdir already configured
2272 if test -f $srcdir/config.status; then
2273 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2274 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2275 { (exit 1); exit 1; }; }
2276 fi
2277 fi
2278
2279 # test whether we have cygpath
2280 if test -z "$CYGPATH_W"; then
2281 if (cygpath --version) >/dev/null 2>/dev/null; then
2282 CYGPATH_W='cygpath -w'
2283 else
2284 CYGPATH_W=echo
2285 fi
2286 fi
2287
2288
2289 # Define the identity of the package.
2290 PACKAGE='libuserdb'
2291 VERSION='0.10'
2292
2293
2294 # Some tools Automake needs.
2295
2296 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2297
2298
2299 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2300
2301
2302 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2303
2304
2305 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2306
2307
2308 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2309
2310 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2311
2312 # Installed binaries are usually stripped using `strip' when the user
2313 # run `make install-strip'. However `strip' might not be the right
2314 # tool to use in cross-compilation environments, therefore Automake
2315 # will honor the `STRIP' environment variable to overrule this program.
2316 if test "$cross_compiling" != no; then
2317 if test -n "$ac_tool_prefix"; then
2318 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2319 set dummy ${ac_tool_prefix}strip; ac_word=$2
2320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2322 if test "${ac_cv_prog_STRIP+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 else
2325 if test -n "$STRIP"; then
2326 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2327 else
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2330 do
2331 IFS=$as_save_IFS
2332 test -z "$as_dir" && as_dir=.
2333 for ac_exec_ext in '' $ac_executable_extensions; do
2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337 break 2
2338 fi
2339 done
2340 done
2341 IFS=$as_save_IFS
2342
2343 fi
2344 fi
2345 STRIP=$ac_cv_prog_STRIP
2346 if test -n "$STRIP"; then
2347 { echo "$as_me:$LINENO: result: $STRIP" >&5
2348 echo "${ECHO_T}$STRIP" >&6; }
2349 else
2350 { echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6; }
2352 fi
2353
2354
2355 fi
2356 if test -z "$ac_cv_prog_STRIP"; then
2357 ac_ct_STRIP=$STRIP
2358 # Extract the first word of "strip", so it can be a program name with args.
2359 set dummy strip; ac_word=$2
2360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2362 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365 if test -n "$ac_ct_STRIP"; then
2366 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2367 else
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371 IFS=$as_save_IFS
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2375 ac_cv_prog_ac_ct_STRIP="strip"
2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377 break 2
2378 fi
2379 done
2380 done
2381 IFS=$as_save_IFS
2382
2383 fi
2384 fi
2385 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2386 if test -n "$ac_ct_STRIP"; then
2387 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2388 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2389 else
2390 { echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6; }
2392 fi
2393
2394 if test "x$ac_ct_STRIP" = x; then
2395 STRIP=":"
2396 else
2397 case $cross_compiling:$ac_tool_warned in
2398 yes:)
2399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2400 whose name does not start with the host triplet. If you think this
2401 configuration is useful to you, please write to autoconf@gnu.org." >&5
2402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2403 whose name does not start with the host triplet. If you think this
2404 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2405 ac_tool_warned=yes ;;
2406 esac
2407 STRIP=$ac_ct_STRIP
2408 fi
2409 else
2410 STRIP="$ac_cv_prog_STRIP"
2411 fi
2412
2413 fi
2414 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2415
2416 # We need awk for the "check" target. The system "awk" is bad on
2417 # some platforms.
2418 # Always define AMTAR for backward compatibility.
2419
2420 AMTAR=${AMTAR-"${am_missing_run}tar"}
2421
2422 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2423
2424
2425
2426
2427
2428
2429 for ac_prog in gawk mawk nawk awk
2430 do
2431 # Extract the first word of "$ac_prog", so it can be a program name with args.
2432 set dummy $ac_prog; ac_word=$2
2433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_AWK+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 else
2438 if test -n "$AWK"; then
2439 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2440 else
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 for as_dir in $PATH
2443 do
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2448 ac_cv_prog_AWK="$ac_prog"
2449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 break 2
2451 fi
2452 done
2453 done
2454 IFS=$as_save_IFS
2455
2456 fi
2457 fi
2458 AWK=$ac_cv_prog_AWK
2459 if test -n "$AWK"; then
2460 { echo "$as_me:$LINENO: result: $AWK" >&5
2461 echo "${ECHO_T}$AWK" >&6; }
2462 else
2463 { echo "$as_me:$LINENO: result: no" >&5
2464 echo "${ECHO_T}no" >&6; }
2465 fi
2466
2467
2468 test -n "$AWK" && break
2469 done
2470
2471 ac_ext=c
2472 ac_cpp='$CPP $CPPFLAGS'
2473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2476 if test -n "$ac_tool_prefix"; then
2477 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2478 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2481 if test "${ac_cv_prog_CC+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 else
2484 if test -n "$CC"; then
2485 ac_cv_prog_CC="$CC" # Let the user override the test.
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2489 do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2494 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2497 fi
2498 done
2499 done
2500 IFS=$as_save_IFS
2501
2502 fi
2503 fi
2504 CC=$ac_cv_prog_CC
2505 if test -n "$CC"; then
2506 { echo "$as_me:$LINENO: result: $CC" >&5
2507 echo "${ECHO_T}$CC" >&6; }
2508 else
2509 { echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6; }
2511 fi
2512
2513
2514 fi
2515 if test -z "$ac_cv_prog_CC"; then
2516 ac_ct_CC=$CC
2517 # Extract the first word of "gcc", so it can be a program name with args.
2518 set dummy gcc; ac_word=$2
2519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2521 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2523 else
2524 if test -n "$ac_ct_CC"; then
2525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2526 else
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 for as_dir in $PATH
2529 do
2530 IFS=$as_save_IFS
2531 test -z "$as_dir" && as_dir=.
2532 for ac_exec_ext in '' $ac_executable_extensions; do
2533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2534 ac_cv_prog_ac_ct_CC="gcc"
2535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2536 break 2
2537 fi
2538 done
2539 done
2540 IFS=$as_save_IFS
2541
2542 fi
2543 fi
2544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2545 if test -n "$ac_ct_CC"; then
2546 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2547 echo "${ECHO_T}$ac_ct_CC" >&6; }
2548 else
2549 { echo "$as_me:$LINENO: result: no" >&5
2550 echo "${ECHO_T}no" >&6; }
2551 fi
2552
2553 if test "x$ac_ct_CC" = x; then
2554 CC=""
2555 else
2556 case $cross_compiling:$ac_tool_warned in
2557 yes:)
2558 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2559 whose name does not start with the host triplet. If you think this
2560 configuration is useful to you, please write to autoconf@gnu.org." >&5
2561 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2562 whose name does not start with the host triplet. If you think this
2563 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2564 ac_tool_warned=yes ;;
2565 esac
2566 CC=$ac_ct_CC
2567 fi
2568 else
2569 CC="$ac_cv_prog_CC"
2570 fi
2571
2572 if test -z "$CC"; then
2573 if test -n "$ac_tool_prefix"; then
2574 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2575 set dummy ${ac_tool_prefix}cc; ac_word=$2
2576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2578 if test "${ac_cv_prog_CC+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 else
2581 if test -n "$CC"; then
2582 ac_cv_prog_CC="$CC" # Let the user override the test.
2583 else
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2586 do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2591 ac_cv_prog_CC="${ac_tool_prefix}cc"
2592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 break 2
2594 fi
2595 done
2596 done
2597 IFS=$as_save_IFS
2598
2599 fi
2600 fi
2601 CC=$ac_cv_prog_CC
2602 if test -n "$CC"; then
2603 { echo "$as_me:$LINENO: result: $CC" >&5
2604 echo "${ECHO_T}$CC" >&6; }
2605 else
2606 { echo "$as_me:$LINENO: result: no" >&5
2607 echo "${ECHO_T}no" >&6; }
2608 fi
2609
2610
2611 fi
2612 fi
2613 if test -z "$CC"; then
2614 # Extract the first word of "cc", so it can be a program name with args.
2615 set dummy cc; ac_word=$2
2616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2618 if test "${ac_cv_prog_CC+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621 if test -n "$CC"; then
2622 ac_cv_prog_CC="$CC" # Let the user override the test.
2623 else
2624 ac_prog_rejected=no
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626 for as_dir in $PATH
2627 do
2628 IFS=$as_save_IFS
2629 test -z "$as_dir" && as_dir=.
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2632 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2633 ac_prog_rejected=yes
2634 continue
2635 fi
2636 ac_cv_prog_CC="cc"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2639 fi
2640 done
2641 done
2642 IFS=$as_save_IFS
2643
2644 if test $ac_prog_rejected = yes; then
2645 # We found a bogon in the path, so make sure we never use it.
2646 set dummy $ac_cv_prog_CC
2647 shift
2648 if test $# != 0; then
2649 # We chose a different compiler from the bogus one.
2650 # However, it has the same basename, so the bogon will be chosen
2651 # first if we set CC to just the basename; use the full file name.
2652 shift
2653 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2654 fi
2655 fi
2656 fi
2657 fi
2658 CC=$ac_cv_prog_CC
2659 if test -n "$CC"; then
2660 { echo "$as_me:$LINENO: result: $CC" >&5
2661 echo "${ECHO_T}$CC" >&6; }
2662 else
2663 { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2665 fi
2666
2667
2668 fi
2669 if test -z "$CC"; then
2670 if test -n "$ac_tool_prefix"; then
2671 for ac_prog in cl.exe
2672 do
2673 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2674 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2677 if test "${ac_cv_prog_CC+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 else
2680 if test -n "$CC"; then
2681 ac_cv_prog_CC="$CC" # Let the user override the test.
2682 else
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2685 do
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2690 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 break 2
2693 fi
2694 done
2695 done
2696 IFS=$as_save_IFS
2697
2698 fi
2699 fi
2700 CC=$ac_cv_prog_CC
2701 if test -n "$CC"; then
2702 { echo "$as_me:$LINENO: result: $CC" >&5
2703 echo "${ECHO_T}$CC" >&6; }
2704 else
2705 { echo "$as_me:$LINENO: result: no" >&5
2706 echo "${ECHO_T}no" >&6; }
2707 fi
2708
2709
2710 test -n "$CC" && break
2711 done
2712 fi
2713 if test -z "$CC"; then
2714 ac_ct_CC=$CC
2715 for ac_prog in cl.exe
2716 do
2717 # Extract the first word of "$ac_prog", so it can be a program name with args.
2718 set dummy $ac_prog; ac_word=$2
2719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2721 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 else
2724 if test -n "$ac_ct_CC"; then
2725 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2734 ac_cv_prog_ac_ct_CC="$ac_prog"
2735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 break 2
2737 fi
2738 done
2739 done
2740 IFS=$as_save_IFS
2741
2742 fi
2743 fi
2744 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2745 if test -n "$ac_ct_CC"; then
2746 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2747 echo "${ECHO_T}$ac_ct_CC" >&6; }
2748 else
2749 { echo "$as_me:$LINENO: result: no" >&5
2750 echo "${ECHO_T}no" >&6; }
2751 fi
2752
2753
2754 test -n "$ac_ct_CC" && break
2755 done
2756
2757 if test "x$ac_ct_CC" = x; then
2758 CC=""
2759 else
2760 case $cross_compiling:$ac_tool_warned in
2761 yes:)
2762 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2763 whose name does not start with the host triplet. If you think this
2764 configuration is useful to you, please write to autoconf@gnu.org." >&5
2765 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2766 whose name does not start with the host triplet. If you think this
2767 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2768 ac_tool_warned=yes ;;
2769 esac
2770 CC=$ac_ct_CC
2771 fi
2772 fi
2773
2774 fi
2775
2776
2777 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2778 See \`config.log' for more details." >&5
2779 echo "$as_me: error: no acceptable C compiler found in \$PATH
2780 See \`config.log' for more details." >&2;}
2781 { (exit 1); exit 1; }; }
2782
2783 # Provide some information about the compiler.
2784 echo "$as_me:$LINENO: checking for C compiler version" >&5
2785 ac_compiler=`set X $ac_compile; echo $2`
2786 { (ac_try="$ac_compiler --version >&5"
2787 case "(($ac_try" in
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2790 esac
2791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792 (eval "$ac_compiler --version >&5") 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }
2796 { (ac_try="$ac_compiler -v >&5"
2797 case "(($ac_try" in
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2800 esac
2801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802 (eval "$ac_compiler -v >&5") 2>&5
2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }
2806 { (ac_try="$ac_compiler -V >&5"
2807 case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2810 esac
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_compiler -V >&5") 2>&5
2813 ac_status=$?
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }
2816
2817 cat >conftest.$ac_ext <<_ACEOF
2818 /* confdefs.h. */
2819 _ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h. */
2823
2824 int
2825 main ()
2826 {
2827
2828 ;
2829 return 0;
2830 }
2831 _ACEOF
2832 ac_clean_files_save=$ac_clean_files
2833 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2834 # Try to create an executable without -o first, disregard a.out.
2835 # It will help us diagnose broken compilers, and finding out an intuition
2836 # of exeext.
2837 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2838 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2839 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2840 #
2841 # List of possible output files, starting from the most likely.
2842 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2843 # only as a last resort. b.out is created by i960 compilers.
2844 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2845 #
2846 # The IRIX 6 linker writes into existing files which may not be
2847 # executable, retaining their permissions. Remove them first so a
2848 # subsequent execution test works.
2849 ac_rmfiles=
2850 for ac_file in $ac_files
2851 do
2852 case $ac_file in
2853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2854 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2855 esac
2856 done
2857 rm -f $ac_rmfiles
2858
2859 if { (ac_try="$ac_link_default"
2860 case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2863 esac
2864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865 (eval "$ac_link_default") 2>&5
2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; then
2869 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2870 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2871 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2872 # so that the user can short-circuit this test for compilers unknown to
2873 # Autoconf.
2874 for ac_file in $ac_files ''
2875 do
2876 test -f "$ac_file" || continue
2877 case $ac_file in
2878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2879 ;;
2880 [ab].out )
2881 # We found the default executable, but exeext='' is most
2882 # certainly right.
2883 break;;
2884 *.* )
2885 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2886 then :; else
2887 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2888 fi
2889 # We set ac_cv_exeext here because the later test for it is not
2890 # safe: cross compilers may not add the suffix if given an `-o'
2891 # argument, so we may need to know it at that point already.
2892 # Even if this section looks crufty: it has the advantage of
2893 # actually working.
2894 break;;
2895 * )
2896 break;;
2897 esac
2898 done
2899 test "$ac_cv_exeext" = no && ac_cv_exeext=
2900
2901 else
2902 ac_file=''
2903 fi
2904
2905 { echo "$as_me:$LINENO: result: $ac_file" >&5
2906 echo "${ECHO_T}$ac_file" >&6; }
2907 if test -z "$ac_file"; then
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2910
2911 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2912 See \`config.log' for more details." >&5
2913 echo "$as_me: error: C compiler cannot create executables
2914 See \`config.log' for more details." >&2;}
2915 { (exit 77); exit 77; }; }
2916 fi
2917
2918 ac_exeext=$ac_cv_exeext
2919
2920 # Check that the compiler produces executables we can run. If not, either
2921 # the compiler is broken, or we cross compile.
2922 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2923 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2924 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2925 # If not cross compiling, check that we can run a simple program.
2926 if test "$cross_compiling" != yes; then
2927 if { ac_try='./$ac_file'
2928 { (case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931 esac
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_try") 2>&5
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; }; then
2937 cross_compiling=no
2938 else
2939 if test "$cross_compiling" = maybe; then
2940 cross_compiling=yes
2941 else
2942 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2943 If you meant to cross compile, use \`--host'.
2944 See \`config.log' for more details." >&5
2945 echo "$as_me: error: cannot run C compiled programs.
2946 If you meant to cross compile, use \`--host'.
2947 See \`config.log' for more details." >&2;}
2948 { (exit 1); exit 1; }; }
2949 fi
2950 fi
2951 fi
2952 { echo "$as_me:$LINENO: result: yes" >&5
2953 echo "${ECHO_T}yes" >&6; }
2954
2955 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2956 ac_clean_files=$ac_clean_files_save
2957 # Check that the compiler produces executables we can run. If not, either
2958 # the compiler is broken, or we cross compile.
2959 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2960 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2961 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2962 echo "${ECHO_T}$cross_compiling" >&6; }
2963
2964 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2965 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2966 if { (ac_try="$ac_link"
2967 case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970 esac
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_link") 2>&5
2973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; then
2976 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2977 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2978 # work properly (i.e., refer to `conftest.exe'), while it won't with
2979 # `rm'.
2980 for ac_file in conftest.exe conftest conftest.*; do
2981 test -f "$ac_file" || continue
2982 case $ac_file in
2983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2984 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2985 break;;
2986 * ) break;;
2987 esac
2988 done
2989 else
2990 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2991 See \`config.log' for more details." >&5
2992 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2993 See \`config.log' for more details." >&2;}
2994 { (exit 1); exit 1; }; }
2995 fi
2996
2997 rm -f conftest$ac_cv_exeext
2998 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2999 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3000
3001 rm -f conftest.$ac_ext
3002 EXEEXT=$ac_cv_exeext
3003 ac_exeext=$EXEEXT
3004 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3005 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3006 if test "${ac_cv_objext+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 else
3009 cat >conftest.$ac_ext <<_ACEOF
3010 /* confdefs.h. */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3015
3016 int
3017 main ()
3018 {
3019
3020 ;
3021 return 0;
3022 }
3023 _ACEOF
3024 rm -f conftest.o conftest.obj
3025 if { (ac_try="$ac_compile"
3026 case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_compile") 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; then
3035 for ac_file in conftest.o conftest.obj conftest.*; do
3036 test -f "$ac_file" || continue;
3037 case $ac_file in
3038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3039 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3040 break;;
3041 esac
3042 done
3043 else
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3046
3047 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3048 See \`config.log' for more details." >&5
3049 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3050 See \`config.log' for more details." >&2;}
3051 { (exit 1); exit 1; }; }
3052 fi
3053
3054 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3055 fi
3056 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3057 echo "${ECHO_T}$ac_cv_objext" >&6; }
3058 OBJEXT=$ac_cv_objext
3059 ac_objext=$OBJEXT
3060 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3061 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3062 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 else
3065 cat >conftest.$ac_ext <<_ACEOF
3066 /* confdefs.h. */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3071
3072 int
3073 main ()
3074 {
3075 #ifndef __GNUC__
3076 choke me
3077 #endif
3078
3079 ;
3080 return 0;
3081 }
3082 _ACEOF
3083 rm -f conftest.$ac_objext
3084 if { (ac_try="$ac_compile"
3085 case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_compile") 2>conftest.er1
3091 ac_status=$?
3092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } && {
3097 test -z "$ac_c_werror_flag" ||
3098 test ! -s conftest.err
3099 } && test -s conftest.$ac_objext; then
3100 ac_compiler_gnu=yes
3101 else
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105 ac_compiler_gnu=no
3106 fi
3107
3108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3110
3111 fi
3112 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3113 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3114 GCC=`test $ac_compiler_gnu = yes && echo yes`
3115 ac_test_CFLAGS=${CFLAGS+set}
3116 ac_save_CFLAGS=$CFLAGS
3117 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3118 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3119 if test "${ac_cv_prog_cc_g+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 else
3122 ac_save_c_werror_flag=$ac_c_werror_flag
3123 ac_c_werror_flag=yes
3124 ac_cv_prog_cc_g=no
3125 CFLAGS="-g"
3126 cat >conftest.$ac_ext <<_ACEOF
3127 /* confdefs.h. */
3128 _ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3132
3133 int
3134 main ()
3135 {
3136
3137 ;
3138 return 0;
3139 }
3140 _ACEOF
3141 rm -f conftest.$ac_objext
3142 if { (ac_try="$ac_compile"
3143 case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146 esac
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compile") 2>conftest.er1
3149 ac_status=$?
3150 grep -v '^ *+' conftest.er1 >conftest.err
3151 rm -f conftest.er1
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } && {
3155 test -z "$ac_c_werror_flag" ||
3156 test ! -s conftest.err
3157 } && test -s conftest.$ac_objext; then
3158 ac_cv_prog_cc_g=yes
3159 else
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3162
3163 CFLAGS=""
3164 cat >conftest.$ac_ext <<_ACEOF
3165 /* confdefs.h. */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3170
3171 int
3172 main ()
3173 {
3174
3175 ;
3176 return 0;
3177 }
3178 _ACEOF
3179 rm -f conftest.$ac_objext
3180 if { (ac_try="$ac_compile"
3181 case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184 esac
3185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_compile") 2>conftest.er1
3187 ac_status=$?
3188 grep -v '^ *+' conftest.er1 >conftest.err
3189 rm -f conftest.er1
3190 cat conftest.err >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); } && {
3193 test -z "$ac_c_werror_flag" ||
3194 test ! -s conftest.err
3195 } && test -s conftest.$ac_objext; then
3196 :
3197 else
3198 echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3200
3201 ac_c_werror_flag=$ac_save_c_werror_flag
3202 CFLAGS="-g"
3203 cat >conftest.$ac_ext <<_ACEOF
3204 /* confdefs.h. */
3205 _ACEOF
3206 cat confdefs.h >>conftest.$ac_ext
3207 cat >>conftest.$ac_ext <<_ACEOF
3208 /* end confdefs.h. */
3209
3210 int
3211 main ()
3212 {
3213
3214 ;
3215 return 0;
3216 }
3217 _ACEOF
3218 rm -f conftest.$ac_objext
3219 if { (ac_try="$ac_compile"
3220 case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223 esac
3224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225 (eval "$ac_compile") 2>conftest.er1
3226 ac_status=$?
3227 grep -v '^ *+' conftest.er1 >conftest.err
3228 rm -f conftest.er1
3229 cat conftest.err >&5
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); } && {
3232 test -z "$ac_c_werror_flag" ||
3233 test ! -s conftest.err
3234 } && test -s conftest.$ac_objext; then
3235 ac_cv_prog_cc_g=yes
3236 else
3237 echo "$as_me: failed program was:" >&5
3238 sed 's/^/| /' conftest.$ac_ext >&5
3239
3240
3241 fi
3242
3243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244 fi
3245
3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247 fi
3248
3249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 ac_c_werror_flag=$ac_save_c_werror_flag
3251 fi
3252 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3253 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3254 if test "$ac_test_CFLAGS" = set; then
3255 CFLAGS=$ac_save_CFLAGS
3256 elif test $ac_cv_prog_cc_g = yes; then
3257 if test "$GCC" = yes; then
3258 CFLAGS="-g -O2"
3259 else
3260 CFLAGS="-g"
3261 fi
3262 else
3263 if test "$GCC" = yes; then
3264 CFLAGS="-O2"
3265 else
3266 CFLAGS=
3267 fi
3268 fi
3269 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3270 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3271 if test "${ac_cv_prog_cc_c89+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 else
3274 ac_cv_prog_cc_c89=no
3275 ac_save_CC=$CC
3276 cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h. */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3282 #include <stdarg.h>
3283 #include <stdio.h>
3284 #include <sys/types.h>
3285 #include <sys/stat.h>
3286 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3287 struct buf { int x; };
3288 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3289 static char *e (p, i)
3290 char **p;
3291 int i;
3292 {
3293 return p[i];
3294 }
3295 static char *f (char * (*g) (char **, int), char **p, ...)
3296 {
3297 char *s;
3298 va_list v;
3299 va_start (v,p);
3300 s = g (p, va_arg (v,int));
3301 va_end (v);
3302 return s;
3303 }
3304
3305 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3306 function prototypes and stuff, but not '\xHH' hex character constants.
3307 These don't provoke an error unfortunately, instead are silently treated
3308 as 'x'. The following induces an error, until -std is added to get
3309 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3310 array size at least. It's necessary to write '\x00'==0 to get something
3311 that's true only with -std. */
3312 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3313
3314 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3315 inside strings and character constants. */
3316 #define FOO(x) 'x'
3317 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3318
3319 int test (int i, double x);
3320 struct s1 {int (*f) (int a);};
3321 struct s2 {int (*f) (double a);};
3322 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3323 int argc;
3324 char **argv;
3325 int
3326 main ()
3327 {
3328 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3329 ;
3330 return 0;
3331 }
3332 _ACEOF
3333 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3334 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3335 do
3336 CC="$ac_save_CC $ac_arg"
3337 rm -f conftest.$ac_objext
3338 if { (ac_try="$ac_compile"
3339 case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342 esac
3343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3344 (eval "$ac_compile") 2>conftest.er1
3345 ac_status=$?
3346 grep -v '^ *+' conftest.er1 >conftest.err
3347 rm -f conftest.er1
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } && {
3351 test -z "$ac_c_werror_flag" ||
3352 test ! -s conftest.err
3353 } && test -s conftest.$ac_objext; then
3354 ac_cv_prog_cc_c89=$ac_arg
3355 else
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3358
3359
3360 fi
3361
3362 rm -f core conftest.err conftest.$ac_objext
3363 test "x$ac_cv_prog_cc_c89" != "xno" && break
3364 done
3365 rm -f conftest.$ac_ext
3366 CC=$ac_save_CC
3367
3368 fi
3369 # AC_CACHE_VAL
3370 case "x$ac_cv_prog_cc_c89" in
3371 x)
3372 { echo "$as_me:$LINENO: result: none needed" >&5
3373 echo "${ECHO_T}none needed" >&6; } ;;
3374 xno)
3375 { echo "$as_me:$LINENO: result: unsupported" >&5
3376 echo "${ECHO_T}unsupported" >&6; } ;;
3377 *)
3378 CC="$CC $ac_cv_prog_cc_c89"
3379 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3380 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3381 esac
3382
3383
3384 ac_ext=c
3385 ac_cpp='$CPP $CPPFLAGS'
3386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389 DEPDIR="${am__leading_dot}deps"
3390
3391 ac_config_commands="$ac_config_commands depfiles"
3392
3393
3394 am_make=${MAKE-make}
3395 cat > confinc << 'END'
3396 am__doit:
3397 @echo done
3398 .PHONY: am__doit
3399 END
3400 # If we don't find an include directive, just comment out the code.
3401 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3402 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3403 am__include="#"
3404 am__quote=
3405 _am_result=none
3406 # First try GNU make style include.
3407 echo "include confinc" > confmf
3408 # We grep out `Entering directory' and `Leaving directory'
3409 # messages which can occur if `w' ends up in MAKEFLAGS.
3410 # In particular we don't look at `^make:' because GNU make might
3411 # be invoked under some other name (usually "gmake"), in which
3412 # case it prints its new name instead of `make'.
3413 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3414 am__include=include
3415 am__quote=
3416 _am_result=GNU
3417 fi
3418 # Now try BSD make style include.
3419 if test "$am__include" = "#"; then
3420 echo '.include "confinc"' > confmf
3421 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3422 am__include=.include
3423 am__quote="\""
3424 _am_result=BSD
3425 fi
3426 fi
3427
3428
3429 { echo "$as_me:$LINENO: result: $_am_result" >&5
3430 echo "${ECHO_T}$_am_result" >&6; }
3431 rm -f confinc confmf
3432
3433 # Check whether --enable-dependency-tracking was given.
3434 if test "${enable_dependency_tracking+set}" = set; then
3435 enableval=$enable_dependency_tracking;
3436 fi
3437
3438 if test "x$enable_dependency_tracking" != xno; then
3439 am_depcomp="$ac_aux_dir/depcomp"
3440 AMDEPBACKSLASH='\'
3441 fi
3442 if test "x$enable_dependency_tracking" != xno; then
3443 AMDEP_TRUE=
3444 AMDEP_FALSE='#'
3445 else
3446 AMDEP_TRUE='#'
3447 AMDEP_FALSE=
3448 fi
3449
3450
3451
3452 depcc="$CC" am_compiler_list=
3453
3454 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3455 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3456 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 else
3459 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3460 # We make a subdir and do the tests there. Otherwise we can end up
3461 # making bogus files that we don't know about and never remove. For
3462 # instance it was reported that on HP-UX the gcc test will end up
3463 # making a dummy file named `D' -- because `-MD' means `put the output
3464 # in D'.
3465 mkdir conftest.dir
3466 # Copy depcomp to subdir because otherwise we won't find it if we're
3467 # using a relative directory.
3468 cp "$am_depcomp" conftest.dir
3469 cd conftest.dir
3470 # We will build objects and dependencies in a subdirectory because
3471 # it helps to detect inapplicable dependency modes. For instance
3472 # both Tru64's cc and ICC support -MD to output dependencies as a
3473 # side effect of compilation, but ICC will put the dependencies in
3474 # the current directory while Tru64 will put them in the object
3475 # directory.
3476 mkdir sub
3477
3478 am_cv_CC_dependencies_compiler_type=none
3479 if test "$am_compiler_list" = ""; then
3480 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3481 fi
3482 for depmode in $am_compiler_list; do
3483 # Setup a source with many dependencies, because some compilers
3484 # like to wrap large dependency lists on column 80 (with \), and
3485 # we should not choose a depcomp mode which is confused by this.
3486 #
3487 # We need to recreate these files for each test, as the compiler may
3488 # overwrite some of them when testing with obscure command lines.
3489 # This happens at least with the AIX C compiler.
3490 : > sub/conftest.c
3491 for i in 1 2 3 4 5 6; do
3492 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3493 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3494 # Solaris 8's {/usr,}/bin/sh.
3495 touch sub/conftst$i.h
3496 done
3497 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3498
3499 case $depmode in
3500 nosideeffect)
3501 # after this tag, mechanisms are not by side-effect, so they'll
3502 # only be used when explicitly requested
3503 if test "x$enable_dependency_tracking" = xyes; then
3504 continue
3505 else
3506 break
3507 fi
3508 ;;
3509 none) break ;;
3510 esac
3511 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3512 # mode. It turns out that the SunPro C++ compiler does not properly
3513 # handle `-M -o', and we need to detect this.
3514 if depmode=$depmode \
3515 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3516 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3517 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3518 >/dev/null 2>conftest.err &&
3519 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3520 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3521 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3522 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3523 # icc doesn't choke on unknown options, it will just issue warnings
3524 # or remarks (even with -Werror). So we grep stderr for any message
3525 # that says an option was ignored or not supported.
3526 # When given -MP, icc 7.0 and 7.1 complain thusly:
3527 # icc: Command line warning: ignoring option '-M'; no argument required
3528 # The diagnosis changed in icc 8.0:
3529 # icc: Command line remark: option '-MP' not supported
3530 if (grep 'ignoring option' conftest.err ||
3531 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3532 am_cv_CC_dependencies_compiler_type=$depmode
3533 break
3534 fi
3535 fi
3536 done
3537
3538 cd ..
3539 rm -rf conftest.dir
3540 else
3541 am_cv_CC_dependencies_compiler_type=none
3542 fi
3543
3544 fi
3545 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3546 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3547 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3548
3549 if
3550 test "x$enable_dependency_tracking" != xno \
3551 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3552 am__fastdepCC_TRUE=
3553 am__fastdepCC_FALSE='#'
3554 else
3555 am__fastdepCC_TRUE='#'
3556 am__fastdepCC_FALSE=
3557 fi
3558
3559
3560 # Find a good install program. We prefer a C program (faster),
3561 # so one script is as good as another. But avoid the broken or
3562 # incompatible versions:
3563 # SysV /etc/install, /usr/sbin/install
3564 # SunOS /usr/etc/install
3565 # IRIX /sbin/install
3566 # AIX /bin/install
3567 # AmigaOS /C/install, which installs bootblocks on floppy discs
3568 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3569 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3570 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3571 # OS/2's system install, which has a completely different semantic
3572 # ./install, which can be erroneously created by make from ./install.sh.
3573 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3574 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3575 if test -z "$INSTALL"; then
3576 if test "${ac_cv_path_install+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 for as_dir in $PATH
3581 do
3582 IFS=$as_save_IFS
3583 test -z "$as_dir" && as_dir=.
3584 # Account for people who put trailing slashes in PATH elements.
3585 case $as_dir/ in
3586 ./ | .// | /cC/* | \
3587 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3588 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3589 /usr/ucb/* ) ;;
3590 *)
3591 # OSF1 and SCO ODT 3.0 have their own names for install.
3592 # Don't use installbsd from OSF since it installs stuff as root
3593 # by default.
3594 for ac_prog in ginstall scoinst install; do
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3597 if test $ac_prog = install &&
3598 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3599 # AIX install. It has an incompatible calling convention.
3600 :
3601 elif test $ac_prog = install &&
3602 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3603 # program-specific install script used by HP pwplus--don't use.
3604 :
3605 else
3606 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3607 break 3
3608 fi
3609 fi
3610 done
3611 done
3612 ;;
3613 esac
3614 done
3615 IFS=$as_save_IFS
3616
3617
3618 fi
3619 if test "${ac_cv_path_install+set}" = set; then
3620 INSTALL=$ac_cv_path_install
3621 else
3622 # As a last resort, use the slow shell script. Don't cache a
3623 # value for INSTALL within a source directory, because that will
3624 # break other packages using the cache if that directory is
3625 # removed, or if the value is a relative name.
3626 INSTALL=$ac_install_sh
3627 fi
3628 fi
3629 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3630 echo "${ECHO_T}$INSTALL" >&6; }
3631
3632 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3633 # It thinks the first close brace ends the variable substitution.
3634 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3635
3636 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3637
3638 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3639
3640 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3641 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3642 LN_S=$as_ln_s
3643 if test "$LN_S" = "ln -s"; then
3644 { echo "$as_me:$LINENO: result: yes" >&5
3645 echo "${ECHO_T}yes" >&6; }
3646 else
3647 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3648 echo "${ECHO_T}no, using $LN_S" >&6; }
3649 fi
3650
3651 # Check whether --enable-shared was given.
3652 if test "${enable_shared+set}" = set; then
3653 enableval=$enable_shared; p=${PACKAGE-default}
3654 case $enableval in
3655 yes) enable_shared=yes ;;
3656 no) enable_shared=no ;;
3657 *)
3658 enable_shared=no
3659 # Look at the argument we got. We use all the common list separators.
3660 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3661 for pkg in $enableval; do
3662 IFS="$lt_save_ifs"
3663 if test "X$pkg" = "X$p"; then
3664 enable_shared=yes
3665 fi
3666 done
3667 IFS="$lt_save_ifs"
3668 ;;
3669 esac
3670 else
3671 enable_shared=yes
3672 fi
3673
3674
3675 # Check whether --enable-static was given.
3676 if test "${enable_static+set}" = set; then
3677 enableval=$enable_static; p=${PACKAGE-default}
3678 case $enableval in
3679 yes) enable_static=yes ;;
3680 no) enable_static=no ;;
3681 *)
3682 enable_static=no
3683 # Look at the argument we got. We use all the common list separators.
3684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3685 for pkg in $enableval; do
3686 IFS="$lt_save_ifs"
3687 if test "X$pkg" = "X$p"; then
3688 enable_static=yes
3689 fi
3690 done
3691 IFS="$lt_save_ifs"
3692 ;;
3693 esac
3694 else
3695 enable_static=yes
3696 fi
3697
3698
3699 # Check whether --enable-fast-install was given.
3700 if test "${enable_fast_install+set}" = set; then
3701 enableval=$enable_fast_install; p=${PACKAGE-default}
3702 case $enableval in
3703 yes) enable_fast_install=yes ;;
3704 no) enable_fast_install=no ;;
3705 *)
3706 enable_fast_install=no
3707 # Look at the argument we got. We use all the common list separators.
3708 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3709 for pkg in $enableval; do
3710 IFS="$lt_save_ifs"
3711 if test "X$pkg" = "X$p"; then
3712 enable_fast_install=yes
3713 fi
3714 done
3715 IFS="$lt_save_ifs"
3716 ;;
3717 esac
3718 else
3719 enable_fast_install=yes
3720 fi
3721
3722
3723 # Make sure we can run config.sub.
3724 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3725 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3726 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3727 { (exit 1); exit 1; }; }
3728
3729 { echo "$as_me:$LINENO: checking build system type" >&5
3730 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3731 if test "${ac_cv_build+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734 ac_build_alias=$build_alias
3735 test "x$ac_build_alias" = x &&
3736 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3737 test "x$ac_build_alias" = x &&
3738 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3739 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3740 { (exit 1); exit 1; }; }
3741 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3742 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3743 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3744 { (exit 1); exit 1; }; }
3745
3746 fi
3747 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3748 echo "${ECHO_T}$ac_cv_build" >&6; }
3749 case $ac_cv_build in
3750 *-*-*) ;;
3751 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3752 echo "$as_me: error: invalid value of canonical build" >&2;}
3753 { (exit 1); exit 1; }; };;
3754 esac
3755 build=$ac_cv_build
3756 ac_save_IFS=$IFS; IFS='-'
3757 set x $ac_cv_build
3758 shift
3759 build_cpu=$1
3760 build_vendor=$2
3761 shift; shift
3762 # Remember, the first character of IFS is used to create $*,
3763 # except with old shells:
3764 build_os=$*
3765 IFS=$ac_save_IFS
3766 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3767
3768
3769 { echo "$as_me:$LINENO: checking host system type" >&5
3770 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3771 if test "${ac_cv_host+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774 if test "x$host_alias" = x; then
3775 ac_cv_host=$ac_cv_build
3776 else
3777 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3778 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3779 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3780 { (exit 1); exit 1; }; }
3781 fi
3782
3783 fi
3784 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3785 echo "${ECHO_T}$ac_cv_host" >&6; }
3786 case $ac_cv_host in
3787 *-*-*) ;;
3788 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3789 echo "$as_me: error: invalid value of canonical host" >&2;}
3790 { (exit 1); exit 1; }; };;
3791 esac
3792 host=$ac_cv_host
3793 ac_save_IFS=$IFS; IFS='-'
3794 set x $ac_cv_host
3795 shift
3796 host_cpu=$1
3797 host_vendor=$2
3798 shift; shift
3799 # Remember, the first character of IFS is used to create $*,
3800 # except with old shells:
3801 host_os=$*
3802 IFS=$ac_save_IFS
3803 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3804
3805
3806 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3807 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3808 if test "${lt_cv_path_SED+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811 # Loop through the user's path and test for sed and gsed.
3812 # Then use that list of sed's as ones to test for truncation.
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3815 do
3816 IFS=$as_save_IFS
3817 test -z "$as_dir" && as_dir=.
3818 for lt_ac_prog in sed gsed; do
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3821 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3822 fi
3823 done
3824 done
3825 done
3826 IFS=$as_save_IFS
3827 lt_ac_max=0
3828 lt_ac_count=0
3829 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3830 # along with /bin/sed that truncates output.
3831 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3832 test ! -f $lt_ac_sed && continue
3833 cat /dev/null > conftest.in
3834 lt_ac_count=0
3835 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3836 # Check for GNU sed and select it if it is found.
3837 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3838 lt_cv_path_SED=$lt_ac_sed
3839 break
3840 fi
3841 while true; do
3842 cat conftest.in conftest.in >conftest.tmp
3843 mv conftest.tmp conftest.in
3844 cp conftest.in conftest.nl
3845 echo >>conftest.nl
3846 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3847 cmp -s conftest.out conftest.nl || break
3848 # 10000 chars as input seems more than enough
3849 test $lt_ac_count -gt 10 && break
3850 lt_ac_count=`expr $lt_ac_count + 1`
3851 if test $lt_ac_count -gt $lt_ac_max; then
3852 lt_ac_max=$lt_ac_count
3853 lt_cv_path_SED=$lt_ac_sed
3854 fi
3855 done
3856 done
3857
3858 fi
3859
3860 SED=$lt_cv_path_SED
3861
3862 { echo "$as_me:$LINENO: result: $SED" >&5
3863 echo "${ECHO_T}$SED" >&6; }
3864
3865 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3866 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3867 if test "${ac_cv_path_GREP+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870 # Extract the first word of "grep ggrep" to use in msg output
3871 if test -z "$GREP"; then
3872 set dummy grep ggrep; ac_prog_name=$2
3873 if test "${ac_cv_path_GREP+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876 ac_path_GREP_found=false
3877 # Loop through the user's path and test for each of PROGNAME-LIST
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3880 do
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_prog in grep ggrep; do
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3886 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3887 # Check for GNU ac_path_GREP and select it if it is found.
3888 # Check for GNU $ac_path_GREP
3889 case `"$ac_path_GREP" --version 2>&1` in
3890 *GNU*)
3891 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3892 *)
3893 ac_count=0
3894 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3895 while :
3896 do
3897 cat "conftest.in" "conftest.in" >"conftest.tmp"
3898 mv "conftest.tmp" "conftest.in"
3899 cp "conftest.in" "conftest.nl"
3900 echo 'GREP' >> "conftest.nl"
3901 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3902 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3903 ac_count=`expr $ac_count + 1`
3904 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3905 # Best one so far, save it but keep looking for a better one
3906 ac_cv_path_GREP="$ac_path_GREP"
3907 ac_path_GREP_max=$ac_count
3908 fi
3909 # 10*(2^10) chars as input seems more than enough
3910 test $ac_count -gt 10 && break
3911 done
3912 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3913 esac
3914
3915
3916 $ac_path_GREP_found && break 3
3917 done
3918 done
3919
3920 done
3921 IFS=$as_save_IFS
3922
3923
3924 fi
3925
3926 GREP="$ac_cv_path_GREP"
3927 if test -z "$GREP"; then
3928 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3929 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3930 { (exit 1); exit 1; }; }
3931 fi
3932
3933 else
3934 ac_cv_path_GREP=$GREP
3935 fi
3936
3937
3938 fi
3939 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3940 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3941 GREP="$ac_cv_path_GREP"
3942
3943
3944 { echo "$as_me:$LINENO: checking for egrep" >&5
3945 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3946 if test "${ac_cv_path_EGREP+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3950 then ac_cv_path_EGREP="$GREP -E"
3951 else
3952 # Extract the first word of "egrep" to use in msg output
3953 if test -z "$EGREP"; then
3954 set dummy egrep; ac_prog_name=$2
3955 if test "${ac_cv_path_EGREP+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958 ac_path_EGREP_found=false
3959 # Loop through the user's path and test for each of PROGNAME-LIST
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3962 do
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for ac_prog in egrep; do
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3968 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3969 # Check for GNU ac_path_EGREP and select it if it is found.
3970 # Check for GNU $ac_path_EGREP
3971 case `"$ac_path_EGREP" --version 2>&1` in
3972 *GNU*)
3973 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3974 *)
3975 ac_count=0
3976 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3977 while :
3978 do
3979 cat "conftest.in" "conftest.in" >"conftest.tmp"
3980 mv "conftest.tmp" "conftest.in"
3981 cp "conftest.in" "conftest.nl"
3982 echo 'EGREP' >> "conftest.nl"
3983 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3984 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3985 ac_count=`expr $ac_count + 1`
3986 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3987 # Best one so far, save it but keep looking for a better one
3988 ac_cv_path_EGREP="$ac_path_EGREP"
3989 ac_path_EGREP_max=$ac_count
3990 fi
3991 # 10*(2^10) chars as input seems more than enough
3992 test $ac_count -gt 10 && break
3993 done
3994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3995 esac
3996
3997
3998 $ac_path_EGREP_found && break 3
3999 done
4000 done
4001
4002 done
4003 IFS=$as_save_IFS
4004
4005
4006 fi
4007
4008 EGREP="$ac_cv_path_EGREP"
4009 if test -z "$EGREP"; then
4010 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4011 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4012 { (exit 1); exit 1; }; }
4013 fi
4014
4015 else
4016 ac_cv_path_EGREP=$EGREP
4017 fi
4018
4019
4020 fi
4021 fi
4022 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4023 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4024 EGREP="$ac_cv_path_EGREP"
4025
4026
4027
4028 # Check whether --with-gnu-ld was given.
4029 if test "${with_gnu_ld+set}" = set; then
4030 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4031 else
4032 with_gnu_ld=no
4033 fi
4034
4035 ac_prog=ld
4036 if test "$GCC" = yes; then
4037 # Check if gcc -print-prog-name=ld gives a path.
4038 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4039 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4040 case $host in
4041 *-*-mingw*)
4042 # gcc leaves a trailing carriage return which upsets mingw
4043 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4044 *)
4045 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4046 esac
4047 case $ac_prog in
4048 # Accept absolute paths.
4049 [\\/]* | ?:[\\/]*)
4050 re_direlt='/[^/][^/]*/\.\./'
4051 # Canonicalize the pathname of ld
4052 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4053 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4054 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4055 done
4056 test -z "$LD" && LD="$ac_prog"
4057 ;;
4058 "")
4059 # If it fails, then pretend we aren't using GCC.
4060 ac_prog=ld
4061 ;;
4062 *)
4063 # If it is relative, then search for the first ld in PATH.
4064 with_gnu_ld=unknown
4065 ;;
4066 esac
4067 elif test "$with_gnu_ld" = yes; then
4068 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4069 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4070 else
4071 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4072 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4073 fi
4074 if test "${lt_cv_path_LD+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 else
4077 if test -z "$LD"; then
4078 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4079 for ac_dir in $PATH; do
4080 IFS="$lt_save_ifs"
4081 test -z "$ac_dir" && ac_dir=.
4082 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4083 lt_cv_path_LD="$ac_dir/$ac_prog"
4084 # Check to see if the program is GNU ld. I'd rather use --version,
4085 # but apparently some variants of GNU ld only accept -v.
4086 # Break only if it was the GNU/non-GNU ld that we prefer.
4087 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4088 *GNU* | *'with BFD'*)
4089 test "$with_gnu_ld" != no && break
4090 ;;
4091 *)
4092 test "$with_gnu_ld" != yes && break
4093 ;;
4094 esac
4095 fi
4096 done
4097 IFS="$lt_save_ifs"
4098 else
4099 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4100 fi
4101 fi
4102
4103 LD="$lt_cv_path_LD"
4104 if test -n "$LD"; then
4105 { echo "$as_me:$LINENO: result: $LD" >&5
4106 echo "${ECHO_T}$LD" >&6; }
4107 else
4108 { echo "$as_me:$LINENO: result: no" >&5
4109 echo "${ECHO_T}no" >&6; }
4110 fi
4111 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4112 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4113 { (exit 1); exit 1; }; }
4114 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4115 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4116 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4120 case `$LD -v 2>&1 </dev/null` in
4121 *GNU* | *'with BFD'*)
4122 lt_cv_prog_gnu_ld=yes
4123 ;;
4124 *)
4125 lt_cv_prog_gnu_ld=no
4126 ;;
4127 esac
4128 fi
4129 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4130 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4131 with_gnu_ld=$lt_cv_prog_gnu_ld
4132
4133
4134 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4135 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4136 if test "${lt_cv_ld_reload_flag+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139 lt_cv_ld_reload_flag='-r'
4140 fi
4141 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4142 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4143 reload_flag=$lt_cv_ld_reload_flag
4144 case $reload_flag in
4145 "" | " "*) ;;
4146 *) reload_flag=" $reload_flag" ;;
4147 esac
4148 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4149 case $host_os in
4150 darwin*)
4151 if test "$GCC" = yes; then
4152 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4153 else
4154 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4155 fi
4156 ;;
4157 esac
4158
4159 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4160 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4161 if test "${lt_cv_path_NM+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else
4164 if test -n "$NM"; then
4165 # Let the user override the test.
4166 lt_cv_path_NM="$NM"
4167 else
4168 lt_nm_to_check="${ac_tool_prefix}nm"
4169 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4170 lt_nm_to_check="$lt_nm_to_check nm"
4171 fi
4172 for lt_tmp_nm in $lt_nm_to_check; do
4173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4174 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4175 IFS="$lt_save_ifs"
4176 test -z "$ac_dir" && ac_dir=.
4177 tmp_nm="$ac_dir/$lt_tmp_nm"
4178 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4179 # Check to see if the nm accepts a BSD-compat flag.
4180 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4181 # nm: unknown option "B" ignored
4182 # Tru64's nm complains that /dev/null is an invalid object file
4183 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4184 */dev/null* | *'Invalid file or object type'*)
4185 lt_cv_path_NM="$tmp_nm -B"
4186 break
4187 ;;
4188 *)
4189 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4190 */dev/null*)
4191 lt_cv_path_NM="$tmp_nm -p"
4192 break
4193 ;;
4194 *)
4195 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4196 continue # so that we can try to find one that supports BSD flags
4197 ;;
4198 esac
4199 ;;
4200 esac
4201 fi
4202 done
4203 IFS="$lt_save_ifs"
4204 done
4205 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4206 fi
4207 fi
4208 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4209 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4210 NM="$lt_cv_path_NM"
4211
4212 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4213 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4214 if test "${lt_cv_deplibs_check_method+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217 lt_cv_file_magic_cmd='$MAGIC_CMD'
4218 lt_cv_file_magic_test_file=
4219 lt_cv_deplibs_check_method='unknown'
4220 # Need to set the preceding variable on all platforms that support
4221 # interlibrary dependencies.
4222 # 'none' -- dependencies not supported.
4223 # `unknown' -- same as none, but documents that we really don't know.
4224 # 'pass_all' -- all dependencies passed with no checks.
4225 # 'test_compile' -- check by making test program.
4226 # 'file_magic [[regex]]' -- check by looking for files in library path
4227 # which responds to the $file_magic_cmd with a given extended regex.
4228 # If you have `file' or equivalent on your system and you're not sure
4229 # whether `pass_all' will *always* work, you probably want this one.
4230
4231 case $host_os in
4232 aix4* | aix5*)
4233 lt_cv_deplibs_check_method=pass_all
4234 ;;
4235
4236 beos*)
4237 lt_cv_deplibs_check_method=pass_all
4238 ;;
4239
4240 bsdi[45]*)
4241 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4242 lt_cv_file_magic_cmd='/usr/bin/file -L'
4243 lt_cv_file_magic_test_file=/shlib/libc.so
4244 ;;
4245
4246 cygwin*)
4247 # func_win32_libid is a shell function defined in ltmain.sh
4248 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4249 lt_cv_file_magic_cmd='func_win32_libid'
4250 ;;
4251
4252 mingw* | pw32*)
4253 # Base MSYS/MinGW do not provide the 'file' command needed by
4254 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4255 # unless we find 'file', for example because we are cross-compiling.
4256 if ( file / ) >/dev/null 2>&1; then
4257 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4258 lt_cv_file_magic_cmd='func_win32_libid'
4259 else
4260 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4261 lt_cv_file_magic_cmd='$OBJDUMP -f'
4262 fi
4263 ;;
4264
4265 darwin* | rhapsody*)
4266 lt_cv_deplibs_check_method=pass_all
4267 ;;
4268
4269 freebsd* | dragonfly*)
4270 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4271 case $host_cpu in
4272 i*86 )
4273 # Not sure whether the presence of OpenBSD here was a mistake.
4274 # Let's accept both of them until this is cleared up.
4275 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4276 lt_cv_file_magic_cmd=/usr/bin/file
4277 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4278 ;;
4279 esac
4280 else
4281 lt_cv_deplibs_check_method=pass_all
4282 fi
4283 ;;
4284
4285 gnu*)
4286 lt_cv_deplibs_check_method=pass_all
4287 ;;
4288
4289 hpux10.20* | hpux11*)
4290 lt_cv_file_magic_cmd=/usr/bin/file
4291 case $host_cpu in
4292 ia64*)
4293 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4294 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4295 ;;
4296 hppa*64*)
4297 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]'
4298 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4299 ;;
4300 *)
4301 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4302 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4303 ;;
4304 esac
4305 ;;
4306
4307 interix[3-9]*)
4308 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4309 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4310 ;;
4311
4312 irix5* | irix6* | nonstopux*)
4313 case $LD in
4314 *-32|*"-32 ") libmagic=32-bit;;
4315 *-n32|*"-n32 ") libmagic=N32;;
4316 *-64|*"-64 ") libmagic=64-bit;;
4317 *) libmagic=never-match;;
4318 esac
4319 lt_cv_deplibs_check_method=pass_all
4320 ;;
4321
4322 # This must be Linux ELF.
4323 linux* | k*bsd*-gnu)
4324 lt_cv_deplibs_check_method=pass_all
4325 ;;
4326
4327 netbsd*)
4328 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4329 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4330 else
4331 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4332 fi
4333 ;;
4334
4335 newos6*)
4336 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4337 lt_cv_file_magic_cmd=/usr/bin/file
4338 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4339 ;;
4340
4341 nto-qnx*)
4342 lt_cv_deplibs_check_method=unknown
4343 ;;
4344
4345 openbsd*)
4346 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4347 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4348 else
4349 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4350 fi
4351 ;;
4352
4353 osf3* | osf4* | osf5*)
4354 lt_cv_deplibs_check_method=pass_all
4355 ;;
4356
4357 rdos*)
4358 lt_cv_deplibs_check_method=pass_all
4359 ;;
4360
4361 solaris*)
4362 lt_cv_deplibs_check_method=pass_all
4363 ;;
4364
4365 sysv4 | sysv4.3*)
4366 case $host_vendor in
4367 motorola)
4368 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]'
4369 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4370 ;;
4371 ncr)
4372 lt_cv_deplibs_check_method=pass_all
4373 ;;
4374 sequent)
4375 lt_cv_file_magic_cmd='/bin/file'
4376 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4377 ;;
4378 sni)
4379 lt_cv_file_magic_cmd='/bin/file'
4380 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4381 lt_cv_file_magic_test_file=/lib/libc.so
4382 ;;
4383 siemens)
4384 lt_cv_deplibs_check_method=pass_all
4385 ;;
4386 pc)
4387 lt_cv_deplibs_check_method=pass_all
4388 ;;
4389 esac
4390 ;;
4391
4392 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4393 lt_cv_deplibs_check_method=pass_all
4394 ;;
4395 esac
4396
4397 fi
4398 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4399 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4400 file_magic_cmd=$lt_cv_file_magic_cmd
4401 deplibs_check_method=$lt_cv_deplibs_check_method
4402 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4403
4404
4405
4406
4407 # If no C compiler was specified, use CC.
4408 LTCC=${LTCC-"$CC"}
4409
4410 # If no C compiler flags were specified, use CFLAGS.
4411 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4412
4413 # Allow CC to be a program name with arguments.
4414 compiler=$CC
4415
4416
4417 # Check whether --enable-libtool-lock was given.
4418 if test "${enable_libtool_lock+set}" = set; then
4419 enableval=$enable_libtool_lock;
4420 fi
4421
4422 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4423
4424 # Some flags need to be propagated to the compiler or linker for good
4425 # libtool support.
4426 case $host in
4427 ia64-*-hpux*)
4428 # Find out which ABI we are using.
4429 echo 'int i;' > conftest.$ac_ext
4430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4431 (eval $ac_compile) 2>&5
4432 ac_status=$?
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; then
4435 case `/usr/bin/file conftest.$ac_objext` in
4436 *ELF-32*)
4437 HPUX_IA64_MODE="32"
4438 ;;
4439 *ELF-64*)
4440 HPUX_IA64_MODE="64"
4441 ;;
4442 esac
4443 fi
4444 rm -rf conftest*
4445 ;;
4446 *-*-irix6*)
4447 # Find out which ABI we are using.
4448 echo '#line 4448 "configure"' > conftest.$ac_ext
4449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450 (eval $ac_compile) 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; then
4454 if test "$lt_cv_prog_gnu_ld" = yes; then
4455 case `/usr/bin/file conftest.$ac_objext` in
4456 *32-bit*)
4457 LD="${LD-ld} -melf32bsmip"
4458 ;;
4459 *N32*)
4460 LD="${LD-ld} -melf32bmipn32"
4461 ;;
4462 *64-bit*)
4463 LD="${LD-ld} -melf64bmip"
4464 ;;
4465 esac
4466 else
4467 case `/usr/bin/file conftest.$ac_objext` in
4468 *32-bit*)
4469 LD="${LD-ld} -32"
4470 ;;
4471 *N32*)
4472 LD="${LD-ld} -n32"
4473 ;;
4474 *64-bit*)
4475 LD="${LD-ld} -64"
4476 ;;
4477 esac
4478 fi
4479 fi
4480 rm -rf conftest*
4481 ;;
4482
4483 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4484 s390*-*linux*|sparc*-*linux*)
4485 # Find out which ABI we are using.
4486 echo 'int i;' > conftest.$ac_ext
4487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4488 (eval $ac_compile) 2>&5
4489 ac_status=$?
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; then
4492 case `/usr/bin/file conftest.o` in
4493 *32-bit*)
4494 case $host in
4495 x86_64-*kfreebsd*-gnu)
4496 LD="${LD-ld} -m elf_i386_fbsd"
4497 ;;
4498 x86_64-*linux*)
4499 LD="${LD-ld} -m elf_i386"
4500 ;;
4501 ppc64-*linux*|powerpc64-*linux*)
4502 LD="${LD-ld} -m elf32ppclinux"
4503 ;;
4504 s390x-*linux*)
4505 LD="${LD-ld} -m elf_s390"
4506 ;;
4507 sparc64-*linux*)
4508 LD="${LD-ld} -m elf32_sparc"
4509 ;;
4510 esac
4511 ;;
4512 *64-bit*)
4513 libsuff=64
4514 case $host in
4515 x86_64-*kfreebsd*-gnu)
4516 LD="${LD-ld} -m elf_x86_64_fbsd"
4517 ;;
4518 x86_64-*linux*)
4519 LD="${LD-ld} -m elf_x86_64"
4520 ;;
4521 ppc*-*linux*|powerpc*-*linux*)
4522 LD="${LD-ld} -m elf64ppc"
4523 ;;
4524 s390*-*linux*)
4525 LD="${LD-ld} -m elf64_s390"
4526 ;;
4527 sparc*-*linux*)
4528 LD="${LD-ld} -m elf64_sparc"
4529 ;;
4530 esac
4531 ;;
4532 esac
4533 fi
4534 rm -rf conftest*
4535 ;;
4536
4537 *-*-sco3.2v5*)
4538 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4539 SAVE_CFLAGS="$CFLAGS"
4540 CFLAGS="$CFLAGS -belf"
4541 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4542 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4543 if test "${lt_cv_cc_needs_belf+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546 ac_ext=c
4547 ac_cpp='$CPP $CPPFLAGS'
4548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4551
4552 cat >conftest.$ac_ext <<_ACEOF
4553 /* confdefs.h. */
4554 _ACEOF
4555 cat confdefs.h >>conftest.$ac_ext
4556 cat >>conftest.$ac_ext <<_ACEOF
4557 /* end confdefs.h. */
4558
4559 int
4560 main ()
4561 {
4562
4563 ;
4564 return 0;
4565 }
4566 _ACEOF
4567 rm -f conftest.$ac_objext conftest$ac_exeext
4568 if { (ac_try="$ac_link"
4569 case "(($ac_try" in
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4572 esac
4573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4574 (eval "$ac_link") 2>conftest.er1
4575 ac_status=$?
4576 grep -v '^ *+' conftest.er1 >conftest.err
4577 rm -f conftest.er1
4578 cat conftest.err >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); } && {
4581 test -z "$ac_c_werror_flag" ||
4582 test ! -s conftest.err
4583 } && test -s conftest$ac_exeext &&
4584 $as_test_x conftest$ac_exeext; then
4585 lt_cv_cc_needs_belf=yes
4586 else
4587 echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4589
4590 lt_cv_cc_needs_belf=no
4591 fi
4592
4593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4594 conftest$ac_exeext conftest.$ac_ext
4595 ac_ext=c
4596 ac_cpp='$CPP $CPPFLAGS'
4597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4600
4601 fi
4602 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4603 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4604 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4605 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4606 CFLAGS="$SAVE_CFLAGS"
4607 fi
4608 ;;
4609 sparc*-*solaris*)
4610 # Find out which ABI we are using.
4611 echo 'int i;' > conftest.$ac_ext
4612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4613 (eval $ac_compile) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; then
4617 case `/usr/bin/file conftest.o` in
4618 *64-bit*)
4619 case $lt_cv_prog_gnu_ld in
4620 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4621 *) LD="${LD-ld} -64" ;;
4622 esac
4623 ;;
4624 esac
4625 fi
4626 rm -rf conftest*
4627 ;;
4628
4629
4630 esac
4631
4632 need_locks="$enable_libtool_lock"
4633
4634
4635 ac_ext=c
4636 ac_cpp='$CPP $CPPFLAGS'
4637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4640 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4641 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4642 # On Suns, sometimes $CPP names a directory.
4643 if test -n "$CPP" && test -d "$CPP"; then
4644 CPP=
4645 fi
4646 if test -z "$CPP"; then
4647 if test "${ac_cv_prog_CPP+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 else
4650 # Double quotes because CPP needs to be expanded
4651 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4652 do
4653 ac_preproc_ok=false
4654 for ac_c_preproc_warn_flag in '' yes
4655 do
4656 # Use a header file that comes with gcc, so configuring glibc
4657 # with a fresh cross-compiler works.
4658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4659 # <limits.h> exists even on freestanding compilers.
4660 # On the NeXT, cc -E runs the code through the compiler's parser,
4661 # not just through cpp. "Syntax error" is here to catch this case.
4662 cat >conftest.$ac_ext <<_ACEOF
4663 /* confdefs.h. */
4664 _ACEOF
4665 cat confdefs.h >>conftest.$ac_ext
4666 cat >>conftest.$ac_ext <<_ACEOF
4667 /* end confdefs.h. */
4668 #ifdef __STDC__
4669 # include <limits.h>
4670 #else
4671 # include <assert.h>
4672 #endif
4673 Syntax error
4674 _ACEOF
4675 if { (ac_try="$ac_cpp conftest.$ac_ext"
4676 case "(($ac_try" in
4677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678 *) ac_try_echo=$ac_try;;
4679 esac
4680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4682 ac_status=$?
4683 grep -v '^ *+' conftest.er1 >conftest.err
4684 rm -f conftest.er1
4685 cat conftest.err >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); } >/dev/null && {
4688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4689 test ! -s conftest.err
4690 }; then
4691 :
4692 else
4693 echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.$ac_ext >&5
4695
4696 # Broken: fails on valid input.
4697 continue
4698 fi
4699
4700 rm -f conftest.err conftest.$ac_ext
4701
4702 # OK, works on sane cases. Now check whether nonexistent headers
4703 # can be detected and how.
4704 cat >conftest.$ac_ext <<_ACEOF
4705 /* confdefs.h. */
4706 _ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h. */
4710 #include <ac_nonexistent.h>
4711 _ACEOF
4712 if { (ac_try="$ac_cpp conftest.$ac_ext"
4713 case "(($ac_try" in
4714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4715 *) ac_try_echo=$ac_try;;
4716 esac
4717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4719 ac_status=$?
4720 grep -v '^ *+' conftest.er1 >conftest.err
4721 rm -f conftest.er1
4722 cat conftest.err >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } >/dev/null && {
4725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4726 test ! -s conftest.err
4727 }; then
4728 # Broken: success on invalid input.
4729 continue
4730 else
4731 echo "$as_me: failed program was:" >&5
4732 sed 's/^/| /' conftest.$ac_ext >&5
4733
4734 # Passes both tests.
4735 ac_preproc_ok=:
4736 break
4737 fi
4738
4739 rm -f conftest.err conftest.$ac_ext
4740
4741 done
4742 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4743 rm -f conftest.err conftest.$ac_ext
4744 if $ac_preproc_ok; then
4745 break
4746 fi
4747
4748 done
4749 ac_cv_prog_CPP=$CPP
4750
4751 fi
4752 CPP=$ac_cv_prog_CPP
4753 else
4754 ac_cv_prog_CPP=$CPP
4755 fi
4756 { echo "$as_me:$LINENO: result: $CPP" >&5
4757 echo "${ECHO_T}$CPP" >&6; }
4758 ac_preproc_ok=false
4759 for ac_c_preproc_warn_flag in '' yes
4760 do
4761 # Use a header file that comes with gcc, so configuring glibc
4762 # with a fresh cross-compiler works.
4763 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4764 # <limits.h> exists even on freestanding compilers.
4765 # On the NeXT, cc -E runs the code through the compiler's parser,
4766 # not just through cpp. "Syntax error" is here to catch this case.
4767 cat >conftest.$ac_ext <<_ACEOF
4768 /* confdefs.h. */
4769 _ACEOF
4770 cat confdefs.h >>conftest.$ac_ext
4771 cat >>conftest.$ac_ext <<_ACEOF
4772 /* end confdefs.h. */
4773 #ifdef __STDC__
4774 # include <limits.h>
4775 #else
4776 # include <assert.h>
4777 #endif
4778 Syntax error
4779 _ACEOF
4780 if { (ac_try="$ac_cpp conftest.$ac_ext"
4781 case "(($ac_try" in
4782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4783 *) ac_try_echo=$ac_try;;
4784 esac
4785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4787 ac_status=$?
4788 grep -v '^ *+' conftest.er1 >conftest.err
4789 rm -f conftest.er1
4790 cat conftest.err >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } >/dev/null && {
4793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4794 test ! -s conftest.err
4795 }; then
4796 :
4797 else
4798 echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4800
4801 # Broken: fails on valid input.
4802 continue
4803 fi
4804
4805 rm -f conftest.err conftest.$ac_ext
4806
4807 # OK, works on sane cases. Now check whether nonexistent headers
4808 # can be detected and how.
4809 cat >conftest.$ac_ext <<_ACEOF
4810 /* confdefs.h. */
4811 _ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h. */
4815 #include <ac_nonexistent.h>
4816 _ACEOF
4817 if { (ac_try="$ac_cpp conftest.$ac_ext"
4818 case "(($ac_try" in
4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820 *) ac_try_echo=$ac_try;;
4821 esac
4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4824 ac_status=$?
4825 grep -v '^ *+' conftest.er1 >conftest.err
4826 rm -f conftest.er1
4827 cat conftest.err >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } >/dev/null && {
4830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4831 test ! -s conftest.err
4832 }; then
4833 # Broken: success on invalid input.
4834 continue
4835 else
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4838
4839 # Passes both tests.
4840 ac_preproc_ok=:
4841 break
4842 fi
4843
4844 rm -f conftest.err conftest.$ac_ext
4845
4846 done
4847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4848 rm -f conftest.err conftest.$ac_ext
4849 if $ac_preproc_ok; then
4850 :
4851 else
4852 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4853 See \`config.log' for more details." >&5
4854 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4855 See \`config.log' for more details." >&2;}
4856 { (exit 1); exit 1; }; }
4857 fi
4858
4859 ac_ext=c
4860 ac_cpp='$CPP $CPPFLAGS'
4861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4864
4865
4866 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4867 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4868 if test "${ac_cv_header_stdc+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871 cat >conftest.$ac_ext <<_ACEOF
4872 /* confdefs.h. */
4873 _ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4877 #include <stdlib.h>
4878 #include <stdarg.h>
4879 #include <string.h>
4880 #include <float.h>
4881
4882 int
4883 main ()
4884 {
4885
4886 ;
4887 return 0;
4888 }
4889 _ACEOF
4890 rm -f conftest.$ac_objext
4891 if { (ac_try="$ac_compile"
4892 case "(($ac_try" in
4893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894 *) ac_try_echo=$ac_try;;
4895 esac
4896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4897 (eval "$ac_compile") 2>conftest.er1
4898 ac_status=$?
4899 grep -v '^ *+' conftest.er1 >conftest.err
4900 rm -f conftest.er1
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } && {
4904 test -z "$ac_c_werror_flag" ||
4905 test ! -s conftest.err
4906 } && test -s conftest.$ac_objext; then
4907 ac_cv_header_stdc=yes
4908 else
4909 echo "$as_me: failed program was:" >&5
4910 sed 's/^/| /' conftest.$ac_ext >&5
4911
4912 ac_cv_header_stdc=no
4913 fi
4914
4915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916
4917 if test $ac_cv_header_stdc = yes; then
4918 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4919 cat >conftest.$ac_ext <<_ACEOF
4920 /* confdefs.h. */
4921 _ACEOF
4922 cat confdefs.h >>conftest.$ac_ext
4923 cat >>conftest.$ac_ext <<_ACEOF
4924 /* end confdefs.h. */
4925 #include <string.h>
4926
4927 _ACEOF
4928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4929 $EGREP "memchr" >/dev/null 2>&1; then
4930 :
4931 else
4932 ac_cv_header_stdc=no
4933 fi
4934 rm -f conftest*
4935
4936 fi
4937
4938 if test $ac_cv_header_stdc = yes; then
4939 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4940 cat >conftest.$ac_ext <<_ACEOF
4941 /* confdefs.h. */
4942 _ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4946 #include <stdlib.h>
4947
4948 _ACEOF
4949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4950 $EGREP "free" >/dev/null 2>&1; then
4951 :
4952 else
4953 ac_cv_header_stdc=no
4954 fi
4955 rm -f conftest*
4956
4957 fi
4958
4959 if test $ac_cv_header_stdc = yes; then
4960 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4961 if test "$cross_compiling" = yes; then
4962 :
4963 else
4964 cat >conftest.$ac_ext <<_ACEOF
4965 /* confdefs.h. */
4966 _ACEOF
4967 cat confdefs.h >>conftest.$ac_ext
4968 cat >>conftest.$ac_ext <<_ACEOF
4969 /* end confdefs.h. */
4970 #include <ctype.h>
4971 #include <stdlib.h>
4972 #if ((' ' & 0x0FF) == 0x020)
4973 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4974 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4975 #else
4976 # define ISLOWER(c) \
4977 (('a' <= (c) && (c) <= 'i') \
4978 || ('j' <= (c) && (c) <= 'r') \
4979 || ('s' <= (c) && (c) <= 'z'))
4980 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4981 #endif
4982
4983 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4984 int
4985 main ()
4986 {
4987 int i;
4988 for (i = 0; i < 256; i++)
4989 if (XOR (islower (i), ISLOWER (i))
4990 || toupper (i) != TOUPPER (i))
4991 return 2;
4992 return 0;
4993 }
4994 _ACEOF
4995 rm -f conftest$ac_exeext
4996 if { (ac_try="$ac_link"
4997 case "(($ac_try" in
4998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4999 *) ac_try_echo=$ac_try;;
5000 esac
5001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5002 (eval "$ac_link") 2>&5
5003 ac_status=$?
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5006 { (case "(($ac_try" in
5007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5008 *) ac_try_echo=$ac_try;;
5009 esac
5010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5011 (eval "$ac_try") 2>&5
5012 ac_status=$?
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; }; then
5015 :
5016 else
5017 echo "$as_me: program exited with status $ac_status" >&5
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5020
5021 ( exit $ac_status )
5022 ac_cv_header_stdc=no
5023 fi
5024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5025 fi
5026
5027
5028 fi
5029 fi
5030 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5031 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5032 if test $ac_cv_header_stdc = yes; then
5033
5034 cat >>confdefs.h <<\_ACEOF
5035 #define STDC_HEADERS 1
5036 _ACEOF
5037
5038 fi
5039
5040 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5051 inttypes.h stdint.h unistd.h
5052 do
5053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 else
5059 cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h. */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 $ac_includes_default
5066
5067 #include <$ac_header>
5068 _ACEOF
5069 rm -f conftest.$ac_objext
5070 if { (ac_try="$ac_compile"
5071 case "(($ac_try" in
5072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5073 *) ac_try_echo=$ac_try;;
5074 esac
5075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5076 (eval "$ac_compile") 2>conftest.er1
5077 ac_status=$?
5078 grep -v '^ *+' conftest.er1 >conftest.err
5079 rm -f conftest.er1
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } && {
5083 test -z "$ac_c_werror_flag" ||
5084 test ! -s conftest.err
5085 } && test -s conftest.$ac_objext; then
5086 eval "$as_ac_Header=yes"
5087 else
5088 echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5090
5091 eval "$as_ac_Header=no"
5092 fi
5093
5094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5095 fi
5096 ac_res=`eval echo '${'$as_ac_Header'}'`
5097 { echo "$as_me:$LINENO: result: $ac_res" >&5
5098 echo "${ECHO_T}$ac_res" >&6; }
5099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5100 cat >>confdefs.h <<_ACEOF
5101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5102 _ACEOF
5103
5104 fi
5105
5106 done
5107
5108
5109
5110 for ac_header in dlfcn.h
5111 do
5112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5114 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5118 fi
5119 ac_res=`eval echo '${'$as_ac_Header'}'`
5120 { echo "$as_me:$LINENO: result: $ac_res" >&5
5121 echo "${ECHO_T}$ac_res" >&6; }
5122 else
5123 # Is the header compilable?
5124 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5126 cat >conftest.$ac_ext <<_ACEOF
5127 /* confdefs.h. */
5128 _ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h. */
5132 $ac_includes_default
5133 #include <$ac_header>
5134 _ACEOF
5135 rm -f conftest.$ac_objext
5136 if { (ac_try="$ac_compile"
5137 case "(($ac_try" in
5138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139 *) ac_try_echo=$ac_try;;
5140 esac
5141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142 (eval "$ac_compile") 2>conftest.er1
5143 ac_status=$?
5144 grep -v '^ *+' conftest.er1 >conftest.err
5145 rm -f conftest.er1
5146 cat conftest.err >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } && {
5149 test -z "$ac_c_werror_flag" ||
5150 test ! -s conftest.err
5151 } && test -s conftest.$ac_objext; then
5152 ac_header_compiler=yes
5153 else
5154 echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.$ac_ext >&5
5156
5157 ac_header_compiler=no
5158 fi
5159
5160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5162 echo "${ECHO_T}$ac_header_compiler" >&6; }
5163
5164 # Is the header present?
5165 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5167 cat >conftest.$ac_ext <<_ACEOF
5168 /* confdefs.h. */
5169 _ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h. */
5173 #include <$ac_header>
5174 _ACEOF
5175 if { (ac_try="$ac_cpp conftest.$ac_ext"
5176 case "(($ac_try" in
5177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5178 *) ac_try_echo=$ac_try;;
5179 esac
5180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5182 ac_status=$?
5183 grep -v '^ *+' conftest.er1 >conftest.err
5184 rm -f conftest.er1
5185 cat conftest.err >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } >/dev/null && {
5188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5189 test ! -s conftest.err
5190 }; then
5191 ac_header_preproc=yes
5192 else
5193 echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5195
5196 ac_header_preproc=no
5197 fi
5198
5199 rm -f conftest.err conftest.$ac_ext
5200 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5201 echo "${ECHO_T}$ac_header_preproc" >&6; }
5202
5203 # So? What about this header?
5204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5205 yes:no: )
5206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5210 ac_header_preproc=yes
5211 ;;
5212 no:yes:* )
5213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5220 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5225 ( cat <<\_ASBOX
5226 ## -------------------------------------------------- ##
5227 ## Report this to courier-users@lists.sourceforge.net ##
5228 ## -------------------------------------------------- ##
5229 _ASBOX
5230 ) | sed "s/^/$as_me: WARNING: /" >&2
5231 ;;
5232 esac
5233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238 eval "$as_ac_Header=\$ac_header_preproc"
5239 fi
5240 ac_res=`eval echo '${'$as_ac_Header'}'`
5241 { echo "$as_me:$LINENO: result: $ac_res" >&5
5242 echo "${ECHO_T}$ac_res" >&6; }
5243
5244 fi
5245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5246 cat >>confdefs.h <<_ACEOF
5247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5248 _ACEOF
5249
5250 fi
5251
5252 done
5253
5254 ac_ext=cpp
5255 ac_cpp='$CXXCPP $CPPFLAGS'
5256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5259 if test -z "$CXX"; then
5260 if test -n "$CCC"; then
5261 CXX=$CCC
5262 else
5263 if test -n "$ac_tool_prefix"; then
5264 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5265 do
5266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5270 if test "${ac_cv_prog_CXX+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 else
5273 if test -n "$CXX"; then
5274 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5275 else
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5278 do
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 break 2
5286 fi
5287 done
5288 done
5289 IFS=$as_save_IFS
5290
5291 fi
5292 fi
5293 CXX=$ac_cv_prog_CXX
5294 if test -n "$CXX"; then
5295 { echo "$as_me:$LINENO: result: $CXX" >&5
5296 echo "${ECHO_T}$CXX" >&6; }
5297 else
5298 { echo "$as_me:$LINENO: result: no" >&5
5299 echo "${ECHO_T}no" >&6; }
5300 fi
5301
5302
5303 test -n "$CXX" && break
5304 done
5305 fi
5306 if test -z "$CXX"; then
5307 ac_ct_CXX=$CXX
5308 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5309 do
5310 # Extract the first word of "$ac_prog", so it can be a program name with args.
5311 set dummy $ac_prog; ac_word=$2
5312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5314 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317 if test -n "$ac_ct_CXX"; then
5318 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5319 else
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5322 do
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327 ac_cv_prog_ac_ct_CXX="$ac_prog"
5328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5330 fi
5331 done
5332 done
5333 IFS=$as_save_IFS
5334
5335 fi
5336 fi
5337 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5338 if test -n "$ac_ct_CXX"; then
5339 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5340 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5341 else
5342 { echo "$as_me:$LINENO: result: no" >&5
5343 echo "${ECHO_T}no" >&6; }
5344 fi
5345
5346
5347 test -n "$ac_ct_CXX" && break
5348 done
5349
5350 if test "x$ac_ct_CXX" = x; then
5351 CXX="g++"
5352 else
5353 case $cross_compiling:$ac_tool_warned in
5354 yes:)
5355 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5356 whose name does not start with the host triplet. If you think this
5357 configuration is useful to you, please write to autoconf@gnu.org." >&5
5358 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5359 whose name does not start with the host triplet. If you think this
5360 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5361 ac_tool_warned=yes ;;
5362 esac
5363 CXX=$ac_ct_CXX
5364 fi
5365 fi
5366
5367 fi
5368 fi
5369 # Provide some information about the compiler.
5370 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5371 ac_compiler=`set X $ac_compile; echo $2`
5372 { (ac_try="$ac_compiler --version >&5"
5373 case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5376 esac
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_compiler --version >&5") 2>&5
5379 ac_status=$?
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }
5382 { (ac_try="$ac_compiler -v >&5"
5383 case "(($ac_try" in
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5386 esac
5387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388 (eval "$ac_compiler -v >&5") 2>&5
5389 ac_status=$?
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }
5392 { (ac_try="$ac_compiler -V >&5"
5393 case "(($ac_try" in
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5396 esac
5397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398 (eval "$ac_compiler -V >&5") 2>&5
5399 ac_status=$?
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }
5402
5403 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5404 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5405 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 else
5408 cat >conftest.$ac_ext <<_ACEOF
5409 /* confdefs.h. */
5410 _ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5414
5415 int
5416 main ()
5417 {
5418 #ifndef __GNUC__
5419 choke me
5420 #endif
5421
5422 ;
5423 return 0;
5424 }
5425 _ACEOF
5426 rm -f conftest.$ac_objext
5427 if { (ac_try="$ac_compile"
5428 case "(($ac_try" in
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5431 esac
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_compile") 2>conftest.er1
5434 ac_status=$?
5435 grep -v '^ *+' conftest.er1 >conftest.err
5436 rm -f conftest.er1
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } && {
5440 test -z "$ac_cxx_werror_flag" ||
5441 test ! -s conftest.err
5442 } && test -s conftest.$ac_objext; then
5443 ac_compiler_gnu=yes
5444 else
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5447
5448 ac_compiler_gnu=no
5449 fi
5450
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5453
5454 fi
5455 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5456 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5457 GXX=`test $ac_compiler_gnu = yes && echo yes`
5458 ac_test_CXXFLAGS=${CXXFLAGS+set}
5459 ac_save_CXXFLAGS=$CXXFLAGS
5460 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5461 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5462 if test "${ac_cv_prog_cxx_g+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5466 ac_cxx_werror_flag=yes
5467 ac_cv_prog_cxx_g=no
5468 CXXFLAGS="-g"
5469 cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h. */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475
5476 int
5477 main ()
5478 {
5479
5480 ;
5481 return 0;
5482 }
5483 _ACEOF
5484 rm -f conftest.$ac_objext
5485 if { (ac_try="$ac_compile"
5486 case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5489 esac
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_compile") 2>conftest.er1
5492 ac_status=$?
5493 grep -v '^ *+' conftest.er1 >conftest.err
5494 rm -f conftest.er1
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && {
5498 test -z "$ac_cxx_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest.$ac_objext; then
5501 ac_cv_prog_cxx_g=yes
5502 else
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5505
5506 CXXFLAGS=""
5507 cat >conftest.$ac_ext <<_ACEOF
5508 /* confdefs.h. */
5509 _ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5513
5514 int
5515 main ()
5516 {
5517
5518 ;
5519 return 0;
5520 }
5521 _ACEOF
5522 rm -f conftest.$ac_objext
5523 if { (ac_try="$ac_compile"
5524 case "(($ac_try" in
5525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526 *) ac_try_echo=$ac_try;;
5527 esac
5528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5529 (eval "$ac_compile") 2>conftest.er1
5530 ac_status=$?
5531 grep -v '^ *+' conftest.er1 >conftest.err
5532 rm -f conftest.er1
5533 cat conftest.err >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } && {
5536 test -z "$ac_cxx_werror_flag" ||
5537 test ! -s conftest.err
5538 } && test -s conftest.$ac_objext; then
5539 :
5540 else
5541 echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5543
5544 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5545 CXXFLAGS="-g"
5546 cat >conftest.$ac_ext <<_ACEOF
5547 /* confdefs.h. */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5552
5553 int
5554 main ()
5555 {
5556
5557 ;
5558 return 0;
5559 }
5560 _ACEOF
5561 rm -f conftest.$ac_objext
5562 if { (ac_try="$ac_compile"
5563 case "(($ac_try" in
5564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565 *) ac_try_echo=$ac_try;;
5566 esac
5567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5568 (eval "$ac_compile") 2>conftest.er1
5569 ac_status=$?
5570 grep -v '^ *+' conftest.er1 >conftest.err
5571 rm -f conftest.er1
5572 cat conftest.err >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); } && {
5575 test -z "$ac_cxx_werror_flag" ||
5576 test ! -s conftest.err
5577 } && test -s conftest.$ac_objext; then
5578 ac_cv_prog_cxx_g=yes
5579 else
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5582
5583
5584 fi
5585
5586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587 fi
5588
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590 fi
5591
5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5594 fi
5595 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5596 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5597 if test "$ac_test_CXXFLAGS" = set; then
5598 CXXFLAGS=$ac_save_CXXFLAGS
5599 elif test $ac_cv_prog_cxx_g = yes; then
5600 if test "$GXX" = yes; then
5601 CXXFLAGS="-g -O2"
5602 else
5603 CXXFLAGS="-g"
5604 fi
5605 else
5606 if test "$GXX" = yes; then
5607 CXXFLAGS="-O2"
5608 else
5609 CXXFLAGS=
5610 fi
5611 fi
5612 ac_ext=cpp
5613 ac_cpp='$CXXCPP $CPPFLAGS'
5614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5617
5618 depcc="$CXX" am_compiler_list=
5619
5620 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5621 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5622 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5624 else
5625 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5626 # We make a subdir and do the tests there. Otherwise we can end up
5627 # making bogus files that we don't know about and never remove. For
5628 # instance it was reported that on HP-UX the gcc test will end up
5629 # making a dummy file named `D' -- because `-MD' means `put the output
5630 # in D'.
5631 mkdir conftest.dir
5632 # Copy depcomp to subdir because otherwise we won't find it if we're
5633 # using a relative directory.
5634 cp "$am_depcomp" conftest.dir
5635 cd conftest.dir
5636 # We will build objects and dependencies in a subdirectory because
5637 # it helps to detect inapplicable dependency modes. For instance
5638 # both Tru64's cc and ICC support -MD to output dependencies as a
5639 # side effect of compilation, but ICC will put the dependencies in
5640 # the current directory while Tru64 will put them in the object
5641 # directory.
5642 mkdir sub
5643
5644 am_cv_CXX_dependencies_compiler_type=none
5645 if test "$am_compiler_list" = ""; then
5646 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5647 fi
5648 for depmode in $am_compiler_list; do
5649 # Setup a source with many dependencies, because some compilers
5650 # like to wrap large dependency lists on column 80 (with \), and
5651 # we should not choose a depcomp mode which is confused by this.
5652 #
5653 # We need to recreate these files for each test, as the compiler may
5654 # overwrite some of them when testing with obscure command lines.
5655 # This happens at least with the AIX C compiler.
5656 : > sub/conftest.c
5657 for i in 1 2 3 4 5 6; do
5658 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5659 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5660 # Solaris 8's {/usr,}/bin/sh.
5661 touch sub/conftst$i.h
5662 done
5663 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5664
5665 case $depmode in
5666 nosideeffect)
5667 # after this tag, mechanisms are not by side-effect, so they'll
5668 # only be used when explicitly requested
5669 if test "x$enable_dependency_tracking" = xyes; then
5670 continue
5671 else
5672 break
5673 fi
5674 ;;
5675 none) break ;;
5676 esac
5677 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5678 # mode. It turns out that the SunPro C++ compiler does not properly
5679 # handle `-M -o', and we need to detect this.
5680 if depmode=$depmode \
5681 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5682 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5683 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5684 >/dev/null 2>conftest.err &&
5685 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5686 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5687 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5688 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5689 # icc doesn't choke on unknown options, it will just issue warnings
5690 # or remarks (even with -Werror). So we grep stderr for any message
5691 # that says an option was ignored or not supported.
5692 # When given -MP, icc 7.0 and 7.1 complain thusly:
5693 # icc: Command line warning: ignoring option '-M'; no argument required
5694 # The diagnosis changed in icc 8.0:
5695 # icc: Command line remark: option '-MP' not supported
5696 if (grep 'ignoring option' conftest.err ||
5697 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5698 am_cv_CXX_dependencies_compiler_type=$depmode
5699 break
5700 fi
5701 fi
5702 done
5703
5704 cd ..
5705 rm -rf conftest.dir
5706 else
5707 am_cv_CXX_dependencies_compiler_type=none
5708 fi
5709
5710 fi
5711 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5712 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5713 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5714
5715 if
5716 test "x$enable_dependency_tracking" != xno \
5717 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5718 am__fastdepCXX_TRUE=
5719 am__fastdepCXX_FALSE='#'
5720 else
5721 am__fastdepCXX_TRUE='#'
5722 am__fastdepCXX_FALSE=
5723 fi
5724
5725
5726
5727
5728 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5729 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5730 (test "X$CXX" != "Xg++"))) ; then
5731 ac_ext=cpp
5732 ac_cpp='$CXXCPP $CPPFLAGS'
5733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5736 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5737 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5738 if test -z "$CXXCPP"; then
5739 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742 # Double quotes because CXXCPP needs to be expanded
5743 for CXXCPP in "$CXX -E" "/lib/cpp"
5744 do
5745 ac_preproc_ok=false
5746 for ac_cxx_preproc_warn_flag in '' yes
5747 do
5748 # Use a header file that comes with gcc, so configuring glibc
5749 # with a fresh cross-compiler works.
5750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5751 # <limits.h> exists even on freestanding compilers.
5752 # On the NeXT, cc -E runs the code through the compiler's parser,
5753 # not just through cpp. "Syntax error" is here to catch this case.
5754 cat >conftest.$ac_ext <<_ACEOF
5755 /* confdefs.h. */
5756 _ACEOF
5757 cat confdefs.h >>conftest.$ac_ext
5758 cat >>conftest.$ac_ext <<_ACEOF
5759 /* end confdefs.h. */
5760 #ifdef __STDC__
5761 # include <limits.h>
5762 #else
5763 # include <assert.h>
5764 #endif
5765 Syntax error
5766 _ACEOF
5767 if { (ac_try="$ac_cpp conftest.$ac_ext"
5768 case "(($ac_try" in
5769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5770 *) ac_try_echo=$ac_try;;
5771 esac
5772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5774 ac_status=$?
5775 grep -v '^ *+' conftest.er1 >conftest.err
5776 rm -f conftest.er1
5777 cat conftest.err >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } >/dev/null && {
5780 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5781 test ! -s conftest.err
5782 }; then
5783 :
5784 else
5785 echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5787
5788 # Broken: fails on valid input.
5789 continue
5790 fi
5791
5792 rm -f conftest.err conftest.$ac_ext
5793
5794 # OK, works on sane cases. Now check whether nonexistent headers
5795 # can be detected and how.
5796 cat >conftest.$ac_ext <<_ACEOF
5797 /* confdefs.h. */
5798 _ACEOF
5799 cat confdefs.h >>conftest.$ac_ext
5800 cat >>conftest.$ac_ext <<_ACEOF
5801 /* end confdefs.h. */
5802 #include <ac_nonexistent.h>
5803 _ACEOF
5804 if { (ac_try="$ac_cpp conftest.$ac_ext"
5805 case "(($ac_try" in
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5808 esac
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5811 ac_status=$?
5812 grep -v '^ *+' conftest.er1 >conftest.err
5813 rm -f conftest.er1
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } >/dev/null && {
5817 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5818 test ! -s conftest.err
5819 }; then
5820 # Broken: success on invalid input.
5821 continue
5822 else
5823 echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5825
5826 # Passes both tests.
5827 ac_preproc_ok=:
5828 break
5829 fi
5830
5831 rm -f conftest.err conftest.$ac_ext
5832
5833 done
5834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5835 rm -f conftest.err conftest.$ac_ext
5836 if $ac_preproc_ok; then
5837 break
5838 fi
5839
5840 done
5841 ac_cv_prog_CXXCPP=$CXXCPP
5842
5843 fi
5844 CXXCPP=$ac_cv_prog_CXXCPP
5845 else
5846 ac_cv_prog_CXXCPP=$CXXCPP
5847 fi
5848 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5849 echo "${ECHO_T}$CXXCPP" >&6; }
5850 ac_preproc_ok=false
5851 for ac_cxx_preproc_warn_flag in '' yes
5852 do
5853 # Use a header file that comes with gcc, so configuring glibc
5854 # with a fresh cross-compiler works.
5855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5856 # <limits.h> exists even on freestanding compilers.
5857 # On the NeXT, cc -E runs the code through the compiler's parser,
5858 # not just through cpp. "Syntax error" is here to catch this case.
5859 cat >conftest.$ac_ext <<_ACEOF
5860 /* confdefs.h. */
5861 _ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h. */
5865 #ifdef __STDC__
5866 # include <limits.h>
5867 #else
5868 # include <assert.h>
5869 #endif
5870 Syntax error
5871 _ACEOF
5872 if { (ac_try="$ac_cpp conftest.$ac_ext"
5873 case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5876 esac
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5879 ac_status=$?
5880 grep -v '^ *+' conftest.er1 >conftest.err
5881 rm -f conftest.er1
5882 cat conftest.err >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } >/dev/null && {
5885 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5886 test ! -s conftest.err
5887 }; then
5888 :
5889 else
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5892
5893 # Broken: fails on valid input.
5894 continue
5895 fi
5896
5897 rm -f conftest.err conftest.$ac_ext
5898
5899 # OK, works on sane cases. Now check whether nonexistent headers
5900 # can be detected and how.
5901 cat >conftest.$ac_ext <<_ACEOF
5902 /* confdefs.h. */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5907 #include <ac_nonexistent.h>
5908 _ACEOF
5909 if { (ac_try="$ac_cpp conftest.$ac_ext"
5910 case "(($ac_try" in
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5913 esac
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5916 ac_status=$?
5917 grep -v '^ *+' conftest.er1 >conftest.err
5918 rm -f conftest.er1
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } >/dev/null && {
5922 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5923 test ! -s conftest.err
5924 }; then
5925 # Broken: success on invalid input.
5926 continue
5927 else
5928 echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5930
5931 # Passes both tests.
5932 ac_preproc_ok=:
5933 break
5934 fi
5935
5936 rm -f conftest.err conftest.$ac_ext
5937
5938 done
5939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5940 rm -f conftest.err conftest.$ac_ext
5941 if $ac_preproc_ok; then
5942 :
5943 else
5944 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5945 See \`config.log' for more details." >&5
5946 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5947 See \`config.log' for more details." >&2;}
5948 { (exit 1); exit 1; }; }
5949 fi
5950
5951 ac_ext=cpp
5952 ac_cpp='$CXXCPP $CPPFLAGS'
5953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5956
5957 fi
5958
5959
5960 ac_ext=f
5961 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5962 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5963 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5964 if test -n "$ac_tool_prefix"; then
5965 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
5966 do
5967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5971 if test "${ac_cv_prog_F77+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974 if test -n "$F77"; then
5975 ac_cv_prog_F77="$F77" # Let the user override the test.
5976 else
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 for as_dir in $PATH
5979 do
5980 IFS=$as_save_IFS
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5984 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 break 2
5987 fi
5988 done
5989 done
5990 IFS=$as_save_IFS
5991
5992 fi
5993 fi
5994 F77=$ac_cv_prog_F77
5995 if test -n "$F77"; then
5996 { echo "$as_me:$LINENO: result: $F77" >&5
5997 echo "${ECHO_T}$F77" >&6; }
5998 else
5999 { echo "$as_me:$LINENO: result: no" >&5
6000 echo "${ECHO_T}no" >&6; }
6001 fi
6002
6003
6004 test -n "$F77" && break
6005 done
6006 fi
6007 if test -z "$F77"; then
6008 ac_ct_F77=$F77
6009 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
6010 do
6011 # Extract the first word of "$ac_prog", so it can be a program name with args.
6012 set dummy $ac_prog; ac_word=$2
6013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6015 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018 if test -n "$ac_ct_F77"; then
6019 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6020 else
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6023 do
6024 IFS=$as_save_IFS
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6028 ac_cv_prog_ac_ct_F77="$ac_prog"
6029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 break 2
6031 fi
6032 done
6033 done
6034 IFS=$as_save_IFS
6035
6036 fi
6037 fi
6038 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6039 if test -n "$ac_ct_F77"; then
6040 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6041 echo "${ECHO_T}$ac_ct_F77" >&6; }
6042 else
6043 { echo "$as_me:$LINENO: result: no" >&5
6044 echo "${ECHO_T}no" >&6; }
6045 fi
6046
6047
6048 test -n "$ac_ct_F77" && break
6049 done
6050
6051 if test "x$ac_ct_F77" = x; then
6052 F77=""
6053 else
6054 case $cross_compiling:$ac_tool_warned in
6055 yes:)
6056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6057 whose name does not start with the host triplet. If you think this
6058 configuration is useful to you, please write to autoconf@gnu.org." >&5
6059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6060 whose name does not start with the host triplet. If you think this
6061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6062 ac_tool_warned=yes ;;
6063 esac
6064 F77=$ac_ct_F77
6065 fi
6066 fi
6067
6068
6069 # Provide some information about the compiler.
6070 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6071 ac_compiler=`set X $ac_compile; echo $2`
6072 { (ac_try="$ac_compiler --version >&5"
6073 case "(($ac_try" in
6074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075 *) ac_try_echo=$ac_try;;
6076 esac
6077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078 (eval "$ac_compiler --version >&5") 2>&5
6079 ac_status=$?
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); }
6082 { (ac_try="$ac_compiler -v >&5"
6083 case "(($ac_try" in
6084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6085 *) ac_try_echo=$ac_try;;
6086 esac
6087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6088 (eval "$ac_compiler -v >&5") 2>&5
6089 ac_status=$?
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }
6092 { (ac_try="$ac_compiler -V >&5"
6093 case "(($ac_try" in
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6096 esac
6097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_compiler -V >&5") 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }
6102 rm -f a.out
6103
6104 # If we don't use `.F' as extension, the preprocessor is not run on the
6105 # input file. (Note that this only needs to work for GNU compilers.)
6106 ac_save_ext=$ac_ext
6107 ac_ext=F
6108 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6109 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6110 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 else
6113 cat >conftest.$ac_ext <<_ACEOF
6114 program main
6115 #ifndef __GNUC__
6116 choke me
6117 #endif
6118
6119 end
6120 _ACEOF
6121 rm -f conftest.$ac_objext
6122 if { (ac_try="$ac_compile"
6123 case "(($ac_try" in
6124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125 *) ac_try_echo=$ac_try;;
6126 esac
6127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128 (eval "$ac_compile") 2>conftest.er1
6129 ac_status=$?
6130 grep -v '^ *+' conftest.er1 >conftest.err
6131 rm -f conftest.er1
6132 cat conftest.err >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } && {
6135 test -z "$ac_f77_werror_flag" ||
6136 test ! -s conftest.err
6137 } && test -s conftest.$ac_objext; then
6138 ac_compiler_gnu=yes
6139 else
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6142
6143 ac_compiler_gnu=no
6144 fi
6145
6146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6148
6149 fi
6150 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6151 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6152 ac_ext=$ac_save_ext
6153 ac_test_FFLAGS=${FFLAGS+set}
6154 ac_save_FFLAGS=$FFLAGS
6155 FFLAGS=
6156 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6157 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6158 if test "${ac_cv_prog_f77_g+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161 FFLAGS=-g
6162 cat >conftest.$ac_ext <<_ACEOF
6163 program main
6164
6165 end
6166 _ACEOF
6167 rm -f conftest.$ac_objext
6168 if { (ac_try="$ac_compile"
6169 case "(($ac_try" in
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6172 esac
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_compile") 2>conftest.er1
6175 ac_status=$?
6176 grep -v '^ *+' conftest.er1 >conftest.err
6177 rm -f conftest.er1
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } && {
6181 test -z "$ac_f77_werror_flag" ||
6182 test ! -s conftest.err
6183 } && test -s conftest.$ac_objext; then
6184 ac_cv_prog_f77_g=yes
6185 else
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6188
6189 ac_cv_prog_f77_g=no
6190 fi
6191
6192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6193
6194 fi
6195 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6196 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6197 if test "$ac_test_FFLAGS" = set; then
6198 FFLAGS=$ac_save_FFLAGS
6199 elif test $ac_cv_prog_f77_g = yes; then
6200 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6201 FFLAGS="-g -O2"
6202 else
6203 FFLAGS="-g"
6204 fi
6205 else
6206 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6207 FFLAGS="-O2"
6208 else
6209 FFLAGS=
6210 fi
6211 fi
6212
6213 G77=`test $ac_compiler_gnu = yes && echo yes`
6214 ac_ext=c
6215 ac_cpp='$CPP $CPPFLAGS'
6216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6219
6220
6221
6222 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6223
6224 # find the maximum length of command line arguments
6225 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6226 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6227 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230 i=0
6231 teststring="ABCD"
6232
6233 case $build_os in
6234 msdosdjgpp*)
6235 # On DJGPP, this test can blow up pretty badly due to problems in libc
6236 # (any single argument exceeding 2000 bytes causes a buffer overrun
6237 # during glob expansion). Even if it were fixed, the result of this
6238 # check would be larger than it should be.
6239 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6240 ;;
6241
6242 gnu*)
6243 # Under GNU Hurd, this test is not required because there is
6244 # no limit to the length of command line arguments.
6245 # Libtool will interpret -1 as no limit whatsoever
6246 lt_cv_sys_max_cmd_len=-1;
6247 ;;
6248
6249 cygwin* | mingw*)
6250 # On Win9x/ME, this test blows up -- it succeeds, but takes
6251 # about 5 minutes as the teststring grows exponentially.
6252 # Worse, since 9x/ME are not pre-emptively multitasking,
6253 # you end up with a "frozen" computer, even though with patience
6254 # the test eventually succeeds (with a max line length of 256k).
6255 # Instead, let's just punt: use the minimum linelength reported by
6256 # all of the supported platforms: 8192 (on NT/2K/XP).
6257 lt_cv_sys_max_cmd_len=8192;
6258 ;;
6259
6260 amigaos*)
6261 # On AmigaOS with pdksh, this test takes hours, literally.
6262 # So we just punt and use a minimum line length of 8192.
6263 lt_cv_sys_max_cmd_len=8192;
6264 ;;
6265
6266 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6267 # This has been around since 386BSD, at least. Likely further.
6268 if test -x /sbin/sysctl; then
6269 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6270 elif test -x /usr/sbin/sysctl; then
6271 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6272 else
6273 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6274 fi
6275 # And add a safety zone
6276 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6277 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6278 ;;
6279
6280 interix*)
6281 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6282 lt_cv_sys_max_cmd_len=196608
6283 ;;
6284
6285 osf*)
6286 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6287 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6288 # nice to cause kernel panics so lets avoid the loop below.
6289 # First set a reasonable default.
6290 lt_cv_sys_max_cmd_len=16384
6291 #
6292 if test -x /sbin/sysconfig; then
6293 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6294 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6295 esac
6296 fi
6297 ;;
6298 sco3.2v5*)
6299 lt_cv_sys_max_cmd_len=102400
6300 ;;
6301 sysv5* | sco5v6* | sysv4.2uw2*)
6302 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6303 if test -n "$kargmax"; then
6304 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6305 else
6306 lt_cv_sys_max_cmd_len=32768
6307 fi
6308 ;;
6309 *)
6310 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6311 if test -n "$lt_cv_sys_max_cmd_len"; then
6312 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6313 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6314 else
6315 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6316 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6317 = "XX$teststring") >/dev/null 2>&1 &&
6318 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6319 lt_cv_sys_max_cmd_len=$new_result &&
6320 test $i != 17 # 1/2 MB should be enough
6321 do
6322 i=`expr $i + 1`
6323 teststring=$teststring$teststring
6324 done
6325 teststring=
6326 # Add a significant safety factor because C++ compilers can tack on massive
6327 # amounts of additional arguments before passing them to the linker.
6328 # It appears as though 1/2 is a usable value.
6329 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6330 fi
6331 ;;
6332 esac
6333
6334 fi
6335
6336 if test -n $lt_cv_sys_max_cmd_len ; then
6337 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6338 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6339 else
6340 { echo "$as_me:$LINENO: result: none" >&5
6341 echo "${ECHO_T}none" >&6; }
6342 fi
6343
6344
6345
6346
6347
6348 # Check for command to grab the raw symbol name followed by C symbol from nm.
6349 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6350 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6351 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 else
6354
6355 # These are sane defaults that work on at least a few old systems.
6356 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6357
6358 # Character class describing NM global symbol codes.
6359 symcode='[BCDEGRST]'
6360
6361 # Regexp to match symbols that can be accessed directly from C.
6362 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6363
6364 # Transform an extracted symbol line into a proper C declaration
6365 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6366
6367 # Transform an extracted symbol line into symbol name and symbol address
6368 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'"
6369
6370 # Define system-specific variables.
6371 case $host_os in
6372 aix*)
6373 symcode='[BCDT]'
6374 ;;
6375 cygwin* | mingw* | pw32*)
6376 symcode='[ABCDGISTW]'
6377 ;;
6378 hpux*) # Its linker distinguishes data from code symbols
6379 if test "$host_cpu" = ia64; then
6380 symcode='[ABCDEGRST]'
6381 fi
6382 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6383 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'"
6384 ;;
6385 linux* | k*bsd*-gnu)
6386 if test "$host_cpu" = ia64; then
6387 symcode='[ABCDGIRSTW]'
6388 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6389 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'"
6390 fi
6391 ;;
6392 irix* | nonstopux*)
6393 symcode='[BCDEGRST]'
6394 ;;
6395 osf*)
6396 symcode='[BCDEGQRST]'
6397 ;;
6398 solaris*)
6399 symcode='[BDRT]'
6400 ;;
6401 sco3.2v5*)
6402 symcode='[DT]'
6403 ;;
6404 sysv4.2uw2*)
6405 symcode='[DT]'
6406 ;;
6407 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6408 symcode='[ABDT]'
6409 ;;
6410 sysv4)
6411 symcode='[DFNSTU]'
6412 ;;
6413 esac
6414
6415 # Handle CRLF in mingw tool chain
6416 opt_cr=
6417 case $build_os in
6418 mingw*)
6419 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6420 ;;
6421 esac
6422
6423 # If we're using GNU nm, then use its standard symbol codes.
6424 case `$NM -V 2>&1` in
6425 *GNU* | *'with BFD'*)
6426 symcode='[ABCDGIRSTW]' ;;
6427 esac
6428
6429 # Try without a prefix undercore, then with it.
6430 for ac_symprfx in "" "_"; do
6431
6432 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6433 symxfrm="\\1 $ac_symprfx\\2 \\2"
6434
6435 # Write the raw and C identifiers.
6436 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6437
6438 # Check to see that the pipe works correctly.
6439 pipe_works=no
6440
6441 rm -f conftest*
6442 cat > conftest.$ac_ext <<EOF
6443 #ifdef __cplusplus
6444 extern "C" {
6445 #endif
6446 char nm_test_var;
6447 void nm_test_func(){}
6448 #ifdef __cplusplus
6449 }
6450 #endif
6451 int main(){nm_test_var='a';nm_test_func();return(0);}
6452 EOF
6453
6454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6455 (eval $ac_compile) 2>&5
6456 ac_status=$?
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; then
6459 # Now try to grab the symbols.
6460 nlist=conftest.nm
6461 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6462 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6463 ac_status=$?
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } && test -s "$nlist"; then
6466 # Try sorting and uniquifying the output.
6467 if sort "$nlist" | uniq > "$nlist"T; then
6468 mv -f "$nlist"T "$nlist"
6469 else
6470 rm -f "$nlist"T
6471 fi
6472
6473 # Make sure that we snagged all the symbols we need.
6474 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6475 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6476 cat <<EOF > conftest.$ac_ext
6477 #ifdef __cplusplus
6478 extern "C" {
6479 #endif
6480
6481 EOF
6482 # Now generate the symbol file.
6483 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6484
6485 cat <<EOF >> conftest.$ac_ext
6486 #if defined (__STDC__) && __STDC__
6487 # define lt_ptr_t void *
6488 #else
6489 # define lt_ptr_t char *
6490 # define const
6491 #endif
6492
6493 /* The mapping between symbol names and symbols. */
6494 const struct {
6495 const char *name;
6496 lt_ptr_t address;
6497 }
6498 lt_preloaded_symbols[] =
6499 {
6500 EOF
6501 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6502 cat <<\EOF >> conftest.$ac_ext
6503 {0, (lt_ptr_t) 0}
6504 };
6505
6506 #ifdef __cplusplus
6507 }
6508 #endif
6509 EOF
6510 # Now try linking the two files.
6511 mv conftest.$ac_objext conftstm.$ac_objext
6512 lt_save_LIBS="$LIBS"
6513 lt_save_CFLAGS="$CFLAGS"
6514 LIBS="conftstm.$ac_objext"
6515 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6517 (eval $ac_link) 2>&5
6518 ac_status=$?
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6521 pipe_works=yes
6522 fi
6523 LIBS="$lt_save_LIBS"
6524 CFLAGS="$lt_save_CFLAGS"
6525 else
6526 echo "cannot find nm_test_func in $nlist" >&5
6527 fi
6528 else
6529 echo "cannot find nm_test_var in $nlist" >&5
6530 fi
6531 else
6532 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6533 fi
6534 else
6535 echo "$progname: failed program was:" >&5
6536 cat conftest.$ac_ext >&5
6537 fi
6538 rm -f conftest* conftst*
6539
6540 # Do not use the global_symbol_pipe unless it works.
6541 if test "$pipe_works" = yes; then
6542 break
6543 else
6544 lt_cv_sys_global_symbol_pipe=
6545 fi
6546 done
6547
6548 fi
6549
6550 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6551 lt_cv_sys_global_symbol_to_cdecl=
6552 fi
6553 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6554 { echo "$as_me:$LINENO: result: failed" >&5
6555 echo "${ECHO_T}failed" >&6; }
6556 else
6557 { echo "$as_me:$LINENO: result: ok" >&5
6558 echo "${ECHO_T}ok" >&6; }
6559 fi
6560
6561 { echo "$as_me:$LINENO: checking for objdir" >&5
6562 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6563 if test "${lt_cv_objdir+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566 rm -f .libs 2>/dev/null
6567 mkdir .libs 2>/dev/null
6568 if test -d .libs; then
6569 lt_cv_objdir=.libs
6570 else
6571 # MS-DOS does not allow filenames that begin with a dot.
6572 lt_cv_objdir=_libs
6573 fi
6574 rmdir .libs 2>/dev/null
6575 fi
6576 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6577 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6578 objdir=$lt_cv_objdir
6579
6580
6581
6582
6583
6584 case $host_os in
6585 aix3*)
6586 # AIX sometimes has problems with the GCC collect2 program. For some
6587 # reason, if we set the COLLECT_NAMES environment variable, the problems
6588 # vanish in a puff of smoke.
6589 if test "X${COLLECT_NAMES+set}" != Xset; then
6590 COLLECT_NAMES=
6591 export COLLECT_NAMES
6592 fi
6593 ;;
6594 esac
6595
6596 # Sed substitution that helps us do robust quoting. It backslashifies
6597 # metacharacters that are still active within double-quoted strings.
6598 Xsed='sed -e 1s/^X//'
6599 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6600
6601 # Same as above, but do not quote variable references.
6602 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6603
6604 # Sed substitution to delay expansion of an escaped shell variable in a
6605 # double_quote_subst'ed string.
6606 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6607
6608 # Sed substitution to avoid accidental globbing in evaled expressions
6609 no_glob_subst='s/\*/\\\*/g'
6610
6611 # Constants:
6612 rm="rm -f"
6613
6614 # Global variables:
6615 default_ofile=libtool
6616 can_build_shared=yes
6617
6618 # All known linkers require a `.a' archive for static linking (except MSVC,
6619 # which needs '.lib').
6620 libext=a
6621 ltmain="$ac_aux_dir/ltmain.sh"
6622 ofile="$default_ofile"
6623 with_gnu_ld="$lt_cv_prog_gnu_ld"
6624
6625 if test -n "$ac_tool_prefix"; then
6626 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6627 set dummy ${ac_tool_prefix}ar; ac_word=$2
6628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6630 if test "${ac_cv_prog_AR+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633 if test -n "$AR"; then
6634 ac_cv_prog_AR="$AR" # Let the user override the test.
6635 else
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 for as_dir in $PATH
6638 do
6639 IFS=$as_save_IFS
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643 ac_cv_prog_AR="${ac_tool_prefix}ar"
6644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 break 2
6646 fi
6647 done
6648 done
6649 IFS=$as_save_IFS
6650
6651 fi
6652 fi
6653 AR=$ac_cv_prog_AR
6654 if test -n "$AR"; then
6655 { echo "$as_me:$LINENO: result: $AR" >&5
6656 echo "${ECHO_T}$AR" >&6; }
6657 else
6658 { echo "$as_me:$LINENO: result: no" >&5
6659 echo "${ECHO_T}no" >&6; }
6660 fi
6661
6662
6663 fi
6664 if test -z "$ac_cv_prog_AR"; then
6665 ac_ct_AR=$AR
6666 # Extract the first word of "ar", so it can be a program name with args.
6667 set dummy ar; ac_word=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673 if test -n "$ac_ct_AR"; then
6674 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6675 else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679 IFS=$as_save_IFS
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_prog_ac_ct_AR="ar"
6684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 break 2
6686 fi
6687 done
6688 done
6689 IFS=$as_save_IFS
6690
6691 fi
6692 fi
6693 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6694 if test -n "$ac_ct_AR"; then
6695 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6696 echo "${ECHO_T}$ac_ct_AR" >&6; }
6697 else
6698 { echo "$as_me:$LINENO: result: no" >&5
6699 echo "${ECHO_T}no" >&6; }
6700 fi
6701
6702 if test "x$ac_ct_AR" = x; then
6703 AR="false"
6704 else
6705 case $cross_compiling:$ac_tool_warned in
6706 yes:)
6707 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6708 whose name does not start with the host triplet. If you think this
6709 configuration is useful to you, please write to autoconf@gnu.org." >&5
6710 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6711 whose name does not start with the host triplet. If you think this
6712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6713 ac_tool_warned=yes ;;
6714 esac
6715 AR=$ac_ct_AR
6716 fi
6717 else
6718 AR="$ac_cv_prog_AR"
6719 fi
6720
6721 if test -n "$ac_tool_prefix"; then
6722 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6723 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6726 if test "${ac_cv_prog_RANLIB+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 else
6729 if test -n "$RANLIB"; then
6730 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6731 else
6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 for as_dir in $PATH
6734 do
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
6738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6739 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 break 2
6742 fi
6743 done
6744 done
6745 IFS=$as_save_IFS
6746
6747 fi
6748 fi
6749 RANLIB=$ac_cv_prog_RANLIB
6750 if test -n "$RANLIB"; then
6751 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6752 echo "${ECHO_T}$RANLIB" >&6; }
6753 else
6754 { echo "$as_me:$LINENO: result: no" >&5
6755 echo "${ECHO_T}no" >&6; }
6756 fi
6757
6758
6759 fi
6760 if test -z "$ac_cv_prog_RANLIB"; then
6761 ac_ct_RANLIB=$RANLIB
6762 # Extract the first word of "ranlib", so it can be a program name with args.
6763 set dummy ranlib; ac_word=$2
6764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 else
6769 if test -n "$ac_ct_RANLIB"; then
6770 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6771 else
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6774 do
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_prog_ac_ct_RANLIB="ranlib"
6780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6782 fi
6783 done
6784 done
6785 IFS=$as_save_IFS
6786
6787 fi
6788 fi
6789 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6790 if test -n "$ac_ct_RANLIB"; then
6791 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6792 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6793 else
6794 { echo "$as_me:$LINENO: result: no" >&5
6795 echo "${ECHO_T}no" >&6; }
6796 fi
6797
6798 if test "x$ac_ct_RANLIB" = x; then
6799 RANLIB=":"
6800 else
6801 case $cross_compiling:$ac_tool_warned in
6802 yes:)
6803 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6804 whose name does not start with the host triplet. If you think this
6805 configuration is useful to you, please write to autoconf@gnu.org." >&5
6806 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6807 whose name does not start with the host triplet. If you think this
6808 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6809 ac_tool_warned=yes ;;
6810 esac
6811 RANLIB=$ac_ct_RANLIB
6812 fi
6813 else
6814 RANLIB="$ac_cv_prog_RANLIB"
6815 fi
6816
6817 if test -n "$ac_tool_prefix"; then
6818 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6819 set dummy ${ac_tool_prefix}strip; ac_word=$2
6820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6822 if test "${ac_cv_prog_STRIP+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 else
6825 if test -n "$STRIP"; then
6826 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6827 else
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 for as_dir in $PATH
6830 do
6831 IFS=$as_save_IFS
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6835 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 break 2
6838 fi
6839 done
6840 done
6841 IFS=$as_save_IFS
6842
6843 fi
6844 fi
6845 STRIP=$ac_cv_prog_STRIP
6846 if test -n "$STRIP"; then
6847 { echo "$as_me:$LINENO: result: $STRIP" >&5
6848 echo "${ECHO_T}$STRIP" >&6; }
6849 else
6850 { echo "$as_me:$LINENO: result: no" >&5
6851 echo "${ECHO_T}no" >&6; }
6852 fi
6853
6854
6855 fi
6856 if test -z "$ac_cv_prog_STRIP"; then
6857 ac_ct_STRIP=$STRIP
6858 # Extract the first word of "strip", so it can be a program name with args.
6859 set dummy strip; ac_word=$2
6860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6862 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 else
6865 if test -n "$ac_ct_STRIP"; then
6866 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6867 else
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH
6870 do
6871 IFS=$as_save_IFS
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6875 ac_cv_prog_ac_ct_STRIP="strip"
6876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 break 2
6878 fi
6879 done
6880 done
6881 IFS=$as_save_IFS
6882
6883 fi
6884 fi
6885 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6886 if test -n "$ac_ct_STRIP"; then
6887 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6888 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6889 else
6890 { echo "$as_me:$LINENO: result: no" >&5
6891 echo "${ECHO_T}no" >&6; }
6892 fi
6893
6894 if test "x$ac_ct_STRIP" = x; then
6895 STRIP=":"
6896 else
6897 case $cross_compiling:$ac_tool_warned in
6898 yes:)
6899 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6900 whose name does not start with the host triplet. If you think this
6901 configuration is useful to you, please write to autoconf@gnu.org." >&5
6902 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6903 whose name does not start with the host triplet. If you think this
6904 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6905 ac_tool_warned=yes ;;
6906 esac
6907 STRIP=$ac_ct_STRIP
6908 fi
6909 else
6910 STRIP="$ac_cv_prog_STRIP"
6911 fi
6912
6913
6914 old_CC="$CC"
6915 old_CFLAGS="$CFLAGS"
6916
6917 # Set sane defaults for various variables
6918 test -z "$AR" && AR=ar
6919 test -z "$AR_FLAGS" && AR_FLAGS=cru
6920 test -z "$AS" && AS=as
6921 test -z "$CC" && CC=cc
6922 test -z "$LTCC" && LTCC=$CC
6923 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6924 test -z "$DLLTOOL" && DLLTOOL=dlltool
6925 test -z "$LD" && LD=ld
6926 test -z "$LN_S" && LN_S="ln -s"
6927 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6928 test -z "$NM" && NM=nm
6929 test -z "$SED" && SED=sed
6930 test -z "$OBJDUMP" && OBJDUMP=objdump
6931 test -z "$RANLIB" && RANLIB=:
6932 test -z "$STRIP" && STRIP=:
6933 test -z "$ac_objext" && ac_objext=o
6934
6935 # Determine commands to create old-style static archives.
6936 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6937 old_postinstall_cmds='chmod 644 $oldlib'
6938 old_postuninstall_cmds=
6939
6940 if test -n "$RANLIB"; then
6941 case $host_os in
6942 openbsd*)
6943 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6944 ;;
6945 *)
6946 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6947 ;;
6948 esac
6949 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6950 fi
6951
6952 for cc_temp in $compiler""; do
6953 case $cc_temp in
6954 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6955 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6956 \-*) ;;
6957 *) break;;
6958 esac
6959 done
6960 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6961
6962
6963 # Only perform the check for file, if the check method requires it
6964 case $deplibs_check_method in
6965 file_magic*)
6966 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6967 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6968 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6969 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 else
6972 case $MAGIC_CMD in
6973 [\\/*] | ?:[\\/]*)
6974 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6975 ;;
6976 *)
6977 lt_save_MAGIC_CMD="$MAGIC_CMD"
6978 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6979 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6980 for ac_dir in $ac_dummy; do
6981 IFS="$lt_save_ifs"
6982 test -z "$ac_dir" && ac_dir=.
6983 if test -f $ac_dir/${ac_tool_prefix}file; then
6984 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6985 if test -n "$file_magic_test_file"; then
6986 case $deplibs_check_method in
6987 "file_magic "*)
6988 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6989 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6990 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6991 $EGREP "$file_magic_regex" > /dev/null; then
6992 :
6993 else
6994 cat <<EOF 1>&2
6995
6996 *** Warning: the command libtool uses to detect shared libraries,
6997 *** $file_magic_cmd, produces output that libtool cannot recognize.
6998 *** The result is that libtool may fail to recognize shared libraries
6999 *** as such. This will affect the creation of libtool libraries that
7000 *** depend on shared libraries, but programs linked with such libtool
7001 *** libraries will work regardless of this problem. Nevertheless, you
7002 *** may want to report the problem to your system manager and/or to
7003 *** bug-libtool@gnu.org
7004
7005 EOF
7006 fi ;;
7007 esac
7008 fi
7009 break
7010 fi
7011 done
7012 IFS="$lt_save_ifs"
7013 MAGIC_CMD="$lt_save_MAGIC_CMD"
7014 ;;
7015 esac
7016 fi
7017
7018 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7019 if test -n "$MAGIC_CMD"; then
7020 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7021 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7022 else
7023 { echo "$as_me:$LINENO: result: no" >&5
7024 echo "${ECHO_T}no" >&6; }
7025 fi
7026
7027 if test -z "$lt_cv_path_MAGIC_CMD"; then
7028 if test -n "$ac_tool_prefix"; then
7029 { echo "$as_me:$LINENO: checking for file" >&5
7030 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7031 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7033 else
7034 case $MAGIC_CMD in
7035 [\\/*] | ?:[\\/]*)
7036 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7037 ;;
7038 *)
7039 lt_save_MAGIC_CMD="$MAGIC_CMD"
7040 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7041 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7042 for ac_dir in $ac_dummy; do
7043 IFS="$lt_save_ifs"
7044 test -z "$ac_dir" && ac_dir=.
7045 if test -f $ac_dir/file; then
7046 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7047 if test -n "$file_magic_test_file"; then
7048 case $deplibs_check_method in
7049 "file_magic "*)
7050 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7051 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7053 $EGREP "$file_magic_regex" > /dev/null; then
7054 :
7055 else
7056 cat <<EOF 1>&2
7057
7058 *** Warning: the command libtool uses to detect shared libraries,
7059 *** $file_magic_cmd, produces output that libtool cannot recognize.
7060 *** The result is that libtool may fail to recognize shared libraries
7061 *** as such. This will affect the creation of libtool libraries that
7062 *** depend on shared libraries, but programs linked with such libtool
7063 *** libraries will work regardless of this problem. Nevertheless, you
7064 *** may want to report the problem to your system manager and/or to
7065 *** bug-libtool@gnu.org
7066
7067 EOF
7068 fi ;;
7069 esac
7070 fi
7071 break
7072 fi
7073 done
7074 IFS="$lt_save_ifs"
7075 MAGIC_CMD="$lt_save_MAGIC_CMD"
7076 ;;
7077 esac
7078 fi
7079
7080 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7081 if test -n "$MAGIC_CMD"; then
7082 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7083 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7084 else
7085 { echo "$as_me:$LINENO: result: no" >&5
7086 echo "${ECHO_T}no" >&6; }
7087 fi
7088
7089 else
7090 MAGIC_CMD=:
7091 fi
7092 fi
7093
7094 fi
7095 ;;
7096 esac
7097
7098 enable_dlopen=no
7099 enable_win32_dll=no
7100
7101 # Check whether --enable-libtool-lock was given.
7102 if test "${enable_libtool_lock+set}" = set; then
7103 enableval=$enable_libtool_lock;
7104 fi
7105
7106 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7107
7108
7109 # Check whether --with-pic was given.
7110 if test "${with_pic+set}" = set; then
7111 withval=$with_pic; pic_mode="$withval"
7112 else
7113 pic_mode=default
7114 fi
7115
7116 test -z "$pic_mode" && pic_mode=default
7117
7118 # Use C for the default configuration in the libtool script
7119 tagname=
7120 lt_save_CC="$CC"
7121 ac_ext=c
7122 ac_cpp='$CPP $CPPFLAGS'
7123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7126
7127
7128 # Source file extension for C test sources.
7129 ac_ext=c
7130
7131 # Object file extension for compiled C test sources.
7132 objext=o
7133 objext=$objext
7134
7135 # Code to be used in simple compile tests
7136 lt_simple_compile_test_code="int some_variable = 0;"
7137
7138 # Code to be used in simple link tests
7139 lt_simple_link_test_code='int main(){return(0);}'
7140
7141
7142 # If no C compiler was specified, use CC.
7143 LTCC=${LTCC-"$CC"}
7144
7145 # If no C compiler flags were specified, use CFLAGS.
7146 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7147
7148 # Allow CC to be a program name with arguments.
7149 compiler=$CC
7150
7151
7152 # save warnings/boilerplate of simple test code
7153 ac_outfile=conftest.$ac_objext
7154 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7155 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7156 _lt_compiler_boilerplate=`cat conftest.err`
7157 $rm conftest*
7158
7159 ac_outfile=conftest.$ac_objext
7160 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7161 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7162 _lt_linker_boilerplate=`cat conftest.err`
7163 $rm conftest*
7164
7165
7166
7167 lt_prog_compiler_no_builtin_flag=
7168
7169 if test "$GCC" = yes; then
7170 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7171
7172
7173 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7174 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7175 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178 lt_cv_prog_compiler_rtti_exceptions=no
7179 ac_outfile=conftest.$ac_objext
7180 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7181 lt_compiler_flag="-fno-rtti -fno-exceptions"
7182 # Insert the option either (1) after the last *FLAGS variable, or
7183 # (2) before a word containing "conftest.", or (3) at the end.
7184 # Note that $ac_compile itself does not contain backslashes and begins
7185 # with a dollar sign (not a hyphen), so the echo should work correctly.
7186 # The option is referenced via a variable to avoid confusing sed.
7187 lt_compile=`echo "$ac_compile" | $SED \
7188 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7189 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7190 -e 's:$: $lt_compiler_flag:'`
7191 (eval echo "\"\$as_me:7191: $lt_compile\"" >&5)
7192 (eval "$lt_compile" 2>conftest.err)
7193 ac_status=$?
7194 cat conftest.err >&5
7195 echo "$as_me:7195: \$? = $ac_status" >&5
7196 if (exit $ac_status) && test -s "$ac_outfile"; then
7197 # The compiler can only warn and ignore the option if not recognized
7198 # So say no if there are warnings other than the usual output.
7199 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7201 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7202 lt_cv_prog_compiler_rtti_exceptions=yes
7203 fi
7204 fi
7205 $rm conftest*
7206
7207 fi
7208 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7209 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7210
7211 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7212 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7213 else
7214 :
7215 fi
7216
7217 fi
7218
7219 lt_prog_compiler_wl=
7220 lt_prog_compiler_pic=
7221 lt_prog_compiler_static=
7222
7223 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7224 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7225
7226 if test "$GCC" = yes; then
7227 lt_prog_compiler_wl='-Wl,'
7228 lt_prog_compiler_static='-static'
7229
7230 case $host_os in
7231 aix*)
7232 # All AIX code is PIC.
7233 if test "$host_cpu" = ia64; then
7234 # AIX 5 now supports IA64 processor
7235 lt_prog_compiler_static='-Bstatic'
7236 fi
7237 ;;
7238
7239 amigaos*)
7240 # FIXME: we need at least 68020 code to build shared libraries, but
7241 # adding the `-m68020' flag to GCC prevents building anything better,
7242 # like `-m68040'.
7243 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7244 ;;
7245
7246 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7247 # PIC is the default for these OSes.
7248 ;;
7249
7250 mingw* | cygwin* | pw32* | os2*)
7251 # This hack is so that the source file can tell whether it is being
7252 # built for inclusion in a dll (and should export symbols for example).
7253 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7254 # (--disable-auto-import) libraries
7255 lt_prog_compiler_pic='-DDLL_EXPORT'
7256 ;;
7257
7258 darwin* | rhapsody*)
7259 # PIC is the default on this platform
7260 # Common symbols not allowed in MH_DYLIB files
7261 lt_prog_compiler_pic='-fno-common'
7262 ;;
7263
7264 interix[3-9]*)
7265 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7266 # Instead, we relocate shared libraries at runtime.
7267 ;;
7268
7269 msdosdjgpp*)
7270 # Just because we use GCC doesn't mean we suddenly get shared libraries
7271 # on systems that don't support them.
7272 lt_prog_compiler_can_build_shared=no
7273 enable_shared=no
7274 ;;
7275
7276 sysv4*MP*)
7277 if test -d /usr/nec; then
7278 lt_prog_compiler_pic=-Kconform_pic
7279 fi
7280 ;;
7281
7282 hpux*)
7283 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7284 # not for PA HP-UX.
7285 case $host_cpu in
7286 hppa*64*|ia64*)
7287 # +Z the default
7288 ;;
7289 *)
7290 lt_prog_compiler_pic='-fPIC'
7291 ;;
7292 esac
7293 ;;
7294
7295 *)
7296 lt_prog_compiler_pic='-fPIC'
7297 ;;
7298 esac
7299 else
7300 # PORTME Check for flag to pass linker flags through the system compiler.
7301 case $host_os in
7302 aix*)
7303 lt_prog_compiler_wl='-Wl,'
7304 if test "$host_cpu" = ia64; then
7305 # AIX 5 now supports IA64 processor
7306 lt_prog_compiler_static='-Bstatic'
7307 else
7308 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7309 fi
7310 ;;
7311 darwin*)
7312 # PIC is the default on this platform
7313 # Common symbols not allowed in MH_DYLIB files
7314 case $cc_basename in
7315 xlc*)
7316 lt_prog_compiler_pic='-qnocommon'
7317 lt_prog_compiler_wl='-Wl,'
7318 ;;
7319 esac
7320 ;;
7321
7322 mingw* | cygwin* | pw32* | os2*)
7323 # This hack is so that the source file can tell whether it is being
7324 # built for inclusion in a dll (and should export symbols for example).
7325 lt_prog_compiler_pic='-DDLL_EXPORT'
7326 ;;
7327
7328 hpux9* | hpux10* | hpux11*)
7329 lt_prog_compiler_wl='-Wl,'
7330 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7331 # not for PA HP-UX.
7332 case $host_cpu in
7333 hppa*64*|ia64*)
7334 # +Z the default
7335 ;;
7336 *)
7337 lt_prog_compiler_pic='+Z'
7338 ;;
7339 esac
7340 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7341 lt_prog_compiler_static='${wl}-a ${wl}archive'
7342 ;;
7343
7344 irix5* | irix6* | nonstopux*)
7345 lt_prog_compiler_wl='-Wl,'
7346 # PIC (with -KPIC) is the default.
7347 lt_prog_compiler_static='-non_shared'
7348 ;;
7349
7350 newsos6)
7351 lt_prog_compiler_pic='-KPIC'
7352 lt_prog_compiler_static='-Bstatic'
7353 ;;
7354
7355 linux* | k*bsd*-gnu)
7356 case $cc_basename in
7357 icc* | ecc*)
7358 lt_prog_compiler_wl='-Wl,'
7359 lt_prog_compiler_pic='-KPIC'
7360 lt_prog_compiler_static='-static'
7361 ;;
7362 pgcc* | pgf77* | pgf90* | pgf95*)
7363 # Portland Group compilers (*not* the Pentium gcc compiler,
7364 # which looks to be a dead project)
7365 lt_prog_compiler_wl='-Wl,'
7366 lt_prog_compiler_pic='-fpic'
7367 lt_prog_compiler_static='-Bstatic'
7368 ;;
7369 ccc*)
7370 lt_prog_compiler_wl='-Wl,'
7371 # All Alpha code is PIC.
7372 lt_prog_compiler_static='-non_shared'
7373 ;;
7374 *)
7375 case `$CC -V 2>&1 | sed 5q` in
7376 *Sun\ C*)
7377 # Sun C 5.9
7378 lt_prog_compiler_pic='-KPIC'
7379 lt_prog_compiler_static='-Bstatic'
7380 lt_prog_compiler_wl='-Wl,'
7381 ;;
7382 *Sun\ F*)
7383 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7384 lt_prog_compiler_pic='-KPIC'
7385 lt_prog_compiler_static='-Bstatic'
7386 lt_prog_compiler_wl=''
7387 ;;
7388 esac
7389 ;;
7390 esac
7391 ;;
7392
7393 osf3* | osf4* | osf5*)
7394 lt_prog_compiler_wl='-Wl,'
7395 # All OSF/1 code is PIC.
7396 lt_prog_compiler_static='-non_shared'
7397 ;;
7398
7399 rdos*)
7400 lt_prog_compiler_static='-non_shared'
7401 ;;
7402
7403 solaris*)
7404 lt_prog_compiler_pic='-KPIC'
7405 lt_prog_compiler_static='-Bstatic'
7406 case $cc_basename in
7407 f77* | f90* | f95*)
7408 lt_prog_compiler_wl='-Qoption ld ';;
7409 *)
7410 lt_prog_compiler_wl='-Wl,';;
7411 esac
7412 ;;
7413
7414 sunos4*)
7415 lt_prog_compiler_wl='-Qoption ld '
7416 lt_prog_compiler_pic='-PIC'
7417 lt_prog_compiler_static='-Bstatic'
7418 ;;
7419
7420 sysv4 | sysv4.2uw2* | sysv4.3*)
7421 lt_prog_compiler_wl='-Wl,'
7422 lt_prog_compiler_pic='-KPIC'
7423 lt_prog_compiler_static='-Bstatic'
7424 ;;
7425
7426 sysv4*MP*)
7427 if test -d /usr/nec ;then
7428 lt_prog_compiler_pic='-Kconform_pic'
7429 lt_prog_compiler_static='-Bstatic'
7430 fi
7431 ;;
7432
7433 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7434 lt_prog_compiler_wl='-Wl,'
7435 lt_prog_compiler_pic='-KPIC'
7436 lt_prog_compiler_static='-Bstatic'
7437 ;;
7438
7439 unicos*)
7440 lt_prog_compiler_wl='-Wl,'
7441 lt_prog_compiler_can_build_shared=no
7442 ;;
7443
7444 uts4*)
7445 lt_prog_compiler_pic='-pic'
7446 lt_prog_compiler_static='-Bstatic'
7447 ;;
7448
7449 *)
7450 lt_prog_compiler_can_build_shared=no
7451 ;;
7452 esac
7453 fi
7454
7455 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7456 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7457
7458 #
7459 # Check to make sure the PIC flag actually works.
7460 #
7461 if test -n "$lt_prog_compiler_pic"; then
7462
7463 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7464 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7465 if test "${lt_prog_compiler_pic_works+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468 lt_prog_compiler_pic_works=no
7469 ac_outfile=conftest.$ac_objext
7470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7471 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7472 # Insert the option either (1) after the last *FLAGS variable, or
7473 # (2) before a word containing "conftest.", or (3) at the end.
7474 # Note that $ac_compile itself does not contain backslashes and begins
7475 # with a dollar sign (not a hyphen), so the echo should work correctly.
7476 # The option is referenced via a variable to avoid confusing sed.
7477 lt_compile=`echo "$ac_compile" | $SED \
7478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7480 -e 's:$: $lt_compiler_flag:'`
7481 (eval echo "\"\$as_me:7481: $lt_compile\"" >&5)
7482 (eval "$lt_compile" 2>conftest.err)
7483 ac_status=$?
7484 cat conftest.err >&5
7485 echo "$as_me:7485: \$? = $ac_status" >&5
7486 if (exit $ac_status) && test -s "$ac_outfile"; then
7487 # The compiler can only warn and ignore the option if not recognized
7488 # So say no if there are warnings other than the usual output.
7489 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7490 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7491 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7492 lt_prog_compiler_pic_works=yes
7493 fi
7494 fi
7495 $rm conftest*
7496
7497 fi
7498 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7499 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7500
7501 if test x"$lt_prog_compiler_pic_works" = xyes; then
7502 case $lt_prog_compiler_pic in
7503 "" | " "*) ;;
7504 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7505 esac
7506 else
7507 lt_prog_compiler_pic=
7508 lt_prog_compiler_can_build_shared=no
7509 fi
7510
7511 fi
7512 case $host_os in
7513 # For platforms which do not support PIC, -DPIC is meaningless:
7514 *djgpp*)
7515 lt_prog_compiler_pic=
7516 ;;
7517 *)
7518 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7519 ;;
7520 esac
7521
7522 #
7523 # Check to make sure the static flag actually works.
7524 #
7525 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7526 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7527 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7528 if test "${lt_prog_compiler_static_works+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 else
7531 lt_prog_compiler_static_works=no
7532 save_LDFLAGS="$LDFLAGS"
7533 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7534 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7535 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7536 # The linker can only warn and ignore the option if not recognized
7537 # So say no if there are warnings
7538 if test -s conftest.err; then
7539 # Append any errors to the config.log.
7540 cat conftest.err 1>&5
7541 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7542 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7543 if diff conftest.exp conftest.er2 >/dev/null; then
7544 lt_prog_compiler_static_works=yes
7545 fi
7546 else
7547 lt_prog_compiler_static_works=yes
7548 fi
7549 fi
7550 $rm conftest*
7551 LDFLAGS="$save_LDFLAGS"
7552
7553 fi
7554 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7555 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7556
7557 if test x"$lt_prog_compiler_static_works" = xyes; then
7558 :
7559 else
7560 lt_prog_compiler_static=
7561 fi
7562
7563
7564 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7565 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7566 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7568 else
7569 lt_cv_prog_compiler_c_o=no
7570 $rm -r conftest 2>/dev/null
7571 mkdir conftest
7572 cd conftest
7573 mkdir out
7574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7575
7576 lt_compiler_flag="-o out/conftest2.$ac_objext"
7577 # Insert the option either (1) after the last *FLAGS variable, or
7578 # (2) before a word containing "conftest.", or (3) at the end.
7579 # Note that $ac_compile itself does not contain backslashes and begins
7580 # with a dollar sign (not a hyphen), so the echo should work correctly.
7581 lt_compile=`echo "$ac_compile" | $SED \
7582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7584 -e 's:$: $lt_compiler_flag:'`
7585 (eval echo "\"\$as_me:7585: $lt_compile\"" >&5)
7586 (eval "$lt_compile" 2>out/conftest.err)
7587 ac_status=$?
7588 cat out/conftest.err >&5
7589 echo "$as_me:7589: \$? = $ac_status" >&5
7590 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7591 then
7592 # The compiler can only warn and ignore the option if not recognized
7593 # So say no if there are warnings
7594 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7595 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7596 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7597 lt_cv_prog_compiler_c_o=yes
7598 fi
7599 fi
7600 chmod u+w . 2>&5
7601 $rm conftest*
7602 # SGI C++ compiler will create directory out/ii_files/ for
7603 # template instantiation
7604 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7605 $rm out/* && rmdir out
7606 cd ..
7607 rmdir conftest
7608 $rm conftest*
7609
7610 fi
7611 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7612 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7613
7614
7615 hard_links="nottested"
7616 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7617 # do not overwrite the value of need_locks provided by the user
7618 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7619 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7620 hard_links=yes
7621 $rm conftest*
7622 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7623 touch conftest.a
7624 ln conftest.a conftest.b 2>&5 || hard_links=no
7625 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7626 { echo "$as_me:$LINENO: result: $hard_links" >&5
7627 echo "${ECHO_T}$hard_links" >&6; }
7628 if test "$hard_links" = no; then
7629 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7630 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7631 need_locks=warn
7632 fi
7633 else
7634 need_locks=no
7635 fi
7636
7637 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7638 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7639
7640 runpath_var=
7641 allow_undefined_flag=
7642 enable_shared_with_static_runtimes=no
7643 archive_cmds=
7644 archive_expsym_cmds=
7645 old_archive_From_new_cmds=
7646 old_archive_from_expsyms_cmds=
7647 export_dynamic_flag_spec=
7648 whole_archive_flag_spec=
7649 thread_safe_flag_spec=
7650 hardcode_libdir_flag_spec=
7651 hardcode_libdir_flag_spec_ld=
7652 hardcode_libdir_separator=
7653 hardcode_direct=no
7654 hardcode_minus_L=no
7655 hardcode_shlibpath_var=unsupported
7656 link_all_deplibs=unknown
7657 hardcode_automatic=no
7658 module_cmds=
7659 module_expsym_cmds=
7660 always_export_symbols=no
7661 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7662 # include_expsyms should be a list of space-separated symbols to be *always*
7663 # included in the symbol list
7664 include_expsyms=
7665 # exclude_expsyms can be an extended regexp of symbols to exclude
7666 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7667 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7668 # as well as any symbol that contains `d'.
7669 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7670 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7671 # platforms (ab)use it in PIC code, but their linkers get confused if
7672 # the symbol is explicitly referenced. Since portable code cannot
7673 # rely on this symbol name, it's probably fine to never include it in
7674 # preloaded symbol tables.
7675 extract_expsyms_cmds=
7676 # Just being paranoid about ensuring that cc_basename is set.
7677 for cc_temp in $compiler""; do
7678 case $cc_temp in
7679 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7680 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7681 \-*) ;;
7682 *) break;;
7683 esac
7684 done
7685 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7686
7687 case $host_os in
7688 cygwin* | mingw* | pw32*)
7689 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7690 # When not using gcc, we currently assume that we are using
7691 # Microsoft Visual C++.
7692 if test "$GCC" != yes; then
7693 with_gnu_ld=no
7694 fi
7695 ;;
7696 interix*)
7697 # we just hope/assume this is gcc and not c89 (= MSVC++)
7698 with_gnu_ld=yes
7699 ;;
7700 openbsd*)
7701 with_gnu_ld=no
7702 ;;
7703 esac
7704
7705 ld_shlibs=yes
7706 if test "$with_gnu_ld" = yes; then
7707 # If archive_cmds runs LD, not CC, wlarc should be empty
7708 wlarc='${wl}'
7709
7710 # Set some defaults for GNU ld with shared library support. These
7711 # are reset later if shared libraries are not supported. Putting them
7712 # here allows them to be overridden if necessary.
7713 runpath_var=LD_RUN_PATH
7714 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7715 export_dynamic_flag_spec='${wl}--export-dynamic'
7716 # ancient GNU ld didn't support --whole-archive et. al.
7717 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7718 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7719 else
7720 whole_archive_flag_spec=
7721 fi
7722 supports_anon_versioning=no
7723 case `$LD -v 2>/dev/null` in
7724 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7725 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7726 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7727 *\ 2.11.*) ;; # other 2.11 versions
7728 *) supports_anon_versioning=yes ;;
7729 esac
7730
7731 # See if GNU ld supports shared libraries.
7732 case $host_os in
7733 aix3* | aix4* | aix5*)
7734 # On AIX/PPC, the GNU linker is very broken
7735 if test "$host_cpu" != ia64; then
7736 ld_shlibs=no
7737 cat <<EOF 1>&2
7738
7739 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7740 *** to be unable to reliably create shared libraries on AIX.
7741 *** Therefore, libtool is disabling shared libraries support. If you
7742 *** really care for shared libraries, you may want to modify your PATH
7743 *** so that a non-GNU linker is found, and then restart.
7744
7745 EOF
7746 fi
7747 ;;
7748
7749 amigaos*)
7750 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)'
7751 hardcode_libdir_flag_spec='-L$libdir'
7752 hardcode_minus_L=yes
7753
7754 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7755 # that the semantics of dynamic libraries on AmigaOS, at least up
7756 # to version 4, is to share data among multiple programs linked
7757 # with the same dynamic library. Since this doesn't match the
7758 # behavior of shared libraries on other platforms, we can't use
7759 # them.
7760 ld_shlibs=no
7761 ;;
7762
7763 beos*)
7764 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7765 allow_undefined_flag=unsupported
7766 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7767 # support --undefined. This deserves some investigation. FIXME
7768 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7769 else
7770 ld_shlibs=no
7771 fi
7772 ;;
7773
7774 cygwin* | mingw* | pw32*)
7775 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7776 # as there is no search path for DLLs.
7777 hardcode_libdir_flag_spec='-L$libdir'
7778 allow_undefined_flag=unsupported
7779 always_export_symbols=no
7780 enable_shared_with_static_runtimes=yes
7781 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7782
7783 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7785 # If the export-symbols file already is a .def file (1st line
7786 # is EXPORTS), use it as is; otherwise, prepend...
7787 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7788 cp $export_symbols $output_objdir/$soname.def;
7789 else
7790 echo EXPORTS > $output_objdir/$soname.def;
7791 cat $export_symbols >> $output_objdir/$soname.def;
7792 fi~
7793 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7794 else
7795 ld_shlibs=no
7796 fi
7797 ;;
7798
7799 interix[3-9]*)
7800 hardcode_direct=no
7801 hardcode_shlibpath_var=no
7802 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7803 export_dynamic_flag_spec='${wl}-E'
7804 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7805 # Instead, shared libraries are loaded at an image base (0x10000000 by
7806 # default) and relocated if they conflict, which is a slow very memory
7807 # consuming and fragmenting process. To avoid this, we pick a random,
7808 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7809 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7810 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7811 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'
7812 ;;
7813
7814 gnu* | linux* | k*bsd*-gnu)
7815 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7816 tmp_addflag=
7817 case $cc_basename,$host_cpu in
7818 pgcc*) # Portland Group C compiler
7819 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'
7820 tmp_addflag=' $pic_flag'
7821 ;;
7822 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7823 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'
7824 tmp_addflag=' $pic_flag -Mnomain' ;;
7825 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7826 tmp_addflag=' -i_dynamic' ;;
7827 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7828 tmp_addflag=' -i_dynamic -nofor_main' ;;
7829 ifc* | ifort*) # Intel Fortran compiler
7830 tmp_addflag=' -nofor_main' ;;
7831 esac
7832 case `$CC -V 2>&1 | sed 5q` in
7833 *Sun\ C*) # Sun C 5.9
7834 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'
7835 tmp_sharedflag='-G' ;;
7836 *Sun\ F*) # Sun Fortran 8.3
7837 tmp_sharedflag='-G' ;;
7838 *)
7839 tmp_sharedflag='-shared' ;;
7840 esac
7841 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7842
7843 if test $supports_anon_versioning = yes; then
7844 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7845 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7846 $echo "local: *; };" >> $output_objdir/$libname.ver~
7847 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7848 fi
7849 else
7850 ld_shlibs=no
7851 fi
7852 ;;
7853
7854 netbsd*)
7855 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7856 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7857 wlarc=
7858 else
7859 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7860 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7861 fi
7862 ;;
7863
7864 solaris*)
7865 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7866 ld_shlibs=no
7867 cat <<EOF 1>&2
7868
7869 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7870 *** create shared libraries on Solaris systems. Therefore, libtool
7871 *** is disabling shared libraries support. We urge you to upgrade GNU
7872 *** binutils to release 2.9.1 or newer. Another option is to modify
7873 *** your PATH or compiler configuration so that the native linker is
7874 *** used, and then restart.
7875
7876 EOF
7877 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7878 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7879 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7880 else
7881 ld_shlibs=no
7882 fi
7883 ;;
7884
7885 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7886 case `$LD -v 2>&1` in
7887 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7888 ld_shlibs=no
7889 cat <<_LT_EOF 1>&2
7890
7891 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7892 *** reliably create shared libraries on SCO systems. Therefore, libtool
7893 *** is disabling shared libraries support. We urge you to upgrade GNU
7894 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7895 *** your PATH or compiler configuration so that the native linker is
7896 *** used, and then restart.
7897
7898 _LT_EOF
7899 ;;
7900 *)
7901 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7902 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7903 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7904 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7905 else
7906 ld_shlibs=no
7907 fi
7908 ;;
7909 esac
7910 ;;
7911
7912 sunos4*)
7913 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7914 wlarc=
7915 hardcode_direct=yes
7916 hardcode_shlibpath_var=no
7917 ;;
7918
7919 *)
7920 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7921 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7922 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7923 else
7924 ld_shlibs=no
7925 fi
7926 ;;
7927 esac
7928
7929 if test "$ld_shlibs" = no; then
7930 runpath_var=
7931 hardcode_libdir_flag_spec=
7932 export_dynamic_flag_spec=
7933 whole_archive_flag_spec=
7934 fi
7935 else
7936 # PORTME fill in a description of your system's linker (not GNU ld)
7937 case $host_os in
7938 aix3*)
7939 allow_undefined_flag=unsupported
7940 always_export_symbols=yes
7941 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'
7942 # Note: this linker hardcodes the directories in LIBPATH if there
7943 # are no directories specified by -L.
7944 hardcode_minus_L=yes
7945 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7946 # Neither direct hardcoding nor static linking is supported with a
7947 # broken collect2.
7948 hardcode_direct=unsupported
7949 fi
7950 ;;
7951
7952 aix4* | aix5*)
7953 if test "$host_cpu" = ia64; then
7954 # On IA64, the linker does run time linking by default, so we don't
7955 # have to do anything special.
7956 aix_use_runtimelinking=no
7957 exp_sym_flag='-Bexport'
7958 no_entry_flag=""
7959 else
7960 # If we're using GNU nm, then we don't want the "-C" option.
7961 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7962 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7963 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'
7964 else
7965 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'
7966 fi
7967 aix_use_runtimelinking=no
7968
7969 # Test if we are trying to use run time linking or normal
7970 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7971 # need to do runtime linking.
7972 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7973 for ld_flag in $LDFLAGS; do
7974 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7975 aix_use_runtimelinking=yes
7976 break
7977 fi
7978 done
7979 ;;
7980 esac
7981
7982 exp_sym_flag='-bexport'
7983 no_entry_flag='-bnoentry'
7984 fi
7985
7986 # When large executables or shared objects are built, AIX ld can
7987 # have problems creating the table of contents. If linking a library
7988 # or program results in "error TOC overflow" add -mminimal-toc to
7989 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7990 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7991
7992 archive_cmds=''
7993 hardcode_direct=yes
7994 hardcode_libdir_separator=':'
7995 link_all_deplibs=yes
7996
7997 if test "$GCC" = yes; then
7998 case $host_os in aix4.[012]|aix4.[012].*)
7999 # We only want to do this on AIX 4.2 and lower, the check
8000 # below for broken collect2 doesn't work under 4.3+
8001 collect2name=`${CC} -print-prog-name=collect2`
8002 if test -f "$collect2name" && \
8003 strings "$collect2name" | grep resolve_lib_name >/dev/null
8004 then
8005 # We have reworked collect2
8006 :
8007 else
8008 # We have old collect2
8009 hardcode_direct=unsupported
8010 # It fails to find uninstalled libraries when the uninstalled
8011 # path is not listed in the libpath. Setting hardcode_minus_L
8012 # to unsupported forces relinking
8013 hardcode_minus_L=yes
8014 hardcode_libdir_flag_spec='-L$libdir'
8015 hardcode_libdir_separator=
8016 fi
8017 ;;
8018 esac
8019 shared_flag='-shared'
8020 if test "$aix_use_runtimelinking" = yes; then
8021 shared_flag="$shared_flag "'${wl}-G'
8022 fi
8023 else
8024 # not using gcc
8025 if test "$host_cpu" = ia64; then
8026 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8027 # chokes on -Wl,-G. The following line is correct:
8028 shared_flag='-G'
8029 else
8030 if test "$aix_use_runtimelinking" = yes; then
8031 shared_flag='${wl}-G'
8032 else
8033 shared_flag='${wl}-bM:SRE'
8034 fi
8035 fi
8036 fi
8037
8038 # It seems that -bexpall does not export symbols beginning with
8039 # underscore (_), so it is better to generate a list of symbols to export.
8040 always_export_symbols=yes
8041 if test "$aix_use_runtimelinking" = yes; then
8042 # Warning - without using the other runtime loading flags (-brtl),
8043 # -berok will link without error, but may produce a broken library.
8044 allow_undefined_flag='-berok'
8045 # Determine the default libpath from the value encoded in an empty executable.
8046 cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h. */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8052
8053 int
8054 main ()
8055 {
8056
8057 ;
8058 return 0;
8059 }
8060 _ACEOF
8061 rm -f conftest.$ac_objext conftest$ac_exeext
8062 if { (ac_try="$ac_link"
8063 case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8066 esac
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_link") 2>conftest.er1
8069 ac_status=$?
8070 grep -v '^ *+' conftest.er1 >conftest.err
8071 rm -f conftest.er1
8072 cat conftest.err >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } && {
8075 test -z "$ac_c_werror_flag" ||
8076 test ! -s conftest.err
8077 } && test -s conftest$ac_exeext &&
8078 $as_test_x conftest$ac_exeext; then
8079
8080 lt_aix_libpath_sed='
8081 /Import File Strings/,/^$/ {
8082 /^0/ {
8083 s/^0 *\(.*\)$/\1/
8084 p
8085 }
8086 }'
8087 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8088 # Check for a 64-bit object if we didn't find anything.
8089 if test -z "$aix_libpath"; then
8090 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8091 fi
8092 else
8093 echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8095
8096
8097 fi
8098
8099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8100 conftest$ac_exeext conftest.$ac_ext
8101 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8102
8103 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8104 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"
8105 else
8106 if test "$host_cpu" = ia64; then
8107 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8108 allow_undefined_flag="-z nodefs"
8109 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"
8110 else
8111 # Determine the default libpath from the value encoded in an empty executable.
8112 cat >conftest.$ac_ext <<_ACEOF
8113 /* confdefs.h. */
8114 _ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h. */
8118
8119 int
8120 main ()
8121 {
8122
8123 ;
8124 return 0;
8125 }
8126 _ACEOF
8127 rm -f conftest.$ac_objext conftest$ac_exeext
8128 if { (ac_try="$ac_link"
8129 case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8132 esac
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_link") 2>conftest.er1
8135 ac_status=$?
8136 grep -v '^ *+' conftest.er1 >conftest.err
8137 rm -f conftest.er1
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } && {
8141 test -z "$ac_c_werror_flag" ||
8142 test ! -s conftest.err
8143 } && test -s conftest$ac_exeext &&
8144 $as_test_x conftest$ac_exeext; then
8145
8146 lt_aix_libpath_sed='
8147 /Import File Strings/,/^$/ {
8148 /^0/ {
8149 s/^0 *\(.*\)$/\1/
8150 p
8151 }
8152 }'
8153 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8154 # Check for a 64-bit object if we didn't find anything.
8155 if test -z "$aix_libpath"; then
8156 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8157 fi
8158 else
8159 echo "$as_me: failed program was:" >&5
8160 sed 's/^/| /' conftest.$ac_ext >&5
8161
8162
8163 fi
8164
8165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8166 conftest$ac_exeext conftest.$ac_ext
8167 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8168
8169 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8170 # Warning - without using the other run time loading flags,
8171 # -berok will link without error, but may produce a broken library.
8172 no_undefined_flag=' ${wl}-bernotok'
8173 allow_undefined_flag=' ${wl}-berok'
8174 # Exported symbols can be pulled into shared objects from archives
8175 whole_archive_flag_spec='$convenience'
8176 archive_cmds_need_lc=yes
8177 # This is similar to how AIX traditionally builds its shared libraries.
8178 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'
8179 fi
8180 fi
8181 ;;
8182
8183 amigaos*)
8184 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)'
8185 hardcode_libdir_flag_spec='-L$libdir'
8186 hardcode_minus_L=yes
8187 # see comment about different semantics on the GNU ld section
8188 ld_shlibs=no
8189 ;;
8190
8191 bsdi[45]*)
8192 export_dynamic_flag_spec=-rdynamic
8193 ;;
8194
8195 cygwin* | mingw* | pw32*)
8196 # When not using gcc, we currently assume that we are using
8197 # Microsoft Visual C++.
8198 # hardcode_libdir_flag_spec is actually meaningless, as there is
8199 # no search path for DLLs.
8200 hardcode_libdir_flag_spec=' '
8201 allow_undefined_flag=unsupported
8202 # Tell ltmain to make .lib files, not .a files.
8203 libext=lib
8204 # Tell ltmain to make .dll files, not .so files.
8205 shrext_cmds=".dll"
8206 # FIXME: Setting linknames here is a bad hack.
8207 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8208 # The linker will automatically build a .lib file if we build a DLL.
8209 old_archive_From_new_cmds='true'
8210 # FIXME: Should let the user specify the lib program.
8211 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8212 fix_srcfile_path='`cygpath -w "$srcfile"`'
8213 enable_shared_with_static_runtimes=yes
8214 ;;
8215
8216 darwin* | rhapsody*)
8217 case $host_os in
8218 rhapsody* | darwin1.[012])
8219 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8220 ;;
8221 *) # Darwin 1.3 on
8222 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8223 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8224 else
8225 case ${MACOSX_DEPLOYMENT_TARGET} in
8226 10.[012])
8227 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8228 ;;
8229 10.*)
8230 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8231 ;;
8232 esac
8233 fi
8234 ;;
8235 esac
8236 archive_cmds_need_lc=no
8237 hardcode_direct=no
8238 hardcode_automatic=yes
8239 hardcode_shlibpath_var=unsupported
8240 whole_archive_flag_spec=''
8241 link_all_deplibs=yes
8242 if test "$GCC" = yes ; then
8243 output_verbose_link_cmd='echo'
8244 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8245 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8246 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8247 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8248 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}'
8249 else
8250 case $cc_basename in
8251 xlc*)
8252 output_verbose_link_cmd='echo'
8253 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8254 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8255 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8256 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}'
8257 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}'
8258 ;;
8259 *)
8260 ld_shlibs=no
8261 ;;
8262 esac
8263 fi
8264 ;;
8265
8266 dgux*)
8267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8268 hardcode_libdir_flag_spec='-L$libdir'
8269 hardcode_shlibpath_var=no
8270 ;;
8271
8272 freebsd1*)
8273 ld_shlibs=no
8274 ;;
8275
8276 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8277 # support. Future versions do this automatically, but an explicit c++rt0.o
8278 # does not break anything, and helps significantly (at the cost of a little
8279 # extra space).
8280 freebsd2.2*)
8281 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8282 hardcode_libdir_flag_spec='-R$libdir'
8283 hardcode_direct=yes
8284 hardcode_shlibpath_var=no
8285 ;;
8286
8287 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8288 freebsd2*)
8289 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8290 hardcode_direct=yes
8291 hardcode_minus_L=yes
8292 hardcode_shlibpath_var=no
8293 ;;
8294
8295 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8296 freebsd* | dragonfly*)
8297 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8298 hardcode_libdir_flag_spec='-R$libdir'
8299 hardcode_direct=yes
8300 hardcode_shlibpath_var=no
8301 ;;
8302
8303 hpux9*)
8304 if test "$GCC" = yes; then
8305 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'
8306 else
8307 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'
8308 fi
8309 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8310 hardcode_libdir_separator=:
8311 hardcode_direct=yes
8312
8313 # hardcode_minus_L: Not really in the search PATH,
8314 # but as the default location of the library.
8315 hardcode_minus_L=yes
8316 export_dynamic_flag_spec='${wl}-E'
8317 ;;
8318
8319 hpux10*)
8320 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8321 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8322 else
8323 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8324 fi
8325 if test "$with_gnu_ld" = no; then
8326 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8327 hardcode_libdir_separator=:
8328
8329 hardcode_direct=yes
8330 export_dynamic_flag_spec='${wl}-E'
8331
8332 # hardcode_minus_L: Not really in the search PATH,
8333 # but as the default location of the library.
8334 hardcode_minus_L=yes
8335 fi
8336 ;;
8337
8338 hpux11*)
8339 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8340 case $host_cpu in
8341 hppa*64*)
8342 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8343 ;;
8344 ia64*)
8345 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8346 ;;
8347 *)
8348 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8349 ;;
8350 esac
8351 else
8352 case $host_cpu in
8353 hppa*64*)
8354 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8355 ;;
8356 ia64*)
8357 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8358 ;;
8359 *)
8360 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8361 ;;
8362 esac
8363 fi
8364 if test "$with_gnu_ld" = no; then
8365 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8366 hardcode_libdir_separator=:
8367
8368 case $host_cpu in
8369 hppa*64*|ia64*)
8370 hardcode_libdir_flag_spec_ld='+b $libdir'
8371 hardcode_direct=no
8372 hardcode_shlibpath_var=no
8373 ;;
8374 *)
8375 hardcode_direct=yes
8376 export_dynamic_flag_spec='${wl}-E'
8377
8378 # hardcode_minus_L: Not really in the search PATH,
8379 # but as the default location of the library.
8380 hardcode_minus_L=yes
8381 ;;
8382 esac
8383 fi
8384 ;;
8385
8386 irix5* | irix6* | nonstopux*)
8387 if test "$GCC" = yes; then
8388 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'
8389 else
8390 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'
8391 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8392 fi
8393 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8394 hardcode_libdir_separator=:
8395 link_all_deplibs=yes
8396 ;;
8397
8398 netbsd*)
8399 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8400 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8401 else
8402 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8403 fi
8404 hardcode_libdir_flag_spec='-R$libdir'
8405 hardcode_direct=yes
8406 hardcode_shlibpath_var=no
8407 ;;
8408
8409 newsos6)
8410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8411 hardcode_direct=yes
8412 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8413 hardcode_libdir_separator=:
8414 hardcode_shlibpath_var=no
8415 ;;
8416
8417 openbsd*)
8418 if test -f /usr/libexec/ld.so; then
8419 hardcode_direct=yes
8420 hardcode_shlibpath_var=no
8421 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8422 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8423 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8424 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8425 export_dynamic_flag_spec='${wl}-E'
8426 else
8427 case $host_os in
8428 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8429 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8430 hardcode_libdir_flag_spec='-R$libdir'
8431 ;;
8432 *)
8433 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8434 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8435 ;;
8436 esac
8437 fi
8438 else
8439 ld_shlibs=no
8440 fi
8441 ;;
8442
8443 os2*)
8444 hardcode_libdir_flag_spec='-L$libdir'
8445 hardcode_minus_L=yes
8446 allow_undefined_flag=unsupported
8447 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'
8448 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8449 ;;
8450
8451 osf3*)
8452 if test "$GCC" = yes; then
8453 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8454 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'
8455 else
8456 allow_undefined_flag=' -expect_unresolved \*'
8457 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'
8458 fi
8459 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8460 hardcode_libdir_separator=:
8461 ;;
8462
8463 osf4* | osf5*) # as osf3* with the addition of -msym flag
8464 if test "$GCC" = yes; then
8465 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8466 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'
8467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8468 else
8469 allow_undefined_flag=' -expect_unresolved \*'
8470 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'
8471 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8472 $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'
8473
8474 # Both c and cxx compiler support -rpath directly
8475 hardcode_libdir_flag_spec='-rpath $libdir'
8476 fi
8477 hardcode_libdir_separator=:
8478 ;;
8479
8480 solaris*)
8481 no_undefined_flag=' -z text'
8482 if test "$GCC" = yes; then
8483 wlarc='${wl}'
8484 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8485 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8486 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8487 else
8488 wlarc=''
8489 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8490 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8491 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8492 fi
8493 hardcode_libdir_flag_spec='-R$libdir'
8494 hardcode_shlibpath_var=no
8495 case $host_os in
8496 solaris2.[0-5] | solaris2.[0-5].*) ;;
8497 *)
8498 # The compiler driver will combine and reorder linker options,
8499 # but understands `-z linker_flag'. GCC discards it without `$wl',
8500 # but is careful enough not to reorder.
8501 # Supported since Solaris 2.6 (maybe 2.5.1?)
8502 if test "$GCC" = yes; then
8503 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8504 else
8505 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8506 fi
8507 ;;
8508 esac
8509 link_all_deplibs=yes
8510 ;;
8511
8512 sunos4*)
8513 if test "x$host_vendor" = xsequent; then
8514 # Use $CC to link under sequent, because it throws in some extra .o
8515 # files that make .init and .fini sections work.
8516 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8517 else
8518 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8519 fi
8520 hardcode_libdir_flag_spec='-L$libdir'
8521 hardcode_direct=yes
8522 hardcode_minus_L=yes
8523 hardcode_shlibpath_var=no
8524 ;;
8525
8526 sysv4)
8527 case $host_vendor in
8528 sni)
8529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8530 hardcode_direct=yes # is this really true???
8531 ;;
8532 siemens)
8533 ## LD is ld it makes a PLAMLIB
8534 ## CC just makes a GrossModule.
8535 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8536 reload_cmds='$CC -r -o $output$reload_objs'
8537 hardcode_direct=no
8538 ;;
8539 motorola)
8540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8541 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8542 ;;
8543 esac
8544 runpath_var='LD_RUN_PATH'
8545 hardcode_shlibpath_var=no
8546 ;;
8547
8548 sysv4.3*)
8549 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8550 hardcode_shlibpath_var=no
8551 export_dynamic_flag_spec='-Bexport'
8552 ;;
8553
8554 sysv4*MP*)
8555 if test -d /usr/nec; then
8556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8557 hardcode_shlibpath_var=no
8558 runpath_var=LD_RUN_PATH
8559 hardcode_runpath_var=yes
8560 ld_shlibs=yes
8561 fi
8562 ;;
8563
8564 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8565 no_undefined_flag='${wl}-z,text'
8566 archive_cmds_need_lc=no
8567 hardcode_shlibpath_var=no
8568 runpath_var='LD_RUN_PATH'
8569
8570 if test "$GCC" = yes; then
8571 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8572 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8573 else
8574 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8575 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8576 fi
8577 ;;
8578
8579 sysv5* | sco3.2v5* | sco5v6*)
8580 # Note: We can NOT use -z defs as we might desire, because we do not
8581 # link with -lc, and that would cause any symbols used from libc to
8582 # always be unresolved, which means just about no library would
8583 # ever link correctly. If we're not using GNU ld we use -z text
8584 # though, which does catch some bad symbols but isn't as heavy-handed
8585 # as -z defs.
8586 no_undefined_flag='${wl}-z,text'
8587 allow_undefined_flag='${wl}-z,nodefs'
8588 archive_cmds_need_lc=no
8589 hardcode_shlibpath_var=no
8590 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8591 hardcode_libdir_separator=':'
8592 link_all_deplibs=yes
8593 export_dynamic_flag_spec='${wl}-Bexport'
8594 runpath_var='LD_RUN_PATH'
8595
8596 if test "$GCC" = yes; then
8597 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8598 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8599 else
8600 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8601 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8602 fi
8603 ;;
8604
8605 uts4*)
8606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8607 hardcode_libdir_flag_spec='-L$libdir'
8608 hardcode_shlibpath_var=no
8609 ;;
8610
8611 *)
8612 ld_shlibs=no
8613 ;;
8614 esac
8615 fi
8616
8617 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8618 echo "${ECHO_T}$ld_shlibs" >&6; }
8619 test "$ld_shlibs" = no && can_build_shared=no
8620
8621 #
8622 # Do we need to explicitly link libc?
8623 #
8624 case "x$archive_cmds_need_lc" in
8625 x|xyes)
8626 # Assume -lc should be added
8627 archive_cmds_need_lc=yes
8628
8629 if test "$enable_shared" = yes && test "$GCC" = yes; then
8630 case $archive_cmds in
8631 *'~'*)
8632 # FIXME: we may have to deal with multi-command sequences.
8633 ;;
8634 '$CC '*)
8635 # Test whether the compiler implicitly links with -lc since on some
8636 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8637 # to ld, don't add -lc before -lgcc.
8638 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8639 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8640 $rm conftest*
8641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8642
8643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8644 (eval $ac_compile) 2>&5
8645 ac_status=$?
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } 2>conftest.err; then
8648 soname=conftest
8649 lib=conftest
8650 libobjs=conftest.$ac_objext
8651 deplibs=
8652 wl=$lt_prog_compiler_wl
8653 pic_flag=$lt_prog_compiler_pic
8654 compiler_flags=-v
8655 linker_flags=-v
8656 verstring=
8657 output_objdir=.
8658 libname=conftest
8659 lt_save_allow_undefined_flag=$allow_undefined_flag
8660 allow_undefined_flag=
8661 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8662 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8663 ac_status=$?
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }
8666 then
8667 archive_cmds_need_lc=no
8668 else
8669 archive_cmds_need_lc=yes
8670 fi
8671 allow_undefined_flag=$lt_save_allow_undefined_flag
8672 else
8673 cat conftest.err 1>&5
8674 fi
8675 $rm conftest*
8676 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8677 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8678 ;;
8679 esac
8680 fi
8681 ;;
8682 esac
8683
8684 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8685 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8686 library_names_spec=
8687 libname_spec='lib$name'
8688 soname_spec=
8689 shrext_cmds=".so"
8690 postinstall_cmds=
8691 postuninstall_cmds=
8692 finish_cmds=
8693 finish_eval=
8694 shlibpath_var=
8695 shlibpath_overrides_runpath=unknown
8696 version_type=none
8697 dynamic_linker="$host_os ld.so"
8698 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8699
8700 if test "$GCC" = yes; then
8701 case $host_os in
8702 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8703 *) lt_awk_arg="/^libraries:/" ;;
8704 esac
8705 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8706 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8707 # if the path contains ";" then we assume it to be the separator
8708 # otherwise default to the standard path separator (i.e. ":") - it is
8709 # assumed that no part of a normal pathname contains ";" but that should
8710 # okay in the real world where ";" in dirpaths is itself problematic.
8711 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8712 else
8713 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8714 fi
8715 # Ok, now we have the path, separated by spaces, we can step through it
8716 # and add multilib dir if necessary.
8717 lt_tmp_lt_search_path_spec=
8718 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8719 for lt_sys_path in $lt_search_path_spec; do
8720 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8721 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8722 else
8723 test -d "$lt_sys_path" && \
8724 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8725 fi
8726 done
8727 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8728 BEGIN {RS=" "; FS="/|\n";} {
8729 lt_foo="";
8730 lt_count=0;
8731 for (lt_i = NF; lt_i > 0; lt_i--) {
8732 if ($lt_i != "" && $lt_i != ".") {
8733 if ($lt_i == "..") {
8734 lt_count++;
8735 } else {
8736 if (lt_count == 0) {
8737 lt_foo="/" $lt_i lt_foo;
8738 } else {
8739 lt_count--;
8740 }
8741 }
8742 }
8743 }
8744 if (lt_foo != "") { lt_freq[lt_foo]++; }
8745 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8746 }'`
8747 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8748 else
8749 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8750 fi
8751 need_lib_prefix=unknown
8752 hardcode_into_libs=no
8753
8754 # when you set need_version to no, make sure it does not cause -set_version
8755 # flags to be left without arguments
8756 need_version=unknown
8757
8758 case $host_os in
8759 aix3*)
8760 version_type=linux
8761 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8762 shlibpath_var=LIBPATH
8763
8764 # AIX 3 has no versioning support, so we append a major version to the name.
8765 soname_spec='${libname}${release}${shared_ext}$major'
8766 ;;
8767
8768 aix4* | aix5*)
8769 version_type=linux
8770 need_lib_prefix=no
8771 need_version=no
8772 hardcode_into_libs=yes
8773 if test "$host_cpu" = ia64; then
8774 # AIX 5 supports IA64
8775 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8776 shlibpath_var=LD_LIBRARY_PATH
8777 else
8778 # With GCC up to 2.95.x, collect2 would create an import file
8779 # for dependence libraries. The import file would start with
8780 # the line `#! .'. This would cause the generated library to
8781 # depend on `.', always an invalid library. This was fixed in
8782 # development snapshots of GCC prior to 3.0.
8783 case $host_os in
8784 aix4 | aix4.[01] | aix4.[01].*)
8785 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8786 echo ' yes '
8787 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8788 :
8789 else
8790 can_build_shared=no
8791 fi
8792 ;;
8793 esac
8794 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8795 # soname into executable. Probably we can add versioning support to
8796 # collect2, so additional links can be useful in future.
8797 if test "$aix_use_runtimelinking" = yes; then
8798 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8799 # instead of lib<name>.a to let people know that these are not
8800 # typical AIX shared libraries.
8801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8802 else
8803 # We preserve .a as extension for shared libraries through AIX4.2
8804 # and later when we are not doing run time linking.
8805 library_names_spec='${libname}${release}.a $libname.a'
8806 soname_spec='${libname}${release}${shared_ext}$major'
8807 fi
8808 shlibpath_var=LIBPATH
8809 fi
8810 ;;
8811
8812 amigaos*)
8813 library_names_spec='$libname.ixlibrary $libname.a'
8814 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8815 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'
8816 ;;
8817
8818 beos*)
8819 library_names_spec='${libname}${shared_ext}'
8820 dynamic_linker="$host_os ld.so"
8821 shlibpath_var=LIBRARY_PATH
8822 ;;
8823
8824 bsdi[45]*)
8825 version_type=linux
8826 need_version=no
8827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8828 soname_spec='${libname}${release}${shared_ext}$major'
8829 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8830 shlibpath_var=LD_LIBRARY_PATH
8831 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8832 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8833 # the default ld.so.conf also contains /usr/contrib/lib and
8834 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8835 # libtool to hard-code these into programs
8836 ;;
8837
8838 cygwin* | mingw* | pw32*)
8839 version_type=windows
8840 shrext_cmds=".dll"
8841 need_version=no
8842 need_lib_prefix=no
8843
8844 case $GCC,$host_os in
8845 yes,cygwin* | yes,mingw* | yes,pw32*)
8846 library_names_spec='$libname.dll.a'
8847 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8848 postinstall_cmds='base_file=`basename \${file}`~
8849 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8850 dldir=$destdir/`dirname \$dlpath`~
8851 test -d \$dldir || mkdir -p \$dldir~
8852 $install_prog $dir/$dlname \$dldir/$dlname~
8853 chmod a+x \$dldir/$dlname'
8854 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8855 dlpath=$dir/\$dldll~
8856 $rm \$dlpath'
8857 shlibpath_overrides_runpath=yes
8858
8859 case $host_os in
8860 cygwin*)
8861 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8862 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8863 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8864 ;;
8865 mingw*)
8866 # MinGW DLLs use traditional 'lib' prefix
8867 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8868 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8869 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8870 # It is most probably a Windows format PATH printed by
8871 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8872 # path with ; separators, and with drive letters. We can handle the
8873 # drive letters (cygwin fileutils understands them), so leave them,
8874 # especially as we might pass files found there to a mingw objdump,
8875 # which wouldn't understand a cygwinified path. Ahh.
8876 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8877 else
8878 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8879 fi
8880 ;;
8881 pw32*)
8882 # pw32 DLLs use 'pw' prefix rather than 'lib'
8883 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8884 ;;
8885 esac
8886 ;;
8887
8888 *)
8889 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8890 ;;
8891 esac
8892 dynamic_linker='Win32 ld.exe'
8893 # FIXME: first we should search . and the directory the executable is in
8894 shlibpath_var=PATH
8895 ;;
8896
8897 darwin* | rhapsody*)
8898 dynamic_linker="$host_os dyld"
8899 version_type=darwin
8900 need_lib_prefix=no
8901 need_version=no
8902 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8903 soname_spec='${libname}${release}${major}$shared_ext'
8904 shlibpath_overrides_runpath=yes
8905 shlibpath_var=DYLD_LIBRARY_PATH
8906 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8907
8908 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8909 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8910 ;;
8911
8912 dgux*)
8913 version_type=linux
8914 need_lib_prefix=no
8915 need_version=no
8916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8917 soname_spec='${libname}${release}${shared_ext}$major'
8918 shlibpath_var=LD_LIBRARY_PATH
8919 ;;
8920
8921 freebsd1*)
8922 dynamic_linker=no
8923 ;;
8924
8925 freebsd* | dragonfly*)
8926 # DragonFly does not have aout. When/if they implement a new
8927 # versioning mechanism, adjust this.
8928 if test -x /usr/bin/objformat; then
8929 objformat=`/usr/bin/objformat`
8930 else
8931 case $host_os in
8932 freebsd[123]*) objformat=aout ;;
8933 *) objformat=elf ;;
8934 esac
8935 fi
8936 version_type=freebsd-$objformat
8937 case $version_type in
8938 freebsd-elf*)
8939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8940 need_version=no
8941 need_lib_prefix=no
8942 ;;
8943 freebsd-*)
8944 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8945 need_version=yes
8946 ;;
8947 esac
8948 shlibpath_var=LD_LIBRARY_PATH
8949 case $host_os in
8950 freebsd2*)
8951 shlibpath_overrides_runpath=yes
8952 ;;
8953 freebsd3.[01]* | freebsdelf3.[01]*)
8954 shlibpath_overrides_runpath=yes
8955 hardcode_into_libs=yes
8956 ;;
8957 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8958 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8959 shlibpath_overrides_runpath=no
8960 hardcode_into_libs=yes
8961 ;;
8962 *) # from 4.6 on, and DragonFly
8963 shlibpath_overrides_runpath=yes
8964 hardcode_into_libs=yes
8965 ;;
8966 esac
8967 ;;
8968
8969 gnu*)
8970 version_type=linux
8971 need_lib_prefix=no
8972 need_version=no
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8974 soname_spec='${libname}${release}${shared_ext}$major'
8975 shlibpath_var=LD_LIBRARY_PATH
8976 hardcode_into_libs=yes
8977 ;;
8978
8979 hpux9* | hpux10* | hpux11*)
8980 # Give a soname corresponding to the major version so that dld.sl refuses to
8981 # link against other versions.
8982 version_type=sunos
8983 need_lib_prefix=no
8984 need_version=no
8985 case $host_cpu in
8986 ia64*)
8987 shrext_cmds='.so'
8988 hardcode_into_libs=yes
8989 dynamic_linker="$host_os dld.so"
8990 shlibpath_var=LD_LIBRARY_PATH
8991 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8993 soname_spec='${libname}${release}${shared_ext}$major'
8994 if test "X$HPUX_IA64_MODE" = X32; then
8995 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8996 else
8997 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8998 fi
8999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9000 ;;
9001 hppa*64*)
9002 shrext_cmds='.sl'
9003 hardcode_into_libs=yes
9004 dynamic_linker="$host_os dld.sl"
9005 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008 soname_spec='${libname}${release}${shared_ext}$major'
9009 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9010 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9011 ;;
9012 *)
9013 shrext_cmds='.sl'
9014 dynamic_linker="$host_os dld.sl"
9015 shlibpath_var=SHLIB_PATH
9016 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9018 soname_spec='${libname}${release}${shared_ext}$major'
9019 ;;
9020 esac
9021 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9022 postinstall_cmds='chmod 555 $lib'
9023 ;;
9024
9025 interix[3-9]*)
9026 version_type=linux
9027 need_lib_prefix=no
9028 need_version=no
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9030 soname_spec='${libname}${release}${shared_ext}$major'
9031 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9032 shlibpath_var=LD_LIBRARY_PATH
9033 shlibpath_overrides_runpath=no
9034 hardcode_into_libs=yes
9035 ;;
9036
9037 irix5* | irix6* | nonstopux*)
9038 case $host_os in
9039 nonstopux*) version_type=nonstopux ;;
9040 *)
9041 if test "$lt_cv_prog_gnu_ld" = yes; then
9042 version_type=linux
9043 else
9044 version_type=irix
9045 fi ;;
9046 esac
9047 need_lib_prefix=no
9048 need_version=no
9049 soname_spec='${libname}${release}${shared_ext}$major'
9050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9051 case $host_os in
9052 irix5* | nonstopux*)
9053 libsuff= shlibsuff=
9054 ;;
9055 *)
9056 case $LD in # libtool.m4 will add one of these switches to LD
9057 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9058 libsuff= shlibsuff= libmagic=32-bit;;
9059 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9060 libsuff=32 shlibsuff=N32 libmagic=N32;;
9061 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9062 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9063 *) libsuff= shlibsuff= libmagic=never-match;;
9064 esac
9065 ;;
9066 esac
9067 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9068 shlibpath_overrides_runpath=no
9069 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9070 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9071 hardcode_into_libs=yes
9072 ;;
9073
9074 # No shared lib support for Linux oldld, aout, or coff.
9075 linux*oldld* | linux*aout* | linux*coff*)
9076 dynamic_linker=no
9077 ;;
9078
9079 # This must be Linux ELF.
9080 linux* | k*bsd*-gnu)
9081 version_type=linux
9082 need_lib_prefix=no
9083 need_version=no
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9087 shlibpath_var=LD_LIBRARY_PATH
9088 shlibpath_overrides_runpath=no
9089 # This implies no fast_install, which is unacceptable.
9090 # Some rework will be needed to allow for fast_install
9091 # before this can be enabled.
9092 hardcode_into_libs=yes
9093 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9094 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9095
9096 # Append ld.so.conf contents to the search path
9097 if test -f /etc/ld.so.conf; then
9098 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' ' '`
9099 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9100 fi
9101
9102 # We used to test for /lib/ld.so.1 and disable shared libraries on
9103 # powerpc, because MkLinux only supported shared libraries with the
9104 # GNU dynamic linker. Since this was broken with cross compilers,
9105 # most powerpc-linux boxes support dynamic linking these days and
9106 # people can always --disable-shared, the test was removed, and we
9107 # assume the GNU/Linux dynamic linker is in use.
9108 dynamic_linker='GNU/Linux ld.so'
9109 ;;
9110
9111 netbsd*)
9112 version_type=sunos
9113 need_lib_prefix=no
9114 need_version=no
9115 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9118 dynamic_linker='NetBSD (a.out) ld.so'
9119 else
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9121 soname_spec='${libname}${release}${shared_ext}$major'
9122 dynamic_linker='NetBSD ld.elf_so'
9123 fi
9124 shlibpath_var=LD_LIBRARY_PATH
9125 shlibpath_overrides_runpath=yes
9126 hardcode_into_libs=yes
9127 ;;
9128
9129 newsos6)
9130 version_type=linux
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132 shlibpath_var=LD_LIBRARY_PATH
9133 shlibpath_overrides_runpath=yes
9134 ;;
9135
9136 nto-qnx*)
9137 version_type=linux
9138 need_lib_prefix=no
9139 need_version=no
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141 soname_spec='${libname}${release}${shared_ext}$major'
9142 shlibpath_var=LD_LIBRARY_PATH
9143 shlibpath_overrides_runpath=yes
9144 ;;
9145
9146 openbsd*)
9147 version_type=sunos
9148 sys_lib_dlsearch_path_spec="/usr/lib"
9149 need_lib_prefix=no
9150 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9151 case $host_os in
9152 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9153 *) need_version=no ;;
9154 esac
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9157 shlibpath_var=LD_LIBRARY_PATH
9158 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9159 case $host_os in
9160 openbsd2.[89] | openbsd2.[89].*)
9161 shlibpath_overrides_runpath=no
9162 ;;
9163 *)
9164 shlibpath_overrides_runpath=yes
9165 ;;
9166 esac
9167 else
9168 shlibpath_overrides_runpath=yes
9169 fi
9170 ;;
9171
9172 os2*)
9173 libname_spec='$name'
9174 shrext_cmds=".dll"
9175 need_lib_prefix=no
9176 library_names_spec='$libname${shared_ext} $libname.a'
9177 dynamic_linker='OS/2 ld.exe'
9178 shlibpath_var=LIBPATH
9179 ;;
9180
9181 osf3* | osf4* | osf5*)
9182 version_type=osf
9183 need_lib_prefix=no
9184 need_version=no
9185 soname_spec='${libname}${release}${shared_ext}$major'
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187 shlibpath_var=LD_LIBRARY_PATH
9188 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9189 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9190 ;;
9191
9192 rdos*)
9193 dynamic_linker=no
9194 ;;
9195
9196 solaris*)
9197 version_type=linux
9198 need_lib_prefix=no
9199 need_version=no
9200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9201 soname_spec='${libname}${release}${shared_ext}$major'
9202 shlibpath_var=LD_LIBRARY_PATH
9203 shlibpath_overrides_runpath=yes
9204 hardcode_into_libs=yes
9205 # ldd complains unless libraries are executable
9206 postinstall_cmds='chmod +x $lib'
9207 ;;
9208
9209 sunos4*)
9210 version_type=sunos
9211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9212 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9213 shlibpath_var=LD_LIBRARY_PATH
9214 shlibpath_overrides_runpath=yes
9215 if test "$with_gnu_ld" = yes; then
9216 need_lib_prefix=no
9217 fi
9218 need_version=yes
9219 ;;
9220
9221 sysv4 | sysv4.3*)
9222 version_type=linux
9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9224 soname_spec='${libname}${release}${shared_ext}$major'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 case $host_vendor in
9227 sni)
9228 shlibpath_overrides_runpath=no
9229 need_lib_prefix=no
9230 export_dynamic_flag_spec='${wl}-Blargedynsym'
9231 runpath_var=LD_RUN_PATH
9232 ;;
9233 siemens)
9234 need_lib_prefix=no
9235 ;;
9236 motorola)
9237 need_lib_prefix=no
9238 need_version=no
9239 shlibpath_overrides_runpath=no
9240 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9241 ;;
9242 esac
9243 ;;
9244
9245 sysv4*MP*)
9246 if test -d /usr/nec ;then
9247 version_type=linux
9248 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9249 soname_spec='$libname${shared_ext}.$major'
9250 shlibpath_var=LD_LIBRARY_PATH
9251 fi
9252 ;;
9253
9254 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9255 version_type=freebsd-elf
9256 need_lib_prefix=no
9257 need_version=no
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9259 soname_spec='${libname}${release}${shared_ext}$major'
9260 shlibpath_var=LD_LIBRARY_PATH
9261 hardcode_into_libs=yes
9262 if test "$with_gnu_ld" = yes; then
9263 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9264 shlibpath_overrides_runpath=no
9265 else
9266 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9267 shlibpath_overrides_runpath=yes
9268 case $host_os in
9269 sco3.2v5*)
9270 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9271 ;;
9272 esac
9273 fi
9274 sys_lib_dlsearch_path_spec='/usr/lib'
9275 ;;
9276
9277 uts4*)
9278 version_type=linux
9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280 soname_spec='${libname}${release}${shared_ext}$major'
9281 shlibpath_var=LD_LIBRARY_PATH
9282 ;;
9283
9284 *)
9285 dynamic_linker=no
9286 ;;
9287 esac
9288 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9289 echo "${ECHO_T}$dynamic_linker" >&6; }
9290 test "$dynamic_linker" = no && can_build_shared=no
9291
9292 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9293 if test "$GCC" = yes; then
9294 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9295 fi
9296
9297 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9298 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9299 hardcode_action=
9300 if test -n "$hardcode_libdir_flag_spec" || \
9301 test -n "$runpath_var" || \
9302 test "X$hardcode_automatic" = "Xyes" ; then
9303
9304 # We can hardcode non-existant directories.
9305 if test "$hardcode_direct" != no &&
9306 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9307 # have to relink, otherwise we might link with an installed library
9308 # when we should be linking with a yet-to-be-installed one
9309 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9310 test "$hardcode_minus_L" != no; then
9311 # Linking always hardcodes the temporary library directory.
9312 hardcode_action=relink
9313 else
9314 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9315 hardcode_action=immediate
9316 fi
9317 else
9318 # We cannot hardcode anything, or else we can only hardcode existing
9319 # directories.
9320 hardcode_action=unsupported
9321 fi
9322 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9323 echo "${ECHO_T}$hardcode_action" >&6; }
9324
9325 if test "$hardcode_action" = relink; then
9326 # Fast installation is not supported
9327 enable_fast_install=no
9328 elif test "$shlibpath_overrides_runpath" = yes ||
9329 test "$enable_shared" = no; then
9330 # Fast installation is not necessary
9331 enable_fast_install=needless
9332 fi
9333
9334 striplib=
9335 old_striplib=
9336 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9337 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9338 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9339 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9340 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9341 { echo "$as_me:$LINENO: result: yes" >&5
9342 echo "${ECHO_T}yes" >&6; }
9343 else
9344 # FIXME - insert some real tests, host_os isn't really good enough
9345 case $host_os in
9346 darwin*)
9347 if test -n "$STRIP" ; then
9348 striplib="$STRIP -x"
9349 old_striplib="$STRIP -S"
9350 { echo "$as_me:$LINENO: result: yes" >&5
9351 echo "${ECHO_T}yes" >&6; }
9352 else
9353 { echo "$as_me:$LINENO: result: no" >&5
9354 echo "${ECHO_T}no" >&6; }
9355 fi
9356 ;;
9357 *)
9358 { echo "$as_me:$LINENO: result: no" >&5
9359 echo "${ECHO_T}no" >&6; }
9360 ;;
9361 esac
9362 fi
9363
9364 if test "x$enable_dlopen" != xyes; then
9365 enable_dlopen=unknown
9366 enable_dlopen_self=unknown
9367 enable_dlopen_self_static=unknown
9368 else
9369 lt_cv_dlopen=no
9370 lt_cv_dlopen_libs=
9371
9372 case $host_os in
9373 beos*)
9374 lt_cv_dlopen="load_add_on"
9375 lt_cv_dlopen_libs=
9376 lt_cv_dlopen_self=yes
9377 ;;
9378
9379 mingw* | pw32*)
9380 lt_cv_dlopen="LoadLibrary"
9381 lt_cv_dlopen_libs=
9382 ;;
9383
9384 cygwin*)
9385 lt_cv_dlopen="dlopen"
9386 lt_cv_dlopen_libs=
9387 ;;
9388
9389 darwin*)
9390 # if libdl is installed we need to link against it
9391 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9392 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9393 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9394 echo $ECHO_N "(cached) $ECHO_C" >&6
9395 else
9396 ac_check_lib_save_LIBS=$LIBS
9397 LIBS="-ldl $LIBS"
9398 cat >conftest.$ac_ext <<_ACEOF
9399 /* confdefs.h. */
9400 _ACEOF
9401 cat confdefs.h >>conftest.$ac_ext
9402 cat >>conftest.$ac_ext <<_ACEOF
9403 /* end confdefs.h. */
9404
9405 /* Override any GCC internal prototype to avoid an error.
9406 Use char because int might match the return type of a GCC
9407 builtin and then its argument prototype would still apply. */
9408 #ifdef __cplusplus
9409 extern "C"
9410 #endif
9411 char dlopen ();
9412 int
9413 main ()
9414 {
9415 return dlopen ();
9416 ;
9417 return 0;
9418 }
9419 _ACEOF
9420 rm -f conftest.$ac_objext conftest$ac_exeext
9421 if { (ac_try="$ac_link"
9422 case "(($ac_try" in
9423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9424 *) ac_try_echo=$ac_try;;
9425 esac
9426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9427 (eval "$ac_link") 2>conftest.er1
9428 ac_status=$?
9429 grep -v '^ *+' conftest.er1 >conftest.err
9430 rm -f conftest.er1
9431 cat conftest.err >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); } && {
9434 test -z "$ac_c_werror_flag" ||
9435 test ! -s conftest.err
9436 } && test -s conftest$ac_exeext &&
9437 $as_test_x conftest$ac_exeext; then
9438 ac_cv_lib_dl_dlopen=yes
9439 else
9440 echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9442
9443 ac_cv_lib_dl_dlopen=no
9444 fi
9445
9446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9447 conftest$ac_exeext conftest.$ac_ext
9448 LIBS=$ac_check_lib_save_LIBS
9449 fi
9450 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9451 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9452 if test $ac_cv_lib_dl_dlopen = yes; then
9453 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9454 else
9455
9456 lt_cv_dlopen="dyld"
9457 lt_cv_dlopen_libs=
9458 lt_cv_dlopen_self=yes
9459
9460 fi
9461
9462 ;;
9463
9464 *)
9465 { echo "$as_me:$LINENO: checking for shl_load" >&5
9466 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9467 if test "${ac_cv_func_shl_load+set}" = set; then
9468 echo $ECHO_N "(cached) $ECHO_C" >&6
9469 else
9470 cat >conftest.$ac_ext <<_ACEOF
9471 /* confdefs.h. */
9472 _ACEOF
9473 cat confdefs.h >>conftest.$ac_ext
9474 cat >>conftest.$ac_ext <<_ACEOF
9475 /* end confdefs.h. */
9476 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9478 #define shl_load innocuous_shl_load
9479
9480 /* System header to define __stub macros and hopefully few prototypes,
9481 which can conflict with char shl_load (); below.
9482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9483 <limits.h> exists even on freestanding compilers. */
9484
9485 #ifdef __STDC__
9486 # include <limits.h>
9487 #else
9488 # include <assert.h>
9489 #endif
9490
9491 #undef shl_load
9492
9493 /* Override any GCC internal prototype to avoid an error.
9494 Use char because int might match the return type of a GCC
9495 builtin and then its argument prototype would still apply. */
9496 #ifdef __cplusplus
9497 extern "C"
9498 #endif
9499 char shl_load ();
9500 /* The GNU C library defines this for functions which it implements
9501 to always fail with ENOSYS. Some functions are actually named
9502 something starting with __ and the normal name is an alias. */
9503 #if defined __stub_shl_load || defined __stub___shl_load
9504 choke me
9505 #endif
9506
9507 int
9508 main ()
9509 {
9510 return shl_load ();
9511 ;
9512 return 0;
9513 }
9514 _ACEOF
9515 rm -f conftest.$ac_objext conftest$ac_exeext
9516 if { (ac_try="$ac_link"
9517 case "(($ac_try" in
9518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9519 *) ac_try_echo=$ac_try;;
9520 esac
9521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9522 (eval "$ac_link") 2>conftest.er1
9523 ac_status=$?
9524 grep -v '^ *+' conftest.er1 >conftest.err
9525 rm -f conftest.er1
9526 cat conftest.err >&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } && {
9529 test -z "$ac_c_werror_flag" ||
9530 test ! -s conftest.err
9531 } && test -s conftest$ac_exeext &&
9532 $as_test_x conftest$ac_exeext; then
9533 ac_cv_func_shl_load=yes
9534 else
9535 echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9537
9538 ac_cv_func_shl_load=no
9539 fi
9540
9541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9542 conftest$ac_exeext conftest.$ac_ext
9543 fi
9544 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9545 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9546 if test $ac_cv_func_shl_load = yes; then
9547 lt_cv_dlopen="shl_load"
9548 else
9549 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9550 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9551 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9553 else
9554 ac_check_lib_save_LIBS=$LIBS
9555 LIBS="-ldld $LIBS"
9556 cat >conftest.$ac_ext <<_ACEOF
9557 /* confdefs.h. */
9558 _ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h. */
9562
9563 /* Override any GCC internal prototype to avoid an error.
9564 Use char because int might match the return type of a GCC
9565 builtin and then its argument prototype would still apply. */
9566 #ifdef __cplusplus
9567 extern "C"
9568 #endif
9569 char shl_load ();
9570 int
9571 main ()
9572 {
9573 return shl_load ();
9574 ;
9575 return 0;
9576 }
9577 _ACEOF
9578 rm -f conftest.$ac_objext conftest$ac_exeext
9579 if { (ac_try="$ac_link"
9580 case "(($ac_try" in
9581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582 *) ac_try_echo=$ac_try;;
9583 esac
9584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585 (eval "$ac_link") 2>conftest.er1
9586 ac_status=$?
9587 grep -v '^ *+' conftest.er1 >conftest.err
9588 rm -f conftest.er1
9589 cat conftest.err >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } && {
9592 test -z "$ac_c_werror_flag" ||
9593 test ! -s conftest.err
9594 } && test -s conftest$ac_exeext &&
9595 $as_test_x conftest$ac_exeext; then
9596 ac_cv_lib_dld_shl_load=yes
9597 else
9598 echo "$as_me: failed program was:" >&5
9599 sed 's/^/| /' conftest.$ac_ext >&5
9600
9601 ac_cv_lib_dld_shl_load=no
9602 fi
9603
9604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9605 conftest$ac_exeext conftest.$ac_ext
9606 LIBS=$ac_check_lib_save_LIBS
9607 fi
9608 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9609 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9610 if test $ac_cv_lib_dld_shl_load = yes; then
9611 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9612 else
9613 { echo "$as_me:$LINENO: checking for dlopen" >&5
9614 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9615 if test "${ac_cv_func_dlopen+set}" = set; then
9616 echo $ECHO_N "(cached) $ECHO_C" >&6
9617 else
9618 cat >conftest.$ac_ext <<_ACEOF
9619 /* confdefs.h. */
9620 _ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9624 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9626 #define dlopen innocuous_dlopen
9627
9628 /* System header to define __stub macros and hopefully few prototypes,
9629 which can conflict with char dlopen (); below.
9630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9631 <limits.h> exists even on freestanding compilers. */
9632
9633 #ifdef __STDC__
9634 # include <limits.h>
9635 #else
9636 # include <assert.h>
9637 #endif
9638
9639 #undef dlopen
9640
9641 /* Override any GCC internal prototype to avoid an error.
9642 Use char because int might match the return type of a GCC
9643 builtin and then its argument prototype would still apply. */
9644 #ifdef __cplusplus
9645 extern "C"
9646 #endif
9647 char dlopen ();
9648 /* The GNU C library defines this for functions which it implements
9649 to always fail with ENOSYS. Some functions are actually named
9650 something starting with __ and the normal name is an alias. */
9651 #if defined __stub_dlopen || defined __stub___dlopen
9652 choke me
9653 #endif
9654
9655 int
9656 main ()
9657 {
9658 return dlopen ();
9659 ;
9660 return 0;
9661 }
9662 _ACEOF
9663 rm -f conftest.$ac_objext conftest$ac_exeext
9664 if { (ac_try="$ac_link"
9665 case "(($ac_try" in
9666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9668 esac
9669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_link") 2>conftest.er1
9671 ac_status=$?
9672 grep -v '^ *+' conftest.er1 >conftest.err
9673 rm -f conftest.er1
9674 cat conftest.err >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } && {
9677 test -z "$ac_c_werror_flag" ||
9678 test ! -s conftest.err
9679 } && test -s conftest$ac_exeext &&
9680 $as_test_x conftest$ac_exeext; then
9681 ac_cv_func_dlopen=yes
9682 else
9683 echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.$ac_ext >&5
9685
9686 ac_cv_func_dlopen=no
9687 fi
9688
9689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9690 conftest$ac_exeext conftest.$ac_ext
9691 fi
9692 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9693 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9694 if test $ac_cv_func_dlopen = yes; then
9695 lt_cv_dlopen="dlopen"
9696 else
9697 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9698 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9699 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9700 echo $ECHO_N "(cached) $ECHO_C" >&6
9701 else
9702 ac_check_lib_save_LIBS=$LIBS
9703 LIBS="-ldl $LIBS"
9704 cat >conftest.$ac_ext <<_ACEOF
9705 /* confdefs.h. */
9706 _ACEOF
9707 cat confdefs.h >>conftest.$ac_ext
9708 cat >>conftest.$ac_ext <<_ACEOF
9709 /* end confdefs.h. */
9710
9711 /* Override any GCC internal prototype to avoid an error.
9712 Use char because int might match the return type of a GCC
9713 builtin and then its argument prototype would still apply. */
9714 #ifdef __cplusplus
9715 extern "C"
9716 #endif
9717 char dlopen ();
9718 int
9719 main ()
9720 {
9721 return dlopen ();
9722 ;
9723 return 0;
9724 }
9725 _ACEOF
9726 rm -f conftest.$ac_objext conftest$ac_exeext
9727 if { (ac_try="$ac_link"
9728 case "(($ac_try" in
9729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730 *) ac_try_echo=$ac_try;;
9731 esac
9732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733 (eval "$ac_link") 2>conftest.er1
9734 ac_status=$?
9735 grep -v '^ *+' conftest.er1 >conftest.err
9736 rm -f conftest.er1
9737 cat conftest.err >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } && {
9740 test -z "$ac_c_werror_flag" ||
9741 test ! -s conftest.err
9742 } && test -s conftest$ac_exeext &&
9743 $as_test_x conftest$ac_exeext; then
9744 ac_cv_lib_dl_dlopen=yes
9745 else
9746 echo "$as_me: failed program was:" >&5
9747 sed 's/^/| /' conftest.$ac_ext >&5
9748
9749 ac_cv_lib_dl_dlopen=no
9750 fi
9751
9752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9753 conftest$ac_exeext conftest.$ac_ext
9754 LIBS=$ac_check_lib_save_LIBS
9755 fi
9756 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9757 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9758 if test $ac_cv_lib_dl_dlopen = yes; then
9759 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9760 else
9761 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9762 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9763 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9764 echo $ECHO_N "(cached) $ECHO_C" >&6
9765 else
9766 ac_check_lib_save_LIBS=$LIBS
9767 LIBS="-lsvld $LIBS"
9768 cat >conftest.$ac_ext <<_ACEOF
9769 /* confdefs.h. */
9770 _ACEOF
9771 cat confdefs.h >>conftest.$ac_ext
9772 cat >>conftest.$ac_ext <<_ACEOF
9773 /* end confdefs.h. */
9774
9775 /* Override any GCC internal prototype to avoid an error.
9776 Use char because int might match the return type of a GCC
9777 builtin and then its argument prototype would still apply. */
9778 #ifdef __cplusplus
9779 extern "C"
9780 #endif
9781 char dlopen ();
9782 int
9783 main ()
9784 {
9785 return dlopen ();
9786 ;
9787 return 0;
9788 }
9789 _ACEOF
9790 rm -f conftest.$ac_objext conftest$ac_exeext
9791 if { (ac_try="$ac_link"
9792 case "(($ac_try" in
9793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794 *) ac_try_echo=$ac_try;;
9795 esac
9796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9797 (eval "$ac_link") 2>conftest.er1
9798 ac_status=$?
9799 grep -v '^ *+' conftest.er1 >conftest.err
9800 rm -f conftest.er1
9801 cat conftest.err >&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); } && {
9804 test -z "$ac_c_werror_flag" ||
9805 test ! -s conftest.err
9806 } && test -s conftest$ac_exeext &&
9807 $as_test_x conftest$ac_exeext; then
9808 ac_cv_lib_svld_dlopen=yes
9809 else
9810 echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9812
9813 ac_cv_lib_svld_dlopen=no
9814 fi
9815
9816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9817 conftest$ac_exeext conftest.$ac_ext
9818 LIBS=$ac_check_lib_save_LIBS
9819 fi
9820 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9821 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9822 if test $ac_cv_lib_svld_dlopen = yes; then
9823 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9824 else
9825 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9826 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9827 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 else
9830 ac_check_lib_save_LIBS=$LIBS
9831 LIBS="-ldld $LIBS"
9832 cat >conftest.$ac_ext <<_ACEOF
9833 /* confdefs.h. */
9834 _ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9838
9839 /* Override any GCC internal prototype to avoid an error.
9840 Use char because int might match the return type of a GCC
9841 builtin and then its argument prototype would still apply. */
9842 #ifdef __cplusplus
9843 extern "C"
9844 #endif
9845 char dld_link ();
9846 int
9847 main ()
9848 {
9849 return dld_link ();
9850 ;
9851 return 0;
9852 }
9853 _ACEOF
9854 rm -f conftest.$ac_objext conftest$ac_exeext
9855 if { (ac_try="$ac_link"
9856 case "(($ac_try" in
9857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858 *) ac_try_echo=$ac_try;;
9859 esac
9860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861 (eval "$ac_link") 2>conftest.er1
9862 ac_status=$?
9863 grep -v '^ *+' conftest.er1 >conftest.err
9864 rm -f conftest.er1
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } && {
9868 test -z "$ac_c_werror_flag" ||
9869 test ! -s conftest.err
9870 } && test -s conftest$ac_exeext &&
9871 $as_test_x conftest$ac_exeext; then
9872 ac_cv_lib_dld_dld_link=yes
9873 else
9874 echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9876
9877 ac_cv_lib_dld_dld_link=no
9878 fi
9879
9880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9881 conftest$ac_exeext conftest.$ac_ext
9882 LIBS=$ac_check_lib_save_LIBS
9883 fi
9884 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9885 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9886 if test $ac_cv_lib_dld_dld_link = yes; then
9887 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9888 fi
9889
9890
9891 fi
9892
9893
9894 fi
9895
9896
9897 fi
9898
9899
9900 fi
9901
9902
9903 fi
9904
9905 ;;
9906 esac
9907
9908 if test "x$lt_cv_dlopen" != xno; then
9909 enable_dlopen=yes
9910 else
9911 enable_dlopen=no
9912 fi
9913
9914 case $lt_cv_dlopen in
9915 dlopen)
9916 save_CPPFLAGS="$CPPFLAGS"
9917 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9918
9919 save_LDFLAGS="$LDFLAGS"
9920 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9921
9922 save_LIBS="$LIBS"
9923 LIBS="$lt_cv_dlopen_libs $LIBS"
9924
9925 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9926 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9927 if test "${lt_cv_dlopen_self+set}" = set; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9929 else
9930 if test "$cross_compiling" = yes; then :
9931 lt_cv_dlopen_self=cross
9932 else
9933 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9934 lt_status=$lt_dlunknown
9935 cat > conftest.$ac_ext <<EOF
9936 #line 9936 "configure"
9937 #include "confdefs.h"
9938
9939 #if HAVE_DLFCN_H
9940 #include <dlfcn.h>
9941 #endif
9942
9943 #include <stdio.h>
9944
9945 #ifdef RTLD_GLOBAL
9946 # define LT_DLGLOBAL RTLD_GLOBAL
9947 #else
9948 # ifdef DL_GLOBAL
9949 # define LT_DLGLOBAL DL_GLOBAL
9950 # else
9951 # define LT_DLGLOBAL 0
9952 # endif
9953 #endif
9954
9955 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9956 find out it does not work in some platform. */
9957 #ifndef LT_DLLAZY_OR_NOW
9958 # ifdef RTLD_LAZY
9959 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9960 # else
9961 # ifdef DL_LAZY
9962 # define LT_DLLAZY_OR_NOW DL_LAZY
9963 # else
9964 # ifdef RTLD_NOW
9965 # define LT_DLLAZY_OR_NOW RTLD_NOW
9966 # else
9967 # ifdef DL_NOW
9968 # define LT_DLLAZY_OR_NOW DL_NOW
9969 # else
9970 # define LT_DLLAZY_OR_NOW 0
9971 # endif
9972 # endif
9973 # endif
9974 # endif
9975 #endif
9976
9977 #ifdef __cplusplus
9978 extern "C" void exit (int);
9979 #endif
9980
9981 void fnord() { int i=42;}
9982 int main ()
9983 {
9984 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9985 int status = $lt_dlunknown;
9986
9987 if (self)
9988 {
9989 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9990 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9991 /* dlclose (self); */
9992 }
9993 else
9994 puts (dlerror ());
9995
9996 exit (status);
9997 }
9998 EOF
9999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10000 (eval $ac_link) 2>&5
10001 ac_status=$?
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10004 (./conftest; exit; ) >&5 2>/dev/null
10005 lt_status=$?
10006 case x$lt_status in
10007 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10008 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10009 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10010 esac
10011 else :
10012 # compilation failed
10013 lt_cv_dlopen_self=no
10014 fi
10015 fi
10016 rm -fr conftest*
10017
10018
10019 fi
10020 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10021 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10022
10023 if test "x$lt_cv_dlopen_self" = xyes; then
10024 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10025 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10026 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10027 if test "${lt_cv_dlopen_self_static+set}" = set; then
10028 echo $ECHO_N "(cached) $ECHO_C" >&6
10029 else
10030 if test "$cross_compiling" = yes; then :
10031 lt_cv_dlopen_self_static=cross
10032 else
10033 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10034 lt_status=$lt_dlunknown
10035 cat > conftest.$ac_ext <<EOF
10036 #line 10036 "configure"
10037 #include "confdefs.h"
10038
10039 #if HAVE_DLFCN_H
10040 #include <dlfcn.h>
10041 #endif
10042
10043 #include <stdio.h>
10044
10045 #ifdef RTLD_GLOBAL
10046 # define LT_DLGLOBAL RTLD_GLOBAL
10047 #else
10048 # ifdef DL_GLOBAL
10049 # define LT_DLGLOBAL DL_GLOBAL
10050 # else
10051 # define LT_DLGLOBAL 0
10052 # endif
10053 #endif
10054
10055 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10056 find out it does not work in some platform. */
10057 #ifndef LT_DLLAZY_OR_NOW
10058 # ifdef RTLD_LAZY
10059 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10060 # else
10061 # ifdef DL_LAZY
10062 # define LT_DLLAZY_OR_NOW DL_LAZY
10063 # else
10064 # ifdef RTLD_NOW
10065 # define LT_DLLAZY_OR_NOW RTLD_NOW
10066 # else
10067 # ifdef DL_NOW
10068 # define LT_DLLAZY_OR_NOW DL_NOW
10069 # else
10070 # define LT_DLLAZY_OR_NOW 0
10071 # endif
10072 # endif
10073 # endif
10074 # endif
10075 #endif
10076
10077 #ifdef __cplusplus
10078 extern "C" void exit (int);
10079 #endif
10080
10081 void fnord() { int i=42;}
10082 int main ()
10083 {
10084 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10085 int status = $lt_dlunknown;
10086
10087 if (self)
10088 {
10089 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10090 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10091 /* dlclose (self); */
10092 }
10093 else
10094 puts (dlerror ());
10095
10096 exit (status);
10097 }
10098 EOF
10099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10100 (eval $ac_link) 2>&5
10101 ac_status=$?
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10104 (./conftest; exit; ) >&5 2>/dev/null
10105 lt_status=$?
10106 case x$lt_status in
10107 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10108 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10109 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10110 esac
10111 else :
10112 # compilation failed
10113 lt_cv_dlopen_self_static=no
10114 fi
10115 fi
10116 rm -fr conftest*
10117
10118
10119 fi
10120 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10121 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10122 fi
10123
10124 CPPFLAGS="$save_CPPFLAGS"
10125 LDFLAGS="$save_LDFLAGS"
10126 LIBS="$save_LIBS"
10127 ;;
10128 esac
10129
10130 case $lt_cv_dlopen_self in
10131 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10132 *) enable_dlopen_self=unknown ;;
10133 esac
10134
10135 case $lt_cv_dlopen_self_static in
10136 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10137 *) enable_dlopen_self_static=unknown ;;
10138 esac
10139 fi
10140
10141
10142 # Report which library types will actually be built
10143 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10144 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10145 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10146 echo "${ECHO_T}$can_build_shared" >&6; }
10147
10148 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10149 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10150 test "$can_build_shared" = "no" && enable_shared=no
10151
10152 # On AIX, shared libraries and static libraries use the same namespace, and
10153 # are all built from PIC.
10154 case $host_os in
10155 aix3*)
10156 test "$enable_shared" = yes && enable_static=no
10157 if test -n "$RANLIB"; then
10158 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10159 postinstall_cmds='$RANLIB $lib'
10160 fi
10161 ;;
10162
10163 aix4* | aix5*)
10164 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10165 test "$enable_shared" = yes && enable_static=no
10166 fi
10167 ;;
10168 esac
10169 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10170 echo "${ECHO_T}$enable_shared" >&6; }
10171
10172 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10173 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10174 # Make sure either enable_shared or enable_static is yes.
10175 test "$enable_shared" = yes || enable_static=yes
10176 { echo "$as_me:$LINENO: result: $enable_static" >&5
10177 echo "${ECHO_T}$enable_static" >&6; }
10178
10179 # The else clause should only fire when bootstrapping the
10180 # libtool distribution, otherwise you forgot to ship ltmain.sh
10181 # with your package, and you will get complaints that there are
10182 # no rules to generate ltmain.sh.
10183 if test -f "$ltmain"; then
10184 # See if we are running on zsh, and set the options which allow our commands through
10185 # without removal of \ escapes.
10186 if test -n "${ZSH_VERSION+set}" ; then
10187 setopt NO_GLOB_SUBST
10188 fi
10189 # Now quote all the things that may contain metacharacters while being
10190 # careful not to overquote the AC_SUBSTed values. We take copies of the
10191 # variables and quote the copies for generation of the libtool script.
10192 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10193 SED SHELL STRIP \
10194 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10195 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10196 deplibs_check_method reload_flag reload_cmds need_locks \
10197 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10198 lt_cv_sys_global_symbol_to_c_name_address \
10199 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10200 old_postinstall_cmds old_postuninstall_cmds \
10201 compiler \
10202 CC \
10203 LD \
10204 lt_prog_compiler_wl \
10205 lt_prog_compiler_pic \
10206 lt_prog_compiler_static \
10207 lt_prog_compiler_no_builtin_flag \
10208 export_dynamic_flag_spec \
10209 thread_safe_flag_spec \
10210 whole_archive_flag_spec \
10211 enable_shared_with_static_runtimes \
10212 old_archive_cmds \
10213 old_archive_from_new_cmds \
10214 predep_objects \
10215 postdep_objects \
10216 predeps \
10217 postdeps \
10218 compiler_lib_search_path \
10219 archive_cmds \
10220 archive_expsym_cmds \
10221 postinstall_cmds \
10222 postuninstall_cmds \
10223 old_archive_from_expsyms_cmds \
10224 allow_undefined_flag \
10225 no_undefined_flag \
10226 export_symbols_cmds \
10227 hardcode_libdir_flag_spec \
10228 hardcode_libdir_flag_spec_ld \
10229 hardcode_libdir_separator \
10230 hardcode_automatic \
10231 module_cmds \
10232 module_expsym_cmds \
10233 lt_cv_prog_compiler_c_o \
10234 fix_srcfile_path \
10235 exclude_expsyms \
10236 include_expsyms; do
10237
10238 case $var in
10239 old_archive_cmds | \
10240 old_archive_from_new_cmds | \
10241 archive_cmds | \
10242 archive_expsym_cmds | \
10243 module_cmds | \
10244 module_expsym_cmds | \
10245 old_archive_from_expsyms_cmds | \
10246 export_symbols_cmds | \
10247 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10248 postinstall_cmds | postuninstall_cmds | \
10249 old_postinstall_cmds | old_postuninstall_cmds | \
10250 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10251 # Double-quote double-evaled strings.
10252 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10253 ;;
10254 *)
10255 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10256 ;;
10257 esac
10258 done
10259
10260 case $lt_echo in
10261 *'\$0 --fallback-echo"')
10262 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10263 ;;
10264 esac
10265
10266 cfgfile="${ofile}T"
10267 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10268 $rm -f "$cfgfile"
10269 { echo "$as_me:$LINENO: creating $ofile" >&5
10270 echo "$as_me: creating $ofile" >&6;}
10271
10272 cat <<__EOF__ >> "$cfgfile"
10273 #! $SHELL
10274
10275 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10276 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10277 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10278 #
10279 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10280 # Free Software Foundation, Inc.
10281 #
10282 # This file is part of GNU Libtool:
10283 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10284 #
10285 # This program is free software; you can redistribute it and/or modify
10286 # it under the terms of the GNU General Public License as published by
10287 # the Free Software Foundation; either version 2 of the License, or
10288 # (at your option) any later version.
10289 #
10290 # This program is distributed in the hope that it will be useful, but
10291 # WITHOUT ANY WARRANTY; without even the implied warranty of
10292 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10293 # General Public License for more details.
10294 #
10295 # You should have received a copy of the GNU General Public License
10296 # along with this program; if not, write to the Free Software
10297 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10298 #
10299 # As a special exception to the GNU General Public License, if you
10300 # distribute this file as part of a program that contains a
10301 # configuration script generated by Autoconf, you may include it under
10302 # the same distribution terms that you use for the rest of that program.
10303
10304 # A sed program that does not truncate output.
10305 SED=$lt_SED
10306
10307 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10308 Xsed="$SED -e 1s/^X//"
10309
10310 # The HP-UX ksh and POSIX shell print the target directory to stdout
10311 # if CDPATH is set.
10312 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10313
10314 # The names of the tagged configurations supported by this script.
10315 available_tags=
10316
10317 # ### BEGIN LIBTOOL CONFIG
10318
10319 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10320
10321 # Shell to use when invoking shell scripts.
10322 SHELL=$lt_SHELL
10323
10324 # Whether or not to build shared libraries.
10325 build_libtool_libs=$enable_shared
10326
10327 # Whether or not to build static libraries.
10328 build_old_libs=$enable_static
10329
10330 # Whether or not to add -lc for building shared libraries.
10331 build_libtool_need_lc=$archive_cmds_need_lc
10332
10333 # Whether or not to disallow shared libs when runtime libs are static
10334 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10335
10336 # Whether or not to optimize for fast installation.
10337 fast_install=$enable_fast_install
10338
10339 # The host system.
10340 host_alias=$host_alias
10341 host=$host
10342 host_os=$host_os
10343
10344 # The build system.
10345 build_alias=$build_alias
10346 build=$build
10347 build_os=$build_os
10348
10349 # An echo program that does not interpret backslashes.
10350 echo=$lt_echo
10351
10352 # The archiver.
10353 AR=$lt_AR
10354 AR_FLAGS=$lt_AR_FLAGS
10355
10356 # A C compiler.
10357 LTCC=$lt_LTCC
10358
10359 # LTCC compiler flags.
10360 LTCFLAGS=$lt_LTCFLAGS
10361
10362 # A language-specific compiler.
10363 CC=$lt_compiler
10364
10365 # Is the compiler the GNU C compiler?
10366 with_gcc=$GCC
10367
10368 # An ERE matcher.
10369 EGREP=$lt_EGREP
10370
10371 # The linker used to build libraries.
10372 LD=$lt_LD
10373
10374 # Whether we need hard or soft links.
10375 LN_S=$lt_LN_S
10376
10377 # A BSD-compatible nm program.
10378 NM=$lt_NM
10379
10380 # A symbol stripping program
10381 STRIP=$lt_STRIP
10382
10383 # Used to examine libraries when file_magic_cmd begins "file"
10384 MAGIC_CMD=$MAGIC_CMD
10385
10386 # Used on cygwin: DLL creation program.
10387 DLLTOOL="$DLLTOOL"
10388
10389 # Used on cygwin: object dumper.
10390 OBJDUMP="$OBJDUMP"
10391
10392 # Used on cygwin: assembler.
10393 AS="$AS"
10394
10395 # The name of the directory that contains temporary libtool files.
10396 objdir=$objdir
10397
10398 # How to create reloadable object files.
10399 reload_flag=$lt_reload_flag
10400 reload_cmds=$lt_reload_cmds
10401
10402 # How to pass a linker flag through the compiler.
10403 wl=$lt_lt_prog_compiler_wl
10404
10405 # Object file suffix (normally "o").
10406 objext="$ac_objext"
10407
10408 # Old archive suffix (normally "a").
10409 libext="$libext"
10410
10411 # Shared library suffix (normally ".so").
10412 shrext_cmds='$shrext_cmds'
10413
10414 # Executable file suffix (normally "").
10415 exeext="$exeext"
10416
10417 # Additional compiler flags for building library objects.
10418 pic_flag=$lt_lt_prog_compiler_pic
10419 pic_mode=$pic_mode
10420
10421 # What is the maximum length of a command?
10422 max_cmd_len=$lt_cv_sys_max_cmd_len
10423
10424 # Does compiler simultaneously support -c and -o options?
10425 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10426
10427 # Must we lock files when doing compilation?
10428 need_locks=$lt_need_locks
10429
10430 # Do we need the lib prefix for modules?
10431 need_lib_prefix=$need_lib_prefix
10432
10433 # Do we need a version for libraries?
10434 need_version=$need_version
10435
10436 # Whether dlopen is supported.
10437 dlopen_support=$enable_dlopen
10438
10439 # Whether dlopen of programs is supported.
10440 dlopen_self=$enable_dlopen_self
10441
10442 # Whether dlopen of statically linked programs is supported.
10443 dlopen_self_static=$enable_dlopen_self_static
10444
10445 # Compiler flag to prevent dynamic linking.
10446 link_static_flag=$lt_lt_prog_compiler_static
10447
10448 # Compiler flag to turn off builtin functions.
10449 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10450
10451 # Compiler flag to allow reflexive dlopens.
10452 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10453
10454 # Compiler flag to generate shared objects directly from archives.
10455 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10456
10457 # Compiler flag to generate thread-safe objects.
10458 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10459
10460 # Library versioning type.
10461 version_type=$version_type
10462
10463 # Format of library name prefix.
10464 libname_spec=$lt_libname_spec
10465
10466 # List of archive names. First name is the real one, the rest are links.
10467 # The last name is the one that the linker finds with -lNAME.
10468 library_names_spec=$lt_library_names_spec
10469
10470 # The coded name of the library, if different from the real name.
10471 soname_spec=$lt_soname_spec
10472
10473 # Commands used to build and install an old-style archive.
10474 RANLIB=$lt_RANLIB
10475 old_archive_cmds=$lt_old_archive_cmds
10476 old_postinstall_cmds=$lt_old_postinstall_cmds
10477 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10478
10479 # Create an old-style archive from a shared archive.
10480 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10481
10482 # Create a temporary old-style archive to link instead of a shared archive.
10483 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10484
10485 # Commands used to build and install a shared archive.
10486 archive_cmds=$lt_archive_cmds
10487 archive_expsym_cmds=$lt_archive_expsym_cmds
10488 postinstall_cmds=$lt_postinstall_cmds
10489 postuninstall_cmds=$lt_postuninstall_cmds
10490
10491 # Commands used to build a loadable module (assumed same as above if empty)
10492 module_cmds=$lt_module_cmds
10493 module_expsym_cmds=$lt_module_expsym_cmds
10494
10495 # Commands to strip libraries.
10496 old_striplib=$lt_old_striplib
10497 striplib=$lt_striplib
10498
10499 # Dependencies to place before the objects being linked to create a
10500 # shared library.
10501 predep_objects=$lt_predep_objects
10502
10503 # Dependencies to place after the objects being linked to create a
10504 # shared library.
10505 postdep_objects=$lt_postdep_objects
10506
10507 # Dependencies to place before the objects being linked to create a
10508 # shared library.
10509 predeps=$lt_predeps
10510
10511 # Dependencies to place after the objects being linked to create a
10512 # shared library.
10513 postdeps=$lt_postdeps
10514
10515 # The library search path used internally by the compiler when linking
10516 # a shared library.
10517 compiler_lib_search_path=$lt_compiler_lib_search_path
10518
10519 # Method to check whether dependent libraries are shared objects.
10520 deplibs_check_method=$lt_deplibs_check_method
10521
10522 # Command to use when deplibs_check_method == file_magic.
10523 file_magic_cmd=$lt_file_magic_cmd
10524
10525 # Flag that allows shared libraries with undefined symbols to be built.
10526 allow_undefined_flag=$lt_allow_undefined_flag
10527
10528 # Flag that forces no undefined symbols.
10529 no_undefined_flag=$lt_no_undefined_flag
10530
10531 # Commands used to finish a libtool library installation in a directory.
10532 finish_cmds=$lt_finish_cmds
10533
10534 # Same as above, but a single script fragment to be evaled but not shown.
10535 finish_eval=$lt_finish_eval
10536
10537 # Take the output of nm and produce a listing of raw symbols and C names.
10538 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10539
10540 # Transform the output of nm in a proper C declaration
10541 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10542
10543 # Transform the output of nm in a C name address pair
10544 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10545
10546 # This is the shared library runtime path variable.
10547 runpath_var=$runpath_var
10548
10549 # This is the shared library path variable.
10550 shlibpath_var=$shlibpath_var
10551
10552 # Is shlibpath searched before the hard-coded library search path?
10553 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10554
10555 # How to hardcode a shared library path into an executable.
10556 hardcode_action=$hardcode_action
10557
10558 # Whether we should hardcode library paths into libraries.
10559 hardcode_into_libs=$hardcode_into_libs
10560
10561 # Flag to hardcode \$libdir into a binary during linking.
10562 # This must work even if \$libdir does not exist.
10563 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10564
10565 # If ld is used when linking, flag to hardcode \$libdir into
10566 # a binary during linking. This must work even if \$libdir does
10567 # not exist.
10568 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10569
10570 # Whether we need a single -rpath flag with a separated argument.
10571 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10572
10573 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10574 # resulting binary.
10575 hardcode_direct=$hardcode_direct
10576
10577 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10578 # resulting binary.
10579 hardcode_minus_L=$hardcode_minus_L
10580
10581 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10582 # the resulting binary.
10583 hardcode_shlibpath_var=$hardcode_shlibpath_var
10584
10585 # Set to yes if building a shared library automatically hardcodes DIR into the library
10586 # and all subsequent libraries and executables linked against it.
10587 hardcode_automatic=$hardcode_automatic
10588
10589 # Variables whose values should be saved in libtool wrapper scripts and
10590 # restored at relink time.
10591 variables_saved_for_relink="$variables_saved_for_relink"
10592
10593 # Whether libtool must link a program against all its dependency libraries.
10594 link_all_deplibs=$link_all_deplibs
10595
10596 # Compile-time system search path for libraries
10597 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10598
10599 # Run-time system search path for libraries
10600 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10601
10602 # Fix the shell variable \$srcfile for the compiler.
10603 fix_srcfile_path=$lt_fix_srcfile_path
10604
10605 # Set to yes if exported symbols are required.
10606 always_export_symbols=$always_export_symbols
10607
10608 # The commands to list exported symbols.
10609 export_symbols_cmds=$lt_export_symbols_cmds
10610
10611 # The commands to extract the exported symbol list from a shared archive.
10612 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10613
10614 # Symbols that should not be listed in the preloaded symbols.
10615 exclude_expsyms=$lt_exclude_expsyms
10616
10617 # Symbols that must always be exported.
10618 include_expsyms=$lt_include_expsyms
10619
10620 # ### END LIBTOOL CONFIG
10621
10622 __EOF__
10623
10624
10625 case $host_os in
10626 aix3*)
10627 cat <<\EOF >> "$cfgfile"
10628
10629 # AIX sometimes has problems with the GCC collect2 program. For some
10630 # reason, if we set the COLLECT_NAMES environment variable, the problems
10631 # vanish in a puff of smoke.
10632 if test "X${COLLECT_NAMES+set}" != Xset; then
10633 COLLECT_NAMES=
10634 export COLLECT_NAMES
10635 fi
10636 EOF
10637 ;;
10638 esac
10639
10640 # We use sed instead of cat because bash on DJGPP gets confused if
10641 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10642 # text mode, it properly converts lines to CR/LF. This bash problem
10643 # is reportedly fixed, but why not run on old versions too?
10644 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10645
10646 mv -f "$cfgfile" "$ofile" || \
10647 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10648 chmod +x "$ofile"
10649
10650 else
10651 # If there is no Makefile yet, we rely on a make rule to execute
10652 # `config.status --recheck' to rerun these tests and create the
10653 # libtool script then.
10654 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10655 if test -f "$ltmain_in"; then
10656 test -f Makefile && make "$ltmain"
10657 fi
10658 fi
10659
10660
10661 ac_ext=c
10662 ac_cpp='$CPP $CPPFLAGS'
10663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10666
10667 CC="$lt_save_CC"
10668
10669
10670 # Check whether --with-tags was given.
10671 if test "${with_tags+set}" = set; then
10672 withval=$with_tags; tagnames="$withval"
10673 fi
10674
10675
10676 if test -f "$ltmain" && test -n "$tagnames"; then
10677 if test ! -f "${ofile}"; then
10678 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10679 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10680 fi
10681
10682 if test -z "$LTCC"; then
10683 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10684 if test -z "$LTCC"; then
10685 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10686 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10687 else
10688 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10689 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10690 fi
10691 fi
10692 if test -z "$LTCFLAGS"; then
10693 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10694 fi
10695
10696 # Extract list of available tagged configurations in $ofile.
10697 # Note that this assumes the entire list is on one line.
10698 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10699
10700 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10701 for tagname in $tagnames; do
10702 IFS="$lt_save_ifs"
10703 # Check whether tagname contains only valid characters
10704 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10705 "") ;;
10706 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10707 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10708 { (exit 1); exit 1; }; }
10709 ;;
10710 esac
10711
10712 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10713 then
10714 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10715 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10716 { (exit 1); exit 1; }; }
10717 fi
10718
10719 # Update the list of available tags.
10720 if test -n "$tagname"; then
10721 echo appending configuration tag \"$tagname\" to $ofile
10722
10723 case $tagname in
10724 CXX)
10725 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10726 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10727 (test "X$CXX" != "Xg++"))) ; then
10728 ac_ext=cpp
10729 ac_cpp='$CXXCPP $CPPFLAGS'
10730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10733
10734
10735
10736
10737 archive_cmds_need_lc_CXX=no
10738 allow_undefined_flag_CXX=
10739 always_export_symbols_CXX=no
10740 archive_expsym_cmds_CXX=
10741 export_dynamic_flag_spec_CXX=
10742 hardcode_direct_CXX=no
10743 hardcode_libdir_flag_spec_CXX=
10744 hardcode_libdir_flag_spec_ld_CXX=
10745 hardcode_libdir_separator_CXX=
10746 hardcode_minus_L_CXX=no
10747 hardcode_shlibpath_var_CXX=unsupported
10748 hardcode_automatic_CXX=no
10749 module_cmds_CXX=
10750 module_expsym_cmds_CXX=
10751 link_all_deplibs_CXX=unknown
10752 old_archive_cmds_CXX=$old_archive_cmds
10753 no_undefined_flag_CXX=
10754 whole_archive_flag_spec_CXX=
10755 enable_shared_with_static_runtimes_CXX=no
10756
10757 # Dependencies to place before and after the object being linked:
10758 predep_objects_CXX=
10759 postdep_objects_CXX=
10760 predeps_CXX=
10761 postdeps_CXX=
10762 compiler_lib_search_path_CXX=
10763
10764 # Source file extension for C++ test sources.
10765 ac_ext=cpp
10766
10767 # Object file extension for compiled C++ test sources.
10768 objext=o
10769 objext_CXX=$objext
10770
10771 # Code to be used in simple compile tests
10772 lt_simple_compile_test_code="int some_variable = 0;"
10773
10774 # Code to be used in simple link tests
10775 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10776
10777 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10778
10779 # If no C compiler was specified, use CC.
10780 LTCC=${LTCC-"$CC"}
10781
10782 # If no C compiler flags were specified, use CFLAGS.
10783 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10784
10785 # Allow CC to be a program name with arguments.
10786 compiler=$CC
10787
10788
10789 # save warnings/boilerplate of simple test code
10790 ac_outfile=conftest.$ac_objext
10791 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10792 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10793 _lt_compiler_boilerplate=`cat conftest.err`
10794 $rm conftest*
10795
10796 ac_outfile=conftest.$ac_objext
10797 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10798 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10799 _lt_linker_boilerplate=`cat conftest.err`
10800 $rm conftest*
10801
10802
10803 # Allow CC to be a program name with arguments.
10804 lt_save_CC=$CC
10805 lt_save_LD=$LD
10806 lt_save_GCC=$GCC
10807 GCC=$GXX
10808 lt_save_with_gnu_ld=$with_gnu_ld
10809 lt_save_path_LD=$lt_cv_path_LD
10810 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10811 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10812 else
10813 $as_unset lt_cv_prog_gnu_ld
10814 fi
10815 if test -n "${lt_cv_path_LDCXX+set}"; then
10816 lt_cv_path_LD=$lt_cv_path_LDCXX
10817 else
10818 $as_unset lt_cv_path_LD
10819 fi
10820 test -z "${LDCXX+set}" || LD=$LDCXX
10821 CC=${CXX-"c++"}
10822 compiler=$CC
10823 compiler_CXX=$CC
10824 for cc_temp in $compiler""; do
10825 case $cc_temp in
10826 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10827 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10828 \-*) ;;
10829 *) break;;
10830 esac
10831 done
10832 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10833
10834
10835 # We don't want -fno-exception wen compiling C++ code, so set the
10836 # no_builtin_flag separately
10837 if test "$GXX" = yes; then
10838 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10839 else
10840 lt_prog_compiler_no_builtin_flag_CXX=
10841 fi
10842
10843 if test "$GXX" = yes; then
10844 # Set up default GNU C++ configuration
10845
10846
10847 # Check whether --with-gnu-ld was given.
10848 if test "${with_gnu_ld+set}" = set; then
10849 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10850 else
10851 with_gnu_ld=no
10852 fi
10853
10854 ac_prog=ld
10855 if test "$GCC" = yes; then
10856 # Check if gcc -print-prog-name=ld gives a path.
10857 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10858 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10859 case $host in
10860 *-*-mingw*)
10861 # gcc leaves a trailing carriage return which upsets mingw
10862 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10863 *)
10864 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10865 esac
10866 case $ac_prog in
10867 # Accept absolute paths.
10868 [\\/]* | ?:[\\/]*)
10869 re_direlt='/[^/][^/]*/\.\./'
10870 # Canonicalize the pathname of ld
10871 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10872 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10873 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10874 done
10875 test -z "$LD" && LD="$ac_prog"
10876 ;;
10877 "")
10878 # If it fails, then pretend we aren't using GCC.
10879 ac_prog=ld
10880 ;;
10881 *)
10882 # If it is relative, then search for the first ld in PATH.
10883 with_gnu_ld=unknown
10884 ;;
10885 esac
10886 elif test "$with_gnu_ld" = yes; then
10887 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10888 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10889 else
10890 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10891 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10892 fi
10893 if test "${lt_cv_path_LD+set}" = set; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10895 else
10896 if test -z "$LD"; then
10897 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10898 for ac_dir in $PATH; do
10899 IFS="$lt_save_ifs"
10900 test -z "$ac_dir" && ac_dir=.
10901 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10902 lt_cv_path_LD="$ac_dir/$ac_prog"
10903 # Check to see if the program is GNU ld. I'd rather use --version,
10904 # but apparently some variants of GNU ld only accept -v.
10905 # Break only if it was the GNU/non-GNU ld that we prefer.
10906 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10907 *GNU* | *'with BFD'*)
10908 test "$with_gnu_ld" != no && break
10909 ;;
10910 *)
10911 test "$with_gnu_ld" != yes && break
10912 ;;
10913 esac
10914 fi
10915 done
10916 IFS="$lt_save_ifs"
10917 else
10918 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10919 fi
10920 fi
10921
10922 LD="$lt_cv_path_LD"
10923 if test -n "$LD"; then
10924 { echo "$as_me:$LINENO: result: $LD" >&5
10925 echo "${ECHO_T}$LD" >&6; }
10926 else
10927 { echo "$as_me:$LINENO: result: no" >&5
10928 echo "${ECHO_T}no" >&6; }
10929 fi
10930 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10931 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10932 { (exit 1); exit 1; }; }
10933 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10934 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10935 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10936 echo $ECHO_N "(cached) $ECHO_C" >&6
10937 else
10938 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10939 case `$LD -v 2>&1 </dev/null` in
10940 *GNU* | *'with BFD'*)
10941 lt_cv_prog_gnu_ld=yes
10942 ;;
10943 *)
10944 lt_cv_prog_gnu_ld=no
10945 ;;
10946 esac
10947 fi
10948 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10949 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10950 with_gnu_ld=$lt_cv_prog_gnu_ld
10951
10952
10953
10954 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10955 # archiving commands below assume that GNU ld is being used.
10956 if test "$with_gnu_ld" = yes; then
10957 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10958 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'
10959
10960 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10961 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10962
10963 # If archive_cmds runs LD, not CC, wlarc should be empty
10964 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10965 # investigate it a little bit more. (MM)
10966 wlarc='${wl}'
10967
10968 # ancient GNU ld didn't support --whole-archive et. al.
10969 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10970 grep 'no-whole-archive' > /dev/null; then
10971 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10972 else
10973 whole_archive_flag_spec_CXX=
10974 fi
10975 else
10976 with_gnu_ld=no
10977 wlarc=
10978
10979 # A generic and very simple default shared library creation
10980 # command for GNU C++ for the case where it uses the native
10981 # linker, instead of GNU ld. If possible, this setting should
10982 # overridden to take advantage of the native linker features on
10983 # the platform it is being used on.
10984 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10985 fi
10986
10987 # Commands to make compiler produce verbose output that lists
10988 # what "hidden" libraries, object files and flags are used when
10989 # linking a shared library.
10990 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10991
10992 else
10993 GXX=no
10994 with_gnu_ld=no
10995 wlarc=
10996 fi
10997
10998 # PORTME: fill in a description of your system's C++ link characteristics
10999 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11000 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11001 ld_shlibs_CXX=yes
11002 case $host_os in
11003 aix3*)
11004 # FIXME: insert proper C++ library support
11005 ld_shlibs_CXX=no
11006 ;;
11007 aix4* | aix5*)
11008 if test "$host_cpu" = ia64; then
11009 # On IA64, the linker does run time linking by default, so we don't
11010 # have to do anything special.
11011 aix_use_runtimelinking=no
11012 exp_sym_flag='-Bexport'
11013 no_entry_flag=""
11014 else
11015 aix_use_runtimelinking=no
11016
11017 # Test if we are trying to use run time linking or normal
11018 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11019 # need to do runtime linking.
11020 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11021 for ld_flag in $LDFLAGS; do
11022 case $ld_flag in
11023 *-brtl*)
11024 aix_use_runtimelinking=yes
11025 break
11026 ;;
11027 esac
11028 done
11029 ;;
11030 esac
11031
11032 exp_sym_flag='-bexport'
11033 no_entry_flag='-bnoentry'
11034 fi
11035
11036 # When large executables or shared objects are built, AIX ld can
11037 # have problems creating the table of contents. If linking a library
11038 # or program results in "error TOC overflow" add -mminimal-toc to
11039 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11040 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11041
11042 archive_cmds_CXX=''
11043 hardcode_direct_CXX=yes
11044 hardcode_libdir_separator_CXX=':'
11045 link_all_deplibs_CXX=yes
11046
11047 if test "$GXX" = yes; then
11048 case $host_os in aix4.[012]|aix4.[012].*)
11049 # We only want to do this on AIX 4.2 and lower, the check
11050 # below for broken collect2 doesn't work under 4.3+
11051 collect2name=`${CC} -print-prog-name=collect2`
11052 if test -f "$collect2name" && \
11053 strings "$collect2name" | grep resolve_lib_name >/dev/null
11054 then
11055 # We have reworked collect2
11056 :
11057 else
11058 # We have old collect2
11059 hardcode_direct_CXX=unsupported
11060 # It fails to find uninstalled libraries when the uninstalled
11061 # path is not listed in the libpath. Setting hardcode_minus_L
11062 # to unsupported forces relinking
11063 hardcode_minus_L_CXX=yes
11064 hardcode_libdir_flag_spec_CXX='-L$libdir'
11065 hardcode_libdir_separator_CXX=
11066 fi
11067 ;;
11068 esac
11069 shared_flag='-shared'
11070 if test "$aix_use_runtimelinking" = yes; then
11071 shared_flag="$shared_flag "'${wl}-G'
11072 fi
11073 else
11074 # not using gcc
11075 if test "$host_cpu" = ia64; then
11076 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11077 # chokes on -Wl,-G. The following line is correct:
11078 shared_flag='-G'
11079 else
11080 if test "$aix_use_runtimelinking" = yes; then
11081 shared_flag='${wl}-G'
11082 else
11083 shared_flag='${wl}-bM:SRE'
11084 fi
11085 fi
11086 fi
11087
11088 # It seems that -bexpall does not export symbols beginning with
11089 # underscore (_), so it is better to generate a list of symbols to export.
11090 always_export_symbols_CXX=yes
11091 if test "$aix_use_runtimelinking" = yes; then
11092 # Warning - without using the other runtime loading flags (-brtl),
11093 # -berok will link without error, but may produce a broken library.
11094 allow_undefined_flag_CXX='-berok'
11095 # Determine the default libpath from the value encoded in an empty executable.
11096 cat >conftest.$ac_ext <<_ACEOF
11097 /* confdefs.h. */
11098 _ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h. */
11102
11103 int
11104 main ()
11105 {
11106
11107 ;
11108 return 0;
11109 }
11110 _ACEOF
11111 rm -f conftest.$ac_objext conftest$ac_exeext
11112 if { (ac_try="$ac_link"
11113 case "(($ac_try" in
11114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11115 *) ac_try_echo=$ac_try;;
11116 esac
11117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11118 (eval "$ac_link") 2>conftest.er1
11119 ac_status=$?
11120 grep -v '^ *+' conftest.er1 >conftest.err
11121 rm -f conftest.er1
11122 cat conftest.err >&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } && {
11125 test -z "$ac_cxx_werror_flag" ||
11126 test ! -s conftest.err
11127 } && test -s conftest$ac_exeext &&
11128 $as_test_x conftest$ac_exeext; then
11129
11130 lt_aix_libpath_sed='
11131 /Import File Strings/,/^$/ {
11132 /^0/ {
11133 s/^0 *\(.*\)$/\1/
11134 p
11135 }
11136 }'
11137 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11138 # Check for a 64-bit object if we didn't find anything.
11139 if test -z "$aix_libpath"; then
11140 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11141 fi
11142 else
11143 echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11145
11146
11147 fi
11148
11149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11150 conftest$ac_exeext conftest.$ac_ext
11151 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11152
11153 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11154
11155 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"
11156 else
11157 if test "$host_cpu" = ia64; then
11158 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11159 allow_undefined_flag_CXX="-z nodefs"
11160 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"
11161 else
11162 # Determine the default libpath from the value encoded in an empty executable.
11163 cat >conftest.$ac_ext <<_ACEOF
11164 /* confdefs.h. */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11169
11170 int
11171 main ()
11172 {
11173
11174 ;
11175 return 0;
11176 }
11177 _ACEOF
11178 rm -f conftest.$ac_objext conftest$ac_exeext
11179 if { (ac_try="$ac_link"
11180 case "(($ac_try" in
11181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182 *) ac_try_echo=$ac_try;;
11183 esac
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185 (eval "$ac_link") 2>conftest.er1
11186 ac_status=$?
11187 grep -v '^ *+' conftest.er1 >conftest.err
11188 rm -f conftest.er1
11189 cat conftest.err >&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } && {
11192 test -z "$ac_cxx_werror_flag" ||
11193 test ! -s conftest.err
11194 } && test -s conftest$ac_exeext &&
11195 $as_test_x conftest$ac_exeext; then
11196
11197 lt_aix_libpath_sed='
11198 /Import File Strings/,/^$/ {
11199 /^0/ {
11200 s/^0 *\(.*\)$/\1/
11201 p
11202 }
11203 }'
11204 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11205 # Check for a 64-bit object if we didn't find anything.
11206 if test -z "$aix_libpath"; then
11207 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11208 fi
11209 else
11210 echo "$as_me: failed program was:" >&5
11211 sed 's/^/| /' conftest.$ac_ext >&5
11212
11213
11214 fi
11215
11216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11217 conftest$ac_exeext conftest.$ac_ext
11218 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11219
11220 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11221 # Warning - without using the other run time loading flags,
11222 # -berok will link without error, but may produce a broken library.
11223 no_undefined_flag_CXX=' ${wl}-bernotok'
11224 allow_undefined_flag_CXX=' ${wl}-berok'
11225 # Exported symbols can be pulled into shared objects from archives
11226 whole_archive_flag_spec_CXX='$convenience'
11227 archive_cmds_need_lc_CXX=yes
11228 # This is similar to how AIX traditionally builds its shared libraries.
11229 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'
11230 fi
11231 fi
11232 ;;
11233
11234 beos*)
11235 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11236 allow_undefined_flag_CXX=unsupported
11237 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11238 # support --undefined. This deserves some investigation. FIXME
11239 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11240 else
11241 ld_shlibs_CXX=no
11242 fi
11243 ;;
11244
11245 chorus*)
11246 case $cc_basename in
11247 *)
11248 # FIXME: insert proper C++ library support
11249 ld_shlibs_CXX=no
11250 ;;
11251 esac
11252 ;;
11253
11254 cygwin* | mingw* | pw32*)
11255 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11256 # as there is no search path for DLLs.
11257 hardcode_libdir_flag_spec_CXX='-L$libdir'
11258 allow_undefined_flag_CXX=unsupported
11259 always_export_symbols_CXX=no
11260 enable_shared_with_static_runtimes_CXX=yes
11261
11262 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11263 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'
11264 # If the export-symbols file already is a .def file (1st line
11265 # is EXPORTS), use it as is; otherwise, prepend...
11266 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11267 cp $export_symbols $output_objdir/$soname.def;
11268 else
11269 echo EXPORTS > $output_objdir/$soname.def;
11270 cat $export_symbols >> $output_objdir/$soname.def;
11271 fi~
11272 $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'
11273 else
11274 ld_shlibs_CXX=no
11275 fi
11276 ;;
11277 darwin* | rhapsody*)
11278 case $host_os in
11279 rhapsody* | darwin1.[012])
11280 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11281 ;;
11282 *) # Darwin 1.3 on
11283 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11284 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11285 else
11286 case ${MACOSX_DEPLOYMENT_TARGET} in
11287 10.[012])
11288 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11289 ;;
11290 10.*)
11291 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11292 ;;
11293 esac
11294 fi
11295 ;;
11296 esac
11297 archive_cmds_need_lc_CXX=no
11298 hardcode_direct_CXX=no
11299 hardcode_automatic_CXX=yes
11300 hardcode_shlibpath_var_CXX=unsupported
11301 whole_archive_flag_spec_CXX=''
11302 link_all_deplibs_CXX=yes
11303
11304 if test "$GXX" = yes ; then
11305 lt_int_apple_cc_single_mod=no
11306 output_verbose_link_cmd='echo'
11307 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11308 lt_int_apple_cc_single_mod=yes
11309 fi
11310 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11311 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11312 else
11313 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'
11314 fi
11315 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11316 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11317 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11318 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11319 else
11320 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11321 fi
11322 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}'
11323 else
11324 case $cc_basename in
11325 xlc*)
11326 output_verbose_link_cmd='echo'
11327 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'
11328 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11329 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11330 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}'
11331 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}'
11332 ;;
11333 *)
11334 ld_shlibs_CXX=no
11335 ;;
11336 esac
11337 fi
11338 ;;
11339
11340 dgux*)
11341 case $cc_basename in
11342 ec++*)
11343 # FIXME: insert proper C++ library support
11344 ld_shlibs_CXX=no
11345 ;;
11346 ghcx*)
11347 # Green Hills C++ Compiler
11348 # FIXME: insert proper C++ library support
11349 ld_shlibs_CXX=no
11350 ;;
11351 *)
11352 # FIXME: insert proper C++ library support
11353 ld_shlibs_CXX=no
11354 ;;
11355 esac
11356 ;;
11357 freebsd[12]*)
11358 # C++ shared libraries reported to be fairly broken before switch to ELF
11359 ld_shlibs_CXX=no
11360 ;;
11361 freebsd-elf*)
11362 archive_cmds_need_lc_CXX=no
11363 ;;
11364 freebsd* | dragonfly*)
11365 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11366 # conventions
11367 ld_shlibs_CXX=yes
11368 ;;
11369 gnu*)
11370 ;;
11371 hpux9*)
11372 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11373 hardcode_libdir_separator_CXX=:
11374 export_dynamic_flag_spec_CXX='${wl}-E'
11375 hardcode_direct_CXX=yes
11376 hardcode_minus_L_CXX=yes # Not in the search PATH,
11377 # but as the default
11378 # location of the library.
11379
11380 case $cc_basename in
11381 CC*)
11382 # FIXME: insert proper C++ library support
11383 ld_shlibs_CXX=no
11384 ;;
11385 aCC*)
11386 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'
11387 # Commands to make compiler produce verbose output that lists
11388 # what "hidden" libraries, object files and flags are used when
11389 # linking a shared library.
11390 #
11391 # There doesn't appear to be a way to prevent this compiler from
11392 # explicitly linking system object files so we need to strip them
11393 # from the output so that they don't get included in the library
11394 # dependencies.
11395 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'
11396 ;;
11397 *)
11398 if test "$GXX" = yes; then
11399 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'
11400 else
11401 # FIXME: insert proper C++ library support
11402 ld_shlibs_CXX=no
11403 fi
11404 ;;
11405 esac
11406 ;;
11407 hpux10*|hpux11*)
11408 if test $with_gnu_ld = no; then
11409 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11410 hardcode_libdir_separator_CXX=:
11411
11412 case $host_cpu in
11413 hppa*64*|ia64*) ;;
11414 *)
11415 export_dynamic_flag_spec_CXX='${wl}-E'
11416 ;;
11417 esac
11418 fi
11419 case $host_cpu in
11420 hppa*64*|ia64*)
11421 hardcode_direct_CXX=no
11422 hardcode_shlibpath_var_CXX=no
11423 ;;
11424 *)
11425 hardcode_direct_CXX=yes
11426 hardcode_minus_L_CXX=yes # Not in the search PATH,
11427 # but as the default
11428 # location of the library.
11429 ;;
11430 esac
11431
11432 case $cc_basename in
11433 CC*)
11434 # FIXME: insert proper C++ library support
11435 ld_shlibs_CXX=no
11436 ;;
11437 aCC*)
11438 case $host_cpu in
11439 hppa*64*)
11440 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11441 ;;
11442 ia64*)
11443 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11444 ;;
11445 *)
11446 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11447 ;;
11448 esac
11449 # Commands to make compiler produce verbose output that lists
11450 # what "hidden" libraries, object files and flags are used when
11451 # linking a shared library.
11452 #
11453 # There doesn't appear to be a way to prevent this compiler from
11454 # explicitly linking system object files so we need to strip them
11455 # from the output so that they don't get included in the library
11456 # dependencies.
11457 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'
11458 ;;
11459 *)
11460 if test "$GXX" = yes; then
11461 if test $with_gnu_ld = no; then
11462 case $host_cpu in
11463 hppa*64*)
11464 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11465 ;;
11466 ia64*)
11467 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11468 ;;
11469 *)
11470 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'
11471 ;;
11472 esac
11473 fi
11474 else
11475 # FIXME: insert proper C++ library support
11476 ld_shlibs_CXX=no
11477 fi
11478 ;;
11479 esac
11480 ;;
11481 interix[3-9]*)
11482 hardcode_direct_CXX=no
11483 hardcode_shlibpath_var_CXX=no
11484 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11485 export_dynamic_flag_spec_CXX='${wl}-E'
11486 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11487 # Instead, shared libraries are loaded at an image base (0x10000000 by
11488 # default) and relocated if they conflict, which is a slow very memory
11489 # consuming and fragmenting process. To avoid this, we pick a random,
11490 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11491 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11492 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'
11493 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'
11494 ;;
11495 irix5* | irix6*)
11496 case $cc_basename in
11497 CC*)
11498 # SGI C++
11499 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'
11500
11501 # Archives containing C++ object files must be created using
11502 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11503 # necessary to make sure instantiated templates are included
11504 # in the archive.
11505 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11506 ;;
11507 *)
11508 if test "$GXX" = yes; then
11509 if test "$with_gnu_ld" = no; then
11510 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'
11511 else
11512 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'
11513 fi
11514 fi
11515 link_all_deplibs_CXX=yes
11516 ;;
11517 esac
11518 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11519 hardcode_libdir_separator_CXX=:
11520 ;;
11521 linux* | k*bsd*-gnu)
11522 case $cc_basename in
11523 KCC*)
11524 # Kuck and Associates, Inc. (KAI) C++ Compiler
11525
11526 # KCC will only create a shared library if the output file
11527 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11528 # to its proper name (with version) after linking.
11529 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'
11530 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'
11531 # Commands to make compiler produce verbose output that lists
11532 # what "hidden" libraries, object files and flags are used when
11533 # linking a shared library.
11534 #
11535 # There doesn't appear to be a way to prevent this compiler from
11536 # explicitly linking system object files so we need to strip them
11537 # from the output so that they don't get included in the library
11538 # dependencies.
11539 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'
11540
11541 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11542 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11543
11544 # Archives containing C++ object files must be created using
11545 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11546 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11547 ;;
11548 icpc*)
11549 # Intel C++
11550 with_gnu_ld=yes
11551 # version 8.0 and above of icpc choke on multiply defined symbols
11552 # if we add $predep_objects and $postdep_objects, however 7.1 and
11553 # earlier do not add the objects themselves.
11554 case `$CC -V 2>&1` in
11555 *"Version 7."*)
11556 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11557 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'
11558 ;;
11559 *) # Version 8.0 or newer
11560 tmp_idyn=
11561 case $host_cpu in
11562 ia64*) tmp_idyn=' -i_dynamic';;
11563 esac
11564 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11565 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'
11566 ;;
11567 esac
11568 archive_cmds_need_lc_CXX=no
11569 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11570 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11571 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11572 ;;
11573 pgCC*)
11574 # Portland Group C++ compiler
11575 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11576 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'
11577
11578 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11579 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11580 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'
11581 ;;
11582 cxx*)
11583 # Compaq C++
11584 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11585 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'
11586
11587 runpath_var=LD_RUN_PATH
11588 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11589 hardcode_libdir_separator_CXX=:
11590
11591 # Commands to make compiler produce verbose output that lists
11592 # what "hidden" libraries, object files and flags are used when
11593 # linking a shared library.
11594 #
11595 # There doesn't appear to be a way to prevent this compiler from
11596 # explicitly linking system object files so we need to strip them
11597 # from the output so that they don't get included in the library
11598 # dependencies.
11599 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'
11600 ;;
11601 *)
11602 case `$CC -V 2>&1 | sed 5q` in
11603 *Sun\ C*)
11604 # Sun C++ 5.9
11605 no_undefined_flag_CXX=' -zdefs'
11606 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11607 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'
11608 hardcode_libdir_flag_spec_CXX='-R$libdir'
11609 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'
11610
11611 # Not sure whether something based on
11612 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11613 # would be better.
11614 output_verbose_link_cmd='echo'
11615
11616 # Archives containing C++ object files must be created using
11617 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11618 # necessary to make sure instantiated templates are included
11619 # in the archive.
11620 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11621 ;;
11622 esac
11623 ;;
11624 esac
11625 ;;
11626 lynxos*)
11627 # FIXME: insert proper C++ library support
11628 ld_shlibs_CXX=no
11629 ;;
11630 m88k*)
11631 # FIXME: insert proper C++ library support
11632 ld_shlibs_CXX=no
11633 ;;
11634 mvs*)
11635 case $cc_basename in
11636 cxx*)
11637 # FIXME: insert proper C++ library support
11638 ld_shlibs_CXX=no
11639 ;;
11640 *)
11641 # FIXME: insert proper C++ library support
11642 ld_shlibs_CXX=no
11643 ;;
11644 esac
11645 ;;
11646 netbsd*)
11647 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11648 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11649 wlarc=
11650 hardcode_libdir_flag_spec_CXX='-R$libdir'
11651 hardcode_direct_CXX=yes
11652 hardcode_shlibpath_var_CXX=no
11653 fi
11654 # Workaround some broken pre-1.5 toolchains
11655 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11656 ;;
11657 openbsd2*)
11658 # C++ shared libraries are fairly broken
11659 ld_shlibs_CXX=no
11660 ;;
11661 openbsd*)
11662 if test -f /usr/libexec/ld.so; then
11663 hardcode_direct_CXX=yes
11664 hardcode_shlibpath_var_CXX=no
11665 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11666 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11667 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11668 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11669 export_dynamic_flag_spec_CXX='${wl}-E'
11670 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11671 fi
11672 output_verbose_link_cmd='echo'
11673 else
11674 ld_shlibs_CXX=no
11675 fi
11676 ;;
11677 osf3*)
11678 case $cc_basename in
11679 KCC*)
11680 # Kuck and Associates, Inc. (KAI) C++ Compiler
11681
11682 # KCC will only create a shared library if the output file
11683 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11684 # to its proper name (with version) after linking.
11685 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'
11686
11687 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11688 hardcode_libdir_separator_CXX=:
11689
11690 # Archives containing C++ object files must be created using
11691 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11692 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11693
11694 ;;
11695 RCC*)
11696 # Rational C++ 2.4.1
11697 # FIXME: insert proper C++ library support
11698 ld_shlibs_CXX=no
11699 ;;
11700 cxx*)
11701 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11702 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'
11703
11704 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11705 hardcode_libdir_separator_CXX=:
11706
11707 # Commands to make compiler produce verbose output that lists
11708 # what "hidden" libraries, object files and flags are used when
11709 # linking a shared library.
11710 #
11711 # There doesn't appear to be a way to prevent this compiler from
11712 # explicitly linking system object files so we need to strip them
11713 # from the output so that they don't get included in the library
11714 # dependencies.
11715 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'
11716 ;;
11717 *)
11718 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11719 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11720 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'
11721
11722 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11723 hardcode_libdir_separator_CXX=:
11724
11725 # Commands to make compiler produce verbose output that lists
11726 # what "hidden" libraries, object files and flags are used when
11727 # linking a shared library.
11728 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11729
11730 else
11731 # FIXME: insert proper C++ library support
11732 ld_shlibs_CXX=no
11733 fi
11734 ;;
11735 esac
11736 ;;
11737 osf4* | osf5*)
11738 case $cc_basename in
11739 KCC*)
11740 # Kuck and Associates, Inc. (KAI) C++ Compiler
11741
11742 # KCC will only create a shared library if the output file
11743 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11744 # to its proper name (with version) after linking.
11745 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'
11746
11747 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11748 hardcode_libdir_separator_CXX=:
11749
11750 # Archives containing C++ object files must be created using
11751 # the KAI C++ compiler.
11752 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11753 ;;
11754 RCC*)
11755 # Rational C++ 2.4.1
11756 # FIXME: insert proper C++ library support
11757 ld_shlibs_CXX=no
11758 ;;
11759 cxx*)
11760 allow_undefined_flag_CXX=' -expect_unresolved \*'
11761 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'
11762 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11763 echo "-hidden">> $lib.exp~
11764 $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~
11765 $rm $lib.exp'
11766
11767 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11768 hardcode_libdir_separator_CXX=:
11769
11770 # Commands to make compiler produce verbose output that lists
11771 # what "hidden" libraries, object files and flags are used when
11772 # linking a shared library.
11773 #
11774 # There doesn't appear to be a way to prevent this compiler from
11775 # explicitly linking system object files so we need to strip them
11776 # from the output so that they don't get included in the library
11777 # dependencies.
11778 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'
11779 ;;
11780 *)
11781 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11782 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11783 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'
11784
11785 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11786 hardcode_libdir_separator_CXX=:
11787
11788 # Commands to make compiler produce verbose output that lists
11789 # what "hidden" libraries, object files and flags are used when
11790 # linking a shared library.
11791 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11792
11793 else
11794 # FIXME: insert proper C++ library support
11795 ld_shlibs_CXX=no
11796 fi
11797 ;;
11798 esac
11799 ;;
11800 psos*)
11801 # FIXME: insert proper C++ library support
11802 ld_shlibs_CXX=no
11803 ;;
11804 sunos4*)
11805 case $cc_basename in
11806 CC*)
11807 # Sun C++ 4.x
11808 # FIXME: insert proper C++ library support
11809 ld_shlibs_CXX=no
11810 ;;
11811 lcc*)
11812 # Lucid
11813 # FIXME: insert proper C++ library support
11814 ld_shlibs_CXX=no
11815 ;;
11816 *)
11817 # FIXME: insert proper C++ library support
11818 ld_shlibs_CXX=no
11819 ;;
11820 esac
11821 ;;
11822 solaris*)
11823 case $cc_basename in
11824 CC*)
11825 # Sun C++ 4.2, 5.x and Centerline C++
11826 archive_cmds_need_lc_CXX=yes
11827 no_undefined_flag_CXX=' -zdefs'
11828 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11829 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11830 $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'
11831
11832 hardcode_libdir_flag_spec_CXX='-R$libdir'
11833 hardcode_shlibpath_var_CXX=no
11834 case $host_os in
11835 solaris2.[0-5] | solaris2.[0-5].*) ;;
11836 *)
11837 # The compiler driver will combine and reorder linker options,
11838 # but understands `-z linker_flag'.
11839 # Supported since Solaris 2.6 (maybe 2.5.1?)
11840 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11841 ;;
11842 esac
11843 link_all_deplibs_CXX=yes
11844
11845 output_verbose_link_cmd='echo'
11846
11847 # Archives containing C++ object files must be created using
11848 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11849 # necessary to make sure instantiated templates are included
11850 # in the archive.
11851 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11852 ;;
11853 gcx*)
11854 # Green Hills C++ Compiler
11855 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11856
11857 # The C++ compiler must be used to create the archive.
11858 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11859 ;;
11860 *)
11861 # GNU C++ compiler with Solaris linker
11862 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11863 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11864 if $CC --version | grep -v '^2\.7' > /dev/null; then
11865 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11866 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11867 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11868
11869 # Commands to make compiler produce verbose output that lists
11870 # what "hidden" libraries, object files and flags are used when
11871 # linking a shared library.
11872 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11873 else
11874 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11875 # platform.
11876 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11877 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11878 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11879
11880 # Commands to make compiler produce verbose output that lists
11881 # what "hidden" libraries, object files and flags are used when
11882 # linking a shared library.
11883 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11884 fi
11885
11886 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11887 case $host_os in
11888 solaris2.[0-5] | solaris2.[0-5].*) ;;
11889 *)
11890 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11891 ;;
11892 esac
11893 fi
11894 ;;
11895 esac
11896 ;;
11897 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11898 no_undefined_flag_CXX='${wl}-z,text'
11899 archive_cmds_need_lc_CXX=no
11900 hardcode_shlibpath_var_CXX=no
11901 runpath_var='LD_RUN_PATH'
11902
11903 case $cc_basename in
11904 CC*)
11905 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11906 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11907 ;;
11908 *)
11909 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11910 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11911 ;;
11912 esac
11913 ;;
11914 sysv5* | sco3.2v5* | sco5v6*)
11915 # Note: We can NOT use -z defs as we might desire, because we do not
11916 # link with -lc, and that would cause any symbols used from libc to
11917 # always be unresolved, which means just about no library would
11918 # ever link correctly. If we're not using GNU ld we use -z text
11919 # though, which does catch some bad symbols but isn't as heavy-handed
11920 # as -z defs.
11921 # For security reasons, it is highly recommended that you always
11922 # use absolute paths for naming shared libraries, and exclude the
11923 # DT_RUNPATH tag from executables and libraries. But doing so
11924 # requires that you compile everything twice, which is a pain.
11925 # So that behaviour is only enabled if SCOABSPATH is set to a
11926 # non-empty value in the environment. Most likely only useful for
11927 # creating official distributions of packages.
11928 # This is a hack until libtool officially supports absolute path
11929 # names for shared libraries.
11930 no_undefined_flag_CXX='${wl}-z,text'
11931 allow_undefined_flag_CXX='${wl}-z,nodefs'
11932 archive_cmds_need_lc_CXX=no
11933 hardcode_shlibpath_var_CXX=no
11934 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11935 hardcode_libdir_separator_CXX=':'
11936 link_all_deplibs_CXX=yes
11937 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11938 runpath_var='LD_RUN_PATH'
11939
11940 case $cc_basename in
11941 CC*)
11942 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11943 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11944 ;;
11945 *)
11946 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11947 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11948 ;;
11949 esac
11950 ;;
11951 tandem*)
11952 case $cc_basename in
11953 NCC*)
11954 # NonStop-UX NCC 3.20
11955 # FIXME: insert proper C++ library support
11956 ld_shlibs_CXX=no
11957 ;;
11958 *)
11959 # FIXME: insert proper C++ library support
11960 ld_shlibs_CXX=no
11961 ;;
11962 esac
11963 ;;
11964 vxworks*)
11965 # FIXME: insert proper C++ library support
11966 ld_shlibs_CXX=no
11967 ;;
11968 *)
11969 # FIXME: insert proper C++ library support
11970 ld_shlibs_CXX=no
11971 ;;
11972 esac
11973 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11974 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11975 test "$ld_shlibs_CXX" = no && can_build_shared=no
11976
11977 GCC_CXX="$GXX"
11978 LD_CXX="$LD"
11979
11980
11981 cat > conftest.$ac_ext <<EOF
11982 class Foo
11983 {
11984 public:
11985 Foo (void) { a = 0; }
11986 private:
11987 int a;
11988 };
11989 EOF
11990
11991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11992 (eval $ac_compile) 2>&5
11993 ac_status=$?
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); }; then
11996 # Parse the compiler output and extract the necessary
11997 # objects, libraries and library flags.
11998
11999 # Sentinel used to keep track of whether or not we are before
12000 # the conftest object file.
12001 pre_test_object_deps_done=no
12002
12003 # The `*' in the case matches for architectures that use `case' in
12004 # $output_verbose_cmd can trigger glob expansion during the loop
12005 # eval without this substitution.
12006 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12007
12008 for p in `eval $output_verbose_link_cmd`; do
12009 case $p in
12010
12011 -L* | -R* | -l*)
12012 # Some compilers place space between "-{L,R}" and the path.
12013 # Remove the space.
12014 if test $p = "-L" \
12015 || test $p = "-R"; then
12016 prev=$p
12017 continue
12018 else
12019 prev=
12020 fi
12021
12022 if test "$pre_test_object_deps_done" = no; then
12023 case $p in
12024 -L* | -R*)
12025 # Internal compiler library paths should come after those
12026 # provided the user. The postdeps already come after the
12027 # user supplied libs so there is no need to process them.
12028 if test -z "$compiler_lib_search_path_CXX"; then
12029 compiler_lib_search_path_CXX="${prev}${p}"
12030 else
12031 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12032 fi
12033 ;;
12034 # The "-l" case would never come before the object being
12035 # linked, so don't bother handling this case.
12036 esac
12037 else
12038 if test -z "$postdeps_CXX"; then
12039 postdeps_CXX="${prev}${p}"
12040 else
12041 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12042 fi
12043 fi
12044 ;;
12045
12046 *.$objext)
12047 # This assumes that the test object file only shows up
12048 # once in the compiler output.
12049 if test "$p" = "conftest.$objext"; then
12050 pre_test_object_deps_done=yes
12051 continue
12052 fi
12053
12054 if test "$pre_test_object_deps_done" = no; then
12055 if test -z "$predep_objects_CXX"; then
12056 predep_objects_CXX="$p"
12057 else
12058 predep_objects_CXX="$predep_objects_CXX $p"
12059 fi
12060 else
12061 if test -z "$postdep_objects_CXX"; then
12062 postdep_objects_CXX="$p"
12063 else
12064 postdep_objects_CXX="$postdep_objects_CXX $p"
12065 fi
12066 fi
12067 ;;
12068
12069 *) ;; # Ignore the rest.
12070
12071 esac
12072 done
12073
12074 # Clean up.
12075 rm -f a.out a.exe
12076 else
12077 echo "libtool.m4: error: problem compiling CXX test program"
12078 fi
12079
12080 $rm -f confest.$objext
12081
12082 # PORTME: override above test on systems where it is broken
12083 case $host_os in
12084 interix[3-9]*)
12085 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12086 # hack all around it, let's just trust "g++" to DTRT.
12087 predep_objects_CXX=
12088 postdep_objects_CXX=
12089 postdeps_CXX=
12090 ;;
12091
12092 linux*)
12093 case `$CC -V 2>&1 | sed 5q` in
12094 *Sun\ C*)
12095 # Sun C++ 5.9
12096 #
12097 # The more standards-conforming stlport4 library is
12098 # incompatible with the Cstd library. Avoid specifying
12099 # it if it's in CXXFLAGS. Ignore libCrun as
12100 # -library=stlport4 depends on it.
12101 case " $CXX $CXXFLAGS " in
12102 *" -library=stlport4 "*)
12103 solaris_use_stlport4=yes
12104 ;;
12105 esac
12106 if test "$solaris_use_stlport4" != yes; then
12107 postdeps_CXX='-library=Cstd -library=Crun'
12108 fi
12109 ;;
12110 esac
12111 ;;
12112
12113 solaris*)
12114 case $cc_basename in
12115 CC*)
12116 # The more standards-conforming stlport4 library is
12117 # incompatible with the Cstd library. Avoid specifying
12118 # it if it's in CXXFLAGS. Ignore libCrun as
12119 # -library=stlport4 depends on it.
12120 case " $CXX $CXXFLAGS " in
12121 *" -library=stlport4 "*)
12122 solaris_use_stlport4=yes
12123 ;;
12124 esac
12125
12126 # Adding this requires a known-good setup of shared libraries for
12127 # Sun compiler versions before 5.6, else PIC objects from an old
12128 # archive will be linked into the output, leading to subtle bugs.
12129 if test "$solaris_use_stlport4" != yes; then
12130 postdeps_CXX='-library=Cstd -library=Crun'
12131 fi
12132 ;;
12133 esac
12134 ;;
12135 esac
12136
12137
12138 case " $postdeps_CXX " in
12139 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12140 esac
12141
12142 lt_prog_compiler_wl_CXX=
12143 lt_prog_compiler_pic_CXX=
12144 lt_prog_compiler_static_CXX=
12145
12146 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12147 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12148
12149 # C++ specific cases for pic, static, wl, etc.
12150 if test "$GXX" = yes; then
12151 lt_prog_compiler_wl_CXX='-Wl,'
12152 lt_prog_compiler_static_CXX='-static'
12153
12154 case $host_os in
12155 aix*)
12156 # All AIX code is PIC.
12157 if test "$host_cpu" = ia64; then
12158 # AIX 5 now supports IA64 processor
12159 lt_prog_compiler_static_CXX='-Bstatic'
12160 fi
12161 ;;
12162 amigaos*)
12163 # FIXME: we need at least 68020 code to build shared libraries, but
12164 # adding the `-m68020' flag to GCC prevents building anything better,
12165 # like `-m68040'.
12166 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12167 ;;
12168 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12169 # PIC is the default for these OSes.
12170 ;;
12171 mingw* | cygwin* | os2* | pw32*)
12172 # This hack is so that the source file can tell whether it is being
12173 # built for inclusion in a dll (and should export symbols for example).
12174 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12175 # (--disable-auto-import) libraries
12176 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12177 ;;
12178 darwin* | rhapsody*)
12179 # PIC is the default on this platform
12180 # Common symbols not allowed in MH_DYLIB files
12181 lt_prog_compiler_pic_CXX='-fno-common'
12182 ;;
12183 *djgpp*)
12184 # DJGPP does not support shared libraries at all
12185 lt_prog_compiler_pic_CXX=
12186 ;;
12187 interix[3-9]*)
12188 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12189 # Instead, we relocate shared libraries at runtime.
12190 ;;
12191 sysv4*MP*)
12192 if test -d /usr/nec; then
12193 lt_prog_compiler_pic_CXX=-Kconform_pic
12194 fi
12195 ;;
12196 hpux*)
12197 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12198 # not for PA HP-UX.
12199 case $host_cpu in
12200 hppa*64*|ia64*)
12201 ;;
12202 *)
12203 lt_prog_compiler_pic_CXX='-fPIC'
12204 ;;
12205 esac
12206 ;;
12207 *)
12208 lt_prog_compiler_pic_CXX='-fPIC'
12209 ;;
12210 esac
12211 else
12212 case $host_os in
12213 aix4* | aix5*)
12214 # All AIX code is PIC.
12215 if test "$host_cpu" = ia64; then
12216 # AIX 5 now supports IA64 processor
12217 lt_prog_compiler_static_CXX='-Bstatic'
12218 else
12219 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12220 fi
12221 ;;
12222 chorus*)
12223 case $cc_basename in
12224 cxch68*)
12225 # Green Hills C++ Compiler
12226 # _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"
12227 ;;
12228 esac
12229 ;;
12230 darwin*)
12231 # PIC is the default on this platform
12232 # Common symbols not allowed in MH_DYLIB files
12233 case $cc_basename in
12234 xlc*)
12235 lt_prog_compiler_pic_CXX='-qnocommon'
12236 lt_prog_compiler_wl_CXX='-Wl,'
12237 ;;
12238 esac
12239 ;;
12240 dgux*)
12241 case $cc_basename in
12242 ec++*)
12243 lt_prog_compiler_pic_CXX='-KPIC'
12244 ;;
12245 ghcx*)
12246 # Green Hills C++ Compiler
12247 lt_prog_compiler_pic_CXX='-pic'
12248 ;;
12249 *)
12250 ;;
12251 esac
12252 ;;
12253 freebsd* | dragonfly*)
12254 # FreeBSD uses GNU C++
12255 ;;
12256 hpux9* | hpux10* | hpux11*)
12257 case $cc_basename in
12258 CC*)
12259 lt_prog_compiler_wl_CXX='-Wl,'
12260 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12261 if test "$host_cpu" != ia64; then
12262 lt_prog_compiler_pic_CXX='+Z'
12263 fi
12264 ;;
12265 aCC*)
12266 lt_prog_compiler_wl_CXX='-Wl,'
12267 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12268 case $host_cpu in
12269 hppa*64*|ia64*)
12270 # +Z the default
12271 ;;
12272 *)
12273 lt_prog_compiler_pic_CXX='+Z'
12274 ;;
12275 esac
12276 ;;
12277 *)
12278 ;;
12279 esac
12280 ;;
12281 interix*)
12282 # This is c89, which is MS Visual C++ (no shared libs)
12283 # Anyone wants to do a port?
12284 ;;
12285 irix5* | irix6* | nonstopux*)
12286 case $cc_basename in
12287 CC*)
12288 lt_prog_compiler_wl_CXX='-Wl,'
12289 lt_prog_compiler_static_CXX='-non_shared'
12290 # CC pic flag -KPIC is the default.
12291 ;;
12292 *)
12293 ;;
12294 esac
12295 ;;
12296 linux* | k*bsd*-gnu)
12297 case $cc_basename in
12298 KCC*)
12299 # KAI C++ Compiler
12300 lt_prog_compiler_wl_CXX='--backend -Wl,'
12301 lt_prog_compiler_pic_CXX='-fPIC'
12302 ;;
12303 icpc* | ecpc*)
12304 # Intel C++
12305 lt_prog_compiler_wl_CXX='-Wl,'
12306 lt_prog_compiler_pic_CXX='-KPIC'
12307 lt_prog_compiler_static_CXX='-static'
12308 ;;
12309 pgCC*)
12310 # Portland Group C++ compiler.
12311 lt_prog_compiler_wl_CXX='-Wl,'
12312 lt_prog_compiler_pic_CXX='-fpic'
12313 lt_prog_compiler_static_CXX='-Bstatic'
12314 ;;
12315 cxx*)
12316 # Compaq C++
12317 # Make sure the PIC flag is empty. It appears that all Alpha
12318 # Linux and Compaq Tru64 Unix objects are PIC.
12319 lt_prog_compiler_pic_CXX=
12320 lt_prog_compiler_static_CXX='-non_shared'
12321 ;;
12322 *)
12323 case `$CC -V 2>&1 | sed 5q` in
12324 *Sun\ C*)
12325 # Sun C++ 5.9
12326 lt_prog_compiler_pic_CXX='-KPIC'
12327 lt_prog_compiler_static_CXX='-Bstatic'
12328 lt_prog_compiler_wl_CXX='-Qoption ld '
12329 ;;
12330 esac
12331 ;;
12332 esac
12333 ;;
12334 lynxos*)
12335 ;;
12336 m88k*)
12337 ;;
12338 mvs*)
12339 case $cc_basename in
12340 cxx*)
12341 lt_prog_compiler_pic_CXX='-W c,exportall'
12342 ;;
12343 *)
12344 ;;
12345 esac
12346 ;;
12347 netbsd*)
12348 ;;
12349 osf3* | osf4* | osf5*)
12350 case $cc_basename in
12351 KCC*)
12352 lt_prog_compiler_wl_CXX='--backend -Wl,'
12353 ;;
12354 RCC*)
12355 # Rational C++ 2.4.1
12356 lt_prog_compiler_pic_CXX='-pic'
12357 ;;
12358 cxx*)
12359 # Digital/Compaq C++
12360 lt_prog_compiler_wl_CXX='-Wl,'
12361 # Make sure the PIC flag is empty. It appears that all Alpha
12362 # Linux and Compaq Tru64 Unix objects are PIC.
12363 lt_prog_compiler_pic_CXX=
12364 lt_prog_compiler_static_CXX='-non_shared'
12365 ;;
12366 *)
12367 ;;
12368 esac
12369 ;;
12370 psos*)
12371 ;;
12372 solaris*)
12373 case $cc_basename in
12374 CC*)
12375 # Sun C++ 4.2, 5.x and Centerline C++
12376 lt_prog_compiler_pic_CXX='-KPIC'
12377 lt_prog_compiler_static_CXX='-Bstatic'
12378 lt_prog_compiler_wl_CXX='-Qoption ld '
12379 ;;
12380 gcx*)
12381 # Green Hills C++ Compiler
12382 lt_prog_compiler_pic_CXX='-PIC'
12383 ;;
12384 *)
12385 ;;
12386 esac
12387 ;;
12388 sunos4*)
12389 case $cc_basename in
12390 CC*)
12391 # Sun C++ 4.x
12392 lt_prog_compiler_pic_CXX='-pic'
12393 lt_prog_compiler_static_CXX='-Bstatic'
12394 ;;
12395 lcc*)
12396 # Lucid
12397 lt_prog_compiler_pic_CXX='-pic'
12398 ;;
12399 *)
12400 ;;
12401 esac
12402 ;;
12403 tandem*)
12404 case $cc_basename in
12405 NCC*)
12406 # NonStop-UX NCC 3.20
12407 lt_prog_compiler_pic_CXX='-KPIC'
12408 ;;
12409 *)
12410 ;;
12411 esac
12412 ;;
12413 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12414 case $cc_basename in
12415 CC*)
12416 lt_prog_compiler_wl_CXX='-Wl,'
12417 lt_prog_compiler_pic_CXX='-KPIC'
12418 lt_prog_compiler_static_CXX='-Bstatic'
12419 ;;
12420 esac
12421 ;;
12422 vxworks*)
12423 ;;
12424 *)
12425 lt_prog_compiler_can_build_shared_CXX=no
12426 ;;
12427 esac
12428 fi
12429
12430 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12431 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12432
12433 #
12434 # Check to make sure the PIC flag actually works.
12435 #
12436 if test -n "$lt_prog_compiler_pic_CXX"; then
12437
12438 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12439 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12440 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12442 else
12443 lt_prog_compiler_pic_works_CXX=no
12444 ac_outfile=conftest.$ac_objext
12445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12446 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12447 # Insert the option either (1) after the last *FLAGS variable, or
12448 # (2) before a word containing "conftest.", or (3) at the end.
12449 # Note that $ac_compile itself does not contain backslashes and begins
12450 # with a dollar sign (not a hyphen), so the echo should work correctly.
12451 # The option is referenced via a variable to avoid confusing sed.
12452 lt_compile=`echo "$ac_compile" | $SED \
12453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12455 -e 's:$: $lt_compiler_flag:'`
12456 (eval echo "\"\$as_me:12456: $lt_compile\"" >&5)
12457 (eval "$lt_compile" 2>conftest.err)
12458 ac_status=$?
12459 cat conftest.err >&5
12460 echo "$as_me:12460: \$? = $ac_status" >&5
12461 if (exit $ac_status) && test -s "$ac_outfile"; then
12462 # The compiler can only warn and ignore the option if not recognized
12463 # So say no if there are warnings other than the usual output.
12464 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12466 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12467 lt_prog_compiler_pic_works_CXX=yes
12468 fi
12469 fi
12470 $rm conftest*
12471
12472 fi
12473 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12474 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12475
12476 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12477 case $lt_prog_compiler_pic_CXX in
12478 "" | " "*) ;;
12479 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12480 esac
12481 else
12482 lt_prog_compiler_pic_CXX=
12483 lt_prog_compiler_can_build_shared_CXX=no
12484 fi
12485
12486 fi
12487 case $host_os in
12488 # For platforms which do not support PIC, -DPIC is meaningless:
12489 *djgpp*)
12490 lt_prog_compiler_pic_CXX=
12491 ;;
12492 *)
12493 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12494 ;;
12495 esac
12496
12497 #
12498 # Check to make sure the static flag actually works.
12499 #
12500 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12501 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12502 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12503 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12505 else
12506 lt_prog_compiler_static_works_CXX=no
12507 save_LDFLAGS="$LDFLAGS"
12508 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12509 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12510 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12511 # The linker can only warn and ignore the option if not recognized
12512 # So say no if there are warnings
12513 if test -s conftest.err; then
12514 # Append any errors to the config.log.
12515 cat conftest.err 1>&5
12516 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12518 if diff conftest.exp conftest.er2 >/dev/null; then
12519 lt_prog_compiler_static_works_CXX=yes
12520 fi
12521 else
12522 lt_prog_compiler_static_works_CXX=yes
12523 fi
12524 fi
12525 $rm conftest*
12526 LDFLAGS="$save_LDFLAGS"
12527
12528 fi
12529 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12530 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12531
12532 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12533 :
12534 else
12535 lt_prog_compiler_static_CXX=
12536 fi
12537
12538
12539 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12540 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12541 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12542 echo $ECHO_N "(cached) $ECHO_C" >&6
12543 else
12544 lt_cv_prog_compiler_c_o_CXX=no
12545 $rm -r conftest 2>/dev/null
12546 mkdir conftest
12547 cd conftest
12548 mkdir out
12549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12550
12551 lt_compiler_flag="-o out/conftest2.$ac_objext"
12552 # Insert the option either (1) after the last *FLAGS variable, or
12553 # (2) before a word containing "conftest.", or (3) at the end.
12554 # Note that $ac_compile itself does not contain backslashes and begins
12555 # with a dollar sign (not a hyphen), so the echo should work correctly.
12556 lt_compile=`echo "$ac_compile" | $SED \
12557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12559 -e 's:$: $lt_compiler_flag:'`
12560 (eval echo "\"\$as_me:12560: $lt_compile\"" >&5)
12561 (eval "$lt_compile" 2>out/conftest.err)
12562 ac_status=$?
12563 cat out/conftest.err >&5
12564 echo "$as_me:12564: \$? = $ac_status" >&5
12565 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12566 then
12567 # The compiler can only warn and ignore the option if not recognized
12568 # So say no if there are warnings
12569 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12570 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12571 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12572 lt_cv_prog_compiler_c_o_CXX=yes
12573 fi
12574 fi
12575 chmod u+w . 2>&5
12576 $rm conftest*
12577 # SGI C++ compiler will create directory out/ii_files/ for
12578 # template instantiation
12579 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12580 $rm out/* && rmdir out
12581 cd ..
12582 rmdir conftest
12583 $rm conftest*
12584
12585 fi
12586 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12587 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12588
12589
12590 hard_links="nottested"
12591 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12592 # do not overwrite the value of need_locks provided by the user
12593 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12594 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12595 hard_links=yes
12596 $rm conftest*
12597 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12598 touch conftest.a
12599 ln conftest.a conftest.b 2>&5 || hard_links=no
12600 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12601 { echo "$as_me:$LINENO: result: $hard_links" >&5
12602 echo "${ECHO_T}$hard_links" >&6; }
12603 if test "$hard_links" = no; then
12604 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12605 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12606 need_locks=warn
12607 fi
12608 else
12609 need_locks=no
12610 fi
12611
12612 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12613 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12614
12615 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12616 case $host_os in
12617 aix4* | aix5*)
12618 # If we're using GNU nm, then we don't want the "-C" option.
12619 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12620 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12621 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'
12622 else
12623 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'
12624 fi
12625 ;;
12626 pw32*)
12627 export_symbols_cmds_CXX="$ltdll_cmds"
12628 ;;
12629 cygwin* | mingw*)
12630 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'
12631 ;;
12632 *)
12633 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12634 ;;
12635 esac
12636
12637 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12638 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12639 test "$ld_shlibs_CXX" = no && can_build_shared=no
12640
12641 #
12642 # Do we need to explicitly link libc?
12643 #
12644 case "x$archive_cmds_need_lc_CXX" in
12645 x|xyes)
12646 # Assume -lc should be added
12647 archive_cmds_need_lc_CXX=yes
12648
12649 if test "$enable_shared" = yes && test "$GCC" = yes; then
12650 case $archive_cmds_CXX in
12651 *'~'*)
12652 # FIXME: we may have to deal with multi-command sequences.
12653 ;;
12654 '$CC '*)
12655 # Test whether the compiler implicitly links with -lc since on some
12656 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12657 # to ld, don't add -lc before -lgcc.
12658 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12659 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12660 $rm conftest*
12661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12662
12663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12664 (eval $ac_compile) 2>&5
12665 ac_status=$?
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } 2>conftest.err; then
12668 soname=conftest
12669 lib=conftest
12670 libobjs=conftest.$ac_objext
12671 deplibs=
12672 wl=$lt_prog_compiler_wl_CXX
12673 pic_flag=$lt_prog_compiler_pic_CXX
12674 compiler_flags=-v
12675 linker_flags=-v
12676 verstring=
12677 output_objdir=.
12678 libname=conftest
12679 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12680 allow_undefined_flag_CXX=
12681 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12682 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12683 ac_status=$?
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }
12686 then
12687 archive_cmds_need_lc_CXX=no
12688 else
12689 archive_cmds_need_lc_CXX=yes
12690 fi
12691 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12692 else
12693 cat conftest.err 1>&5
12694 fi
12695 $rm conftest*
12696 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12697 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12698 ;;
12699 esac
12700 fi
12701 ;;
12702 esac
12703
12704 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12705 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12706 library_names_spec=
12707 libname_spec='lib$name'
12708 soname_spec=
12709 shrext_cmds=".so"
12710 postinstall_cmds=
12711 postuninstall_cmds=
12712 finish_cmds=
12713 finish_eval=
12714 shlibpath_var=
12715 shlibpath_overrides_runpath=unknown
12716 version_type=none
12717 dynamic_linker="$host_os ld.so"
12718 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12719
12720 need_lib_prefix=unknown
12721 hardcode_into_libs=no
12722
12723 # when you set need_version to no, make sure it does not cause -set_version
12724 # flags to be left without arguments
12725 need_version=unknown
12726
12727 case $host_os in
12728 aix3*)
12729 version_type=linux
12730 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12731 shlibpath_var=LIBPATH
12732
12733 # AIX 3 has no versioning support, so we append a major version to the name.
12734 soname_spec='${libname}${release}${shared_ext}$major'
12735 ;;
12736
12737 aix4* | aix5*)
12738 version_type=linux
12739 need_lib_prefix=no
12740 need_version=no
12741 hardcode_into_libs=yes
12742 if test "$host_cpu" = ia64; then
12743 # AIX 5 supports IA64
12744 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12745 shlibpath_var=LD_LIBRARY_PATH
12746 else
12747 # With GCC up to 2.95.x, collect2 would create an import file
12748 # for dependence libraries. The import file would start with
12749 # the line `#! .'. This would cause the generated library to
12750 # depend on `.', always an invalid library. This was fixed in
12751 # development snapshots of GCC prior to 3.0.
12752 case $host_os in
12753 aix4 | aix4.[01] | aix4.[01].*)
12754 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12755 echo ' yes '
12756 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12757 :
12758 else
12759 can_build_shared=no
12760 fi
12761 ;;
12762 esac
12763 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12764 # soname into executable. Probably we can add versioning support to
12765 # collect2, so additional links can be useful in future.
12766 if test "$aix_use_runtimelinking" = yes; then
12767 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12768 # instead of lib<name>.a to let people know that these are not
12769 # typical AIX shared libraries.
12770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12771 else
12772 # We preserve .a as extension for shared libraries through AIX4.2
12773 # and later when we are not doing run time linking.
12774 library_names_spec='${libname}${release}.a $libname.a'
12775 soname_spec='${libname}${release}${shared_ext}$major'
12776 fi
12777 shlibpath_var=LIBPATH
12778 fi
12779 ;;
12780
12781 amigaos*)
12782 library_names_spec='$libname.ixlibrary $libname.a'
12783 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12784 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'
12785 ;;
12786
12787 beos*)
12788 library_names_spec='${libname}${shared_ext}'
12789 dynamic_linker="$host_os ld.so"
12790 shlibpath_var=LIBRARY_PATH
12791 ;;
12792
12793 bsdi[45]*)
12794 version_type=linux
12795 need_version=no
12796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12797 soname_spec='${libname}${release}${shared_ext}$major'
12798 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12799 shlibpath_var=LD_LIBRARY_PATH
12800 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12801 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12802 # the default ld.so.conf also contains /usr/contrib/lib and
12803 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12804 # libtool to hard-code these into programs
12805 ;;
12806
12807 cygwin* | mingw* | pw32*)
12808 version_type=windows
12809 shrext_cmds=".dll"
12810 need_version=no
12811 need_lib_prefix=no
12812
12813 case $GCC,$host_os in
12814 yes,cygwin* | yes,mingw* | yes,pw32*)
12815 library_names_spec='$libname.dll.a'
12816 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12817 postinstall_cmds='base_file=`basename \${file}`~
12818 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12819 dldir=$destdir/`dirname \$dlpath`~
12820 test -d \$dldir || mkdir -p \$dldir~
12821 $install_prog $dir/$dlname \$dldir/$dlname~
12822 chmod a+x \$dldir/$dlname'
12823 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12824 dlpath=$dir/\$dldll~
12825 $rm \$dlpath'
12826 shlibpath_overrides_runpath=yes
12827
12828 case $host_os in
12829 cygwin*)
12830 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12831 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12832 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12833 ;;
12834 mingw*)
12835 # MinGW DLLs use traditional 'lib' prefix
12836 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12837 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12838 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12839 # It is most probably a Windows format PATH printed by
12840 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12841 # path with ; separators, and with drive letters. We can handle the
12842 # drive letters (cygwin fileutils understands them), so leave them,
12843 # especially as we might pass files found there to a mingw objdump,
12844 # which wouldn't understand a cygwinified path. Ahh.
12845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12846 else
12847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12848 fi
12849 ;;
12850 pw32*)
12851 # pw32 DLLs use 'pw' prefix rather than 'lib'
12852 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12853 ;;
12854 esac
12855 ;;
12856
12857 *)
12858 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12859 ;;
12860 esac
12861 dynamic_linker='Win32 ld.exe'
12862 # FIXME: first we should search . and the directory the executable is in
12863 shlibpath_var=PATH
12864 ;;
12865
12866 darwin* | rhapsody*)
12867 dynamic_linker="$host_os dyld"
12868 version_type=darwin
12869 need_lib_prefix=no
12870 need_version=no
12871 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12872 soname_spec='${libname}${release}${major}$shared_ext'
12873 shlibpath_overrides_runpath=yes
12874 shlibpath_var=DYLD_LIBRARY_PATH
12875 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12876
12877 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12878 ;;
12879
12880 dgux*)
12881 version_type=linux
12882 need_lib_prefix=no
12883 need_version=no
12884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12885 soname_spec='${libname}${release}${shared_ext}$major'
12886 shlibpath_var=LD_LIBRARY_PATH
12887 ;;
12888
12889 freebsd1*)
12890 dynamic_linker=no
12891 ;;
12892
12893 freebsd* | dragonfly*)
12894 # DragonFly does not have aout. When/if they implement a new
12895 # versioning mechanism, adjust this.
12896 if test -x /usr/bin/objformat; then
12897 objformat=`/usr/bin/objformat`
12898 else
12899 case $host_os in
12900 freebsd[123]*) objformat=aout ;;
12901 *) objformat=elf ;;
12902 esac
12903 fi
12904 version_type=freebsd-$objformat
12905 case $version_type in
12906 freebsd-elf*)
12907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12908 need_version=no
12909 need_lib_prefix=no
12910 ;;
12911 freebsd-*)
12912 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12913 need_version=yes
12914 ;;
12915 esac
12916 shlibpath_var=LD_LIBRARY_PATH
12917 case $host_os in
12918 freebsd2*)
12919 shlibpath_overrides_runpath=yes
12920 ;;
12921 freebsd3.[01]* | freebsdelf3.[01]*)
12922 shlibpath_overrides_runpath=yes
12923 hardcode_into_libs=yes
12924 ;;
12925 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12926 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12927 shlibpath_overrides_runpath=no
12928 hardcode_into_libs=yes
12929 ;;
12930 *) # from 4.6 on, and DragonFly
12931 shlibpath_overrides_runpath=yes
12932 hardcode_into_libs=yes
12933 ;;
12934 esac
12935 ;;
12936
12937 gnu*)
12938 version_type=linux
12939 need_lib_prefix=no
12940 need_version=no
12941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12942 soname_spec='${libname}${release}${shared_ext}$major'
12943 shlibpath_var=LD_LIBRARY_PATH
12944 hardcode_into_libs=yes
12945 ;;
12946
12947 hpux9* | hpux10* | hpux11*)
12948 # Give a soname corresponding to the major version so that dld.sl refuses to
12949 # link against other versions.
12950 version_type=sunos
12951 need_lib_prefix=no
12952 need_version=no
12953 case $host_cpu in
12954 ia64*)
12955 shrext_cmds='.so'
12956 hardcode_into_libs=yes
12957 dynamic_linker="$host_os dld.so"
12958 shlibpath_var=LD_LIBRARY_PATH
12959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12961 soname_spec='${libname}${release}${shared_ext}$major'
12962 if test "X$HPUX_IA64_MODE" = X32; then
12963 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12964 else
12965 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12966 fi
12967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12968 ;;
12969 hppa*64*)
12970 shrext_cmds='.sl'
12971 hardcode_into_libs=yes
12972 dynamic_linker="$host_os dld.sl"
12973 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12974 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12976 soname_spec='${libname}${release}${shared_ext}$major'
12977 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12978 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12979 ;;
12980 *)
12981 shrext_cmds='.sl'
12982 dynamic_linker="$host_os dld.sl"
12983 shlibpath_var=SHLIB_PATH
12984 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12986 soname_spec='${libname}${release}${shared_ext}$major'
12987 ;;
12988 esac
12989 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12990 postinstall_cmds='chmod 555 $lib'
12991 ;;
12992
12993 interix[3-9]*)
12994 version_type=linux
12995 need_lib_prefix=no
12996 need_version=no
12997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12998 soname_spec='${libname}${release}${shared_ext}$major'
12999 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13000 shlibpath_var=LD_LIBRARY_PATH
13001 shlibpath_overrides_runpath=no
13002 hardcode_into_libs=yes
13003 ;;
13004
13005 irix5* | irix6* | nonstopux*)
13006 case $host_os in
13007 nonstopux*) version_type=nonstopux ;;
13008 *)
13009 if test "$lt_cv_prog_gnu_ld" = yes; then
13010 version_type=linux
13011 else
13012 version_type=irix
13013 fi ;;
13014 esac
13015 need_lib_prefix=no
13016 need_version=no
13017 soname_spec='${libname}${release}${shared_ext}$major'
13018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13019 case $host_os in
13020 irix5* | nonstopux*)
13021 libsuff= shlibsuff=
13022 ;;
13023 *)
13024 case $LD in # libtool.m4 will add one of these switches to LD
13025 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13026 libsuff= shlibsuff= libmagic=32-bit;;
13027 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13028 libsuff=32 shlibsuff=N32 libmagic=N32;;
13029 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13030 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13031 *) libsuff= shlibsuff= libmagic=never-match;;
13032 esac
13033 ;;
13034 esac
13035 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13036 shlibpath_overrides_runpath=no
13037 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13038 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13039 hardcode_into_libs=yes
13040 ;;
13041
13042 # No shared lib support for Linux oldld, aout, or coff.
13043 linux*oldld* | linux*aout* | linux*coff*)
13044 dynamic_linker=no
13045 ;;
13046
13047 # This must be Linux ELF.
13048 linux* | k*bsd*-gnu)
13049 version_type=linux
13050 need_lib_prefix=no
13051 need_version=no
13052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13053 soname_spec='${libname}${release}${shared_ext}$major'
13054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13055 shlibpath_var=LD_LIBRARY_PATH
13056 shlibpath_overrides_runpath=no
13057 # This implies no fast_install, which is unacceptable.
13058 # Some rework will be needed to allow for fast_install
13059 # before this can be enabled.
13060 hardcode_into_libs=yes
13061 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13062 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13063
13064 # Append ld.so.conf contents to the search path
13065 if test -f /etc/ld.so.conf; then
13066 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' ' '`
13067 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13068 fi
13069
13070 # We used to test for /lib/ld.so.1 and disable shared libraries on
13071 # powerpc, because MkLinux only supported shared libraries with the
13072 # GNU dynamic linker. Since this was broken with cross compilers,
13073 # most powerpc-linux boxes support dynamic linking these days and
13074 # people can always --disable-shared, the test was removed, and we
13075 # assume the GNU/Linux dynamic linker is in use.
13076 dynamic_linker='GNU/Linux ld.so'
13077 ;;
13078
13079 netbsd*)
13080 version_type=sunos
13081 need_lib_prefix=no
13082 need_version=no
13083 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13085 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13086 dynamic_linker='NetBSD (a.out) ld.so'
13087 else
13088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13089 soname_spec='${libname}${release}${shared_ext}$major'
13090 dynamic_linker='NetBSD ld.elf_so'
13091 fi
13092 shlibpath_var=LD_LIBRARY_PATH
13093 shlibpath_overrides_runpath=yes
13094 hardcode_into_libs=yes
13095 ;;
13096
13097 newsos6)
13098 version_type=linux
13099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13100 shlibpath_var=LD_LIBRARY_PATH
13101 shlibpath_overrides_runpath=yes
13102 ;;
13103
13104 nto-qnx*)
13105 version_type=linux
13106 need_lib_prefix=no
13107 need_version=no
13108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13109 soname_spec='${libname}${release}${shared_ext}$major'
13110 shlibpath_var=LD_LIBRARY_PATH
13111 shlibpath_overrides_runpath=yes
13112 ;;
13113
13114 openbsd*)
13115 version_type=sunos
13116 sys_lib_dlsearch_path_spec="/usr/lib"
13117 need_lib_prefix=no
13118 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13119 case $host_os in
13120 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13121 *) need_version=no ;;
13122 esac
13123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13125 shlibpath_var=LD_LIBRARY_PATH
13126 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13127 case $host_os in
13128 openbsd2.[89] | openbsd2.[89].*)
13129 shlibpath_overrides_runpath=no
13130 ;;
13131 *)
13132 shlibpath_overrides_runpath=yes
13133 ;;
13134 esac
13135 else
13136 shlibpath_overrides_runpath=yes
13137 fi
13138 ;;
13139
13140 os2*)
13141 libname_spec='$name'
13142 shrext_cmds=".dll"
13143 need_lib_prefix=no
13144 library_names_spec='$libname${shared_ext} $libname.a'
13145 dynamic_linker='OS/2 ld.exe'
13146 shlibpath_var=LIBPATH
13147 ;;
13148
13149 osf3* | osf4* | osf5*)
13150 version_type=osf
13151 need_lib_prefix=no
13152 need_version=no
13153 soname_spec='${libname}${release}${shared_ext}$major'
13154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13155 shlibpath_var=LD_LIBRARY_PATH
13156 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13157 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13158 ;;
13159
13160 rdos*)
13161 dynamic_linker=no
13162 ;;
13163
13164 solaris*)
13165 version_type=linux
13166 need_lib_prefix=no
13167 need_version=no
13168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13169 soname_spec='${libname}${release}${shared_ext}$major'
13170 shlibpath_var=LD_LIBRARY_PATH
13171 shlibpath_overrides_runpath=yes
13172 hardcode_into_libs=yes
13173 # ldd complains unless libraries are executable
13174 postinstall_cmds='chmod +x $lib'
13175 ;;
13176
13177 sunos4*)
13178 version_type=sunos
13179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13180 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13181 shlibpath_var=LD_LIBRARY_PATH
13182 shlibpath_overrides_runpath=yes
13183 if test "$with_gnu_ld" = yes; then
13184 need_lib_prefix=no
13185 fi
13186 need_version=yes
13187 ;;
13188
13189 sysv4 | sysv4.3*)
13190 version_type=linux
13191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13192 soname_spec='${libname}${release}${shared_ext}$major'
13193 shlibpath_var=LD_LIBRARY_PATH
13194 case $host_vendor in
13195 sni)
13196 shlibpath_overrides_runpath=no
13197 need_lib_prefix=no
13198 export_dynamic_flag_spec='${wl}-Blargedynsym'
13199 runpath_var=LD_RUN_PATH
13200 ;;
13201 siemens)
13202 need_lib_prefix=no
13203 ;;
13204 motorola)
13205 need_lib_prefix=no
13206 need_version=no
13207 shlibpath_overrides_runpath=no
13208 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13209 ;;
13210 esac
13211 ;;
13212
13213 sysv4*MP*)
13214 if test -d /usr/nec ;then
13215 version_type=linux
13216 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13217 soname_spec='$libname${shared_ext}.$major'
13218 shlibpath_var=LD_LIBRARY_PATH
13219 fi
13220 ;;
13221
13222 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13223 version_type=freebsd-elf
13224 need_lib_prefix=no
13225 need_version=no
13226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13227 soname_spec='${libname}${release}${shared_ext}$major'
13228 shlibpath_var=LD_LIBRARY_PATH
13229 hardcode_into_libs=yes
13230 if test "$with_gnu_ld" = yes; then
13231 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13232 shlibpath_overrides_runpath=no
13233 else
13234 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13235 shlibpath_overrides_runpath=yes
13236 case $host_os in
13237 sco3.2v5*)
13238 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13239 ;;
13240 esac
13241 fi
13242 sys_lib_dlsearch_path_spec='/usr/lib'
13243 ;;
13244
13245 uts4*)
13246 version_type=linux
13247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13248 soname_spec='${libname}${release}${shared_ext}$major'
13249 shlibpath_var=LD_LIBRARY_PATH
13250 ;;
13251
13252 *)
13253 dynamic_linker=no
13254 ;;
13255 esac
13256 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13257 echo "${ECHO_T}$dynamic_linker" >&6; }
13258 test "$dynamic_linker" = no && can_build_shared=no
13259
13260 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13261 if test "$GCC" = yes; then
13262 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13263 fi
13264
13265 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13266 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13267 hardcode_action_CXX=
13268 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13269 test -n "$runpath_var_CXX" || \
13270 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13271
13272 # We can hardcode non-existant directories.
13273 if test "$hardcode_direct_CXX" != no &&
13274 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13275 # have to relink, otherwise we might link with an installed library
13276 # when we should be linking with a yet-to-be-installed one
13277 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13278 test "$hardcode_minus_L_CXX" != no; then
13279 # Linking always hardcodes the temporary library directory.
13280 hardcode_action_CXX=relink
13281 else
13282 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13283 hardcode_action_CXX=immediate
13284 fi
13285 else
13286 # We cannot hardcode anything, or else we can only hardcode existing
13287 # directories.
13288 hardcode_action_CXX=unsupported
13289 fi
13290 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13291 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13292
13293 if test "$hardcode_action_CXX" = relink; then
13294 # Fast installation is not supported
13295 enable_fast_install=no
13296 elif test "$shlibpath_overrides_runpath" = yes ||
13297 test "$enable_shared" = no; then
13298 # Fast installation is not necessary
13299 enable_fast_install=needless
13300 fi
13301
13302
13303 # The else clause should only fire when bootstrapping the
13304 # libtool distribution, otherwise you forgot to ship ltmain.sh
13305 # with your package, and you will get complaints that there are
13306 # no rules to generate ltmain.sh.
13307 if test -f "$ltmain"; then
13308 # See if we are running on zsh, and set the options which allow our commands through
13309 # without removal of \ escapes.
13310 if test -n "${ZSH_VERSION+set}" ; then
13311 setopt NO_GLOB_SUBST
13312 fi
13313 # Now quote all the things that may contain metacharacters while being
13314 # careful not to overquote the AC_SUBSTed values. We take copies of the
13315 # variables and quote the copies for generation of the libtool script.
13316 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13317 SED SHELL STRIP \
13318 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13319 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13320 deplibs_check_method reload_flag reload_cmds need_locks \
13321 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13322 lt_cv_sys_global_symbol_to_c_name_address \
13323 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13324 old_postinstall_cmds old_postuninstall_cmds \
13325 compiler_CXX \
13326 CC_CXX \
13327 LD_CXX \
13328 lt_prog_compiler_wl_CXX \
13329 lt_prog_compiler_pic_CXX \
13330 lt_prog_compiler_static_CXX \
13331 lt_prog_compiler_no_builtin_flag_CXX \
13332 export_dynamic_flag_spec_CXX \
13333 thread_safe_flag_spec_CXX \
13334 whole_archive_flag_spec_CXX \
13335 enable_shared_with_static_runtimes_CXX \
13336 old_archive_cmds_CXX \
13337 old_archive_from_new_cmds_CXX \
13338 predep_objects_CXX \
13339 postdep_objects_CXX \
13340 predeps_CXX \
13341 postdeps_CXX \
13342 compiler_lib_search_path_CXX \
13343 archive_cmds_CXX \
13344 archive_expsym_cmds_CXX \
13345 postinstall_cmds_CXX \
13346 postuninstall_cmds_CXX \
13347 old_archive_from_expsyms_cmds_CXX \
13348 allow_undefined_flag_CXX \
13349 no_undefined_flag_CXX \
13350 export_symbols_cmds_CXX \
13351 hardcode_libdir_flag_spec_CXX \
13352 hardcode_libdir_flag_spec_ld_CXX \
13353 hardcode_libdir_separator_CXX \
13354 hardcode_automatic_CXX \
13355 module_cmds_CXX \
13356 module_expsym_cmds_CXX \
13357 lt_cv_prog_compiler_c_o_CXX \
13358 fix_srcfile_path_CXX \
13359 exclude_expsyms_CXX \
13360 include_expsyms_CXX; do
13361
13362 case $var in
13363 old_archive_cmds_CXX | \
13364 old_archive_from_new_cmds_CXX | \
13365 archive_cmds_CXX | \
13366 archive_expsym_cmds_CXX | \
13367 module_cmds_CXX | \
13368 module_expsym_cmds_CXX | \
13369 old_archive_from_expsyms_cmds_CXX | \
13370 export_symbols_cmds_CXX | \
13371 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13372 postinstall_cmds | postuninstall_cmds | \
13373 old_postinstall_cmds | old_postuninstall_cmds | \
13374 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13375 # Double-quote double-evaled strings.
13376 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13377 ;;
13378 *)
13379 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13380 ;;
13381 esac
13382 done
13383
13384 case $lt_echo in
13385 *'\$0 --fallback-echo"')
13386 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13387 ;;
13388 esac
13389
13390 cfgfile="$ofile"
13391
13392 cat <<__EOF__ >> "$cfgfile"
13393 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13394
13395 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13396
13397 # Shell to use when invoking shell scripts.
13398 SHELL=$lt_SHELL
13399
13400 # Whether or not to build shared libraries.
13401 build_libtool_libs=$enable_shared
13402
13403 # Whether or not to build static libraries.
13404 build_old_libs=$enable_static
13405
13406 # Whether or not to add -lc for building shared libraries.
13407 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13408
13409 # Whether or not to disallow shared libs when runtime libs are static
13410 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13411
13412 # Whether or not to optimize for fast installation.
13413 fast_install=$enable_fast_install
13414
13415 # The host system.
13416 host_alias=$host_alias
13417 host=$host
13418 host_os=$host_os
13419
13420 # The build system.
13421 build_alias=$build_alias
13422 build=$build
13423 build_os=$build_os
13424
13425 # An echo program that does not interpret backslashes.
13426 echo=$lt_echo
13427
13428 # The archiver.
13429 AR=$lt_AR
13430 AR_FLAGS=$lt_AR_FLAGS
13431
13432 # A C compiler.
13433 LTCC=$lt_LTCC
13434
13435 # LTCC compiler flags.
13436 LTCFLAGS=$lt_LTCFLAGS
13437
13438 # A language-specific compiler.
13439 CC=$lt_compiler_CXX
13440
13441 # Is the compiler the GNU C compiler?
13442 with_gcc=$GCC_CXX
13443
13444 # An ERE matcher.
13445 EGREP=$lt_EGREP
13446
13447 # The linker used to build libraries.
13448 LD=$lt_LD_CXX
13449
13450 # Whether we need hard or soft links.
13451 LN_S=$lt_LN_S
13452
13453 # A BSD-compatible nm program.
13454 NM=$lt_NM
13455
13456 # A symbol stripping program
13457 STRIP=$lt_STRIP
13458
13459 # Used to examine libraries when file_magic_cmd begins "file"
13460 MAGIC_CMD=$MAGIC_CMD
13461
13462 # Used on cygwin: DLL creation program.
13463 DLLTOOL="$DLLTOOL"
13464
13465 # Used on cygwin: object dumper.
13466 OBJDUMP="$OBJDUMP"
13467
13468 # Used on cygwin: assembler.
13469 AS="$AS"
13470
13471 # The name of the directory that contains temporary libtool files.
13472 objdir=$objdir
13473
13474 # How to create reloadable object files.
13475 reload_flag=$lt_reload_flag
13476 reload_cmds=$lt_reload_cmds
13477
13478 # How to pass a linker flag through the compiler.
13479 wl=$lt_lt_prog_compiler_wl_CXX
13480
13481 # Object file suffix (normally "o").
13482 objext="$ac_objext"
13483
13484 # Old archive suffix (normally "a").
13485 libext="$libext"
13486
13487 # Shared library suffix (normally ".so").
13488 shrext_cmds='$shrext_cmds'
13489
13490 # Executable file suffix (normally "").
13491 exeext="$exeext"
13492
13493 # Additional compiler flags for building library objects.
13494 pic_flag=$lt_lt_prog_compiler_pic_CXX
13495 pic_mode=$pic_mode
13496
13497 # What is the maximum length of a command?
13498 max_cmd_len=$lt_cv_sys_max_cmd_len
13499
13500 # Does compiler simultaneously support -c and -o options?
13501 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13502
13503 # Must we lock files when doing compilation?
13504 need_locks=$lt_need_locks
13505
13506 # Do we need the lib prefix for modules?
13507 need_lib_prefix=$need_lib_prefix
13508
13509 # Do we need a version for libraries?
13510 need_version=$need_version
13511
13512 # Whether dlopen is supported.
13513 dlopen_support=$enable_dlopen
13514
13515 # Whether dlopen of programs is supported.
13516 dlopen_self=$enable_dlopen_self
13517
13518 # Whether dlopen of statically linked programs is supported.
13519 dlopen_self_static=$enable_dlopen_self_static
13520
13521 # Compiler flag to prevent dynamic linking.
13522 link_static_flag=$lt_lt_prog_compiler_static_CXX
13523
13524 # Compiler flag to turn off builtin functions.
13525 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13526
13527 # Compiler flag to allow reflexive dlopens.
13528 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13529
13530 # Compiler flag to generate shared objects directly from archives.
13531 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13532
13533 # Compiler flag to generate thread-safe objects.
13534 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13535
13536 # Library versioning type.
13537 version_type=$version_type
13538
13539 # Format of library name prefix.
13540 libname_spec=$lt_libname_spec
13541
13542 # List of archive names. First name is the real one, the rest are links.
13543 # The last name is the one that the linker finds with -lNAME.
13544 library_names_spec=$lt_library_names_spec
13545
13546 # The coded name of the library, if different from the real name.
13547 soname_spec=$lt_soname_spec
13548
13549 # Commands used to build and install an old-style archive.
13550 RANLIB=$lt_RANLIB
13551 old_archive_cmds=$lt_old_archive_cmds_CXX
13552 old_postinstall_cmds=$lt_old_postinstall_cmds
13553 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13554
13555 # Create an old-style archive from a shared archive.
13556 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13557
13558 # Create a temporary old-style archive to link instead of a shared archive.
13559 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13560
13561 # Commands used to build and install a shared archive.
13562 archive_cmds=$lt_archive_cmds_CXX
13563 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13564 postinstall_cmds=$lt_postinstall_cmds
13565 postuninstall_cmds=$lt_postuninstall_cmds
13566
13567 # Commands used to build a loadable module (assumed same as above if empty)
13568 module_cmds=$lt_module_cmds_CXX
13569 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13570
13571 # Commands to strip libraries.
13572 old_striplib=$lt_old_striplib
13573 striplib=$lt_striplib
13574
13575 # Dependencies to place before the objects being linked to create a
13576 # shared library.
13577 predep_objects=$lt_predep_objects_CXX
13578
13579 # Dependencies to place after the objects being linked to create a
13580 # shared library.
13581 postdep_objects=$lt_postdep_objects_CXX
13582
13583 # Dependencies to place before the objects being linked to create a
13584 # shared library.
13585 predeps=$lt_predeps_CXX
13586
13587 # Dependencies to place after the objects being linked to create a
13588 # shared library.
13589 postdeps=$lt_postdeps_CXX
13590
13591 # The library search path used internally by the compiler when linking
13592 # a shared library.
13593 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13594
13595 # Method to check whether dependent libraries are shared objects.
13596 deplibs_check_method=$lt_deplibs_check_method
13597
13598 # Command to use when deplibs_check_method == file_magic.
13599 file_magic_cmd=$lt_file_magic_cmd
13600
13601 # Flag that allows shared libraries with undefined symbols to be built.
13602 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13603
13604 # Flag that forces no undefined symbols.
13605 no_undefined_flag=$lt_no_undefined_flag_CXX
13606
13607 # Commands used to finish a libtool library installation in a directory.
13608 finish_cmds=$lt_finish_cmds
13609
13610 # Same as above, but a single script fragment to be evaled but not shown.
13611 finish_eval=$lt_finish_eval
13612
13613 # Take the output of nm and produce a listing of raw symbols and C names.
13614 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13615
13616 # Transform the output of nm in a proper C declaration
13617 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13618
13619 # Transform the output of nm in a C name address pair
13620 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13621
13622 # This is the shared library runtime path variable.
13623 runpath_var=$runpath_var
13624
13625 # This is the shared library path variable.
13626 shlibpath_var=$shlibpath_var
13627
13628 # Is shlibpath searched before the hard-coded library search path?
13629 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13630
13631 # How to hardcode a shared library path into an executable.
13632 hardcode_action=$hardcode_action_CXX
13633
13634 # Whether we should hardcode library paths into libraries.
13635 hardcode_into_libs=$hardcode_into_libs
13636
13637 # Flag to hardcode \$libdir into a binary during linking.
13638 # This must work even if \$libdir does not exist.
13639 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13640
13641 # If ld is used when linking, flag to hardcode \$libdir into
13642 # a binary during linking. This must work even if \$libdir does
13643 # not exist.
13644 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13645
13646 # Whether we need a single -rpath flag with a separated argument.
13647 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13648
13649 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13650 # resulting binary.
13651 hardcode_direct=$hardcode_direct_CXX
13652
13653 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13654 # resulting binary.
13655 hardcode_minus_L=$hardcode_minus_L_CXX
13656
13657 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13658 # the resulting binary.
13659 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13660
13661 # Set to yes if building a shared library automatically hardcodes DIR into the library
13662 # and all subsequent libraries and executables linked against it.
13663 hardcode_automatic=$hardcode_automatic_CXX
13664
13665 # Variables whose values should be saved in libtool wrapper scripts and
13666 # restored at relink time.
13667 variables_saved_for_relink="$variables_saved_for_relink"
13668
13669 # Whether libtool must link a program against all its dependency libraries.
13670 link_all_deplibs=$link_all_deplibs_CXX
13671
13672 # Compile-time system search path for libraries
13673 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13674
13675 # Run-time system search path for libraries
13676 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13677
13678 # Fix the shell variable \$srcfile for the compiler.
13679 fix_srcfile_path=$lt_fix_srcfile_path
13680
13681 # Set to yes if exported symbols are required.
13682 always_export_symbols=$always_export_symbols_CXX
13683
13684 # The commands to list exported symbols.
13685 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13686
13687 # The commands to extract the exported symbol list from a shared archive.
13688 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13689
13690 # Symbols that should not be listed in the preloaded symbols.
13691 exclude_expsyms=$lt_exclude_expsyms_CXX
13692
13693 # Symbols that must always be exported.
13694 include_expsyms=$lt_include_expsyms_CXX
13695
13696 # ### END LIBTOOL TAG CONFIG: $tagname
13697
13698 __EOF__
13699
13700
13701 else
13702 # If there is no Makefile yet, we rely on a make rule to execute
13703 # `config.status --recheck' to rerun these tests and create the
13704 # libtool script then.
13705 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13706 if test -f "$ltmain_in"; then
13707 test -f Makefile && make "$ltmain"
13708 fi
13709 fi
13710
13711
13712 ac_ext=c
13713 ac_cpp='$CPP $CPPFLAGS'
13714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13717
13718 CC=$lt_save_CC
13719 LDCXX=$LD
13720 LD=$lt_save_LD
13721 GCC=$lt_save_GCC
13722 with_gnu_ldcxx=$with_gnu_ld
13723 with_gnu_ld=$lt_save_with_gnu_ld
13724 lt_cv_path_LDCXX=$lt_cv_path_LD
13725 lt_cv_path_LD=$lt_save_path_LD
13726 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13727 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13728
13729 else
13730 tagname=""
13731 fi
13732 ;;
13733
13734 F77)
13735 if test -n "$F77" && test "X$F77" != "Xno"; then
13736
13737 ac_ext=f
13738 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13739 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13740 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13741
13742
13743 archive_cmds_need_lc_F77=no
13744 allow_undefined_flag_F77=
13745 always_export_symbols_F77=no
13746 archive_expsym_cmds_F77=
13747 export_dynamic_flag_spec_F77=
13748 hardcode_direct_F77=no
13749 hardcode_libdir_flag_spec_F77=
13750 hardcode_libdir_flag_spec_ld_F77=
13751 hardcode_libdir_separator_F77=
13752 hardcode_minus_L_F77=no
13753 hardcode_automatic_F77=no
13754 module_cmds_F77=
13755 module_expsym_cmds_F77=
13756 link_all_deplibs_F77=unknown
13757 old_archive_cmds_F77=$old_archive_cmds
13758 no_undefined_flag_F77=
13759 whole_archive_flag_spec_F77=
13760 enable_shared_with_static_runtimes_F77=no
13761
13762 # Source file extension for f77 test sources.
13763 ac_ext=f
13764
13765 # Object file extension for compiled f77 test sources.
13766 objext=o
13767 objext_F77=$objext
13768
13769 # Code to be used in simple compile tests
13770 lt_simple_compile_test_code="\
13771 subroutine t
13772 return
13773 end
13774 "
13775
13776 # Code to be used in simple link tests
13777 lt_simple_link_test_code="\
13778 program t
13779 end
13780 "
13781
13782 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13783
13784 # If no C compiler was specified, use CC.
13785 LTCC=${LTCC-"$CC"}
13786
13787 # If no C compiler flags were specified, use CFLAGS.
13788 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13789
13790 # Allow CC to be a program name with arguments.
13791 compiler=$CC
13792
13793
13794 # save warnings/boilerplate of simple test code
13795 ac_outfile=conftest.$ac_objext
13796 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13797 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13798 _lt_compiler_boilerplate=`cat conftest.err`
13799 $rm conftest*
13800
13801 ac_outfile=conftest.$ac_objext
13802 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13803 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13804 _lt_linker_boilerplate=`cat conftest.err`
13805 $rm conftest*
13806
13807
13808 # Allow CC to be a program name with arguments.
13809 lt_save_CC="$CC"
13810 CC=${F77-"f77"}
13811 compiler=$CC
13812 compiler_F77=$CC
13813 for cc_temp in $compiler""; do
13814 case $cc_temp in
13815 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13816 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13817 \-*) ;;
13818 *) break;;
13819 esac
13820 done
13821 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13822
13823
13824 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13825 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13826 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13827 echo "${ECHO_T}$can_build_shared" >&6; }
13828
13829 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13830 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13831 test "$can_build_shared" = "no" && enable_shared=no
13832
13833 # On AIX, shared libraries and static libraries use the same namespace, and
13834 # are all built from PIC.
13835 case $host_os in
13836 aix3*)
13837 test "$enable_shared" = yes && enable_static=no
13838 if test -n "$RANLIB"; then
13839 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13840 postinstall_cmds='$RANLIB $lib'
13841 fi
13842 ;;
13843 aix4* | aix5*)
13844 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13845 test "$enable_shared" = yes && enable_static=no
13846 fi
13847 ;;
13848 esac
13849 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13850 echo "${ECHO_T}$enable_shared" >&6; }
13851
13852 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13853 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13854 # Make sure either enable_shared or enable_static is yes.
13855 test "$enable_shared" = yes || enable_static=yes
13856 { echo "$as_me:$LINENO: result: $enable_static" >&5
13857 echo "${ECHO_T}$enable_static" >&6; }
13858
13859 GCC_F77="$G77"
13860 LD_F77="$LD"
13861
13862 lt_prog_compiler_wl_F77=
13863 lt_prog_compiler_pic_F77=
13864 lt_prog_compiler_static_F77=
13865
13866 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13867 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13868
13869 if test "$GCC" = yes; then
13870 lt_prog_compiler_wl_F77='-Wl,'
13871 lt_prog_compiler_static_F77='-static'
13872
13873 case $host_os in
13874 aix*)
13875 # All AIX code is PIC.
13876 if test "$host_cpu" = ia64; then
13877 # AIX 5 now supports IA64 processor
13878 lt_prog_compiler_static_F77='-Bstatic'
13879 fi
13880 ;;
13881
13882 amigaos*)
13883 # FIXME: we need at least 68020 code to build shared libraries, but
13884 # adding the `-m68020' flag to GCC prevents building anything better,
13885 # like `-m68040'.
13886 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13887 ;;
13888
13889 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13890 # PIC is the default for these OSes.
13891 ;;
13892
13893 mingw* | cygwin* | pw32* | os2*)
13894 # This hack is so that the source file can tell whether it is being
13895 # built for inclusion in a dll (and should export symbols for example).
13896 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13897 # (--disable-auto-import) libraries
13898 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13899 ;;
13900
13901 darwin* | rhapsody*)
13902 # PIC is the default on this platform
13903 # Common symbols not allowed in MH_DYLIB files
13904 lt_prog_compiler_pic_F77='-fno-common'
13905 ;;
13906
13907 interix[3-9]*)
13908 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13909 # Instead, we relocate shared libraries at runtime.
13910 ;;
13911
13912 msdosdjgpp*)
13913 # Just because we use GCC doesn't mean we suddenly get shared libraries
13914 # on systems that don't support them.
13915 lt_prog_compiler_can_build_shared_F77=no
13916 enable_shared=no
13917 ;;
13918
13919 sysv4*MP*)
13920 if test -d /usr/nec; then
13921 lt_prog_compiler_pic_F77=-Kconform_pic
13922 fi
13923 ;;
13924
13925 hpux*)
13926 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13927 # not for PA HP-UX.
13928 case $host_cpu in
13929 hppa*64*|ia64*)
13930 # +Z the default
13931 ;;
13932 *)
13933 lt_prog_compiler_pic_F77='-fPIC'
13934 ;;
13935 esac
13936 ;;
13937
13938 *)
13939 lt_prog_compiler_pic_F77='-fPIC'
13940 ;;
13941 esac
13942 else
13943 # PORTME Check for flag to pass linker flags through the system compiler.
13944 case $host_os in
13945 aix*)
13946 lt_prog_compiler_wl_F77='-Wl,'
13947 if test "$host_cpu" = ia64; then
13948 # AIX 5 now supports IA64 processor
13949 lt_prog_compiler_static_F77='-Bstatic'
13950 else
13951 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13952 fi
13953 ;;
13954 darwin*)
13955 # PIC is the default on this platform
13956 # Common symbols not allowed in MH_DYLIB files
13957 case $cc_basename in
13958 xlc*)
13959 lt_prog_compiler_pic_F77='-qnocommon'
13960 lt_prog_compiler_wl_F77='-Wl,'
13961 ;;
13962 esac
13963 ;;
13964
13965 mingw* | cygwin* | pw32* | os2*)
13966 # This hack is so that the source file can tell whether it is being
13967 # built for inclusion in a dll (and should export symbols for example).
13968 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13969 ;;
13970
13971 hpux9* | hpux10* | hpux11*)
13972 lt_prog_compiler_wl_F77='-Wl,'
13973 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13974 # not for PA HP-UX.
13975 case $host_cpu in
13976 hppa*64*|ia64*)
13977 # +Z the default
13978 ;;
13979 *)
13980 lt_prog_compiler_pic_F77='+Z'
13981 ;;
13982 esac
13983 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13984 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13985 ;;
13986
13987 irix5* | irix6* | nonstopux*)
13988 lt_prog_compiler_wl_F77='-Wl,'
13989 # PIC (with -KPIC) is the default.
13990 lt_prog_compiler_static_F77='-non_shared'
13991 ;;
13992
13993 newsos6)
13994 lt_prog_compiler_pic_F77='-KPIC'
13995 lt_prog_compiler_static_F77='-Bstatic'
13996 ;;
13997
13998 linux* | k*bsd*-gnu)
13999 case $cc_basename in
14000 icc* | ecc*)
14001 lt_prog_compiler_wl_F77='-Wl,'
14002 lt_prog_compiler_pic_F77='-KPIC'
14003 lt_prog_compiler_static_F77='-static'
14004 ;;
14005 pgcc* | pgf77* | pgf90* | pgf95*)
14006 # Portland Group compilers (*not* the Pentium gcc compiler,
14007 # which looks to be a dead project)
14008 lt_prog_compiler_wl_F77='-Wl,'
14009 lt_prog_compiler_pic_F77='-fpic'
14010 lt_prog_compiler_static_F77='-Bstatic'
14011 ;;
14012 ccc*)
14013 lt_prog_compiler_wl_F77='-Wl,'
14014 # All Alpha code is PIC.
14015 lt_prog_compiler_static_F77='-non_shared'
14016 ;;
14017 *)
14018 case `$CC -V 2>&1 | sed 5q` in
14019 *Sun\ C*)
14020 # Sun C 5.9
14021 lt_prog_compiler_pic_F77='-KPIC'
14022 lt_prog_compiler_static_F77='-Bstatic'
14023 lt_prog_compiler_wl_F77='-Wl,'
14024 ;;
14025 *Sun\ F*)
14026 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14027 lt_prog_compiler_pic_F77='-KPIC'
14028 lt_prog_compiler_static_F77='-Bstatic'
14029 lt_prog_compiler_wl_F77=''
14030 ;;
14031 esac
14032 ;;
14033 esac
14034 ;;
14035
14036 osf3* | osf4* | osf5*)
14037 lt_prog_compiler_wl_F77='-Wl,'
14038 # All OSF/1 code is PIC.
14039 lt_prog_compiler_static_F77='-non_shared'
14040 ;;
14041
14042 rdos*)
14043 lt_prog_compiler_static_F77='-non_shared'
14044 ;;
14045
14046 solaris*)
14047 lt_prog_compiler_pic_F77='-KPIC'
14048 lt_prog_compiler_static_F77='-Bstatic'
14049 case $cc_basename in
14050 f77* | f90* | f95*)
14051 lt_prog_compiler_wl_F77='-Qoption ld ';;
14052 *)
14053 lt_prog_compiler_wl_F77='-Wl,';;
14054 esac
14055 ;;
14056
14057 sunos4*)
14058 lt_prog_compiler_wl_F77='-Qoption ld '
14059 lt_prog_compiler_pic_F77='-PIC'
14060 lt_prog_compiler_static_F77='-Bstatic'
14061 ;;
14062
14063 sysv4 | sysv4.2uw2* | sysv4.3*)
14064 lt_prog_compiler_wl_F77='-Wl,'
14065 lt_prog_compiler_pic_F77='-KPIC'
14066 lt_prog_compiler_static_F77='-Bstatic'
14067 ;;
14068
14069 sysv4*MP*)
14070 if test -d /usr/nec ;then
14071 lt_prog_compiler_pic_F77='-Kconform_pic'
14072 lt_prog_compiler_static_F77='-Bstatic'
14073 fi
14074 ;;
14075
14076 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14077 lt_prog_compiler_wl_F77='-Wl,'
14078 lt_prog_compiler_pic_F77='-KPIC'
14079 lt_prog_compiler_static_F77='-Bstatic'
14080 ;;
14081
14082 unicos*)
14083 lt_prog_compiler_wl_F77='-Wl,'
14084 lt_prog_compiler_can_build_shared_F77=no
14085 ;;
14086
14087 uts4*)
14088 lt_prog_compiler_pic_F77='-pic'
14089 lt_prog_compiler_static_F77='-Bstatic'
14090 ;;
14091
14092 *)
14093 lt_prog_compiler_can_build_shared_F77=no
14094 ;;
14095 esac
14096 fi
14097
14098 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14099 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14100
14101 #
14102 # Check to make sure the PIC flag actually works.
14103 #
14104 if test -n "$lt_prog_compiler_pic_F77"; then
14105
14106 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14107 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14108 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14110 else
14111 lt_prog_compiler_pic_works_F77=no
14112 ac_outfile=conftest.$ac_objext
14113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14114 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14115 # Insert the option either (1) after the last *FLAGS variable, or
14116 # (2) before a word containing "conftest.", or (3) at the end.
14117 # Note that $ac_compile itself does not contain backslashes and begins
14118 # with a dollar sign (not a hyphen), so the echo should work correctly.
14119 # The option is referenced via a variable to avoid confusing sed.
14120 lt_compile=`echo "$ac_compile" | $SED \
14121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14123 -e 's:$: $lt_compiler_flag:'`
14124 (eval echo "\"\$as_me:14124: $lt_compile\"" >&5)
14125 (eval "$lt_compile" 2>conftest.err)
14126 ac_status=$?
14127 cat conftest.err >&5
14128 echo "$as_me:14128: \$? = $ac_status" >&5
14129 if (exit $ac_status) && test -s "$ac_outfile"; then
14130 # The compiler can only warn and ignore the option if not recognized
14131 # So say no if there are warnings other than the usual output.
14132 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14134 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14135 lt_prog_compiler_pic_works_F77=yes
14136 fi
14137 fi
14138 $rm conftest*
14139
14140 fi
14141 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14142 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14143
14144 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14145 case $lt_prog_compiler_pic_F77 in
14146 "" | " "*) ;;
14147 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14148 esac
14149 else
14150 lt_prog_compiler_pic_F77=
14151 lt_prog_compiler_can_build_shared_F77=no
14152 fi
14153
14154 fi
14155 case $host_os in
14156 # For platforms which do not support PIC, -DPIC is meaningless:
14157 *djgpp*)
14158 lt_prog_compiler_pic_F77=
14159 ;;
14160 *)
14161 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14162 ;;
14163 esac
14164
14165 #
14166 # Check to make sure the static flag actually works.
14167 #
14168 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14169 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14170 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14171 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14173 else
14174 lt_prog_compiler_static_works_F77=no
14175 save_LDFLAGS="$LDFLAGS"
14176 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14177 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14178 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14179 # The linker can only warn and ignore the option if not recognized
14180 # So say no if there are warnings
14181 if test -s conftest.err; then
14182 # Append any errors to the config.log.
14183 cat conftest.err 1>&5
14184 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14185 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14186 if diff conftest.exp conftest.er2 >/dev/null; then
14187 lt_prog_compiler_static_works_F77=yes
14188 fi
14189 else
14190 lt_prog_compiler_static_works_F77=yes
14191 fi
14192 fi
14193 $rm conftest*
14194 LDFLAGS="$save_LDFLAGS"
14195
14196 fi
14197 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14198 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14199
14200 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14201 :
14202 else
14203 lt_prog_compiler_static_F77=
14204 fi
14205
14206
14207 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14208 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14209 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14210 echo $ECHO_N "(cached) $ECHO_C" >&6
14211 else
14212 lt_cv_prog_compiler_c_o_F77=no
14213 $rm -r conftest 2>/dev/null
14214 mkdir conftest
14215 cd conftest
14216 mkdir out
14217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14218
14219 lt_compiler_flag="-o out/conftest2.$ac_objext"
14220 # Insert the option either (1) after the last *FLAGS variable, or
14221 # (2) before a word containing "conftest.", or (3) at the end.
14222 # Note that $ac_compile itself does not contain backslashes and begins
14223 # with a dollar sign (not a hyphen), so the echo should work correctly.
14224 lt_compile=`echo "$ac_compile" | $SED \
14225 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14227 -e 's:$: $lt_compiler_flag:'`
14228 (eval echo "\"\$as_me:14228: $lt_compile\"" >&5)
14229 (eval "$lt_compile" 2>out/conftest.err)
14230 ac_status=$?
14231 cat out/conftest.err >&5
14232 echo "$as_me:14232: \$? = $ac_status" >&5
14233 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14234 then
14235 # The compiler can only warn and ignore the option if not recognized
14236 # So say no if there are warnings
14237 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14238 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14239 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14240 lt_cv_prog_compiler_c_o_F77=yes
14241 fi
14242 fi
14243 chmod u+w . 2>&5
14244 $rm conftest*
14245 # SGI C++ compiler will create directory out/ii_files/ for
14246 # template instantiation
14247 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14248 $rm out/* && rmdir out
14249 cd ..
14250 rmdir conftest
14251 $rm conftest*
14252
14253 fi
14254 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14255 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14256
14257
14258 hard_links="nottested"
14259 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14260 # do not overwrite the value of need_locks provided by the user
14261 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14262 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14263 hard_links=yes
14264 $rm conftest*
14265 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14266 touch conftest.a
14267 ln conftest.a conftest.b 2>&5 || hard_links=no
14268 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14269 { echo "$as_me:$LINENO: result: $hard_links" >&5
14270 echo "${ECHO_T}$hard_links" >&6; }
14271 if test "$hard_links" = no; then
14272 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14273 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14274 need_locks=warn
14275 fi
14276 else
14277 need_locks=no
14278 fi
14279
14280 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14281 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14282
14283 runpath_var=
14284 allow_undefined_flag_F77=
14285 enable_shared_with_static_runtimes_F77=no
14286 archive_cmds_F77=
14287 archive_expsym_cmds_F77=
14288 old_archive_From_new_cmds_F77=
14289 old_archive_from_expsyms_cmds_F77=
14290 export_dynamic_flag_spec_F77=
14291 whole_archive_flag_spec_F77=
14292 thread_safe_flag_spec_F77=
14293 hardcode_libdir_flag_spec_F77=
14294 hardcode_libdir_flag_spec_ld_F77=
14295 hardcode_libdir_separator_F77=
14296 hardcode_direct_F77=no
14297 hardcode_minus_L_F77=no
14298 hardcode_shlibpath_var_F77=unsupported
14299 link_all_deplibs_F77=unknown
14300 hardcode_automatic_F77=no
14301 module_cmds_F77=
14302 module_expsym_cmds_F77=
14303 always_export_symbols_F77=no
14304 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14305 # include_expsyms should be a list of space-separated symbols to be *always*
14306 # included in the symbol list
14307 include_expsyms_F77=
14308 # exclude_expsyms can be an extended regexp of symbols to exclude
14309 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14310 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14311 # as well as any symbol that contains `d'.
14312 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14313 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14314 # platforms (ab)use it in PIC code, but their linkers get confused if
14315 # the symbol is explicitly referenced. Since portable code cannot
14316 # rely on this symbol name, it's probably fine to never include it in
14317 # preloaded symbol tables.
14318 extract_expsyms_cmds=
14319 # Just being paranoid about ensuring that cc_basename is set.
14320 for cc_temp in $compiler""; do
14321 case $cc_temp in
14322 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14323 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14324 \-*) ;;
14325 *) break;;
14326 esac
14327 done
14328 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14329
14330 case $host_os in
14331 cygwin* | mingw* | pw32*)
14332 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14333 # When not using gcc, we currently assume that we are using
14334 # Microsoft Visual C++.
14335 if test "$GCC" != yes; then
14336 with_gnu_ld=no
14337 fi
14338 ;;
14339 interix*)
14340 # we just hope/assume this is gcc and not c89 (= MSVC++)
14341 with_gnu_ld=yes
14342 ;;
14343 openbsd*)
14344 with_gnu_ld=no
14345 ;;
14346 esac
14347
14348 ld_shlibs_F77=yes
14349 if test "$with_gnu_ld" = yes; then
14350 # If archive_cmds runs LD, not CC, wlarc should be empty
14351 wlarc='${wl}'
14352
14353 # Set some defaults for GNU ld with shared library support. These
14354 # are reset later if shared libraries are not supported. Putting them
14355 # here allows them to be overridden if necessary.
14356 runpath_var=LD_RUN_PATH
14357 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14358 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14359 # ancient GNU ld didn't support --whole-archive et. al.
14360 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14361 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14362 else
14363 whole_archive_flag_spec_F77=
14364 fi
14365 supports_anon_versioning=no
14366 case `$LD -v 2>/dev/null` in
14367 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14368 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14369 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14370 *\ 2.11.*) ;; # other 2.11 versions
14371 *) supports_anon_versioning=yes ;;
14372 esac
14373
14374 # See if GNU ld supports shared libraries.
14375 case $host_os in
14376 aix3* | aix4* | aix5*)
14377 # On AIX/PPC, the GNU linker is very broken
14378 if test "$host_cpu" != ia64; then
14379 ld_shlibs_F77=no
14380 cat <<EOF 1>&2
14381
14382 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14383 *** to be unable to reliably create shared libraries on AIX.
14384 *** Therefore, libtool is disabling shared libraries support. If you
14385 *** really care for shared libraries, you may want to modify your PATH
14386 *** so that a non-GNU linker is found, and then restart.
14387
14388 EOF
14389 fi
14390 ;;
14391
14392 amigaos*)
14393 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)'
14394 hardcode_libdir_flag_spec_F77='-L$libdir'
14395 hardcode_minus_L_F77=yes
14396
14397 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14398 # that the semantics of dynamic libraries on AmigaOS, at least up
14399 # to version 4, is to share data among multiple programs linked
14400 # with the same dynamic library. Since this doesn't match the
14401 # behavior of shared libraries on other platforms, we can't use
14402 # them.
14403 ld_shlibs_F77=no
14404 ;;
14405
14406 beos*)
14407 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14408 allow_undefined_flag_F77=unsupported
14409 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14410 # support --undefined. This deserves some investigation. FIXME
14411 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14412 else
14413 ld_shlibs_F77=no
14414 fi
14415 ;;
14416
14417 cygwin* | mingw* | pw32*)
14418 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14419 # as there is no search path for DLLs.
14420 hardcode_libdir_flag_spec_F77='-L$libdir'
14421 allow_undefined_flag_F77=unsupported
14422 always_export_symbols_F77=no
14423 enable_shared_with_static_runtimes_F77=yes
14424 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14425
14426 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14427 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14428 # If the export-symbols file already is a .def file (1st line
14429 # is EXPORTS), use it as is; otherwise, prepend...
14430 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14431 cp $export_symbols $output_objdir/$soname.def;
14432 else
14433 echo EXPORTS > $output_objdir/$soname.def;
14434 cat $export_symbols >> $output_objdir/$soname.def;
14435 fi~
14436 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14437 else
14438 ld_shlibs_F77=no
14439 fi
14440 ;;
14441
14442 interix[3-9]*)
14443 hardcode_direct_F77=no
14444 hardcode_shlibpath_var_F77=no
14445 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14446 export_dynamic_flag_spec_F77='${wl}-E'
14447 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14448 # Instead, shared libraries are loaded at an image base (0x10000000 by
14449 # default) and relocated if they conflict, which is a slow very memory
14450 # consuming and fragmenting process. To avoid this, we pick a random,
14451 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14452 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14453 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'
14454 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'
14455 ;;
14456
14457 gnu* | linux* | k*bsd*-gnu)
14458 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14459 tmp_addflag=
14460 case $cc_basename,$host_cpu in
14461 pgcc*) # Portland Group C compiler
14462 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'
14463 tmp_addflag=' $pic_flag'
14464 ;;
14465 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14466 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'
14467 tmp_addflag=' $pic_flag -Mnomain' ;;
14468 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14469 tmp_addflag=' -i_dynamic' ;;
14470 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14471 tmp_addflag=' -i_dynamic -nofor_main' ;;
14472 ifc* | ifort*) # Intel Fortran compiler
14473 tmp_addflag=' -nofor_main' ;;
14474 esac
14475 case `$CC -V 2>&1 | sed 5q` in
14476 *Sun\ C*) # Sun C 5.9
14477 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'
14478 tmp_sharedflag='-G' ;;
14479 *Sun\ F*) # Sun Fortran 8.3
14480 tmp_sharedflag='-G' ;;
14481 *)
14482 tmp_sharedflag='-shared' ;;
14483 esac
14484 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14485
14486 if test $supports_anon_versioning = yes; then
14487 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14488 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14489 $echo "local: *; };" >> $output_objdir/$libname.ver~
14490 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14491 fi
14492 else
14493 ld_shlibs_F77=no
14494 fi
14495 ;;
14496
14497 netbsd*)
14498 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14499 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14500 wlarc=
14501 else
14502 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14503 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14504 fi
14505 ;;
14506
14507 solaris*)
14508 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14509 ld_shlibs_F77=no
14510 cat <<EOF 1>&2
14511
14512 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14513 *** create shared libraries on Solaris systems. Therefore, libtool
14514 *** is disabling shared libraries support. We urge you to upgrade GNU
14515 *** binutils to release 2.9.1 or newer. Another option is to modify
14516 *** your PATH or compiler configuration so that the native linker is
14517 *** used, and then restart.
14518
14519 EOF
14520 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14521 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14522 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14523 else
14524 ld_shlibs_F77=no
14525 fi
14526 ;;
14527
14528 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14529 case `$LD -v 2>&1` in
14530 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14531 ld_shlibs_F77=no
14532 cat <<_LT_EOF 1>&2
14533
14534 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14535 *** reliably create shared libraries on SCO systems. Therefore, libtool
14536 *** is disabling shared libraries support. We urge you to upgrade GNU
14537 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14538 *** your PATH or compiler configuration so that the native linker is
14539 *** used, and then restart.
14540
14541 _LT_EOF
14542 ;;
14543 *)
14544 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14545 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14546 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14547 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14548 else
14549 ld_shlibs_F77=no
14550 fi
14551 ;;
14552 esac
14553 ;;
14554
14555 sunos4*)
14556 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14557 wlarc=
14558 hardcode_direct_F77=yes
14559 hardcode_shlibpath_var_F77=no
14560 ;;
14561
14562 *)
14563 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14564 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14565 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14566 else
14567 ld_shlibs_F77=no
14568 fi
14569 ;;
14570 esac
14571
14572 if test "$ld_shlibs_F77" = no; then
14573 runpath_var=
14574 hardcode_libdir_flag_spec_F77=
14575 export_dynamic_flag_spec_F77=
14576 whole_archive_flag_spec_F77=
14577 fi
14578 else
14579 # PORTME fill in a description of your system's linker (not GNU ld)
14580 case $host_os in
14581 aix3*)
14582 allow_undefined_flag_F77=unsupported
14583 always_export_symbols_F77=yes
14584 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'
14585 # Note: this linker hardcodes the directories in LIBPATH if there
14586 # are no directories specified by -L.
14587 hardcode_minus_L_F77=yes
14588 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14589 # Neither direct hardcoding nor static linking is supported with a
14590 # broken collect2.
14591 hardcode_direct_F77=unsupported
14592 fi
14593 ;;
14594
14595 aix4* | aix5*)
14596 if test "$host_cpu" = ia64; then
14597 # On IA64, the linker does run time linking by default, so we don't
14598 # have to do anything special.
14599 aix_use_runtimelinking=no
14600 exp_sym_flag='-Bexport'
14601 no_entry_flag=""
14602 else
14603 # If we're using GNU nm, then we don't want the "-C" option.
14604 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14605 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14606 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'
14607 else
14608 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'
14609 fi
14610 aix_use_runtimelinking=no
14611
14612 # Test if we are trying to use run time linking or normal
14613 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14614 # need to do runtime linking.
14615 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14616 for ld_flag in $LDFLAGS; do
14617 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14618 aix_use_runtimelinking=yes
14619 break
14620 fi
14621 done
14622 ;;
14623 esac
14624
14625 exp_sym_flag='-bexport'
14626 no_entry_flag='-bnoentry'
14627 fi
14628
14629 # When large executables or shared objects are built, AIX ld can
14630 # have problems creating the table of contents. If linking a library
14631 # or program results in "error TOC overflow" add -mminimal-toc to
14632 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14633 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14634
14635 archive_cmds_F77=''
14636 hardcode_direct_F77=yes
14637 hardcode_libdir_separator_F77=':'
14638 link_all_deplibs_F77=yes
14639
14640 if test "$GCC" = yes; then
14641 case $host_os in aix4.[012]|aix4.[012].*)
14642 # We only want to do this on AIX 4.2 and lower, the check
14643 # below for broken collect2 doesn't work under 4.3+
14644 collect2name=`${CC} -print-prog-name=collect2`
14645 if test -f "$collect2name" && \
14646 strings "$collect2name" | grep resolve_lib_name >/dev/null
14647 then
14648 # We have reworked collect2
14649 :
14650 else
14651 # We have old collect2
14652 hardcode_direct_F77=unsupported
14653 # It fails to find uninstalled libraries when the uninstalled
14654 # path is not listed in the libpath. Setting hardcode_minus_L
14655 # to unsupported forces relinking
14656 hardcode_minus_L_F77=yes
14657 hardcode_libdir_flag_spec_F77='-L$libdir'
14658 hardcode_libdir_separator_F77=
14659 fi
14660 ;;
14661 esac
14662 shared_flag='-shared'
14663 if test "$aix_use_runtimelinking" = yes; then
14664 shared_flag="$shared_flag "'${wl}-G'
14665 fi
14666 else
14667 # not using gcc
14668 if test "$host_cpu" = ia64; then
14669 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14670 # chokes on -Wl,-G. The following line is correct:
14671 shared_flag='-G'
14672 else
14673 if test "$aix_use_runtimelinking" = yes; then
14674 shared_flag='${wl}-G'
14675 else
14676 shared_flag='${wl}-bM:SRE'
14677 fi
14678 fi
14679 fi
14680
14681 # It seems that -bexpall does not export symbols beginning with
14682 # underscore (_), so it is better to generate a list of symbols to export.
14683 always_export_symbols_F77=yes
14684 if test "$aix_use_runtimelinking" = yes; then
14685 # Warning - without using the other runtime loading flags (-brtl),
14686 # -berok will link without error, but may produce a broken library.
14687 allow_undefined_flag_F77='-berok'
14688 # Determine the default libpath from the value encoded in an empty executable.
14689 cat >conftest.$ac_ext <<_ACEOF
14690 program main
14691
14692 end
14693 _ACEOF
14694 rm -f conftest.$ac_objext conftest$ac_exeext
14695 if { (ac_try="$ac_link"
14696 case "(($ac_try" in
14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698 *) ac_try_echo=$ac_try;;
14699 esac
14700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_link") 2>conftest.er1
14702 ac_status=$?
14703 grep -v '^ *+' conftest.er1 >conftest.err
14704 rm -f conftest.er1
14705 cat conftest.err >&5
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); } && {
14708 test -z "$ac_f77_werror_flag" ||
14709 test ! -s conftest.err
14710 } && test -s conftest$ac_exeext &&
14711 $as_test_x conftest$ac_exeext; then
14712
14713 lt_aix_libpath_sed='
14714 /Import File Strings/,/^$/ {
14715 /^0/ {
14716 s/^0 *\(.*\)$/\1/
14717 p
14718 }
14719 }'
14720 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14721 # Check for a 64-bit object if we didn't find anything.
14722 if test -z "$aix_libpath"; then
14723 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14724 fi
14725 else
14726 echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14728
14729
14730 fi
14731
14732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14733 conftest$ac_exeext conftest.$ac_ext
14734 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14735
14736 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14737 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"
14738 else
14739 if test "$host_cpu" = ia64; then
14740 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14741 allow_undefined_flag_F77="-z nodefs"
14742 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"
14743 else
14744 # Determine the default libpath from the value encoded in an empty executable.
14745 cat >conftest.$ac_ext <<_ACEOF
14746 program main
14747
14748 end
14749 _ACEOF
14750 rm -f conftest.$ac_objext conftest$ac_exeext
14751 if { (ac_try="$ac_link"
14752 case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14755 esac
14756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757 (eval "$ac_link") 2>conftest.er1
14758 ac_status=$?
14759 grep -v '^ *+' conftest.er1 >conftest.err
14760 rm -f conftest.er1
14761 cat conftest.err >&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } && {
14764 test -z "$ac_f77_werror_flag" ||
14765 test ! -s conftest.err
14766 } && test -s conftest$ac_exeext &&
14767 $as_test_x conftest$ac_exeext; then
14768
14769 lt_aix_libpath_sed='
14770 /Import File Strings/,/^$/ {
14771 /^0/ {
14772 s/^0 *\(.*\)$/\1/
14773 p
14774 }
14775 }'
14776 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14777 # Check for a 64-bit object if we didn't find anything.
14778 if test -z "$aix_libpath"; then
14779 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14780 fi
14781 else
14782 echo "$as_me: failed program was:" >&5
14783 sed 's/^/| /' conftest.$ac_ext >&5
14784
14785
14786 fi
14787
14788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14789 conftest$ac_exeext conftest.$ac_ext
14790 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14791
14792 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14793 # Warning - without using the other run time loading flags,
14794 # -berok will link without error, but may produce a broken library.
14795 no_undefined_flag_F77=' ${wl}-bernotok'
14796 allow_undefined_flag_F77=' ${wl}-berok'
14797 # Exported symbols can be pulled into shared objects from archives
14798 whole_archive_flag_spec_F77='$convenience'
14799 archive_cmds_need_lc_F77=yes
14800 # This is similar to how AIX traditionally builds its shared libraries.
14801 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'
14802 fi
14803 fi
14804 ;;
14805
14806 amigaos*)
14807 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)'
14808 hardcode_libdir_flag_spec_F77='-L$libdir'
14809 hardcode_minus_L_F77=yes
14810 # see comment about different semantics on the GNU ld section
14811 ld_shlibs_F77=no
14812 ;;
14813
14814 bsdi[45]*)
14815 export_dynamic_flag_spec_F77=-rdynamic
14816 ;;
14817
14818 cygwin* | mingw* | pw32*)
14819 # When not using gcc, we currently assume that we are using
14820 # Microsoft Visual C++.
14821 # hardcode_libdir_flag_spec is actually meaningless, as there is
14822 # no search path for DLLs.
14823 hardcode_libdir_flag_spec_F77=' '
14824 allow_undefined_flag_F77=unsupported
14825 # Tell ltmain to make .lib files, not .a files.
14826 libext=lib
14827 # Tell ltmain to make .dll files, not .so files.
14828 shrext_cmds=".dll"
14829 # FIXME: Setting linknames here is a bad hack.
14830 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14831 # The linker will automatically build a .lib file if we build a DLL.
14832 old_archive_From_new_cmds_F77='true'
14833 # FIXME: Should let the user specify the lib program.
14834 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14835 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14836 enable_shared_with_static_runtimes_F77=yes
14837 ;;
14838
14839 darwin* | rhapsody*)
14840 case $host_os in
14841 rhapsody* | darwin1.[012])
14842 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14843 ;;
14844 *) # Darwin 1.3 on
14845 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14846 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14847 else
14848 case ${MACOSX_DEPLOYMENT_TARGET} in
14849 10.[012])
14850 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14851 ;;
14852 10.*)
14853 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14854 ;;
14855 esac
14856 fi
14857 ;;
14858 esac
14859 archive_cmds_need_lc_F77=no
14860 hardcode_direct_F77=no
14861 hardcode_automatic_F77=yes
14862 hardcode_shlibpath_var_F77=unsupported
14863 whole_archive_flag_spec_F77=''
14864 link_all_deplibs_F77=yes
14865 if test "$GCC" = yes ; then
14866 output_verbose_link_cmd='echo'
14867 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14868 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14869 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14870 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14871 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}'
14872 else
14873 case $cc_basename in
14874 xlc*)
14875 output_verbose_link_cmd='echo'
14876 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14877 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14878 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14879 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}'
14880 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}'
14881 ;;
14882 *)
14883 ld_shlibs_F77=no
14884 ;;
14885 esac
14886 fi
14887 ;;
14888
14889 dgux*)
14890 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14891 hardcode_libdir_flag_spec_F77='-L$libdir'
14892 hardcode_shlibpath_var_F77=no
14893 ;;
14894
14895 freebsd1*)
14896 ld_shlibs_F77=no
14897 ;;
14898
14899 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14900 # support. Future versions do this automatically, but an explicit c++rt0.o
14901 # does not break anything, and helps significantly (at the cost of a little
14902 # extra space).
14903 freebsd2.2*)
14904 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14905 hardcode_libdir_flag_spec_F77='-R$libdir'
14906 hardcode_direct_F77=yes
14907 hardcode_shlibpath_var_F77=no
14908 ;;
14909
14910 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14911 freebsd2*)
14912 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14913 hardcode_direct_F77=yes
14914 hardcode_minus_L_F77=yes
14915 hardcode_shlibpath_var_F77=no
14916 ;;
14917
14918 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14919 freebsd* | dragonfly*)
14920 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14921 hardcode_libdir_flag_spec_F77='-R$libdir'
14922 hardcode_direct_F77=yes
14923 hardcode_shlibpath_var_F77=no
14924 ;;
14925
14926 hpux9*)
14927 if test "$GCC" = yes; then
14928 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'
14929 else
14930 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'
14931 fi
14932 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14933 hardcode_libdir_separator_F77=:
14934 hardcode_direct_F77=yes
14935
14936 # hardcode_minus_L: Not really in the search PATH,
14937 # but as the default location of the library.
14938 hardcode_minus_L_F77=yes
14939 export_dynamic_flag_spec_F77='${wl}-E'
14940 ;;
14941
14942 hpux10*)
14943 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14944 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14945 else
14946 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14947 fi
14948 if test "$with_gnu_ld" = no; then
14949 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14950 hardcode_libdir_separator_F77=:
14951
14952 hardcode_direct_F77=yes
14953 export_dynamic_flag_spec_F77='${wl}-E'
14954
14955 # hardcode_minus_L: Not really in the search PATH,
14956 # but as the default location of the library.
14957 hardcode_minus_L_F77=yes
14958 fi
14959 ;;
14960
14961 hpux11*)
14962 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14963 case $host_cpu in
14964 hppa*64*)
14965 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14966 ;;
14967 ia64*)
14968 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14969 ;;
14970 *)
14971 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14972 ;;
14973 esac
14974 else
14975 case $host_cpu in
14976 hppa*64*)
14977 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14978 ;;
14979 ia64*)
14980 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14981 ;;
14982 *)
14983 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14984 ;;
14985 esac
14986 fi
14987 if test "$with_gnu_ld" = no; then
14988 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14989 hardcode_libdir_separator_F77=:
14990
14991 case $host_cpu in
14992 hppa*64*|ia64*)
14993 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14994 hardcode_direct_F77=no
14995 hardcode_shlibpath_var_F77=no
14996 ;;
14997 *)
14998 hardcode_direct_F77=yes
14999 export_dynamic_flag_spec_F77='${wl}-E'
15000
15001 # hardcode_minus_L: Not really in the search PATH,
15002 # but as the default location of the library.
15003 hardcode_minus_L_F77=yes
15004 ;;
15005 esac
15006 fi
15007 ;;
15008
15009 irix5* | irix6* | nonstopux*)
15010 if test "$GCC" = yes; then
15011 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'
15012 else
15013 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'
15014 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15015 fi
15016 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15017 hardcode_libdir_separator_F77=:
15018 link_all_deplibs_F77=yes
15019 ;;
15020
15021 netbsd*)
15022 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15023 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15024 else
15025 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15026 fi
15027 hardcode_libdir_flag_spec_F77='-R$libdir'
15028 hardcode_direct_F77=yes
15029 hardcode_shlibpath_var_F77=no
15030 ;;
15031
15032 newsos6)
15033 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15034 hardcode_direct_F77=yes
15035 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15036 hardcode_libdir_separator_F77=:
15037 hardcode_shlibpath_var_F77=no
15038 ;;
15039
15040 openbsd*)
15041 if test -f /usr/libexec/ld.so; then
15042 hardcode_direct_F77=yes
15043 hardcode_shlibpath_var_F77=no
15044 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15045 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15046 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15047 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15048 export_dynamic_flag_spec_F77='${wl}-E'
15049 else
15050 case $host_os in
15051 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15052 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15053 hardcode_libdir_flag_spec_F77='-R$libdir'
15054 ;;
15055 *)
15056 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15057 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15058 ;;
15059 esac
15060 fi
15061 else
15062 ld_shlibs_F77=no
15063 fi
15064 ;;
15065
15066 os2*)
15067 hardcode_libdir_flag_spec_F77='-L$libdir'
15068 hardcode_minus_L_F77=yes
15069 allow_undefined_flag_F77=unsupported
15070 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'
15071 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15072 ;;
15073
15074 osf3*)
15075 if test "$GCC" = yes; then
15076 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15077 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'
15078 else
15079 allow_undefined_flag_F77=' -expect_unresolved \*'
15080 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'
15081 fi
15082 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15083 hardcode_libdir_separator_F77=:
15084 ;;
15085
15086 osf4* | osf5*) # as osf3* with the addition of -msym flag
15087 if test "$GCC" = yes; then
15088 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15089 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'
15090 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15091 else
15092 allow_undefined_flag_F77=' -expect_unresolved \*'
15093 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'
15094 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~
15095 $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'
15096
15097 # Both c and cxx compiler support -rpath directly
15098 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15099 fi
15100 hardcode_libdir_separator_F77=:
15101 ;;
15102
15103 solaris*)
15104 no_undefined_flag_F77=' -z text'
15105 if test "$GCC" = yes; then
15106 wlarc='${wl}'
15107 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15108 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15109 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15110 else
15111 wlarc=''
15112 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15113 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15114 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15115 fi
15116 hardcode_libdir_flag_spec_F77='-R$libdir'
15117 hardcode_shlibpath_var_F77=no
15118 case $host_os in
15119 solaris2.[0-5] | solaris2.[0-5].*) ;;
15120 *)
15121 # The compiler driver will combine and reorder linker options,
15122 # but understands `-z linker_flag'. GCC discards it without `$wl',
15123 # but is careful enough not to reorder.
15124 # Supported since Solaris 2.6 (maybe 2.5.1?)
15125 if test "$GCC" = yes; then
15126 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15127 else
15128 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15129 fi
15130 ;;
15131 esac
15132 link_all_deplibs_F77=yes
15133 ;;
15134
15135 sunos4*)
15136 if test "x$host_vendor" = xsequent; then
15137 # Use $CC to link under sequent, because it throws in some extra .o
15138 # files that make .init and .fini sections work.
15139 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15140 else
15141 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15142 fi
15143 hardcode_libdir_flag_spec_F77='-L$libdir'
15144 hardcode_direct_F77=yes
15145 hardcode_minus_L_F77=yes
15146 hardcode_shlibpath_var_F77=no
15147 ;;
15148
15149 sysv4)
15150 case $host_vendor in
15151 sni)
15152 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15153 hardcode_direct_F77=yes # is this really true???
15154 ;;
15155 siemens)
15156 ## LD is ld it makes a PLAMLIB
15157 ## CC just makes a GrossModule.
15158 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15159 reload_cmds_F77='$CC -r -o $output$reload_objs'
15160 hardcode_direct_F77=no
15161 ;;
15162 motorola)
15163 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15164 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15165 ;;
15166 esac
15167 runpath_var='LD_RUN_PATH'
15168 hardcode_shlibpath_var_F77=no
15169 ;;
15170
15171 sysv4.3*)
15172 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15173 hardcode_shlibpath_var_F77=no
15174 export_dynamic_flag_spec_F77='-Bexport'
15175 ;;
15176
15177 sysv4*MP*)
15178 if test -d /usr/nec; then
15179 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15180 hardcode_shlibpath_var_F77=no
15181 runpath_var=LD_RUN_PATH
15182 hardcode_runpath_var=yes
15183 ld_shlibs_F77=yes
15184 fi
15185 ;;
15186
15187 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15188 no_undefined_flag_F77='${wl}-z,text'
15189 archive_cmds_need_lc_F77=no
15190 hardcode_shlibpath_var_F77=no
15191 runpath_var='LD_RUN_PATH'
15192
15193 if test "$GCC" = yes; then
15194 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15195 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15196 else
15197 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15198 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15199 fi
15200 ;;
15201
15202 sysv5* | sco3.2v5* | sco5v6*)
15203 # Note: We can NOT use -z defs as we might desire, because we do not
15204 # link with -lc, and that would cause any symbols used from libc to
15205 # always be unresolved, which means just about no library would
15206 # ever link correctly. If we're not using GNU ld we use -z text
15207 # though, which does catch some bad symbols but isn't as heavy-handed
15208 # as -z defs.
15209 no_undefined_flag_F77='${wl}-z,text'
15210 allow_undefined_flag_F77='${wl}-z,nodefs'
15211 archive_cmds_need_lc_F77=no
15212 hardcode_shlibpath_var_F77=no
15213 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15214 hardcode_libdir_separator_F77=':'
15215 link_all_deplibs_F77=yes
15216 export_dynamic_flag_spec_F77='${wl}-Bexport'
15217 runpath_var='LD_RUN_PATH'
15218
15219 if test "$GCC" = yes; then
15220 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15221 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15222 else
15223 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15224 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15225 fi
15226 ;;
15227
15228 uts4*)
15229 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15230 hardcode_libdir_flag_spec_F77='-L$libdir'
15231 hardcode_shlibpath_var_F77=no
15232 ;;
15233
15234 *)
15235 ld_shlibs_F77=no
15236 ;;
15237 esac
15238 fi
15239
15240 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15241 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15242 test "$ld_shlibs_F77" = no && can_build_shared=no
15243
15244 #
15245 # Do we need to explicitly link libc?
15246 #
15247 case "x$archive_cmds_need_lc_F77" in
15248 x|xyes)
15249 # Assume -lc should be added
15250 archive_cmds_need_lc_F77=yes
15251
15252 if test "$enable_shared" = yes && test "$GCC" = yes; then
15253 case $archive_cmds_F77 in
15254 *'~'*)
15255 # FIXME: we may have to deal with multi-command sequences.
15256 ;;
15257 '$CC '*)
15258 # Test whether the compiler implicitly links with -lc since on some
15259 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15260 # to ld, don't add -lc before -lgcc.
15261 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15262 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15263 $rm conftest*
15264 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15265
15266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15267 (eval $ac_compile) 2>&5
15268 ac_status=$?
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } 2>conftest.err; then
15271 soname=conftest
15272 lib=conftest
15273 libobjs=conftest.$ac_objext
15274 deplibs=
15275 wl=$lt_prog_compiler_wl_F77
15276 pic_flag=$lt_prog_compiler_pic_F77
15277 compiler_flags=-v
15278 linker_flags=-v
15279 verstring=
15280 output_objdir=.
15281 libname=conftest
15282 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15283 allow_undefined_flag_F77=
15284 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15285 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15286 ac_status=$?
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); }
15289 then
15290 archive_cmds_need_lc_F77=no
15291 else
15292 archive_cmds_need_lc_F77=yes
15293 fi
15294 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15295 else
15296 cat conftest.err 1>&5
15297 fi
15298 $rm conftest*
15299 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15300 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15301 ;;
15302 esac
15303 fi
15304 ;;
15305 esac
15306
15307 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15308 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15309 library_names_spec=
15310 libname_spec='lib$name'
15311 soname_spec=
15312 shrext_cmds=".so"
15313 postinstall_cmds=
15314 postuninstall_cmds=
15315 finish_cmds=
15316 finish_eval=
15317 shlibpath_var=
15318 shlibpath_overrides_runpath=unknown
15319 version_type=none
15320 dynamic_linker="$host_os ld.so"
15321 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15322
15323 need_lib_prefix=unknown
15324 hardcode_into_libs=no
15325
15326 # when you set need_version to no, make sure it does not cause -set_version
15327 # flags to be left without arguments
15328 need_version=unknown
15329
15330 case $host_os in
15331 aix3*)
15332 version_type=linux
15333 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15334 shlibpath_var=LIBPATH
15335
15336 # AIX 3 has no versioning support, so we append a major version to the name.
15337 soname_spec='${libname}${release}${shared_ext}$major'
15338 ;;
15339
15340 aix4* | aix5*)
15341 version_type=linux
15342 need_lib_prefix=no
15343 need_version=no
15344 hardcode_into_libs=yes
15345 if test "$host_cpu" = ia64; then
15346 # AIX 5 supports IA64
15347 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15348 shlibpath_var=LD_LIBRARY_PATH
15349 else
15350 # With GCC up to 2.95.x, collect2 would create an import file
15351 # for dependence libraries. The import file would start with
15352 # the line `#! .'. This would cause the generated library to
15353 # depend on `.', always an invalid library. This was fixed in
15354 # development snapshots of GCC prior to 3.0.
15355 case $host_os in
15356 aix4 | aix4.[01] | aix4.[01].*)
15357 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15358 echo ' yes '
15359 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15360 :
15361 else
15362 can_build_shared=no
15363 fi
15364 ;;
15365 esac
15366 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15367 # soname into executable. Probably we can add versioning support to
15368 # collect2, so additional links can be useful in future.
15369 if test "$aix_use_runtimelinking" = yes; then
15370 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15371 # instead of lib<name>.a to let people know that these are not
15372 # typical AIX shared libraries.
15373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15374 else
15375 # We preserve .a as extension for shared libraries through AIX4.2
15376 # and later when we are not doing run time linking.
15377 library_names_spec='${libname}${release}.a $libname.a'
15378 soname_spec='${libname}${release}${shared_ext}$major'
15379 fi
15380 shlibpath_var=LIBPATH
15381 fi
15382 ;;
15383
15384 amigaos*)
15385 library_names_spec='$libname.ixlibrary $libname.a'
15386 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15387 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'
15388 ;;
15389
15390 beos*)
15391 library_names_spec='${libname}${shared_ext}'
15392 dynamic_linker="$host_os ld.so"
15393 shlibpath_var=LIBRARY_PATH
15394 ;;
15395
15396 bsdi[45]*)
15397 version_type=linux
15398 need_version=no
15399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15400 soname_spec='${libname}${release}${shared_ext}$major'
15401 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15402 shlibpath_var=LD_LIBRARY_PATH
15403 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15404 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15405 # the default ld.so.conf also contains /usr/contrib/lib and
15406 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15407 # libtool to hard-code these into programs
15408 ;;
15409
15410 cygwin* | mingw* | pw32*)
15411 version_type=windows
15412 shrext_cmds=".dll"
15413 need_version=no
15414 need_lib_prefix=no
15415
15416 case $GCC,$host_os in
15417 yes,cygwin* | yes,mingw* | yes,pw32*)
15418 library_names_spec='$libname.dll.a'
15419 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15420 postinstall_cmds='base_file=`basename \${file}`~
15421 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15422 dldir=$destdir/`dirname \$dlpath`~
15423 test -d \$dldir || mkdir -p \$dldir~
15424 $install_prog $dir/$dlname \$dldir/$dlname~
15425 chmod a+x \$dldir/$dlname'
15426 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15427 dlpath=$dir/\$dldll~
15428 $rm \$dlpath'
15429 shlibpath_overrides_runpath=yes
15430
15431 case $host_os in
15432 cygwin*)
15433 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15434 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15435 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15436 ;;
15437 mingw*)
15438 # MinGW DLLs use traditional 'lib' prefix
15439 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15440 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15441 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15442 # It is most probably a Windows format PATH printed by
15443 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15444 # path with ; separators, and with drive letters. We can handle the
15445 # drive letters (cygwin fileutils understands them), so leave them,
15446 # especially as we might pass files found there to a mingw objdump,
15447 # which wouldn't understand a cygwinified path. Ahh.
15448 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15449 else
15450 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15451 fi
15452 ;;
15453 pw32*)
15454 # pw32 DLLs use 'pw' prefix rather than 'lib'
15455 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15456 ;;
15457 esac
15458 ;;
15459
15460 *)
15461 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15462 ;;
15463 esac
15464 dynamic_linker='Win32 ld.exe'
15465 # FIXME: first we should search . and the directory the executable is in
15466 shlibpath_var=PATH
15467 ;;
15468
15469 darwin* | rhapsody*)
15470 dynamic_linker="$host_os dyld"
15471 version_type=darwin
15472 need_lib_prefix=no
15473 need_version=no
15474 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15475 soname_spec='${libname}${release}${major}$shared_ext'
15476 shlibpath_overrides_runpath=yes
15477 shlibpath_var=DYLD_LIBRARY_PATH
15478 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15479
15480 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15481 ;;
15482
15483 dgux*)
15484 version_type=linux
15485 need_lib_prefix=no
15486 need_version=no
15487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15488 soname_spec='${libname}${release}${shared_ext}$major'
15489 shlibpath_var=LD_LIBRARY_PATH
15490 ;;
15491
15492 freebsd1*)
15493 dynamic_linker=no
15494 ;;
15495
15496 freebsd* | dragonfly*)
15497 # DragonFly does not have aout. When/if they implement a new
15498 # versioning mechanism, adjust this.
15499 if test -x /usr/bin/objformat; then
15500 objformat=`/usr/bin/objformat`
15501 else
15502 case $host_os in
15503 freebsd[123]*) objformat=aout ;;
15504 *) objformat=elf ;;
15505 esac
15506 fi
15507 version_type=freebsd-$objformat
15508 case $version_type in
15509 freebsd-elf*)
15510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15511 need_version=no
15512 need_lib_prefix=no
15513 ;;
15514 freebsd-*)
15515 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15516 need_version=yes
15517 ;;
15518 esac
15519 shlibpath_var=LD_LIBRARY_PATH
15520 case $host_os in
15521 freebsd2*)
15522 shlibpath_overrides_runpath=yes
15523 ;;
15524 freebsd3.[01]* | freebsdelf3.[01]*)
15525 shlibpath_overrides_runpath=yes
15526 hardcode_into_libs=yes
15527 ;;
15528 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15529 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15530 shlibpath_overrides_runpath=no
15531 hardcode_into_libs=yes
15532 ;;
15533 *) # from 4.6 on, and DragonFly
15534 shlibpath_overrides_runpath=yes
15535 hardcode_into_libs=yes
15536 ;;
15537 esac
15538 ;;
15539
15540 gnu*)
15541 version_type=linux
15542 need_lib_prefix=no
15543 need_version=no
15544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15545 soname_spec='${libname}${release}${shared_ext}$major'
15546 shlibpath_var=LD_LIBRARY_PATH
15547 hardcode_into_libs=yes
15548 ;;
15549
15550 hpux9* | hpux10* | hpux11*)
15551 # Give a soname corresponding to the major version so that dld.sl refuses to
15552 # link against other versions.
15553 version_type=sunos
15554 need_lib_prefix=no
15555 need_version=no
15556 case $host_cpu in
15557 ia64*)
15558 shrext_cmds='.so'
15559 hardcode_into_libs=yes
15560 dynamic_linker="$host_os dld.so"
15561 shlibpath_var=LD_LIBRARY_PATH
15562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15564 soname_spec='${libname}${release}${shared_ext}$major'
15565 if test "X$HPUX_IA64_MODE" = X32; then
15566 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15567 else
15568 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15569 fi
15570 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15571 ;;
15572 hppa*64*)
15573 shrext_cmds='.sl'
15574 hardcode_into_libs=yes
15575 dynamic_linker="$host_os dld.sl"
15576 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15577 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15579 soname_spec='${libname}${release}${shared_ext}$major'
15580 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15582 ;;
15583 *)
15584 shrext_cmds='.sl'
15585 dynamic_linker="$host_os dld.sl"
15586 shlibpath_var=SHLIB_PATH
15587 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15589 soname_spec='${libname}${release}${shared_ext}$major'
15590 ;;
15591 esac
15592 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15593 postinstall_cmds='chmod 555 $lib'
15594 ;;
15595
15596 interix[3-9]*)
15597 version_type=linux
15598 need_lib_prefix=no
15599 need_version=no
15600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15601 soname_spec='${libname}${release}${shared_ext}$major'
15602 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15603 shlibpath_var=LD_LIBRARY_PATH
15604 shlibpath_overrides_runpath=no
15605 hardcode_into_libs=yes
15606 ;;
15607
15608 irix5* | irix6* | nonstopux*)
15609 case $host_os in
15610 nonstopux*) version_type=nonstopux ;;
15611 *)
15612 if test "$lt_cv_prog_gnu_ld" = yes; then
15613 version_type=linux
15614 else
15615 version_type=irix
15616 fi ;;
15617 esac
15618 need_lib_prefix=no
15619 need_version=no
15620 soname_spec='${libname}${release}${shared_ext}$major'
15621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15622 case $host_os in
15623 irix5* | nonstopux*)
15624 libsuff= shlibsuff=
15625 ;;
15626 *)
15627 case $LD in # libtool.m4 will add one of these switches to LD
15628 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15629 libsuff= shlibsuff= libmagic=32-bit;;
15630 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15631 libsuff=32 shlibsuff=N32 libmagic=N32;;
15632 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15633 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15634 *) libsuff= shlibsuff= libmagic=never-match;;
15635 esac
15636 ;;
15637 esac
15638 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15639 shlibpath_overrides_runpath=no
15640 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15641 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15642 hardcode_into_libs=yes
15643 ;;
15644
15645 # No shared lib support for Linux oldld, aout, or coff.
15646 linux*oldld* | linux*aout* | linux*coff*)
15647 dynamic_linker=no
15648 ;;
15649
15650 # This must be Linux ELF.
15651 linux* | k*bsd*-gnu)
15652 version_type=linux
15653 need_lib_prefix=no
15654 need_version=no
15655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15656 soname_spec='${libname}${release}${shared_ext}$major'
15657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15658 shlibpath_var=LD_LIBRARY_PATH
15659 shlibpath_overrides_runpath=no
15660 # This implies no fast_install, which is unacceptable.
15661 # Some rework will be needed to allow for fast_install
15662 # before this can be enabled.
15663 hardcode_into_libs=yes
15664 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15665 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15666
15667 # Append ld.so.conf contents to the search path
15668 if test -f /etc/ld.so.conf; then
15669 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' ' '`
15670 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15671 fi
15672
15673 # We used to test for /lib/ld.so.1 and disable shared libraries on
15674 # powerpc, because MkLinux only supported shared libraries with the
15675 # GNU dynamic linker. Since this was broken with cross compilers,
15676 # most powerpc-linux boxes support dynamic linking these days and
15677 # people can always --disable-shared, the test was removed, and we
15678 # assume the GNU/Linux dynamic linker is in use.
15679 dynamic_linker='GNU/Linux ld.so'
15680 ;;
15681
15682 netbsd*)
15683 version_type=sunos
15684 need_lib_prefix=no
15685 need_version=no
15686 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15689 dynamic_linker='NetBSD (a.out) ld.so'
15690 else
15691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15692 soname_spec='${libname}${release}${shared_ext}$major'
15693 dynamic_linker='NetBSD ld.elf_so'
15694 fi
15695 shlibpath_var=LD_LIBRARY_PATH
15696 shlibpath_overrides_runpath=yes
15697 hardcode_into_libs=yes
15698 ;;
15699
15700 newsos6)
15701 version_type=linux
15702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15703 shlibpath_var=LD_LIBRARY_PATH
15704 shlibpath_overrides_runpath=yes
15705 ;;
15706
15707 nto-qnx*)
15708 version_type=linux
15709 need_lib_prefix=no
15710 need_version=no
15711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15712 soname_spec='${libname}${release}${shared_ext}$major'
15713 shlibpath_var=LD_LIBRARY_PATH
15714 shlibpath_overrides_runpath=yes
15715 ;;
15716
15717 openbsd*)
15718 version_type=sunos
15719 sys_lib_dlsearch_path_spec="/usr/lib"
15720 need_lib_prefix=no
15721 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15722 case $host_os in
15723 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15724 *) need_version=no ;;
15725 esac
15726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15728 shlibpath_var=LD_LIBRARY_PATH
15729 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15730 case $host_os in
15731 openbsd2.[89] | openbsd2.[89].*)
15732 shlibpath_overrides_runpath=no
15733 ;;
15734 *)
15735 shlibpath_overrides_runpath=yes
15736 ;;
15737 esac
15738 else
15739 shlibpath_overrides_runpath=yes
15740 fi
15741 ;;
15742
15743 os2*)
15744 libname_spec='$name'
15745 shrext_cmds=".dll"
15746 need_lib_prefix=no
15747 library_names_spec='$libname${shared_ext} $libname.a'
15748 dynamic_linker='OS/2 ld.exe'
15749 shlibpath_var=LIBPATH
15750 ;;
15751
15752 osf3* | osf4* | osf5*)
15753 version_type=osf
15754 need_lib_prefix=no
15755 need_version=no
15756 soname_spec='${libname}${release}${shared_ext}$major'
15757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15758 shlibpath_var=LD_LIBRARY_PATH
15759 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15760 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15761 ;;
15762
15763 rdos*)
15764 dynamic_linker=no
15765 ;;
15766
15767 solaris*)
15768 version_type=linux
15769 need_lib_prefix=no
15770 need_version=no
15771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15772 soname_spec='${libname}${release}${shared_ext}$major'
15773 shlibpath_var=LD_LIBRARY_PATH
15774 shlibpath_overrides_runpath=yes
15775 hardcode_into_libs=yes
15776 # ldd complains unless libraries are executable
15777 postinstall_cmds='chmod +x $lib'
15778 ;;
15779
15780 sunos4*)
15781 version_type=sunos
15782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15783 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15784 shlibpath_var=LD_LIBRARY_PATH
15785 shlibpath_overrides_runpath=yes
15786 if test "$with_gnu_ld" = yes; then
15787 need_lib_prefix=no
15788 fi
15789 need_version=yes
15790 ;;
15791
15792 sysv4 | sysv4.3*)
15793 version_type=linux
15794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15795 soname_spec='${libname}${release}${shared_ext}$major'
15796 shlibpath_var=LD_LIBRARY_PATH
15797 case $host_vendor in
15798 sni)
15799 shlibpath_overrides_runpath=no
15800 need_lib_prefix=no
15801 export_dynamic_flag_spec='${wl}-Blargedynsym'
15802 runpath_var=LD_RUN_PATH
15803 ;;
15804 siemens)
15805 need_lib_prefix=no
15806 ;;
15807 motorola)
15808 need_lib_prefix=no
15809 need_version=no
15810 shlibpath_overrides_runpath=no
15811 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15812 ;;
15813 esac
15814 ;;
15815
15816 sysv4*MP*)
15817 if test -d /usr/nec ;then
15818 version_type=linux
15819 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15820 soname_spec='$libname${shared_ext}.$major'
15821 shlibpath_var=LD_LIBRARY_PATH
15822 fi
15823 ;;
15824
15825 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15826 version_type=freebsd-elf
15827 need_lib_prefix=no
15828 need_version=no
15829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15830 soname_spec='${libname}${release}${shared_ext}$major'
15831 shlibpath_var=LD_LIBRARY_PATH
15832 hardcode_into_libs=yes
15833 if test "$with_gnu_ld" = yes; then
15834 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15835 shlibpath_overrides_runpath=no
15836 else
15837 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15838 shlibpath_overrides_runpath=yes
15839 case $host_os in
15840 sco3.2v5*)
15841 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15842 ;;
15843 esac
15844 fi
15845 sys_lib_dlsearch_path_spec='/usr/lib'
15846 ;;
15847
15848 uts4*)
15849 version_type=linux
15850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15851 soname_spec='${libname}${release}${shared_ext}$major'
15852 shlibpath_var=LD_LIBRARY_PATH
15853 ;;
15854
15855 *)
15856 dynamic_linker=no
15857 ;;
15858 esac
15859 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15860 echo "${ECHO_T}$dynamic_linker" >&6; }
15861 test "$dynamic_linker" = no && can_build_shared=no
15862
15863 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15864 if test "$GCC" = yes; then
15865 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15866 fi
15867
15868 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15869 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15870 hardcode_action_F77=
15871 if test -n "$hardcode_libdir_flag_spec_F77" || \
15872 test -n "$runpath_var_F77" || \
15873 test "X$hardcode_automatic_F77" = "Xyes" ; then
15874
15875 # We can hardcode non-existant directories.
15876 if test "$hardcode_direct_F77" != no &&
15877 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15878 # have to relink, otherwise we might link with an installed library
15879 # when we should be linking with a yet-to-be-installed one
15880 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15881 test "$hardcode_minus_L_F77" != no; then
15882 # Linking always hardcodes the temporary library directory.
15883 hardcode_action_F77=relink
15884 else
15885 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15886 hardcode_action_F77=immediate
15887 fi
15888 else
15889 # We cannot hardcode anything, or else we can only hardcode existing
15890 # directories.
15891 hardcode_action_F77=unsupported
15892 fi
15893 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15894 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15895
15896 if test "$hardcode_action_F77" = relink; then
15897 # Fast installation is not supported
15898 enable_fast_install=no
15899 elif test "$shlibpath_overrides_runpath" = yes ||
15900 test "$enable_shared" = no; then
15901 # Fast installation is not necessary
15902 enable_fast_install=needless
15903 fi
15904
15905
15906 # The else clause should only fire when bootstrapping the
15907 # libtool distribution, otherwise you forgot to ship ltmain.sh
15908 # with your package, and you will get complaints that there are
15909 # no rules to generate ltmain.sh.
15910 if test -f "$ltmain"; then
15911 # See if we are running on zsh, and set the options which allow our commands through
15912 # without removal of \ escapes.
15913 if test -n "${ZSH_VERSION+set}" ; then
15914 setopt NO_GLOB_SUBST
15915 fi
15916 # Now quote all the things that may contain metacharacters while being
15917 # careful not to overquote the AC_SUBSTed values. We take copies of the
15918 # variables and quote the copies for generation of the libtool script.
15919 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15920 SED SHELL STRIP \
15921 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15922 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15923 deplibs_check_method reload_flag reload_cmds need_locks \
15924 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15925 lt_cv_sys_global_symbol_to_c_name_address \
15926 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15927 old_postinstall_cmds old_postuninstall_cmds \
15928 compiler_F77 \
15929 CC_F77 \
15930 LD_F77 \
15931 lt_prog_compiler_wl_F77 \
15932 lt_prog_compiler_pic_F77 \
15933 lt_prog_compiler_static_F77 \
15934 lt_prog_compiler_no_builtin_flag_F77 \
15935 export_dynamic_flag_spec_F77 \
15936 thread_safe_flag_spec_F77 \
15937 whole_archive_flag_spec_F77 \
15938 enable_shared_with_static_runtimes_F77 \
15939 old_archive_cmds_F77 \
15940 old_archive_from_new_cmds_F77 \
15941 predep_objects_F77 \
15942 postdep_objects_F77 \
15943 predeps_F77 \
15944 postdeps_F77 \
15945 compiler_lib_search_path_F77 \
15946 archive_cmds_F77 \
15947 archive_expsym_cmds_F77 \
15948 postinstall_cmds_F77 \
15949 postuninstall_cmds_F77 \
15950 old_archive_from_expsyms_cmds_F77 \
15951 allow_undefined_flag_F77 \
15952 no_undefined_flag_F77 \
15953 export_symbols_cmds_F77 \
15954 hardcode_libdir_flag_spec_F77 \
15955 hardcode_libdir_flag_spec_ld_F77 \
15956 hardcode_libdir_separator_F77 \
15957 hardcode_automatic_F77 \
15958 module_cmds_F77 \
15959 module_expsym_cmds_F77 \
15960 lt_cv_prog_compiler_c_o_F77 \
15961 fix_srcfile_path_F77 \
15962 exclude_expsyms_F77 \
15963 include_expsyms_F77; do
15964
15965 case $var in
15966 old_archive_cmds_F77 | \
15967 old_archive_from_new_cmds_F77 | \
15968 archive_cmds_F77 | \
15969 archive_expsym_cmds_F77 | \
15970 module_cmds_F77 | \
15971 module_expsym_cmds_F77 | \
15972 old_archive_from_expsyms_cmds_F77 | \
15973 export_symbols_cmds_F77 | \
15974 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15975 postinstall_cmds | postuninstall_cmds | \
15976 old_postinstall_cmds | old_postuninstall_cmds | \
15977 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15978 # Double-quote double-evaled strings.
15979 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15980 ;;
15981 *)
15982 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15983 ;;
15984 esac
15985 done
15986
15987 case $lt_echo in
15988 *'\$0 --fallback-echo"')
15989 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15990 ;;
15991 esac
15992
15993 cfgfile="$ofile"
15994
15995 cat <<__EOF__ >> "$cfgfile"
15996 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15997
15998 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15999
16000 # Shell to use when invoking shell scripts.
16001 SHELL=$lt_SHELL
16002
16003 # Whether or not to build shared libraries.
16004 build_libtool_libs=$enable_shared
16005
16006 # Whether or not to build static libraries.
16007 build_old_libs=$enable_static
16008
16009 # Whether or not to add -lc for building shared libraries.
16010 build_libtool_need_lc=$archive_cmds_need_lc_F77
16011
16012 # Whether or not to disallow shared libs when runtime libs are static
16013 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16014
16015 # Whether or not to optimize for fast installation.
16016 fast_install=$enable_fast_install
16017
16018 # The host system.
16019 host_alias=$host_alias
16020 host=$host
16021 host_os=$host_os
16022
16023 # The build system.
16024 build_alias=$build_alias
16025 build=$build
16026 build_os=$build_os
16027
16028 # An echo program that does not interpret backslashes.
16029 echo=$lt_echo
16030
16031 # The archiver.
16032 AR=$lt_AR
16033 AR_FLAGS=$lt_AR_FLAGS
16034
16035 # A C compiler.
16036 LTCC=$lt_LTCC
16037
16038 # LTCC compiler flags.
16039 LTCFLAGS=$lt_LTCFLAGS
16040
16041 # A language-specific compiler.
16042 CC=$lt_compiler_F77
16043
16044 # Is the compiler the GNU C compiler?
16045 with_gcc=$GCC_F77
16046
16047 # An ERE matcher.
16048 EGREP=$lt_EGREP
16049
16050 # The linker used to build libraries.
16051 LD=$lt_LD_F77
16052
16053 # Whether we need hard or soft links.
16054 LN_S=$lt_LN_S
16055
16056 # A BSD-compatible nm program.
16057 NM=$lt_NM
16058
16059 # A symbol stripping program
16060 STRIP=$lt_STRIP
16061
16062 # Used to examine libraries when file_magic_cmd begins "file"
16063 MAGIC_CMD=$MAGIC_CMD
16064
16065 # Used on cygwin: DLL creation program.
16066 DLLTOOL="$DLLTOOL"
16067
16068 # Used on cygwin: object dumper.
16069 OBJDUMP="$OBJDUMP"
16070
16071 # Used on cygwin: assembler.
16072 AS="$AS"
16073
16074 # The name of the directory that contains temporary libtool files.
16075 objdir=$objdir
16076
16077 # How to create reloadable object files.
16078 reload_flag=$lt_reload_flag
16079 reload_cmds=$lt_reload_cmds
16080
16081 # How to pass a linker flag through the compiler.
16082 wl=$lt_lt_prog_compiler_wl_F77
16083
16084 # Object file suffix (normally "o").
16085 objext="$ac_objext"
16086
16087 # Old archive suffix (normally "a").
16088 libext="$libext"
16089
16090 # Shared library suffix (normally ".so").
16091 shrext_cmds='$shrext_cmds'
16092
16093 # Executable file suffix (normally "").
16094 exeext="$exeext"
16095
16096 # Additional compiler flags for building library objects.
16097 pic_flag=$lt_lt_prog_compiler_pic_F77
16098 pic_mode=$pic_mode
16099
16100 # What is the maximum length of a command?
16101 max_cmd_len=$lt_cv_sys_max_cmd_len
16102
16103 # Does compiler simultaneously support -c and -o options?
16104 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16105
16106 # Must we lock files when doing compilation?
16107 need_locks=$lt_need_locks
16108
16109 # Do we need the lib prefix for modules?
16110 need_lib_prefix=$need_lib_prefix
16111
16112 # Do we need a version for libraries?
16113 need_version=$need_version
16114
16115 # Whether dlopen is supported.
16116 dlopen_support=$enable_dlopen
16117
16118 # Whether dlopen of programs is supported.
16119 dlopen_self=$enable_dlopen_self
16120
16121 # Whether dlopen of statically linked programs is supported.
16122 dlopen_self_static=$enable_dlopen_self_static
16123
16124 # Compiler flag to prevent dynamic linking.
16125 link_static_flag=$lt_lt_prog_compiler_static_F77
16126
16127 # Compiler flag to turn off builtin functions.
16128 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16129
16130 # Compiler flag to allow reflexive dlopens.
16131 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16132
16133 # Compiler flag to generate shared objects directly from archives.
16134 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16135
16136 # Compiler flag to generate thread-safe objects.
16137 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16138
16139 # Library versioning type.
16140 version_type=$version_type
16141
16142 # Format of library name prefix.
16143 libname_spec=$lt_libname_spec
16144
16145 # List of archive names. First name is the real one, the rest are links.
16146 # The last name is the one that the linker finds with -lNAME.
16147 library_names_spec=$lt_library_names_spec
16148
16149 # The coded name of the library, if different from the real name.
16150 soname_spec=$lt_soname_spec
16151
16152 # Commands used to build and install an old-style archive.
16153 RANLIB=$lt_RANLIB
16154 old_archive_cmds=$lt_old_archive_cmds_F77
16155 old_postinstall_cmds=$lt_old_postinstall_cmds
16156 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16157
16158 # Create an old-style archive from a shared archive.
16159 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16160
16161 # Create a temporary old-style archive to link instead of a shared archive.
16162 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16163
16164 # Commands used to build and install a shared archive.
16165 archive_cmds=$lt_archive_cmds_F77
16166 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16167 postinstall_cmds=$lt_postinstall_cmds
16168 postuninstall_cmds=$lt_postuninstall_cmds
16169
16170 # Commands used to build a loadable module (assumed same as above if empty)
16171 module_cmds=$lt_module_cmds_F77
16172 module_expsym_cmds=$lt_module_expsym_cmds_F77
16173
16174 # Commands to strip libraries.
16175 old_striplib=$lt_old_striplib
16176 striplib=$lt_striplib
16177
16178 # Dependencies to place before the objects being linked to create a
16179 # shared library.
16180 predep_objects=$lt_predep_objects_F77
16181
16182 # Dependencies to place after the objects being linked to create a
16183 # shared library.
16184 postdep_objects=$lt_postdep_objects_F77
16185
16186 # Dependencies to place before the objects being linked to create a
16187 # shared library.
16188 predeps=$lt_predeps_F77
16189
16190 # Dependencies to place after the objects being linked to create a
16191 # shared library.
16192 postdeps=$lt_postdeps_F77
16193
16194 # The library search path used internally by the compiler when linking
16195 # a shared library.
16196 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16197
16198 # Method to check whether dependent libraries are shared objects.
16199 deplibs_check_method=$lt_deplibs_check_method
16200
16201 # Command to use when deplibs_check_method == file_magic.
16202 file_magic_cmd=$lt_file_magic_cmd
16203
16204 # Flag that allows shared libraries with undefined symbols to be built.
16205 allow_undefined_flag=$lt_allow_undefined_flag_F77
16206
16207 # Flag that forces no undefined symbols.
16208 no_undefined_flag=$lt_no_undefined_flag_F77
16209
16210 # Commands used to finish a libtool library installation in a directory.
16211 finish_cmds=$lt_finish_cmds
16212
16213 # Same as above, but a single script fragment to be evaled but not shown.
16214 finish_eval=$lt_finish_eval
16215
16216 # Take the output of nm and produce a listing of raw symbols and C names.
16217 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16218
16219 # Transform the output of nm in a proper C declaration
16220 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16221
16222 # Transform the output of nm in a C name address pair
16223 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16224
16225 # This is the shared library runtime path variable.
16226 runpath_var=$runpath_var
16227
16228 # This is the shared library path variable.
16229 shlibpath_var=$shlibpath_var
16230
16231 # Is shlibpath searched before the hard-coded library search path?
16232 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16233
16234 # How to hardcode a shared library path into an executable.
16235 hardcode_action=$hardcode_action_F77
16236
16237 # Whether we should hardcode library paths into libraries.
16238 hardcode_into_libs=$hardcode_into_libs
16239
16240 # Flag to hardcode \$libdir into a binary during linking.
16241 # This must work even if \$libdir does not exist.
16242 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16243
16244 # If ld is used when linking, flag to hardcode \$libdir into
16245 # a binary during linking. This must work even if \$libdir does
16246 # not exist.
16247 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16248
16249 # Whether we need a single -rpath flag with a separated argument.
16250 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16251
16252 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16253 # resulting binary.
16254 hardcode_direct=$hardcode_direct_F77
16255
16256 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16257 # resulting binary.
16258 hardcode_minus_L=$hardcode_minus_L_F77
16259
16260 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16261 # the resulting binary.
16262 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16263
16264 # Set to yes if building a shared library automatically hardcodes DIR into the library
16265 # and all subsequent libraries and executables linked against it.
16266 hardcode_automatic=$hardcode_automatic_F77
16267
16268 # Variables whose values should be saved in libtool wrapper scripts and
16269 # restored at relink time.
16270 variables_saved_for_relink="$variables_saved_for_relink"
16271
16272 # Whether libtool must link a program against all its dependency libraries.
16273 link_all_deplibs=$link_all_deplibs_F77
16274
16275 # Compile-time system search path for libraries
16276 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16277
16278 # Run-time system search path for libraries
16279 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16280
16281 # Fix the shell variable \$srcfile for the compiler.
16282 fix_srcfile_path=$lt_fix_srcfile_path
16283
16284 # Set to yes if exported symbols are required.
16285 always_export_symbols=$always_export_symbols_F77
16286
16287 # The commands to list exported symbols.
16288 export_symbols_cmds=$lt_export_symbols_cmds_F77
16289
16290 # The commands to extract the exported symbol list from a shared archive.
16291 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16292
16293 # Symbols that should not be listed in the preloaded symbols.
16294 exclude_expsyms=$lt_exclude_expsyms_F77
16295
16296 # Symbols that must always be exported.
16297 include_expsyms=$lt_include_expsyms_F77
16298
16299 # ### END LIBTOOL TAG CONFIG: $tagname
16300
16301 __EOF__
16302
16303
16304 else
16305 # If there is no Makefile yet, we rely on a make rule to execute
16306 # `config.status --recheck' to rerun these tests and create the
16307 # libtool script then.
16308 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16309 if test -f "$ltmain_in"; then
16310 test -f Makefile && make "$ltmain"
16311 fi
16312 fi
16313
16314
16315 ac_ext=c
16316 ac_cpp='$CPP $CPPFLAGS'
16317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16320
16321 CC="$lt_save_CC"
16322
16323 else
16324 tagname=""
16325 fi
16326 ;;
16327
16328 GCJ)
16329 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16330
16331
16332 # Source file extension for Java test sources.
16333 ac_ext=java
16334
16335 # Object file extension for compiled Java test sources.
16336 objext=o
16337 objext_GCJ=$objext
16338
16339 # Code to be used in simple compile tests
16340 lt_simple_compile_test_code="class foo {}"
16341
16342 # Code to be used in simple link tests
16343 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16344
16345 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16346
16347 # If no C compiler was specified, use CC.
16348 LTCC=${LTCC-"$CC"}
16349
16350 # If no C compiler flags were specified, use CFLAGS.
16351 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16352
16353 # Allow CC to be a program name with arguments.
16354 compiler=$CC
16355
16356
16357 # save warnings/boilerplate of simple test code
16358 ac_outfile=conftest.$ac_objext
16359 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16360 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16361 _lt_compiler_boilerplate=`cat conftest.err`
16362 $rm conftest*
16363
16364 ac_outfile=conftest.$ac_objext
16365 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16366 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16367 _lt_linker_boilerplate=`cat conftest.err`
16368 $rm conftest*
16369
16370
16371 # Allow CC to be a program name with arguments.
16372 lt_save_CC="$CC"
16373 CC=${GCJ-"gcj"}
16374 compiler=$CC
16375 compiler_GCJ=$CC
16376 for cc_temp in $compiler""; do
16377 case $cc_temp in
16378 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16379 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16380 \-*) ;;
16381 *) break;;
16382 esac
16383 done
16384 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16385
16386
16387 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16388 archive_cmds_need_lc_GCJ=no
16389
16390 old_archive_cmds_GCJ=$old_archive_cmds
16391
16392
16393 lt_prog_compiler_no_builtin_flag_GCJ=
16394
16395 if test "$GCC" = yes; then
16396 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16397
16398
16399 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16400 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16401 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16402 echo $ECHO_N "(cached) $ECHO_C" >&6
16403 else
16404 lt_cv_prog_compiler_rtti_exceptions=no
16405 ac_outfile=conftest.$ac_objext
16406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16407 lt_compiler_flag="-fno-rtti -fno-exceptions"
16408 # Insert the option either (1) after the last *FLAGS variable, or
16409 # (2) before a word containing "conftest.", or (3) at the end.
16410 # Note that $ac_compile itself does not contain backslashes and begins
16411 # with a dollar sign (not a hyphen), so the echo should work correctly.
16412 # The option is referenced via a variable to avoid confusing sed.
16413 lt_compile=`echo "$ac_compile" | $SED \
16414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16416 -e 's:$: $lt_compiler_flag:'`
16417 (eval echo "\"\$as_me:16417: $lt_compile\"" >&5)
16418 (eval "$lt_compile" 2>conftest.err)
16419 ac_status=$?
16420 cat conftest.err >&5
16421 echo "$as_me:16421: \$? = $ac_status" >&5
16422 if (exit $ac_status) && test -s "$ac_outfile"; then
16423 # The compiler can only warn and ignore the option if not recognized
16424 # So say no if there are warnings other than the usual output.
16425 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16427 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16428 lt_cv_prog_compiler_rtti_exceptions=yes
16429 fi
16430 fi
16431 $rm conftest*
16432
16433 fi
16434 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16435 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16436
16437 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16438 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16439 else
16440 :
16441 fi
16442
16443 fi
16444
16445 lt_prog_compiler_wl_GCJ=
16446 lt_prog_compiler_pic_GCJ=
16447 lt_prog_compiler_static_GCJ=
16448
16449 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16450 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16451
16452 if test "$GCC" = yes; then
16453 lt_prog_compiler_wl_GCJ='-Wl,'
16454 lt_prog_compiler_static_GCJ='-static'
16455
16456 case $host_os in
16457 aix*)
16458 # All AIX code is PIC.
16459 if test "$host_cpu" = ia64; then
16460 # AIX 5 now supports IA64 processor
16461 lt_prog_compiler_static_GCJ='-Bstatic'
16462 fi
16463 ;;
16464
16465 amigaos*)
16466 # FIXME: we need at least 68020 code to build shared libraries, but
16467 # adding the `-m68020' flag to GCC prevents building anything better,
16468 # like `-m68040'.
16469 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16470 ;;
16471
16472 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16473 # PIC is the default for these OSes.
16474 ;;
16475
16476 mingw* | cygwin* | pw32* | os2*)
16477 # This hack is so that the source file can tell whether it is being
16478 # built for inclusion in a dll (and should export symbols for example).
16479 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16480 # (--disable-auto-import) libraries
16481 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16482 ;;
16483
16484 darwin* | rhapsody*)
16485 # PIC is the default on this platform
16486 # Common symbols not allowed in MH_DYLIB files
16487 lt_prog_compiler_pic_GCJ='-fno-common'
16488 ;;
16489
16490 interix[3-9]*)
16491 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16492 # Instead, we relocate shared libraries at runtime.
16493 ;;
16494
16495 msdosdjgpp*)
16496 # Just because we use GCC doesn't mean we suddenly get shared libraries
16497 # on systems that don't support them.
16498 lt_prog_compiler_can_build_shared_GCJ=no
16499 enable_shared=no
16500 ;;
16501
16502 sysv4*MP*)
16503 if test -d /usr/nec; then
16504 lt_prog_compiler_pic_GCJ=-Kconform_pic
16505 fi
16506 ;;
16507
16508 hpux*)
16509 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16510 # not for PA HP-UX.
16511 case $host_cpu in
16512 hppa*64*|ia64*)
16513 # +Z the default
16514 ;;
16515 *)
16516 lt_prog_compiler_pic_GCJ='-fPIC'
16517 ;;
16518 esac
16519 ;;
16520
16521 *)
16522 lt_prog_compiler_pic_GCJ='-fPIC'
16523 ;;
16524 esac
16525 else
16526 # PORTME Check for flag to pass linker flags through the system compiler.
16527 case $host_os in
16528 aix*)
16529 lt_prog_compiler_wl_GCJ='-Wl,'
16530 if test "$host_cpu" = ia64; then
16531 # AIX 5 now supports IA64 processor
16532 lt_prog_compiler_static_GCJ='-Bstatic'
16533 else
16534 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16535 fi
16536 ;;
16537 darwin*)
16538 # PIC is the default on this platform
16539 # Common symbols not allowed in MH_DYLIB files
16540 case $cc_basename in
16541 xlc*)
16542 lt_prog_compiler_pic_GCJ='-qnocommon'
16543 lt_prog_compiler_wl_GCJ='-Wl,'
16544 ;;
16545 esac
16546 ;;
16547
16548 mingw* | cygwin* | pw32* | os2*)
16549 # This hack is so that the source file can tell whether it is being
16550 # built for inclusion in a dll (and should export symbols for example).
16551 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16552 ;;
16553
16554 hpux9* | hpux10* | hpux11*)
16555 lt_prog_compiler_wl_GCJ='-Wl,'
16556 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16557 # not for PA HP-UX.
16558 case $host_cpu in
16559 hppa*64*|ia64*)
16560 # +Z the default
16561 ;;
16562 *)
16563 lt_prog_compiler_pic_GCJ='+Z'
16564 ;;
16565 esac
16566 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16567 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16568 ;;
16569
16570 irix5* | irix6* | nonstopux*)
16571 lt_prog_compiler_wl_GCJ='-Wl,'
16572 # PIC (with -KPIC) is the default.
16573 lt_prog_compiler_static_GCJ='-non_shared'
16574 ;;
16575
16576 newsos6)
16577 lt_prog_compiler_pic_GCJ='-KPIC'
16578 lt_prog_compiler_static_GCJ='-Bstatic'
16579 ;;
16580
16581 linux* | k*bsd*-gnu)
16582 case $cc_basename in
16583 icc* | ecc*)
16584 lt_prog_compiler_wl_GCJ='-Wl,'
16585 lt_prog_compiler_pic_GCJ='-KPIC'
16586 lt_prog_compiler_static_GCJ='-static'
16587 ;;
16588 pgcc* | pgf77* | pgf90* | pgf95*)
16589 # Portland Group compilers (*not* the Pentium gcc compiler,
16590 # which looks to be a dead project)
16591 lt_prog_compiler_wl_GCJ='-Wl,'
16592 lt_prog_compiler_pic_GCJ='-fpic'
16593 lt_prog_compiler_static_GCJ='-Bstatic'
16594 ;;
16595 ccc*)
16596 lt_prog_compiler_wl_GCJ='-Wl,'
16597 # All Alpha code is PIC.
16598 lt_prog_compiler_static_GCJ='-non_shared'
16599 ;;
16600 *)
16601 case `$CC -V 2>&1 | sed 5q` in
16602 *Sun\ C*)
16603 # Sun C 5.9
16604 lt_prog_compiler_pic_GCJ='-KPIC'
16605 lt_prog_compiler_static_GCJ='-Bstatic'
16606 lt_prog_compiler_wl_GCJ='-Wl,'
16607 ;;
16608 *Sun\ F*)
16609 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16610 lt_prog_compiler_pic_GCJ='-KPIC'
16611 lt_prog_compiler_static_GCJ='-Bstatic'
16612 lt_prog_compiler_wl_GCJ=''
16613 ;;
16614 esac
16615 ;;
16616 esac
16617 ;;
16618
16619 osf3* | osf4* | osf5*)
16620 lt_prog_compiler_wl_GCJ='-Wl,'
16621 # All OSF/1 code is PIC.
16622 lt_prog_compiler_static_GCJ='-non_shared'
16623 ;;
16624
16625 rdos*)
16626 lt_prog_compiler_static_GCJ='-non_shared'
16627 ;;
16628
16629 solaris*)
16630 lt_prog_compiler_pic_GCJ='-KPIC'
16631 lt_prog_compiler_static_GCJ='-Bstatic'
16632 case $cc_basename in
16633 f77* | f90* | f95*)
16634 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16635 *)
16636 lt_prog_compiler_wl_GCJ='-Wl,';;
16637 esac
16638 ;;
16639
16640 sunos4*)
16641 lt_prog_compiler_wl_GCJ='-Qoption ld '
16642 lt_prog_compiler_pic_GCJ='-PIC'
16643 lt_prog_compiler_static_GCJ='-Bstatic'
16644 ;;
16645
16646 sysv4 | sysv4.2uw2* | sysv4.3*)
16647 lt_prog_compiler_wl_GCJ='-Wl,'
16648 lt_prog_compiler_pic_GCJ='-KPIC'
16649 lt_prog_compiler_static_GCJ='-Bstatic'
16650 ;;
16651
16652 sysv4*MP*)
16653 if test -d /usr/nec ;then
16654 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16655 lt_prog_compiler_static_GCJ='-Bstatic'
16656 fi
16657 ;;
16658
16659 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16660 lt_prog_compiler_wl_GCJ='-Wl,'
16661 lt_prog_compiler_pic_GCJ='-KPIC'
16662 lt_prog_compiler_static_GCJ='-Bstatic'
16663 ;;
16664
16665 unicos*)
16666 lt_prog_compiler_wl_GCJ='-Wl,'
16667 lt_prog_compiler_can_build_shared_GCJ=no
16668 ;;
16669
16670 uts4*)
16671 lt_prog_compiler_pic_GCJ='-pic'
16672 lt_prog_compiler_static_GCJ='-Bstatic'
16673 ;;
16674
16675 *)
16676 lt_prog_compiler_can_build_shared_GCJ=no
16677 ;;
16678 esac
16679 fi
16680
16681 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16682 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16683
16684 #
16685 # Check to make sure the PIC flag actually works.
16686 #
16687 if test -n "$lt_prog_compiler_pic_GCJ"; then
16688
16689 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16690 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16691 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16693 else
16694 lt_prog_compiler_pic_works_GCJ=no
16695 ac_outfile=conftest.$ac_objext
16696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16697 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16698 # Insert the option either (1) after the last *FLAGS variable, or
16699 # (2) before a word containing "conftest.", or (3) at the end.
16700 # Note that $ac_compile itself does not contain backslashes and begins
16701 # with a dollar sign (not a hyphen), so the echo should work correctly.
16702 # The option is referenced via a variable to avoid confusing sed.
16703 lt_compile=`echo "$ac_compile" | $SED \
16704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16706 -e 's:$: $lt_compiler_flag:'`
16707 (eval echo "\"\$as_me:16707: $lt_compile\"" >&5)
16708 (eval "$lt_compile" 2>conftest.err)
16709 ac_status=$?
16710 cat conftest.err >&5
16711 echo "$as_me:16711: \$? = $ac_status" >&5
16712 if (exit $ac_status) && test -s "$ac_outfile"; then
16713 # The compiler can only warn and ignore the option if not recognized
16714 # So say no if there are warnings other than the usual output.
16715 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16717 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16718 lt_prog_compiler_pic_works_GCJ=yes
16719 fi
16720 fi
16721 $rm conftest*
16722
16723 fi
16724 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16725 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16726
16727 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16728 case $lt_prog_compiler_pic_GCJ in
16729 "" | " "*) ;;
16730 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16731 esac
16732 else
16733 lt_prog_compiler_pic_GCJ=
16734 lt_prog_compiler_can_build_shared_GCJ=no
16735 fi
16736
16737 fi
16738 case $host_os in
16739 # For platforms which do not support PIC, -DPIC is meaningless:
16740 *djgpp*)
16741 lt_prog_compiler_pic_GCJ=
16742 ;;
16743 *)
16744 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16745 ;;
16746 esac
16747
16748 #
16749 # Check to make sure the static flag actually works.
16750 #
16751 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16752 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16753 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16754 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16755 echo $ECHO_N "(cached) $ECHO_C" >&6
16756 else
16757 lt_prog_compiler_static_works_GCJ=no
16758 save_LDFLAGS="$LDFLAGS"
16759 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16760 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16761 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16762 # The linker can only warn and ignore the option if not recognized
16763 # So say no if there are warnings
16764 if test -s conftest.err; then
16765 # Append any errors to the config.log.
16766 cat conftest.err 1>&5
16767 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16768 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16769 if diff conftest.exp conftest.er2 >/dev/null; then
16770 lt_prog_compiler_static_works_GCJ=yes
16771 fi
16772 else
16773 lt_prog_compiler_static_works_GCJ=yes
16774 fi
16775 fi
16776 $rm conftest*
16777 LDFLAGS="$save_LDFLAGS"
16778
16779 fi
16780 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16781 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16782
16783 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16784 :
16785 else
16786 lt_prog_compiler_static_GCJ=
16787 fi
16788
16789
16790 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16791 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16792 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16793 echo $ECHO_N "(cached) $ECHO_C" >&6
16794 else
16795 lt_cv_prog_compiler_c_o_GCJ=no
16796 $rm -r conftest 2>/dev/null
16797 mkdir conftest
16798 cd conftest
16799 mkdir out
16800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16801
16802 lt_compiler_flag="-o out/conftest2.$ac_objext"
16803 # Insert the option either (1) after the last *FLAGS variable, or
16804 # (2) before a word containing "conftest.", or (3) at the end.
16805 # Note that $ac_compile itself does not contain backslashes and begins
16806 # with a dollar sign (not a hyphen), so the echo should work correctly.
16807 lt_compile=`echo "$ac_compile" | $SED \
16808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16810 -e 's:$: $lt_compiler_flag:'`
16811 (eval echo "\"\$as_me:16811: $lt_compile\"" >&5)
16812 (eval "$lt_compile" 2>out/conftest.err)
16813 ac_status=$?
16814 cat out/conftest.err >&5
16815 echo "$as_me:16815: \$? = $ac_status" >&5
16816 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16817 then
16818 # The compiler can only warn and ignore the option if not recognized
16819 # So say no if there are warnings
16820 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16821 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16822 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16823 lt_cv_prog_compiler_c_o_GCJ=yes
16824 fi
16825 fi
16826 chmod u+w . 2>&5
16827 $rm conftest*
16828 # SGI C++ compiler will create directory out/ii_files/ for
16829 # template instantiation
16830 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16831 $rm out/* && rmdir out
16832 cd ..
16833 rmdir conftest
16834 $rm conftest*
16835
16836 fi
16837 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16838 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16839
16840
16841 hard_links="nottested"
16842 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16843 # do not overwrite the value of need_locks provided by the user
16844 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16845 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16846 hard_links=yes
16847 $rm conftest*
16848 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16849 touch conftest.a
16850 ln conftest.a conftest.b 2>&5 || hard_links=no
16851 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16852 { echo "$as_me:$LINENO: result: $hard_links" >&5
16853 echo "${ECHO_T}$hard_links" >&6; }
16854 if test "$hard_links" = no; then
16855 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16856 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16857 need_locks=warn
16858 fi
16859 else
16860 need_locks=no
16861 fi
16862
16863 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16864 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16865
16866 runpath_var=
16867 allow_undefined_flag_GCJ=
16868 enable_shared_with_static_runtimes_GCJ=no
16869 archive_cmds_GCJ=
16870 archive_expsym_cmds_GCJ=
16871 old_archive_From_new_cmds_GCJ=
16872 old_archive_from_expsyms_cmds_GCJ=
16873 export_dynamic_flag_spec_GCJ=
16874 whole_archive_flag_spec_GCJ=
16875 thread_safe_flag_spec_GCJ=
16876 hardcode_libdir_flag_spec_GCJ=
16877 hardcode_libdir_flag_spec_ld_GCJ=
16878 hardcode_libdir_separator_GCJ=
16879 hardcode_direct_GCJ=no
16880 hardcode_minus_L_GCJ=no
16881 hardcode_shlibpath_var_GCJ=unsupported
16882 link_all_deplibs_GCJ=unknown
16883 hardcode_automatic_GCJ=no
16884 module_cmds_GCJ=
16885 module_expsym_cmds_GCJ=
16886 always_export_symbols_GCJ=no
16887 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16888 # include_expsyms should be a list of space-separated symbols to be *always*
16889 # included in the symbol list
16890 include_expsyms_GCJ=
16891 # exclude_expsyms can be an extended regexp of symbols to exclude
16892 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16893 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16894 # as well as any symbol that contains `d'.
16895 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16896 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16897 # platforms (ab)use it in PIC code, but their linkers get confused if
16898 # the symbol is explicitly referenced. Since portable code cannot
16899 # rely on this symbol name, it's probably fine to never include it in
16900 # preloaded symbol tables.
16901 extract_expsyms_cmds=
16902 # Just being paranoid about ensuring that cc_basename is set.
16903 for cc_temp in $compiler""; do
16904 case $cc_temp in
16905 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16906 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16907 \-*) ;;
16908 *) break;;
16909 esac
16910 done
16911 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16912
16913 case $host_os in
16914 cygwin* | mingw* | pw32*)
16915 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16916 # When not using gcc, we currently assume that we are using
16917 # Microsoft Visual C++.
16918 if test "$GCC" != yes; then
16919 with_gnu_ld=no
16920 fi
16921 ;;
16922 interix*)
16923 # we just hope/assume this is gcc and not c89 (= MSVC++)
16924 with_gnu_ld=yes
16925 ;;
16926 openbsd*)
16927 with_gnu_ld=no
16928 ;;
16929 esac
16930
16931 ld_shlibs_GCJ=yes
16932 if test "$with_gnu_ld" = yes; then
16933 # If archive_cmds runs LD, not CC, wlarc should be empty
16934 wlarc='${wl}'
16935
16936 # Set some defaults for GNU ld with shared library support. These
16937 # are reset later if shared libraries are not supported. Putting them
16938 # here allows them to be overridden if necessary.
16939 runpath_var=LD_RUN_PATH
16940 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16941 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16942 # ancient GNU ld didn't support --whole-archive et. al.
16943 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16944 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16945 else
16946 whole_archive_flag_spec_GCJ=
16947 fi
16948 supports_anon_versioning=no
16949 case `$LD -v 2>/dev/null` in
16950 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16951 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16952 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16953 *\ 2.11.*) ;; # other 2.11 versions
16954 *) supports_anon_versioning=yes ;;
16955 esac
16956
16957 # See if GNU ld supports shared libraries.
16958 case $host_os in
16959 aix3* | aix4* | aix5*)
16960 # On AIX/PPC, the GNU linker is very broken
16961 if test "$host_cpu" != ia64; then
16962 ld_shlibs_GCJ=no
16963 cat <<EOF 1>&2
16964
16965 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16966 *** to be unable to reliably create shared libraries on AIX.
16967 *** Therefore, libtool is disabling shared libraries support. If you
16968 *** really care for shared libraries, you may want to modify your PATH
16969 *** so that a non-GNU linker is found, and then restart.
16970
16971 EOF
16972 fi
16973 ;;
16974
16975 amigaos*)
16976 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)'
16977 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16978 hardcode_minus_L_GCJ=yes
16979
16980 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16981 # that the semantics of dynamic libraries on AmigaOS, at least up
16982 # to version 4, is to share data among multiple programs linked
16983 # with the same dynamic library. Since this doesn't match the
16984 # behavior of shared libraries on other platforms, we can't use
16985 # them.
16986 ld_shlibs_GCJ=no
16987 ;;
16988
16989 beos*)
16990 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16991 allow_undefined_flag_GCJ=unsupported
16992 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16993 # support --undefined. This deserves some investigation. FIXME
16994 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16995 else
16996 ld_shlibs_GCJ=no
16997 fi
16998 ;;
16999
17000 cygwin* | mingw* | pw32*)
17001 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17002 # as there is no search path for DLLs.
17003 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17004 allow_undefined_flag_GCJ=unsupported
17005 always_export_symbols_GCJ=no
17006 enable_shared_with_static_runtimes_GCJ=yes
17007 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17008
17009 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17010 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17011 # If the export-symbols file already is a .def file (1st line
17012 # is EXPORTS), use it as is; otherwise, prepend...
17013 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17014 cp $export_symbols $output_objdir/$soname.def;
17015 else
17016 echo EXPORTS > $output_objdir/$soname.def;
17017 cat $export_symbols >> $output_objdir/$soname.def;
17018 fi~
17019 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17020 else
17021 ld_shlibs_GCJ=no
17022 fi
17023 ;;
17024
17025 interix[3-9]*)
17026 hardcode_direct_GCJ=no
17027 hardcode_shlibpath_var_GCJ=no
17028 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17029 export_dynamic_flag_spec_GCJ='${wl}-E'
17030 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17031 # Instead, shared libraries are loaded at an image base (0x10000000 by
17032 # default) and relocated if they conflict, which is a slow very memory
17033 # consuming and fragmenting process. To avoid this, we pick a random,
17034 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17035 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17036 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'
17037 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'
17038 ;;
17039
17040 gnu* | linux* | k*bsd*-gnu)
17041 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17042 tmp_addflag=
17043 case $cc_basename,$host_cpu in
17044 pgcc*) # Portland Group C compiler
17045 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'
17046 tmp_addflag=' $pic_flag'
17047 ;;
17048 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17049 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'
17050 tmp_addflag=' $pic_flag -Mnomain' ;;
17051 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17052 tmp_addflag=' -i_dynamic' ;;
17053 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17054 tmp_addflag=' -i_dynamic -nofor_main' ;;
17055 ifc* | ifort*) # Intel Fortran compiler
17056 tmp_addflag=' -nofor_main' ;;
17057 esac
17058 case `$CC -V 2>&1 | sed 5q` in
17059 *Sun\ C*) # Sun C 5.9
17060 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'
17061 tmp_sharedflag='-G' ;;
17062 *Sun\ F*) # Sun Fortran 8.3
17063 tmp_sharedflag='-G' ;;
17064 *)
17065 tmp_sharedflag='-shared' ;;
17066 esac
17067 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17068
17069 if test $supports_anon_versioning = yes; then
17070 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17071 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17072 $echo "local: *; };" >> $output_objdir/$libname.ver~
17073 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17074 fi
17075 else
17076 ld_shlibs_GCJ=no
17077 fi
17078 ;;
17079
17080 netbsd*)
17081 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17082 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17083 wlarc=
17084 else
17085 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17086 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17087 fi
17088 ;;
17089
17090 solaris*)
17091 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17092 ld_shlibs_GCJ=no
17093 cat <<EOF 1>&2
17094
17095 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17096 *** create shared libraries on Solaris systems. Therefore, libtool
17097 *** is disabling shared libraries support. We urge you to upgrade GNU
17098 *** binutils to release 2.9.1 or newer. Another option is to modify
17099 *** your PATH or compiler configuration so that the native linker is
17100 *** used, and then restart.
17101
17102 EOF
17103 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17104 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17105 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17106 else
17107 ld_shlibs_GCJ=no
17108 fi
17109 ;;
17110
17111 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17112 case `$LD -v 2>&1` in
17113 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17114 ld_shlibs_GCJ=no
17115 cat <<_LT_EOF 1>&2
17116
17117 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17118 *** reliably create shared libraries on SCO systems. Therefore, libtool
17119 *** is disabling shared libraries support. We urge you to upgrade GNU
17120 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17121 *** your PATH or compiler configuration so that the native linker is
17122 *** used, and then restart.
17123
17124 _LT_EOF
17125 ;;
17126 *)
17127 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17128 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17129 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17130 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17131 else
17132 ld_shlibs_GCJ=no
17133 fi
17134 ;;
17135 esac
17136 ;;
17137
17138 sunos4*)
17139 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17140 wlarc=
17141 hardcode_direct_GCJ=yes
17142 hardcode_shlibpath_var_GCJ=no
17143 ;;
17144
17145 *)
17146 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17147 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17148 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17149 else
17150 ld_shlibs_GCJ=no
17151 fi
17152 ;;
17153 esac
17154
17155 if test "$ld_shlibs_GCJ" = no; then
17156 runpath_var=
17157 hardcode_libdir_flag_spec_GCJ=
17158 export_dynamic_flag_spec_GCJ=
17159 whole_archive_flag_spec_GCJ=
17160 fi
17161 else
17162 # PORTME fill in a description of your system's linker (not GNU ld)
17163 case $host_os in
17164 aix3*)
17165 allow_undefined_flag_GCJ=unsupported
17166 always_export_symbols_GCJ=yes
17167 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'
17168 # Note: this linker hardcodes the directories in LIBPATH if there
17169 # are no directories specified by -L.
17170 hardcode_minus_L_GCJ=yes
17171 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17172 # Neither direct hardcoding nor static linking is supported with a
17173 # broken collect2.
17174 hardcode_direct_GCJ=unsupported
17175 fi
17176 ;;
17177
17178 aix4* | aix5*)
17179 if test "$host_cpu" = ia64; then
17180 # On IA64, the linker does run time linking by default, so we don't
17181 # have to do anything special.
17182 aix_use_runtimelinking=no
17183 exp_sym_flag='-Bexport'
17184 no_entry_flag=""
17185 else
17186 # If we're using GNU nm, then we don't want the "-C" option.
17187 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17188 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17189 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'
17190 else
17191 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'
17192 fi
17193 aix_use_runtimelinking=no
17194
17195 # Test if we are trying to use run time linking or normal
17196 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17197 # need to do runtime linking.
17198 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17199 for ld_flag in $LDFLAGS; do
17200 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17201 aix_use_runtimelinking=yes
17202 break
17203 fi
17204 done
17205 ;;
17206 esac
17207
17208 exp_sym_flag='-bexport'
17209 no_entry_flag='-bnoentry'
17210 fi
17211
17212 # When large executables or shared objects are built, AIX ld can
17213 # have problems creating the table of contents. If linking a library
17214 # or program results in "error TOC overflow" add -mminimal-toc to
17215 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17216 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17217
17218 archive_cmds_GCJ=''
17219 hardcode_direct_GCJ=yes
17220 hardcode_libdir_separator_GCJ=':'
17221 link_all_deplibs_GCJ=yes
17222
17223 if test "$GCC" = yes; then
17224 case $host_os in aix4.[012]|aix4.[012].*)
17225 # We only want to do this on AIX 4.2 and lower, the check
17226 # below for broken collect2 doesn't work under 4.3+
17227 collect2name=`${CC} -print-prog-name=collect2`
17228 if test -f "$collect2name" && \
17229 strings "$collect2name" | grep resolve_lib_name >/dev/null
17230 then
17231 # We have reworked collect2
17232 :
17233 else
17234 # We have old collect2
17235 hardcode_direct_GCJ=unsupported
17236 # It fails to find uninstalled libraries when the uninstalled
17237 # path is not listed in the libpath. Setting hardcode_minus_L
17238 # to unsupported forces relinking
17239 hardcode_minus_L_GCJ=yes
17240 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17241 hardcode_libdir_separator_GCJ=
17242 fi
17243 ;;
17244 esac
17245 shared_flag='-shared'
17246 if test "$aix_use_runtimelinking" = yes; then
17247 shared_flag="$shared_flag "'${wl}-G'
17248 fi
17249 else
17250 # not using gcc
17251 if test "$host_cpu" = ia64; then
17252 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17253 # chokes on -Wl,-G. The following line is correct:
17254 shared_flag='-G'
17255 else
17256 if test "$aix_use_runtimelinking" = yes; then
17257 shared_flag='${wl}-G'
17258 else
17259 shared_flag='${wl}-bM:SRE'
17260 fi
17261 fi
17262 fi
17263
17264 # It seems that -bexpall does not export symbols beginning with
17265 # underscore (_), so it is better to generate a list of symbols to export.
17266 always_export_symbols_GCJ=yes
17267 if test "$aix_use_runtimelinking" = yes; then
17268 # Warning - without using the other runtime loading flags (-brtl),
17269 # -berok will link without error, but may produce a broken library.
17270 allow_undefined_flag_GCJ='-berok'
17271 # Determine the default libpath from the value encoded in an empty executable.
17272 cat >conftest.$ac_ext <<_ACEOF
17273 /* confdefs.h. */
17274 _ACEOF
17275 cat confdefs.h >>conftest.$ac_ext
17276 cat >>conftest.$ac_ext <<_ACEOF
17277 /* end confdefs.h. */
17278
17279 int
17280 main ()
17281 {
17282
17283 ;
17284 return 0;
17285 }
17286 _ACEOF
17287 rm -f conftest.$ac_objext conftest$ac_exeext
17288 if { (ac_try="$ac_link"
17289 case "(($ac_try" in
17290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291 *) ac_try_echo=$ac_try;;
17292 esac
17293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294 (eval "$ac_link") 2>conftest.er1
17295 ac_status=$?
17296 grep -v '^ *+' conftest.er1 >conftest.err
17297 rm -f conftest.er1
17298 cat conftest.err >&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } && {
17301 test -z "$ac_c_werror_flag" ||
17302 test ! -s conftest.err
17303 } && test -s conftest$ac_exeext &&
17304 $as_test_x conftest$ac_exeext; then
17305
17306 lt_aix_libpath_sed='
17307 /Import File Strings/,/^$/ {
17308 /^0/ {
17309 s/^0 *\(.*\)$/\1/
17310 p
17311 }
17312 }'
17313 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17314 # Check for a 64-bit object if we didn't find anything.
17315 if test -z "$aix_libpath"; then
17316 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17317 fi
17318 else
17319 echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17321
17322
17323 fi
17324
17325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17326 conftest$ac_exeext conftest.$ac_ext
17327 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17328
17329 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17330 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"
17331 else
17332 if test "$host_cpu" = ia64; then
17333 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17334 allow_undefined_flag_GCJ="-z nodefs"
17335 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"
17336 else
17337 # Determine the default libpath from the value encoded in an empty executable.
17338 cat >conftest.$ac_ext <<_ACEOF
17339 /* confdefs.h. */
17340 _ACEOF
17341 cat confdefs.h >>conftest.$ac_ext
17342 cat >>conftest.$ac_ext <<_ACEOF
17343 /* end confdefs.h. */
17344
17345 int
17346 main ()
17347 {
17348
17349 ;
17350 return 0;
17351 }
17352 _ACEOF
17353 rm -f conftest.$ac_objext conftest$ac_exeext
17354 if { (ac_try="$ac_link"
17355 case "(($ac_try" in
17356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357 *) ac_try_echo=$ac_try;;
17358 esac
17359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17360 (eval "$ac_link") 2>conftest.er1
17361 ac_status=$?
17362 grep -v '^ *+' conftest.er1 >conftest.err
17363 rm -f conftest.er1
17364 cat conftest.err >&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); } && {
17367 test -z "$ac_c_werror_flag" ||
17368 test ! -s conftest.err
17369 } && test -s conftest$ac_exeext &&
17370 $as_test_x conftest$ac_exeext; then
17371
17372 lt_aix_libpath_sed='
17373 /Import File Strings/,/^$/ {
17374 /^0/ {
17375 s/^0 *\(.*\)$/\1/
17376 p
17377 }
17378 }'
17379 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17380 # Check for a 64-bit object if we didn't find anything.
17381 if test -z "$aix_libpath"; then
17382 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17383 fi
17384 else
17385 echo "$as_me: failed program was:" >&5
17386 sed 's/^/| /' conftest.$ac_ext >&5
17387
17388
17389 fi
17390
17391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17392 conftest$ac_exeext conftest.$ac_ext
17393 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17394
17395 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17396 # Warning - without using the other run time loading flags,
17397 # -berok will link without error, but may produce a broken library.
17398 no_undefined_flag_GCJ=' ${wl}-bernotok'
17399 allow_undefined_flag_GCJ=' ${wl}-berok'
17400 # Exported symbols can be pulled into shared objects from archives
17401 whole_archive_flag_spec_GCJ='$convenience'
17402 archive_cmds_need_lc_GCJ=yes
17403 # This is similar to how AIX traditionally builds its shared libraries.
17404 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'
17405 fi
17406 fi
17407 ;;
17408
17409 amigaos*)
17410 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)'
17411 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17412 hardcode_minus_L_GCJ=yes
17413 # see comment about different semantics on the GNU ld section
17414 ld_shlibs_GCJ=no
17415 ;;
17416
17417 bsdi[45]*)
17418 export_dynamic_flag_spec_GCJ=-rdynamic
17419 ;;
17420
17421 cygwin* | mingw* | pw32*)
17422 # When not using gcc, we currently assume that we are using
17423 # Microsoft Visual C++.
17424 # hardcode_libdir_flag_spec is actually meaningless, as there is
17425 # no search path for DLLs.
17426 hardcode_libdir_flag_spec_GCJ=' '
17427 allow_undefined_flag_GCJ=unsupported
17428 # Tell ltmain to make .lib files, not .a files.
17429 libext=lib
17430 # Tell ltmain to make .dll files, not .so files.
17431 shrext_cmds=".dll"
17432 # FIXME: Setting linknames here is a bad hack.
17433 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17434 # The linker will automatically build a .lib file if we build a DLL.
17435 old_archive_From_new_cmds_GCJ='true'
17436 # FIXME: Should let the user specify the lib program.
17437 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17438 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17439 enable_shared_with_static_runtimes_GCJ=yes
17440 ;;
17441
17442 darwin* | rhapsody*)
17443 case $host_os in
17444 rhapsody* | darwin1.[012])
17445 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17446 ;;
17447 *) # Darwin 1.3 on
17448 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17449 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17450 else
17451 case ${MACOSX_DEPLOYMENT_TARGET} in
17452 10.[012])
17453 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17454 ;;
17455 10.*)
17456 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17457 ;;
17458 esac
17459 fi
17460 ;;
17461 esac
17462 archive_cmds_need_lc_GCJ=no
17463 hardcode_direct_GCJ=no
17464 hardcode_automatic_GCJ=yes
17465 hardcode_shlibpath_var_GCJ=unsupported
17466 whole_archive_flag_spec_GCJ=''
17467 link_all_deplibs_GCJ=yes
17468 if test "$GCC" = yes ; then
17469 output_verbose_link_cmd='echo'
17470 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17471 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17472 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17473 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17474 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}'
17475 else
17476 case $cc_basename in
17477 xlc*)
17478 output_verbose_link_cmd='echo'
17479 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17480 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17481 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17482 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}'
17483 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}'
17484 ;;
17485 *)
17486 ld_shlibs_GCJ=no
17487 ;;
17488 esac
17489 fi
17490 ;;
17491
17492 dgux*)
17493 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17494 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17495 hardcode_shlibpath_var_GCJ=no
17496 ;;
17497
17498 freebsd1*)
17499 ld_shlibs_GCJ=no
17500 ;;
17501
17502 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17503 # support. Future versions do this automatically, but an explicit c++rt0.o
17504 # does not break anything, and helps significantly (at the cost of a little
17505 # extra space).
17506 freebsd2.2*)
17507 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17508 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17509 hardcode_direct_GCJ=yes
17510 hardcode_shlibpath_var_GCJ=no
17511 ;;
17512
17513 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17514 freebsd2*)
17515 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17516 hardcode_direct_GCJ=yes
17517 hardcode_minus_L_GCJ=yes
17518 hardcode_shlibpath_var_GCJ=no
17519 ;;
17520
17521 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17522 freebsd* | dragonfly*)
17523 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17524 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17525 hardcode_direct_GCJ=yes
17526 hardcode_shlibpath_var_GCJ=no
17527 ;;
17528
17529 hpux9*)
17530 if test "$GCC" = yes; then
17531 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'
17532 else
17533 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'
17534 fi
17535 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17536 hardcode_libdir_separator_GCJ=:
17537 hardcode_direct_GCJ=yes
17538
17539 # hardcode_minus_L: Not really in the search PATH,
17540 # but as the default location of the library.
17541 hardcode_minus_L_GCJ=yes
17542 export_dynamic_flag_spec_GCJ='${wl}-E'
17543 ;;
17544
17545 hpux10*)
17546 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17547 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17548 else
17549 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17550 fi
17551 if test "$with_gnu_ld" = no; then
17552 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17553 hardcode_libdir_separator_GCJ=:
17554
17555 hardcode_direct_GCJ=yes
17556 export_dynamic_flag_spec_GCJ='${wl}-E'
17557
17558 # hardcode_minus_L: Not really in the search PATH,
17559 # but as the default location of the library.
17560 hardcode_minus_L_GCJ=yes
17561 fi
17562 ;;
17563
17564 hpux11*)
17565 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17566 case $host_cpu in
17567 hppa*64*)
17568 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17569 ;;
17570 ia64*)
17571 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17572 ;;
17573 *)
17574 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17575 ;;
17576 esac
17577 else
17578 case $host_cpu in
17579 hppa*64*)
17580 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17581 ;;
17582 ia64*)
17583 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17584 ;;
17585 *)
17586 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17587 ;;
17588 esac
17589 fi
17590 if test "$with_gnu_ld" = no; then
17591 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17592 hardcode_libdir_separator_GCJ=:
17593
17594 case $host_cpu in
17595 hppa*64*|ia64*)
17596 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17597 hardcode_direct_GCJ=no
17598 hardcode_shlibpath_var_GCJ=no
17599 ;;
17600 *)
17601 hardcode_direct_GCJ=yes
17602 export_dynamic_flag_spec_GCJ='${wl}-E'
17603
17604 # hardcode_minus_L: Not really in the search PATH,
17605 # but as the default location of the library.
17606 hardcode_minus_L_GCJ=yes
17607 ;;
17608 esac
17609 fi
17610 ;;
17611
17612 irix5* | irix6* | nonstopux*)
17613 if test "$GCC" = yes; then
17614 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'
17615 else
17616 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'
17617 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17618 fi
17619 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17620 hardcode_libdir_separator_GCJ=:
17621 link_all_deplibs_GCJ=yes
17622 ;;
17623
17624 netbsd*)
17625 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17626 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17627 else
17628 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17629 fi
17630 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17631 hardcode_direct_GCJ=yes
17632 hardcode_shlibpath_var_GCJ=no
17633 ;;
17634
17635 newsos6)
17636 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17637 hardcode_direct_GCJ=yes
17638 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17639 hardcode_libdir_separator_GCJ=:
17640 hardcode_shlibpath_var_GCJ=no
17641 ;;
17642
17643 openbsd*)
17644 if test -f /usr/libexec/ld.so; then
17645 hardcode_direct_GCJ=yes
17646 hardcode_shlibpath_var_GCJ=no
17647 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17648 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17649 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17650 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17651 export_dynamic_flag_spec_GCJ='${wl}-E'
17652 else
17653 case $host_os in
17654 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17655 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17656 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17657 ;;
17658 *)
17659 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17660 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17661 ;;
17662 esac
17663 fi
17664 else
17665 ld_shlibs_GCJ=no
17666 fi
17667 ;;
17668
17669 os2*)
17670 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17671 hardcode_minus_L_GCJ=yes
17672 allow_undefined_flag_GCJ=unsupported
17673 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'
17674 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17675 ;;
17676
17677 osf3*)
17678 if test "$GCC" = yes; then
17679 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17680 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'
17681 else
17682 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17683 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'
17684 fi
17685 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17686 hardcode_libdir_separator_GCJ=:
17687 ;;
17688
17689 osf4* | osf5*) # as osf3* with the addition of -msym flag
17690 if test "$GCC" = yes; then
17691 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17692 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'
17693 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17694 else
17695 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17696 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'
17697 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~
17698 $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'
17699
17700 # Both c and cxx compiler support -rpath directly
17701 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17702 fi
17703 hardcode_libdir_separator_GCJ=:
17704 ;;
17705
17706 solaris*)
17707 no_undefined_flag_GCJ=' -z text'
17708 if test "$GCC" = yes; then
17709 wlarc='${wl}'
17710 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17711 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17712 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17713 else
17714 wlarc=''
17715 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17716 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17717 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17718 fi
17719 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17720 hardcode_shlibpath_var_GCJ=no
17721 case $host_os in
17722 solaris2.[0-5] | solaris2.[0-5].*) ;;
17723 *)
17724 # The compiler driver will combine and reorder linker options,
17725 # but understands `-z linker_flag'. GCC discards it without `$wl',
17726 # but is careful enough not to reorder.
17727 # Supported since Solaris 2.6 (maybe 2.5.1?)
17728 if test "$GCC" = yes; then
17729 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17730 else
17731 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17732 fi
17733 ;;
17734 esac
17735 link_all_deplibs_GCJ=yes
17736 ;;
17737
17738 sunos4*)
17739 if test "x$host_vendor" = xsequent; then
17740 # Use $CC to link under sequent, because it throws in some extra .o
17741 # files that make .init and .fini sections work.
17742 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17743 else
17744 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17745 fi
17746 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17747 hardcode_direct_GCJ=yes
17748 hardcode_minus_L_GCJ=yes
17749 hardcode_shlibpath_var_GCJ=no
17750 ;;
17751
17752 sysv4)
17753 case $host_vendor in
17754 sni)
17755 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17756 hardcode_direct_GCJ=yes # is this really true???
17757 ;;
17758 siemens)
17759 ## LD is ld it makes a PLAMLIB
17760 ## CC just makes a GrossModule.
17761 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17762 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17763 hardcode_direct_GCJ=no
17764 ;;
17765 motorola)
17766 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17767 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17768 ;;
17769 esac
17770 runpath_var='LD_RUN_PATH'
17771 hardcode_shlibpath_var_GCJ=no
17772 ;;
17773
17774 sysv4.3*)
17775 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17776 hardcode_shlibpath_var_GCJ=no
17777 export_dynamic_flag_spec_GCJ='-Bexport'
17778 ;;
17779
17780 sysv4*MP*)
17781 if test -d /usr/nec; then
17782 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17783 hardcode_shlibpath_var_GCJ=no
17784 runpath_var=LD_RUN_PATH
17785 hardcode_runpath_var=yes
17786 ld_shlibs_GCJ=yes
17787 fi
17788 ;;
17789
17790 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17791 no_undefined_flag_GCJ='${wl}-z,text'
17792 archive_cmds_need_lc_GCJ=no
17793 hardcode_shlibpath_var_GCJ=no
17794 runpath_var='LD_RUN_PATH'
17795
17796 if test "$GCC" = yes; then
17797 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17798 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17799 else
17800 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17801 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17802 fi
17803 ;;
17804
17805 sysv5* | sco3.2v5* | sco5v6*)
17806 # Note: We can NOT use -z defs as we might desire, because we do not
17807 # link with -lc, and that would cause any symbols used from libc to
17808 # always be unresolved, which means just about no library would
17809 # ever link correctly. If we're not using GNU ld we use -z text
17810 # though, which does catch some bad symbols but isn't as heavy-handed
17811 # as -z defs.
17812 no_undefined_flag_GCJ='${wl}-z,text'
17813 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17814 archive_cmds_need_lc_GCJ=no
17815 hardcode_shlibpath_var_GCJ=no
17816 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17817 hardcode_libdir_separator_GCJ=':'
17818 link_all_deplibs_GCJ=yes
17819 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17820 runpath_var='LD_RUN_PATH'
17821
17822 if test "$GCC" = yes; then
17823 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17824 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17825 else
17826 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17827 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17828 fi
17829 ;;
17830
17831 uts4*)
17832 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17833 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17834 hardcode_shlibpath_var_GCJ=no
17835 ;;
17836
17837 *)
17838 ld_shlibs_GCJ=no
17839 ;;
17840 esac
17841 fi
17842
17843 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17844 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17845 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17846
17847 #
17848 # Do we need to explicitly link libc?
17849 #
17850 case "x$archive_cmds_need_lc_GCJ" in
17851 x|xyes)
17852 # Assume -lc should be added
17853 archive_cmds_need_lc_GCJ=yes
17854
17855 if test "$enable_shared" = yes && test "$GCC" = yes; then
17856 case $archive_cmds_GCJ in
17857 *'~'*)
17858 # FIXME: we may have to deal with multi-command sequences.
17859 ;;
17860 '$CC '*)
17861 # Test whether the compiler implicitly links with -lc since on some
17862 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17863 # to ld, don't add -lc before -lgcc.
17864 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17865 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17866 $rm conftest*
17867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17868
17869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17870 (eval $ac_compile) 2>&5
17871 ac_status=$?
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } 2>conftest.err; then
17874 soname=conftest
17875 lib=conftest
17876 libobjs=conftest.$ac_objext
17877 deplibs=
17878 wl=$lt_prog_compiler_wl_GCJ
17879 pic_flag=$lt_prog_compiler_pic_GCJ
17880 compiler_flags=-v
17881 linker_flags=-v
17882 verstring=
17883 output_objdir=.
17884 libname=conftest
17885 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17886 allow_undefined_flag_GCJ=
17887 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17888 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }
17892 then
17893 archive_cmds_need_lc_GCJ=no
17894 else
17895 archive_cmds_need_lc_GCJ=yes
17896 fi
17897 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17898 else
17899 cat conftest.err 1>&5
17900 fi
17901 $rm conftest*
17902 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17903 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17904 ;;
17905 esac
17906 fi
17907 ;;
17908 esac
17909
17910 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17911 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17912 library_names_spec=
17913 libname_spec='lib$name'
17914 soname_spec=
17915 shrext_cmds=".so"
17916 postinstall_cmds=
17917 postuninstall_cmds=
17918 finish_cmds=
17919 finish_eval=
17920 shlibpath_var=
17921 shlibpath_overrides_runpath=unknown
17922 version_type=none
17923 dynamic_linker="$host_os ld.so"
17924 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17925
17926 need_lib_prefix=unknown
17927 hardcode_into_libs=no
17928
17929 # when you set need_version to no, make sure it does not cause -set_version
17930 # flags to be left without arguments
17931 need_version=unknown
17932
17933 case $host_os in
17934 aix3*)
17935 version_type=linux
17936 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17937 shlibpath_var=LIBPATH
17938
17939 # AIX 3 has no versioning support, so we append a major version to the name.
17940 soname_spec='${libname}${release}${shared_ext}$major'
17941 ;;
17942
17943 aix4* | aix5*)
17944 version_type=linux
17945 need_lib_prefix=no
17946 need_version=no
17947 hardcode_into_libs=yes
17948 if test "$host_cpu" = ia64; then
17949 # AIX 5 supports IA64
17950 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17951 shlibpath_var=LD_LIBRARY_PATH
17952 else
17953 # With GCC up to 2.95.x, collect2 would create an import file
17954 # for dependence libraries. The import file would start with
17955 # the line `#! .'. This would cause the generated library to
17956 # depend on `.', always an invalid library. This was fixed in
17957 # development snapshots of GCC prior to 3.0.
17958 case $host_os in
17959 aix4 | aix4.[01] | aix4.[01].*)
17960 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17961 echo ' yes '
17962 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17963 :
17964 else
17965 can_build_shared=no
17966 fi
17967 ;;
17968 esac
17969 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17970 # soname into executable. Probably we can add versioning support to
17971 # collect2, so additional links can be useful in future.
17972 if test "$aix_use_runtimelinking" = yes; then
17973 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17974 # instead of lib<name>.a to let people know that these are not
17975 # typical AIX shared libraries.
17976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17977 else
17978 # We preserve .a as extension for shared libraries through AIX4.2
17979 # and later when we are not doing run time linking.
17980 library_names_spec='${libname}${release}.a $libname.a'
17981 soname_spec='${libname}${release}${shared_ext}$major'
17982 fi
17983 shlibpath_var=LIBPATH
17984 fi
17985 ;;
17986
17987 amigaos*)
17988 library_names_spec='$libname.ixlibrary $libname.a'
17989 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17990 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'
17991 ;;
17992
17993 beos*)
17994 library_names_spec='${libname}${shared_ext}'
17995 dynamic_linker="$host_os ld.so"
17996 shlibpath_var=LIBRARY_PATH
17997 ;;
17998
17999 bsdi[45]*)
18000 version_type=linux
18001 need_version=no
18002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18003 soname_spec='${libname}${release}${shared_ext}$major'
18004 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18005 shlibpath_var=LD_LIBRARY_PATH
18006 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18007 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18008 # the default ld.so.conf also contains /usr/contrib/lib and
18009 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18010 # libtool to hard-code these into programs
18011 ;;
18012
18013 cygwin* | mingw* | pw32*)
18014 version_type=windows
18015 shrext_cmds=".dll"
18016 need_version=no
18017 need_lib_prefix=no
18018
18019 case $GCC,$host_os in
18020 yes,cygwin* | yes,mingw* | yes,pw32*)
18021 library_names_spec='$libname.dll.a'
18022 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18023 postinstall_cmds='base_file=`basename \${file}`~
18024 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18025 dldir=$destdir/`dirname \$dlpath`~
18026 test -d \$dldir || mkdir -p \$dldir~
18027 $install_prog $dir/$dlname \$dldir/$dlname~
18028 chmod a+x \$dldir/$dlname'
18029 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18030 dlpath=$dir/\$dldll~
18031 $rm \$dlpath'
18032 shlibpath_overrides_runpath=yes
18033
18034 case $host_os in
18035 cygwin*)
18036 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18037 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18038 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18039 ;;
18040 mingw*)
18041 # MinGW DLLs use traditional 'lib' prefix
18042 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18043 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18044 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18045 # It is most probably a Windows format PATH printed by
18046 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18047 # path with ; separators, and with drive letters. We can handle the
18048 # drive letters (cygwin fileutils understands them), so leave them,
18049 # especially as we might pass files found there to a mingw objdump,
18050 # which wouldn't understand a cygwinified path. Ahh.
18051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18052 else
18053 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18054 fi
18055 ;;
18056 pw32*)
18057 # pw32 DLLs use 'pw' prefix rather than 'lib'
18058 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18059 ;;
18060 esac
18061 ;;
18062
18063 *)
18064 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18065 ;;
18066 esac
18067 dynamic_linker='Win32 ld.exe'
18068 # FIXME: first we should search . and the directory the executable is in
18069 shlibpath_var=PATH
18070 ;;
18071
18072 darwin* | rhapsody*)
18073 dynamic_linker="$host_os dyld"
18074 version_type=darwin
18075 need_lib_prefix=no
18076 need_version=no
18077 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18078 soname_spec='${libname}${release}${major}$shared_ext'
18079 shlibpath_overrides_runpath=yes
18080 shlibpath_var=DYLD_LIBRARY_PATH
18081 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18082
18083 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18084 ;;
18085
18086 dgux*)
18087 version_type=linux
18088 need_lib_prefix=no
18089 need_version=no
18090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18091 soname_spec='${libname}${release}${shared_ext}$major'
18092 shlibpath_var=LD_LIBRARY_PATH
18093 ;;
18094
18095 freebsd1*)
18096 dynamic_linker=no
18097 ;;
18098
18099 freebsd* | dragonfly*)
18100 # DragonFly does not have aout. When/if they implement a new
18101 # versioning mechanism, adjust this.
18102 if test -x /usr/bin/objformat; then
18103 objformat=`/usr/bin/objformat`
18104 else
18105 case $host_os in
18106 freebsd[123]*) objformat=aout ;;
18107 *) objformat=elf ;;
18108 esac
18109 fi
18110 version_type=freebsd-$objformat
18111 case $version_type in
18112 freebsd-elf*)
18113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18114 need_version=no
18115 need_lib_prefix=no
18116 ;;
18117 freebsd-*)
18118 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18119 need_version=yes
18120 ;;
18121 esac
18122 shlibpath_var=LD_LIBRARY_PATH
18123 case $host_os in
18124 freebsd2*)
18125 shlibpath_overrides_runpath=yes
18126 ;;
18127 freebsd3.[01]* | freebsdelf3.[01]*)
18128 shlibpath_overrides_runpath=yes
18129 hardcode_into_libs=yes
18130 ;;
18131 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18132 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18133 shlibpath_overrides_runpath=no
18134 hardcode_into_libs=yes
18135 ;;
18136 *) # from 4.6 on, and DragonFly
18137 shlibpath_overrides_runpath=yes
18138 hardcode_into_libs=yes
18139 ;;
18140 esac
18141 ;;
18142
18143 gnu*)
18144 version_type=linux
18145 need_lib_prefix=no
18146 need_version=no
18147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18148 soname_spec='${libname}${release}${shared_ext}$major'
18149 shlibpath_var=LD_LIBRARY_PATH
18150 hardcode_into_libs=yes
18151 ;;
18152
18153 hpux9* | hpux10* | hpux11*)
18154 # Give a soname corresponding to the major version so that dld.sl refuses to
18155 # link against other versions.
18156 version_type=sunos
18157 need_lib_prefix=no
18158 need_version=no
18159 case $host_cpu in
18160 ia64*)
18161 shrext_cmds='.so'
18162 hardcode_into_libs=yes
18163 dynamic_linker="$host_os dld.so"
18164 shlibpath_var=LD_LIBRARY_PATH
18165 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18167 soname_spec='${libname}${release}${shared_ext}$major'
18168 if test "X$HPUX_IA64_MODE" = X32; then
18169 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18170 else
18171 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18172 fi
18173 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18174 ;;
18175 hppa*64*)
18176 shrext_cmds='.sl'
18177 hardcode_into_libs=yes
18178 dynamic_linker="$host_os dld.sl"
18179 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18180 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18182 soname_spec='${libname}${release}${shared_ext}$major'
18183 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18184 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18185 ;;
18186 *)
18187 shrext_cmds='.sl'
18188 dynamic_linker="$host_os dld.sl"
18189 shlibpath_var=SHLIB_PATH
18190 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18192 soname_spec='${libname}${release}${shared_ext}$major'
18193 ;;
18194 esac
18195 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18196 postinstall_cmds='chmod 555 $lib'
18197 ;;
18198
18199 interix[3-9]*)
18200 version_type=linux
18201 need_lib_prefix=no
18202 need_version=no
18203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18204 soname_spec='${libname}${release}${shared_ext}$major'
18205 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18206 shlibpath_var=LD_LIBRARY_PATH
18207 shlibpath_overrides_runpath=no
18208 hardcode_into_libs=yes
18209 ;;
18210
18211 irix5* | irix6* | nonstopux*)
18212 case $host_os in
18213 nonstopux*) version_type=nonstopux ;;
18214 *)
18215 if test "$lt_cv_prog_gnu_ld" = yes; then
18216 version_type=linux
18217 else
18218 version_type=irix
18219 fi ;;
18220 esac
18221 need_lib_prefix=no
18222 need_version=no
18223 soname_spec='${libname}${release}${shared_ext}$major'
18224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18225 case $host_os in
18226 irix5* | nonstopux*)
18227 libsuff= shlibsuff=
18228 ;;
18229 *)
18230 case $LD in # libtool.m4 will add one of these switches to LD
18231 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18232 libsuff= shlibsuff= libmagic=32-bit;;
18233 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18234 libsuff=32 shlibsuff=N32 libmagic=N32;;
18235 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18236 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18237 *) libsuff= shlibsuff= libmagic=never-match;;
18238 esac
18239 ;;
18240 esac
18241 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18242 shlibpath_overrides_runpath=no
18243 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18244 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18245 hardcode_into_libs=yes
18246 ;;
18247
18248 # No shared lib support for Linux oldld, aout, or coff.
18249 linux*oldld* | linux*aout* | linux*coff*)
18250 dynamic_linker=no
18251 ;;
18252
18253 # This must be Linux ELF.
18254 linux* | k*bsd*-gnu)
18255 version_type=linux
18256 need_lib_prefix=no
18257 need_version=no
18258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18259 soname_spec='${libname}${release}${shared_ext}$major'
18260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18261 shlibpath_var=LD_LIBRARY_PATH
18262 shlibpath_overrides_runpath=no
18263 # This implies no fast_install, which is unacceptable.
18264 # Some rework will be needed to allow for fast_install
18265 # before this can be enabled.
18266 hardcode_into_libs=yes
18267 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18268 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18269
18270 # Append ld.so.conf contents to the search path
18271 if test -f /etc/ld.so.conf; then
18272 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' ' '`
18273 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18274 fi
18275
18276 # We used to test for /lib/ld.so.1 and disable shared libraries on
18277 # powerpc, because MkLinux only supported shared libraries with the
18278 # GNU dynamic linker. Since this was broken with cross compilers,
18279 # most powerpc-linux boxes support dynamic linking these days and
18280 # people can always --disable-shared, the test was removed, and we
18281 # assume the GNU/Linux dynamic linker is in use.
18282 dynamic_linker='GNU/Linux ld.so'
18283 ;;
18284
18285 netbsd*)
18286 version_type=sunos
18287 need_lib_prefix=no
18288 need_version=no
18289 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18292 dynamic_linker='NetBSD (a.out) ld.so'
18293 else
18294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18295 soname_spec='${libname}${release}${shared_ext}$major'
18296 dynamic_linker='NetBSD ld.elf_so'
18297 fi
18298 shlibpath_var=LD_LIBRARY_PATH
18299 shlibpath_overrides_runpath=yes
18300 hardcode_into_libs=yes
18301 ;;
18302
18303 newsos6)
18304 version_type=linux
18305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18306 shlibpath_var=LD_LIBRARY_PATH
18307 shlibpath_overrides_runpath=yes
18308 ;;
18309
18310 nto-qnx*)
18311 version_type=linux
18312 need_lib_prefix=no
18313 need_version=no
18314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18315 soname_spec='${libname}${release}${shared_ext}$major'
18316 shlibpath_var=LD_LIBRARY_PATH
18317 shlibpath_overrides_runpath=yes
18318 ;;
18319
18320 openbsd*)
18321 version_type=sunos
18322 sys_lib_dlsearch_path_spec="/usr/lib"
18323 need_lib_prefix=no
18324 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18325 case $host_os in
18326 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18327 *) need_version=no ;;
18328 esac
18329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18331 shlibpath_var=LD_LIBRARY_PATH
18332 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18333 case $host_os in
18334 openbsd2.[89] | openbsd2.[89].*)
18335 shlibpath_overrides_runpath=no
18336 ;;
18337 *)
18338 shlibpath_overrides_runpath=yes
18339 ;;
18340 esac
18341 else
18342 shlibpath_overrides_runpath=yes
18343 fi
18344 ;;
18345
18346 os2*)
18347 libname_spec='$name'
18348 shrext_cmds=".dll"
18349 need_lib_prefix=no
18350 library_names_spec='$libname${shared_ext} $libname.a'
18351 dynamic_linker='OS/2 ld.exe'
18352 shlibpath_var=LIBPATH
18353 ;;
18354
18355 osf3* | osf4* | osf5*)
18356 version_type=osf
18357 need_lib_prefix=no
18358 need_version=no
18359 soname_spec='${libname}${release}${shared_ext}$major'
18360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18361 shlibpath_var=LD_LIBRARY_PATH
18362 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18363 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18364 ;;
18365
18366 rdos*)
18367 dynamic_linker=no
18368 ;;
18369
18370 solaris*)
18371 version_type=linux
18372 need_lib_prefix=no
18373 need_version=no
18374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18375 soname_spec='${libname}${release}${shared_ext}$major'
18376 shlibpath_var=LD_LIBRARY_PATH
18377 shlibpath_overrides_runpath=yes
18378 hardcode_into_libs=yes
18379 # ldd complains unless libraries are executable
18380 postinstall_cmds='chmod +x $lib'
18381 ;;
18382
18383 sunos4*)
18384 version_type=sunos
18385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18386 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18387 shlibpath_var=LD_LIBRARY_PATH
18388 shlibpath_overrides_runpath=yes
18389 if test "$with_gnu_ld" = yes; then
18390 need_lib_prefix=no
18391 fi
18392 need_version=yes
18393 ;;
18394
18395 sysv4 | sysv4.3*)
18396 version_type=linux
18397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18398 soname_spec='${libname}${release}${shared_ext}$major'
18399 shlibpath_var=LD_LIBRARY_PATH
18400 case $host_vendor in
18401 sni)
18402 shlibpath_overrides_runpath=no
18403 need_lib_prefix=no
18404 export_dynamic_flag_spec='${wl}-Blargedynsym'
18405 runpath_var=LD_RUN_PATH
18406 ;;
18407 siemens)
18408 need_lib_prefix=no
18409 ;;
18410 motorola)
18411 need_lib_prefix=no
18412 need_version=no
18413 shlibpath_overrides_runpath=no
18414 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18415 ;;
18416 esac
18417 ;;
18418
18419 sysv4*MP*)
18420 if test -d /usr/nec ;then
18421 version_type=linux
18422 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18423 soname_spec='$libname${shared_ext}.$major'
18424 shlibpath_var=LD_LIBRARY_PATH
18425 fi
18426 ;;
18427
18428 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18429 version_type=freebsd-elf
18430 need_lib_prefix=no
18431 need_version=no
18432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18433 soname_spec='${libname}${release}${shared_ext}$major'
18434 shlibpath_var=LD_LIBRARY_PATH
18435 hardcode_into_libs=yes
18436 if test "$with_gnu_ld" = yes; then
18437 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18438 shlibpath_overrides_runpath=no
18439 else
18440 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18441 shlibpath_overrides_runpath=yes
18442 case $host_os in
18443 sco3.2v5*)
18444 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18445 ;;
18446 esac
18447 fi
18448 sys_lib_dlsearch_path_spec='/usr/lib'
18449 ;;
18450
18451 uts4*)
18452 version_type=linux
18453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18454 soname_spec='${libname}${release}${shared_ext}$major'
18455 shlibpath_var=LD_LIBRARY_PATH
18456 ;;
18457
18458 *)
18459 dynamic_linker=no
18460 ;;
18461 esac
18462 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18463 echo "${ECHO_T}$dynamic_linker" >&6; }
18464 test "$dynamic_linker" = no && can_build_shared=no
18465
18466 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18467 if test "$GCC" = yes; then
18468 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18469 fi
18470
18471 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18472 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18473 hardcode_action_GCJ=
18474 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18475 test -n "$runpath_var_GCJ" || \
18476 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18477
18478 # We can hardcode non-existant directories.
18479 if test "$hardcode_direct_GCJ" != no &&
18480 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18481 # have to relink, otherwise we might link with an installed library
18482 # when we should be linking with a yet-to-be-installed one
18483 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18484 test "$hardcode_minus_L_GCJ" != no; then
18485 # Linking always hardcodes the temporary library directory.
18486 hardcode_action_GCJ=relink
18487 else
18488 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18489 hardcode_action_GCJ=immediate
18490 fi
18491 else
18492 # We cannot hardcode anything, or else we can only hardcode existing
18493 # directories.
18494 hardcode_action_GCJ=unsupported
18495 fi
18496 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18497 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18498
18499 if test "$hardcode_action_GCJ" = relink; then
18500 # Fast installation is not supported
18501 enable_fast_install=no
18502 elif test "$shlibpath_overrides_runpath" = yes ||
18503 test "$enable_shared" = no; then
18504 # Fast installation is not necessary
18505 enable_fast_install=needless
18506 fi
18507
18508
18509 # The else clause should only fire when bootstrapping the
18510 # libtool distribution, otherwise you forgot to ship ltmain.sh
18511 # with your package, and you will get complaints that there are
18512 # no rules to generate ltmain.sh.
18513 if test -f "$ltmain"; then
18514 # See if we are running on zsh, and set the options which allow our commands through
18515 # without removal of \ escapes.
18516 if test -n "${ZSH_VERSION+set}" ; then
18517 setopt NO_GLOB_SUBST
18518 fi
18519 # Now quote all the things that may contain metacharacters while being
18520 # careful not to overquote the AC_SUBSTed values. We take copies of the
18521 # variables and quote the copies for generation of the libtool script.
18522 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18523 SED SHELL STRIP \
18524 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18525 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18526 deplibs_check_method reload_flag reload_cmds need_locks \
18527 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18528 lt_cv_sys_global_symbol_to_c_name_address \
18529 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18530 old_postinstall_cmds old_postuninstall_cmds \
18531 compiler_GCJ \
18532 CC_GCJ \
18533 LD_GCJ \
18534 lt_prog_compiler_wl_GCJ \
18535 lt_prog_compiler_pic_GCJ \
18536 lt_prog_compiler_static_GCJ \
18537 lt_prog_compiler_no_builtin_flag_GCJ \
18538 export_dynamic_flag_spec_GCJ \
18539 thread_safe_flag_spec_GCJ \
18540 whole_archive_flag_spec_GCJ \
18541 enable_shared_with_static_runtimes_GCJ \
18542 old_archive_cmds_GCJ \
18543 old_archive_from_new_cmds_GCJ \
18544 predep_objects_GCJ \
18545 postdep_objects_GCJ \
18546 predeps_GCJ \
18547 postdeps_GCJ \
18548 compiler_lib_search_path_GCJ \
18549 archive_cmds_GCJ \
18550 archive_expsym_cmds_GCJ \
18551 postinstall_cmds_GCJ \
18552 postuninstall_cmds_GCJ \
18553 old_archive_from_expsyms_cmds_GCJ \
18554 allow_undefined_flag_GCJ \
18555 no_undefined_flag_GCJ \
18556 export_symbols_cmds_GCJ \
18557 hardcode_libdir_flag_spec_GCJ \
18558 hardcode_libdir_flag_spec_ld_GCJ \
18559 hardcode_libdir_separator_GCJ \
18560 hardcode_automatic_GCJ \
18561 module_cmds_GCJ \
18562 module_expsym_cmds_GCJ \
18563 lt_cv_prog_compiler_c_o_GCJ \
18564 fix_srcfile_path_GCJ \
18565 exclude_expsyms_GCJ \
18566 include_expsyms_GCJ; do
18567
18568 case $var in
18569 old_archive_cmds_GCJ | \
18570 old_archive_from_new_cmds_GCJ | \
18571 archive_cmds_GCJ | \
18572 archive_expsym_cmds_GCJ | \
18573 module_cmds_GCJ | \
18574 module_expsym_cmds_GCJ | \
18575 old_archive_from_expsyms_cmds_GCJ | \
18576 export_symbols_cmds_GCJ | \
18577 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18578 postinstall_cmds | postuninstall_cmds | \
18579 old_postinstall_cmds | old_postuninstall_cmds | \
18580 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18581 # Double-quote double-evaled strings.
18582 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18583 ;;
18584 *)
18585 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18586 ;;
18587 esac
18588 done
18589
18590 case $lt_echo in
18591 *'\$0 --fallback-echo"')
18592 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18593 ;;
18594 esac
18595
18596 cfgfile="$ofile"
18597
18598 cat <<__EOF__ >> "$cfgfile"
18599 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18600
18601 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18602
18603 # Shell to use when invoking shell scripts.
18604 SHELL=$lt_SHELL
18605
18606 # Whether or not to build shared libraries.
18607 build_libtool_libs=$enable_shared
18608
18609 # Whether or not to build static libraries.
18610 build_old_libs=$enable_static
18611
18612 # Whether or not to add -lc for building shared libraries.
18613 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18614
18615 # Whether or not to disallow shared libs when runtime libs are static
18616 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18617
18618 # Whether or not to optimize for fast installation.
18619 fast_install=$enable_fast_install
18620
18621 # The host system.
18622 host_alias=$host_alias
18623 host=$host
18624 host_os=$host_os
18625
18626 # The build system.
18627 build_alias=$build_alias
18628 build=$build
18629 build_os=$build_os
18630
18631 # An echo program that does not interpret backslashes.
18632 echo=$lt_echo
18633
18634 # The archiver.
18635 AR=$lt_AR
18636 AR_FLAGS=$lt_AR_FLAGS
18637
18638 # A C compiler.
18639 LTCC=$lt_LTCC
18640
18641 # LTCC compiler flags.
18642 LTCFLAGS=$lt_LTCFLAGS
18643
18644 # A language-specific compiler.
18645 CC=$lt_compiler_GCJ
18646
18647 # Is the compiler the GNU C compiler?
18648 with_gcc=$GCC_GCJ
18649
18650 # An ERE matcher.
18651 EGREP=$lt_EGREP
18652
18653 # The linker used to build libraries.
18654 LD=$lt_LD_GCJ
18655
18656 # Whether we need hard or soft links.
18657 LN_S=$lt_LN_S
18658
18659 # A BSD-compatible nm program.
18660 NM=$lt_NM
18661
18662 # A symbol stripping program
18663 STRIP=$lt_STRIP
18664
18665 # Used to examine libraries when file_magic_cmd begins "file"
18666 MAGIC_CMD=$MAGIC_CMD
18667
18668 # Used on cygwin: DLL creation program.
18669 DLLTOOL="$DLLTOOL"
18670
18671 # Used on cygwin: object dumper.
18672 OBJDUMP="$OBJDUMP"
18673
18674 # Used on cygwin: assembler.
18675 AS="$AS"
18676
18677 # The name of the directory that contains temporary libtool files.
18678 objdir=$objdir
18679
18680 # How to create reloadable object files.
18681 reload_flag=$lt_reload_flag
18682 reload_cmds=$lt_reload_cmds
18683
18684 # How to pass a linker flag through the compiler.
18685 wl=$lt_lt_prog_compiler_wl_GCJ
18686
18687 # Object file suffix (normally "o").
18688 objext="$ac_objext"
18689
18690 # Old archive suffix (normally "a").
18691 libext="$libext"
18692
18693 # Shared library suffix (normally ".so").
18694 shrext_cmds='$shrext_cmds'
18695
18696 # Executable file suffix (normally "").
18697 exeext="$exeext"
18698
18699 # Additional compiler flags for building library objects.
18700 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18701 pic_mode=$pic_mode
18702
18703 # What is the maximum length of a command?
18704 max_cmd_len=$lt_cv_sys_max_cmd_len
18705
18706 # Does compiler simultaneously support -c and -o options?
18707 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18708
18709 # Must we lock files when doing compilation?
18710 need_locks=$lt_need_locks
18711
18712 # Do we need the lib prefix for modules?
18713 need_lib_prefix=$need_lib_prefix
18714
18715 # Do we need a version for libraries?
18716 need_version=$need_version
18717
18718 # Whether dlopen is supported.
18719 dlopen_support=$enable_dlopen
18720
18721 # Whether dlopen of programs is supported.
18722 dlopen_self=$enable_dlopen_self
18723
18724 # Whether dlopen of statically linked programs is supported.
18725 dlopen_self_static=$enable_dlopen_self_static
18726
18727 # Compiler flag to prevent dynamic linking.
18728 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18729
18730 # Compiler flag to turn off builtin functions.
18731 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18732
18733 # Compiler flag to allow reflexive dlopens.
18734 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18735
18736 # Compiler flag to generate shared objects directly from archives.
18737 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18738
18739 # Compiler flag to generate thread-safe objects.
18740 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18741
18742 # Library versioning type.
18743 version_type=$version_type
18744
18745 # Format of library name prefix.
18746 libname_spec=$lt_libname_spec
18747
18748 # List of archive names. First name is the real one, the rest are links.
18749 # The last name is the one that the linker finds with -lNAME.
18750 library_names_spec=$lt_library_names_spec
18751
18752 # The coded name of the library, if different from the real name.
18753 soname_spec=$lt_soname_spec
18754
18755 # Commands used to build and install an old-style archive.
18756 RANLIB=$lt_RANLIB
18757 old_archive_cmds=$lt_old_archive_cmds_GCJ
18758 old_postinstall_cmds=$lt_old_postinstall_cmds
18759 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18760
18761 # Create an old-style archive from a shared archive.
18762 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18763
18764 # Create a temporary old-style archive to link instead of a shared archive.
18765 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18766
18767 # Commands used to build and install a shared archive.
18768 archive_cmds=$lt_archive_cmds_GCJ
18769 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18770 postinstall_cmds=$lt_postinstall_cmds
18771 postuninstall_cmds=$lt_postuninstall_cmds
18772
18773 # Commands used to build a loadable module (assumed same as above if empty)
18774 module_cmds=$lt_module_cmds_GCJ
18775 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18776
18777 # Commands to strip libraries.
18778 old_striplib=$lt_old_striplib
18779 striplib=$lt_striplib
18780
18781 # Dependencies to place before the objects being linked to create a
18782 # shared library.
18783 predep_objects=$lt_predep_objects_GCJ
18784
18785 # Dependencies to place after the objects being linked to create a
18786 # shared library.
18787 postdep_objects=$lt_postdep_objects_GCJ
18788
18789 # Dependencies to place before the objects being linked to create a
18790 # shared library.
18791 predeps=$lt_predeps_GCJ
18792
18793 # Dependencies to place after the objects being linked to create a
18794 # shared library.
18795 postdeps=$lt_postdeps_GCJ
18796
18797 # The library search path used internally by the compiler when linking
18798 # a shared library.
18799 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18800
18801 # Method to check whether dependent libraries are shared objects.
18802 deplibs_check_method=$lt_deplibs_check_method
18803
18804 # Command to use when deplibs_check_method == file_magic.
18805 file_magic_cmd=$lt_file_magic_cmd
18806
18807 # Flag that allows shared libraries with undefined symbols to be built.
18808 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18809
18810 # Flag that forces no undefined symbols.
18811 no_undefined_flag=$lt_no_undefined_flag_GCJ
18812
18813 # Commands used to finish a libtool library installation in a directory.
18814 finish_cmds=$lt_finish_cmds
18815
18816 # Same as above, but a single script fragment to be evaled but not shown.
18817 finish_eval=$lt_finish_eval
18818
18819 # Take the output of nm and produce a listing of raw symbols and C names.
18820 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18821
18822 # Transform the output of nm in a proper C declaration
18823 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18824
18825 # Transform the output of nm in a C name address pair
18826 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18827
18828 # This is the shared library runtime path variable.
18829 runpath_var=$runpath_var
18830
18831 # This is the shared library path variable.
18832 shlibpath_var=$shlibpath_var
18833
18834 # Is shlibpath searched before the hard-coded library search path?
18835 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18836
18837 # How to hardcode a shared library path into an executable.
18838 hardcode_action=$hardcode_action_GCJ
18839
18840 # Whether we should hardcode library paths into libraries.
18841 hardcode_into_libs=$hardcode_into_libs
18842
18843 # Flag to hardcode \$libdir into a binary during linking.
18844 # This must work even if \$libdir does not exist.
18845 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18846
18847 # If ld is used when linking, flag to hardcode \$libdir into
18848 # a binary during linking. This must work even if \$libdir does
18849 # not exist.
18850 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18851
18852 # Whether we need a single -rpath flag with a separated argument.
18853 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18854
18855 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18856 # resulting binary.
18857 hardcode_direct=$hardcode_direct_GCJ
18858
18859 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18860 # resulting binary.
18861 hardcode_minus_L=$hardcode_minus_L_GCJ
18862
18863 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18864 # the resulting binary.
18865 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18866
18867 # Set to yes if building a shared library automatically hardcodes DIR into the library
18868 # and all subsequent libraries and executables linked against it.
18869 hardcode_automatic=$hardcode_automatic_GCJ
18870
18871 # Variables whose values should be saved in libtool wrapper scripts and
18872 # restored at relink time.
18873 variables_saved_for_relink="$variables_saved_for_relink"
18874
18875 # Whether libtool must link a program against all its dependency libraries.
18876 link_all_deplibs=$link_all_deplibs_GCJ
18877
18878 # Compile-time system search path for libraries
18879 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18880
18881 # Run-time system search path for libraries
18882 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18883
18884 # Fix the shell variable \$srcfile for the compiler.
18885 fix_srcfile_path=$lt_fix_srcfile_path
18886
18887 # Set to yes if exported symbols are required.
18888 always_export_symbols=$always_export_symbols_GCJ
18889
18890 # The commands to list exported symbols.
18891 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18892
18893 # The commands to extract the exported symbol list from a shared archive.
18894 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18895
18896 # Symbols that should not be listed in the preloaded symbols.
18897 exclude_expsyms=$lt_exclude_expsyms_GCJ
18898
18899 # Symbols that must always be exported.
18900 include_expsyms=$lt_include_expsyms_GCJ
18901
18902 # ### END LIBTOOL TAG CONFIG: $tagname
18903
18904 __EOF__
18905
18906
18907 else
18908 # If there is no Makefile yet, we rely on a make rule to execute
18909 # `config.status --recheck' to rerun these tests and create the
18910 # libtool script then.
18911 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18912 if test -f "$ltmain_in"; then
18913 test -f Makefile && make "$ltmain"
18914 fi
18915 fi
18916
18917
18918 ac_ext=c
18919 ac_cpp='$CPP $CPPFLAGS'
18920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18923
18924 CC="$lt_save_CC"
18925
18926 else
18927 tagname=""
18928 fi
18929 ;;
18930
18931 RC)
18932
18933
18934 # Source file extension for RC test sources.
18935 ac_ext=rc
18936
18937 # Object file extension for compiled RC test sources.
18938 objext=o
18939 objext_RC=$objext
18940
18941 # Code to be used in simple compile tests
18942 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18943
18944 # Code to be used in simple link tests
18945 lt_simple_link_test_code="$lt_simple_compile_test_code"
18946
18947 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18948
18949 # If no C compiler was specified, use CC.
18950 LTCC=${LTCC-"$CC"}
18951
18952 # If no C compiler flags were specified, use CFLAGS.
18953 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18954
18955 # Allow CC to be a program name with arguments.
18956 compiler=$CC
18957
18958
18959 # save warnings/boilerplate of simple test code
18960 ac_outfile=conftest.$ac_objext
18961 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18962 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18963 _lt_compiler_boilerplate=`cat conftest.err`
18964 $rm conftest*
18965
18966 ac_outfile=conftest.$ac_objext
18967 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18968 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18969 _lt_linker_boilerplate=`cat conftest.err`
18970 $rm conftest*
18971
18972
18973 # Allow CC to be a program name with arguments.
18974 lt_save_CC="$CC"
18975 CC=${RC-"windres"}
18976 compiler=$CC
18977 compiler_RC=$CC
18978 for cc_temp in $compiler""; do
18979 case $cc_temp in
18980 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18981 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18982 \-*) ;;
18983 *) break;;
18984 esac
18985 done
18986 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18987
18988 lt_cv_prog_compiler_c_o_RC=yes
18989
18990 # The else clause should only fire when bootstrapping the
18991 # libtool distribution, otherwise you forgot to ship ltmain.sh
18992 # with your package, and you will get complaints that there are
18993 # no rules to generate ltmain.sh.
18994 if test -f "$ltmain"; then
18995 # See if we are running on zsh, and set the options which allow our commands through
18996 # without removal of \ escapes.
18997 if test -n "${ZSH_VERSION+set}" ; then
18998 setopt NO_GLOB_SUBST
18999 fi
19000 # Now quote all the things that may contain metacharacters while being
19001 # careful not to overquote the AC_SUBSTed values. We take copies of the
19002 # variables and quote the copies for generation of the libtool script.
19003 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19004 SED SHELL STRIP \
19005 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19006 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19007 deplibs_check_method reload_flag reload_cmds need_locks \
19008 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19009 lt_cv_sys_global_symbol_to_c_name_address \
19010 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19011 old_postinstall_cmds old_postuninstall_cmds \
19012 compiler_RC \
19013 CC_RC \
19014 LD_RC \
19015 lt_prog_compiler_wl_RC \
19016 lt_prog_compiler_pic_RC \
19017 lt_prog_compiler_static_RC \
19018 lt_prog_compiler_no_builtin_flag_RC \
19019 export_dynamic_flag_spec_RC \
19020 thread_safe_flag_spec_RC \
19021 whole_archive_flag_spec_RC \
19022 enable_shared_with_static_runtimes_RC \
19023 old_archive_cmds_RC \
19024 old_archive_from_new_cmds_RC \
19025 predep_objects_RC \
19026 postdep_objects_RC \
19027 predeps_RC \
19028 postdeps_RC \
19029 compiler_lib_search_path_RC \
19030 archive_cmds_RC \
19031 archive_expsym_cmds_RC \
19032 postinstall_cmds_RC \
19033 postuninstall_cmds_RC \
19034 old_archive_from_expsyms_cmds_RC \
19035 allow_undefined_flag_RC \
19036 no_undefined_flag_RC \
19037 export_symbols_cmds_RC \
19038 hardcode_libdir_flag_spec_RC \
19039 hardcode_libdir_flag_spec_ld_RC \
19040 hardcode_libdir_separator_RC \
19041 hardcode_automatic_RC \
19042 module_cmds_RC \
19043 module_expsym_cmds_RC \
19044 lt_cv_prog_compiler_c_o_RC \
19045 fix_srcfile_path_RC \
19046 exclude_expsyms_RC \
19047 include_expsyms_RC; do
19048
19049 case $var in
19050 old_archive_cmds_RC | \
19051 old_archive_from_new_cmds_RC | \
19052 archive_cmds_RC | \
19053 archive_expsym_cmds_RC | \
19054 module_cmds_RC | \
19055 module_expsym_cmds_RC | \
19056 old_archive_from_expsyms_cmds_RC | \
19057 export_symbols_cmds_RC | \
19058 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19059 postinstall_cmds | postuninstall_cmds | \
19060 old_postinstall_cmds | old_postuninstall_cmds | \
19061 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19062 # Double-quote double-evaled strings.
19063 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19064 ;;
19065 *)
19066 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19067 ;;
19068 esac
19069 done
19070
19071 case $lt_echo in
19072 *'\$0 --fallback-echo"')
19073 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19074 ;;
19075 esac
19076
19077 cfgfile="$ofile"
19078
19079 cat <<__EOF__ >> "$cfgfile"
19080 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19081
19082 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19083
19084 # Shell to use when invoking shell scripts.
19085 SHELL=$lt_SHELL
19086
19087 # Whether or not to build shared libraries.
19088 build_libtool_libs=$enable_shared
19089
19090 # Whether or not to build static libraries.
19091 build_old_libs=$enable_static
19092
19093 # Whether or not to add -lc for building shared libraries.
19094 build_libtool_need_lc=$archive_cmds_need_lc_RC
19095
19096 # Whether or not to disallow shared libs when runtime libs are static
19097 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19098
19099 # Whether or not to optimize for fast installation.
19100 fast_install=$enable_fast_install
19101
19102 # The host system.
19103 host_alias=$host_alias
19104 host=$host
19105 host_os=$host_os
19106
19107 # The build system.
19108 build_alias=$build_alias
19109 build=$build
19110 build_os=$build_os
19111
19112 # An echo program that does not interpret backslashes.
19113 echo=$lt_echo
19114
19115 # The archiver.
19116 AR=$lt_AR
19117 AR_FLAGS=$lt_AR_FLAGS
19118
19119 # A C compiler.
19120 LTCC=$lt_LTCC
19121
19122 # LTCC compiler flags.
19123 LTCFLAGS=$lt_LTCFLAGS
19124
19125 # A language-specific compiler.
19126 CC=$lt_compiler_RC
19127
19128 # Is the compiler the GNU C compiler?
19129 with_gcc=$GCC_RC
19130
19131 # An ERE matcher.
19132 EGREP=$lt_EGREP
19133
19134 # The linker used to build libraries.
19135 LD=$lt_LD_RC
19136
19137 # Whether we need hard or soft links.
19138 LN_S=$lt_LN_S
19139
19140 # A BSD-compatible nm program.
19141 NM=$lt_NM
19142
19143 # A symbol stripping program
19144 STRIP=$lt_STRIP
19145
19146 # Used to examine libraries when file_magic_cmd begins "file"
19147 MAGIC_CMD=$MAGIC_CMD
19148
19149 # Used on cygwin: DLL creation program.
19150 DLLTOOL="$DLLTOOL"
19151
19152 # Used on cygwin: object dumper.
19153 OBJDUMP="$OBJDUMP"
19154
19155 # Used on cygwin: assembler.
19156 AS="$AS"
19157
19158 # The name of the directory that contains temporary libtool files.
19159 objdir=$objdir
19160
19161 # How to create reloadable object files.
19162 reload_flag=$lt_reload_flag
19163 reload_cmds=$lt_reload_cmds
19164
19165 # How to pass a linker flag through the compiler.
19166 wl=$lt_lt_prog_compiler_wl_RC
19167
19168 # Object file suffix (normally "o").
19169 objext="$ac_objext"
19170
19171 # Old archive suffix (normally "a").
19172 libext="$libext"
19173
19174 # Shared library suffix (normally ".so").
19175 shrext_cmds='$shrext_cmds'
19176
19177 # Executable file suffix (normally "").
19178 exeext="$exeext"
19179
19180 # Additional compiler flags for building library objects.
19181 pic_flag=$lt_lt_prog_compiler_pic_RC
19182 pic_mode=$pic_mode
19183
19184 # What is the maximum length of a command?
19185 max_cmd_len=$lt_cv_sys_max_cmd_len
19186
19187 # Does compiler simultaneously support -c and -o options?
19188 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19189
19190 # Must we lock files when doing compilation?
19191 need_locks=$lt_need_locks
19192
19193 # Do we need the lib prefix for modules?
19194 need_lib_prefix=$need_lib_prefix
19195
19196 # Do we need a version for libraries?
19197 need_version=$need_version
19198
19199 # Whether dlopen is supported.
19200 dlopen_support=$enable_dlopen
19201
19202 # Whether dlopen of programs is supported.
19203 dlopen_self=$enable_dlopen_self
19204
19205 # Whether dlopen of statically linked programs is supported.
19206 dlopen_self_static=$enable_dlopen_self_static
19207
19208 # Compiler flag to prevent dynamic linking.
19209 link_static_flag=$lt_lt_prog_compiler_static_RC
19210
19211 # Compiler flag to turn off builtin functions.
19212 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19213
19214 # Compiler flag to allow reflexive dlopens.
19215 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19216
19217 # Compiler flag to generate shared objects directly from archives.
19218 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19219
19220 # Compiler flag to generate thread-safe objects.
19221 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19222
19223 # Library versioning type.
19224 version_type=$version_type
19225
19226 # Format of library name prefix.
19227 libname_spec=$lt_libname_spec
19228
19229 # List of archive names. First name is the real one, the rest are links.
19230 # The last name is the one that the linker finds with -lNAME.
19231 library_names_spec=$lt_library_names_spec
19232
19233 # The coded name of the library, if different from the real name.
19234 soname_spec=$lt_soname_spec
19235
19236 # Commands used to build and install an old-style archive.
19237 RANLIB=$lt_RANLIB
19238 old_archive_cmds=$lt_old_archive_cmds_RC
19239 old_postinstall_cmds=$lt_old_postinstall_cmds
19240 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19241
19242 # Create an old-style archive from a shared archive.
19243 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19244
19245 # Create a temporary old-style archive to link instead of a shared archive.
19246 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19247
19248 # Commands used to build and install a shared archive.
19249 archive_cmds=$lt_archive_cmds_RC
19250 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19251 postinstall_cmds=$lt_postinstall_cmds
19252 postuninstall_cmds=$lt_postuninstall_cmds
19253
19254 # Commands used to build a loadable module (assumed same as above if empty)
19255 module_cmds=$lt_module_cmds_RC
19256 module_expsym_cmds=$lt_module_expsym_cmds_RC
19257
19258 # Commands to strip libraries.
19259 old_striplib=$lt_old_striplib
19260 striplib=$lt_striplib
19261
19262 # Dependencies to place before the objects being linked to create a
19263 # shared library.
19264 predep_objects=$lt_predep_objects_RC
19265
19266 # Dependencies to place after the objects being linked to create a
19267 # shared library.
19268 postdep_objects=$lt_postdep_objects_RC
19269
19270 # Dependencies to place before the objects being linked to create a
19271 # shared library.
19272 predeps=$lt_predeps_RC
19273
19274 # Dependencies to place after the objects being linked to create a
19275 # shared library.
19276 postdeps=$lt_postdeps_RC
19277
19278 # The library search path used internally by the compiler when linking
19279 # a shared library.
19280 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19281
19282 # Method to check whether dependent libraries are shared objects.
19283 deplibs_check_method=$lt_deplibs_check_method
19284
19285 # Command to use when deplibs_check_method == file_magic.
19286 file_magic_cmd=$lt_file_magic_cmd
19287
19288 # Flag that allows shared libraries with undefined symbols to be built.
19289 allow_undefined_flag=$lt_allow_undefined_flag_RC
19290
19291 # Flag that forces no undefined symbols.
19292 no_undefined_flag=$lt_no_undefined_flag_RC
19293
19294 # Commands used to finish a libtool library installation in a directory.
19295 finish_cmds=$lt_finish_cmds
19296
19297 # Same as above, but a single script fragment to be evaled but not shown.
19298 finish_eval=$lt_finish_eval
19299
19300 # Take the output of nm and produce a listing of raw symbols and C names.
19301 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19302
19303 # Transform the output of nm in a proper C declaration
19304 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19305
19306 # Transform the output of nm in a C name address pair
19307 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19308
19309 # This is the shared library runtime path variable.
19310 runpath_var=$runpath_var
19311
19312 # This is the shared library path variable.
19313 shlibpath_var=$shlibpath_var
19314
19315 # Is shlibpath searched before the hard-coded library search path?
19316 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19317
19318 # How to hardcode a shared library path into an executable.
19319 hardcode_action=$hardcode_action_RC
19320
19321 # Whether we should hardcode library paths into libraries.
19322 hardcode_into_libs=$hardcode_into_libs
19323
19324 # Flag to hardcode \$libdir into a binary during linking.
19325 # This must work even if \$libdir does not exist.
19326 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19327
19328 # If ld is used when linking, flag to hardcode \$libdir into
19329 # a binary during linking. This must work even if \$libdir does
19330 # not exist.
19331 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19332
19333 # Whether we need a single -rpath flag with a separated argument.
19334 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19335
19336 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19337 # resulting binary.
19338 hardcode_direct=$hardcode_direct_RC
19339
19340 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19341 # resulting binary.
19342 hardcode_minus_L=$hardcode_minus_L_RC
19343
19344 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19345 # the resulting binary.
19346 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19347
19348 # Set to yes if building a shared library automatically hardcodes DIR into the library
19349 # and all subsequent libraries and executables linked against it.
19350 hardcode_automatic=$hardcode_automatic_RC
19351
19352 # Variables whose values should be saved in libtool wrapper scripts and
19353 # restored at relink time.
19354 variables_saved_for_relink="$variables_saved_for_relink"
19355
19356 # Whether libtool must link a program against all its dependency libraries.
19357 link_all_deplibs=$link_all_deplibs_RC
19358
19359 # Compile-time system search path for libraries
19360 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19361
19362 # Run-time system search path for libraries
19363 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19364
19365 # Fix the shell variable \$srcfile for the compiler.
19366 fix_srcfile_path=$lt_fix_srcfile_path
19367
19368 # Set to yes if exported symbols are required.
19369 always_export_symbols=$always_export_symbols_RC
19370
19371 # The commands to list exported symbols.
19372 export_symbols_cmds=$lt_export_symbols_cmds_RC
19373
19374 # The commands to extract the exported symbol list from a shared archive.
19375 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19376
19377 # Symbols that should not be listed in the preloaded symbols.
19378 exclude_expsyms=$lt_exclude_expsyms_RC
19379
19380 # Symbols that must always be exported.
19381 include_expsyms=$lt_include_expsyms_RC
19382
19383 # ### END LIBTOOL TAG CONFIG: $tagname
19384
19385 __EOF__
19386
19387
19388 else
19389 # If there is no Makefile yet, we rely on a make rule to execute
19390 # `config.status --recheck' to rerun these tests and create the
19391 # libtool script then.
19392 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19393 if test -f "$ltmain_in"; then
19394 test -f Makefile && make "$ltmain"
19395 fi
19396 fi
19397
19398
19399 ac_ext=c
19400 ac_cpp='$CPP $CPPFLAGS'
19401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19404
19405 CC="$lt_save_CC"
19406
19407 ;;
19408
19409 *)
19410 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19411 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19412 { (exit 1); exit 1; }; }
19413 ;;
19414 esac
19415
19416 # Append the new tag name to the list of available tags.
19417 if test -n "$tagname" ; then
19418 available_tags="$available_tags $tagname"
19419 fi
19420 fi
19421 done
19422 IFS="$lt_save_ifs"
19423
19424 # Now substitute the updated list of available tags.
19425 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19426 mv "${ofile}T" "$ofile"
19427 chmod +x "$ofile"
19428 else
19429 rm -f "${ofile}T"
19430 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19431 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19432 { (exit 1); exit 1; }; }
19433 fi
19434 fi
19435
19436
19437
19438 # This can be used to rebuild libtool when needed
19439 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19440
19441 # Always use our own libtool.
19442 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19443
19444 # Prevent multiple expansion
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465 for ac_prog in perl5 perl
19466 do
19467 # Extract the first word of "$ac_prog", so it can be a program name with args.
19468 set dummy $ac_prog; ac_word=$2
19469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19471 if test "${ac_cv_path_PERL+set}" = set; then
19472 echo $ECHO_N "(cached) $ECHO_C" >&6
19473 else
19474 case $PERL in
19475 [\\/]* | ?:[\\/]*)
19476 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19477 ;;
19478 *)
19479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19480 for as_dir in $LPATH
19481 do
19482 IFS=$as_save_IFS
19483 test -z "$as_dir" && as_dir=.
19484 for ac_exec_ext in '' $ac_executable_extensions; do
19485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19486 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19488 break 2
19489 fi
19490 done
19491 done
19492 IFS=$as_save_IFS
19493
19494 ;;
19495 esac
19496 fi
19497 PERL=$ac_cv_path_PERL
19498 if test -n "$PERL"; then
19499 { echo "$as_me:$LINENO: result: $PERL" >&5
19500 echo "${ECHO_T}$PERL" >&6; }
19501 else
19502 { echo "$as_me:$LINENO: result: no" >&5
19503 echo "${ECHO_T}no" >&6; }
19504 fi
19505
19506
19507 test -n "$PERL" && break
19508 done
19509 test -n "$PERL" || PERL="perl"
19510
19511
19512 if test "$PERL" = "perl"
19513 then
19514 { { echo "$as_me:$LINENO: error: Perl not found." >&5
19515 echo "$as_me: error: Perl not found." >&2;}
19516 { (exit 1); exit 1; }; }
19517 fi
19518
19519 if test "$GCC" = "yes"
19520 then
19521 CFLAGS="$CFLAGS -Wall"
19522 fi
19523
19524 CFLAGS="$CFLAGS -I.. -I${srcdir}/.."
19525
19526
19527
19528 # Check whether --with-userdb was given.
19529 if test "${with_userdb+set}" = set; then
19530 withval=$with_userdb; userdb="$withval"
19531 else
19532 userdb="/etc/userdb"
19533 fi
19534
19535
19536 USERDB="`echo $userdb | tr 'a-z' 'A-Z'`"
19537
19538
19539
19540 # Check whether --with-userdbmandir was given.
19541 if test "${with_userdbmandir+set}" = set; then
19542 withval=$with_userdbmandir; mandir="$withval"
19543 fi
19544
19545
19546
19547 # Check whether --with-userdbtmpdir was given.
19548 if test "${with_userdbtmpdir+set}" = set; then
19549 withval=$with_userdbtmpdir; tmpdir="$withval"
19550 else
19551 tmpdir=""
19552 fi
19553
19554
19555
19556
19557 if test "$tmpdir" = ""
19558 then
19559 tmpdir=`echo "$userdb" | sed 's/\/[^\/]*$//'`
19560 fi
19561
19562
19563
19564
19565
19566
19567
19568 # Check whether --with-makedatprog was given.
19569 if test "${with_makedatprog+set}" = set; then
19570 withval=$with_makedatprog; makedat="$withval"
19571 else
19572 makedat="$bindir/makedat"
19573 fi
19574
19575
19576
19577 if test -d ${srcdir}/../md5
19578 then
19579
19580 cat >>confdefs.h <<_ACEOF
19581 #define HAVE_MD5 1
19582 _ACEOF
19583
19584 MD5LIB=../md5/libmd5.la
19585 else
19586 MD5LIB=""
19587 fi
19588
19589
19590 if test -d ${srcdir}/../sha1
19591 then
19592 SHA1LIB=../sha1/libsha1.la
19593 else
19594 SHA1LIB=""
19595 fi
19596
19597
19598 if test -d ${srcdir}/../libhmac
19599 then
19600
19601 cat >>confdefs.h <<_ACEOF
19602 #define HAVE_HMAC 1
19603 _ACEOF
19604
19605 HMACLIB=../libhmac/libhmac.la
19606 else
19607 HMACLIB=""
19608 fi
19609
19610
19611 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19612 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19613 if test "${ac_cv_header_stdc+set}" = set; then
19614 echo $ECHO_N "(cached) $ECHO_C" >&6
19615 else
19616 cat >conftest.$ac_ext <<_ACEOF
19617 /* confdefs.h. */
19618 _ACEOF
19619 cat confdefs.h >>conftest.$ac_ext
19620 cat >>conftest.$ac_ext <<_ACEOF
19621 /* end confdefs.h. */
19622 #include <stdlib.h>
19623 #include <stdarg.h>
19624 #include <string.h>
19625 #include <float.h>
19626
19627 int
19628 main ()
19629 {
19630
19631 ;
19632 return 0;
19633 }
19634 _ACEOF
19635 rm -f conftest.$ac_objext
19636 if { (ac_try="$ac_compile"
19637 case "(($ac_try" in
19638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19639 *) ac_try_echo=$ac_try;;
19640 esac
19641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19642 (eval "$ac_compile") 2>conftest.er1
19643 ac_status=$?
19644 grep -v '^ *+' conftest.er1 >conftest.err
19645 rm -f conftest.er1
19646 cat conftest.err >&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); } && {
19649 test -z "$ac_c_werror_flag" ||
19650 test ! -s conftest.err
19651 } && test -s conftest.$ac_objext; then
19652 ac_cv_header_stdc=yes
19653 else
19654 echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19656
19657 ac_cv_header_stdc=no
19658 fi
19659
19660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19661
19662 if test $ac_cv_header_stdc = yes; then
19663 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19664 cat >conftest.$ac_ext <<_ACEOF
19665 /* confdefs.h. */
19666 _ACEOF
19667 cat confdefs.h >>conftest.$ac_ext
19668 cat >>conftest.$ac_ext <<_ACEOF
19669 /* end confdefs.h. */
19670 #include <string.h>
19671
19672 _ACEOF
19673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19674 $EGREP "memchr" >/dev/null 2>&1; then
19675 :
19676 else
19677 ac_cv_header_stdc=no
19678 fi
19679 rm -f conftest*
19680
19681 fi
19682
19683 if test $ac_cv_header_stdc = yes; then
19684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19685 cat >conftest.$ac_ext <<_ACEOF
19686 /* confdefs.h. */
19687 _ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h. */
19691 #include <stdlib.h>
19692
19693 _ACEOF
19694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19695 $EGREP "free" >/dev/null 2>&1; then
19696 :
19697 else
19698 ac_cv_header_stdc=no
19699 fi
19700 rm -f conftest*
19701
19702 fi
19703
19704 if test $ac_cv_header_stdc = yes; then
19705 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19706 if test "$cross_compiling" = yes; then
19707 :
19708 else
19709 cat >conftest.$ac_ext <<_ACEOF
19710 /* confdefs.h. */
19711 _ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19715 #include <ctype.h>
19716 #include <stdlib.h>
19717 #if ((' ' & 0x0FF) == 0x020)
19718 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19719 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19720 #else
19721 # define ISLOWER(c) \
19722 (('a' <= (c) && (c) <= 'i') \
19723 || ('j' <= (c) && (c) <= 'r') \
19724 || ('s' <= (c) && (c) <= 'z'))
19725 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19726 #endif
19727
19728 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19729 int
19730 main ()
19731 {
19732 int i;
19733 for (i = 0; i < 256; i++)
19734 if (XOR (islower (i), ISLOWER (i))
19735 || toupper (i) != TOUPPER (i))
19736 return 2;
19737 return 0;
19738 }
19739 _ACEOF
19740 rm -f conftest$ac_exeext
19741 if { (ac_try="$ac_link"
19742 case "(($ac_try" in
19743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19744 *) ac_try_echo=$ac_try;;
19745 esac
19746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19747 (eval "$ac_link") 2>&5
19748 ac_status=$?
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19751 { (case "(($ac_try" in
19752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19753 *) ac_try_echo=$ac_try;;
19754 esac
19755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19756 (eval "$ac_try") 2>&5
19757 ac_status=$?
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); }; }; then
19760 :
19761 else
19762 echo "$as_me: program exited with status $ac_status" >&5
19763 echo "$as_me: failed program was:" >&5
19764 sed 's/^/| /' conftest.$ac_ext >&5
19765
19766 ( exit $ac_status )
19767 ac_cv_header_stdc=no
19768 fi
19769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19770 fi
19771
19772
19773 fi
19774 fi
19775 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19776 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19777 if test $ac_cv_header_stdc = yes; then
19778
19779 cat >>confdefs.h <<\_ACEOF
19780 #define STDC_HEADERS 1
19781 _ACEOF
19782
19783 fi
19784
19785
19786
19787
19788
19789
19790
19791 for ac_header in sys/stat.h sys/time.h unistd.h fcntl.h termios.h crypt.h
19792 do
19793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19798 echo $ECHO_N "(cached) $ECHO_C" >&6
19799 fi
19800 ac_res=`eval echo '${'$as_ac_Header'}'`
19801 { echo "$as_me:$LINENO: result: $ac_res" >&5
19802 echo "${ECHO_T}$ac_res" >&6; }
19803 else
19804 # Is the header compilable?
19805 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19807 cat >conftest.$ac_ext <<_ACEOF
19808 /* confdefs.h. */
19809 _ACEOF
19810 cat confdefs.h >>conftest.$ac_ext
19811 cat >>conftest.$ac_ext <<_ACEOF
19812 /* end confdefs.h. */
19813 $ac_includes_default
19814 #include <$ac_header>
19815 _ACEOF
19816 rm -f conftest.$ac_objext
19817 if { (ac_try="$ac_compile"
19818 case "(($ac_try" in
19819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820 *) ac_try_echo=$ac_try;;
19821 esac
19822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19823 (eval "$ac_compile") 2>conftest.er1
19824 ac_status=$?
19825 grep -v '^ *+' conftest.er1 >conftest.err
19826 rm -f conftest.er1
19827 cat conftest.err >&5
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); } && {
19830 test -z "$ac_c_werror_flag" ||
19831 test ! -s conftest.err
19832 } && test -s conftest.$ac_objext; then
19833 ac_header_compiler=yes
19834 else
19835 echo "$as_me: failed program was:" >&5
19836 sed 's/^/| /' conftest.$ac_ext >&5
19837
19838 ac_header_compiler=no
19839 fi
19840
19841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19843 echo "${ECHO_T}$ac_header_compiler" >&6; }
19844
19845 # Is the header present?
19846 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19848 cat >conftest.$ac_ext <<_ACEOF
19849 /* confdefs.h. */
19850 _ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
19854 #include <$ac_header>
19855 _ACEOF
19856 if { (ac_try="$ac_cpp conftest.$ac_ext"
19857 case "(($ac_try" in
19858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859 *) ac_try_echo=$ac_try;;
19860 esac
19861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19863 ac_status=$?
19864 grep -v '^ *+' conftest.er1 >conftest.err
19865 rm -f conftest.er1
19866 cat conftest.err >&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } >/dev/null && {
19869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19870 test ! -s conftest.err
19871 }; then
19872 ac_header_preproc=yes
19873 else
19874 echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19876
19877 ac_header_preproc=no
19878 fi
19879
19880 rm -f conftest.err conftest.$ac_ext
19881 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19882 echo "${ECHO_T}$ac_header_preproc" >&6; }
19883
19884 # So? What about this header?
19885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19886 yes:no: )
19887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19891 ac_header_preproc=yes
19892 ;;
19893 no:yes:* )
19894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19901 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19906 ( cat <<\_ASBOX
19907 ## -------------------------------------------------- ##
19908 ## Report this to courier-users@lists.sourceforge.net ##
19909 ## -------------------------------------------------- ##
19910 _ASBOX
19911 ) | sed "s/^/$as_me: WARNING: /" >&2
19912 ;;
19913 esac
19914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19917 echo $ECHO_N "(cached) $ECHO_C" >&6
19918 else
19919 eval "$as_ac_Header=\$ac_header_preproc"
19920 fi
19921 ac_res=`eval echo '${'$as_ac_Header'}'`
19922 { echo "$as_me:$LINENO: result: $ac_res" >&5
19923 echo "${ECHO_T}$ac_res" >&6; }
19924
19925 fi
19926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19927 cat >>confdefs.h <<_ACEOF
19928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19929 _ACEOF
19930
19931 fi
19932
19933 done
19934
19935 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19936 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19937 if test "${ac_cv_header_time+set}" = set; then
19938 echo $ECHO_N "(cached) $ECHO_C" >&6
19939 else
19940 cat >conftest.$ac_ext <<_ACEOF
19941 /* confdefs.h. */
19942 _ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h. */
19946 #include <sys/types.h>
19947 #include <sys/time.h>
19948 #include <time.h>
19949
19950 int
19951 main ()
19952 {
19953 if ((struct tm *) 0)
19954 return 0;
19955 ;
19956 return 0;
19957 }
19958 _ACEOF
19959 rm -f conftest.$ac_objext
19960 if { (ac_try="$ac_compile"
19961 case "(($ac_try" in
19962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963 *) ac_try_echo=$ac_try;;
19964 esac
19965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966 (eval "$ac_compile") 2>conftest.er1
19967 ac_status=$?
19968 grep -v '^ *+' conftest.er1 >conftest.err
19969 rm -f conftest.er1
19970 cat conftest.err >&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } && {
19973 test -z "$ac_c_werror_flag" ||
19974 test ! -s conftest.err
19975 } && test -s conftest.$ac_objext; then
19976 ac_cv_header_time=yes
19977 else
19978 echo "$as_me: failed program was:" >&5
19979 sed 's/^/| /' conftest.$ac_ext >&5
19980
19981 ac_cv_header_time=no
19982 fi
19983
19984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19985 fi
19986 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19987 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19988 if test $ac_cv_header_time = yes; then
19989
19990 cat >>confdefs.h <<\_ACEOF
19991 #define TIME_WITH_SYS_TIME 1
19992 _ACEOF
19993
19994 fi
19995
19996
19997 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19998 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19999 if test "${ac_cv_c_const+set}" = set; then
20000 echo $ECHO_N "(cached) $ECHO_C" >&6
20001 else
20002 cat >conftest.$ac_ext <<_ACEOF
20003 /* confdefs.h. */
20004 _ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h. */
20008
20009 int
20010 main ()
20011 {
20012 /* FIXME: Include the comments suggested by Paul. */
20013 #ifndef __cplusplus
20014 /* Ultrix mips cc rejects this. */
20015 typedef int charset[2];
20016 const charset cs;
20017 /* SunOS 4.1.1 cc rejects this. */
20018 char const *const *pcpcc;
20019 char **ppc;
20020 /* NEC SVR4.0.2 mips cc rejects this. */
20021 struct point {int x, y;};
20022 static struct point const zero = {0,0};
20023 /* AIX XL C 1.02.0.0 rejects this.
20024 It does not let you subtract one const X* pointer from another in
20025 an arm of an if-expression whose if-part is not a constant
20026 expression */
20027 const char *g = "string";
20028 pcpcc = &g + (g ? g-g : 0);
20029 /* HPUX 7.0 cc rejects these. */
20030 ++pcpcc;
20031 ppc = (char**) pcpcc;
20032 pcpcc = (char const *const *) ppc;
20033 { /* SCO 3.2v4 cc rejects this. */
20034 char *t;
20035 char const *s = 0 ? (char *) 0 : (char const *) 0;
20036
20037 *t++ = 0;
20038 if (s) return 0;
20039 }
20040 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20041 int x[] = {25, 17};
20042 const int *foo = &x[0];
20043 ++foo;
20044 }
20045 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20046 typedef const int *iptr;
20047 iptr p = 0;
20048 ++p;
20049 }
20050 { /* AIX XL C 1.02.0.0 rejects this saying
20051 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20052 struct s { int j; const int *ap[3]; };
20053 struct s *b; b->j = 5;
20054 }
20055 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20056 const int foo = 10;
20057 if (!foo) return 0;
20058 }
20059 return !cs[0] && !zero.x;
20060 #endif
20061
20062 ;
20063 return 0;
20064 }
20065 _ACEOF
20066 rm -f conftest.$ac_objext
20067 if { (ac_try="$ac_compile"
20068 case "(($ac_try" in
20069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070 *) ac_try_echo=$ac_try;;
20071 esac
20072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20073 (eval "$ac_compile") 2>conftest.er1
20074 ac_status=$?
20075 grep -v '^ *+' conftest.er1 >conftest.err
20076 rm -f conftest.er1
20077 cat conftest.err >&5
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); } && {
20080 test -z "$ac_c_werror_flag" ||
20081 test ! -s conftest.err
20082 } && test -s conftest.$ac_objext; then
20083 ac_cv_c_const=yes
20084 else
20085 echo "$as_me: failed program was:" >&5
20086 sed 's/^/| /' conftest.$ac_ext >&5
20087
20088 ac_cv_c_const=no
20089 fi
20090
20091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20092 fi
20093 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20094 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20095 if test $ac_cv_c_const = no; then
20096
20097 cat >>confdefs.h <<\_ACEOF
20098 #define const
20099 _ACEOF
20100
20101 fi
20102
20103 { echo "$as_me:$LINENO: checking for pid_t" >&5
20104 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
20105 if test "${ac_cv_type_pid_t+set}" = set; then
20106 echo $ECHO_N "(cached) $ECHO_C" >&6
20107 else
20108 cat >conftest.$ac_ext <<_ACEOF
20109 /* confdefs.h. */
20110 _ACEOF
20111 cat confdefs.h >>conftest.$ac_ext
20112 cat >>conftest.$ac_ext <<_ACEOF
20113 /* end confdefs.h. */
20114 $ac_includes_default
20115 typedef pid_t ac__type_new_;
20116 int
20117 main ()
20118 {
20119 if ((ac__type_new_ *) 0)
20120 return 0;
20121 if (sizeof (ac__type_new_))
20122 return 0;
20123 ;
20124 return 0;
20125 }
20126 _ACEOF
20127 rm -f conftest.$ac_objext
20128 if { (ac_try="$ac_compile"
20129 case "(($ac_try" in
20130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131 *) ac_try_echo=$ac_try;;
20132 esac
20133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20134 (eval "$ac_compile") 2>conftest.er1
20135 ac_status=$?
20136 grep -v '^ *+' conftest.er1 >conftest.err
20137 rm -f conftest.er1
20138 cat conftest.err >&5
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); } && {
20141 test -z "$ac_c_werror_flag" ||
20142 test ! -s conftest.err
20143 } && test -s conftest.$ac_objext; then
20144 ac_cv_type_pid_t=yes
20145 else
20146 echo "$as_me: failed program was:" >&5
20147 sed 's/^/| /' conftest.$ac_ext >&5
20148
20149 ac_cv_type_pid_t=no
20150 fi
20151
20152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20153 fi
20154 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20155 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
20156 if test $ac_cv_type_pid_t = yes; then
20157 :
20158 else
20159
20160 cat >>confdefs.h <<_ACEOF
20161 #define pid_t int
20162 _ACEOF
20163
20164 fi
20165
20166 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20167 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
20168 if test "${ac_cv_type_uid_t+set}" = set; then
20169 echo $ECHO_N "(cached) $ECHO_C" >&6
20170 else
20171 cat >conftest.$ac_ext <<_ACEOF
20172 /* confdefs.h. */
20173 _ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h. */
20177 #include <sys/types.h>
20178
20179 _ACEOF
20180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20181 $EGREP "uid_t" >/dev/null 2>&1; then
20182 ac_cv_type_uid_t=yes
20183 else
20184 ac_cv_type_uid_t=no
20185 fi
20186 rm -f conftest*
20187
20188 fi
20189 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20190 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
20191 if test $ac_cv_type_uid_t = no; then
20192
20193 cat >>confdefs.h <<\_ACEOF
20194 #define uid_t int
20195 _ACEOF
20196
20197
20198 cat >>confdefs.h <<\_ACEOF
20199 #define gid_t int
20200 _ACEOF
20201
20202 fi
20203
20204 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20205 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
20206 if test "${ac_cv_type_signal+set}" = set; then
20207 echo $ECHO_N "(cached) $ECHO_C" >&6
20208 else
20209 cat >conftest.$ac_ext <<_ACEOF
20210 /* confdefs.h. */
20211 _ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h. */
20215 #include <sys/types.h>
20216 #include <signal.h>
20217
20218 int
20219 main ()
20220 {
20221 return *(signal (0, 0)) (0) == 1;
20222 ;
20223 return 0;
20224 }
20225 _ACEOF
20226 rm -f conftest.$ac_objext
20227 if { (ac_try="$ac_compile"
20228 case "(($ac_try" in
20229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20230 *) ac_try_echo=$ac_try;;
20231 esac
20232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233 (eval "$ac_compile") 2>conftest.er1
20234 ac_status=$?
20235 grep -v '^ *+' conftest.er1 >conftest.err
20236 rm -f conftest.er1
20237 cat conftest.err >&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } && {
20240 test -z "$ac_c_werror_flag" ||
20241 test ! -s conftest.err
20242 } && test -s conftest.$ac_objext; then
20243 ac_cv_type_signal=int
20244 else
20245 echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20247
20248 ac_cv_type_signal=void
20249 fi
20250
20251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20252 fi
20253 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20254 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
20255
20256 cat >>confdefs.h <<_ACEOF
20257 #define RETSIGTYPE $ac_cv_type_signal
20258 _ACEOF
20259
20260
20261
20262
20263 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
20264 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
20265 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
20266 echo $ECHO_N "(cached) $ECHO_C" >&6
20267 else
20268 ac_check_lib_save_LIBS=$LIBS
20269 LIBS="-lcrypt $LIBS"
20270 cat >conftest.$ac_ext <<_ACEOF
20271 /* confdefs.h. */
20272 _ACEOF
20273 cat confdefs.h >>conftest.$ac_ext
20274 cat >>conftest.$ac_ext <<_ACEOF
20275 /* end confdefs.h. */
20276
20277 /* Override any GCC internal prototype to avoid an error.
20278 Use char because int might match the return type of a GCC
20279 builtin and then its argument prototype would still apply. */
20280 #ifdef __cplusplus
20281 extern "C"
20282 #endif
20283 char crypt ();
20284 int
20285 main ()
20286 {
20287 return crypt ();
20288 ;
20289 return 0;
20290 }
20291 _ACEOF
20292 rm -f conftest.$ac_objext conftest$ac_exeext
20293 if { (ac_try="$ac_link"
20294 case "(($ac_try" in
20295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296 *) ac_try_echo=$ac_try;;
20297 esac
20298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20299 (eval "$ac_link") 2>conftest.er1
20300 ac_status=$?
20301 grep -v '^ *+' conftest.er1 >conftest.err
20302 rm -f conftest.er1
20303 cat conftest.err >&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); } && {
20306 test -z "$ac_c_werror_flag" ||
20307 test ! -s conftest.err
20308 } && test -s conftest$ac_exeext &&
20309 $as_test_x conftest$ac_exeext; then
20310 ac_cv_lib_crypt_crypt=yes
20311 else
20312 echo "$as_me: failed program was:" >&5
20313 sed 's/^/| /' conftest.$ac_ext >&5
20314
20315 ac_cv_lib_crypt_crypt=no
20316 fi
20317
20318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20319 conftest$ac_exeext conftest.$ac_ext
20320 LIBS=$ac_check_lib_save_LIBS
20321 fi
20322 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
20323 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
20324 if test $ac_cv_lib_crypt_crypt = yes; then
20325 CRYPTLIBS="-lcrypt"
20326 fi
20327
20328 saveLIBS="$LIBS"
20329 LIBS="$CRYPTLIBS $LIBS"
20330 { echo "$as_me:$LINENO: checking for crypt" >&5
20331 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
20332 if test "${ac_cv_func_crypt+set}" = set; then
20333 echo $ECHO_N "(cached) $ECHO_C" >&6
20334 else
20335 cat >conftest.$ac_ext <<_ACEOF
20336 /* confdefs.h. */
20337 _ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h. */
20341 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
20342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20343 #define crypt innocuous_crypt
20344
20345 /* System header to define __stub macros and hopefully few prototypes,
20346 which can conflict with char crypt (); below.
20347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20348 <limits.h> exists even on freestanding compilers. */
20349
20350 #ifdef __STDC__
20351 # include <limits.h>
20352 #else
20353 # include <assert.h>
20354 #endif
20355
20356 #undef crypt
20357
20358 /* Override any GCC internal prototype to avoid an error.
20359 Use char because int might match the return type of a GCC
20360 builtin and then its argument prototype would still apply. */
20361 #ifdef __cplusplus
20362 extern "C"
20363 #endif
20364 char crypt ();
20365 /* The GNU C library defines this for functions which it implements
20366 to always fail with ENOSYS. Some functions are actually named
20367 something starting with __ and the normal name is an alias. */
20368 #if defined __stub_crypt || defined __stub___crypt
20369 choke me
20370 #endif
20371
20372 int
20373 main ()
20374 {
20375 return crypt ();
20376 ;
20377 return 0;
20378 }
20379 _ACEOF
20380 rm -f conftest.$ac_objext conftest$ac_exeext
20381 if { (ac_try="$ac_link"
20382 case "(($ac_try" in
20383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384 *) ac_try_echo=$ac_try;;
20385 esac
20386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387 (eval "$ac_link") 2>conftest.er1
20388 ac_status=$?
20389 grep -v '^ *+' conftest.er1 >conftest.err
20390 rm -f conftest.er1
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } && {
20394 test -z "$ac_c_werror_flag" ||
20395 test ! -s conftest.err
20396 } && test -s conftest$ac_exeext &&
20397 $as_test_x conftest$ac_exeext; then
20398 ac_cv_func_crypt=yes
20399 else
20400 echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.$ac_ext >&5
20402
20403 ac_cv_func_crypt=no
20404 fi
20405
20406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20407 conftest$ac_exeext conftest.$ac_ext
20408 fi
20409 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
20410 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
20411 if test $ac_cv_func_crypt = yes; then
20412
20413 cat >>confdefs.h <<_ACEOF
20414 #define HAVE_CRYPT 1
20415 _ACEOF
20416
20417 fi
20418
20419 LIBS="$saveLIBS"
20420 { echo "$as_me:$LINENO: checking for crypt() prototype" >&5
20421 echo $ECHO_N "checking for crypt() prototype... $ECHO_C" >&6; }
20422 if test "${userdb_cv_NEED_CRYPT_PROTOTYPE+set}" = set; then
20423 echo $ECHO_N "(cached) $ECHO_C" >&6
20424 else
20425 cat >conftest.$ac_ext <<_ACEOF
20426 /* confdefs.h. */
20427 _ACEOF
20428 cat confdefs.h >>conftest.$ac_ext
20429 cat >>conftest.$ac_ext <<_ACEOF
20430 /* end confdefs.h. */
20431
20432 #if HAVE_CRYPT_H
20433 #include <crypt.h>
20434 #endif
20435 #if HAVE_UNISTD_H
20436 #include <unistd.h>
20437 #endif
20438 int crypt(int, int);
20439
20440
20441 int
20442 main ()
20443 {
20444
20445 ;
20446 return 0;
20447 }
20448 _ACEOF
20449 rm -f conftest.$ac_objext
20450 if { (ac_try="$ac_compile"
20451 case "(($ac_try" in
20452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20453 *) ac_try_echo=$ac_try;;
20454 esac
20455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20456 (eval "$ac_compile") 2>conftest.er1
20457 ac_status=$?
20458 grep -v '^ *+' conftest.er1 >conftest.err
20459 rm -f conftest.er1
20460 cat conftest.err >&5
20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); } && {
20463 test -z "$ac_c_werror_flag" ||
20464 test ! -s conftest.err
20465 } && test -s conftest.$ac_objext; then
20466 userdb_cv_NEED_CRYPT_PROTOTYPE=1
20467 else
20468 echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20470
20471 userdb_cv_NEED_CRYPT_PROTOTYPE=0
20472 fi
20473
20474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20475
20476
20477 fi
20478 { echo "$as_me:$LINENO: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5
20479 echo "${ECHO_T}$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; }
20480
20481
20482 cat >>confdefs.h <<_ACEOF
20483 #define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE
20484 _ACEOF
20485
20486
20487
20488
20489
20490 for ac_func in isatty gettimeofday
20491 do
20492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20496 echo $ECHO_N "(cached) $ECHO_C" >&6
20497 else
20498 cat >conftest.$ac_ext <<_ACEOF
20499 /* confdefs.h. */
20500 _ACEOF
20501 cat confdefs.h >>conftest.$ac_ext
20502 cat >>conftest.$ac_ext <<_ACEOF
20503 /* end confdefs.h. */
20504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20506 #define $ac_func innocuous_$ac_func
20507
20508 /* System header to define __stub macros and hopefully few prototypes,
20509 which can conflict with char $ac_func (); below.
20510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20511 <limits.h> exists even on freestanding compilers. */
20512
20513 #ifdef __STDC__
20514 # include <limits.h>
20515 #else
20516 # include <assert.h>
20517 #endif
20518
20519 #undef $ac_func
20520
20521 /* Override any GCC internal prototype to avoid an error.
20522 Use char because int might match the return type of a GCC
20523 builtin and then its argument prototype would still apply. */
20524 #ifdef __cplusplus
20525 extern "C"
20526 #endif
20527 char $ac_func ();
20528 /* The GNU C library defines this for functions which it implements
20529 to always fail with ENOSYS. Some functions are actually named
20530 something starting with __ and the normal name is an alias. */
20531 #if defined __stub_$ac_func || defined __stub___$ac_func
20532 choke me
20533 #endif
20534
20535 int
20536 main ()
20537 {
20538 return $ac_func ();
20539 ;
20540 return 0;
20541 }
20542 _ACEOF
20543 rm -f conftest.$ac_objext conftest$ac_exeext
20544 if { (ac_try="$ac_link"
20545 case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20548 esac
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_link") 2>conftest.er1
20551 ac_status=$?
20552 grep -v '^ *+' conftest.er1 >conftest.err
20553 rm -f conftest.er1
20554 cat conftest.err >&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); } && {
20557 test -z "$ac_c_werror_flag" ||
20558 test ! -s conftest.err
20559 } && test -s conftest$ac_exeext &&
20560 $as_test_x conftest$ac_exeext; then
20561 eval "$as_ac_var=yes"
20562 else
20563 echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.$ac_ext >&5
20565
20566 eval "$as_ac_var=no"
20567 fi
20568
20569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20570 conftest$ac_exeext conftest.$ac_ext
20571 fi
20572 ac_res=`eval echo '${'$as_ac_var'}'`
20573 { echo "$as_me:$LINENO: result: $ac_res" >&5
20574 echo "${ECHO_T}$ac_res" >&6; }
20575 if test `eval echo '${'$as_ac_var'}'` = yes; then
20576 cat >>confdefs.h <<_ACEOF
20577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20578 _ACEOF
20579
20580 fi
20581 done
20582
20583
20584
20585 # Check whether --with-random was given.
20586 if test "${with_random+set}" = set; then
20587 withval=$with_random; random="$withval"
20588 else
20589 random="y"
20590 fi
20591
20592
20593 case "$random" in
20594 /*)
20595 ;;
20596 y*|1*)
20597 { echo "$as_me:$LINENO: checking for random source" >&5
20598 echo $ECHO_N "checking for random source... $ECHO_C" >&6; }
20599 if test "${userdb_cv_RANDOM+set}" = set; then
20600 echo $ECHO_N "(cached) $ECHO_C" >&6
20601 else
20602 if test -c /dev/urandom
20603 then
20604 userdb_cv_RANDOM=/dev/urandom
20605 else
20606 if test -c /dev/random
20607 then
20608 userdb_cv_RANDOM=/dev/random
20609 else
20610 userdb_cv_RANDOM="none"
20611 fi
20612 fi
20613
20614 fi
20615 { echo "$as_me:$LINENO: result: $userdb_cv_RANDOM" >&5
20616 echo "${ECHO_T}$userdb_cv_RANDOM" >&6; }
20617 random="$userdb_cv_RANDOM"
20618 ;;
20619 *)
20620 random="none"
20621 ;;
20622 esac
20623
20624 if test "$random" != "none"
20625 then
20626
20627 cat >>confdefs.h <<_ACEOF
20628 #define RANDOM "$random"
20629 _ACEOF
20630
20631 fi
20632
20633 if test -d ${srcdir}/../docbook; then
20634 HAVE_SGML_TRUE=
20635 HAVE_SGML_FALSE='#'
20636 else
20637 HAVE_SGML_TRUE='#'
20638 HAVE_SGML_FALSE=
20639 fi
20640
20641
20642 ac_config_files="$ac_config_files Makefile userdb.pl makeuserdb pw2userdb"
20643
20644 cat >confcache <<\_ACEOF
20645 # This file is a shell script that caches the results of configure
20646 # tests run on this system so they can be shared between configure
20647 # scripts and configure runs, see configure's option --config-cache.
20648 # It is not useful on other systems. If it contains results you don't
20649 # want to keep, you may remove or edit it.
20650 #
20651 # config.status only pays attention to the cache file if you give it
20652 # the --recheck option to rerun configure.
20653 #
20654 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20655 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20656 # following values.
20657
20658 _ACEOF
20659
20660 # The following way of writing the cache mishandles newlines in values,
20661 # but we know of no workaround that is simple, portable, and efficient.
20662 # So, we kill variables containing newlines.
20663 # Ultrix sh set writes to stderr and can't be redirected directly,
20664 # and sets the high bit in the cache file unless we assign to the vars.
20665 (
20666 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20667 eval ac_val=\$$ac_var
20668 case $ac_val in #(
20669 *${as_nl}*)
20670 case $ac_var in #(
20671 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20672 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20673 esac
20674 case $ac_var in #(
20675 _ | IFS | as_nl) ;; #(
20676 *) $as_unset $ac_var ;;
20677 esac ;;
20678 esac
20679 done
20680
20681 (set) 2>&1 |
20682 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20683 *${as_nl}ac_space=\ *)
20684 # `set' does not quote correctly, so add quotes (double-quote
20685 # substitution turns \\\\ into \\, and sed turns \\ into \).
20686 sed -n \
20687 "s/'/'\\\\''/g;
20688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20689 ;; #(
20690 *)
20691 # `set' quotes correctly as required by POSIX, so do not add quotes.
20692 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20693 ;;
20694 esac |
20695 sort
20696 ) |
20697 sed '
20698 /^ac_cv_env_/b end
20699 t clear
20700 :clear
20701 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20702 t end
20703 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20704 :end' >>confcache
20705 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20706 if test -w "$cache_file"; then
20707 test "x$cache_file" != "x/dev/null" &&
20708 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20709 echo "$as_me: updating cache $cache_file" >&6;}
20710 cat confcache >$cache_file
20711 else
20712 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20713 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20714 fi
20715 fi
20716 rm -f confcache
20717
20718 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20719 # Let make expand exec_prefix.
20720 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20721
20722 # Transform confdefs.h into DEFS.
20723 # Protect against shell expansion while executing Makefile rules.
20724 # Protect against Makefile macro expansion.
20725 #
20726 # If the first sed substitution is executed (which looks for macros that
20727 # take arguments), then branch to the quote section. Otherwise,
20728 # look for a macro that doesn't take arguments.
20729 ac_script='
20730 t clear
20731 :clear
20732 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20733 t quote
20734 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20735 t quote
20736 b any
20737 :quote
20738 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20739 s/\[/\\&/g
20740 s/\]/\\&/g
20741 s/\$/$$/g
20742 H
20743 :any
20744 ${
20745 g
20746 s/^\n//
20747 s/\n/ /g
20748 p
20749 }
20750 '
20751 DEFS=`sed -n "$ac_script" confdefs.h`
20752
20753
20754 ac_libobjs=
20755 ac_ltlibobjs=
20756 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20757 # 1. Remove the extension, and $U if already installed.
20758 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20759 ac_i=`echo "$ac_i" | sed "$ac_script"`
20760 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20761 # will be set to the directory where LIBOBJS objects are built.
20762 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20763 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20764 done
20765 LIBOBJS=$ac_libobjs
20766
20767 LTLIBOBJS=$ac_ltlibobjs
20768
20769
20770 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20771 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20772 Usually this means the macro was only invoked conditionally." >&5
20773 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20774 Usually this means the macro was only invoked conditionally." >&2;}
20775 { (exit 1); exit 1; }; }
20776 fi
20777 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20778 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20779 Usually this means the macro was only invoked conditionally." >&5
20780 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20781 Usually this means the macro was only invoked conditionally." >&2;}
20782 { (exit 1); exit 1; }; }
20783 fi
20784 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20785 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20786 Usually this means the macro was only invoked conditionally." >&5
20787 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20788 Usually this means the macro was only invoked conditionally." >&2;}
20789 { (exit 1); exit 1; }; }
20790 fi
20791 if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
20792 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined.
20793 Usually this means the macro was only invoked conditionally." >&5
20794 echo "$as_me: error: conditional \"HAVE_SGML\" was never defined.
20795 Usually this means the macro was only invoked conditionally." >&2;}
20796 { (exit 1); exit 1; }; }
20797 fi
20798
20799 : ${CONFIG_STATUS=./config.status}
20800 ac_clean_files_save=$ac_clean_files
20801 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20802 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20803 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20804 cat >$CONFIG_STATUS <<_ACEOF
20805 #! $SHELL
20806 # Generated by $as_me.
20807 # Run this file to recreate the current configuration.
20808 # Compiler output produced by configure, useful for debugging
20809 # configure, is in config.log if it exists.
20810
20811 debug=false
20812 ac_cs_recheck=false
20813 ac_cs_silent=false
20814 SHELL=\${CONFIG_SHELL-$SHELL}
20815 _ACEOF
20816
20817 cat >>$CONFIG_STATUS <<\_ACEOF
20818 ## --------------------- ##
20819 ## M4sh Initialization. ##
20820 ## --------------------- ##
20821
20822 # Be more Bourne compatible
20823 DUALCASE=1; export DUALCASE # for MKS sh
20824 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20825 emulate sh
20826 NULLCMD=:
20827 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20828 # is contrary to our usage. Disable this feature.
20829 alias -g '${1+"$@"}'='"$@"'
20830 setopt NO_GLOB_SUBST
20831 else
20832 case `(set -o) 2>/dev/null` in
20833 *posix*) set -o posix ;;
20834 esac
20835
20836 fi
20837
20838
20839
20840
20841 # PATH needs CR
20842 # Avoid depending upon Character Ranges.
20843 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20844 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20845 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20846 as_cr_digits='0123456789'
20847 as_cr_alnum=$as_cr_Letters$as_cr_digits
20848
20849 # The user is always right.
20850 if test "${PATH_SEPARATOR+set}" != set; then
20851 echo "#! /bin/sh" >conf$$.sh
20852 echo "exit 0" >>conf$$.sh
20853 chmod +x conf$$.sh
20854 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20855 PATH_SEPARATOR=';'
20856 else
20857 PATH_SEPARATOR=:
20858 fi
20859 rm -f conf$$.sh
20860 fi
20861
20862 # Support unset when possible.
20863 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20864 as_unset=unset
20865 else
20866 as_unset=false
20867 fi
20868
20869
20870 # IFS
20871 # We need space, tab and new line, in precisely that order. Quoting is
20872 # there to prevent editors from complaining about space-tab.
20873 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20874 # splitting by setting IFS to empty value.)
20875 as_nl='
20876 '
20877 IFS=" "" $as_nl"
20878
20879 # Find who we are. Look in the path if we contain no directory separator.
20880 case $0 in
20881 *[\\/]* ) as_myself=$0 ;;
20882 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20883 for as_dir in $PATH
20884 do
20885 IFS=$as_save_IFS
20886 test -z "$as_dir" && as_dir=.
20887 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20888 done
20889 IFS=$as_save_IFS
20890
20891 ;;
20892 esac
20893 # We did not find ourselves, most probably we were run as `sh COMMAND'
20894 # in which case we are not to be found in the path.
20895 if test "x$as_myself" = x; then
20896 as_myself=$0
20897 fi
20898 if test ! -f "$as_myself"; then
20899 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20900 { (exit 1); exit 1; }
20901 fi
20902
20903 # Work around bugs in pre-3.0 UWIN ksh.
20904 for as_var in ENV MAIL MAILPATH
20905 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20906 done
20907 PS1='$ '
20908 PS2='> '
20909 PS4='+ '
20910
20911 # NLS nuisances.
20912 for as_var in \
20913 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20914 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20915 LC_TELEPHONE LC_TIME
20916 do
20917 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20918 eval $as_var=C; export $as_var
20919 else
20920 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20921 fi
20922 done
20923
20924 # Required to use basename.
20925 if expr a : '\(a\)' >/dev/null 2>&1 &&
20926 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20927 as_expr=expr
20928 else
20929 as_expr=false
20930 fi
20931
20932 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20933 as_basename=basename
20934 else
20935 as_basename=false
20936 fi
20937
20938
20939 # Name of the executable.
20940 as_me=`$as_basename -- "$0" ||
20941 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20942 X"$0" : 'X\(//\)$' \| \
20943 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20944 echo X/"$0" |
20945 sed '/^.*\/\([^/][^/]*\)\/*$/{
20946 s//\1/
20947 q
20948 }
20949 /^X\/\(\/\/\)$/{
20950 s//\1/
20951 q
20952 }
20953 /^X\/\(\/\).*/{
20954 s//\1/
20955 q
20956 }
20957 s/.*/./; q'`
20958
20959 # CDPATH.
20960 $as_unset CDPATH
20961
20962
20963
20964 as_lineno_1=$LINENO
20965 as_lineno_2=$LINENO
20966 test "x$as_lineno_1" != "x$as_lineno_2" &&
20967 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20968
20969 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20970 # uniformly replaced by the line number. The first 'sed' inserts a
20971 # line-number line after each line using $LINENO; the second 'sed'
20972 # does the real work. The second script uses 'N' to pair each
20973 # line-number line with the line containing $LINENO, and appends
20974 # trailing '-' during substitution so that $LINENO is not a special
20975 # case at line end.
20976 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20977 # scripts with optimization help from Paolo Bonzini. Blame Lee
20978 # E. McMahon (1931-1989) for sed's syntax. :-)
20979 sed -n '
20980 p
20981 /[$]LINENO/=
20982 ' <$as_myself |
20983 sed '
20984 s/[$]LINENO.*/&-/
20985 t lineno
20986 b
20987 :lineno
20988 N
20989 :loop
20990 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20991 t loop
20992 s/-\n.*//
20993 ' >$as_me.lineno &&
20994 chmod +x "$as_me.lineno" ||
20995 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20996 { (exit 1); exit 1; }; }
20997
20998 # Don't try to exec as it changes $[0], causing all sort of problems
20999 # (the dirname of $[0] is not the place where we might find the
21000 # original and so on. Autoconf is especially sensitive to this).
21001 . "./$as_me.lineno"
21002 # Exit status is that of the last command.
21003 exit
21004 }
21005
21006
21007 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21008 as_dirname=dirname
21009 else
21010 as_dirname=false
21011 fi
21012
21013 ECHO_C= ECHO_N= ECHO_T=
21014 case `echo -n x` in
21015 -n*)
21016 case `echo 'x\c'` in
21017 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21018 *) ECHO_C='\c';;
21019 esac;;
21020 *)
21021 ECHO_N='-n';;
21022 esac
21023
21024 if expr a : '\(a\)' >/dev/null 2>&1 &&
21025 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21026 as_expr=expr
21027 else
21028 as_expr=false
21029 fi
21030
21031 rm -f conf$$ conf$$.exe conf$$.file
21032 if test -d conf$$.dir; then
21033 rm -f conf$$.dir/conf$$.file
21034 else
21035 rm -f conf$$.dir
21036 mkdir conf$$.dir
21037 fi
21038 echo >conf$$.file
21039 if ln -s conf$$.file conf$$ 2>/dev/null; then
21040 as_ln_s='ln -s'
21041 # ... but there are two gotchas:
21042 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21043 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21044 # In both cases, we have to default to `cp -p'.
21045 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21046 as_ln_s='cp -p'
21047 elif ln conf$$.file conf$$ 2>/dev/null; then
21048 as_ln_s=ln
21049 else
21050 as_ln_s='cp -p'
21051 fi
21052 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21053 rmdir conf$$.dir 2>/dev/null
21054
21055 if mkdir -p . 2>/dev/null; then
21056 as_mkdir_p=:
21057 else
21058 test -d ./-p && rmdir ./-p
21059 as_mkdir_p=false
21060 fi
21061
21062 if test -x / >/dev/null 2>&1; then
21063 as_test_x='test -x'
21064 else
21065 if ls -dL / >/dev/null 2>&1; then
21066 as_ls_L_option=L
21067 else
21068 as_ls_L_option=
21069 fi
21070 as_test_x='
21071 eval sh -c '\''
21072 if test -d "$1"; then
21073 test -d "$1/.";
21074 else
21075 case $1 in
21076 -*)set "./$1";;
21077 esac;
21078 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21079 ???[sx]*):;;*)false;;esac;fi
21080 '\'' sh
21081 '
21082 fi
21083 as_executable_p=$as_test_x
21084
21085 # Sed expression to map a string onto a valid CPP name.
21086 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21087
21088 # Sed expression to map a string onto a valid variable name.
21089 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21090
21091
21092 exec 6>&1
21093
21094 # Save the log message, to keep $[0] and so on meaningful, and to
21095 # report actual input values of CONFIG_FILES etc. instead of their
21096 # values after options handling.
21097 ac_log="
21098 This file was extended by libuserdb $as_me 0.10, which was
21099 generated by GNU Autoconf 2.61. Invocation command line was
21100
21101 CONFIG_FILES = $CONFIG_FILES
21102 CONFIG_HEADERS = $CONFIG_HEADERS
21103 CONFIG_LINKS = $CONFIG_LINKS
21104 CONFIG_COMMANDS = $CONFIG_COMMANDS
21105 $ $0 $@
21106
21107 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21108 "
21109
21110 _ACEOF
21111
21112 cat >>$CONFIG_STATUS <<_ACEOF
21113 # Files that config.status was made for.
21114 config_files="$ac_config_files"
21115 config_commands="$ac_config_commands"
21116
21117 _ACEOF
21118
21119 cat >>$CONFIG_STATUS <<\_ACEOF
21120 ac_cs_usage="\
21121 \`$as_me' instantiates files from templates according to the
21122 current configuration.
21123
21124 Usage: $0 [OPTIONS] [FILE]...
21125
21126 -h, --help print this help, then exit
21127 -V, --version print version number and configuration settings, then exit
21128 -q, --quiet do not print progress messages
21129 -d, --debug don't remove temporary files
21130 --recheck update $as_me by reconfiguring in the same conditions
21131 --file=FILE[:TEMPLATE]
21132 instantiate the configuration file FILE
21133
21134 Configuration files:
21135 $config_files
21136
21137 Configuration commands:
21138 $config_commands
21139
21140 Report bugs to <bug-autoconf@gnu.org>."
21141
21142 _ACEOF
21143 cat >>$CONFIG_STATUS <<_ACEOF
21144 ac_cs_version="\\
21145 libuserdb config.status 0.10
21146 configured by $0, generated by GNU Autoconf 2.61,
21147 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21148
21149 Copyright (C) 2006 Free Software Foundation, Inc.
21150 This config.status script is free software; the Free Software Foundation
21151 gives unlimited permission to copy, distribute and modify it."
21152
21153 ac_pwd='$ac_pwd'
21154 srcdir='$srcdir'
21155 INSTALL='$INSTALL'
21156 MKDIR_P='$MKDIR_P'
21157 _ACEOF
21158
21159 cat >>$CONFIG_STATUS <<\_ACEOF
21160 # If no file are specified by the user, then we need to provide default
21161 # value. By we need to know if files were specified by the user.
21162 ac_need_defaults=:
21163 while test $# != 0
21164 do
21165 case $1 in
21166 --*=*)
21167 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21168 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21169 ac_shift=:
21170 ;;
21171 *)
21172 ac_option=$1
21173 ac_optarg=$2
21174 ac_shift=shift
21175 ;;
21176 esac
21177
21178 case $ac_option in
21179 # Handling of the options.
21180 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21181 ac_cs_recheck=: ;;
21182 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21183 echo "$ac_cs_version"; exit ;;
21184 --debug | --debu | --deb | --de | --d | -d )
21185 debug=: ;;
21186 --file | --fil | --fi | --f )
21187 $ac_shift
21188 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21189 ac_need_defaults=false;;
21190 --he | --h | --help | --hel | -h )
21191 echo "$ac_cs_usage"; exit ;;
21192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21193 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21194 ac_cs_silent=: ;;
21195
21196 # This is an error.
21197 -*) { echo "$as_me: error: unrecognized option: $1
21198 Try \`$0 --help' for more information." >&2
21199 { (exit 1); exit 1; }; } ;;
21200
21201 *) ac_config_targets="$ac_config_targets $1"
21202 ac_need_defaults=false ;;
21203
21204 esac
21205 shift
21206 done
21207
21208 ac_configure_extra_args=
21209
21210 if $ac_cs_silent; then
21211 exec 6>/dev/null
21212 ac_configure_extra_args="$ac_configure_extra_args --silent"
21213 fi
21214
21215 _ACEOF
21216 cat >>$CONFIG_STATUS <<_ACEOF
21217 if \$ac_cs_recheck; then
21218 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21219 CONFIG_SHELL=$SHELL
21220 export CONFIG_SHELL
21221 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21222 fi
21223
21224 _ACEOF
21225 cat >>$CONFIG_STATUS <<\_ACEOF
21226 exec 5>>config.log
21227 {
21228 echo
21229 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21230 ## Running $as_me. ##
21231 _ASBOX
21232 echo "$ac_log"
21233 } >&5
21234
21235 _ACEOF
21236 cat >>$CONFIG_STATUS <<_ACEOF
21237 #
21238 # INIT-COMMANDS
21239 #
21240 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21241
21242 _ACEOF
21243
21244 cat >>$CONFIG_STATUS <<\_ACEOF
21245
21246 # Handling of arguments.
21247 for ac_config_target in $ac_config_targets
21248 do
21249 case $ac_config_target in
21250 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21251 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21252 "userdb.pl") CONFIG_FILES="$CONFIG_FILES userdb.pl" ;;
21253 "makeuserdb") CONFIG_FILES="$CONFIG_FILES makeuserdb" ;;
21254 "pw2userdb") CONFIG_FILES="$CONFIG_FILES pw2userdb" ;;
21255
21256 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21257 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21258 { (exit 1); exit 1; }; };;
21259 esac
21260 done
21261
21262
21263 # If the user did not use the arguments to specify the items to instantiate,
21264 # then the envvar interface is used. Set only those that are not.
21265 # We use the long form for the default assignment because of an extremely
21266 # bizarre bug on SunOS 4.1.3.
21267 if $ac_need_defaults; then
21268 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21269 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21270 fi
21271
21272 # Have a temporary directory for convenience. Make it in the build tree
21273 # simply because there is no reason against having it here, and in addition,
21274 # creating and moving files from /tmp can sometimes cause problems.
21275 # Hook for its removal unless debugging.
21276 # Note that there is a small window in which the directory will not be cleaned:
21277 # after its creation but before its name has been assigned to `$tmp'.
21278 $debug ||
21279 {
21280 tmp=
21281 trap 'exit_status=$?
21282 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21283 ' 0
21284 trap '{ (exit 1); exit 1; }' 1 2 13 15
21285 }
21286 # Create a (secure) tmp directory for tmp files.
21287
21288 {
21289 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21290 test -n "$tmp" && test -d "$tmp"
21291 } ||
21292 {
21293 tmp=./conf$$-$RANDOM
21294 (umask 077 && mkdir "$tmp")
21295 } ||
21296 {
21297 echo "$me: cannot create a temporary directory in ." >&2
21298 { (exit 1); exit 1; }
21299 }
21300
21301 #
21302 # Set up the sed scripts for CONFIG_FILES section.
21303 #
21304
21305 # No need to generate the scripts if there are no CONFIG_FILES.
21306 # This happens for instance when ./config.status config.h
21307 if test -n "$CONFIG_FILES"; then
21308
21309 _ACEOF
21310
21311
21312
21313 ac_delim='%!_!# '
21314 for ac_last_try in false false false false false :; do
21315 cat >conf$$subs.sed <<_ACEOF
21316 SHELL!$SHELL$ac_delim
21317 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21318 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21319 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21320 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21321 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21322 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21323 exec_prefix!$exec_prefix$ac_delim
21324 prefix!$prefix$ac_delim
21325 program_transform_name!$program_transform_name$ac_delim
21326 bindir!$bindir$ac_delim
21327 sbindir!$sbindir$ac_delim
21328 libexecdir!$libexecdir$ac_delim
21329 datarootdir!$datarootdir$ac_delim
21330 datadir!$datadir$ac_delim
21331 sysconfdir!$sysconfdir$ac_delim
21332 sharedstatedir!$sharedstatedir$ac_delim
21333 localstatedir!$localstatedir$ac_delim
21334 includedir!$includedir$ac_delim
21335 oldincludedir!$oldincludedir$ac_delim
21336 docdir!$docdir$ac_delim
21337 infodir!$infodir$ac_delim
21338 htmldir!$htmldir$ac_delim
21339 dvidir!$dvidir$ac_delim
21340 pdfdir!$pdfdir$ac_delim
21341 psdir!$psdir$ac_delim
21342 libdir!$libdir$ac_delim
21343 localedir!$localedir$ac_delim
21344 mandir!$mandir$ac_delim
21345 DEFS!$DEFS$ac_delim
21346 ECHO_C!$ECHO_C$ac_delim
21347 ECHO_N!$ECHO_N$ac_delim
21348 ECHO_T!$ECHO_T$ac_delim
21349 LIBS!$LIBS$ac_delim
21350 build_alias!$build_alias$ac_delim
21351 host_alias!$host_alias$ac_delim
21352 target_alias!$target_alias$ac_delim
21353 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21354 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21355 INSTALL_DATA!$INSTALL_DATA$ac_delim
21356 am__isrc!$am__isrc$ac_delim
21357 CYGPATH_W!$CYGPATH_W$ac_delim
21358 PACKAGE!$PACKAGE$ac_delim
21359 VERSION!$VERSION$ac_delim
21360 ACLOCAL!$ACLOCAL$ac_delim
21361 AUTOCONF!$AUTOCONF$ac_delim
21362 AUTOMAKE!$AUTOMAKE$ac_delim
21363 AUTOHEADER!$AUTOHEADER$ac_delim
21364 MAKEINFO!$MAKEINFO$ac_delim
21365 install_sh!$install_sh$ac_delim
21366 STRIP!$STRIP$ac_delim
21367 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21368 mkdir_p!$mkdir_p$ac_delim
21369 AWK!$AWK$ac_delim
21370 SET_MAKE!$SET_MAKE$ac_delim
21371 am__leading_dot!$am__leading_dot$ac_delim
21372 AMTAR!$AMTAR$ac_delim
21373 am__tar!$am__tar$ac_delim
21374 am__untar!$am__untar$ac_delim
21375 CC!$CC$ac_delim
21376 CFLAGS!$CFLAGS$ac_delim
21377 LDFLAGS!$LDFLAGS$ac_delim
21378 CPPFLAGS!$CPPFLAGS$ac_delim
21379 ac_ct_CC!$ac_ct_CC$ac_delim
21380 EXEEXT!$EXEEXT$ac_delim
21381 OBJEXT!$OBJEXT$ac_delim
21382 DEPDIR!$DEPDIR$ac_delim
21383 am__include!$am__include$ac_delim
21384 am__quote!$am__quote$ac_delim
21385 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21386 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21387 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21388 CCDEPMODE!$CCDEPMODE$ac_delim
21389 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21390 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21391 LN_S!$LN_S$ac_delim
21392 build!$build$ac_delim
21393 build_cpu!$build_cpu$ac_delim
21394 build_vendor!$build_vendor$ac_delim
21395 build_os!$build_os$ac_delim
21396 host!$host$ac_delim
21397 host_cpu!$host_cpu$ac_delim
21398 host_vendor!$host_vendor$ac_delim
21399 host_os!$host_os$ac_delim
21400 SED!$SED$ac_delim
21401 GREP!$GREP$ac_delim
21402 EGREP!$EGREP$ac_delim
21403 ECHO!$ECHO$ac_delim
21404 AR!$AR$ac_delim
21405 RANLIB!$RANLIB$ac_delim
21406 CPP!$CPP$ac_delim
21407 CXX!$CXX$ac_delim
21408 CXXFLAGS!$CXXFLAGS$ac_delim
21409 ac_ct_CXX!$ac_ct_CXX$ac_delim
21410 CXXDEPMODE!$CXXDEPMODE$ac_delim
21411 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21412 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21413 _ACEOF
21414
21415 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21416 break
21417 elif $ac_last_try; then
21418 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21419 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21420 { (exit 1); exit 1; }; }
21421 else
21422 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21423 fi
21424 done
21425
21426 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21427 if test -n "$ac_eof"; then
21428 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21429 ac_eof=`expr $ac_eof + 1`
21430 fi
21431
21432 cat >>$CONFIG_STATUS <<_ACEOF
21433 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21435 _ACEOF
21436 sed '
21437 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21438 s/^/s,@/; s/!/@,|#_!!_#|/
21439 :n
21440 t n
21441 s/'"$ac_delim"'$/,g/; t
21442 s/$/\\/; p
21443 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21444 ' >>$CONFIG_STATUS <conf$$subs.sed
21445 rm -f conf$$subs.sed
21446 cat >>$CONFIG_STATUS <<_ACEOF
21447 CEOF$ac_eof
21448 _ACEOF
21449
21450
21451 ac_delim='%!_!# '
21452 for ac_last_try in false false false false false :; do
21453 cat >conf$$subs.sed <<_ACEOF
21454 CXXCPP!$CXXCPP$ac_delim
21455 F77!$F77$ac_delim
21456 FFLAGS!$FFLAGS$ac_delim
21457 ac_ct_F77!$ac_ct_F77$ac_delim
21458 LIBTOOL!$LIBTOOL$ac_delim
21459 PERL!$PERL$ac_delim
21460 userdb!$userdb$ac_delim
21461 USERDB!$USERDB$ac_delim
21462 userdbtmpdir!$userdbtmpdir$ac_delim
21463 tmpdir!$tmpdir$ac_delim
21464 makedat!$makedat$ac_delim
21465 MD5LIB!$MD5LIB$ac_delim
21466 SHA1LIB!$SHA1LIB$ac_delim
21467 HMACLIB!$HMACLIB$ac_delim
21468 CRYPTLIBS!$CRYPTLIBS$ac_delim
21469 HAVE_SGML_TRUE!$HAVE_SGML_TRUE$ac_delim
21470 HAVE_SGML_FALSE!$HAVE_SGML_FALSE$ac_delim
21471 LIBOBJS!$LIBOBJS$ac_delim
21472 LTLIBOBJS!$LTLIBOBJS$ac_delim
21473 _ACEOF
21474
21475 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
21476 break
21477 elif $ac_last_try; then
21478 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21479 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21480 { (exit 1); exit 1; }; }
21481 else
21482 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21483 fi
21484 done
21485
21486 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21487 if test -n "$ac_eof"; then
21488 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21489 ac_eof=`expr $ac_eof + 1`
21490 fi
21491
21492 cat >>$CONFIG_STATUS <<_ACEOF
21493 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21494 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21495 _ACEOF
21496 sed '
21497 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21498 s/^/s,@/; s/!/@,|#_!!_#|/
21499 :n
21500 t n
21501 s/'"$ac_delim"'$/,g/; t
21502 s/$/\\/; p
21503 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21504 ' >>$CONFIG_STATUS <conf$$subs.sed
21505 rm -f conf$$subs.sed
21506 cat >>$CONFIG_STATUS <<_ACEOF
21507 :end
21508 s/|#_!!_#|//g
21509 CEOF$ac_eof
21510 _ACEOF
21511
21512
21513 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21514 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21515 # trailing colons and then remove the whole line if VPATH becomes empty
21516 # (actually we leave an empty line to preserve line numbers).
21517 if test "x$srcdir" = x.; then
21518 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21519 s/:*\$(srcdir):*/:/
21520 s/:*\${srcdir}:*/:/
21521 s/:*@srcdir@:*/:/
21522 s/^\([^=]*=[ ]*\):*/\1/
21523 s/:*$//
21524 s/^[^=]*=[ ]*$//
21525 }'
21526 fi
21527
21528 cat >>$CONFIG_STATUS <<\_ACEOF
21529 fi # test -n "$CONFIG_FILES"
21530
21531
21532 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21533 do
21534 case $ac_tag in
21535 :[FHLC]) ac_mode=$ac_tag; continue;;
21536 esac
21537 case $ac_mode$ac_tag in
21538 :[FHL]*:*);;
21539 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21540 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21541 { (exit 1); exit 1; }; };;
21542 :[FH]-) ac_tag=-:-;;
21543 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21544 esac
21545 ac_save_IFS=$IFS
21546 IFS=:
21547 set x $ac_tag
21548 IFS=$ac_save_IFS
21549 shift
21550 ac_file=$1
21551 shift
21552
21553 case $ac_mode in
21554 :L) ac_source=$1;;
21555 :[FH])
21556 ac_file_inputs=
21557 for ac_f
21558 do
21559 case $ac_f in
21560 -) ac_f="$tmp/stdin";;
21561 *) # Look for the file first in the build tree, then in the source tree
21562 # (if the path is not absolute). The absolute path cannot be DOS-style,
21563 # because $ac_f cannot contain `:'.
21564 test -f "$ac_f" ||
21565 case $ac_f in
21566 [\\/$]*) false;;
21567 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21568 esac ||
21569 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21570 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21571 { (exit 1); exit 1; }; };;
21572 esac
21573 ac_file_inputs="$ac_file_inputs $ac_f"
21574 done
21575
21576 # Let's still pretend it is `configure' which instantiates (i.e., don't
21577 # use $as_me), people would be surprised to read:
21578 # /* config.h. Generated by config.status. */
21579 configure_input="Generated from "`IFS=:
21580 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21581 if test x"$ac_file" != x-; then
21582 configure_input="$ac_file. $configure_input"
21583 { echo "$as_me:$LINENO: creating $ac_file" >&5
21584 echo "$as_me: creating $ac_file" >&6;}
21585 fi
21586
21587 case $ac_tag in
21588 *:-:* | *:-) cat >"$tmp/stdin";;
21589 esac
21590 ;;
21591 esac
21592
21593 ac_dir=`$as_dirname -- "$ac_file" ||
21594 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21595 X"$ac_file" : 'X\(//\)[^/]' \| \
21596 X"$ac_file" : 'X\(//\)$' \| \
21597 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21598 echo X"$ac_file" |
21599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21600 s//\1/
21601 q
21602 }
21603 /^X\(\/\/\)[^/].*/{
21604 s//\1/
21605 q
21606 }
21607 /^X\(\/\/\)$/{
21608 s//\1/
21609 q
21610 }
21611 /^X\(\/\).*/{
21612 s//\1/
21613 q
21614 }
21615 s/.*/./; q'`
21616 { as_dir="$ac_dir"
21617 case $as_dir in #(
21618 -*) as_dir=./$as_dir;;
21619 esac
21620 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21621 as_dirs=
21622 while :; do
21623 case $as_dir in #(
21624 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21625 *) as_qdir=$as_dir;;
21626 esac
21627 as_dirs="'$as_qdir' $as_dirs"
21628 as_dir=`$as_dirname -- "$as_dir" ||
21629 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21630 X"$as_dir" : 'X\(//\)[^/]' \| \
21631 X"$as_dir" : 'X\(//\)$' \| \
21632 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21633 echo X"$as_dir" |
21634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21635 s//\1/
21636 q
21637 }
21638 /^X\(\/\/\)[^/].*/{
21639 s//\1/
21640 q
21641 }
21642 /^X\(\/\/\)$/{
21643 s//\1/
21644 q
21645 }
21646 /^X\(\/\).*/{
21647 s//\1/
21648 q
21649 }
21650 s/.*/./; q'`
21651 test -d "$as_dir" && break
21652 done
21653 test -z "$as_dirs" || eval "mkdir $as_dirs"
21654 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21655 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21656 { (exit 1); exit 1; }; }; }
21657 ac_builddir=.
21658
21659 case "$ac_dir" in
21660 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21661 *)
21662 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21663 # A ".." for each directory in $ac_dir_suffix.
21664 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21665 case $ac_top_builddir_sub in
21666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21668 esac ;;
21669 esac
21670 ac_abs_top_builddir=$ac_pwd
21671 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21672 # for backward compatibility:
21673 ac_top_builddir=$ac_top_build_prefix
21674
21675 case $srcdir in
21676 .) # We are building in place.
21677 ac_srcdir=.
21678 ac_top_srcdir=$ac_top_builddir_sub
21679 ac_abs_top_srcdir=$ac_pwd ;;
21680 [\\/]* | ?:[\\/]* ) # Absolute name.
21681 ac_srcdir=$srcdir$ac_dir_suffix;
21682 ac_top_srcdir=$srcdir
21683 ac_abs_top_srcdir=$srcdir ;;
21684 *) # Relative name.
21685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21686 ac_top_srcdir=$ac_top_build_prefix$srcdir
21687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21688 esac
21689 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21690
21691
21692 case $ac_mode in
21693 :F)
21694 #
21695 # CONFIG_FILE
21696 #
21697
21698 case $INSTALL in
21699 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21700 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21701 esac
21702 ac_MKDIR_P=$MKDIR_P
21703 case $MKDIR_P in
21704 [\\/$]* | ?:[\\/]* ) ;;
21705 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21706 esac
21707 _ACEOF
21708
21709 cat >>$CONFIG_STATUS <<\_ACEOF
21710 # If the template does not know about datarootdir, expand it.
21711 # FIXME: This hack should be removed a few years after 2.60.
21712 ac_datarootdir_hack=; ac_datarootdir_seen=
21713
21714 case `sed -n '/datarootdir/ {
21715 p
21716 q
21717 }
21718 /@datadir@/p
21719 /@docdir@/p
21720 /@infodir@/p
21721 /@localedir@/p
21722 /@mandir@/p
21723 ' $ac_file_inputs` in
21724 *datarootdir*) ac_datarootdir_seen=yes;;
21725 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21726 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21727 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21728 _ACEOF
21729 cat >>$CONFIG_STATUS <<_ACEOF
21730 ac_datarootdir_hack='
21731 s&@datadir@&$datadir&g
21732 s&@docdir@&$docdir&g
21733 s&@infodir@&$infodir&g
21734 s&@localedir@&$localedir&g
21735 s&@mandir@&$mandir&g
21736 s&\\\${datarootdir}&$datarootdir&g' ;;
21737 esac
21738 _ACEOF
21739
21740 # Neutralize VPATH when `$srcdir' = `.'.
21741 # Shell code in configure.ac might set extrasub.
21742 # FIXME: do we really want to maintain this feature?
21743 cat >>$CONFIG_STATUS <<_ACEOF
21744 sed "$ac_vpsub
21745 $extrasub
21746 _ACEOF
21747 cat >>$CONFIG_STATUS <<\_ACEOF
21748 :t
21749 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21750 s&@configure_input@&$configure_input&;t t
21751 s&@top_builddir@&$ac_top_builddir_sub&;t t
21752 s&@srcdir@&$ac_srcdir&;t t
21753 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21754 s&@top_srcdir@&$ac_top_srcdir&;t t
21755 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21756 s&@builddir@&$ac_builddir&;t t
21757 s&@abs_builddir@&$ac_abs_builddir&;t t
21758 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21759 s&@INSTALL@&$ac_INSTALL&;t t
21760 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21761 $ac_datarootdir_hack
21762 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21763
21764 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21765 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21766 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21767 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21768 which seems to be undefined. Please make sure it is defined." >&5
21769 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21770 which seems to be undefined. Please make sure it is defined." >&2;}
21771
21772 rm -f "$tmp/stdin"
21773 case $ac_file in
21774 -) cat "$tmp/out"; rm -f "$tmp/out";;
21775 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21776 esac
21777 ;;
21778
21779
21780 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21781 echo "$as_me: executing $ac_file commands" >&6;}
21782 ;;
21783 esac
21784
21785
21786 case $ac_file$ac_mode in
21787 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21788 # Strip MF so we end up with the name of the file.
21789 mf=`echo "$mf" | sed -e 's/:.*$//'`
21790 # Check whether this is an Automake generated Makefile or not.
21791 # We used to match only the files named `Makefile.in', but
21792 # some people rename them; so instead we look at the file content.
21793 # Grep'ing the first line is not enough: some people post-process
21794 # each Makefile.in and add a new line on top of each file to say so.
21795 # Grep'ing the whole file is not good either: AIX grep has a line
21796 # limit of 2048, but all sed's we know have understand at least 4000.
21797 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21798 dirpart=`$as_dirname -- "$mf" ||
21799 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21800 X"$mf" : 'X\(//\)[^/]' \| \
21801 X"$mf" : 'X\(//\)$' \| \
21802 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21803 echo X"$mf" |
21804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21805 s//\1/
21806 q
21807 }
21808 /^X\(\/\/\)[^/].*/{
21809 s//\1/
21810 q
21811 }
21812 /^X\(\/\/\)$/{
21813 s//\1/
21814 q
21815 }
21816 /^X\(\/\).*/{
21817 s//\1/
21818 q
21819 }
21820 s/.*/./; q'`
21821 else
21822 continue
21823 fi
21824 # Extract the definition of DEPDIR, am__include, and am__quote
21825 # from the Makefile without running `make'.
21826 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21827 test -z "$DEPDIR" && continue
21828 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21829 test -z "am__include" && continue
21830 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21831 # When using ansi2knr, U may be empty or an underscore; expand it
21832 U=`sed -n 's/^U = //p' < "$mf"`
21833 # Find all dependency output files, they are included files with
21834 # $(DEPDIR) in their names. We invoke sed twice because it is the
21835 # simplest approach to changing $(DEPDIR) to its actual value in the
21836 # expansion.
21837 for file in `sed -n "
21838 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21839 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21840 # Make sure the directory exists.
21841 test -f "$dirpart/$file" && continue
21842 fdir=`$as_dirname -- "$file" ||
21843 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21844 X"$file" : 'X\(//\)[^/]' \| \
21845 X"$file" : 'X\(//\)$' \| \
21846 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21847 echo X"$file" |
21848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21849 s//\1/
21850 q
21851 }
21852 /^X\(\/\/\)[^/].*/{
21853 s//\1/
21854 q
21855 }
21856 /^X\(\/\/\)$/{
21857 s//\1/
21858 q
21859 }
21860 /^X\(\/\).*/{
21861 s//\1/
21862 q
21863 }
21864 s/.*/./; q'`
21865 { as_dir=$dirpart/$fdir
21866 case $as_dir in #(
21867 -*) as_dir=./$as_dir;;
21868 esac
21869 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21870 as_dirs=
21871 while :; do
21872 case $as_dir in #(
21873 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21874 *) as_qdir=$as_dir;;
21875 esac
21876 as_dirs="'$as_qdir' $as_dirs"
21877 as_dir=`$as_dirname -- "$as_dir" ||
21878 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21879 X"$as_dir" : 'X\(//\)[^/]' \| \
21880 X"$as_dir" : 'X\(//\)$' \| \
21881 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21882 echo X"$as_dir" |
21883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21884 s//\1/
21885 q
21886 }
21887 /^X\(\/\/\)[^/].*/{
21888 s//\1/
21889 q
21890 }
21891 /^X\(\/\/\)$/{
21892 s//\1/
21893 q
21894 }
21895 /^X\(\/\).*/{
21896 s//\1/
21897 q
21898 }
21899 s/.*/./; q'`
21900 test -d "$as_dir" && break
21901 done
21902 test -z "$as_dirs" || eval "mkdir $as_dirs"
21903 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21904 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21905 { (exit 1); exit 1; }; }; }
21906 # echo "creating $dirpart/$file"
21907 echo '# dummy' > "$dirpart/$file"
21908 done
21909 done
21910 ;;
21911
21912 esac
21913 done # for ac_tag
21914
21915
21916 { (exit 0); exit 0; }
21917 _ACEOF
21918 chmod +x $CONFIG_STATUS
21919 ac_clean_files=$ac_clean_files_save
21920
21921
21922 # configure is writing to config.log, and then calls config.status.
21923 # config.status does its own redirection, appending to config.log.
21924 # Unfortunately, on DOS this fails, as config.log is still kept open
21925 # by configure, so config.status won't be able to write to it; its
21926 # output is simply discarded. So we exec the FD to /dev/null,
21927 # effectively closing config.log, so it can be properly (re)opened and
21928 # appended to by config.status. When coming back to configure, we
21929 # need to make the FD available again.
21930 if test "$no_create" != yes; then
21931 ac_cs_success=:
21932 ac_config_status_args=
21933 test "$silent" = yes &&
21934 ac_config_status_args="$ac_config_status_args --quiet"
21935 exec 5>/dev/null
21936 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21937 exec 5>>config.log
21938 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21939 # would make configure fail if this is the last instruction.
21940 $ac_cs_success || { (exit 1); exit 1; }
21941 fi
21942