configure revision 1.1.1.2 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libXpm 3.5.8.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) 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 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585 esac
586
587 echo=${ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $echo works!
596 :
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<EOF
606 $*
607 EOF
608 exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621 echo_test_string=`eval $cmd` &&
622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623 then
624 break
625 fi
626 done
627 fi
628
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 :
633 else
634 # The Solaris, AIX, and Digital Unix default echo programs unquote
635 # backslashes. This makes it impossible to quote backslashes using
636 # echo "$something" | sed 's/\\/\\\\/g'
637 #
638 # So, first we look for a working echo in the user's PATH.
639
640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641 for dir in $PATH /usr/ucb; do
642 IFS="$lt_save_ifs"
643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
647 echo="$dir/echo"
648 break
649 fi
650 done
651 IFS="$lt_save_ifs"
652
653 if test "X$echo" = Xecho; then
654 # We didn't find a better echo, so look for alternatives.
655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 # This shell has a builtin print -r that does the trick.
659 echo='print -r'
660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661 test "X$CONFIG_SHELL" != X/bin/ksh; then
662 # If we have ksh, try running configure again with it.
663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664 export ORIGINAL_CONFIG_SHELL
665 CONFIG_SHELL=/bin/ksh
666 export CONFIG_SHELL
667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 else
669 # Try using printf.
670 echo='printf %s\n'
671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673 test "X$echo_testing_string" = "X$echo_test_string"; then
674 # Cool, printf works
675 :
676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677 test "X$echo_testing_string" = 'X\t' &&
678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679 test "X$echo_testing_string" = "X$echo_test_string"; then
680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681 export CONFIG_SHELL
682 SHELL="$CONFIG_SHELL"
683 export SHELL
684 echo="$CONFIG_SHELL $0 --fallback-echo"
685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686 test "X$echo_testing_string" = 'X\t' &&
687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688 test "X$echo_testing_string" = "X$echo_test_string"; then
689 echo="$CONFIG_SHELL $0 --fallback-echo"
690 else
691 # maybe with a smaller string...
692 prev=:
693
694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696 then
697 break
698 fi
699 prev="$cmd"
700 done
701
702 if test "$prev" != 'sed 50q "$0"'; then
703 echo_test_string=`eval $prev`
704 export echo_test_string
705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706 else
707 # Oops. We lost completely, so just stick with echo.
708 echo=echo
709 fi
710 fi
711 fi
712 fi
713 fi
714 fi
715
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
718 ECHO=$echo
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721 fi
722
723
724
725
726 tagnames=${tagnames+${tagnames},}CXX
727
728 tagnames=${tagnames+${tagnames},}F77
729
730 exec 7<&0 </dev/null 6>&1
731
732 # Name of the host.
733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734 # so uname gets run too.
735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737 #
738 # Initializations.
739 #
740 ac_default_prefix=/usr/local
741 ac_clean_files=
742 ac_config_libobj_dir=.
743 LIBOBJS=
744 cross_compiling=no
745 subdirs=
746 MFLAGS=
747 MAKEFLAGS=
748 SHELL=${CONFIG_SHELL-/bin/sh}
749
750 # Identity of this package.
751 PACKAGE_NAME='libXpm'
752 PACKAGE_TARNAME='libXpm'
753 PACKAGE_VERSION='3.5.8'
754 PACKAGE_STRING='libXpm 3.5.8'
755 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
756
757 ac_unique_file="Makefile.am"
758 # Factoring default headers for most tests.
759 ac_includes_default="\
760 #include <stdio.h>
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
763 #endif
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
766 #endif
767 #ifdef STDC_HEADERS
768 # include <stdlib.h>
769 # include <stddef.h>
770 #else
771 # ifdef HAVE_STDLIB_H
772 # include <stdlib.h>
773 # endif
774 #endif
775 #ifdef HAVE_STRING_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777 # include <memory.h>
778 # endif
779 # include <string.h>
780 #endif
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
783 #endif
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
786 #endif
787 #ifdef HAVE_STDINT_H
788 # include <stdint.h>
789 #endif
790 #ifdef HAVE_UNISTD_H
791 # include <unistd.h>
792 #endif"
793
794 ac_subst_vars='am__EXEEXT_FALSE
795 am__EXEEXT_TRUE
796 LTLIBOBJS
797 LIBOBJS
798 BUILD_SXPM_FALSE
799 BUILD_SXPM_TRUE
800 SXPM_LIBS
801 SXPM_CFLAGS
802 USE_GETTEXT_FALSE
803 USE_GETTEXT_TRUE
804 LOCALEDIR
805 XPM_LIBS
806 XPM_CFLAGS
807 PKG_CONFIG
808 ADMIN_MAN_DIR
809 DRIVER_MAN_DIR
810 MISC_MAN_DIR
811 FILE_MAN_DIR
812 LIB_MAN_DIR
813 APP_MAN_DIR
814 ADMIN_MAN_SUFFIX
815 DRIVER_MAN_SUFFIX
816 MISC_MAN_SUFFIX
817 FILE_MAN_SUFFIX
818 LIB_MAN_SUFFIX
819 APP_MAN_SUFFIX
820 distcleancheck_listfiles
821 CHANGELOG_CMD
822 AM_BACKSLASH
823 AM_DEFAULT_VERBOSITY
824 CWARNFLAGS
825 LIBTOOL
826 ac_ct_F77
827 FFLAGS
828 F77
829 CXXCPP
830 am__fastdepCXX_FALSE
831 am__fastdepCXX_TRUE
832 CXXDEPMODE
833 ac_ct_CXX
834 CXXFLAGS
835 CXX
836 CPP
837 NMEDIT
838 DSYMUTIL
839 RANLIB
840 AR
841 ECHO
842 LN_S
843 EGREP
844 GREP
845 SED
846 am__fastdepCC_FALSE
847 am__fastdepCC_TRUE
848 CCDEPMODE
849 AMDEPBACKSLASH
850 AMDEP_FALSE
851 AMDEP_TRUE
852 am__quote
853 am__include
854 DEPDIR
855 OBJEXT
856 EXEEXT
857 ac_ct_CC
858 CPPFLAGS
859 LDFLAGS
860 CFLAGS
861 CC
862 host_os
863 host_vendor
864 host_cpu
865 host
866 build_os
867 build_vendor
868 build_cpu
869 build
870 MAINT
871 MAINTAINER_MODE_FALSE
872 MAINTAINER_MODE_TRUE
873 am__untar
874 am__tar
875 AMTAR
876 am__leading_dot
877 SET_MAKE
878 AWK
879 mkdir_p
880 MKDIR_P
881 INSTALL_STRIP_PROGRAM
882 STRIP
883 install_sh
884 MAKEINFO
885 AUTOHEADER
886 AUTOMAKE
887 AUTOCONF
888 ACLOCAL
889 VERSION
890 PACKAGE
891 CYGPATH_W
892 am__isrc
893 INSTALL_DATA
894 INSTALL_SCRIPT
895 INSTALL_PROGRAM
896 target_alias
897 host_alias
898 build_alias
899 LIBS
900 ECHO_T
901 ECHO_N
902 ECHO_C
903 DEFS
904 mandir
905 localedir
906 libdir
907 psdir
908 pdfdir
909 dvidir
910 htmldir
911 infodir
912 docdir
913 oldincludedir
914 includedir
915 localstatedir
916 sharedstatedir
917 sysconfdir
918 datadir
919 datarootdir
920 libexecdir
921 sbindir
922 bindir
923 program_transform_name
924 prefix
925 exec_prefix
926 PACKAGE_BUGREPORT
927 PACKAGE_STRING
928 PACKAGE_VERSION
929 PACKAGE_TARNAME
930 PACKAGE_NAME
931 PATH_SEPARATOR
932 SHELL'
933 ac_subst_files=''
934 ac_user_opts='
935 enable_option_checking
936 enable_maintainer_mode
937 enable_shared
938 enable_static
939 enable_fast_install
940 enable_dependency_tracking
941 with_gnu_ld
942 enable_libtool_lock
943 with_pic
944 with_tags
945 enable_silent_rules
946 enable_strict_compilation
947 with_release_version
948 with_localedir
949 enable_stat_zfile
950 '
951 ac_precious_vars='build_alias
952 host_alias
953 target_alias
954 CC
955 CFLAGS
956 LDFLAGS
957 LIBS
958 CPPFLAGS
959 CPP
960 CXX
961 CXXFLAGS
962 CCC
963 CXXCPP
964 F77
965 FFLAGS
966 PKG_CONFIG
967 XPM_CFLAGS
968 XPM_LIBS
969 SXPM_CFLAGS
970 SXPM_LIBS'
971
972
973 # Initialize some variables set by options.
974 ac_init_help=
975 ac_init_version=false
976 ac_unrecognized_opts=
977 ac_unrecognized_sep=
978 # The variables have the same names as the options, with
979 # dashes changed to underlines.
980 cache_file=/dev/null
981 exec_prefix=NONE
982 no_create=
983 no_recursion=
984 prefix=NONE
985 program_prefix=NONE
986 program_suffix=NONE
987 program_transform_name=s,x,x,
988 silent=
989 site=
990 srcdir=
991 verbose=
992 x_includes=NONE
993 x_libraries=NONE
994
995 # Installation directory options.
996 # These are left unexpanded so users can "make install exec_prefix=/foo"
997 # and all the variables that are supposed to be based on exec_prefix
998 # by default will actually change.
999 # Use braces instead of parens because sh, perl, etc. also accept them.
1000 # (The list follows the same order as the GNU Coding Standards.)
1001 bindir='${exec_prefix}/bin'
1002 sbindir='${exec_prefix}/sbin'
1003 libexecdir='${exec_prefix}/libexec'
1004 datarootdir='${prefix}/share'
1005 datadir='${datarootdir}'
1006 sysconfdir='${prefix}/etc'
1007 sharedstatedir='${prefix}/com'
1008 localstatedir='${prefix}/var'
1009 includedir='${prefix}/include'
1010 oldincludedir='/usr/include'
1011 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1012 infodir='${datarootdir}/info'
1013 htmldir='${docdir}'
1014 dvidir='${docdir}'
1015 pdfdir='${docdir}'
1016 psdir='${docdir}'
1017 libdir='${exec_prefix}/lib'
1018 localedir='${datarootdir}/locale'
1019 mandir='${datarootdir}/man'
1020
1021 ac_prev=
1022 ac_dashdash=
1023 for ac_option
1024 do
1025 # If the previous option needs an argument, assign it.
1026 if test -n "$ac_prev"; then
1027 eval $ac_prev=\$ac_option
1028 ac_prev=
1029 continue
1030 fi
1031
1032 case $ac_option in
1033 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1034 *) ac_optarg=yes ;;
1035 esac
1036
1037 # Accept the important Cygnus configure options, so we can diagnose typos.
1038
1039 case $ac_dashdash$ac_option in
1040 --)
1041 ac_dashdash=yes ;;
1042
1043 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1044 ac_prev=bindir ;;
1045 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1046 bindir=$ac_optarg ;;
1047
1048 -build | --build | --buil | --bui | --bu)
1049 ac_prev=build_alias ;;
1050 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1051 build_alias=$ac_optarg ;;
1052
1053 -cache-file | --cache-file | --cache-fil | --cache-fi \
1054 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1055 ac_prev=cache_file ;;
1056 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1057 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1058 cache_file=$ac_optarg ;;
1059
1060 --config-cache | -C)
1061 cache_file=config.cache ;;
1062
1063 -datadir | --datadir | --datadi | --datad)
1064 ac_prev=datadir ;;
1065 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1066 datadir=$ac_optarg ;;
1067
1068 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1069 | --dataroo | --dataro | --datar)
1070 ac_prev=datarootdir ;;
1071 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1072 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1073 datarootdir=$ac_optarg ;;
1074
1075 -disable-* | --disable-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1084 *"
1085 "enable_$ac_useropt"
1086 "*) ;;
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1089 esac
1090 eval enable_$ac_useropt=no ;;
1091
1092 -docdir | --docdir | --docdi | --doc | --do)
1093 ac_prev=docdir ;;
1094 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1095 docdir=$ac_optarg ;;
1096
1097 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1098 ac_prev=dvidir ;;
1099 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1100 dvidir=$ac_optarg ;;
1101
1102 -enable-* | --enable-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1107 { (exit 1); exit 1; }; }
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1111 *"
1112 "enable_$ac_useropt"
1113 "*) ;;
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1116 esac
1117 eval enable_$ac_useropt=\$ac_optarg ;;
1118
1119 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1120 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1121 | --exec | --exe | --ex)
1122 ac_prev=exec_prefix ;;
1123 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1124 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1125 | --exec=* | --exe=* | --ex=*)
1126 exec_prefix=$ac_optarg ;;
1127
1128 -gas | --gas | --ga | --g)
1129 # Obsolete; use --with-gas.
1130 with_gas=yes ;;
1131
1132 -help | --help | --hel | --he | -h)
1133 ac_init_help=long ;;
1134 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1135 ac_init_help=recursive ;;
1136 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1137 ac_init_help=short ;;
1138
1139 -host | --host | --hos | --ho)
1140 ac_prev=host_alias ;;
1141 -host=* | --host=* | --hos=* | --ho=*)
1142 host_alias=$ac_optarg ;;
1143
1144 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1145 ac_prev=htmldir ;;
1146 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1147 | --ht=*)
1148 htmldir=$ac_optarg ;;
1149
1150 -includedir | --includedir | --includedi | --included | --include \
1151 | --includ | --inclu | --incl | --inc)
1152 ac_prev=includedir ;;
1153 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1154 | --includ=* | --inclu=* | --incl=* | --inc=*)
1155 includedir=$ac_optarg ;;
1156
1157 -infodir | --infodir | --infodi | --infod | --info | --inf)
1158 ac_prev=infodir ;;
1159 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1160 infodir=$ac_optarg ;;
1161
1162 -libdir | --libdir | --libdi | --libd)
1163 ac_prev=libdir ;;
1164 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1165 libdir=$ac_optarg ;;
1166
1167 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1168 | --libexe | --libex | --libe)
1169 ac_prev=libexecdir ;;
1170 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1171 | --libexe=* | --libex=* | --libe=*)
1172 libexecdir=$ac_optarg ;;
1173
1174 -localedir | --localedir | --localedi | --localed | --locale)
1175 ac_prev=localedir ;;
1176 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1177 localedir=$ac_optarg ;;
1178
1179 -localstatedir | --localstatedir | --localstatedi | --localstated \
1180 | --localstate | --localstat | --localsta | --localst | --locals)
1181 ac_prev=localstatedir ;;
1182 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1183 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1184 localstatedir=$ac_optarg ;;
1185
1186 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1187 ac_prev=mandir ;;
1188 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1189 mandir=$ac_optarg ;;
1190
1191 -nfp | --nfp | --nf)
1192 # Obsolete; use --without-fp.
1193 with_fp=no ;;
1194
1195 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1196 | --no-cr | --no-c | -n)
1197 no_create=yes ;;
1198
1199 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1200 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1201 no_recursion=yes ;;
1202
1203 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1204 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1205 | --oldin | --oldi | --old | --ol | --o)
1206 ac_prev=oldincludedir ;;
1207 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1208 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1209 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1210 oldincludedir=$ac_optarg ;;
1211
1212 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1213 ac_prev=prefix ;;
1214 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1215 prefix=$ac_optarg ;;
1216
1217 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1218 | --program-pre | --program-pr | --program-p)
1219 ac_prev=program_prefix ;;
1220 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1221 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1222 program_prefix=$ac_optarg ;;
1223
1224 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1225 | --program-suf | --program-su | --program-s)
1226 ac_prev=program_suffix ;;
1227 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1228 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1229 program_suffix=$ac_optarg ;;
1230
1231 -program-transform-name | --program-transform-name \
1232 | --program-transform-nam | --program-transform-na \
1233 | --program-transform-n | --program-transform- \
1234 | --program-transform | --program-transfor \
1235 | --program-transfo | --program-transf \
1236 | --program-trans | --program-tran \
1237 | --progr-tra | --program-tr | --program-t)
1238 ac_prev=program_transform_name ;;
1239 -program-transform-name=* | --program-transform-name=* \
1240 | --program-transform-nam=* | --program-transform-na=* \
1241 | --program-transform-n=* | --program-transform-=* \
1242 | --program-transform=* | --program-transfor=* \
1243 | --program-transfo=* | --program-transf=* \
1244 | --program-trans=* | --program-tran=* \
1245 | --progr-tra=* | --program-tr=* | --program-t=*)
1246 program_transform_name=$ac_optarg ;;
1247
1248 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1249 ac_prev=pdfdir ;;
1250 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1251 pdfdir=$ac_optarg ;;
1252
1253 -psdir | --psdir | --psdi | --psd | --ps)
1254 ac_prev=psdir ;;
1255 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1256 psdir=$ac_optarg ;;
1257
1258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259 | -silent | --silent | --silen | --sile | --sil)
1260 silent=yes ;;
1261
1262 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1263 ac_prev=sbindir ;;
1264 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1265 | --sbi=* | --sb=*)
1266 sbindir=$ac_optarg ;;
1267
1268 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1269 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1270 | --sharedst | --shareds | --shared | --share | --shar \
1271 | --sha | --sh)
1272 ac_prev=sharedstatedir ;;
1273 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1274 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1275 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1276 | --sha=* | --sh=*)
1277 sharedstatedir=$ac_optarg ;;
1278
1279 -site | --site | --sit)
1280 ac_prev=site ;;
1281 -site=* | --site=* | --sit=*)
1282 site=$ac_optarg ;;
1283
1284 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1285 ac_prev=srcdir ;;
1286 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1287 srcdir=$ac_optarg ;;
1288
1289 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1290 | --syscon | --sysco | --sysc | --sys | --sy)
1291 ac_prev=sysconfdir ;;
1292 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1293 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1294 sysconfdir=$ac_optarg ;;
1295
1296 -target | --target | --targe | --targ | --tar | --ta | --t)
1297 ac_prev=target_alias ;;
1298 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1299 target_alias=$ac_optarg ;;
1300
1301 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1302 verbose=yes ;;
1303
1304 -version | --version | --versio | --versi | --vers | -V)
1305 ac_init_version=: ;;
1306
1307 -with-* | --with-*)
1308 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1312 { (exit 1); exit 1; }; }
1313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1316 *"
1317 "with_$ac_useropt"
1318 "*) ;;
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1321 esac
1322 eval with_$ac_useropt=\$ac_optarg ;;
1323
1324 -without-* | --without-*)
1325 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1326 # Reject names that are not valid shell variable names.
1327 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1328 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1329 { (exit 1); exit 1; }; }
1330 ac_useropt_orig=$ac_useropt
1331 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332 case $ac_user_opts in
1333 *"
1334 "with_$ac_useropt"
1335 "*) ;;
1336 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1337 ac_unrecognized_sep=', ';;
1338 esac
1339 eval with_$ac_useropt=no ;;
1340
1341 --x)
1342 # Obsolete; use --with-x.
1343 with_x=yes ;;
1344
1345 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1346 | --x-incl | --x-inc | --x-in | --x-i)
1347 ac_prev=x_includes ;;
1348 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1349 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1350 x_includes=$ac_optarg ;;
1351
1352 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1353 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1354 ac_prev=x_libraries ;;
1355 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1356 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1357 x_libraries=$ac_optarg ;;
1358
1359 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1360 Try \`$0 --help' for more information." >&2
1361 { (exit 1); exit 1; }; }
1362 ;;
1363
1364 *=*)
1365 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1366 # Reject names that are not valid shell variable names.
1367 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1368 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1369 { (exit 1); exit 1; }; }
1370 eval $ac_envvar=\$ac_optarg
1371 export $ac_envvar ;;
1372
1373 *)
1374 # FIXME: should be removed in autoconf 3.0.
1375 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1376 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1377 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1378 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1379 ;;
1380
1381 esac
1382 done
1383
1384 if test -n "$ac_prev"; then
1385 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1386 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1387 { (exit 1); exit 1; }; }
1388 fi
1389
1390 if test -n "$ac_unrecognized_opts"; then
1391 case $enable_option_checking in
1392 no) ;;
1393 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1394 { (exit 1); exit 1; }; } ;;
1395 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1396 esac
1397 fi
1398
1399 # Check all directory arguments for consistency.
1400 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1401 datadir sysconfdir sharedstatedir localstatedir includedir \
1402 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1403 libdir localedir mandir
1404 do
1405 eval ac_val=\$$ac_var
1406 # Remove trailing slashes.
1407 case $ac_val in
1408 */ )
1409 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1410 eval $ac_var=\$ac_val;;
1411 esac
1412 # Be sure to have absolute directory names.
1413 case $ac_val in
1414 [\\/$]* | ?:[\\/]* ) continue;;
1415 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1416 esac
1417 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1418 { (exit 1); exit 1; }; }
1419 done
1420
1421 # There might be people who depend on the old broken behavior: `$host'
1422 # used to hold the argument of --host etc.
1423 # FIXME: To remove some day.
1424 build=$build_alias
1425 host=$host_alias
1426 target=$target_alias
1427
1428 # FIXME: To remove some day.
1429 if test "x$host_alias" != x; then
1430 if test "x$build_alias" = x; then
1431 cross_compiling=maybe
1432 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1433 If a cross compiler is detected then cross compile mode will be used." >&2
1434 elif test "x$build_alias" != "x$host_alias"; then
1435 cross_compiling=yes
1436 fi
1437 fi
1438
1439 ac_tool_prefix=
1440 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1441
1442 test "$silent" = yes && exec 6>/dev/null
1443
1444
1445 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1446 ac_ls_di=`ls -di .` &&
1447 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1448 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1449 { (exit 1); exit 1; }; }
1450 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1451 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1452 { (exit 1); exit 1; }; }
1453
1454
1455 # Find the source files, if location was not specified.
1456 if test -z "$srcdir"; then
1457 ac_srcdir_defaulted=yes
1458 # Try the directory containing this script, then the parent directory.
1459 ac_confdir=`$as_dirname -- "$as_myself" ||
1460 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1461 X"$as_myself" : 'X\(//\)[^/]' \| \
1462 X"$as_myself" : 'X\(//\)$' \| \
1463 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1464 $as_echo X"$as_myself" |
1465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1466 s//\1/
1467 q
1468 }
1469 /^X\(\/\/\)[^/].*/{
1470 s//\1/
1471 q
1472 }
1473 /^X\(\/\/\)$/{
1474 s//\1/
1475 q
1476 }
1477 /^X\(\/\).*/{
1478 s//\1/
1479 q
1480 }
1481 s/.*/./; q'`
1482 srcdir=$ac_confdir
1483 if test ! -r "$srcdir/$ac_unique_file"; then
1484 srcdir=..
1485 fi
1486 else
1487 ac_srcdir_defaulted=no
1488 fi
1489 if test ! -r "$srcdir/$ac_unique_file"; then
1490 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1491 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1492 { (exit 1); exit 1; }; }
1493 fi
1494 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1495 ac_abs_confdir=`(
1496 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1497 { (exit 1); exit 1; }; }
1498 pwd)`
1499 # When building in place, set srcdir=.
1500 if test "$ac_abs_confdir" = "$ac_pwd"; then
1501 srcdir=.
1502 fi
1503 # Remove unnecessary trailing slashes from srcdir.
1504 # Double slashes in file names in object file debugging info
1505 # mess up M-x gdb in Emacs.
1506 case $srcdir in
1507 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1508 esac
1509 for ac_var in $ac_precious_vars; do
1510 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1511 eval ac_env_${ac_var}_value=\$${ac_var}
1512 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1513 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1514 done
1515
1516 #
1517 # Report the --help message.
1518 #
1519 if test "$ac_init_help" = "long"; then
1520 # Omit some internal or obsolete options to make the list less imposing.
1521 # This message is too long to be a string in the A/UX 3.1 sh.
1522 cat <<_ACEOF
1523 \`configure' configures libXpm 3.5.8 to adapt to many kinds of systems.
1524
1525 Usage: $0 [OPTION]... [VAR=VALUE]...
1526
1527 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1528 VAR=VALUE. See below for descriptions of some of the useful variables.
1529
1530 Defaults for the options are specified in brackets.
1531
1532 Configuration:
1533 -h, --help display this help and exit
1534 --help=short display options specific to this package
1535 --help=recursive display the short help of all the included packages
1536 -V, --version display version information and exit
1537 -q, --quiet, --silent do not print \`checking...' messages
1538 --cache-file=FILE cache test results in FILE [disabled]
1539 -C, --config-cache alias for \`--cache-file=config.cache'
1540 -n, --no-create do not create output files
1541 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1542
1543 Installation directories:
1544 --prefix=PREFIX install architecture-independent files in PREFIX
1545 [$ac_default_prefix]
1546 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1547 [PREFIX]
1548
1549 By default, \`make install' will install all the files in
1550 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1551 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1552 for instance \`--prefix=\$HOME'.
1553
1554 For better control, use the options below.
1555
1556 Fine tuning of the installation directories:
1557 --bindir=DIR user executables [EPREFIX/bin]
1558 --sbindir=DIR system admin executables [EPREFIX/sbin]
1559 --libexecdir=DIR program executables [EPREFIX/libexec]
1560 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1561 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1562 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1563 --libdir=DIR object code libraries [EPREFIX/lib]
1564 --includedir=DIR C header files [PREFIX/include]
1565 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1566 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1567 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1568 --infodir=DIR info documentation [DATAROOTDIR/info]
1569 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1570 --mandir=DIR man documentation [DATAROOTDIR/man]
1571 --docdir=DIR documentation root [DATAROOTDIR/doc/libXpm]
1572 --htmldir=DIR html documentation [DOCDIR]
1573 --dvidir=DIR dvi documentation [DOCDIR]
1574 --pdfdir=DIR pdf documentation [DOCDIR]
1575 --psdir=DIR ps documentation [DOCDIR]
1576 _ACEOF
1577
1578 cat <<\_ACEOF
1579
1580 Program names:
1581 --program-prefix=PREFIX prepend PREFIX to installed program names
1582 --program-suffix=SUFFIX append SUFFIX to installed program names
1583 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1584
1585 System types:
1586 --build=BUILD configure for building on BUILD [guessed]
1587 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1588 _ACEOF
1589 fi
1590
1591 if test -n "$ac_init_help"; then
1592 case $ac_init_help in
1593 short | recursive ) echo "Configuration of libXpm 3.5.8:";;
1594 esac
1595 cat <<\_ACEOF
1596
1597 Optional Features:
1598 --disable-option-checking ignore unrecognized --enable/--with options
1599 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1600 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1601 --enable-maintainer-mode enable make rules and dependencies not useful
1602 (and sometimes confusing) to the casual installer
1603 --enable-shared[=PKGS] build shared libraries [default=yes]
1604 --enable-static[=PKGS] build static libraries [default=yes]
1605 --enable-fast-install[=PKGS]
1606 optimize for fast installation [default=yes]
1607 --disable-dependency-tracking speeds up one-time build
1608 --enable-dependency-tracking do not reject slow dependency extractors
1609 --disable-libtool-lock avoid locking (might break parallel builds)
1610 --enable-silent-rules less verbose build output (undo: `make V=1')
1611 --disable-silent-rules verbose build output (undo: `make V=0')
1612 --enable-strict-compilation
1613 Enable all warnings from compiler and make them
1614 errors (default: disabled)
1615 --enable-stat-zfile Search for files with .Z & .gz extensions
1616 automatically [default=yes]
1617
1618 Optional Packages:
1619 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1620 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1621 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1622 --with-pic try to use only PIC/non-PIC objects [default=use
1623 both]
1624 --with-tags[=TAGS] include additional configurations [automatic]
1625 --with-release-version=STRING
1626 Use release version string in package name
1627 --with-localedir=<path> Path to install message files in (default:
1628 datadir/locale)
1629
1630 Some influential environment variables:
1631 CC C compiler command
1632 CFLAGS C compiler flags
1633 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1634 nonstandard directory <lib dir>
1635 LIBS libraries to pass to the linker, e.g. -l<library>
1636 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1637 you have headers in a nonstandard directory <include dir>
1638 CPP C preprocessor
1639 CXX C++ compiler command
1640 CXXFLAGS C++ compiler flags
1641 CXXCPP C++ preprocessor
1642 F77 Fortran 77 compiler command
1643 FFLAGS Fortran 77 compiler flags
1644 PKG_CONFIG path to pkg-config utility
1645 XPM_CFLAGS C compiler flags for XPM, overriding pkg-config
1646 XPM_LIBS linker flags for XPM, overriding pkg-config
1647 SXPM_CFLAGS C compiler flags for SXPM, overriding pkg-config
1648 SXPM_LIBS linker flags for SXPM, overriding pkg-config
1649
1650 Use these variables to override the choices made by `configure' or to help
1651 it to find libraries and programs with nonstandard names/locations.
1652
1653 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1654 _ACEOF
1655 ac_status=$?
1656 fi
1657
1658 if test "$ac_init_help" = "recursive"; then
1659 # If there are subdirs, report their specific --help.
1660 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1661 test -d "$ac_dir" ||
1662 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1663 continue
1664 ac_builddir=.
1665
1666 case "$ac_dir" in
1667 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668 *)
1669 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1670 # A ".." for each directory in $ac_dir_suffix.
1671 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1672 case $ac_top_builddir_sub in
1673 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1674 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1675 esac ;;
1676 esac
1677 ac_abs_top_builddir=$ac_pwd
1678 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1679 # for backward compatibility:
1680 ac_top_builddir=$ac_top_build_prefix
1681
1682 case $srcdir in
1683 .) # We are building in place.
1684 ac_srcdir=.
1685 ac_top_srcdir=$ac_top_builddir_sub
1686 ac_abs_top_srcdir=$ac_pwd ;;
1687 [\\/]* | ?:[\\/]* ) # Absolute name.
1688 ac_srcdir=$srcdir$ac_dir_suffix;
1689 ac_top_srcdir=$srcdir
1690 ac_abs_top_srcdir=$srcdir ;;
1691 *) # Relative name.
1692 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1693 ac_top_srcdir=$ac_top_build_prefix$srcdir
1694 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1695 esac
1696 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1697
1698 cd "$ac_dir" || { ac_status=$?; continue; }
1699 # Check for guested configure.
1700 if test -f "$ac_srcdir/configure.gnu"; then
1701 echo &&
1702 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1703 elif test -f "$ac_srcdir/configure"; then
1704 echo &&
1705 $SHELL "$ac_srcdir/configure" --help=recursive
1706 else
1707 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1708 fi || ac_status=$?
1709 cd "$ac_pwd" || { ac_status=$?; break; }
1710 done
1711 fi
1712
1713 test -n "$ac_init_help" && exit $ac_status
1714 if $ac_init_version; then
1715 cat <<\_ACEOF
1716 libXpm configure 3.5.8
1717 generated by GNU Autoconf 2.63
1718
1719 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1720 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1721 This configure script is free software; the Free Software Foundation
1722 gives unlimited permission to copy, distribute and modify it.
1723 _ACEOF
1724 exit
1725 fi
1726 cat >config.log <<_ACEOF
1727 This file contains any messages produced by compilers while
1728 running configure, to aid debugging if configure makes a mistake.
1729
1730 It was created by libXpm $as_me 3.5.8, which was
1731 generated by GNU Autoconf 2.63. Invocation command line was
1732
1733 $ $0 $@
1734
1735 _ACEOF
1736 exec 5>>config.log
1737 {
1738 cat <<_ASUNAME
1739 ## --------- ##
1740 ## Platform. ##
1741 ## --------- ##
1742
1743 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1744 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1745 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1746 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1747 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1748
1749 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1750 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1751
1752 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1753 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1754 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1755 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1756 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1757 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1758 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1759
1760 _ASUNAME
1761
1762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763 for as_dir in $PATH
1764 do
1765 IFS=$as_save_IFS
1766 test -z "$as_dir" && as_dir=.
1767 $as_echo "PATH: $as_dir"
1768 done
1769 IFS=$as_save_IFS
1770
1771 } >&5
1772
1773 cat >&5 <<_ACEOF
1774
1775
1776 ## ----------- ##
1777 ## Core tests. ##
1778 ## ----------- ##
1779
1780 _ACEOF
1781
1782
1783 # Keep a trace of the command line.
1784 # Strip out --no-create and --no-recursion so they do not pile up.
1785 # Strip out --silent because we don't want to record it for future runs.
1786 # Also quote any args containing shell meta-characters.
1787 # Make two passes to allow for proper duplicate-argument suppression.
1788 ac_configure_args=
1789 ac_configure_args0=
1790 ac_configure_args1=
1791 ac_must_keep_next=false
1792 for ac_pass in 1 2
1793 do
1794 for ac_arg
1795 do
1796 case $ac_arg in
1797 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1798 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1799 | -silent | --silent | --silen | --sile | --sil)
1800 continue ;;
1801 *\'*)
1802 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1803 esac
1804 case $ac_pass in
1805 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1806 2)
1807 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1808 if test $ac_must_keep_next = true; then
1809 ac_must_keep_next=false # Got value, back to normal.
1810 else
1811 case $ac_arg in
1812 *=* | --config-cache | -C | -disable-* | --disable-* \
1813 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1814 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1815 | -with-* | --with-* | -without-* | --without-* | --x)
1816 case "$ac_configure_args0 " in
1817 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1818 esac
1819 ;;
1820 -* ) ac_must_keep_next=true ;;
1821 esac
1822 fi
1823 ac_configure_args="$ac_configure_args '$ac_arg'"
1824 ;;
1825 esac
1826 done
1827 done
1828 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1829 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1830
1831 # When interrupted or exit'd, cleanup temporary files, and complete
1832 # config.log. We remove comments because anyway the quotes in there
1833 # would cause problems or look ugly.
1834 # WARNING: Use '\'' to represent an apostrophe within the trap.
1835 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1836 trap 'exit_status=$?
1837 # Save into config.log some information that might help in debugging.
1838 {
1839 echo
1840
1841 cat <<\_ASBOX
1842 ## ---------------- ##
1843 ## Cache variables. ##
1844 ## ---------------- ##
1845 _ASBOX
1846 echo
1847 # The following way of writing the cache mishandles newlines in values,
1848 (
1849 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1850 eval ac_val=\$$ac_var
1851 case $ac_val in #(
1852 *${as_nl}*)
1853 case $ac_var in #(
1854 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1855 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1856 esac
1857 case $ac_var in #(
1858 _ | IFS | as_nl) ;; #(
1859 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1860 *) $as_unset $ac_var ;;
1861 esac ;;
1862 esac
1863 done
1864 (set) 2>&1 |
1865 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1866 *${as_nl}ac_space=\ *)
1867 sed -n \
1868 "s/'\''/'\''\\\\'\'''\''/g;
1869 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1870 ;; #(
1871 *)
1872 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1873 ;;
1874 esac |
1875 sort
1876 )
1877 echo
1878
1879 cat <<\_ASBOX
1880 ## ----------------- ##
1881 ## Output variables. ##
1882 ## ----------------- ##
1883 _ASBOX
1884 echo
1885 for ac_var in $ac_subst_vars
1886 do
1887 eval ac_val=\$$ac_var
1888 case $ac_val in
1889 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1890 esac
1891 $as_echo "$ac_var='\''$ac_val'\''"
1892 done | sort
1893 echo
1894
1895 if test -n "$ac_subst_files"; then
1896 cat <<\_ASBOX
1897 ## ------------------- ##
1898 ## File substitutions. ##
1899 ## ------------------- ##
1900 _ASBOX
1901 echo
1902 for ac_var in $ac_subst_files
1903 do
1904 eval ac_val=\$$ac_var
1905 case $ac_val in
1906 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1907 esac
1908 $as_echo "$ac_var='\''$ac_val'\''"
1909 done | sort
1910 echo
1911 fi
1912
1913 if test -s confdefs.h; then
1914 cat <<\_ASBOX
1915 ## ----------- ##
1916 ## confdefs.h. ##
1917 ## ----------- ##
1918 _ASBOX
1919 echo
1920 cat confdefs.h
1921 echo
1922 fi
1923 test "$ac_signal" != 0 &&
1924 $as_echo "$as_me: caught signal $ac_signal"
1925 $as_echo "$as_me: exit $exit_status"
1926 } >&5
1927 rm -f core *.core core.conftest.* &&
1928 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1929 exit $exit_status
1930 ' 0
1931 for ac_signal in 1 2 13 15; do
1932 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1933 done
1934 ac_signal=0
1935
1936 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1937 rm -f -r conftest* confdefs.h
1938
1939 # Predefined preprocessor variables.
1940
1941 cat >>confdefs.h <<_ACEOF
1942 #define PACKAGE_NAME "$PACKAGE_NAME"
1943 _ACEOF
1944
1945
1946 cat >>confdefs.h <<_ACEOF
1947 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1948 _ACEOF
1949
1950
1951 cat >>confdefs.h <<_ACEOF
1952 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1953 _ACEOF
1954
1955
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_STRING "$PACKAGE_STRING"
1958 _ACEOF
1959
1960
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1963 _ACEOF
1964
1965
1966 # Let the site file select an alternate cache file if it wants to.
1967 # Prefer an explicitly selected file to automatically selected ones.
1968 ac_site_file1=NONE
1969 ac_site_file2=NONE
1970 if test -n "$CONFIG_SITE"; then
1971 ac_site_file1=$CONFIG_SITE
1972 elif test "x$prefix" != xNONE; then
1973 ac_site_file1=$prefix/share/config.site
1974 ac_site_file2=$prefix/etc/config.site
1975 else
1976 ac_site_file1=$ac_default_prefix/share/config.site
1977 ac_site_file2=$ac_default_prefix/etc/config.site
1978 fi
1979 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1980 do
1981 test "x$ac_site_file" = xNONE && continue
1982 if test -r "$ac_site_file"; then
1983 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1984 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1985 sed 's/^/| /' "$ac_site_file" >&5
1986 . "$ac_site_file"
1987 fi
1988 done
1989
1990 if test -r "$cache_file"; then
1991 # Some versions of bash will fail to source /dev/null (special
1992 # files actually), so we avoid doing that.
1993 if test -f "$cache_file"; then
1994 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1995 $as_echo "$as_me: loading cache $cache_file" >&6;}
1996 case $cache_file in
1997 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1998 *) . "./$cache_file";;
1999 esac
2000 fi
2001 else
2002 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2003 $as_echo "$as_me: creating cache $cache_file" >&6;}
2004 >$cache_file
2005 fi
2006
2007 # Check that the precious variables saved in the cache have kept the same
2008 # value.
2009 ac_cache_corrupted=false
2010 for ac_var in $ac_precious_vars; do
2011 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2012 eval ac_new_set=\$ac_env_${ac_var}_set
2013 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2014 eval ac_new_val=\$ac_env_${ac_var}_value
2015 case $ac_old_set,$ac_new_set in
2016 set,)
2017 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2018 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2019 ac_cache_corrupted=: ;;
2020 ,set)
2021 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2022 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2023 ac_cache_corrupted=: ;;
2024 ,);;
2025 *)
2026 if test "x$ac_old_val" != "x$ac_new_val"; then
2027 # differences in whitespace do not lead to failure.
2028 ac_old_val_w=`echo x $ac_old_val`
2029 ac_new_val_w=`echo x $ac_new_val`
2030 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2031 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2032 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2033 ac_cache_corrupted=:
2034 else
2035 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2036 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2037 eval $ac_var=\$ac_old_val
2038 fi
2039 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2040 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2041 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2042 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2043 fi;;
2044 esac
2045 # Pass precious variables to config.status.
2046 if test "$ac_new_set" = set; then
2047 case $ac_new_val in
2048 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2049 *) ac_arg=$ac_var=$ac_new_val ;;
2050 esac
2051 case " $ac_configure_args " in
2052 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2053 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2054 esac
2055 fi
2056 done
2057 if $ac_cache_corrupted; then
2058 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2060 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2061 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2062 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2063 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2064 { (exit 1); exit 1; }; }
2065 fi
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091 ac_ext=c
2092 ac_cpp='$CPP $CPPFLAGS'
2093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2096
2097
2098
2099 am__api_version='1.11'
2100
2101 ac_aux_dir=
2102 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2103 if test -f "$ac_dir/install-sh"; then
2104 ac_aux_dir=$ac_dir
2105 ac_install_sh="$ac_aux_dir/install-sh -c"
2106 break
2107 elif test -f "$ac_dir/install.sh"; then
2108 ac_aux_dir=$ac_dir
2109 ac_install_sh="$ac_aux_dir/install.sh -c"
2110 break
2111 elif test -f "$ac_dir/shtool"; then
2112 ac_aux_dir=$ac_dir
2113 ac_install_sh="$ac_aux_dir/shtool install -c"
2114 break
2115 fi
2116 done
2117 if test -z "$ac_aux_dir"; then
2118 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2119 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2120 { (exit 1); exit 1; }; }
2121 fi
2122
2123 # These three variables are undocumented and unsupported,
2124 # and are intended to be withdrawn in a future Autoconf release.
2125 # They can cause serious problems if a builder's source tree is in a directory
2126 # whose full name contains unusual characters.
2127 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2128 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2129 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2130
2131
2132 # Find a good install program. We prefer a C program (faster),
2133 # so one script is as good as another. But avoid the broken or
2134 # incompatible versions:
2135 # SysV /etc/install, /usr/sbin/install
2136 # SunOS /usr/etc/install
2137 # IRIX /sbin/install
2138 # AIX /bin/install
2139 # AmigaOS /C/install, which installs bootblocks on floppy discs
2140 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2141 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2142 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2143 # OS/2's system install, which has a completely different semantic
2144 # ./install, which can be erroneously created by make from ./install.sh.
2145 # Reject install programs that cannot install multiple files.
2146 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2147 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2148 if test -z "$INSTALL"; then
2149 if test "${ac_cv_path_install+set}" = set; then
2150 $as_echo_n "(cached) " >&6
2151 else
2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153 for as_dir in $PATH
2154 do
2155 IFS=$as_save_IFS
2156 test -z "$as_dir" && as_dir=.
2157 # Account for people who put trailing slashes in PATH elements.
2158 case $as_dir/ in
2159 ./ | .// | /cC/* | \
2160 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2161 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2162 /usr/ucb/* ) ;;
2163 *)
2164 # OSF1 and SCO ODT 3.0 have their own names for install.
2165 # Don't use installbsd from OSF since it installs stuff as root
2166 # by default.
2167 for ac_prog in ginstall scoinst install; do
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2170 if test $ac_prog = install &&
2171 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2172 # AIX install. It has an incompatible calling convention.
2173 :
2174 elif test $ac_prog = install &&
2175 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2176 # program-specific install script used by HP pwplus--don't use.
2177 :
2178 else
2179 rm -rf conftest.one conftest.two conftest.dir
2180 echo one > conftest.one
2181 echo two > conftest.two
2182 mkdir conftest.dir
2183 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2184 test -s conftest.one && test -s conftest.two &&
2185 test -s conftest.dir/conftest.one &&
2186 test -s conftest.dir/conftest.two
2187 then
2188 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2189 break 3
2190 fi
2191 fi
2192 fi
2193 done
2194 done
2195 ;;
2196 esac
2197
2198 done
2199 IFS=$as_save_IFS
2200
2201 rm -rf conftest.one conftest.two conftest.dir
2202
2203 fi
2204 if test "${ac_cv_path_install+set}" = set; then
2205 INSTALL=$ac_cv_path_install
2206 else
2207 # As a last resort, use the slow shell script. Don't cache a
2208 # value for INSTALL within a source directory, because that will
2209 # break other packages using the cache if that directory is
2210 # removed, or if the value is a relative name.
2211 INSTALL=$ac_install_sh
2212 fi
2213 fi
2214 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2215 $as_echo "$INSTALL" >&6; }
2216
2217 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2218 # It thinks the first close brace ends the variable substitution.
2219 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2220
2221 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2222
2223 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2224
2225 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2226 $as_echo_n "checking whether build environment is sane... " >&6; }
2227 # Just in case
2228 sleep 1
2229 echo timestamp > conftest.file
2230 # Reject unsafe characters in $srcdir or the absolute working directory
2231 # name. Accept space and tab only in the latter.
2232 am_lf='
2233 '
2234 case `pwd` in
2235 *[\\\"\#\$\&\'\`$am_lf]*)
2236 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2237 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2238 { (exit 1); exit 1; }; };;
2239 esac
2240 case $srcdir in
2241 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2242 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2243 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2244 { (exit 1); exit 1; }; };;
2245 esac
2246
2247 # Do `set' in a subshell so we don't clobber the current shell's
2248 # arguments. Must try -L first in case configure is actually a
2249 # symlink; some systems play weird games with the mod time of symlinks
2250 # (eg FreeBSD returns the mod time of the symlink's containing
2251 # directory).
2252 if (
2253 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2254 if test "$*" = "X"; then
2255 # -L didn't work.
2256 set X `ls -t "$srcdir/configure" conftest.file`
2257 fi
2258 rm -f conftest.file
2259 if test "$*" != "X $srcdir/configure conftest.file" \
2260 && test "$*" != "X conftest.file $srcdir/configure"; then
2261
2262 # If neither matched, then we have a broken ls. This can happen
2263 # if, for instance, CONFIG_SHELL is bash and it inherits a
2264 # broken ls alias from the environment. This has actually
2265 # happened. Such a system could not be considered "sane".
2266 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2267 alias in your environment" >&5
2268 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2269 alias in your environment" >&2;}
2270 { (exit 1); exit 1; }; }
2271 fi
2272
2273 test "$2" = conftest.file
2274 )
2275 then
2276 # Ok.
2277 :
2278 else
2279 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2280 Check your system clock" >&5
2281 $as_echo "$as_me: error: newly created file is older than distributed files!
2282 Check your system clock" >&2;}
2283 { (exit 1); exit 1; }; }
2284 fi
2285 { $as_echo "$as_me:$LINENO: result: yes" >&5
2286 $as_echo "yes" >&6; }
2287 test "$program_prefix" != NONE &&
2288 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2289 # Use a double $ so make ignores it.
2290 test "$program_suffix" != NONE &&
2291 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2292 # Double any \ or $.
2293 # By default was `s,x,x', remove it if useless.
2294 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2295 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2296
2297 # expand $ac_aux_dir to an absolute path
2298 am_aux_dir=`cd $ac_aux_dir && pwd`
2299
2300 if test x"${MISSING+set}" != xset; then
2301 case $am_aux_dir in
2302 *\ * | *\ *)
2303 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2304 *)
2305 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2306 esac
2307 fi
2308 # Use eval to expand $SHELL
2309 if eval "$MISSING --run true"; then
2310 am_missing_run="$MISSING --run "
2311 else
2312 am_missing_run=
2313 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2314 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2315 fi
2316
2317 if test x"${install_sh}" != xset; then
2318 case $am_aux_dir in
2319 *\ * | *\ *)
2320 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2321 *)
2322 install_sh="\${SHELL} $am_aux_dir/install-sh"
2323 esac
2324 fi
2325
2326 # Installed binaries are usually stripped using `strip' when the user
2327 # run `make install-strip'. However `strip' might not be the right
2328 # tool to use in cross-compilation environments, therefore Automake
2329 # will honor the `STRIP' environment variable to overrule this program.
2330 if test "$cross_compiling" != no; then
2331 if test -n "$ac_tool_prefix"; then
2332 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2333 set dummy ${ac_tool_prefix}strip; ac_word=$2
2334 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 $as_echo_n "checking for $ac_word... " >&6; }
2336 if test "${ac_cv_prog_STRIP+set}" = set; then
2337 $as_echo_n "(cached) " >&6
2338 else
2339 if test -n "$STRIP"; then
2340 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2341 else
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2344 do
2345 IFS=$as_save_IFS
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 2
2352 fi
2353 done
2354 done
2355 IFS=$as_save_IFS
2356
2357 fi
2358 fi
2359 STRIP=$ac_cv_prog_STRIP
2360 if test -n "$STRIP"; then
2361 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2362 $as_echo "$STRIP" >&6; }
2363 else
2364 { $as_echo "$as_me:$LINENO: result: no" >&5
2365 $as_echo "no" >&6; }
2366 fi
2367
2368
2369 fi
2370 if test -z "$ac_cv_prog_STRIP"; then
2371 ac_ct_STRIP=$STRIP
2372 # Extract the first word of "strip", so it can be a program name with args.
2373 set dummy strip; ac_word=$2
2374 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2375 $as_echo_n "checking for $ac_word... " >&6; }
2376 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2377 $as_echo_n "(cached) " >&6
2378 else
2379 if test -n "$ac_ct_STRIP"; then
2380 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2381 else
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH
2384 do
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2389 ac_cv_prog_ac_ct_STRIP="strip"
2390 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 break 2
2392 fi
2393 done
2394 done
2395 IFS=$as_save_IFS
2396
2397 fi
2398 fi
2399 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2400 if test -n "$ac_ct_STRIP"; then
2401 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2402 $as_echo "$ac_ct_STRIP" >&6; }
2403 else
2404 { $as_echo "$as_me:$LINENO: result: no" >&5
2405 $as_echo "no" >&6; }
2406 fi
2407
2408 if test "x$ac_ct_STRIP" = x; then
2409 STRIP=":"
2410 else
2411 case $cross_compiling:$ac_tool_warned in
2412 yes:)
2413 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2415 ac_tool_warned=yes ;;
2416 esac
2417 STRIP=$ac_ct_STRIP
2418 fi
2419 else
2420 STRIP="$ac_cv_prog_STRIP"
2421 fi
2422
2423 fi
2424 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2425
2426 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2427 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2428 if test -z "$MKDIR_P"; then
2429 if test "${ac_cv_path_mkdir+set}" = set; then
2430 $as_echo_n "(cached) " >&6
2431 else
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2434 do
2435 IFS=$as_save_IFS
2436 test -z "$as_dir" && as_dir=.
2437 for ac_prog in mkdir gmkdir; do
2438 for ac_exec_ext in '' $ac_executable_extensions; do
2439 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2440 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2441 'mkdir (GNU coreutils) '* | \
2442 'mkdir (coreutils) '* | \
2443 'mkdir (fileutils) '4.1*)
2444 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2445 break 3;;
2446 esac
2447 done
2448 done
2449 done
2450 IFS=$as_save_IFS
2451
2452 fi
2453
2454 if test "${ac_cv_path_mkdir+set}" = set; then
2455 MKDIR_P="$ac_cv_path_mkdir -p"
2456 else
2457 # As a last resort, use the slow shell script. Don't cache a
2458 # value for MKDIR_P within a source directory, because that will
2459 # break other packages using the cache if that directory is
2460 # removed, or if the value is a relative name.
2461 test -d ./--version && rmdir ./--version
2462 MKDIR_P="$ac_install_sh -d"
2463 fi
2464 fi
2465 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2466 $as_echo "$MKDIR_P" >&6; }
2467
2468 mkdir_p="$MKDIR_P"
2469 case $mkdir_p in
2470 [\\/$]* | ?:[\\/]*) ;;
2471 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2472 esac
2473
2474 for ac_prog in gawk mawk nawk awk
2475 do
2476 # Extract the first word of "$ac_prog", so it can be a program name with args.
2477 set dummy $ac_prog; ac_word=$2
2478 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 $as_echo_n "checking for $ac_word... " >&6; }
2480 if test "${ac_cv_prog_AWK+set}" = set; then
2481 $as_echo_n "(cached) " >&6
2482 else
2483 if test -n "$AWK"; then
2484 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_AWK="$ac_prog"
2494 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 break 2
2496 fi
2497 done
2498 done
2499 IFS=$as_save_IFS
2500
2501 fi
2502 fi
2503 AWK=$ac_cv_prog_AWK
2504 if test -n "$AWK"; then
2505 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2506 $as_echo "$AWK" >&6; }
2507 else
2508 { $as_echo "$as_me:$LINENO: result: no" >&5
2509 $as_echo "no" >&6; }
2510 fi
2511
2512
2513 test -n "$AWK" && break
2514 done
2515
2516 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2517 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2518 set x ${MAKE-make}
2519 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2520 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2521 $as_echo_n "(cached) " >&6
2522 else
2523 cat >conftest.make <<\_ACEOF
2524 SHELL = /bin/sh
2525 all:
2526 @echo '@@@%%%=$(MAKE)=@@@%%%'
2527 _ACEOF
2528 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2529 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2530 *@@@%%%=?*=@@@%%%*)
2531 eval ac_cv_prog_make_${ac_make}_set=yes;;
2532 *)
2533 eval ac_cv_prog_make_${ac_make}_set=no;;
2534 esac
2535 rm -f conftest.make
2536 fi
2537 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2538 { $as_echo "$as_me:$LINENO: result: yes" >&5
2539 $as_echo "yes" >&6; }
2540 SET_MAKE=
2541 else
2542 { $as_echo "$as_me:$LINENO: result: no" >&5
2543 $as_echo "no" >&6; }
2544 SET_MAKE="MAKE=${MAKE-make}"
2545 fi
2546
2547 rm -rf .tst 2>/dev/null
2548 mkdir .tst 2>/dev/null
2549 if test -d .tst; then
2550 am__leading_dot=.
2551 else
2552 am__leading_dot=_
2553 fi
2554 rmdir .tst 2>/dev/null
2555
2556 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2557 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2558 # is not polluted with repeated "-I."
2559 am__isrc=' -I$(srcdir)'
2560 # test to see if srcdir already configured
2561 if test -f $srcdir/config.status; then
2562 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2563 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2564 { (exit 1); exit 1; }; }
2565 fi
2566 fi
2567
2568 # test whether we have cygpath
2569 if test -z "$CYGPATH_W"; then
2570 if (cygpath --version) >/dev/null 2>/dev/null; then
2571 CYGPATH_W='cygpath -w'
2572 else
2573 CYGPATH_W=echo
2574 fi
2575 fi
2576
2577
2578 # Define the identity of the package.
2579 PACKAGE='libXpm'
2580 VERSION='3.5.8'
2581
2582
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE "$PACKAGE"
2585 _ACEOF
2586
2587
2588 cat >>confdefs.h <<_ACEOF
2589 #define VERSION "$VERSION"
2590 _ACEOF
2591
2592 # Some tools Automake needs.
2593
2594 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2595
2596
2597 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2598
2599
2600 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2601
2602
2603 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2604
2605
2606 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2607
2608 # We need awk for the "check" target. The system "awk" is bad on
2609 # some platforms.
2610 # Always define AMTAR for backward compatibility.
2611
2612 AMTAR=${AMTAR-"${am_missing_run}tar"}
2613
2614 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2615
2616
2617
2618
2619
2620
2621
2622 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2623 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2624 # Check whether --enable-maintainer-mode was given.
2625 if test "${enable_maintainer_mode+set}" = set; then
2626 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2627 else
2628 USE_MAINTAINER_MODE=no
2629 fi
2630
2631 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2632 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2633 if test $USE_MAINTAINER_MODE = yes; then
2634 MAINTAINER_MODE_TRUE=
2635 MAINTAINER_MODE_FALSE='#'
2636 else
2637 MAINTAINER_MODE_TRUE='#'
2638 MAINTAINER_MODE_FALSE=
2639 fi
2640
2641 MAINT=$MAINTAINER_MODE_TRUE
2642
2643
2644
2645 # Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658 ac_config_headers="$ac_config_headers config.h"
2659
2660
2661 # Checks for programs.
2662 # Check whether --enable-shared was given.
2663 if test "${enable_shared+set}" = set; then
2664 enableval=$enable_shared; p=${PACKAGE-default}
2665 case $enableval in
2666 yes) enable_shared=yes ;;
2667 no) enable_shared=no ;;
2668 *)
2669 enable_shared=no
2670 # Look at the argument we got. We use all the common list separators.
2671 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2672 for pkg in $enableval; do
2673 IFS="$lt_save_ifs"
2674 if test "X$pkg" = "X$p"; then
2675 enable_shared=yes
2676 fi
2677 done
2678 IFS="$lt_save_ifs"
2679 ;;
2680 esac
2681 else
2682 enable_shared=yes
2683 fi
2684
2685
2686 # Check whether --enable-static was given.
2687 if test "${enable_static+set}" = set; then
2688 enableval=$enable_static; p=${PACKAGE-default}
2689 case $enableval in
2690 yes) enable_static=yes ;;
2691 no) enable_static=no ;;
2692 *)
2693 enable_static=no
2694 # Look at the argument we got. We use all the common list separators.
2695 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2696 for pkg in $enableval; do
2697 IFS="$lt_save_ifs"
2698 if test "X$pkg" = "X$p"; then
2699 enable_static=yes
2700 fi
2701 done
2702 IFS="$lt_save_ifs"
2703 ;;
2704 esac
2705 else
2706 enable_static=yes
2707 fi
2708
2709
2710 # Check whether --enable-fast-install was given.
2711 if test "${enable_fast_install+set}" = set; then
2712 enableval=$enable_fast_install; p=${PACKAGE-default}
2713 case $enableval in
2714 yes) enable_fast_install=yes ;;
2715 no) enable_fast_install=no ;;
2716 *)
2717 enable_fast_install=no
2718 # Look at the argument we got. We use all the common list separators.
2719 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2720 for pkg in $enableval; do
2721 IFS="$lt_save_ifs"
2722 if test "X$pkg" = "X$p"; then
2723 enable_fast_install=yes
2724 fi
2725 done
2726 IFS="$lt_save_ifs"
2727 ;;
2728 esac
2729 else
2730 enable_fast_install=yes
2731 fi
2732
2733
2734 # Make sure we can run config.sub.
2735 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2736 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2737 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2738 { (exit 1); exit 1; }; }
2739
2740 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2741 $as_echo_n "checking build system type... " >&6; }
2742 if test "${ac_cv_build+set}" = set; then
2743 $as_echo_n "(cached) " >&6
2744 else
2745 ac_build_alias=$build_alias
2746 test "x$ac_build_alias" = x &&
2747 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2748 test "x$ac_build_alias" = x &&
2749 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2750 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2751 { (exit 1); exit 1; }; }
2752 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2753 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2754 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2755 { (exit 1); exit 1; }; }
2756
2757 fi
2758 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2759 $as_echo "$ac_cv_build" >&6; }
2760 case $ac_cv_build in
2761 *-*-*) ;;
2762 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2763 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2764 { (exit 1); exit 1; }; };;
2765 esac
2766 build=$ac_cv_build
2767 ac_save_IFS=$IFS; IFS='-'
2768 set x $ac_cv_build
2769 shift
2770 build_cpu=$1
2771 build_vendor=$2
2772 shift; shift
2773 # Remember, the first character of IFS is used to create $*,
2774 # except with old shells:
2775 build_os=$*
2776 IFS=$ac_save_IFS
2777 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2778
2779
2780 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2781 $as_echo_n "checking host system type... " >&6; }
2782 if test "${ac_cv_host+set}" = set; then
2783 $as_echo_n "(cached) " >&6
2784 else
2785 if test "x$host_alias" = x; then
2786 ac_cv_host=$ac_cv_build
2787 else
2788 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2789 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2790 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2791 { (exit 1); exit 1; }; }
2792 fi
2793
2794 fi
2795 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2796 $as_echo "$ac_cv_host" >&6; }
2797 case $ac_cv_host in
2798 *-*-*) ;;
2799 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2800 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2801 { (exit 1); exit 1; }; };;
2802 esac
2803 host=$ac_cv_host
2804 ac_save_IFS=$IFS; IFS='-'
2805 set x $ac_cv_host
2806 shift
2807 host_cpu=$1
2808 host_vendor=$2
2809 shift; shift
2810 # Remember, the first character of IFS is used to create $*,
2811 # except with old shells:
2812 host_os=$*
2813 IFS=$ac_save_IFS
2814 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2815
2816
2817 DEPDIR="${am__leading_dot}deps"
2818
2819 ac_config_commands="$ac_config_commands depfiles"
2820
2821
2822 am_make=${MAKE-make}
2823 cat > confinc << 'END'
2824 am__doit:
2825 @echo this is the am__doit target
2826 .PHONY: am__doit
2827 END
2828 # If we don't find an include directive, just comment out the code.
2829 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2830 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2831 am__include="#"
2832 am__quote=
2833 _am_result=none
2834 # First try GNU make style include.
2835 echo "include confinc" > confmf
2836 # Ignore all kinds of additional output from `make'.
2837 case `$am_make -s -f confmf 2> /dev/null` in #(
2838 *the\ am__doit\ target*)
2839 am__include=include
2840 am__quote=
2841 _am_result=GNU
2842 ;;
2843 esac
2844 # Now try BSD make style include.
2845 if test "$am__include" = "#"; then
2846 echo '.include "confinc"' > confmf
2847 case `$am_make -s -f confmf 2> /dev/null` in #(
2848 *the\ am__doit\ target*)
2849 am__include=.include
2850 am__quote="\""
2851 _am_result=BSD
2852 ;;
2853 esac
2854 fi
2855
2856
2857 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2858 $as_echo "$_am_result" >&6; }
2859 rm -f confinc confmf
2860
2861 # Check whether --enable-dependency-tracking was given.
2862 if test "${enable_dependency_tracking+set}" = set; then
2863 enableval=$enable_dependency_tracking;
2864 fi
2865
2866 if test "x$enable_dependency_tracking" != xno; then
2867 am_depcomp="$ac_aux_dir/depcomp"
2868 AMDEPBACKSLASH='\'
2869 fi
2870 if test "x$enable_dependency_tracking" != xno; then
2871 AMDEP_TRUE=
2872 AMDEP_FALSE='#'
2873 else
2874 AMDEP_TRUE='#'
2875 AMDEP_FALSE=
2876 fi
2877
2878
2879 ac_ext=c
2880 ac_cpp='$CPP $CPPFLAGS'
2881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2884 if test -n "$ac_tool_prefix"; then
2885 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2886 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2887 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if test "${ac_cv_prog_CC+set}" = set; then
2890 $as_echo_n "(cached) " >&6
2891 else
2892 if test -n "$CC"; then
2893 ac_cv_prog_CC="$CC" # Let the user override the test.
2894 else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2897 do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2903 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2905 fi
2906 done
2907 done
2908 IFS=$as_save_IFS
2909
2910 fi
2911 fi
2912 CC=$ac_cv_prog_CC
2913 if test -n "$CC"; then
2914 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2915 $as_echo "$CC" >&6; }
2916 else
2917 { $as_echo "$as_me:$LINENO: result: no" >&5
2918 $as_echo "no" >&6; }
2919 fi
2920
2921
2922 fi
2923 if test -z "$ac_cv_prog_CC"; then
2924 ac_ct_CC=$CC
2925 # Extract the first word of "gcc", so it can be a program name with args.
2926 set dummy gcc; ac_word=$2
2927 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2928 $as_echo_n "checking for $ac_word... " >&6; }
2929 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2930 $as_echo_n "(cached) " >&6
2931 else
2932 if test -n "$ac_ct_CC"; then
2933 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2934 else
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 for as_dir in $PATH
2937 do
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942 ac_cv_prog_ac_ct_CC="gcc"
2943 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2945 fi
2946 done
2947 done
2948 IFS=$as_save_IFS
2949
2950 fi
2951 fi
2952 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2953 if test -n "$ac_ct_CC"; then
2954 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2955 $as_echo "$ac_ct_CC" >&6; }
2956 else
2957 { $as_echo "$as_me:$LINENO: result: no" >&5
2958 $as_echo "no" >&6; }
2959 fi
2960
2961 if test "x$ac_ct_CC" = x; then
2962 CC=""
2963 else
2964 case $cross_compiling:$ac_tool_warned in
2965 yes:)
2966 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2968 ac_tool_warned=yes ;;
2969 esac
2970 CC=$ac_ct_CC
2971 fi
2972 else
2973 CC="$ac_cv_prog_CC"
2974 fi
2975
2976 if test -z "$CC"; then
2977 if test -n "$ac_tool_prefix"; then
2978 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2979 set dummy ${ac_tool_prefix}cc; ac_word=$2
2980 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if test "${ac_cv_prog_CC+set}" = set; then
2983 $as_echo_n "(cached) " >&6
2984 else
2985 if test -n "$CC"; then
2986 ac_cv_prog_CC="$CC" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2990 do
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2995 ac_cv_prog_CC="${ac_tool_prefix}cc"
2996 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2998 fi
2999 done
3000 done
3001 IFS=$as_save_IFS
3002
3003 fi
3004 fi
3005 CC=$ac_cv_prog_CC
3006 if test -n "$CC"; then
3007 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3008 $as_echo "$CC" >&6; }
3009 else
3010 { $as_echo "$as_me:$LINENO: result: no" >&5
3011 $as_echo "no" >&6; }
3012 fi
3013
3014
3015 fi
3016 fi
3017 if test -z "$CC"; then
3018 # Extract the first word of "cc", so it can be a program name with args.
3019 set dummy cc; ac_word=$2
3020 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if test "${ac_cv_prog_CC+set}" = set; then
3023 $as_echo_n "(cached) " >&6
3024 else
3025 if test -n "$CC"; then
3026 ac_cv_prog_CC="$CC" # Let the user override the test.
3027 else
3028 ac_prog_rejected=no
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3037 ac_prog_rejected=yes
3038 continue
3039 fi
3040 ac_cv_prog_CC="cc"
3041 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3043 fi
3044 done
3045 done
3046 IFS=$as_save_IFS
3047
3048 if test $ac_prog_rejected = yes; then
3049 # We found a bogon in the path, so make sure we never use it.
3050 set dummy $ac_cv_prog_CC
3051 shift
3052 if test $# != 0; then
3053 # We chose a different compiler from the bogus one.
3054 # However, it has the same basename, so the bogon will be chosen
3055 # first if we set CC to just the basename; use the full file name.
3056 shift
3057 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3058 fi
3059 fi
3060 fi
3061 fi
3062 CC=$ac_cv_prog_CC
3063 if test -n "$CC"; then
3064 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3065 $as_echo "$CC" >&6; }
3066 else
3067 { $as_echo "$as_me:$LINENO: result: no" >&5
3068 $as_echo "no" >&6; }
3069 fi
3070
3071
3072 fi
3073 if test -z "$CC"; then
3074 if test -n "$ac_tool_prefix"; then
3075 for ac_prog in cl.exe
3076 do
3077 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3078 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3079 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3080 $as_echo_n "checking for $ac_word... " >&6; }
3081 if test "${ac_cv_prog_CC+set}" = set; then
3082 $as_echo_n "(cached) " >&6
3083 else
3084 if test -n "$CC"; then
3085 ac_cv_prog_CC="$CC" # Let the user override the test.
3086 else
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 for as_dir in $PATH
3089 do
3090 IFS=$as_save_IFS
3091 test -z "$as_dir" && as_dir=.
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3094 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3095 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 break 2
3097 fi
3098 done
3099 done
3100 IFS=$as_save_IFS
3101
3102 fi
3103 fi
3104 CC=$ac_cv_prog_CC
3105 if test -n "$CC"; then
3106 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3107 $as_echo "$CC" >&6; }
3108 else
3109 { $as_echo "$as_me:$LINENO: result: no" >&5
3110 $as_echo "no" >&6; }
3111 fi
3112
3113
3114 test -n "$CC" && break
3115 done
3116 fi
3117 if test -z "$CC"; then
3118 ac_ct_CC=$CC
3119 for ac_prog in cl.exe
3120 do
3121 # Extract the first word of "$ac_prog", so it can be a program name with args.
3122 set dummy $ac_prog; ac_word=$2
3123 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3126 $as_echo_n "(cached) " >&6
3127 else
3128 if test -n "$ac_ct_CC"; then
3129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3138 ac_cv_prog_ac_ct_CC="$ac_prog"
3139 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 break 2
3141 fi
3142 done
3143 done
3144 IFS=$as_save_IFS
3145
3146 fi
3147 fi
3148 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3149 if test -n "$ac_ct_CC"; then
3150 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3151 $as_echo "$ac_ct_CC" >&6; }
3152 else
3153 { $as_echo "$as_me:$LINENO: result: no" >&5
3154 $as_echo "no" >&6; }
3155 fi
3156
3157
3158 test -n "$ac_ct_CC" && break
3159 done
3160
3161 if test "x$ac_ct_CC" = x; then
3162 CC=""
3163 else
3164 case $cross_compiling:$ac_tool_warned in
3165 yes:)
3166 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3168 ac_tool_warned=yes ;;
3169 esac
3170 CC=$ac_ct_CC
3171 fi
3172 fi
3173
3174 fi
3175
3176
3177 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3180 See \`config.log' for more details." >&5
3181 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3182 See \`config.log' for more details." >&2;}
3183 { (exit 1); exit 1; }; }; }
3184
3185 # Provide some information about the compiler.
3186 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3187 set X $ac_compile
3188 ac_compiler=$2
3189 { (ac_try="$ac_compiler --version >&5"
3190 case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193 esac
3194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3195 $as_echo "$ac_try_echo") >&5
3196 (eval "$ac_compiler --version >&5") 2>&5
3197 ac_status=$?
3198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }
3200 { (ac_try="$ac_compiler -v >&5"
3201 case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204 esac
3205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3206 $as_echo "$ac_try_echo") >&5
3207 (eval "$ac_compiler -v >&5") 2>&5
3208 ac_status=$?
3209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }
3211 { (ac_try="$ac_compiler -V >&5"
3212 case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215 esac
3216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3217 $as_echo "$ac_try_echo") >&5
3218 (eval "$ac_compiler -V >&5") 2>&5
3219 ac_status=$?
3220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }
3222
3223 cat >conftest.$ac_ext <<_ACEOF
3224 /* confdefs.h. */
3225 _ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3229
3230 int
3231 main ()
3232 {
3233
3234 ;
3235 return 0;
3236 }
3237 _ACEOF
3238 ac_clean_files_save=$ac_clean_files
3239 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3240 # Try to create an executable without -o first, disregard a.out.
3241 # It will help us diagnose broken compilers, and finding out an intuition
3242 # of exeext.
3243 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3244 $as_echo_n "checking for C compiler default output file name... " >&6; }
3245 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3246
3247 # The possible output files:
3248 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3249
3250 ac_rmfiles=
3251 for ac_file in $ac_files
3252 do
3253 case $ac_file in
3254 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3255 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3256 esac
3257 done
3258 rm -f $ac_rmfiles
3259
3260 if { (ac_try="$ac_link_default"
3261 case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264 esac
3265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3266 $as_echo "$ac_try_echo") >&5
3267 (eval "$ac_link_default") 2>&5
3268 ac_status=$?
3269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; then
3271 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3272 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3273 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3274 # so that the user can short-circuit this test for compilers unknown to
3275 # Autoconf.
3276 for ac_file in $ac_files ''
3277 do
3278 test -f "$ac_file" || continue
3279 case $ac_file in
3280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3281 ;;
3282 [ab].out )
3283 # We found the default executable, but exeext='' is most
3284 # certainly right.
3285 break;;
3286 *.* )
3287 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3288 then :; else
3289 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3290 fi
3291 # We set ac_cv_exeext here because the later test for it is not
3292 # safe: cross compilers may not add the suffix if given an `-o'
3293 # argument, so we may need to know it at that point already.
3294 # Even if this section looks crufty: it has the advantage of
3295 # actually working.
3296 break;;
3297 * )
3298 break;;
3299 esac
3300 done
3301 test "$ac_cv_exeext" = no && ac_cv_exeext=
3302
3303 else
3304 ac_file=''
3305 fi
3306
3307 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3308 $as_echo "$ac_file" >&6; }
3309 if test -z "$ac_file"; then
3310 $as_echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3312
3313 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3315 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3316 See \`config.log' for more details." >&5
3317 $as_echo "$as_me: error: C compiler cannot create executables
3318 See \`config.log' for more details." >&2;}
3319 { (exit 77); exit 77; }; }; }
3320 fi
3321
3322 ac_exeext=$ac_cv_exeext
3323
3324 # Check that the compiler produces executables we can run. If not, either
3325 # the compiler is broken, or we cross compile.
3326 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3327 $as_echo_n "checking whether the C compiler works... " >&6; }
3328 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3329 # If not cross compiling, check that we can run a simple program.
3330 if test "$cross_compiling" != yes; then
3331 if { ac_try='./$ac_file'
3332 { (case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335 esac
3336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3337 $as_echo "$ac_try_echo") >&5
3338 (eval "$ac_try") 2>&5
3339 ac_status=$?
3340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; }; then
3342 cross_compiling=no
3343 else
3344 if test "$cross_compiling" = maybe; then
3345 cross_compiling=yes
3346 else
3347 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3350 If you meant to cross compile, use \`--host'.
3351 See \`config.log' for more details." >&5
3352 $as_echo "$as_me: error: cannot run C compiled programs.
3353 If you meant to cross compile, use \`--host'.
3354 See \`config.log' for more details." >&2;}
3355 { (exit 1); exit 1; }; }; }
3356 fi
3357 fi
3358 fi
3359 { $as_echo "$as_me:$LINENO: result: yes" >&5
3360 $as_echo "yes" >&6; }
3361
3362 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3363 ac_clean_files=$ac_clean_files_save
3364 # Check that the compiler produces executables we can run. If not, either
3365 # the compiler is broken, or we cross compile.
3366 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3367 $as_echo_n "checking whether we are cross compiling... " >&6; }
3368 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3369 $as_echo "$cross_compiling" >&6; }
3370
3371 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3372 $as_echo_n "checking for suffix of executables... " >&6; }
3373 if { (ac_try="$ac_link"
3374 case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377 esac
3378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3379 $as_echo "$ac_try_echo") >&5
3380 (eval "$ac_link") 2>&5
3381 ac_status=$?
3382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; then
3384 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3385 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3386 # work properly (i.e., refer to `conftest.exe'), while it won't with
3387 # `rm'.
3388 for ac_file in conftest.exe conftest conftest.*; do
3389 test -f "$ac_file" || continue
3390 case $ac_file in
3391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3392 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3393 break;;
3394 * ) break;;
3395 esac
3396 done
3397 else
3398 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3401 See \`config.log' for more details." >&5
3402 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3403 See \`config.log' for more details." >&2;}
3404 { (exit 1); exit 1; }; }; }
3405 fi
3406
3407 rm -f conftest$ac_cv_exeext
3408 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3409 $as_echo "$ac_cv_exeext" >&6; }
3410
3411 rm -f conftest.$ac_ext
3412 EXEEXT=$ac_cv_exeext
3413 ac_exeext=$EXEEXT
3414 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3415 $as_echo_n "checking for suffix of object files... " >&6; }
3416 if test "${ac_cv_objext+set}" = set; then
3417 $as_echo_n "(cached) " >&6
3418 else
3419 cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h. */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3425
3426 int
3427 main ()
3428 {
3429
3430 ;
3431 return 0;
3432 }
3433 _ACEOF
3434 rm -f conftest.o conftest.obj
3435 if { (ac_try="$ac_compile"
3436 case "(($ac_try" in
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3439 esac
3440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3441 $as_echo "$ac_try_echo") >&5
3442 (eval "$ac_compile") 2>&5
3443 ac_status=$?
3444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; then
3446 for ac_file in conftest.o conftest.obj conftest.*; do
3447 test -f "$ac_file" || continue;
3448 case $ac_file in
3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3450 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3451 break;;
3452 esac
3453 done
3454 else
3455 $as_echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3457
3458 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3460 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3461 See \`config.log' for more details." >&5
3462 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3463 See \`config.log' for more details." >&2;}
3464 { (exit 1); exit 1; }; }; }
3465 fi
3466
3467 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3468 fi
3469 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3470 $as_echo "$ac_cv_objext" >&6; }
3471 OBJEXT=$ac_cv_objext
3472 ac_objext=$OBJEXT
3473 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3474 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3475 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3476 $as_echo_n "(cached) " >&6
3477 else
3478 cat >conftest.$ac_ext <<_ACEOF
3479 /* confdefs.h. */
3480 _ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3484
3485 int
3486 main ()
3487 {
3488 #ifndef __GNUC__
3489 choke me
3490 #endif
3491
3492 ;
3493 return 0;
3494 }
3495 _ACEOF
3496 rm -f conftest.$ac_objext
3497 if { (ac_try="$ac_compile"
3498 case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501 esac
3502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3503 $as_echo "$ac_try_echo") >&5
3504 (eval "$ac_compile") 2>conftest.er1
3505 ac_status=$?
3506 grep -v '^ *+' conftest.er1 >conftest.err
3507 rm -f conftest.er1
3508 cat conftest.err >&5
3509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } && {
3511 test -z "$ac_c_werror_flag" ||
3512 test ! -s conftest.err
3513 } && test -s conftest.$ac_objext; then
3514 ac_compiler_gnu=yes
3515 else
3516 $as_echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3518
3519 ac_compiler_gnu=no
3520 fi
3521
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3524
3525 fi
3526 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3527 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3528 if test $ac_compiler_gnu = yes; then
3529 GCC=yes
3530 else
3531 GCC=
3532 fi
3533 ac_test_CFLAGS=${CFLAGS+set}
3534 ac_save_CFLAGS=$CFLAGS
3535 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3536 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3537 if test "${ac_cv_prog_cc_g+set}" = set; then
3538 $as_echo_n "(cached) " >&6
3539 else
3540 ac_save_c_werror_flag=$ac_c_werror_flag
3541 ac_c_werror_flag=yes
3542 ac_cv_prog_cc_g=no
3543 CFLAGS="-g"
3544 cat >conftest.$ac_ext <<_ACEOF
3545 /* confdefs.h. */
3546 _ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3550
3551 int
3552 main ()
3553 {
3554
3555 ;
3556 return 0;
3557 }
3558 _ACEOF
3559 rm -f conftest.$ac_objext
3560 if { (ac_try="$ac_compile"
3561 case "(($ac_try" in
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3564 esac
3565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3566 $as_echo "$ac_try_echo") >&5
3567 (eval "$ac_compile") 2>conftest.er1
3568 ac_status=$?
3569 grep -v '^ *+' conftest.er1 >conftest.err
3570 rm -f conftest.er1
3571 cat conftest.err >&5
3572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } && {
3574 test -z "$ac_c_werror_flag" ||
3575 test ! -s conftest.err
3576 } && test -s conftest.$ac_objext; then
3577 ac_cv_prog_cc_g=yes
3578 else
3579 $as_echo "$as_me: failed program was:" >&5
3580 sed 's/^/| /' conftest.$ac_ext >&5
3581
3582 CFLAGS=""
3583 cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h. */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3589
3590 int
3591 main ()
3592 {
3593
3594 ;
3595 return 0;
3596 }
3597 _ACEOF
3598 rm -f conftest.$ac_objext
3599 if { (ac_try="$ac_compile"
3600 case "(($ac_try" in
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3603 esac
3604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3605 $as_echo "$ac_try_echo") >&5
3606 (eval "$ac_compile") 2>conftest.er1
3607 ac_status=$?
3608 grep -v '^ *+' conftest.er1 >conftest.err
3609 rm -f conftest.er1
3610 cat conftest.err >&5
3611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } && {
3613 test -z "$ac_c_werror_flag" ||
3614 test ! -s conftest.err
3615 } && test -s conftest.$ac_objext; then
3616 :
3617 else
3618 $as_echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3620
3621 ac_c_werror_flag=$ac_save_c_werror_flag
3622 CFLAGS="-g"
3623 cat >conftest.$ac_ext <<_ACEOF
3624 /* confdefs.h. */
3625 _ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3629
3630 int
3631 main ()
3632 {
3633
3634 ;
3635 return 0;
3636 }
3637 _ACEOF
3638 rm -f conftest.$ac_objext
3639 if { (ac_try="$ac_compile"
3640 case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645 $as_echo "$ac_try_echo") >&5
3646 (eval "$ac_compile") 2>conftest.er1
3647 ac_status=$?
3648 grep -v '^ *+' conftest.er1 >conftest.err
3649 rm -f conftest.er1
3650 cat conftest.err >&5
3651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } && {
3653 test -z "$ac_c_werror_flag" ||
3654 test ! -s conftest.err
3655 } && test -s conftest.$ac_objext; then
3656 ac_cv_prog_cc_g=yes
3657 else
3658 $as_echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3660
3661
3662 fi
3663
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 fi
3666
3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668 fi
3669
3670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671 ac_c_werror_flag=$ac_save_c_werror_flag
3672 fi
3673 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3674 $as_echo "$ac_cv_prog_cc_g" >&6; }
3675 if test "$ac_test_CFLAGS" = set; then
3676 CFLAGS=$ac_save_CFLAGS
3677 elif test $ac_cv_prog_cc_g = yes; then
3678 if test "$GCC" = yes; then
3679 CFLAGS="-g -O2"
3680 else
3681 CFLAGS="-g"
3682 fi
3683 else
3684 if test "$GCC" = yes; then
3685 CFLAGS="-O2"
3686 else
3687 CFLAGS=
3688 fi
3689 fi
3690 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3691 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3692 if test "${ac_cv_prog_cc_c89+set}" = set; then
3693 $as_echo_n "(cached) " >&6
3694 else
3695 ac_cv_prog_cc_c89=no
3696 ac_save_CC=$CC
3697 cat >conftest.$ac_ext <<_ACEOF
3698 /* confdefs.h. */
3699 _ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3703 #include <stdarg.h>
3704 #include <stdio.h>
3705 #include <sys/types.h>
3706 #include <sys/stat.h>
3707 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3708 struct buf { int x; };
3709 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3710 static char *e (p, i)
3711 char **p;
3712 int i;
3713 {
3714 return p[i];
3715 }
3716 static char *f (char * (*g) (char **, int), char **p, ...)
3717 {
3718 char *s;
3719 va_list v;
3720 va_start (v,p);
3721 s = g (p, va_arg (v,int));
3722 va_end (v);
3723 return s;
3724 }
3725
3726 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3727 function prototypes and stuff, but not '\xHH' hex character constants.
3728 These don't provoke an error unfortunately, instead are silently treated
3729 as 'x'. The following induces an error, until -std is added to get
3730 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3731 array size at least. It's necessary to write '\x00'==0 to get something
3732 that's true only with -std. */
3733 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3734
3735 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3736 inside strings and character constants. */
3737 #define FOO(x) 'x'
3738 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3739
3740 int test (int i, double x);
3741 struct s1 {int (*f) (int a);};
3742 struct s2 {int (*f) (double a);};
3743 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3744 int argc;
3745 char **argv;
3746 int
3747 main ()
3748 {
3749 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3750 ;
3751 return 0;
3752 }
3753 _ACEOF
3754 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3755 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3756 do
3757 CC="$ac_save_CC $ac_arg"
3758 rm -f conftest.$ac_objext
3759 if { (ac_try="$ac_compile"
3760 case "(($ac_try" in
3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3763 esac
3764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3765 $as_echo "$ac_try_echo") >&5
3766 (eval "$ac_compile") 2>conftest.er1
3767 ac_status=$?
3768 grep -v '^ *+' conftest.er1 >conftest.err
3769 rm -f conftest.er1
3770 cat conftest.err >&5
3771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } && {
3773 test -z "$ac_c_werror_flag" ||
3774 test ! -s conftest.err
3775 } && test -s conftest.$ac_objext; then
3776 ac_cv_prog_cc_c89=$ac_arg
3777 else
3778 $as_echo "$as_me: failed program was:" >&5
3779 sed 's/^/| /' conftest.$ac_ext >&5
3780
3781
3782 fi
3783
3784 rm -f core conftest.err conftest.$ac_objext
3785 test "x$ac_cv_prog_cc_c89" != "xno" && break
3786 done
3787 rm -f conftest.$ac_ext
3788 CC=$ac_save_CC
3789
3790 fi
3791 # AC_CACHE_VAL
3792 case "x$ac_cv_prog_cc_c89" in
3793 x)
3794 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3795 $as_echo "none needed" >&6; } ;;
3796 xno)
3797 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3798 $as_echo "unsupported" >&6; } ;;
3799 *)
3800 CC="$CC $ac_cv_prog_cc_c89"
3801 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3802 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3803 esac
3804
3805
3806 ac_ext=c
3807 ac_cpp='$CPP $CPPFLAGS'
3808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3811
3812 depcc="$CC" am_compiler_list=
3813
3814 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3815 $as_echo_n "checking dependency style of $depcc... " >&6; }
3816 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3817 $as_echo_n "(cached) " >&6
3818 else
3819 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3820 # We make a subdir and do the tests there. Otherwise we can end up
3821 # making bogus files that we don't know about and never remove. For
3822 # instance it was reported that on HP-UX the gcc test will end up
3823 # making a dummy file named `D' -- because `-MD' means `put the output
3824 # in D'.
3825 mkdir conftest.dir
3826 # Copy depcomp to subdir because otherwise we won't find it if we're
3827 # using a relative directory.
3828 cp "$am_depcomp" conftest.dir
3829 cd conftest.dir
3830 # We will build objects and dependencies in a subdirectory because
3831 # it helps to detect inapplicable dependency modes. For instance
3832 # both Tru64's cc and ICC support -MD to output dependencies as a
3833 # side effect of compilation, but ICC will put the dependencies in
3834 # the current directory while Tru64 will put them in the object
3835 # directory.
3836 mkdir sub
3837
3838 am_cv_CC_dependencies_compiler_type=none
3839 if test "$am_compiler_list" = ""; then
3840 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3841 fi
3842 am__universal=false
3843 case " $depcc " in #(
3844 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3845 esac
3846
3847 for depmode in $am_compiler_list; do
3848 # Setup a source with many dependencies, because some compilers
3849 # like to wrap large dependency lists on column 80 (with \), and
3850 # we should not choose a depcomp mode which is confused by this.
3851 #
3852 # We need to recreate these files for each test, as the compiler may
3853 # overwrite some of them when testing with obscure command lines.
3854 # This happens at least with the AIX C compiler.
3855 : > sub/conftest.c
3856 for i in 1 2 3 4 5 6; do
3857 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3858 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3859 # Solaris 8's {/usr,}/bin/sh.
3860 touch sub/conftst$i.h
3861 done
3862 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3863
3864 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3865 # mode. It turns out that the SunPro C++ compiler does not properly
3866 # handle `-M -o', and we need to detect this. Also, some Intel
3867 # versions had trouble with output in subdirs
3868 am__obj=sub/conftest.${OBJEXT-o}
3869 am__minus_obj="-o $am__obj"
3870 case $depmode in
3871 gcc)
3872 # This depmode causes a compiler race in universal mode.
3873 test "$am__universal" = false || continue
3874 ;;
3875 nosideeffect)
3876 # after this tag, mechanisms are not by side-effect, so they'll
3877 # only be used when explicitly requested
3878 if test "x$enable_dependency_tracking" = xyes; then
3879 continue
3880 else
3881 break
3882 fi
3883 ;;
3884 msvisualcpp | msvcmsys)
3885 # This compiler won't grok `-c -o', but also, the minuso test has
3886 # not run yet. These depmodes are late enough in the game, and
3887 # so weak that their functioning should not be impacted.
3888 am__obj=conftest.${OBJEXT-o}
3889 am__minus_obj=
3890 ;;
3891 none) break ;;
3892 esac
3893 if depmode=$depmode \
3894 source=sub/conftest.c object=$am__obj \
3895 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3896 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3897 >/dev/null 2>conftest.err &&
3898 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3899 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3900 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3901 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3902 # icc doesn't choke on unknown options, it will just issue warnings
3903 # or remarks (even with -Werror). So we grep stderr for any message
3904 # that says an option was ignored or not supported.
3905 # When given -MP, icc 7.0 and 7.1 complain thusly:
3906 # icc: Command line warning: ignoring option '-M'; no argument required
3907 # The diagnosis changed in icc 8.0:
3908 # icc: Command line remark: option '-MP' not supported
3909 if (grep 'ignoring option' conftest.err ||
3910 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3911 am_cv_CC_dependencies_compiler_type=$depmode
3912 break
3913 fi
3914 fi
3915 done
3916
3917 cd ..
3918 rm -rf conftest.dir
3919 else
3920 am_cv_CC_dependencies_compiler_type=none
3921 fi
3922
3923 fi
3924 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3925 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3926 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3927
3928 if
3929 test "x$enable_dependency_tracking" != xno \
3930 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3931 am__fastdepCC_TRUE=
3932 am__fastdepCC_FALSE='#'
3933 else
3934 am__fastdepCC_TRUE='#'
3935 am__fastdepCC_FALSE=
3936 fi
3937
3938
3939 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3940 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3941 if test "${lt_cv_path_SED+set}" = set; then
3942 $as_echo_n "(cached) " >&6
3943 else
3944 # Loop through the user's path and test for sed and gsed.
3945 # Then use that list of sed's as ones to test for truncation.
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3948 do
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for lt_ac_prog in sed gsed; do
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3954 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3955 fi
3956 done
3957 done
3958 done
3959 IFS=$as_save_IFS
3960 lt_ac_max=0
3961 lt_ac_count=0
3962 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3963 # along with /bin/sed that truncates output.
3964 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3965 test ! -f $lt_ac_sed && continue
3966 cat /dev/null > conftest.in
3967 lt_ac_count=0
3968 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3969 # Check for GNU sed and select it if it is found.
3970 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3971 lt_cv_path_SED=$lt_ac_sed
3972 break
3973 fi
3974 while true; do
3975 cat conftest.in conftest.in >conftest.tmp
3976 mv conftest.tmp conftest.in
3977 cp conftest.in conftest.nl
3978 echo >>conftest.nl
3979 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3980 cmp -s conftest.out conftest.nl || break
3981 # 10000 chars as input seems more than enough
3982 test $lt_ac_count -gt 10 && break
3983 lt_ac_count=`expr $lt_ac_count + 1`
3984 if test $lt_ac_count -gt $lt_ac_max; then
3985 lt_ac_max=$lt_ac_count
3986 lt_cv_path_SED=$lt_ac_sed
3987 fi
3988 done
3989 done
3990
3991 fi
3992
3993 SED=$lt_cv_path_SED
3994
3995 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3996 $as_echo "$SED" >&6; }
3997
3998 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3999 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4000 if test "${ac_cv_path_GREP+set}" = set; then
4001 $as_echo_n "(cached) " >&6
4002 else
4003 if test -z "$GREP"; then
4004 ac_path_GREP_found=false
4005 # Loop through the user's path and test for each of PROGNAME-LIST
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4008 do
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
4011 for ac_prog in grep ggrep; do
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4014 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4015 # Check for GNU ac_path_GREP and select it if it is found.
4016 # Check for GNU $ac_path_GREP
4017 case `"$ac_path_GREP" --version 2>&1` in
4018 *GNU*)
4019 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4020 *)
4021 ac_count=0
4022 $as_echo_n 0123456789 >"conftest.in"
4023 while :
4024 do
4025 cat "conftest.in" "conftest.in" >"conftest.tmp"
4026 mv "conftest.tmp" "conftest.in"
4027 cp "conftest.in" "conftest.nl"
4028 $as_echo 'GREP' >> "conftest.nl"
4029 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4031 ac_count=`expr $ac_count + 1`
4032 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4033 # Best one so far, save it but keep looking for a better one
4034 ac_cv_path_GREP="$ac_path_GREP"
4035 ac_path_GREP_max=$ac_count
4036 fi
4037 # 10*(2^10) chars as input seems more than enough
4038 test $ac_count -gt 10 && break
4039 done
4040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4041 esac
4042
4043 $ac_path_GREP_found && break 3
4044 done
4045 done
4046 done
4047 IFS=$as_save_IFS
4048 if test -z "$ac_cv_path_GREP"; then
4049 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4050 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4051 { (exit 1); exit 1; }; }
4052 fi
4053 else
4054 ac_cv_path_GREP=$GREP
4055 fi
4056
4057 fi
4058 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4059 $as_echo "$ac_cv_path_GREP" >&6; }
4060 GREP="$ac_cv_path_GREP"
4061
4062
4063 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4064 $as_echo_n "checking for egrep... " >&6; }
4065 if test "${ac_cv_path_EGREP+set}" = set; then
4066 $as_echo_n "(cached) " >&6
4067 else
4068 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4069 then ac_cv_path_EGREP="$GREP -E"
4070 else
4071 if test -z "$EGREP"; then
4072 ac_path_EGREP_found=false
4073 # Loop through the user's path and test for each of PROGNAME-LIST
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4076 do
4077 IFS=$as_save_IFS
4078 test -z "$as_dir" && as_dir=.
4079 for ac_prog in egrep; do
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4082 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4083 # Check for GNU ac_path_EGREP and select it if it is found.
4084 # Check for GNU $ac_path_EGREP
4085 case `"$ac_path_EGREP" --version 2>&1` in
4086 *GNU*)
4087 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4088 *)
4089 ac_count=0
4090 $as_echo_n 0123456789 >"conftest.in"
4091 while :
4092 do
4093 cat "conftest.in" "conftest.in" >"conftest.tmp"
4094 mv "conftest.tmp" "conftest.in"
4095 cp "conftest.in" "conftest.nl"
4096 $as_echo 'EGREP' >> "conftest.nl"
4097 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4098 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4099 ac_count=`expr $ac_count + 1`
4100 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4101 # Best one so far, save it but keep looking for a better one
4102 ac_cv_path_EGREP="$ac_path_EGREP"
4103 ac_path_EGREP_max=$ac_count
4104 fi
4105 # 10*(2^10) chars as input seems more than enough
4106 test $ac_count -gt 10 && break
4107 done
4108 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4109 esac
4110
4111 $ac_path_EGREP_found && break 3
4112 done
4113 done
4114 done
4115 IFS=$as_save_IFS
4116 if test -z "$ac_cv_path_EGREP"; then
4117 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4118 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4119 { (exit 1); exit 1; }; }
4120 fi
4121 else
4122 ac_cv_path_EGREP=$EGREP
4123 fi
4124
4125 fi
4126 fi
4127 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4128 $as_echo "$ac_cv_path_EGREP" >&6; }
4129 EGREP="$ac_cv_path_EGREP"
4130
4131
4132
4133 # Check whether --with-gnu-ld was given.
4134 if test "${with_gnu_ld+set}" = set; then
4135 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4136 else
4137 with_gnu_ld=no
4138 fi
4139
4140 ac_prog=ld
4141 if test "$GCC" = yes; then
4142 # Check if gcc -print-prog-name=ld gives a path.
4143 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4144 $as_echo_n "checking for ld used by $CC... " >&6; }
4145 case $host in
4146 *-*-mingw*)
4147 # gcc leaves a trailing carriage return which upsets mingw
4148 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4149 *)
4150 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4151 esac
4152 case $ac_prog in
4153 # Accept absolute paths.
4154 [\\/]* | ?:[\\/]*)
4155 re_direlt='/[^/][^/]*/\.\./'
4156 # Canonicalize the pathname of ld
4157 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4158 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4159 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4160 done
4161 test -z "$LD" && LD="$ac_prog"
4162 ;;
4163 "")
4164 # If it fails, then pretend we aren't using GCC.
4165 ac_prog=ld
4166 ;;
4167 *)
4168 # If it is relative, then search for the first ld in PATH.
4169 with_gnu_ld=unknown
4170 ;;
4171 esac
4172 elif test "$with_gnu_ld" = yes; then
4173 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4174 $as_echo_n "checking for GNU ld... " >&6; }
4175 else
4176 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4177 $as_echo_n "checking for non-GNU ld... " >&6; }
4178 fi
4179 if test "${lt_cv_path_LD+set}" = set; then
4180 $as_echo_n "(cached) " >&6
4181 else
4182 if test -z "$LD"; then
4183 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4184 for ac_dir in $PATH; do
4185 IFS="$lt_save_ifs"
4186 test -z "$ac_dir" && ac_dir=.
4187 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4188 lt_cv_path_LD="$ac_dir/$ac_prog"
4189 # Check to see if the program is GNU ld. I'd rather use --version,
4190 # but apparently some variants of GNU ld only accept -v.
4191 # Break only if it was the GNU/non-GNU ld that we prefer.
4192 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4193 *GNU* | *'with BFD'*)
4194 test "$with_gnu_ld" != no && break
4195 ;;
4196 *)
4197 test "$with_gnu_ld" != yes && break
4198 ;;
4199 esac
4200 fi
4201 done
4202 IFS="$lt_save_ifs"
4203 else
4204 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4205 fi
4206 fi
4207
4208 LD="$lt_cv_path_LD"
4209 if test -n "$LD"; then
4210 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4211 $as_echo "$LD" >&6; }
4212 else
4213 { $as_echo "$as_me:$LINENO: result: no" >&5
4214 $as_echo "no" >&6; }
4215 fi
4216 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4217 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4218 { (exit 1); exit 1; }; }
4219 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4220 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4221 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4222 $as_echo_n "(cached) " >&6
4223 else
4224 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4225 case `$LD -v 2>&1 </dev/null` in
4226 *GNU* | *'with BFD'*)
4227 lt_cv_prog_gnu_ld=yes
4228 ;;
4229 *)
4230 lt_cv_prog_gnu_ld=no
4231 ;;
4232 esac
4233 fi
4234 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4235 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4236 with_gnu_ld=$lt_cv_prog_gnu_ld
4237
4238
4239 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4240 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4241 if test "${lt_cv_ld_reload_flag+set}" = set; then
4242 $as_echo_n "(cached) " >&6
4243 else
4244 lt_cv_ld_reload_flag='-r'
4245 fi
4246 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4247 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4248 reload_flag=$lt_cv_ld_reload_flag
4249 case $reload_flag in
4250 "" | " "*) ;;
4251 *) reload_flag=" $reload_flag" ;;
4252 esac
4253 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4254 case $host_os in
4255 darwin*)
4256 if test "$GCC" = yes; then
4257 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4258 else
4259 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4260 fi
4261 ;;
4262 esac
4263
4264 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4265 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4266 if test "${lt_cv_path_NM+set}" = set; then
4267 $as_echo_n "(cached) " >&6
4268 else
4269 if test -n "$NM"; then
4270 # Let the user override the test.
4271 lt_cv_path_NM="$NM"
4272 else
4273 lt_nm_to_check="${ac_tool_prefix}nm"
4274 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4275 lt_nm_to_check="$lt_nm_to_check nm"
4276 fi
4277 for lt_tmp_nm in $lt_nm_to_check; do
4278 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4279 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4280 IFS="$lt_save_ifs"
4281 test -z "$ac_dir" && ac_dir=.
4282 tmp_nm="$ac_dir/$lt_tmp_nm"
4283 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4284 # Check to see if the nm accepts a BSD-compat flag.
4285 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4286 # nm: unknown option "B" ignored
4287 # Tru64's nm complains that /dev/null is an invalid object file
4288 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4289 */dev/null* | *'Invalid file or object type'*)
4290 lt_cv_path_NM="$tmp_nm -B"
4291 break
4292 ;;
4293 *)
4294 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4295 */dev/null*)
4296 lt_cv_path_NM="$tmp_nm -p"
4297 break
4298 ;;
4299 *)
4300 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4301 continue # so that we can try to find one that supports BSD flags
4302 ;;
4303 esac
4304 ;;
4305 esac
4306 fi
4307 done
4308 IFS="$lt_save_ifs"
4309 done
4310 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4311 fi
4312 fi
4313 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4314 $as_echo "$lt_cv_path_NM" >&6; }
4315 NM="$lt_cv_path_NM"
4316
4317 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4318 $as_echo_n "checking whether ln -s works... " >&6; }
4319 LN_S=$as_ln_s
4320 if test "$LN_S" = "ln -s"; then
4321 { $as_echo "$as_me:$LINENO: result: yes" >&5
4322 $as_echo "yes" >&6; }
4323 else
4324 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4325 $as_echo "no, using $LN_S" >&6; }
4326 fi
4327
4328 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4329 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4330 if test "${lt_cv_deplibs_check_method+set}" = set; then
4331 $as_echo_n "(cached) " >&6
4332 else
4333 lt_cv_file_magic_cmd='$MAGIC_CMD'
4334 lt_cv_file_magic_test_file=
4335 lt_cv_deplibs_check_method='unknown'
4336 # Need to set the preceding variable on all platforms that support
4337 # interlibrary dependencies.
4338 # 'none' -- dependencies not supported.
4339 # `unknown' -- same as none, but documents that we really don't know.
4340 # 'pass_all' -- all dependencies passed with no checks.
4341 # 'test_compile' -- check by making test program.
4342 # 'file_magic [[regex]]' -- check by looking for files in library path
4343 # which responds to the $file_magic_cmd with a given extended regex.
4344 # If you have `file' or equivalent on your system and you're not sure
4345 # whether `pass_all' will *always* work, you probably want this one.
4346
4347 case $host_os in
4348 aix[4-9]*)
4349 lt_cv_deplibs_check_method=pass_all
4350 ;;
4351
4352 beos*)
4353 lt_cv_deplibs_check_method=pass_all
4354 ;;
4355
4356 bsdi[45]*)
4357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4358 lt_cv_file_magic_cmd='/usr/bin/file -L'
4359 lt_cv_file_magic_test_file=/shlib/libc.so
4360 ;;
4361
4362 cygwin*)
4363 # func_win32_libid is a shell function defined in ltmain.sh
4364 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4365 lt_cv_file_magic_cmd='func_win32_libid'
4366 ;;
4367
4368 mingw* | pw32*)
4369 # Base MSYS/MinGW do not provide the 'file' command needed by
4370 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4371 # unless we find 'file', for example because we are cross-compiling.
4372 if ( file / ) >/dev/null 2>&1; then
4373 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4374 lt_cv_file_magic_cmd='func_win32_libid'
4375 else
4376 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4377 lt_cv_file_magic_cmd='$OBJDUMP -f'
4378 fi
4379 ;;
4380
4381 darwin* | rhapsody*)
4382 lt_cv_deplibs_check_method=pass_all
4383 ;;
4384
4385 freebsd* | dragonfly*)
4386 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4387 case $host_cpu in
4388 i*86 )
4389 # Not sure whether the presence of OpenBSD here was a mistake.
4390 # Let's accept both of them until this is cleared up.
4391 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4392 lt_cv_file_magic_cmd=/usr/bin/file
4393 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4394 ;;
4395 esac
4396 else
4397 lt_cv_deplibs_check_method=pass_all
4398 fi
4399 ;;
4400
4401 gnu*)
4402 lt_cv_deplibs_check_method=pass_all
4403 ;;
4404
4405 hpux10.20* | hpux11*)
4406 lt_cv_file_magic_cmd=/usr/bin/file
4407 case $host_cpu in
4408 ia64*)
4409 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4410 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4411 ;;
4412 hppa*64*)
4413 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]'
4414 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4415 ;;
4416 *)
4417 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4418 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4419 ;;
4420 esac
4421 ;;
4422
4423 interix[3-9]*)
4424 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4425 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4426 ;;
4427
4428 irix5* | irix6* | nonstopux*)
4429 case $LD in
4430 *-32|*"-32 ") libmagic=32-bit;;
4431 *-n32|*"-n32 ") libmagic=N32;;
4432 *-64|*"-64 ") libmagic=64-bit;;
4433 *) libmagic=never-match;;
4434 esac
4435 lt_cv_deplibs_check_method=pass_all
4436 ;;
4437
4438 # This must be Linux ELF.
4439 linux* | k*bsd*-gnu)
4440 lt_cv_deplibs_check_method=pass_all
4441 ;;
4442
4443 netbsd*)
4444 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4445 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4446 else
4447 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4448 fi
4449 ;;
4450
4451 newos6*)
4452 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4453 lt_cv_file_magic_cmd=/usr/bin/file
4454 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4455 ;;
4456
4457 nto-qnx*)
4458 lt_cv_deplibs_check_method=unknown
4459 ;;
4460
4461 openbsd*)
4462 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4463 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4464 else
4465 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4466 fi
4467 ;;
4468
4469 osf3* | osf4* | osf5*)
4470 lt_cv_deplibs_check_method=pass_all
4471 ;;
4472
4473 rdos*)
4474 lt_cv_deplibs_check_method=pass_all
4475 ;;
4476
4477 solaris*)
4478 lt_cv_deplibs_check_method=pass_all
4479 ;;
4480
4481 sysv4 | sysv4.3*)
4482 case $host_vendor in
4483 motorola)
4484 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]'
4485 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4486 ;;
4487 ncr)
4488 lt_cv_deplibs_check_method=pass_all
4489 ;;
4490 sequent)
4491 lt_cv_file_magic_cmd='/bin/file'
4492 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4493 ;;
4494 sni)
4495 lt_cv_file_magic_cmd='/bin/file'
4496 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4497 lt_cv_file_magic_test_file=/lib/libc.so
4498 ;;
4499 siemens)
4500 lt_cv_deplibs_check_method=pass_all
4501 ;;
4502 pc)
4503 lt_cv_deplibs_check_method=pass_all
4504 ;;
4505 esac
4506 ;;
4507
4508 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4509 lt_cv_deplibs_check_method=pass_all
4510 ;;
4511 esac
4512
4513 fi
4514 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4515 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4516 file_magic_cmd=$lt_cv_file_magic_cmd
4517 deplibs_check_method=$lt_cv_deplibs_check_method
4518 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4519
4520
4521
4522
4523 # If no C compiler was specified, use CC.
4524 LTCC=${LTCC-"$CC"}
4525
4526 # If no C compiler flags were specified, use CFLAGS.
4527 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4528
4529 # Allow CC to be a program name with arguments.
4530 compiler=$CC
4531
4532
4533 # Check whether --enable-libtool-lock was given.
4534 if test "${enable_libtool_lock+set}" = set; then
4535 enableval=$enable_libtool_lock;
4536 fi
4537
4538 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4539
4540 # Some flags need to be propagated to the compiler or linker for good
4541 # libtool support.
4542 case $host in
4543 ia64-*-hpux*)
4544 # Find out which ABI we are using.
4545 echo 'int i;' > conftest.$ac_ext
4546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4547 (eval $ac_compile) 2>&5
4548 ac_status=$?
4549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; then
4551 case `/usr/bin/file conftest.$ac_objext` in
4552 *ELF-32*)
4553 HPUX_IA64_MODE="32"
4554 ;;
4555 *ELF-64*)
4556 HPUX_IA64_MODE="64"
4557 ;;
4558 esac
4559 fi
4560 rm -rf conftest*
4561 ;;
4562 *-*-irix6*)
4563 # Find out which ABI we are using.
4564 echo '#line 4564 "configure"' > conftest.$ac_ext
4565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4566 (eval $ac_compile) 2>&5
4567 ac_status=$?
4568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; then
4570 if test "$lt_cv_prog_gnu_ld" = yes; then
4571 case `/usr/bin/file conftest.$ac_objext` in
4572 *32-bit*)
4573 LD="${LD-ld} -melf32bsmip"
4574 ;;
4575 *N32*)
4576 LD="${LD-ld} -melf32bmipn32"
4577 ;;
4578 *64-bit*)
4579 LD="${LD-ld} -melf64bmip"
4580 ;;
4581 esac
4582 else
4583 case `/usr/bin/file conftest.$ac_objext` in
4584 *32-bit*)
4585 LD="${LD-ld} -32"
4586 ;;
4587 *N32*)
4588 LD="${LD-ld} -n32"
4589 ;;
4590 *64-bit*)
4591 LD="${LD-ld} -64"
4592 ;;
4593 esac
4594 fi
4595 fi
4596 rm -rf conftest*
4597 ;;
4598
4599 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4600 s390*-*linux*|sparc*-*linux*)
4601 # Find out which ABI we are using.
4602 echo 'int i;' > conftest.$ac_ext
4603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604 (eval $ac_compile) 2>&5
4605 ac_status=$?
4606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; then
4608 case `/usr/bin/file conftest.o` in
4609 *32-bit*)
4610 case $host in
4611 x86_64-*kfreebsd*-gnu)
4612 LD="${LD-ld} -m elf_i386_fbsd"
4613 ;;
4614 x86_64-*linux*)
4615 LD="${LD-ld} -m elf_i386"
4616 ;;
4617 ppc64-*linux*|powerpc64-*linux*)
4618 LD="${LD-ld} -m elf32ppclinux"
4619 ;;
4620 s390x-*linux*)
4621 LD="${LD-ld} -m elf_s390"
4622 ;;
4623 sparc64-*linux*)
4624 LD="${LD-ld} -m elf32_sparc"
4625 ;;
4626 esac
4627 ;;
4628 *64-bit*)
4629 case $host in
4630 x86_64-*kfreebsd*-gnu)
4631 LD="${LD-ld} -m elf_x86_64_fbsd"
4632 ;;
4633 x86_64-*linux*)
4634 LD="${LD-ld} -m elf_x86_64"
4635 ;;
4636 ppc*-*linux*|powerpc*-*linux*)
4637 LD="${LD-ld} -m elf64ppc"
4638 ;;
4639 s390*-*linux*)
4640 LD="${LD-ld} -m elf64_s390"
4641 ;;
4642 sparc*-*linux*)
4643 LD="${LD-ld} -m elf64_sparc"
4644 ;;
4645 esac
4646 ;;
4647 esac
4648 fi
4649 rm -rf conftest*
4650 ;;
4651
4652 *-*-sco3.2v5*)
4653 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4654 SAVE_CFLAGS="$CFLAGS"
4655 CFLAGS="$CFLAGS -belf"
4656 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4657 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4658 if test "${lt_cv_cc_needs_belf+set}" = set; then
4659 $as_echo_n "(cached) " >&6
4660 else
4661 ac_ext=c
4662 ac_cpp='$CPP $CPPFLAGS'
4663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4666
4667 cat >conftest.$ac_ext <<_ACEOF
4668 /* confdefs.h. */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4673
4674 int
4675 main ()
4676 {
4677
4678 ;
4679 return 0;
4680 }
4681 _ACEOF
4682 rm -f conftest.$ac_objext conftest$ac_exeext
4683 if { (ac_try="$ac_link"
4684 case "(($ac_try" in
4685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686 *) ac_try_echo=$ac_try;;
4687 esac
4688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4689 $as_echo "$ac_try_echo") >&5
4690 (eval "$ac_link") 2>conftest.er1
4691 ac_status=$?
4692 grep -v '^ *+' conftest.er1 >conftest.err
4693 rm -f conftest.er1
4694 cat conftest.err >&5
4695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } && {
4697 test -z "$ac_c_werror_flag" ||
4698 test ! -s conftest.err
4699 } && test -s conftest$ac_exeext && {
4700 test "$cross_compiling" = yes ||
4701 $as_test_x conftest$ac_exeext
4702 }; then
4703 lt_cv_cc_needs_belf=yes
4704 else
4705 $as_echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4707
4708 lt_cv_cc_needs_belf=no
4709 fi
4710
4711 rm -rf conftest.dSYM
4712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4713 conftest$ac_exeext conftest.$ac_ext
4714 ac_ext=c
4715 ac_cpp='$CPP $CPPFLAGS'
4716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4719
4720 fi
4721 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4722 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4723 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4724 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4725 CFLAGS="$SAVE_CFLAGS"
4726 fi
4727 ;;
4728 sparc*-*solaris*)
4729 # Find out which ABI we are using.
4730 echo 'int i;' > conftest.$ac_ext
4731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4732 (eval $ac_compile) 2>&5
4733 ac_status=$?
4734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; then
4736 case `/usr/bin/file conftest.o` in
4737 *64-bit*)
4738 case $lt_cv_prog_gnu_ld in
4739 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4740 *)
4741 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4742 LD="${LD-ld} -64"
4743 fi
4744 ;;
4745 esac
4746 ;;
4747 esac
4748 fi
4749 rm -rf conftest*
4750 ;;
4751
4752
4753 esac
4754
4755 need_locks="$enable_libtool_lock"
4756
4757
4758 ac_ext=c
4759 ac_cpp='$CPP $CPPFLAGS'
4760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4763 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4764 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4765 # On Suns, sometimes $CPP names a directory.
4766 if test -n "$CPP" && test -d "$CPP"; then
4767 CPP=
4768 fi
4769 if test -z "$CPP"; then
4770 if test "${ac_cv_prog_CPP+set}" = set; then
4771 $as_echo_n "(cached) " >&6
4772 else
4773 # Double quotes because CPP needs to be expanded
4774 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4775 do
4776 ac_preproc_ok=false
4777 for ac_c_preproc_warn_flag in '' yes
4778 do
4779 # Use a header file that comes with gcc, so configuring glibc
4780 # with a fresh cross-compiler works.
4781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4782 # <limits.h> exists even on freestanding compilers.
4783 # On the NeXT, cc -E runs the code through the compiler's parser,
4784 # not just through cpp. "Syntax error" is here to catch this case.
4785 cat >conftest.$ac_ext <<_ACEOF
4786 /* confdefs.h. */
4787 _ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4791 #ifdef __STDC__
4792 # include <limits.h>
4793 #else
4794 # include <assert.h>
4795 #endif
4796 Syntax error
4797 _ACEOF
4798 if { (ac_try="$ac_cpp conftest.$ac_ext"
4799 case "(($ac_try" in
4800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801 *) ac_try_echo=$ac_try;;
4802 esac
4803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4804 $as_echo "$ac_try_echo") >&5
4805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4806 ac_status=$?
4807 grep -v '^ *+' conftest.er1 >conftest.err
4808 rm -f conftest.er1
4809 cat conftest.err >&5
4810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } >/dev/null && {
4812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4813 test ! -s conftest.err
4814 }; then
4815 :
4816 else
4817 $as_echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4819
4820 # Broken: fails on valid input.
4821 continue
4822 fi
4823
4824 rm -f conftest.err conftest.$ac_ext
4825
4826 # OK, works on sane cases. Now check whether nonexistent headers
4827 # can be detected and how.
4828 cat >conftest.$ac_ext <<_ACEOF
4829 /* confdefs.h. */
4830 _ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4834 #include <ac_nonexistent.h>
4835 _ACEOF
4836 if { (ac_try="$ac_cpp conftest.$ac_ext"
4837 case "(($ac_try" in
4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839 *) ac_try_echo=$ac_try;;
4840 esac
4841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4842 $as_echo "$ac_try_echo") >&5
4843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4844 ac_status=$?
4845 grep -v '^ *+' conftest.er1 >conftest.err
4846 rm -f conftest.er1
4847 cat conftest.err >&5
4848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } >/dev/null && {
4850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4851 test ! -s conftest.err
4852 }; then
4853 # Broken: success on invalid input.
4854 continue
4855 else
4856 $as_echo "$as_me: failed program was:" >&5
4857 sed 's/^/| /' conftest.$ac_ext >&5
4858
4859 # Passes both tests.
4860 ac_preproc_ok=:
4861 break
4862 fi
4863
4864 rm -f conftest.err conftest.$ac_ext
4865
4866 done
4867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4868 rm -f conftest.err conftest.$ac_ext
4869 if $ac_preproc_ok; then
4870 break
4871 fi
4872
4873 done
4874 ac_cv_prog_CPP=$CPP
4875
4876 fi
4877 CPP=$ac_cv_prog_CPP
4878 else
4879 ac_cv_prog_CPP=$CPP
4880 fi
4881 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4882 $as_echo "$CPP" >&6; }
4883 ac_preproc_ok=false
4884 for ac_c_preproc_warn_flag in '' yes
4885 do
4886 # Use a header file that comes with gcc, so configuring glibc
4887 # with a fresh cross-compiler works.
4888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4889 # <limits.h> exists even on freestanding compilers.
4890 # On the NeXT, cc -E runs the code through the compiler's parser,
4891 # not just through cpp. "Syntax error" is here to catch this case.
4892 cat >conftest.$ac_ext <<_ACEOF
4893 /* confdefs.h. */
4894 _ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4898 #ifdef __STDC__
4899 # include <limits.h>
4900 #else
4901 # include <assert.h>
4902 #endif
4903 Syntax error
4904 _ACEOF
4905 if { (ac_try="$ac_cpp conftest.$ac_ext"
4906 case "(($ac_try" in
4907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908 *) ac_try_echo=$ac_try;;
4909 esac
4910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4911 $as_echo "$ac_try_echo") >&5
4912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4913 ac_status=$?
4914 grep -v '^ *+' conftest.er1 >conftest.err
4915 rm -f conftest.er1
4916 cat conftest.err >&5
4917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } >/dev/null && {
4919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4920 test ! -s conftest.err
4921 }; then
4922 :
4923 else
4924 $as_echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4926
4927 # Broken: fails on valid input.
4928 continue
4929 fi
4930
4931 rm -f conftest.err conftest.$ac_ext
4932
4933 # OK, works on sane cases. Now check whether nonexistent headers
4934 # can be detected and how.
4935 cat >conftest.$ac_ext <<_ACEOF
4936 /* confdefs.h. */
4937 _ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4941 #include <ac_nonexistent.h>
4942 _ACEOF
4943 if { (ac_try="$ac_cpp conftest.$ac_ext"
4944 case "(($ac_try" in
4945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946 *) ac_try_echo=$ac_try;;
4947 esac
4948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4949 $as_echo "$ac_try_echo") >&5
4950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4951 ac_status=$?
4952 grep -v '^ *+' conftest.er1 >conftest.err
4953 rm -f conftest.er1
4954 cat conftest.err >&5
4955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } >/dev/null && {
4957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4958 test ! -s conftest.err
4959 }; then
4960 # Broken: success on invalid input.
4961 continue
4962 else
4963 $as_echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4965
4966 # Passes both tests.
4967 ac_preproc_ok=:
4968 break
4969 fi
4970
4971 rm -f conftest.err conftest.$ac_ext
4972
4973 done
4974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4975 rm -f conftest.err conftest.$ac_ext
4976 if $ac_preproc_ok; then
4977 :
4978 else
4979 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4981 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4982 See \`config.log' for more details." >&5
4983 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4984 See \`config.log' for more details." >&2;}
4985 { (exit 1); exit 1; }; }; }
4986 fi
4987
4988 ac_ext=c
4989 ac_cpp='$CPP $CPPFLAGS'
4990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4993
4994
4995 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4996 $as_echo_n "checking for ANSI C header files... " >&6; }
4997 if test "${ac_cv_header_stdc+set}" = set; then
4998 $as_echo_n "(cached) " >&6
4999 else
5000 cat >conftest.$ac_ext <<_ACEOF
5001 /* confdefs.h. */
5002 _ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5006 #include <stdlib.h>
5007 #include <stdarg.h>
5008 #include <string.h>
5009 #include <float.h>
5010
5011 int
5012 main ()
5013 {
5014
5015 ;
5016 return 0;
5017 }
5018 _ACEOF
5019 rm -f conftest.$ac_objext
5020 if { (ac_try="$ac_compile"
5021 case "(($ac_try" in
5022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023 *) ac_try_echo=$ac_try;;
5024 esac
5025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5026 $as_echo "$ac_try_echo") >&5
5027 (eval "$ac_compile") 2>conftest.er1
5028 ac_status=$?
5029 grep -v '^ *+' conftest.er1 >conftest.err
5030 rm -f conftest.er1
5031 cat conftest.err >&5
5032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } && {
5034 test -z "$ac_c_werror_flag" ||
5035 test ! -s conftest.err
5036 } && test -s conftest.$ac_objext; then
5037 ac_cv_header_stdc=yes
5038 else
5039 $as_echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5041
5042 ac_cv_header_stdc=no
5043 fi
5044
5045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5046
5047 if test $ac_cv_header_stdc = yes; then
5048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5049 cat >conftest.$ac_ext <<_ACEOF
5050 /* confdefs.h. */
5051 _ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h. */
5055 #include <string.h>
5056
5057 _ACEOF
5058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5059 $EGREP "memchr" >/dev/null 2>&1; then
5060 :
5061 else
5062 ac_cv_header_stdc=no
5063 fi
5064 rm -f conftest*
5065
5066 fi
5067
5068 if test $ac_cv_header_stdc = yes; then
5069 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5070 cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h. */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 #include <stdlib.h>
5077
5078 _ACEOF
5079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5080 $EGREP "free" >/dev/null 2>&1; then
5081 :
5082 else
5083 ac_cv_header_stdc=no
5084 fi
5085 rm -f conftest*
5086
5087 fi
5088
5089 if test $ac_cv_header_stdc = yes; then
5090 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5091 if test "$cross_compiling" = yes; then
5092 :
5093 else
5094 cat >conftest.$ac_ext <<_ACEOF
5095 /* confdefs.h. */
5096 _ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h. */
5100 #include <ctype.h>
5101 #include <stdlib.h>
5102 #if ((' ' & 0x0FF) == 0x020)
5103 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5104 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5105 #else
5106 # define ISLOWER(c) \
5107 (('a' <= (c) && (c) <= 'i') \
5108 || ('j' <= (c) && (c) <= 'r') \
5109 || ('s' <= (c) && (c) <= 'z'))
5110 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5111 #endif
5112
5113 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5114 int
5115 main ()
5116 {
5117 int i;
5118 for (i = 0; i < 256; i++)
5119 if (XOR (islower (i), ISLOWER (i))
5120 || toupper (i) != TOUPPER (i))
5121 return 2;
5122 return 0;
5123 }
5124 _ACEOF
5125 rm -f conftest$ac_exeext
5126 if { (ac_try="$ac_link"
5127 case "(($ac_try" in
5128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5129 *) ac_try_echo=$ac_try;;
5130 esac
5131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5132 $as_echo "$ac_try_echo") >&5
5133 (eval "$ac_link") 2>&5
5134 ac_status=$?
5135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5137 { (case "(($ac_try" in
5138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139 *) ac_try_echo=$ac_try;;
5140 esac
5141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5142 $as_echo "$ac_try_echo") >&5
5143 (eval "$ac_try") 2>&5
5144 ac_status=$?
5145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); }; }; then
5147 :
5148 else
5149 $as_echo "$as_me: program exited with status $ac_status" >&5
5150 $as_echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5152
5153 ( exit $ac_status )
5154 ac_cv_header_stdc=no
5155 fi
5156 rm -rf conftest.dSYM
5157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5158 fi
5159
5160
5161 fi
5162 fi
5163 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5164 $as_echo "$ac_cv_header_stdc" >&6; }
5165 if test $ac_cv_header_stdc = yes; then
5166
5167 cat >>confdefs.h <<\_ACEOF
5168 #define STDC_HEADERS 1
5169 _ACEOF
5170
5171 fi
5172
5173 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5184 inttypes.h stdint.h unistd.h
5185 do
5186 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5187 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5188 $as_echo_n "checking for $ac_header... " >&6; }
5189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5190 $as_echo_n "(cached) " >&6
5191 else
5192 cat >conftest.$ac_ext <<_ACEOF
5193 /* confdefs.h. */
5194 _ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h. */
5198 $ac_includes_default
5199
5200 #include <$ac_header>
5201 _ACEOF
5202 rm -f conftest.$ac_objext
5203 if { (ac_try="$ac_compile"
5204 case "(($ac_try" in
5205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206 *) ac_try_echo=$ac_try;;
5207 esac
5208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5209 $as_echo "$ac_try_echo") >&5
5210 (eval "$ac_compile") 2>conftest.er1
5211 ac_status=$?
5212 grep -v '^ *+' conftest.er1 >conftest.err
5213 rm -f conftest.er1
5214 cat conftest.err >&5
5215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } && {
5217 test -z "$ac_c_werror_flag" ||
5218 test ! -s conftest.err
5219 } && test -s conftest.$ac_objext; then
5220 eval "$as_ac_Header=yes"
5221 else
5222 $as_echo "$as_me: failed program was:" >&5
5223 sed 's/^/| /' conftest.$ac_ext >&5
5224
5225 eval "$as_ac_Header=no"
5226 fi
5227
5228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5229 fi
5230 ac_res=`eval 'as_val=${'$as_ac_Header'}
5231 $as_echo "$as_val"'`
5232 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5233 $as_echo "$ac_res" >&6; }
5234 as_val=`eval 'as_val=${'$as_ac_Header'}
5235 $as_echo "$as_val"'`
5236 if test "x$as_val" = x""yes; then
5237 cat >>confdefs.h <<_ACEOF
5238 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5239 _ACEOF
5240
5241 fi
5242
5243 done
5244
5245
5246
5247 for ac_header in dlfcn.h
5248 do
5249 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5251 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5252 $as_echo_n "checking for $ac_header... " >&6; }
5253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5254 $as_echo_n "(cached) " >&6
5255 fi
5256 ac_res=`eval 'as_val=${'$as_ac_Header'}
5257 $as_echo "$as_val"'`
5258 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5259 $as_echo "$ac_res" >&6; }
5260 else
5261 # Is the header compilable?
5262 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5263 $as_echo_n "checking $ac_header usability... " >&6; }
5264 cat >conftest.$ac_ext <<_ACEOF
5265 /* confdefs.h. */
5266 _ACEOF
5267 cat confdefs.h >>conftest.$ac_ext
5268 cat >>conftest.$ac_ext <<_ACEOF
5269 /* end confdefs.h. */
5270 $ac_includes_default
5271 #include <$ac_header>
5272 _ACEOF
5273 rm -f conftest.$ac_objext
5274 if { (ac_try="$ac_compile"
5275 case "(($ac_try" in
5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5278 esac
5279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5280 $as_echo "$ac_try_echo") >&5
5281 (eval "$ac_compile") 2>conftest.er1
5282 ac_status=$?
5283 grep -v '^ *+' conftest.er1 >conftest.err
5284 rm -f conftest.er1
5285 cat conftest.err >&5
5286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } && {
5288 test -z "$ac_c_werror_flag" ||
5289 test ! -s conftest.err
5290 } && test -s conftest.$ac_objext; then
5291 ac_header_compiler=yes
5292 else
5293 $as_echo "$as_me: failed program was:" >&5
5294 sed 's/^/| /' conftest.$ac_ext >&5
5295
5296 ac_header_compiler=no
5297 fi
5298
5299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5301 $as_echo "$ac_header_compiler" >&6; }
5302
5303 # Is the header present?
5304 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5305 $as_echo_n "checking $ac_header presence... " >&6; }
5306 cat >conftest.$ac_ext <<_ACEOF
5307 /* confdefs.h. */
5308 _ACEOF
5309 cat confdefs.h >>conftest.$ac_ext
5310 cat >>conftest.$ac_ext <<_ACEOF
5311 /* end confdefs.h. */
5312 #include <$ac_header>
5313 _ACEOF
5314 if { (ac_try="$ac_cpp conftest.$ac_ext"
5315 case "(($ac_try" in
5316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317 *) ac_try_echo=$ac_try;;
5318 esac
5319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5320 $as_echo "$ac_try_echo") >&5
5321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5322 ac_status=$?
5323 grep -v '^ *+' conftest.er1 >conftest.err
5324 rm -f conftest.er1
5325 cat conftest.err >&5
5326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); } >/dev/null && {
5328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5329 test ! -s conftest.err
5330 }; then
5331 ac_header_preproc=yes
5332 else
5333 $as_echo "$as_me: failed program was:" >&5
5334 sed 's/^/| /' conftest.$ac_ext >&5
5335
5336 ac_header_preproc=no
5337 fi
5338
5339 rm -f conftest.err conftest.$ac_ext
5340 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5341 $as_echo "$ac_header_preproc" >&6; }
5342
5343 # So? What about this header?
5344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5345 yes:no: )
5346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5347 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5349 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5350 ac_header_preproc=yes
5351 ;;
5352 no:yes:* )
5353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5354 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5356 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5358 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5360 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5362 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5364 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5365 ( cat <<\_ASBOX
5366 ## ---------------------------------------------------------------------- ##
5367 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5368 ## ---------------------------------------------------------------------- ##
5369 _ASBOX
5370 ) | sed "s/^/$as_me: WARNING: /" >&2
5371 ;;
5372 esac
5373 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5374 $as_echo_n "checking for $ac_header... " >&6; }
5375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5376 $as_echo_n "(cached) " >&6
5377 else
5378 eval "$as_ac_Header=\$ac_header_preproc"
5379 fi
5380 ac_res=`eval 'as_val=${'$as_ac_Header'}
5381 $as_echo "$as_val"'`
5382 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5383 $as_echo "$ac_res" >&6; }
5384
5385 fi
5386 as_val=`eval 'as_val=${'$as_ac_Header'}
5387 $as_echo "$as_val"'`
5388 if test "x$as_val" = x""yes; then
5389 cat >>confdefs.h <<_ACEOF
5390 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5391 _ACEOF
5392
5393 fi
5394
5395 done
5396
5397 ac_ext=cpp
5398 ac_cpp='$CXXCPP $CPPFLAGS'
5399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5402 if test -z "$CXX"; then
5403 if test -n "$CCC"; then
5404 CXX=$CCC
5405 else
5406 if test -n "$ac_tool_prefix"; then
5407 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5408 do
5409 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5410 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5411 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if test "${ac_cv_prog_CXX+set}" = set; then
5414 $as_echo_n "(cached) " >&6
5415 else
5416 if test -n "$CXX"; then
5417 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5418 else
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH
5421 do
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5426 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5427 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 break 2
5429 fi
5430 done
5431 done
5432 IFS=$as_save_IFS
5433
5434 fi
5435 fi
5436 CXX=$ac_cv_prog_CXX
5437 if test -n "$CXX"; then
5438 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5439 $as_echo "$CXX" >&6; }
5440 else
5441 { $as_echo "$as_me:$LINENO: result: no" >&5
5442 $as_echo "no" >&6; }
5443 fi
5444
5445
5446 test -n "$CXX" && break
5447 done
5448 fi
5449 if test -z "$CXX"; then
5450 ac_ct_CXX=$CXX
5451 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5452 do
5453 # Extract the first word of "$ac_prog", so it can be a program name with args.
5454 set dummy $ac_prog; ac_word=$2
5455 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5458 $as_echo_n "(cached) " >&6
5459 else
5460 if test -n "$ac_ct_CXX"; then
5461 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5462 else
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5465 do
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5470 ac_cv_prog_ac_ct_CXX="$ac_prog"
5471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 break 2
5473 fi
5474 done
5475 done
5476 IFS=$as_save_IFS
5477
5478 fi
5479 fi
5480 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5481 if test -n "$ac_ct_CXX"; then
5482 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5483 $as_echo "$ac_ct_CXX" >&6; }
5484 else
5485 { $as_echo "$as_me:$LINENO: result: no" >&5
5486 $as_echo "no" >&6; }
5487 fi
5488
5489
5490 test -n "$ac_ct_CXX" && break
5491 done
5492
5493 if test "x$ac_ct_CXX" = x; then
5494 CXX="g++"
5495 else
5496 case $cross_compiling:$ac_tool_warned in
5497 yes:)
5498 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5500 ac_tool_warned=yes ;;
5501 esac
5502 CXX=$ac_ct_CXX
5503 fi
5504 fi
5505
5506 fi
5507 fi
5508 # Provide some information about the compiler.
5509 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5510 set X $ac_compile
5511 ac_compiler=$2
5512 { (ac_try="$ac_compiler --version >&5"
5513 case "(($ac_try" in
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5516 esac
5517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5518 $as_echo "$ac_try_echo") >&5
5519 (eval "$ac_compiler --version >&5") 2>&5
5520 ac_status=$?
5521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); }
5523 { (ac_try="$ac_compiler -v >&5"
5524 case "(($ac_try" in
5525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526 *) ac_try_echo=$ac_try;;
5527 esac
5528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5529 $as_echo "$ac_try_echo") >&5
5530 (eval "$ac_compiler -v >&5") 2>&5
5531 ac_status=$?
5532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }
5534 { (ac_try="$ac_compiler -V >&5"
5535 case "(($ac_try" in
5536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5537 *) ac_try_echo=$ac_try;;
5538 esac
5539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5540 $as_echo "$ac_try_echo") >&5
5541 (eval "$ac_compiler -V >&5") 2>&5
5542 ac_status=$?
5543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }
5545
5546 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5547 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5548 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5549 $as_echo_n "(cached) " >&6
5550 else
5551 cat >conftest.$ac_ext <<_ACEOF
5552 /* confdefs.h. */
5553 _ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5557
5558 int
5559 main ()
5560 {
5561 #ifndef __GNUC__
5562 choke me
5563 #endif
5564
5565 ;
5566 return 0;
5567 }
5568 _ACEOF
5569 rm -f conftest.$ac_objext
5570 if { (ac_try="$ac_compile"
5571 case "(($ac_try" in
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5574 esac
5575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5576 $as_echo "$ac_try_echo") >&5
5577 (eval "$ac_compile") 2>conftest.er1
5578 ac_status=$?
5579 grep -v '^ *+' conftest.er1 >conftest.err
5580 rm -f conftest.er1
5581 cat conftest.err >&5
5582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } && {
5584 test -z "$ac_cxx_werror_flag" ||
5585 test ! -s conftest.err
5586 } && test -s conftest.$ac_objext; then
5587 ac_compiler_gnu=yes
5588 else
5589 $as_echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5591
5592 ac_compiler_gnu=no
5593 fi
5594
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5597
5598 fi
5599 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5600 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5601 if test $ac_compiler_gnu = yes; then
5602 GXX=yes
5603 else
5604 GXX=
5605 fi
5606 ac_test_CXXFLAGS=${CXXFLAGS+set}
5607 ac_save_CXXFLAGS=$CXXFLAGS
5608 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5609 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5610 if test "${ac_cv_prog_cxx_g+set}" = set; then
5611 $as_echo_n "(cached) " >&6
5612 else
5613 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5614 ac_cxx_werror_flag=yes
5615 ac_cv_prog_cxx_g=no
5616 CXXFLAGS="-g"
5617 cat >conftest.$ac_ext <<_ACEOF
5618 /* confdefs.h. */
5619 _ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5623
5624 int
5625 main ()
5626 {
5627
5628 ;
5629 return 0;
5630 }
5631 _ACEOF
5632 rm -f conftest.$ac_objext
5633 if { (ac_try="$ac_compile"
5634 case "(($ac_try" in
5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5637 esac
5638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5639 $as_echo "$ac_try_echo") >&5
5640 (eval "$ac_compile") 2>conftest.er1
5641 ac_status=$?
5642 grep -v '^ *+' conftest.er1 >conftest.err
5643 rm -f conftest.er1
5644 cat conftest.err >&5
5645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } && {
5647 test -z "$ac_cxx_werror_flag" ||
5648 test ! -s conftest.err
5649 } && test -s conftest.$ac_objext; then
5650 ac_cv_prog_cxx_g=yes
5651 else
5652 $as_echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5654
5655 CXXFLAGS=""
5656 cat >conftest.$ac_ext <<_ACEOF
5657 /* confdefs.h. */
5658 _ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5662
5663 int
5664 main ()
5665 {
5666
5667 ;
5668 return 0;
5669 }
5670 _ACEOF
5671 rm -f conftest.$ac_objext
5672 if { (ac_try="$ac_compile"
5673 case "(($ac_try" in
5674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5676 esac
5677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5678 $as_echo "$ac_try_echo") >&5
5679 (eval "$ac_compile") 2>conftest.er1
5680 ac_status=$?
5681 grep -v '^ *+' conftest.er1 >conftest.err
5682 rm -f conftest.er1
5683 cat conftest.err >&5
5684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); } && {
5686 test -z "$ac_cxx_werror_flag" ||
5687 test ! -s conftest.err
5688 } && test -s conftest.$ac_objext; then
5689 :
5690 else
5691 $as_echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.$ac_ext >&5
5693
5694 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5695 CXXFLAGS="-g"
5696 cat >conftest.$ac_ext <<_ACEOF
5697 /* confdefs.h. */
5698 _ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702
5703 int
5704 main ()
5705 {
5706
5707 ;
5708 return 0;
5709 }
5710 _ACEOF
5711 rm -f conftest.$ac_objext
5712 if { (ac_try="$ac_compile"
5713 case "(($ac_try" in
5714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5715 *) ac_try_echo=$ac_try;;
5716 esac
5717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5718 $as_echo "$ac_try_echo") >&5
5719 (eval "$ac_compile") 2>conftest.er1
5720 ac_status=$?
5721 grep -v '^ *+' conftest.er1 >conftest.err
5722 rm -f conftest.er1
5723 cat conftest.err >&5
5724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } && {
5726 test -z "$ac_cxx_werror_flag" ||
5727 test ! -s conftest.err
5728 } && test -s conftest.$ac_objext; then
5729 ac_cv_prog_cxx_g=yes
5730 else
5731 $as_echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5733
5734
5735 fi
5736
5737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5738 fi
5739
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741 fi
5742
5743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5744 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5745 fi
5746 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5747 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5748 if test "$ac_test_CXXFLAGS" = set; then
5749 CXXFLAGS=$ac_save_CXXFLAGS
5750 elif test $ac_cv_prog_cxx_g = yes; then
5751 if test "$GXX" = yes; then
5752 CXXFLAGS="-g -O2"
5753 else
5754 CXXFLAGS="-g"
5755 fi
5756 else
5757 if test "$GXX" = yes; then
5758 CXXFLAGS="-O2"
5759 else
5760 CXXFLAGS=
5761 fi
5762 fi
5763 ac_ext=cpp
5764 ac_cpp='$CXXCPP $CPPFLAGS'
5765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5768
5769 depcc="$CXX" am_compiler_list=
5770
5771 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5772 $as_echo_n "checking dependency style of $depcc... " >&6; }
5773 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5774 $as_echo_n "(cached) " >&6
5775 else
5776 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5777 # We make a subdir and do the tests there. Otherwise we can end up
5778 # making bogus files that we don't know about and never remove. For
5779 # instance it was reported that on HP-UX the gcc test will end up
5780 # making a dummy file named `D' -- because `-MD' means `put the output
5781 # in D'.
5782 mkdir conftest.dir
5783 # Copy depcomp to subdir because otherwise we won't find it if we're
5784 # using a relative directory.
5785 cp "$am_depcomp" conftest.dir
5786 cd conftest.dir
5787 # We will build objects and dependencies in a subdirectory because
5788 # it helps to detect inapplicable dependency modes. For instance
5789 # both Tru64's cc and ICC support -MD to output dependencies as a
5790 # side effect of compilation, but ICC will put the dependencies in
5791 # the current directory while Tru64 will put them in the object
5792 # directory.
5793 mkdir sub
5794
5795 am_cv_CXX_dependencies_compiler_type=none
5796 if test "$am_compiler_list" = ""; then
5797 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5798 fi
5799 am__universal=false
5800 case " $depcc " in #(
5801 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5802 esac
5803
5804 for depmode in $am_compiler_list; do
5805 # Setup a source with many dependencies, because some compilers
5806 # like to wrap large dependency lists on column 80 (with \), and
5807 # we should not choose a depcomp mode which is confused by this.
5808 #
5809 # We need to recreate these files for each test, as the compiler may
5810 # overwrite some of them when testing with obscure command lines.
5811 # This happens at least with the AIX C compiler.
5812 : > sub/conftest.c
5813 for i in 1 2 3 4 5 6; do
5814 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5815 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5816 # Solaris 8's {/usr,}/bin/sh.
5817 touch sub/conftst$i.h
5818 done
5819 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5820
5821 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5822 # mode. It turns out that the SunPro C++ compiler does not properly
5823 # handle `-M -o', and we need to detect this. Also, some Intel
5824 # versions had trouble with output in subdirs
5825 am__obj=sub/conftest.${OBJEXT-o}
5826 am__minus_obj="-o $am__obj"
5827 case $depmode in
5828 gcc)
5829 # This depmode causes a compiler race in universal mode.
5830 test "$am__universal" = false || continue
5831 ;;
5832 nosideeffect)
5833 # after this tag, mechanisms are not by side-effect, so they'll
5834 # only be used when explicitly requested
5835 if test "x$enable_dependency_tracking" = xyes; then
5836 continue
5837 else
5838 break
5839 fi
5840 ;;
5841 msvisualcpp | msvcmsys)
5842 # This compiler won't grok `-c -o', but also, the minuso test has
5843 # not run yet. These depmodes are late enough in the game, and
5844 # so weak that their functioning should not be impacted.
5845 am__obj=conftest.${OBJEXT-o}
5846 am__minus_obj=
5847 ;;
5848 none) break ;;
5849 esac
5850 if depmode=$depmode \
5851 source=sub/conftest.c object=$am__obj \
5852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5853 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5854 >/dev/null 2>conftest.err &&
5855 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5856 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5857 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5858 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5859 # icc doesn't choke on unknown options, it will just issue warnings
5860 # or remarks (even with -Werror). So we grep stderr for any message
5861 # that says an option was ignored or not supported.
5862 # When given -MP, icc 7.0 and 7.1 complain thusly:
5863 # icc: Command line warning: ignoring option '-M'; no argument required
5864 # The diagnosis changed in icc 8.0:
5865 # icc: Command line remark: option '-MP' not supported
5866 if (grep 'ignoring option' conftest.err ||
5867 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5868 am_cv_CXX_dependencies_compiler_type=$depmode
5869 break
5870 fi
5871 fi
5872 done
5873
5874 cd ..
5875 rm -rf conftest.dir
5876 else
5877 am_cv_CXX_dependencies_compiler_type=none
5878 fi
5879
5880 fi
5881 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5882 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5883 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5884
5885 if
5886 test "x$enable_dependency_tracking" != xno \
5887 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5888 am__fastdepCXX_TRUE=
5889 am__fastdepCXX_FALSE='#'
5890 else
5891 am__fastdepCXX_TRUE='#'
5892 am__fastdepCXX_FALSE=
5893 fi
5894
5895
5896
5897
5898 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5899 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5900 (test "X$CXX" != "Xg++"))) ; then
5901 ac_ext=cpp
5902 ac_cpp='$CXXCPP $CPPFLAGS'
5903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5906 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5907 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5908 if test -z "$CXXCPP"; then
5909 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5910 $as_echo_n "(cached) " >&6
5911 else
5912 # Double quotes because CXXCPP needs to be expanded
5913 for CXXCPP in "$CXX -E" "/lib/cpp"
5914 do
5915 ac_preproc_ok=false
5916 for ac_cxx_preproc_warn_flag in '' yes
5917 do
5918 # Use a header file that comes with gcc, so configuring glibc
5919 # with a fresh cross-compiler works.
5920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5921 # <limits.h> exists even on freestanding compilers.
5922 # On the NeXT, cc -E runs the code through the compiler's parser,
5923 # not just through cpp. "Syntax error" is here to catch this case.
5924 cat >conftest.$ac_ext <<_ACEOF
5925 /* confdefs.h. */
5926 _ACEOF
5927 cat confdefs.h >>conftest.$ac_ext
5928 cat >>conftest.$ac_ext <<_ACEOF
5929 /* end confdefs.h. */
5930 #ifdef __STDC__
5931 # include <limits.h>
5932 #else
5933 # include <assert.h>
5934 #endif
5935 Syntax error
5936 _ACEOF
5937 if { (ac_try="$ac_cpp conftest.$ac_ext"
5938 case "(($ac_try" in
5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5941 esac
5942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5943 $as_echo "$ac_try_echo") >&5
5944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5945 ac_status=$?
5946 grep -v '^ *+' conftest.er1 >conftest.err
5947 rm -f conftest.er1
5948 cat conftest.err >&5
5949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } >/dev/null && {
5951 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5952 test ! -s conftest.err
5953 }; then
5954 :
5955 else
5956 $as_echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5958
5959 # Broken: fails on valid input.
5960 continue
5961 fi
5962
5963 rm -f conftest.err conftest.$ac_ext
5964
5965 # OK, works on sane cases. Now check whether nonexistent headers
5966 # can be detected and how.
5967 cat >conftest.$ac_ext <<_ACEOF
5968 /* confdefs.h. */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5973 #include <ac_nonexistent.h>
5974 _ACEOF
5975 if { (ac_try="$ac_cpp conftest.$ac_ext"
5976 case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979 esac
5980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5981 $as_echo "$ac_try_echo") >&5
5982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } >/dev/null && {
5989 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5990 test ! -s conftest.err
5991 }; then
5992 # Broken: success on invalid input.
5993 continue
5994 else
5995 $as_echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5997
5998 # Passes both tests.
5999 ac_preproc_ok=:
6000 break
6001 fi
6002
6003 rm -f conftest.err conftest.$ac_ext
6004
6005 done
6006 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6007 rm -f conftest.err conftest.$ac_ext
6008 if $ac_preproc_ok; then
6009 break
6010 fi
6011
6012 done
6013 ac_cv_prog_CXXCPP=$CXXCPP
6014
6015 fi
6016 CXXCPP=$ac_cv_prog_CXXCPP
6017 else
6018 ac_cv_prog_CXXCPP=$CXXCPP
6019 fi
6020 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6021 $as_echo "$CXXCPP" >&6; }
6022 ac_preproc_ok=false
6023 for ac_cxx_preproc_warn_flag in '' yes
6024 do
6025 # Use a header file that comes with gcc, so configuring glibc
6026 # with a fresh cross-compiler works.
6027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6028 # <limits.h> exists even on freestanding compilers.
6029 # On the NeXT, cc -E runs the code through the compiler's parser,
6030 # not just through cpp. "Syntax error" is here to catch this case.
6031 cat >conftest.$ac_ext <<_ACEOF
6032 /* confdefs.h. */
6033 _ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h. */
6037 #ifdef __STDC__
6038 # include <limits.h>
6039 #else
6040 # include <assert.h>
6041 #endif
6042 Syntax error
6043 _ACEOF
6044 if { (ac_try="$ac_cpp conftest.$ac_ext"
6045 case "(($ac_try" in
6046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047 *) ac_try_echo=$ac_try;;
6048 esac
6049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6050 $as_echo "$ac_try_echo") >&5
6051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6052 ac_status=$?
6053 grep -v '^ *+' conftest.er1 >conftest.err
6054 rm -f conftest.er1
6055 cat conftest.err >&5
6056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } >/dev/null && {
6058 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6059 test ! -s conftest.err
6060 }; then
6061 :
6062 else
6063 $as_echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6065
6066 # Broken: fails on valid input.
6067 continue
6068 fi
6069
6070 rm -f conftest.err conftest.$ac_ext
6071
6072 # OK, works on sane cases. Now check whether nonexistent headers
6073 # can be detected and how.
6074 cat >conftest.$ac_ext <<_ACEOF
6075 /* confdefs.h. */
6076 _ACEOF
6077 cat confdefs.h >>conftest.$ac_ext
6078 cat >>conftest.$ac_ext <<_ACEOF
6079 /* end confdefs.h. */
6080 #include <ac_nonexistent.h>
6081 _ACEOF
6082 if { (ac_try="$ac_cpp conftest.$ac_ext"
6083 case "(($ac_try" in
6084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6085 *) ac_try_echo=$ac_try;;
6086 esac
6087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6088 $as_echo "$ac_try_echo") >&5
6089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6090 ac_status=$?
6091 grep -v '^ *+' conftest.er1 >conftest.err
6092 rm -f conftest.er1
6093 cat conftest.err >&5
6094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } >/dev/null && {
6096 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6097 test ! -s conftest.err
6098 }; then
6099 # Broken: success on invalid input.
6100 continue
6101 else
6102 $as_echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6104
6105 # Passes both tests.
6106 ac_preproc_ok=:
6107 break
6108 fi
6109
6110 rm -f conftest.err conftest.$ac_ext
6111
6112 done
6113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6114 rm -f conftest.err conftest.$ac_ext
6115 if $ac_preproc_ok; then
6116 :
6117 else
6118 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6120 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6121 See \`config.log' for more details." >&5
6122 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6123 See \`config.log' for more details." >&2;}
6124 { (exit 1); exit 1; }; }; }
6125 fi
6126
6127 ac_ext=cpp
6128 ac_cpp='$CXXCPP $CPPFLAGS'
6129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6132
6133 fi
6134
6135
6136 ac_ext=f
6137 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6138 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6139 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6140 if test -n "$ac_tool_prefix"; then
6141 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
6142 do
6143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6145 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6146 $as_echo_n "checking for $ac_word... " >&6; }
6147 if test "${ac_cv_prog_F77+set}" = set; then
6148 $as_echo_n "(cached) " >&6
6149 else
6150 if test -n "$F77"; then
6151 ac_cv_prog_F77="$F77" # Let the user override the test.
6152 else
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 for as_dir in $PATH
6155 do
6156 IFS=$as_save_IFS
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6160 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6161 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 break 2
6163 fi
6164 done
6165 done
6166 IFS=$as_save_IFS
6167
6168 fi
6169 fi
6170 F77=$ac_cv_prog_F77
6171 if test -n "$F77"; then
6172 { $as_echo "$as_me:$LINENO: result: $F77" >&5
6173 $as_echo "$F77" >&6; }
6174 else
6175 { $as_echo "$as_me:$LINENO: result: no" >&5
6176 $as_echo "no" >&6; }
6177 fi
6178
6179
6180 test -n "$F77" && break
6181 done
6182 fi
6183 if test -z "$F77"; then
6184 ac_ct_F77=$F77
6185 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
6186 do
6187 # Extract the first word of "$ac_prog", so it can be a program name with args.
6188 set dummy $ac_prog; ac_word=$2
6189 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 $as_echo_n "checking for $ac_word... " >&6; }
6191 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6192 $as_echo_n "(cached) " >&6
6193 else
6194 if test -n "$ac_ct_F77"; then
6195 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6196 else
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6199 do
6200 IFS=$as_save_IFS
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6204 ac_cv_prog_ac_ct_F77="$ac_prog"
6205 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 break 2
6207 fi
6208 done
6209 done
6210 IFS=$as_save_IFS
6211
6212 fi
6213 fi
6214 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6215 if test -n "$ac_ct_F77"; then
6216 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6217 $as_echo "$ac_ct_F77" >&6; }
6218 else
6219 { $as_echo "$as_me:$LINENO: result: no" >&5
6220 $as_echo "no" >&6; }
6221 fi
6222
6223
6224 test -n "$ac_ct_F77" && break
6225 done
6226
6227 if test "x$ac_ct_F77" = x; then
6228 F77=""
6229 else
6230 case $cross_compiling:$ac_tool_warned in
6231 yes:)
6232 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6234 ac_tool_warned=yes ;;
6235 esac
6236 F77=$ac_ct_F77
6237 fi
6238 fi
6239
6240
6241 # Provide some information about the compiler.
6242 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6243 set X $ac_compile
6244 ac_compiler=$2
6245 { (ac_try="$ac_compiler --version >&5"
6246 case "(($ac_try" in
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6249 esac
6250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6251 $as_echo "$ac_try_echo") >&5
6252 (eval "$ac_compiler --version >&5") 2>&5
6253 ac_status=$?
6254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }
6256 { (ac_try="$ac_compiler -v >&5"
6257 case "(($ac_try" in
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6260 esac
6261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6262 $as_echo "$ac_try_echo") >&5
6263 (eval "$ac_compiler -v >&5") 2>&5
6264 ac_status=$?
6265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }
6267 { (ac_try="$ac_compiler -V >&5"
6268 case "(($ac_try" in
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6271 esac
6272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6273 $as_echo "$ac_try_echo") >&5
6274 (eval "$ac_compiler -V >&5") 2>&5
6275 ac_status=$?
6276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); }
6278 rm -f a.out
6279
6280 # If we don't use `.F' as extension, the preprocessor is not run on the
6281 # input file. (Note that this only needs to work for GNU compilers.)
6282 ac_save_ext=$ac_ext
6283 ac_ext=F
6284 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6285 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6286 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6287 $as_echo_n "(cached) " >&6
6288 else
6289 cat >conftest.$ac_ext <<_ACEOF
6290 program main
6291 #ifndef __GNUC__
6292 choke me
6293 #endif
6294
6295 end
6296 _ACEOF
6297 rm -f conftest.$ac_objext
6298 if { (ac_try="$ac_compile"
6299 case "(($ac_try" in
6300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301 *) ac_try_echo=$ac_try;;
6302 esac
6303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6304 $as_echo "$ac_try_echo") >&5
6305 (eval "$ac_compile") 2>conftest.er1
6306 ac_status=$?
6307 grep -v '^ *+' conftest.er1 >conftest.err
6308 rm -f conftest.er1
6309 cat conftest.err >&5
6310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } && {
6312 test -z "$ac_f77_werror_flag" ||
6313 test ! -s conftest.err
6314 } && test -s conftest.$ac_objext; then
6315 ac_compiler_gnu=yes
6316 else
6317 $as_echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6319
6320 ac_compiler_gnu=no
6321 fi
6322
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6325
6326 fi
6327 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6328 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6329 ac_ext=$ac_save_ext
6330 ac_test_FFLAGS=${FFLAGS+set}
6331 ac_save_FFLAGS=$FFLAGS
6332 FFLAGS=
6333 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6334 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6335 if test "${ac_cv_prog_f77_g+set}" = set; then
6336 $as_echo_n "(cached) " >&6
6337 else
6338 FFLAGS=-g
6339 cat >conftest.$ac_ext <<_ACEOF
6340 program main
6341
6342 end
6343 _ACEOF
6344 rm -f conftest.$ac_objext
6345 if { (ac_try="$ac_compile"
6346 case "(($ac_try" in
6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6349 esac
6350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6351 $as_echo "$ac_try_echo") >&5
6352 (eval "$ac_compile") 2>conftest.er1
6353 ac_status=$?
6354 grep -v '^ *+' conftest.er1 >conftest.err
6355 rm -f conftest.er1
6356 cat conftest.err >&5
6357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } && {
6359 test -z "$ac_f77_werror_flag" ||
6360 test ! -s conftest.err
6361 } && test -s conftest.$ac_objext; then
6362 ac_cv_prog_f77_g=yes
6363 else
6364 $as_echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6366
6367 ac_cv_prog_f77_g=no
6368 fi
6369
6370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6371
6372 fi
6373 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6374 $as_echo "$ac_cv_prog_f77_g" >&6; }
6375 if test "$ac_test_FFLAGS" = set; then
6376 FFLAGS=$ac_save_FFLAGS
6377 elif test $ac_cv_prog_f77_g = yes; then
6378 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6379 FFLAGS="-g -O2"
6380 else
6381 FFLAGS="-g"
6382 fi
6383 else
6384 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6385 FFLAGS="-O2"
6386 else
6387 FFLAGS=
6388 fi
6389 fi
6390
6391 if test $ac_compiler_gnu = yes; then
6392 G77=yes
6393 else
6394 G77=
6395 fi
6396 ac_ext=c
6397 ac_cpp='$CPP $CPPFLAGS'
6398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6401
6402
6403
6404 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6405 # find the maximum length of command line arguments
6406 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6407 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6408 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6409 $as_echo_n "(cached) " >&6
6410 else
6411 i=0
6412 teststring="ABCD"
6413
6414 case $build_os in
6415 msdosdjgpp*)
6416 # On DJGPP, this test can blow up pretty badly due to problems in libc
6417 # (any single argument exceeding 2000 bytes causes a buffer overrun
6418 # during glob expansion). Even if it were fixed, the result of this
6419 # check would be larger than it should be.
6420 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6421 ;;
6422
6423 gnu*)
6424 # Under GNU Hurd, this test is not required because there is
6425 # no limit to the length of command line arguments.
6426 # Libtool will interpret -1 as no limit whatsoever
6427 lt_cv_sys_max_cmd_len=-1;
6428 ;;
6429
6430 cygwin* | mingw*)
6431 # On Win9x/ME, this test blows up -- it succeeds, but takes
6432 # about 5 minutes as the teststring grows exponentially.
6433 # Worse, since 9x/ME are not pre-emptively multitasking,
6434 # you end up with a "frozen" computer, even though with patience
6435 # the test eventually succeeds (with a max line length of 256k).
6436 # Instead, let's just punt: use the minimum linelength reported by
6437 # all of the supported platforms: 8192 (on NT/2K/XP).
6438 lt_cv_sys_max_cmd_len=8192;
6439 ;;
6440
6441 amigaos*)
6442 # On AmigaOS with pdksh, this test takes hours, literally.
6443 # So we just punt and use a minimum line length of 8192.
6444 lt_cv_sys_max_cmd_len=8192;
6445 ;;
6446
6447 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6448 # This has been around since 386BSD, at least. Likely further.
6449 if test -x /sbin/sysctl; then
6450 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6451 elif test -x /usr/sbin/sysctl; then
6452 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6453 else
6454 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6455 fi
6456 # And add a safety zone
6457 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6458 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6459 ;;
6460
6461 interix*)
6462 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6463 lt_cv_sys_max_cmd_len=196608
6464 ;;
6465
6466 osf*)
6467 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6468 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6469 # nice to cause kernel panics so lets avoid the loop below.
6470 # First set a reasonable default.
6471 lt_cv_sys_max_cmd_len=16384
6472 #
6473 if test -x /sbin/sysconfig; then
6474 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6475 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6476 esac
6477 fi
6478 ;;
6479 sco3.2v5*)
6480 lt_cv_sys_max_cmd_len=102400
6481 ;;
6482 sysv5* | sco5v6* | sysv4.2uw2*)
6483 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6484 if test -n "$kargmax"; then
6485 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6486 else
6487 lt_cv_sys_max_cmd_len=32768
6488 fi
6489 ;;
6490 *)
6491 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6492 if test -n "$lt_cv_sys_max_cmd_len"; then
6493 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6494 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6495 else
6496 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6497 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6498 = "XX$teststring") >/dev/null 2>&1 &&
6499 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6500 lt_cv_sys_max_cmd_len=$new_result &&
6501 test $i != 17 # 1/2 MB should be enough
6502 do
6503 i=`expr $i + 1`
6504 teststring=$teststring$teststring
6505 done
6506 teststring=
6507 # Add a significant safety factor because C++ compilers can tack on massive
6508 # amounts of additional arguments before passing them to the linker.
6509 # It appears as though 1/2 is a usable value.
6510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6511 fi
6512 ;;
6513 esac
6514
6515 fi
6516
6517 if test -n $lt_cv_sys_max_cmd_len ; then
6518 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6519 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6520 else
6521 { $as_echo "$as_me:$LINENO: result: none" >&5
6522 $as_echo "none" >&6; }
6523 fi
6524
6525
6526
6527
6528
6529 # Check for command to grab the raw symbol name followed by C symbol from nm.
6530 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6531 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6532 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6533 $as_echo_n "(cached) " >&6
6534 else
6535
6536 # These are sane defaults that work on at least a few old systems.
6537 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6538
6539 # Character class describing NM global symbol codes.
6540 symcode='[BCDEGRST]'
6541
6542 # Regexp to match symbols that can be accessed directly from C.
6543 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6544
6545 # Transform an extracted symbol line into a proper C declaration
6546 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6547
6548 # Transform an extracted symbol line into symbol name and symbol address
6549 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'"
6550
6551 # Define system-specific variables.
6552 case $host_os in
6553 aix*)
6554 symcode='[BCDT]'
6555 ;;
6556 cygwin* | mingw* | pw32*)
6557 symcode='[ABCDGISTW]'
6558 ;;
6559 hpux*) # Its linker distinguishes data from code symbols
6560 if test "$host_cpu" = ia64; then
6561 symcode='[ABCDEGRST]'
6562 fi
6563 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6564 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'"
6565 ;;
6566 linux* | k*bsd*-gnu)
6567 if test "$host_cpu" = ia64; then
6568 symcode='[ABCDGIRSTW]'
6569 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6570 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'"
6571 fi
6572 ;;
6573 irix* | nonstopux*)
6574 symcode='[BCDEGRST]'
6575 ;;
6576 osf*)
6577 symcode='[BCDEGQRST]'
6578 ;;
6579 solaris*)
6580 symcode='[BDRT]'
6581 ;;
6582 sco3.2v5*)
6583 symcode='[DT]'
6584 ;;
6585 sysv4.2uw2*)
6586 symcode='[DT]'
6587 ;;
6588 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6589 symcode='[ABDT]'
6590 ;;
6591 sysv4)
6592 symcode='[DFNSTU]'
6593 ;;
6594 esac
6595
6596 # Handle CRLF in mingw tool chain
6597 opt_cr=
6598 case $build_os in
6599 mingw*)
6600 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6601 ;;
6602 esac
6603
6604 # If we're using GNU nm, then use its standard symbol codes.
6605 case `$NM -V 2>&1` in
6606 *GNU* | *'with BFD'*)
6607 symcode='[ABCDGIRSTW]' ;;
6608 esac
6609
6610 # Try without a prefix undercore, then with it.
6611 for ac_symprfx in "" "_"; do
6612
6613 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6614 symxfrm="\\1 $ac_symprfx\\2 \\2"
6615
6616 # Write the raw and C identifiers.
6617 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6618
6619 # Check to see that the pipe works correctly.
6620 pipe_works=no
6621
6622 rm -f conftest*
6623 cat > conftest.$ac_ext <<EOF
6624 #ifdef __cplusplus
6625 extern "C" {
6626 #endif
6627 char nm_test_var;
6628 void nm_test_func(){}
6629 #ifdef __cplusplus
6630 }
6631 #endif
6632 int main(){nm_test_var='a';nm_test_func();return(0);}
6633 EOF
6634
6635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6636 (eval $ac_compile) 2>&5
6637 ac_status=$?
6638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; then
6640 # Now try to grab the symbols.
6641 nlist=conftest.nm
6642 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6643 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6644 ac_status=$?
6645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } && test -s "$nlist"; then
6647 # Try sorting and uniquifying the output.
6648 if sort "$nlist" | uniq > "$nlist"T; then
6649 mv -f "$nlist"T "$nlist"
6650 else
6651 rm -f "$nlist"T
6652 fi
6653
6654 # Make sure that we snagged all the symbols we need.
6655 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6656 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6657 cat <<EOF > conftest.$ac_ext
6658 #ifdef __cplusplus
6659 extern "C" {
6660 #endif
6661
6662 EOF
6663 # Now generate the symbol file.
6664 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6665
6666 cat <<EOF >> conftest.$ac_ext
6667 #if defined (__STDC__) && __STDC__
6668 # define lt_ptr_t void *
6669 #else
6670 # define lt_ptr_t char *
6671 # define const
6672 #endif
6673
6674 /* The mapping between symbol names and symbols. */
6675 const struct {
6676 const char *name;
6677 lt_ptr_t address;
6678 }
6679 lt_preloaded_symbols[] =
6680 {
6681 EOF
6682 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6683 cat <<\EOF >> conftest.$ac_ext
6684 {0, (lt_ptr_t) 0}
6685 };
6686
6687 #ifdef __cplusplus
6688 }
6689 #endif
6690 EOF
6691 # Now try linking the two files.
6692 mv conftest.$ac_objext conftstm.$ac_objext
6693 lt_save_LIBS="$LIBS"
6694 lt_save_CFLAGS="$CFLAGS"
6695 LIBS="conftstm.$ac_objext"
6696 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6698 (eval $ac_link) 2>&5
6699 ac_status=$?
6700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6702 pipe_works=yes
6703 fi
6704 LIBS="$lt_save_LIBS"
6705 CFLAGS="$lt_save_CFLAGS"
6706 else
6707 echo "cannot find nm_test_func in $nlist" >&5
6708 fi
6709 else
6710 echo "cannot find nm_test_var in $nlist" >&5
6711 fi
6712 else
6713 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6714 fi
6715 else
6716 echo "$progname: failed program was:" >&5
6717 cat conftest.$ac_ext >&5
6718 fi
6719 rm -rf conftest* conftst*
6720
6721 # Do not use the global_symbol_pipe unless it works.
6722 if test "$pipe_works" = yes; then
6723 break
6724 else
6725 lt_cv_sys_global_symbol_pipe=
6726 fi
6727 done
6728
6729 fi
6730
6731 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6732 lt_cv_sys_global_symbol_to_cdecl=
6733 fi
6734 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6735 { $as_echo "$as_me:$LINENO: result: failed" >&5
6736 $as_echo "failed" >&6; }
6737 else
6738 { $as_echo "$as_me:$LINENO: result: ok" >&5
6739 $as_echo "ok" >&6; }
6740 fi
6741
6742 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6743 $as_echo_n "checking for objdir... " >&6; }
6744 if test "${lt_cv_objdir+set}" = set; then
6745 $as_echo_n "(cached) " >&6
6746 else
6747 rm -f .libs 2>/dev/null
6748 mkdir .libs 2>/dev/null
6749 if test -d .libs; then
6750 lt_cv_objdir=.libs
6751 else
6752 # MS-DOS does not allow filenames that begin with a dot.
6753 lt_cv_objdir=_libs
6754 fi
6755 rmdir .libs 2>/dev/null
6756 fi
6757 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6758 $as_echo "$lt_cv_objdir" >&6; }
6759 objdir=$lt_cv_objdir
6760
6761
6762
6763
6764
6765 case $host_os in
6766 aix3*)
6767 # AIX sometimes has problems with the GCC collect2 program. For some
6768 # reason, if we set the COLLECT_NAMES environment variable, the problems
6769 # vanish in a puff of smoke.
6770 if test "X${COLLECT_NAMES+set}" != Xset; then
6771 COLLECT_NAMES=
6772 export COLLECT_NAMES
6773 fi
6774 ;;
6775 esac
6776
6777 # Sed substitution that helps us do robust quoting. It backslashifies
6778 # metacharacters that are still active within double-quoted strings.
6779 Xsed='sed -e 1s/^X//'
6780 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6781
6782 # Same as above, but do not quote variable references.
6783 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6784
6785 # Sed substitution to delay expansion of an escaped shell variable in a
6786 # double_quote_subst'ed string.
6787 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6788
6789 # Sed substitution to avoid accidental globbing in evaled expressions
6790 no_glob_subst='s/\*/\\\*/g'
6791
6792 # Constants:
6793 rm="rm -f"
6794
6795 # Global variables:
6796 default_ofile=libtool
6797 can_build_shared=yes
6798
6799 # All known linkers require a `.a' archive for static linking (except MSVC,
6800 # which needs '.lib').
6801 libext=a
6802 ltmain="$ac_aux_dir/ltmain.sh"
6803 ofile="$default_ofile"
6804 with_gnu_ld="$lt_cv_prog_gnu_ld"
6805
6806 if test -n "$ac_tool_prefix"; then
6807 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6808 set dummy ${ac_tool_prefix}ar; ac_word=$2
6809 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if test "${ac_cv_prog_AR+set}" = set; then
6812 $as_echo_n "(cached) " >&6
6813 else
6814 if test -n "$AR"; then
6815 ac_cv_prog_AR="$AR" # Let the user override the test.
6816 else
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6819 do
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6824 ac_cv_prog_AR="${ac_tool_prefix}ar"
6825 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6826 break 2
6827 fi
6828 done
6829 done
6830 IFS=$as_save_IFS
6831
6832 fi
6833 fi
6834 AR=$ac_cv_prog_AR
6835 if test -n "$AR"; then
6836 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6837 $as_echo "$AR" >&6; }
6838 else
6839 { $as_echo "$as_me:$LINENO: result: no" >&5
6840 $as_echo "no" >&6; }
6841 fi
6842
6843
6844 fi
6845 if test -z "$ac_cv_prog_AR"; then
6846 ac_ct_AR=$AR
6847 # Extract the first word of "ar", so it can be a program name with args.
6848 set dummy ar; ac_word=$2
6849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6850 $as_echo_n "checking for $ac_word... " >&6; }
6851 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6852 $as_echo_n "(cached) " >&6
6853 else
6854 if test -n "$ac_ct_AR"; then
6855 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6856 else
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6859 do
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6864 ac_cv_prog_ac_ct_AR="ar"
6865 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6867 fi
6868 done
6869 done
6870 IFS=$as_save_IFS
6871
6872 fi
6873 fi
6874 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6875 if test -n "$ac_ct_AR"; then
6876 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6877 $as_echo "$ac_ct_AR" >&6; }
6878 else
6879 { $as_echo "$as_me:$LINENO: result: no" >&5
6880 $as_echo "no" >&6; }
6881 fi
6882
6883 if test "x$ac_ct_AR" = x; then
6884 AR="false"
6885 else
6886 case $cross_compiling:$ac_tool_warned in
6887 yes:)
6888 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6890 ac_tool_warned=yes ;;
6891 esac
6892 AR=$ac_ct_AR
6893 fi
6894 else
6895 AR="$ac_cv_prog_AR"
6896 fi
6897
6898 if test -n "$ac_tool_prefix"; then
6899 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6900 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6901 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if test "${ac_cv_prog_RANLIB+set}" = set; then
6904 $as_echo_n "(cached) " >&6
6905 else
6906 if test -n "$RANLIB"; then
6907 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6908 else
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 for as_dir in $PATH
6911 do
6912 IFS=$as_save_IFS
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6916 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6917 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 break 2
6919 fi
6920 done
6921 done
6922 IFS=$as_save_IFS
6923
6924 fi
6925 fi
6926 RANLIB=$ac_cv_prog_RANLIB
6927 if test -n "$RANLIB"; then
6928 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6929 $as_echo "$RANLIB" >&6; }
6930 else
6931 { $as_echo "$as_me:$LINENO: result: no" >&5
6932 $as_echo "no" >&6; }
6933 fi
6934
6935
6936 fi
6937 if test -z "$ac_cv_prog_RANLIB"; then
6938 ac_ct_RANLIB=$RANLIB
6939 # Extract the first word of "ranlib", so it can be a program name with args.
6940 set dummy ranlib; ac_word=$2
6941 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6944 $as_echo_n "(cached) " >&6
6945 else
6946 if test -n "$ac_ct_RANLIB"; then
6947 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6948 else
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6951 do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6956 ac_cv_prog_ac_ct_RANLIB="ranlib"
6957 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6959 fi
6960 done
6961 done
6962 IFS=$as_save_IFS
6963
6964 fi
6965 fi
6966 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6967 if test -n "$ac_ct_RANLIB"; then
6968 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6969 $as_echo "$ac_ct_RANLIB" >&6; }
6970 else
6971 { $as_echo "$as_me:$LINENO: result: no" >&5
6972 $as_echo "no" >&6; }
6973 fi
6974
6975 if test "x$ac_ct_RANLIB" = x; then
6976 RANLIB=":"
6977 else
6978 case $cross_compiling:$ac_tool_warned in
6979 yes:)
6980 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6982 ac_tool_warned=yes ;;
6983 esac
6984 RANLIB=$ac_ct_RANLIB
6985 fi
6986 else
6987 RANLIB="$ac_cv_prog_RANLIB"
6988 fi
6989
6990 if test -n "$ac_tool_prefix"; then
6991 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6992 set dummy ${ac_tool_prefix}strip; ac_word=$2
6993 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6994 $as_echo_n "checking for $ac_word... " >&6; }
6995 if test "${ac_cv_prog_STRIP+set}" = set; then
6996 $as_echo_n "(cached) " >&6
6997 else
6998 if test -n "$STRIP"; then
6999 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7000 else
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH
7003 do
7004 IFS=$as_save_IFS
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7008 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7009 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 break 2
7011 fi
7012 done
7013 done
7014 IFS=$as_save_IFS
7015
7016 fi
7017 fi
7018 STRIP=$ac_cv_prog_STRIP
7019 if test -n "$STRIP"; then
7020 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7021 $as_echo "$STRIP" >&6; }
7022 else
7023 { $as_echo "$as_me:$LINENO: result: no" >&5
7024 $as_echo "no" >&6; }
7025 fi
7026
7027
7028 fi
7029 if test -z "$ac_cv_prog_STRIP"; then
7030 ac_ct_STRIP=$STRIP
7031 # Extract the first word of "strip", so it can be a program name with args.
7032 set dummy strip; ac_word=$2
7033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7034 $as_echo_n "checking for $ac_word... " >&6; }
7035 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7036 $as_echo_n "(cached) " >&6
7037 else
7038 if test -n "$ac_ct_STRIP"; then
7039 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7040 else
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH
7043 do
7044 IFS=$as_save_IFS
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7048 ac_cv_prog_ac_ct_STRIP="strip"
7049 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 break 2
7051 fi
7052 done
7053 done
7054 IFS=$as_save_IFS
7055
7056 fi
7057 fi
7058 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7059 if test -n "$ac_ct_STRIP"; then
7060 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7061 $as_echo "$ac_ct_STRIP" >&6; }
7062 else
7063 { $as_echo "$as_me:$LINENO: result: no" >&5
7064 $as_echo "no" >&6; }
7065 fi
7066
7067 if test "x$ac_ct_STRIP" = x; then
7068 STRIP=":"
7069 else
7070 case $cross_compiling:$ac_tool_warned in
7071 yes:)
7072 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7074 ac_tool_warned=yes ;;
7075 esac
7076 STRIP=$ac_ct_STRIP
7077 fi
7078 else
7079 STRIP="$ac_cv_prog_STRIP"
7080 fi
7081
7082
7083 old_CC="$CC"
7084 old_CFLAGS="$CFLAGS"
7085
7086 # Set sane defaults for various variables
7087 test -z "$AR" && AR=ar
7088 test -z "$AR_FLAGS" && AR_FLAGS=cru
7089 test -z "$AS" && AS=as
7090 test -z "$CC" && CC=cc
7091 test -z "$LTCC" && LTCC=$CC
7092 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7093 test -z "$DLLTOOL" && DLLTOOL=dlltool
7094 test -z "$LD" && LD=ld
7095 test -z "$LN_S" && LN_S="ln -s"
7096 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7097 test -z "$NM" && NM=nm
7098 test -z "$SED" && SED=sed
7099 test -z "$OBJDUMP" && OBJDUMP=objdump
7100 test -z "$RANLIB" && RANLIB=:
7101 test -z "$STRIP" && STRIP=:
7102 test -z "$ac_objext" && ac_objext=o
7103
7104 # Determine commands to create old-style static archives.
7105 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7106 old_postinstall_cmds='chmod 644 $oldlib'
7107 old_postuninstall_cmds=
7108
7109 if test -n "$RANLIB"; then
7110 case $host_os in
7111 openbsd*)
7112 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7113 ;;
7114 *)
7115 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7116 ;;
7117 esac
7118 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7119 fi
7120
7121 for cc_temp in $compiler""; do
7122 case $cc_temp in
7123 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7124 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7125 \-*) ;;
7126 *) break;;
7127 esac
7128 done
7129 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7130
7131
7132 # Only perform the check for file, if the check method requires it
7133 case $deplibs_check_method in
7134 file_magic*)
7135 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7136 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7137 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7138 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7139 $as_echo_n "(cached) " >&6
7140 else
7141 case $MAGIC_CMD in
7142 [\\/*] | ?:[\\/]*)
7143 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7144 ;;
7145 *)
7146 lt_save_MAGIC_CMD="$MAGIC_CMD"
7147 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7148 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7149 for ac_dir in $ac_dummy; do
7150 IFS="$lt_save_ifs"
7151 test -z "$ac_dir" && ac_dir=.
7152 if test -f $ac_dir/${ac_tool_prefix}file; then
7153 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7154 if test -n "$file_magic_test_file"; then
7155 case $deplibs_check_method in
7156 "file_magic "*)
7157 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7158 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7159 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7160 $EGREP "$file_magic_regex" > /dev/null; then
7161 :
7162 else
7163 cat <<EOF 1>&2
7164
7165 *** Warning: the command libtool uses to detect shared libraries,
7166 *** $file_magic_cmd, produces output that libtool cannot recognize.
7167 *** The result is that libtool may fail to recognize shared libraries
7168 *** as such. This will affect the creation of libtool libraries that
7169 *** depend on shared libraries, but programs linked with such libtool
7170 *** libraries will work regardless of this problem. Nevertheless, you
7171 *** may want to report the problem to your system manager and/or to
7172 *** bug-libtool@gnu.org
7173
7174 EOF
7175 fi ;;
7176 esac
7177 fi
7178 break
7179 fi
7180 done
7181 IFS="$lt_save_ifs"
7182 MAGIC_CMD="$lt_save_MAGIC_CMD"
7183 ;;
7184 esac
7185 fi
7186
7187 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7188 if test -n "$MAGIC_CMD"; then
7189 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7190 $as_echo "$MAGIC_CMD" >&6; }
7191 else
7192 { $as_echo "$as_me:$LINENO: result: no" >&5
7193 $as_echo "no" >&6; }
7194 fi
7195
7196 if test -z "$lt_cv_path_MAGIC_CMD"; then
7197 if test -n "$ac_tool_prefix"; then
7198 { $as_echo "$as_me:$LINENO: checking for file" >&5
7199 $as_echo_n "checking for file... " >&6; }
7200 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7201 $as_echo_n "(cached) " >&6
7202 else
7203 case $MAGIC_CMD in
7204 [\\/*] | ?:[\\/]*)
7205 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7206 ;;
7207 *)
7208 lt_save_MAGIC_CMD="$MAGIC_CMD"
7209 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7210 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7211 for ac_dir in $ac_dummy; do
7212 IFS="$lt_save_ifs"
7213 test -z "$ac_dir" && ac_dir=.
7214 if test -f $ac_dir/file; then
7215 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7216 if test -n "$file_magic_test_file"; then
7217 case $deplibs_check_method in
7218 "file_magic "*)
7219 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7220 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7221 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7222 $EGREP "$file_magic_regex" > /dev/null; then
7223 :
7224 else
7225 cat <<EOF 1>&2
7226
7227 *** Warning: the command libtool uses to detect shared libraries,
7228 *** $file_magic_cmd, produces output that libtool cannot recognize.
7229 *** The result is that libtool may fail to recognize shared libraries
7230 *** as such. This will affect the creation of libtool libraries that
7231 *** depend on shared libraries, but programs linked with such libtool
7232 *** libraries will work regardless of this problem. Nevertheless, you
7233 *** may want to report the problem to your system manager and/or to
7234 *** bug-libtool@gnu.org
7235
7236 EOF
7237 fi ;;
7238 esac
7239 fi
7240 break
7241 fi
7242 done
7243 IFS="$lt_save_ifs"
7244 MAGIC_CMD="$lt_save_MAGIC_CMD"
7245 ;;
7246 esac
7247 fi
7248
7249 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7250 if test -n "$MAGIC_CMD"; then
7251 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7252 $as_echo "$MAGIC_CMD" >&6; }
7253 else
7254 { $as_echo "$as_me:$LINENO: result: no" >&5
7255 $as_echo "no" >&6; }
7256 fi
7257
7258 else
7259 MAGIC_CMD=:
7260 fi
7261 fi
7262
7263 fi
7264 ;;
7265 esac
7266
7267
7268 case $host_os in
7269 rhapsody* | darwin*)
7270 if test -n "$ac_tool_prefix"; then
7271 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7272 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7273 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7274 $as_echo_n "checking for $ac_word... " >&6; }
7275 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7276 $as_echo_n "(cached) " >&6
7277 else
7278 if test -n "$DSYMUTIL"; then
7279 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7280 else
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7283 do
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7288 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7289 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7291 fi
7292 done
7293 done
7294 IFS=$as_save_IFS
7295
7296 fi
7297 fi
7298 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7299 if test -n "$DSYMUTIL"; then
7300 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7301 $as_echo "$DSYMUTIL" >&6; }
7302 else
7303 { $as_echo "$as_me:$LINENO: result: no" >&5
7304 $as_echo "no" >&6; }
7305 fi
7306
7307
7308 fi
7309 if test -z "$ac_cv_prog_DSYMUTIL"; then
7310 ac_ct_DSYMUTIL=$DSYMUTIL
7311 # Extract the first word of "dsymutil", so it can be a program name with args.
7312 set dummy dsymutil; ac_word=$2
7313 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7314 $as_echo_n "checking for $ac_word... " >&6; }
7315 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7316 $as_echo_n "(cached) " >&6
7317 else
7318 if test -n "$ac_ct_DSYMUTIL"; then
7319 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7320 else
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 for as_dir in $PATH
7323 do
7324 IFS=$as_save_IFS
7325 test -z "$as_dir" && as_dir=.
7326 for ac_exec_ext in '' $ac_executable_extensions; do
7327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7328 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7329 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 break 2
7331 fi
7332 done
7333 done
7334 IFS=$as_save_IFS
7335
7336 fi
7337 fi
7338 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7339 if test -n "$ac_ct_DSYMUTIL"; then
7340 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7341 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7342 else
7343 { $as_echo "$as_me:$LINENO: result: no" >&5
7344 $as_echo "no" >&6; }
7345 fi
7346
7347 if test "x$ac_ct_DSYMUTIL" = x; then
7348 DSYMUTIL=":"
7349 else
7350 case $cross_compiling:$ac_tool_warned in
7351 yes:)
7352 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7354 ac_tool_warned=yes ;;
7355 esac
7356 DSYMUTIL=$ac_ct_DSYMUTIL
7357 fi
7358 else
7359 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7360 fi
7361
7362 if test -n "$ac_tool_prefix"; then
7363 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7364 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7365 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7366 $as_echo_n "checking for $ac_word... " >&6; }
7367 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7368 $as_echo_n "(cached) " >&6
7369 else
7370 if test -n "$NMEDIT"; then
7371 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7372 else
7373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374 for as_dir in $PATH
7375 do
7376 IFS=$as_save_IFS
7377 test -z "$as_dir" && as_dir=.
7378 for ac_exec_ext in '' $ac_executable_extensions; do
7379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7380 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7381 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 break 2
7383 fi
7384 done
7385 done
7386 IFS=$as_save_IFS
7387
7388 fi
7389 fi
7390 NMEDIT=$ac_cv_prog_NMEDIT
7391 if test -n "$NMEDIT"; then
7392 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7393 $as_echo "$NMEDIT" >&6; }
7394 else
7395 { $as_echo "$as_me:$LINENO: result: no" >&5
7396 $as_echo "no" >&6; }
7397 fi
7398
7399
7400 fi
7401 if test -z "$ac_cv_prog_NMEDIT"; then
7402 ac_ct_NMEDIT=$NMEDIT
7403 # Extract the first word of "nmedit", so it can be a program name with args.
7404 set dummy nmedit; ac_word=$2
7405 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7406 $as_echo_n "checking for $ac_word... " >&6; }
7407 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7408 $as_echo_n "(cached) " >&6
7409 else
7410 if test -n "$ac_ct_NMEDIT"; then
7411 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7412 else
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 for as_dir in $PATH
7415 do
7416 IFS=$as_save_IFS
7417 test -z "$as_dir" && as_dir=.
7418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7420 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7421 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 break 2
7423 fi
7424 done
7425 done
7426 IFS=$as_save_IFS
7427
7428 fi
7429 fi
7430 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7431 if test -n "$ac_ct_NMEDIT"; then
7432 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7433 $as_echo "$ac_ct_NMEDIT" >&6; }
7434 else
7435 { $as_echo "$as_me:$LINENO: result: no" >&5
7436 $as_echo "no" >&6; }
7437 fi
7438
7439 if test "x$ac_ct_NMEDIT" = x; then
7440 NMEDIT=":"
7441 else
7442 case $cross_compiling:$ac_tool_warned in
7443 yes:)
7444 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7446 ac_tool_warned=yes ;;
7447 esac
7448 NMEDIT=$ac_ct_NMEDIT
7449 fi
7450 else
7451 NMEDIT="$ac_cv_prog_NMEDIT"
7452 fi
7453
7454
7455 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7456 $as_echo_n "checking for -single_module linker flag... " >&6; }
7457 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7458 $as_echo_n "(cached) " >&6
7459 else
7460 lt_cv_apple_cc_single_mod=no
7461 if test -z "${LT_MULTI_MODULE}"; then
7462 # By default we will add the -single_module flag. You can override
7463 # by either setting the environment variable LT_MULTI_MODULE
7464 # non-empty at configure time, or by adding -multi_module to the
7465 # link flags.
7466 echo "int foo(void){return 1;}" > conftest.c
7467 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7468 -dynamiclib ${wl}-single_module conftest.c
7469 if test -f libconftest.dylib; then
7470 lt_cv_apple_cc_single_mod=yes
7471 rm -rf libconftest.dylib*
7472 fi
7473 rm conftest.c
7474 fi
7475 fi
7476 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7477 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7478 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7479 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7480 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7481 $as_echo_n "(cached) " >&6
7482 else
7483 lt_cv_ld_exported_symbols_list=no
7484 save_LDFLAGS=$LDFLAGS
7485 echo "_main" > conftest.sym
7486 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7487 cat >conftest.$ac_ext <<_ACEOF
7488 /* confdefs.h. */
7489 _ACEOF
7490 cat confdefs.h >>conftest.$ac_ext
7491 cat >>conftest.$ac_ext <<_ACEOF
7492 /* end confdefs.h. */
7493
7494 int
7495 main ()
7496 {
7497
7498 ;
7499 return 0;
7500 }
7501 _ACEOF
7502 rm -f conftest.$ac_objext conftest$ac_exeext
7503 if { (ac_try="$ac_link"
7504 case "(($ac_try" in
7505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7506 *) ac_try_echo=$ac_try;;
7507 esac
7508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7509 $as_echo "$ac_try_echo") >&5
7510 (eval "$ac_link") 2>conftest.er1
7511 ac_status=$?
7512 grep -v '^ *+' conftest.er1 >conftest.err
7513 rm -f conftest.er1
7514 cat conftest.err >&5
7515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } && {
7517 test -z "$ac_c_werror_flag" ||
7518 test ! -s conftest.err
7519 } && test -s conftest$ac_exeext && {
7520 test "$cross_compiling" = yes ||
7521 $as_test_x conftest$ac_exeext
7522 }; then
7523 lt_cv_ld_exported_symbols_list=yes
7524 else
7525 $as_echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7527
7528 lt_cv_ld_exported_symbols_list=no
7529 fi
7530
7531 rm -rf conftest.dSYM
7532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7533 conftest$ac_exeext conftest.$ac_ext
7534 LDFLAGS="$save_LDFLAGS"
7535
7536 fi
7537 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7538 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7539 case $host_os in
7540 rhapsody* | darwin1.[0123])
7541 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7542 darwin1.*)
7543 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7544 darwin*)
7545 # if running on 10.5 or later, the deployment target defaults
7546 # to the OS version, if on x86, and 10.4, the deployment
7547 # target defaults to 10.4. Don't you love it?
7548 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7549 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7550 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7551 10.[012]*)
7552 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7553 10.*)
7554 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7555 esac
7556 ;;
7557 esac
7558 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7559 _lt_dar_single_mod='$single_module'
7560 fi
7561 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7562 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7563 else
7564 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7565 fi
7566 if test "$DSYMUTIL" != ":"; then
7567 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7568 else
7569 _lt_dsymutil=
7570 fi
7571 ;;
7572 esac
7573
7574
7575 enable_dlopen=no
7576 enable_win32_dll=no
7577
7578 # Check whether --enable-libtool-lock was given.
7579 if test "${enable_libtool_lock+set}" = set; then
7580 enableval=$enable_libtool_lock;
7581 fi
7582
7583 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7584
7585
7586 # Check whether --with-pic was given.
7587 if test "${with_pic+set}" = set; then
7588 withval=$with_pic; pic_mode="$withval"
7589 else
7590 pic_mode=default
7591 fi
7592
7593 test -z "$pic_mode" && pic_mode=default
7594
7595 # Use C for the default configuration in the libtool script
7596 tagname=
7597 lt_save_CC="$CC"
7598 ac_ext=c
7599 ac_cpp='$CPP $CPPFLAGS'
7600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7603
7604
7605 # Source file extension for C test sources.
7606 ac_ext=c
7607
7608 # Object file extension for compiled C test sources.
7609 objext=o
7610 objext=$objext
7611
7612 # Code to be used in simple compile tests
7613 lt_simple_compile_test_code="int some_variable = 0;"
7614
7615 # Code to be used in simple link tests
7616 lt_simple_link_test_code='int main(){return(0);}'
7617
7618
7619 # If no C compiler was specified, use CC.
7620 LTCC=${LTCC-"$CC"}
7621
7622 # If no C compiler flags were specified, use CFLAGS.
7623 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7624
7625 # Allow CC to be a program name with arguments.
7626 compiler=$CC
7627
7628
7629 # save warnings/boilerplate of simple test code
7630 ac_outfile=conftest.$ac_objext
7631 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7632 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7633 _lt_compiler_boilerplate=`cat conftest.err`
7634 $rm conftest*
7635
7636 ac_outfile=conftest.$ac_objext
7637 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7638 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7639 _lt_linker_boilerplate=`cat conftest.err`
7640 $rm -r conftest*
7641
7642
7643
7644 lt_prog_compiler_no_builtin_flag=
7645
7646 if test "$GCC" = yes; then
7647 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7648
7649
7650 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7651 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7652 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7653 $as_echo_n "(cached) " >&6
7654 else
7655 lt_cv_prog_compiler_rtti_exceptions=no
7656 ac_outfile=conftest.$ac_objext
7657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7658 lt_compiler_flag="-fno-rtti -fno-exceptions"
7659 # Insert the option either (1) after the last *FLAGS variable, or
7660 # (2) before a word containing "conftest.", or (3) at the end.
7661 # Note that $ac_compile itself does not contain backslashes and begins
7662 # with a dollar sign (not a hyphen), so the echo should work correctly.
7663 # The option is referenced via a variable to avoid confusing sed.
7664 lt_compile=`echo "$ac_compile" | $SED \
7665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7667 -e 's:$: $lt_compiler_flag:'`
7668 (eval echo "\"\$as_me:7668: $lt_compile\"" >&5)
7669 (eval "$lt_compile" 2>conftest.err)
7670 ac_status=$?
7671 cat conftest.err >&5
7672 echo "$as_me:7672: \$? = $ac_status" >&5
7673 if (exit $ac_status) && test -s "$ac_outfile"; then
7674 # The compiler can only warn and ignore the option if not recognized
7675 # So say no if there are warnings other than the usual output.
7676 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7678 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7679 lt_cv_prog_compiler_rtti_exceptions=yes
7680 fi
7681 fi
7682 $rm conftest*
7683
7684 fi
7685 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7686 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7687
7688 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7689 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7690 else
7691 :
7692 fi
7693
7694 fi
7695
7696 lt_prog_compiler_wl=
7697 lt_prog_compiler_pic=
7698 lt_prog_compiler_static=
7699
7700 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7701 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7702
7703 if test "$GCC" = yes; then
7704 lt_prog_compiler_wl='-Wl,'
7705 lt_prog_compiler_static='-static'
7706
7707 case $host_os in
7708 aix*)
7709 # All AIX code is PIC.
7710 if test "$host_cpu" = ia64; then
7711 # AIX 5 now supports IA64 processor
7712 lt_prog_compiler_static='-Bstatic'
7713 fi
7714 ;;
7715
7716 amigaos*)
7717 # FIXME: we need at least 68020 code to build shared libraries, but
7718 # adding the `-m68020' flag to GCC prevents building anything better,
7719 # like `-m68040'.
7720 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7721 ;;
7722
7723 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7724 # PIC is the default for these OSes.
7725 ;;
7726
7727 mingw* | cygwin* | pw32* | os2*)
7728 # This hack is so that the source file can tell whether it is being
7729 # built for inclusion in a dll (and should export symbols for example).
7730 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7731 # (--disable-auto-import) libraries
7732 lt_prog_compiler_pic='-DDLL_EXPORT'
7733 ;;
7734
7735 darwin* | rhapsody*)
7736 # PIC is the default on this platform
7737 # Common symbols not allowed in MH_DYLIB files
7738 lt_prog_compiler_pic='-fno-common'
7739 ;;
7740
7741 interix[3-9]*)
7742 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7743 # Instead, we relocate shared libraries at runtime.
7744 ;;
7745
7746 msdosdjgpp*)
7747 # Just because we use GCC doesn't mean we suddenly get shared libraries
7748 # on systems that don't support them.
7749 lt_prog_compiler_can_build_shared=no
7750 enable_shared=no
7751 ;;
7752
7753 sysv4*MP*)
7754 if test -d /usr/nec; then
7755 lt_prog_compiler_pic=-Kconform_pic
7756 fi
7757 ;;
7758
7759 hpux*)
7760 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7761 # not for PA HP-UX.
7762 case $host_cpu in
7763 hppa*64*|ia64*)
7764 # +Z the default
7765 ;;
7766 *)
7767 lt_prog_compiler_pic='-fPIC'
7768 ;;
7769 esac
7770 ;;
7771
7772 *)
7773 lt_prog_compiler_pic='-fPIC'
7774 ;;
7775 esac
7776 else
7777 # PORTME Check for flag to pass linker flags through the system compiler.
7778 case $host_os in
7779 aix*)
7780 lt_prog_compiler_wl='-Wl,'
7781 if test "$host_cpu" = ia64; then
7782 # AIX 5 now supports IA64 processor
7783 lt_prog_compiler_static='-Bstatic'
7784 else
7785 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7786 fi
7787 ;;
7788 darwin*)
7789 # PIC is the default on this platform
7790 # Common symbols not allowed in MH_DYLIB files
7791 case $cc_basename in
7792 xlc*)
7793 lt_prog_compiler_pic='-qnocommon'
7794 lt_prog_compiler_wl='-Wl,'
7795 ;;
7796 esac
7797 ;;
7798
7799 mingw* | cygwin* | pw32* | os2*)
7800 # This hack is so that the source file can tell whether it is being
7801 # built for inclusion in a dll (and should export symbols for example).
7802 lt_prog_compiler_pic='-DDLL_EXPORT'
7803 ;;
7804
7805 hpux9* | hpux10* | hpux11*)
7806 lt_prog_compiler_wl='-Wl,'
7807 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7808 # not for PA HP-UX.
7809 case $host_cpu in
7810 hppa*64*|ia64*)
7811 # +Z the default
7812 ;;
7813 *)
7814 lt_prog_compiler_pic='+Z'
7815 ;;
7816 esac
7817 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7818 lt_prog_compiler_static='${wl}-a ${wl}archive'
7819 ;;
7820
7821 irix5* | irix6* | nonstopux*)
7822 lt_prog_compiler_wl='-Wl,'
7823 # PIC (with -KPIC) is the default.
7824 lt_prog_compiler_static='-non_shared'
7825 ;;
7826
7827 newsos6)
7828 lt_prog_compiler_pic='-KPIC'
7829 lt_prog_compiler_static='-Bstatic'
7830 ;;
7831
7832 linux* | k*bsd*-gnu)
7833 case $cc_basename in
7834 icc* | ecc*)
7835 lt_prog_compiler_wl='-Wl,'
7836 lt_prog_compiler_pic='-KPIC'
7837 lt_prog_compiler_static='-static'
7838 ;;
7839 pgcc* | pgf77* | pgf90* | pgf95*)
7840 # Portland Group compilers (*not* the Pentium gcc compiler,
7841 # which looks to be a dead project)
7842 lt_prog_compiler_wl='-Wl,'
7843 lt_prog_compiler_pic='-fpic'
7844 lt_prog_compiler_static='-Bstatic'
7845 ;;
7846 ccc*)
7847 lt_prog_compiler_wl='-Wl,'
7848 # All Alpha code is PIC.
7849 lt_prog_compiler_static='-non_shared'
7850 ;;
7851 *)
7852 case `$CC -V 2>&1 | sed 5q` in
7853 *Sun\ C*)
7854 # Sun C 5.9
7855 lt_prog_compiler_pic='-KPIC'
7856 lt_prog_compiler_static='-Bstatic'
7857 lt_prog_compiler_wl='-Wl,'
7858 ;;
7859 *Sun\ F*)
7860 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7861 lt_prog_compiler_pic='-KPIC'
7862 lt_prog_compiler_static='-Bstatic'
7863 lt_prog_compiler_wl=''
7864 ;;
7865 esac
7866 ;;
7867 esac
7868 ;;
7869
7870 osf3* | osf4* | osf5*)
7871 lt_prog_compiler_wl='-Wl,'
7872 # All OSF/1 code is PIC.
7873 lt_prog_compiler_static='-non_shared'
7874 ;;
7875
7876 rdos*)
7877 lt_prog_compiler_static='-non_shared'
7878 ;;
7879
7880 solaris*)
7881 lt_prog_compiler_pic='-KPIC'
7882 lt_prog_compiler_static='-Bstatic'
7883 case $cc_basename in
7884 f77* | f90* | f95*)
7885 lt_prog_compiler_wl='-Qoption ld ';;
7886 *)
7887 lt_prog_compiler_wl='-Wl,';;
7888 esac
7889 ;;
7890
7891 sunos4*)
7892 lt_prog_compiler_wl='-Qoption ld '
7893 lt_prog_compiler_pic='-PIC'
7894 lt_prog_compiler_static='-Bstatic'
7895 ;;
7896
7897 sysv4 | sysv4.2uw2* | sysv4.3*)
7898 lt_prog_compiler_wl='-Wl,'
7899 lt_prog_compiler_pic='-KPIC'
7900 lt_prog_compiler_static='-Bstatic'
7901 ;;
7902
7903 sysv4*MP*)
7904 if test -d /usr/nec ;then
7905 lt_prog_compiler_pic='-Kconform_pic'
7906 lt_prog_compiler_static='-Bstatic'
7907 fi
7908 ;;
7909
7910 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7911 lt_prog_compiler_wl='-Wl,'
7912 lt_prog_compiler_pic='-KPIC'
7913 lt_prog_compiler_static='-Bstatic'
7914 ;;
7915
7916 unicos*)
7917 lt_prog_compiler_wl='-Wl,'
7918 lt_prog_compiler_can_build_shared=no
7919 ;;
7920
7921 uts4*)
7922 lt_prog_compiler_pic='-pic'
7923 lt_prog_compiler_static='-Bstatic'
7924 ;;
7925
7926 *)
7927 lt_prog_compiler_can_build_shared=no
7928 ;;
7929 esac
7930 fi
7931
7932 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7933 $as_echo "$lt_prog_compiler_pic" >&6; }
7934
7935 #
7936 # Check to make sure the PIC flag actually works.
7937 #
7938 if test -n "$lt_prog_compiler_pic"; then
7939
7940 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7941 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7942 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7943 $as_echo_n "(cached) " >&6
7944 else
7945 lt_cv_prog_compiler_pic_works=no
7946 ac_outfile=conftest.$ac_objext
7947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7948 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7949 # Insert the option either (1) after the last *FLAGS variable, or
7950 # (2) before a word containing "conftest.", or (3) at the end.
7951 # Note that $ac_compile itself does not contain backslashes and begins
7952 # with a dollar sign (not a hyphen), so the echo should work correctly.
7953 # The option is referenced via a variable to avoid confusing sed.
7954 lt_compile=`echo "$ac_compile" | $SED \
7955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7957 -e 's:$: $lt_compiler_flag:'`
7958 (eval echo "\"\$as_me:7958: $lt_compile\"" >&5)
7959 (eval "$lt_compile" 2>conftest.err)
7960 ac_status=$?
7961 cat conftest.err >&5
7962 echo "$as_me:7962: \$? = $ac_status" >&5
7963 if (exit $ac_status) && test -s "$ac_outfile"; then
7964 # The compiler can only warn and ignore the option if not recognized
7965 # So say no if there are warnings other than the usual output.
7966 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7967 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7968 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7969 lt_cv_prog_compiler_pic_works=yes
7970 fi
7971 fi
7972 $rm conftest*
7973
7974 fi
7975 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7976 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7977
7978 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7979 case $lt_prog_compiler_pic in
7980 "" | " "*) ;;
7981 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7982 esac
7983 else
7984 lt_prog_compiler_pic=
7985 lt_prog_compiler_can_build_shared=no
7986 fi
7987
7988 fi
7989 case $host_os in
7990 # For platforms which do not support PIC, -DPIC is meaningless:
7991 *djgpp*)
7992 lt_prog_compiler_pic=
7993 ;;
7994 *)
7995 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7996 ;;
7997 esac
7998
7999 #
8000 # Check to make sure the static flag actually works.
8001 #
8002 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8003 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8004 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8005 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8006 $as_echo_n "(cached) " >&6
8007 else
8008 lt_cv_prog_compiler_static_works=no
8009 save_LDFLAGS="$LDFLAGS"
8010 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8011 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8012 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8013 # The linker can only warn and ignore the option if not recognized
8014 # So say no if there are warnings
8015 if test -s conftest.err; then
8016 # Append any errors to the config.log.
8017 cat conftest.err 1>&5
8018 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8019 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8020 if diff conftest.exp conftest.er2 >/dev/null; then
8021 lt_cv_prog_compiler_static_works=yes
8022 fi
8023 else
8024 lt_cv_prog_compiler_static_works=yes
8025 fi
8026 fi
8027 $rm -r conftest*
8028 LDFLAGS="$save_LDFLAGS"
8029
8030 fi
8031 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8032 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8033
8034 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8035 :
8036 else
8037 lt_prog_compiler_static=
8038 fi
8039
8040
8041 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8042 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8043 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8044 $as_echo_n "(cached) " >&6
8045 else
8046 lt_cv_prog_compiler_c_o=no
8047 $rm -r conftest 2>/dev/null
8048 mkdir conftest
8049 cd conftest
8050 mkdir out
8051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8052
8053 lt_compiler_flag="-o out/conftest2.$ac_objext"
8054 # Insert the option either (1) after the last *FLAGS variable, or
8055 # (2) before a word containing "conftest.", or (3) at the end.
8056 # Note that $ac_compile itself does not contain backslashes and begins
8057 # with a dollar sign (not a hyphen), so the echo should work correctly.
8058 lt_compile=`echo "$ac_compile" | $SED \
8059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8061 -e 's:$: $lt_compiler_flag:'`
8062 (eval echo "\"\$as_me:8062: $lt_compile\"" >&5)
8063 (eval "$lt_compile" 2>out/conftest.err)
8064 ac_status=$?
8065 cat out/conftest.err >&5
8066 echo "$as_me:8066: \$? = $ac_status" >&5
8067 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8068 then
8069 # The compiler can only warn and ignore the option if not recognized
8070 # So say no if there are warnings
8071 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8072 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8073 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8074 lt_cv_prog_compiler_c_o=yes
8075 fi
8076 fi
8077 chmod u+w . 2>&5
8078 $rm conftest*
8079 # SGI C++ compiler will create directory out/ii_files/ for
8080 # template instantiation
8081 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8082 $rm out/* && rmdir out
8083 cd ..
8084 rmdir conftest
8085 $rm conftest*
8086
8087 fi
8088 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8089 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8090
8091
8092 hard_links="nottested"
8093 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8094 # do not overwrite the value of need_locks provided by the user
8095 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8096 $as_echo_n "checking if we can lock with hard links... " >&6; }
8097 hard_links=yes
8098 $rm conftest*
8099 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8100 touch conftest.a
8101 ln conftest.a conftest.b 2>&5 || hard_links=no
8102 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8103 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8104 $as_echo "$hard_links" >&6; }
8105 if test "$hard_links" = no; then
8106 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8107 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8108 need_locks=warn
8109 fi
8110 else
8111 need_locks=no
8112 fi
8113
8114 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8115 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8116
8117 runpath_var=
8118 allow_undefined_flag=
8119 enable_shared_with_static_runtimes=no
8120 archive_cmds=
8121 archive_expsym_cmds=
8122 old_archive_From_new_cmds=
8123 old_archive_from_expsyms_cmds=
8124 export_dynamic_flag_spec=
8125 whole_archive_flag_spec=
8126 thread_safe_flag_spec=
8127 hardcode_libdir_flag_spec=
8128 hardcode_libdir_flag_spec_ld=
8129 hardcode_libdir_separator=
8130 hardcode_direct=no
8131 hardcode_minus_L=no
8132 hardcode_shlibpath_var=unsupported
8133 link_all_deplibs=unknown
8134 hardcode_automatic=no
8135 module_cmds=
8136 module_expsym_cmds=
8137 always_export_symbols=no
8138 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8139 # include_expsyms should be a list of space-separated symbols to be *always*
8140 # included in the symbol list
8141 include_expsyms=
8142 # exclude_expsyms can be an extended regexp of symbols to exclude
8143 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8144 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8145 # as well as any symbol that contains `d'.
8146 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8147 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8148 # platforms (ab)use it in PIC code, but their linkers get confused if
8149 # the symbol is explicitly referenced. Since portable code cannot
8150 # rely on this symbol name, it's probably fine to never include it in
8151 # preloaded symbol tables.
8152 # Exclude shared library initialization/finalization symbols.
8153 extract_expsyms_cmds=
8154 # Just being paranoid about ensuring that cc_basename is set.
8155 for cc_temp in $compiler""; do
8156 case $cc_temp in
8157 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8158 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8159 \-*) ;;
8160 *) break;;
8161 esac
8162 done
8163 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8164
8165 case $host_os in
8166 cygwin* | mingw* | pw32*)
8167 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8168 # When not using gcc, we currently assume that we are using
8169 # Microsoft Visual C++.
8170 if test "$GCC" != yes; then
8171 with_gnu_ld=no
8172 fi
8173 ;;
8174 interix*)
8175 # we just hope/assume this is gcc and not c89 (= MSVC++)
8176 with_gnu_ld=yes
8177 ;;
8178 openbsd*)
8179 with_gnu_ld=no
8180 ;;
8181 esac
8182
8183 ld_shlibs=yes
8184 if test "$with_gnu_ld" = yes; then
8185 # If archive_cmds runs LD, not CC, wlarc should be empty
8186 wlarc='${wl}'
8187
8188 # Set some defaults for GNU ld with shared library support. These
8189 # are reset later if shared libraries are not supported. Putting them
8190 # here allows them to be overridden if necessary.
8191 runpath_var=LD_RUN_PATH
8192 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8193 export_dynamic_flag_spec='${wl}--export-dynamic'
8194 # ancient GNU ld didn't support --whole-archive et. al.
8195 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8196 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8197 else
8198 whole_archive_flag_spec=
8199 fi
8200 supports_anon_versioning=no
8201 case `$LD -v 2>/dev/null` in
8202 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8203 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8204 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8205 *\ 2.11.*) ;; # other 2.11 versions
8206 *) supports_anon_versioning=yes ;;
8207 esac
8208
8209 # See if GNU ld supports shared libraries.
8210 case $host_os in
8211 aix[3-9]*)
8212 # On AIX/PPC, the GNU linker is very broken
8213 if test "$host_cpu" != ia64; then
8214 ld_shlibs=no
8215 cat <<EOF 1>&2
8216
8217 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8218 *** to be unable to reliably create shared libraries on AIX.
8219 *** Therefore, libtool is disabling shared libraries support. If you
8220 *** really care for shared libraries, you may want to modify your PATH
8221 *** so that a non-GNU linker is found, and then restart.
8222
8223 EOF
8224 fi
8225 ;;
8226
8227 amigaos*)
8228 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)'
8229 hardcode_libdir_flag_spec='-L$libdir'
8230 hardcode_minus_L=yes
8231
8232 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
8233 # that the semantics of dynamic libraries on AmigaOS, at least up
8234 # to version 4, is to share data among multiple programs linked
8235 # with the same dynamic library. Since this doesn't match the
8236 # behavior of shared libraries on other platforms, we can't use
8237 # them.
8238 ld_shlibs=no
8239 ;;
8240
8241 beos*)
8242 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8243 allow_undefined_flag=unsupported
8244 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8245 # support --undefined. This deserves some investigation. FIXME
8246 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8247 else
8248 ld_shlibs=no
8249 fi
8250 ;;
8251
8252 cygwin* | mingw* | pw32*)
8253 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8254 # as there is no search path for DLLs.
8255 hardcode_libdir_flag_spec='-L$libdir'
8256 allow_undefined_flag=unsupported
8257 always_export_symbols=no
8258 enable_shared_with_static_runtimes=yes
8259 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8260
8261 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8263 # If the export-symbols file already is a .def file (1st line
8264 # is EXPORTS), use it as is; otherwise, prepend...
8265 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8266 cp $export_symbols $output_objdir/$soname.def;
8267 else
8268 echo EXPORTS > $output_objdir/$soname.def;
8269 cat $export_symbols >> $output_objdir/$soname.def;
8270 fi~
8271 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8272 else
8273 ld_shlibs=no
8274 fi
8275 ;;
8276
8277 interix[3-9]*)
8278 hardcode_direct=no
8279 hardcode_shlibpath_var=no
8280 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8281 export_dynamic_flag_spec='${wl}-E'
8282 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8283 # Instead, shared libraries are loaded at an image base (0x10000000 by
8284 # default) and relocated if they conflict, which is a slow very memory
8285 # consuming and fragmenting process. To avoid this, we pick a random,
8286 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8287 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8288 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8289 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'
8290 ;;
8291
8292 gnu* | linux* | k*bsd*-gnu)
8293 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8294 tmp_addflag=
8295 case $cc_basename,$host_cpu in
8296 pgcc*) # Portland Group C compiler
8297 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'
8298 tmp_addflag=' $pic_flag'
8299 ;;
8300 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8301 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'
8302 tmp_addflag=' $pic_flag -Mnomain' ;;
8303 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8304 tmp_addflag=' -i_dynamic' ;;
8305 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8306 tmp_addflag=' -i_dynamic -nofor_main' ;;
8307 ifc* | ifort*) # Intel Fortran compiler
8308 tmp_addflag=' -nofor_main' ;;
8309 esac
8310 case `$CC -V 2>&1 | sed 5q` in
8311 *Sun\ C*) # Sun C 5.9
8312 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'
8313 tmp_sharedflag='-G' ;;
8314 *Sun\ F*) # Sun Fortran 8.3
8315 tmp_sharedflag='-G' ;;
8316 *)
8317 tmp_sharedflag='-shared' ;;
8318 esac
8319 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8320
8321 if test $supports_anon_versioning = yes; then
8322 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8323 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8324 $echo "local: *; };" >> $output_objdir/$libname.ver~
8325 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8326 fi
8327 else
8328 ld_shlibs=no
8329 fi
8330 ;;
8331
8332 netbsd*)
8333 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8334 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8335 wlarc=
8336 else
8337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8338 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8339 fi
8340 ;;
8341
8342 solaris*)
8343 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8344 ld_shlibs=no
8345 cat <<EOF 1>&2
8346
8347 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8348 *** create shared libraries on Solaris systems. Therefore, libtool
8349 *** is disabling shared libraries support. We urge you to upgrade GNU
8350 *** binutils to release 2.9.1 or newer. Another option is to modify
8351 *** your PATH or compiler configuration so that the native linker is
8352 *** used, and then restart.
8353
8354 EOF
8355 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8357 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8358 else
8359 ld_shlibs=no
8360 fi
8361 ;;
8362
8363 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8364 case `$LD -v 2>&1` in
8365 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8366 ld_shlibs=no
8367 cat <<_LT_EOF 1>&2
8368
8369 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8370 *** reliably create shared libraries on SCO systems. Therefore, libtool
8371 *** is disabling shared libraries support. We urge you to upgrade GNU
8372 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8373 *** your PATH or compiler configuration so that the native linker is
8374 *** used, and then restart.
8375
8376 _LT_EOF
8377 ;;
8378 *)
8379 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8380 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8381 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8382 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8383 else
8384 ld_shlibs=no
8385 fi
8386 ;;
8387 esac
8388 ;;
8389
8390 sunos4*)
8391 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8392 wlarc=
8393 hardcode_direct=yes
8394 hardcode_shlibpath_var=no
8395 ;;
8396
8397 *)
8398 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8400 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8401 else
8402 ld_shlibs=no
8403 fi
8404 ;;
8405 esac
8406
8407 if test "$ld_shlibs" = no; then
8408 runpath_var=
8409 hardcode_libdir_flag_spec=
8410 export_dynamic_flag_spec=
8411 whole_archive_flag_spec=
8412 fi
8413 else
8414 # PORTME fill in a description of your system's linker (not GNU ld)
8415 case $host_os in
8416 aix3*)
8417 allow_undefined_flag=unsupported
8418 always_export_symbols=yes
8419 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'
8420 # Note: this linker hardcodes the directories in LIBPATH if there
8421 # are no directories specified by -L.
8422 hardcode_minus_L=yes
8423 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8424 # Neither direct hardcoding nor static linking is supported with a
8425 # broken collect2.
8426 hardcode_direct=unsupported
8427 fi
8428 ;;
8429
8430 aix[4-9]*)
8431 if test "$host_cpu" = ia64; then
8432 # On IA64, the linker does run time linking by default, so we don't
8433 # have to do anything special.
8434 aix_use_runtimelinking=no
8435 exp_sym_flag='-Bexport'
8436 no_entry_flag=""
8437 else
8438 # If we're using GNU nm, then we don't want the "-C" option.
8439 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8440 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8441 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'
8442 else
8443 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'
8444 fi
8445 aix_use_runtimelinking=no
8446
8447 # Test if we are trying to use run time linking or normal
8448 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8449 # need to do runtime linking.
8450 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8451 for ld_flag in $LDFLAGS; do
8452 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8453 aix_use_runtimelinking=yes
8454 break
8455 fi
8456 done
8457 ;;
8458 esac
8459
8460 exp_sym_flag='-bexport'
8461 no_entry_flag='-bnoentry'
8462 fi
8463
8464 # When large executables or shared objects are built, AIX ld can
8465 # have problems creating the table of contents. If linking a library
8466 # or program results in "error TOC overflow" add -mminimal-toc to
8467 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8468 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8469
8470 archive_cmds=''
8471 hardcode_direct=yes
8472 hardcode_libdir_separator=':'
8473 link_all_deplibs=yes
8474
8475 if test "$GCC" = yes; then
8476 case $host_os in aix4.[012]|aix4.[012].*)
8477 # We only want to do this on AIX 4.2 and lower, the check
8478 # below for broken collect2 doesn't work under 4.3+
8479 collect2name=`${CC} -print-prog-name=collect2`
8480 if test -f "$collect2name" && \
8481 strings "$collect2name" | grep resolve_lib_name >/dev/null
8482 then
8483 # We have reworked collect2
8484 :
8485 else
8486 # We have old collect2
8487 hardcode_direct=unsupported
8488 # It fails to find uninstalled libraries when the uninstalled
8489 # path is not listed in the libpath. Setting hardcode_minus_L
8490 # to unsupported forces relinking
8491 hardcode_minus_L=yes
8492 hardcode_libdir_flag_spec='-L$libdir'
8493 hardcode_libdir_separator=
8494 fi
8495 ;;
8496 esac
8497 shared_flag='-shared'
8498 if test "$aix_use_runtimelinking" = yes; then
8499 shared_flag="$shared_flag "'${wl}-G'
8500 fi
8501 else
8502 # not using gcc
8503 if test "$host_cpu" = ia64; then
8504 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8505 # chokes on -Wl,-G. The following line is correct:
8506 shared_flag='-G'
8507 else
8508 if test "$aix_use_runtimelinking" = yes; then
8509 shared_flag='${wl}-G'
8510 else
8511 shared_flag='${wl}-bM:SRE'
8512 fi
8513 fi
8514 fi
8515
8516 # It seems that -bexpall does not export symbols beginning with
8517 # underscore (_), so it is better to generate a list of symbols to export.
8518 always_export_symbols=yes
8519 if test "$aix_use_runtimelinking" = yes; then
8520 # Warning - without using the other runtime loading flags (-brtl),
8521 # -berok will link without error, but may produce a broken library.
8522 allow_undefined_flag='-berok'
8523 # Determine the default libpath from the value encoded in an empty executable.
8524 cat >conftest.$ac_ext <<_ACEOF
8525 /* confdefs.h. */
8526 _ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h. */
8530
8531 int
8532 main ()
8533 {
8534
8535 ;
8536 return 0;
8537 }
8538 _ACEOF
8539 rm -f conftest.$ac_objext conftest$ac_exeext
8540 if { (ac_try="$ac_link"
8541 case "(($ac_try" in
8542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543 *) ac_try_echo=$ac_try;;
8544 esac
8545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8546 $as_echo "$ac_try_echo") >&5
8547 (eval "$ac_link") 2>conftest.er1
8548 ac_status=$?
8549 grep -v '^ *+' conftest.er1 >conftest.err
8550 rm -f conftest.er1
8551 cat conftest.err >&5
8552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } && {
8554 test -z "$ac_c_werror_flag" ||
8555 test ! -s conftest.err
8556 } && test -s conftest$ac_exeext && {
8557 test "$cross_compiling" = yes ||
8558 $as_test_x conftest$ac_exeext
8559 }; then
8560
8561 lt_aix_libpath_sed='
8562 /Import File Strings/,/^$/ {
8563 /^0/ {
8564 s/^0 *\(.*\)$/\1/
8565 p
8566 }
8567 }'
8568 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8569 # Check for a 64-bit object if we didn't find anything.
8570 if test -z "$aix_libpath"; then
8571 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8572 fi
8573 else
8574 $as_echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8576
8577
8578 fi
8579
8580 rm -rf conftest.dSYM
8581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8582 conftest$ac_exeext conftest.$ac_ext
8583 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8584
8585 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8586 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"
8587 else
8588 if test "$host_cpu" = ia64; then
8589 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8590 allow_undefined_flag="-z nodefs"
8591 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"
8592 else
8593 # Determine the default libpath from the value encoded in an empty executable.
8594 cat >conftest.$ac_ext <<_ACEOF
8595 /* confdefs.h. */
8596 _ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8600
8601 int
8602 main ()
8603 {
8604
8605 ;
8606 return 0;
8607 }
8608 _ACEOF
8609 rm -f conftest.$ac_objext conftest$ac_exeext
8610 if { (ac_try="$ac_link"
8611 case "(($ac_try" in
8612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8613 *) ac_try_echo=$ac_try;;
8614 esac
8615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8616 $as_echo "$ac_try_echo") >&5
8617 (eval "$ac_link") 2>conftest.er1
8618 ac_status=$?
8619 grep -v '^ *+' conftest.er1 >conftest.err
8620 rm -f conftest.er1
8621 cat conftest.err >&5
8622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } && {
8624 test -z "$ac_c_werror_flag" ||
8625 test ! -s conftest.err
8626 } && test -s conftest$ac_exeext && {
8627 test "$cross_compiling" = yes ||
8628 $as_test_x conftest$ac_exeext
8629 }; then
8630
8631 lt_aix_libpath_sed='
8632 /Import File Strings/,/^$/ {
8633 /^0/ {
8634 s/^0 *\(.*\)$/\1/
8635 p
8636 }
8637 }'
8638 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8639 # Check for a 64-bit object if we didn't find anything.
8640 if test -z "$aix_libpath"; then
8641 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8642 fi
8643 else
8644 $as_echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8646
8647
8648 fi
8649
8650 rm -rf conftest.dSYM
8651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8652 conftest$ac_exeext conftest.$ac_ext
8653 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8654
8655 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8656 # Warning - without using the other run time loading flags,
8657 # -berok will link without error, but may produce a broken library.
8658 no_undefined_flag=' ${wl}-bernotok'
8659 allow_undefined_flag=' ${wl}-berok'
8660 # Exported symbols can be pulled into shared objects from archives
8661 whole_archive_flag_spec='$convenience'
8662 archive_cmds_need_lc=yes
8663 # This is similar to how AIX traditionally builds its shared libraries.
8664 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'
8665 fi
8666 fi
8667 ;;
8668
8669 amigaos*)
8670 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)'
8671 hardcode_libdir_flag_spec='-L$libdir'
8672 hardcode_minus_L=yes
8673 # see comment about different semantics on the GNU ld section
8674 ld_shlibs=no
8675 ;;
8676
8677 bsdi[45]*)
8678 export_dynamic_flag_spec=-rdynamic
8679 ;;
8680
8681 cygwin* | mingw* | pw32*)
8682 # When not using gcc, we currently assume that we are using
8683 # Microsoft Visual C++.
8684 # hardcode_libdir_flag_spec is actually meaningless, as there is
8685 # no search path for DLLs.
8686 hardcode_libdir_flag_spec=' '
8687 allow_undefined_flag=unsupported
8688 # Tell ltmain to make .lib files, not .a files.
8689 libext=lib
8690 # Tell ltmain to make .dll files, not .so files.
8691 shrext_cmds=".dll"
8692 # FIXME: Setting linknames here is a bad hack.
8693 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8694 # The linker will automatically build a .lib file if we build a DLL.
8695 old_archive_From_new_cmds='true'
8696 # FIXME: Should let the user specify the lib program.
8697 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8698 fix_srcfile_path='`cygpath -w "$srcfile"`'
8699 enable_shared_with_static_runtimes=yes
8700 ;;
8701
8702 darwin* | rhapsody*)
8703 case $host_os in
8704 rhapsody* | darwin1.[012])
8705 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8706 ;;
8707 *) # Darwin 1.3 on
8708 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8709 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8710 else
8711 case ${MACOSX_DEPLOYMENT_TARGET} in
8712 10.[012])
8713 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8714 ;;
8715 10.*)
8716 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8717 ;;
8718 esac
8719 fi
8720 ;;
8721 esac
8722 archive_cmds_need_lc=no
8723 hardcode_direct=no
8724 hardcode_automatic=yes
8725 hardcode_shlibpath_var=unsupported
8726 whole_archive_flag_spec=''
8727 link_all_deplibs=yes
8728 if test "$GCC" = yes ; then
8729 output_verbose_link_cmd='echo'
8730 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8731 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8732 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8733 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8734 else
8735 case $cc_basename in
8736 xlc*)
8737 output_verbose_link_cmd='echo'
8738 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8739 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8740 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8741 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}'
8742 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}'
8743 ;;
8744 *)
8745 ld_shlibs=no
8746 ;;
8747 esac
8748 fi
8749 ;;
8750
8751 dgux*)
8752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8753 hardcode_libdir_flag_spec='-L$libdir'
8754 hardcode_shlibpath_var=no
8755 ;;
8756
8757 freebsd1*)
8758 ld_shlibs=no
8759 ;;
8760
8761 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8762 # support. Future versions do this automatically, but an explicit c++rt0.o
8763 # does not break anything, and helps significantly (at the cost of a little
8764 # extra space).
8765 freebsd2.2*)
8766 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8767 hardcode_libdir_flag_spec='-R$libdir'
8768 hardcode_direct=yes
8769 hardcode_shlibpath_var=no
8770 ;;
8771
8772 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8773 freebsd2*)
8774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8775 hardcode_direct=yes
8776 hardcode_minus_L=yes
8777 hardcode_shlibpath_var=no
8778 ;;
8779
8780 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8781 freebsd* | dragonfly*)
8782 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8783 hardcode_libdir_flag_spec='-R$libdir'
8784 hardcode_direct=yes
8785 hardcode_shlibpath_var=no
8786 ;;
8787
8788 hpux9*)
8789 if test "$GCC" = yes; then
8790 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'
8791 else
8792 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'
8793 fi
8794 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8795 hardcode_libdir_separator=:
8796 hardcode_direct=yes
8797
8798 # hardcode_minus_L: Not really in the search PATH,
8799 # but as the default location of the library.
8800 hardcode_minus_L=yes
8801 export_dynamic_flag_spec='${wl}-E'
8802 ;;
8803
8804 hpux10*)
8805 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8806 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8807 else
8808 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8809 fi
8810 if test "$with_gnu_ld" = no; then
8811 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8812 hardcode_libdir_separator=:
8813
8814 hardcode_direct=yes
8815 export_dynamic_flag_spec='${wl}-E'
8816
8817 # hardcode_minus_L: Not really in the search PATH,
8818 # but as the default location of the library.
8819 hardcode_minus_L=yes
8820 fi
8821 ;;
8822
8823 hpux11*)
8824 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8825 case $host_cpu in
8826 hppa*64*)
8827 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8828 ;;
8829 ia64*)
8830 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8831 ;;
8832 *)
8833 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8834 ;;
8835 esac
8836 else
8837 case $host_cpu in
8838 hppa*64*)
8839 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8840 ;;
8841 ia64*)
8842 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8843 ;;
8844 *)
8845 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8846 ;;
8847 esac
8848 fi
8849 if test "$with_gnu_ld" = no; then
8850 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8851 hardcode_libdir_separator=:
8852
8853 case $host_cpu in
8854 hppa*64*|ia64*)
8855 hardcode_libdir_flag_spec_ld='+b $libdir'
8856 hardcode_direct=no
8857 hardcode_shlibpath_var=no
8858 ;;
8859 *)
8860 hardcode_direct=yes
8861 export_dynamic_flag_spec='${wl}-E'
8862
8863 # hardcode_minus_L: Not really in the search PATH,
8864 # but as the default location of the library.
8865 hardcode_minus_L=yes
8866 ;;
8867 esac
8868 fi
8869 ;;
8870
8871 irix5* | irix6* | nonstopux*)
8872 if test "$GCC" = yes; then
8873 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'
8874 else
8875 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'
8876 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8877 fi
8878 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8879 hardcode_libdir_separator=:
8880 link_all_deplibs=yes
8881 ;;
8882
8883 netbsd*)
8884 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8885 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8886 else
8887 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8888 fi
8889 hardcode_libdir_flag_spec='-R$libdir'
8890 hardcode_direct=yes
8891 hardcode_shlibpath_var=no
8892 ;;
8893
8894 newsos6)
8895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8896 hardcode_direct=yes
8897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8898 hardcode_libdir_separator=:
8899 hardcode_shlibpath_var=no
8900 ;;
8901
8902 openbsd*)
8903 if test -f /usr/libexec/ld.so; then
8904 hardcode_direct=yes
8905 hardcode_shlibpath_var=no
8906 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8907 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8908 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8909 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8910 export_dynamic_flag_spec='${wl}-E'
8911 else
8912 case $host_os in
8913 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8914 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8915 hardcode_libdir_flag_spec='-R$libdir'
8916 ;;
8917 *)
8918 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8919 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8920 ;;
8921 esac
8922 fi
8923 else
8924 ld_shlibs=no
8925 fi
8926 ;;
8927
8928 os2*)
8929 hardcode_libdir_flag_spec='-L$libdir'
8930 hardcode_minus_L=yes
8931 allow_undefined_flag=unsupported
8932 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'
8933 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8934 ;;
8935
8936 osf3*)
8937 if test "$GCC" = yes; then
8938 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8939 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'
8940 else
8941 allow_undefined_flag=' -expect_unresolved \*'
8942 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'
8943 fi
8944 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8945 hardcode_libdir_separator=:
8946 ;;
8947
8948 osf4* | osf5*) # as osf3* with the addition of -msym flag
8949 if test "$GCC" = yes; then
8950 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8951 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'
8952 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8953 else
8954 allow_undefined_flag=' -expect_unresolved \*'
8955 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'
8956 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8957 $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'
8958
8959 # Both c and cxx compiler support -rpath directly
8960 hardcode_libdir_flag_spec='-rpath $libdir'
8961 fi
8962 hardcode_libdir_separator=:
8963 ;;
8964
8965 solaris*)
8966 no_undefined_flag=' -z text'
8967 if test "$GCC" = yes; then
8968 wlarc='${wl}'
8969 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8970 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8971 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8972 else
8973 wlarc=''
8974 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8975 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8976 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8977 fi
8978 hardcode_libdir_flag_spec='-R$libdir'
8979 hardcode_shlibpath_var=no
8980 case $host_os in
8981 solaris2.[0-5] | solaris2.[0-5].*) ;;
8982 *)
8983 # The compiler driver will combine and reorder linker options,
8984 # but understands `-z linker_flag'. GCC discards it without `$wl',
8985 # but is careful enough not to reorder.
8986 # Supported since Solaris 2.6 (maybe 2.5.1?)
8987 if test "$GCC" = yes; then
8988 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8989 else
8990 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8991 fi
8992 ;;
8993 esac
8994 link_all_deplibs=yes
8995 ;;
8996
8997 sunos4*)
8998 if test "x$host_vendor" = xsequent; then
8999 # Use $CC to link under sequent, because it throws in some extra .o
9000 # files that make .init and .fini sections work.
9001 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9002 else
9003 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9004 fi
9005 hardcode_libdir_flag_spec='-L$libdir'
9006 hardcode_direct=yes
9007 hardcode_minus_L=yes
9008 hardcode_shlibpath_var=no
9009 ;;
9010
9011 sysv4)
9012 case $host_vendor in
9013 sni)
9014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9015 hardcode_direct=yes # is this really true???
9016 ;;
9017 siemens)
9018 ## LD is ld it makes a PLAMLIB
9019 ## CC just makes a GrossModule.
9020 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9021 reload_cmds='$CC -r -o $output$reload_objs'
9022 hardcode_direct=no
9023 ;;
9024 motorola)
9025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9026 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9027 ;;
9028 esac
9029 runpath_var='LD_RUN_PATH'
9030 hardcode_shlibpath_var=no
9031 ;;
9032
9033 sysv4.3*)
9034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9035 hardcode_shlibpath_var=no
9036 export_dynamic_flag_spec='-Bexport'
9037 ;;
9038
9039 sysv4*MP*)
9040 if test -d /usr/nec; then
9041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9042 hardcode_shlibpath_var=no
9043 runpath_var=LD_RUN_PATH
9044 hardcode_runpath_var=yes
9045 ld_shlibs=yes
9046 fi
9047 ;;
9048
9049 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9050 no_undefined_flag='${wl}-z,text'
9051 archive_cmds_need_lc=no
9052 hardcode_shlibpath_var=no
9053 runpath_var='LD_RUN_PATH'
9054
9055 if test "$GCC" = yes; then
9056 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9057 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9058 else
9059 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9060 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9061 fi
9062 ;;
9063
9064 sysv5* | sco3.2v5* | sco5v6*)
9065 # Note: We can NOT use -z defs as we might desire, because we do not
9066 # link with -lc, and that would cause any symbols used from libc to
9067 # always be unresolved, which means just about no library would
9068 # ever link correctly. If we're not using GNU ld we use -z text
9069 # though, which does catch some bad symbols but isn't as heavy-handed
9070 # as -z defs.
9071 no_undefined_flag='${wl}-z,text'
9072 allow_undefined_flag='${wl}-z,nodefs'
9073 archive_cmds_need_lc=no
9074 hardcode_shlibpath_var=no
9075 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9076 hardcode_libdir_separator=':'
9077 link_all_deplibs=yes
9078 export_dynamic_flag_spec='${wl}-Bexport'
9079 runpath_var='LD_RUN_PATH'
9080
9081 if test "$GCC" = yes; then
9082 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9083 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9084 else
9085 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9086 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9087 fi
9088 ;;
9089
9090 uts4*)
9091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9092 hardcode_libdir_flag_spec='-L$libdir'
9093 hardcode_shlibpath_var=no
9094 ;;
9095
9096 *)
9097 ld_shlibs=no
9098 ;;
9099 esac
9100 fi
9101
9102 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9103 $as_echo "$ld_shlibs" >&6; }
9104 test "$ld_shlibs" = no && can_build_shared=no
9105
9106 #
9107 # Do we need to explicitly link libc?
9108 #
9109 case "x$archive_cmds_need_lc" in
9110 x|xyes)
9111 # Assume -lc should be added
9112 archive_cmds_need_lc=yes
9113
9114 if test "$enable_shared" = yes && test "$GCC" = yes; then
9115 case $archive_cmds in
9116 *'~'*)
9117 # FIXME: we may have to deal with multi-command sequences.
9118 ;;
9119 '$CC '*)
9120 # Test whether the compiler implicitly links with -lc since on some
9121 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9122 # to ld, don't add -lc before -lgcc.
9123 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9124 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9125 $rm conftest*
9126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9127
9128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9129 (eval $ac_compile) 2>&5
9130 ac_status=$?
9131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); } 2>conftest.err; then
9133 soname=conftest
9134 lib=conftest
9135 libobjs=conftest.$ac_objext
9136 deplibs=
9137 wl=$lt_prog_compiler_wl
9138 pic_flag=$lt_prog_compiler_pic
9139 compiler_flags=-v
9140 linker_flags=-v
9141 verstring=
9142 output_objdir=.
9143 libname=conftest
9144 lt_save_allow_undefined_flag=$allow_undefined_flag
9145 allow_undefined_flag=
9146 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9147 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9148 ac_status=$?
9149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }
9151 then
9152 archive_cmds_need_lc=no
9153 else
9154 archive_cmds_need_lc=yes
9155 fi
9156 allow_undefined_flag=$lt_save_allow_undefined_flag
9157 else
9158 cat conftest.err 1>&5
9159 fi
9160 $rm conftest*
9161 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9162 $as_echo "$archive_cmds_need_lc" >&6; }
9163 ;;
9164 esac
9165 fi
9166 ;;
9167 esac
9168
9169 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9170 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9171 library_names_spec=
9172 libname_spec='lib$name'
9173 soname_spec=
9174 shrext_cmds=".so"
9175 postinstall_cmds=
9176 postuninstall_cmds=
9177 finish_cmds=
9178 finish_eval=
9179 shlibpath_var=
9180 shlibpath_overrides_runpath=unknown
9181 version_type=none
9182 dynamic_linker="$host_os ld.so"
9183 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9184
9185 if test "$GCC" = yes; then
9186 case $host_os in
9187 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9188 *) lt_awk_arg="/^libraries:/" ;;
9189 esac
9190 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9191 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9192 # if the path contains ";" then we assume it to be the separator
9193 # otherwise default to the standard path separator (i.e. ":") - it is
9194 # assumed that no part of a normal pathname contains ";" but that should
9195 # okay in the real world where ";" in dirpaths is itself problematic.
9196 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9197 else
9198 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9199 fi
9200 # Ok, now we have the path, separated by spaces, we can step through it
9201 # and add multilib dir if necessary.
9202 lt_tmp_lt_search_path_spec=
9203 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9204 for lt_sys_path in $lt_search_path_spec; do
9205 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9206 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9207 else
9208 test -d "$lt_sys_path" && \
9209 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9210 fi
9211 done
9212 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9213 BEGIN {RS=" "; FS="/|\n";} {
9214 lt_foo="";
9215 lt_count=0;
9216 for (lt_i = NF; lt_i > 0; lt_i--) {
9217 if ($lt_i != "" && $lt_i != ".") {
9218 if ($lt_i == "..") {
9219 lt_count++;
9220 } else {
9221 if (lt_count == 0) {
9222 lt_foo="/" $lt_i lt_foo;
9223 } else {
9224 lt_count--;
9225 }
9226 }
9227 }
9228 }
9229 if (lt_foo != "") { lt_freq[lt_foo]++; }
9230 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9231 }'`
9232 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9233 else
9234 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9235 fi
9236 need_lib_prefix=unknown
9237 hardcode_into_libs=no
9238
9239 # when you set need_version to no, make sure it does not cause -set_version
9240 # flags to be left without arguments
9241 need_version=unknown
9242
9243 case $host_os in
9244 aix3*)
9245 version_type=linux
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9247 shlibpath_var=LIBPATH
9248
9249 # AIX 3 has no versioning support, so we append a major version to the name.
9250 soname_spec='${libname}${release}${shared_ext}$major'
9251 ;;
9252
9253 aix[4-9]*)
9254 version_type=linux
9255 need_lib_prefix=no
9256 need_version=no
9257 hardcode_into_libs=yes
9258 if test "$host_cpu" = ia64; then
9259 # AIX 5 supports IA64
9260 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 else
9263 # With GCC up to 2.95.x, collect2 would create an import file
9264 # for dependence libraries. The import file would start with
9265 # the line `#! .'. This would cause the generated library to
9266 # depend on `.', always an invalid library. This was fixed in
9267 # development snapshots of GCC prior to 3.0.
9268 case $host_os in
9269 aix4 | aix4.[01] | aix4.[01].*)
9270 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9271 echo ' yes '
9272 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9273 :
9274 else
9275 can_build_shared=no
9276 fi
9277 ;;
9278 esac
9279 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9280 # soname into executable. Probably we can add versioning support to
9281 # collect2, so additional links can be useful in future.
9282 if test "$aix_use_runtimelinking" = yes; then
9283 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9284 # instead of lib<name>.a to let people know that these are not
9285 # typical AIX shared libraries.
9286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9287 else
9288 # We preserve .a as extension for shared libraries through AIX4.2
9289 # and later when we are not doing run time linking.
9290 library_names_spec='${libname}${release}.a $libname.a'
9291 soname_spec='${libname}${release}${shared_ext}$major'
9292 fi
9293 shlibpath_var=LIBPATH
9294 fi
9295 ;;
9296
9297 amigaos*)
9298 library_names_spec='$libname.ixlibrary $libname.a'
9299 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9300 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'
9301 ;;
9302
9303 beos*)
9304 library_names_spec='${libname}${shared_ext}'
9305 dynamic_linker="$host_os ld.so"
9306 shlibpath_var=LIBRARY_PATH
9307 ;;
9308
9309 bsdi[45]*)
9310 version_type=linux
9311 need_version=no
9312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9313 soname_spec='${libname}${release}${shared_ext}$major'
9314 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9315 shlibpath_var=LD_LIBRARY_PATH
9316 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9317 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9318 # the default ld.so.conf also contains /usr/contrib/lib and
9319 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9320 # libtool to hard-code these into programs
9321 ;;
9322
9323 cygwin* | mingw* | pw32*)
9324 version_type=windows
9325 shrext_cmds=".dll"
9326 need_version=no
9327 need_lib_prefix=no
9328
9329 case $GCC,$host_os in
9330 yes,cygwin* | yes,mingw* | yes,pw32*)
9331 library_names_spec='$libname.dll.a'
9332 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9333 postinstall_cmds='base_file=`basename \${file}`~
9334 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9335 dldir=$destdir/`dirname \$dlpath`~
9336 test -d \$dldir || mkdir -p \$dldir~
9337 $install_prog $dir/$dlname \$dldir/$dlname~
9338 chmod a+x \$dldir/$dlname'
9339 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9340 dlpath=$dir/\$dldll~
9341 $rm \$dlpath'
9342 shlibpath_overrides_runpath=yes
9343
9344 case $host_os in
9345 cygwin*)
9346 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9347 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9348 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9349 ;;
9350 mingw*)
9351 # MinGW DLLs use traditional 'lib' prefix
9352 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9353 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9354 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9355 # It is most probably a Windows format PATH printed by
9356 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9357 # path with ; separators, and with drive letters. We can handle the
9358 # drive letters (cygwin fileutils understands them), so leave them,
9359 # especially as we might pass files found there to a mingw objdump,
9360 # which wouldn't understand a cygwinified path. Ahh.
9361 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9362 else
9363 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9364 fi
9365 ;;
9366 pw32*)
9367 # pw32 DLLs use 'pw' prefix rather than 'lib'
9368 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9369 ;;
9370 esac
9371 ;;
9372
9373 *)
9374 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9375 ;;
9376 esac
9377 dynamic_linker='Win32 ld.exe'
9378 # FIXME: first we should search . and the directory the executable is in
9379 shlibpath_var=PATH
9380 ;;
9381
9382 darwin* | rhapsody*)
9383 dynamic_linker="$host_os dyld"
9384 version_type=darwin
9385 need_lib_prefix=no
9386 need_version=no
9387 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9388 soname_spec='${libname}${release}${major}$shared_ext'
9389 shlibpath_overrides_runpath=yes
9390 shlibpath_var=DYLD_LIBRARY_PATH
9391 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9392
9393 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9394 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9395 ;;
9396
9397 dgux*)
9398 version_type=linux
9399 need_lib_prefix=no
9400 need_version=no
9401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9402 soname_spec='${libname}${release}${shared_ext}$major'
9403 shlibpath_var=LD_LIBRARY_PATH
9404 ;;
9405
9406 freebsd1*)
9407 dynamic_linker=no
9408 ;;
9409
9410 freebsd* | dragonfly*)
9411 # DragonFly does not have aout. When/if they implement a new
9412 # versioning mechanism, adjust this.
9413 if test -x /usr/bin/objformat; then
9414 objformat=`/usr/bin/objformat`
9415 else
9416 case $host_os in
9417 freebsd[123]*) objformat=aout ;;
9418 *) objformat=elf ;;
9419 esac
9420 fi
9421 version_type=freebsd-$objformat
9422 case $version_type in
9423 freebsd-elf*)
9424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9425 need_version=no
9426 need_lib_prefix=no
9427 ;;
9428 freebsd-*)
9429 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9430 need_version=yes
9431 ;;
9432 esac
9433 shlibpath_var=LD_LIBRARY_PATH
9434 case $host_os in
9435 freebsd2*)
9436 shlibpath_overrides_runpath=yes
9437 ;;
9438 freebsd3.[01]* | freebsdelf3.[01]*)
9439 shlibpath_overrides_runpath=yes
9440 hardcode_into_libs=yes
9441 ;;
9442 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9443 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9444 shlibpath_overrides_runpath=no
9445 hardcode_into_libs=yes
9446 ;;
9447 *) # from 4.6 on, and DragonFly
9448 shlibpath_overrides_runpath=yes
9449 hardcode_into_libs=yes
9450 ;;
9451 esac
9452 ;;
9453
9454 gnu*)
9455 version_type=linux
9456 need_lib_prefix=no
9457 need_version=no
9458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9459 soname_spec='${libname}${release}${shared_ext}$major'
9460 shlibpath_var=LD_LIBRARY_PATH
9461 hardcode_into_libs=yes
9462 ;;
9463
9464 hpux9* | hpux10* | hpux11*)
9465 # Give a soname corresponding to the major version so that dld.sl refuses to
9466 # link against other versions.
9467 version_type=sunos
9468 need_lib_prefix=no
9469 need_version=no
9470 case $host_cpu in
9471 ia64*)
9472 shrext_cmds='.so'
9473 hardcode_into_libs=yes
9474 dynamic_linker="$host_os dld.so"
9475 shlibpath_var=LD_LIBRARY_PATH
9476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9478 soname_spec='${libname}${release}${shared_ext}$major'
9479 if test "X$HPUX_IA64_MODE" = X32; then
9480 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9481 else
9482 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9483 fi
9484 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9485 ;;
9486 hppa*64*)
9487 shrext_cmds='.sl'
9488 hardcode_into_libs=yes
9489 dynamic_linker="$host_os dld.sl"
9490 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9491 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9493 soname_spec='${libname}${release}${shared_ext}$major'
9494 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9495 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9496 ;;
9497 *)
9498 shrext_cmds='.sl'
9499 dynamic_linker="$host_os dld.sl"
9500 shlibpath_var=SHLIB_PATH
9501 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9503 soname_spec='${libname}${release}${shared_ext}$major'
9504 ;;
9505 esac
9506 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9507 postinstall_cmds='chmod 555 $lib'
9508 ;;
9509
9510 interix[3-9]*)
9511 version_type=linux
9512 need_lib_prefix=no
9513 need_version=no
9514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9515 soname_spec='${libname}${release}${shared_ext}$major'
9516 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9517 shlibpath_var=LD_LIBRARY_PATH
9518 shlibpath_overrides_runpath=no
9519 hardcode_into_libs=yes
9520 ;;
9521
9522 irix5* | irix6* | nonstopux*)
9523 case $host_os in
9524 nonstopux*) version_type=nonstopux ;;
9525 *)
9526 if test "$lt_cv_prog_gnu_ld" = yes; then
9527 version_type=linux
9528 else
9529 version_type=irix
9530 fi ;;
9531 esac
9532 need_lib_prefix=no
9533 need_version=no
9534 soname_spec='${libname}${release}${shared_ext}$major'
9535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9536 case $host_os in
9537 irix5* | nonstopux*)
9538 libsuff= shlibsuff=
9539 ;;
9540 *)
9541 case $LD in # libtool.m4 will add one of these switches to LD
9542 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9543 libsuff= shlibsuff= libmagic=32-bit;;
9544 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9545 libsuff=32 shlibsuff=N32 libmagic=N32;;
9546 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9547 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9548 *) libsuff= shlibsuff= libmagic=never-match;;
9549 esac
9550 ;;
9551 esac
9552 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9553 shlibpath_overrides_runpath=no
9554 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9555 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9556 hardcode_into_libs=yes
9557 ;;
9558
9559 # No shared lib support for Linux oldld, aout, or coff.
9560 linux*oldld* | linux*aout* | linux*coff*)
9561 dynamic_linker=no
9562 ;;
9563
9564 # This must be Linux ELF.
9565 linux* | k*bsd*-gnu)
9566 version_type=linux
9567 need_lib_prefix=no
9568 need_version=no
9569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9570 soname_spec='${libname}${release}${shared_ext}$major'
9571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9572 shlibpath_var=LD_LIBRARY_PATH
9573 shlibpath_overrides_runpath=no
9574 # This implies no fast_install, which is unacceptable.
9575 # Some rework will be needed to allow for fast_install
9576 # before this can be enabled.
9577 hardcode_into_libs=yes
9578
9579 # Append ld.so.conf contents to the search path
9580 if test -f /etc/ld.so.conf; then
9581 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' ' '`
9582 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9583 fi
9584
9585 # We used to test for /lib/ld.so.1 and disable shared libraries on
9586 # powerpc, because MkLinux only supported shared libraries with the
9587 # GNU dynamic linker. Since this was broken with cross compilers,
9588 # most powerpc-linux boxes support dynamic linking these days and
9589 # people can always --disable-shared, the test was removed, and we
9590 # assume the GNU/Linux dynamic linker is in use.
9591 dynamic_linker='GNU/Linux ld.so'
9592 ;;
9593
9594 netbsd*)
9595 version_type=sunos
9596 need_lib_prefix=no
9597 need_version=no
9598 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9600 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9601 dynamic_linker='NetBSD (a.out) ld.so'
9602 else
9603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9604 soname_spec='${libname}${release}${shared_ext}$major'
9605 dynamic_linker='NetBSD ld.elf_so'
9606 fi
9607 shlibpath_var=LD_LIBRARY_PATH
9608 shlibpath_overrides_runpath=yes
9609 hardcode_into_libs=yes
9610 ;;
9611
9612 newsos6)
9613 version_type=linux
9614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9615 shlibpath_var=LD_LIBRARY_PATH
9616 shlibpath_overrides_runpath=yes
9617 ;;
9618
9619 nto-qnx*)
9620 version_type=linux
9621 need_lib_prefix=no
9622 need_version=no
9623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9624 soname_spec='${libname}${release}${shared_ext}$major'
9625 shlibpath_var=LD_LIBRARY_PATH
9626 shlibpath_overrides_runpath=yes
9627 ;;
9628
9629 openbsd*)
9630 version_type=sunos
9631 sys_lib_dlsearch_path_spec="/usr/lib"
9632 need_lib_prefix=no
9633 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9634 case $host_os in
9635 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9636 *) need_version=no ;;
9637 esac
9638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9640 shlibpath_var=LD_LIBRARY_PATH
9641 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9642 case $host_os in
9643 openbsd2.[89] | openbsd2.[89].*)
9644 shlibpath_overrides_runpath=no
9645 ;;
9646 *)
9647 shlibpath_overrides_runpath=yes
9648 ;;
9649 esac
9650 else
9651 shlibpath_overrides_runpath=yes
9652 fi
9653 ;;
9654
9655 os2*)
9656 libname_spec='$name'
9657 shrext_cmds=".dll"
9658 need_lib_prefix=no
9659 library_names_spec='$libname${shared_ext} $libname.a'
9660 dynamic_linker='OS/2 ld.exe'
9661 shlibpath_var=LIBPATH
9662 ;;
9663
9664 osf3* | osf4* | osf5*)
9665 version_type=osf
9666 need_lib_prefix=no
9667 need_version=no
9668 soname_spec='${libname}${release}${shared_ext}$major'
9669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9670 shlibpath_var=LD_LIBRARY_PATH
9671 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9672 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9673 ;;
9674
9675 rdos*)
9676 dynamic_linker=no
9677 ;;
9678
9679 solaris*)
9680 version_type=linux
9681 need_lib_prefix=no
9682 need_version=no
9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684 soname_spec='${libname}${release}${shared_ext}$major'
9685 shlibpath_var=LD_LIBRARY_PATH
9686 shlibpath_overrides_runpath=yes
9687 hardcode_into_libs=yes
9688 # ldd complains unless libraries are executable
9689 postinstall_cmds='chmod +x $lib'
9690 ;;
9691
9692 sunos4*)
9693 version_type=sunos
9694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9695 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9696 shlibpath_var=LD_LIBRARY_PATH
9697 shlibpath_overrides_runpath=yes
9698 if test "$with_gnu_ld" = yes; then
9699 need_lib_prefix=no
9700 fi
9701 need_version=yes
9702 ;;
9703
9704 sysv4 | sysv4.3*)
9705 version_type=linux
9706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9707 soname_spec='${libname}${release}${shared_ext}$major'
9708 shlibpath_var=LD_LIBRARY_PATH
9709 case $host_vendor in
9710 sni)
9711 shlibpath_overrides_runpath=no
9712 need_lib_prefix=no
9713 export_dynamic_flag_spec='${wl}-Blargedynsym'
9714 runpath_var=LD_RUN_PATH
9715 ;;
9716 siemens)
9717 need_lib_prefix=no
9718 ;;
9719 motorola)
9720 need_lib_prefix=no
9721 need_version=no
9722 shlibpath_overrides_runpath=no
9723 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9724 ;;
9725 esac
9726 ;;
9727
9728 sysv4*MP*)
9729 if test -d /usr/nec ;then
9730 version_type=linux
9731 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9732 soname_spec='$libname${shared_ext}.$major'
9733 shlibpath_var=LD_LIBRARY_PATH
9734 fi
9735 ;;
9736
9737 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9738 version_type=freebsd-elf
9739 need_lib_prefix=no
9740 need_version=no
9741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9742 soname_spec='${libname}${release}${shared_ext}$major'
9743 shlibpath_var=LD_LIBRARY_PATH
9744 hardcode_into_libs=yes
9745 if test "$with_gnu_ld" = yes; then
9746 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9747 shlibpath_overrides_runpath=no
9748 else
9749 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9750 shlibpath_overrides_runpath=yes
9751 case $host_os in
9752 sco3.2v5*)
9753 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9754 ;;
9755 esac
9756 fi
9757 sys_lib_dlsearch_path_spec='/usr/lib'
9758 ;;
9759
9760 uts4*)
9761 version_type=linux
9762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9763 soname_spec='${libname}${release}${shared_ext}$major'
9764 shlibpath_var=LD_LIBRARY_PATH
9765 ;;
9766
9767 *)
9768 dynamic_linker=no
9769 ;;
9770 esac
9771 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9772 $as_echo "$dynamic_linker" >&6; }
9773 test "$dynamic_linker" = no && can_build_shared=no
9774
9775 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9776 $as_echo_n "(cached) " >&6
9777 else
9778 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9779 fi
9780
9781 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9782 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9783 $as_echo_n "(cached) " >&6
9784 else
9785 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9786 fi
9787
9788 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9789
9790 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9791 if test "$GCC" = yes; then
9792 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9793 fi
9794
9795 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9796 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9797 hardcode_action=
9798 if test -n "$hardcode_libdir_flag_spec" || \
9799 test -n "$runpath_var" || \
9800 test "X$hardcode_automatic" = "Xyes" ; then
9801
9802 # We can hardcode non-existant directories.
9803 if test "$hardcode_direct" != no &&
9804 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9805 # have to relink, otherwise we might link with an installed library
9806 # when we should be linking with a yet-to-be-installed one
9807 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9808 test "$hardcode_minus_L" != no; then
9809 # Linking always hardcodes the temporary library directory.
9810 hardcode_action=relink
9811 else
9812 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9813 hardcode_action=immediate
9814 fi
9815 else
9816 # We cannot hardcode anything, or else we can only hardcode existing
9817 # directories.
9818 hardcode_action=unsupported
9819 fi
9820 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9821 $as_echo "$hardcode_action" >&6; }
9822
9823 if test "$hardcode_action" = relink; then
9824 # Fast installation is not supported
9825 enable_fast_install=no
9826 elif test "$shlibpath_overrides_runpath" = yes ||
9827 test "$enable_shared" = no; then
9828 # Fast installation is not necessary
9829 enable_fast_install=needless
9830 fi
9831
9832 striplib=
9833 old_striplib=
9834 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9835 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9836 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9837 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9838 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9839 { $as_echo "$as_me:$LINENO: result: yes" >&5
9840 $as_echo "yes" >&6; }
9841 else
9842 # FIXME - insert some real tests, host_os isn't really good enough
9843 case $host_os in
9844 darwin*)
9845 if test -n "$STRIP" ; then
9846 striplib="$STRIP -x"
9847 old_striplib="$STRIP -S"
9848 { $as_echo "$as_me:$LINENO: result: yes" >&5
9849 $as_echo "yes" >&6; }
9850 else
9851 { $as_echo "$as_me:$LINENO: result: no" >&5
9852 $as_echo "no" >&6; }
9853 fi
9854 ;;
9855 *)
9856 { $as_echo "$as_me:$LINENO: result: no" >&5
9857 $as_echo "no" >&6; }
9858 ;;
9859 esac
9860 fi
9861
9862 if test "x$enable_dlopen" != xyes; then
9863 enable_dlopen=unknown
9864 enable_dlopen_self=unknown
9865 enable_dlopen_self_static=unknown
9866 else
9867 lt_cv_dlopen=no
9868 lt_cv_dlopen_libs=
9869
9870 case $host_os in
9871 beos*)
9872 lt_cv_dlopen="load_add_on"
9873 lt_cv_dlopen_libs=
9874 lt_cv_dlopen_self=yes
9875 ;;
9876
9877 mingw* | pw32*)
9878 lt_cv_dlopen="LoadLibrary"
9879 lt_cv_dlopen_libs=
9880 ;;
9881
9882 cygwin*)
9883 lt_cv_dlopen="dlopen"
9884 lt_cv_dlopen_libs=
9885 ;;
9886
9887 darwin*)
9888 # if libdl is installed we need to link against it
9889 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9890 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9891 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9892 $as_echo_n "(cached) " >&6
9893 else
9894 ac_check_lib_save_LIBS=$LIBS
9895 LIBS="-ldl $LIBS"
9896 cat >conftest.$ac_ext <<_ACEOF
9897 /* confdefs.h. */
9898 _ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9902
9903 /* Override any GCC internal prototype to avoid an error.
9904 Use char because int might match the return type of a GCC
9905 builtin and then its argument prototype would still apply. */
9906 #ifdef __cplusplus
9907 extern "C"
9908 #endif
9909 char dlopen ();
9910 int
9911 main ()
9912 {
9913 return dlopen ();
9914 ;
9915 return 0;
9916 }
9917 _ACEOF
9918 rm -f conftest.$ac_objext conftest$ac_exeext
9919 if { (ac_try="$ac_link"
9920 case "(($ac_try" in
9921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922 *) ac_try_echo=$ac_try;;
9923 esac
9924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9925 $as_echo "$ac_try_echo") >&5
9926 (eval "$ac_link") 2>conftest.er1
9927 ac_status=$?
9928 grep -v '^ *+' conftest.er1 >conftest.err
9929 rm -f conftest.er1
9930 cat conftest.err >&5
9931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } && {
9933 test -z "$ac_c_werror_flag" ||
9934 test ! -s conftest.err
9935 } && test -s conftest$ac_exeext && {
9936 test "$cross_compiling" = yes ||
9937 $as_test_x conftest$ac_exeext
9938 }; then
9939 ac_cv_lib_dl_dlopen=yes
9940 else
9941 $as_echo "$as_me: failed program was:" >&5
9942 sed 's/^/| /' conftest.$ac_ext >&5
9943
9944 ac_cv_lib_dl_dlopen=no
9945 fi
9946
9947 rm -rf conftest.dSYM
9948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9949 conftest$ac_exeext conftest.$ac_ext
9950 LIBS=$ac_check_lib_save_LIBS
9951 fi
9952 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9953 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9954 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9955 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9956 else
9957
9958 lt_cv_dlopen="dyld"
9959 lt_cv_dlopen_libs=
9960 lt_cv_dlopen_self=yes
9961
9962 fi
9963
9964 ;;
9965
9966 *)
9967 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9968 $as_echo_n "checking for shl_load... " >&6; }
9969 if test "${ac_cv_func_shl_load+set}" = set; then
9970 $as_echo_n "(cached) " >&6
9971 else
9972 cat >conftest.$ac_ext <<_ACEOF
9973 /* confdefs.h. */
9974 _ACEOF
9975 cat confdefs.h >>conftest.$ac_ext
9976 cat >>conftest.$ac_ext <<_ACEOF
9977 /* end confdefs.h. */
9978 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9980 #define shl_load innocuous_shl_load
9981
9982 /* System header to define __stub macros and hopefully few prototypes,
9983 which can conflict with char shl_load (); below.
9984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9985 <limits.h> exists even on freestanding compilers. */
9986
9987 #ifdef __STDC__
9988 # include <limits.h>
9989 #else
9990 # include <assert.h>
9991 #endif
9992
9993 #undef shl_load
9994
9995 /* Override any GCC internal prototype to avoid an error.
9996 Use char because int might match the return type of a GCC
9997 builtin and then its argument prototype would still apply. */
9998 #ifdef __cplusplus
9999 extern "C"
10000 #endif
10001 char shl_load ();
10002 /* The GNU C library defines this for functions which it implements
10003 to always fail with ENOSYS. Some functions are actually named
10004 something starting with __ and the normal name is an alias. */
10005 #if defined __stub_shl_load || defined __stub___shl_load
10006 choke me
10007 #endif
10008
10009 int
10010 main ()
10011 {
10012 return shl_load ();
10013 ;
10014 return 0;
10015 }
10016 _ACEOF
10017 rm -f conftest.$ac_objext conftest$ac_exeext
10018 if { (ac_try="$ac_link"
10019 case "(($ac_try" in
10020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10021 *) ac_try_echo=$ac_try;;
10022 esac
10023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10024 $as_echo "$ac_try_echo") >&5
10025 (eval "$ac_link") 2>conftest.er1
10026 ac_status=$?
10027 grep -v '^ *+' conftest.er1 >conftest.err
10028 rm -f conftest.er1
10029 cat conftest.err >&5
10030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } && {
10032 test -z "$ac_c_werror_flag" ||
10033 test ! -s conftest.err
10034 } && test -s conftest$ac_exeext && {
10035 test "$cross_compiling" = yes ||
10036 $as_test_x conftest$ac_exeext
10037 }; then
10038 ac_cv_func_shl_load=yes
10039 else
10040 $as_echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10042
10043 ac_cv_func_shl_load=no
10044 fi
10045
10046 rm -rf conftest.dSYM
10047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10048 conftest$ac_exeext conftest.$ac_ext
10049 fi
10050 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10051 $as_echo "$ac_cv_func_shl_load" >&6; }
10052 if test "x$ac_cv_func_shl_load" = x""yes; then
10053 lt_cv_dlopen="shl_load"
10054 else
10055 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10056 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10057 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10058 $as_echo_n "(cached) " >&6
10059 else
10060 ac_check_lib_save_LIBS=$LIBS
10061 LIBS="-ldld $LIBS"
10062 cat >conftest.$ac_ext <<_ACEOF
10063 /* confdefs.h. */
10064 _ACEOF
10065 cat confdefs.h >>conftest.$ac_ext
10066 cat >>conftest.$ac_ext <<_ACEOF
10067 /* end confdefs.h. */
10068
10069 /* Override any GCC internal prototype to avoid an error.
10070 Use char because int might match the return type of a GCC
10071 builtin and then its argument prototype would still apply. */
10072 #ifdef __cplusplus
10073 extern "C"
10074 #endif
10075 char shl_load ();
10076 int
10077 main ()
10078 {
10079 return shl_load ();
10080 ;
10081 return 0;
10082 }
10083 _ACEOF
10084 rm -f conftest.$ac_objext conftest$ac_exeext
10085 if { (ac_try="$ac_link"
10086 case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10089 esac
10090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10091 $as_echo "$ac_try_echo") >&5
10092 (eval "$ac_link") 2>conftest.er1
10093 ac_status=$?
10094 grep -v '^ *+' conftest.er1 >conftest.err
10095 rm -f conftest.er1
10096 cat conftest.err >&5
10097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } && {
10099 test -z "$ac_c_werror_flag" ||
10100 test ! -s conftest.err
10101 } && test -s conftest$ac_exeext && {
10102 test "$cross_compiling" = yes ||
10103 $as_test_x conftest$ac_exeext
10104 }; then
10105 ac_cv_lib_dld_shl_load=yes
10106 else
10107 $as_echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10109
10110 ac_cv_lib_dld_shl_load=no
10111 fi
10112
10113 rm -rf conftest.dSYM
10114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10115 conftest$ac_exeext conftest.$ac_ext
10116 LIBS=$ac_check_lib_save_LIBS
10117 fi
10118 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10119 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10120 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10121 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10122 else
10123 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10124 $as_echo_n "checking for dlopen... " >&6; }
10125 if test "${ac_cv_func_dlopen+set}" = set; then
10126 $as_echo_n "(cached) " >&6
10127 else
10128 cat >conftest.$ac_ext <<_ACEOF
10129 /* confdefs.h. */
10130 _ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h. */
10134 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10136 #define dlopen innocuous_dlopen
10137
10138 /* System header to define __stub macros and hopefully few prototypes,
10139 which can conflict with char dlopen (); below.
10140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10141 <limits.h> exists even on freestanding compilers. */
10142
10143 #ifdef __STDC__
10144 # include <limits.h>
10145 #else
10146 # include <assert.h>
10147 #endif
10148
10149 #undef dlopen
10150
10151 /* Override any GCC internal prototype to avoid an error.
10152 Use char because int might match the return type of a GCC
10153 builtin and then its argument prototype would still apply. */
10154 #ifdef __cplusplus
10155 extern "C"
10156 #endif
10157 char dlopen ();
10158 /* The GNU C library defines this for functions which it implements
10159 to always fail with ENOSYS. Some functions are actually named
10160 something starting with __ and the normal name is an alias. */
10161 #if defined __stub_dlopen || defined __stub___dlopen
10162 choke me
10163 #endif
10164
10165 int
10166 main ()
10167 {
10168 return dlopen ();
10169 ;
10170 return 0;
10171 }
10172 _ACEOF
10173 rm -f conftest.$ac_objext conftest$ac_exeext
10174 if { (ac_try="$ac_link"
10175 case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10178 esac
10179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10180 $as_echo "$ac_try_echo") >&5
10181 (eval "$ac_link") 2>conftest.er1
10182 ac_status=$?
10183 grep -v '^ *+' conftest.er1 >conftest.err
10184 rm -f conftest.er1
10185 cat conftest.err >&5
10186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } && {
10188 test -z "$ac_c_werror_flag" ||
10189 test ! -s conftest.err
10190 } && test -s conftest$ac_exeext && {
10191 test "$cross_compiling" = yes ||
10192 $as_test_x conftest$ac_exeext
10193 }; then
10194 ac_cv_func_dlopen=yes
10195 else
10196 $as_echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10198
10199 ac_cv_func_dlopen=no
10200 fi
10201
10202 rm -rf conftest.dSYM
10203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10204 conftest$ac_exeext conftest.$ac_ext
10205 fi
10206 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10207 $as_echo "$ac_cv_func_dlopen" >&6; }
10208 if test "x$ac_cv_func_dlopen" = x""yes; then
10209 lt_cv_dlopen="dlopen"
10210 else
10211 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10212 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10213 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10214 $as_echo_n "(cached) " >&6
10215 else
10216 ac_check_lib_save_LIBS=$LIBS
10217 LIBS="-ldl $LIBS"
10218 cat >conftest.$ac_ext <<_ACEOF
10219 /* confdefs.h. */
10220 _ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h. */
10224
10225 /* Override any GCC internal prototype to avoid an error.
10226 Use char because int might match the return type of a GCC
10227 builtin and then its argument prototype would still apply. */
10228 #ifdef __cplusplus
10229 extern "C"
10230 #endif
10231 char dlopen ();
10232 int
10233 main ()
10234 {
10235 return dlopen ();
10236 ;
10237 return 0;
10238 }
10239 _ACEOF
10240 rm -f conftest.$ac_objext conftest$ac_exeext
10241 if { (ac_try="$ac_link"
10242 case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10245 esac
10246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10247 $as_echo "$ac_try_echo") >&5
10248 (eval "$ac_link") 2>conftest.er1
10249 ac_status=$?
10250 grep -v '^ *+' conftest.er1 >conftest.err
10251 rm -f conftest.er1
10252 cat conftest.err >&5
10253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } && {
10255 test -z "$ac_c_werror_flag" ||
10256 test ! -s conftest.err
10257 } && test -s conftest$ac_exeext && {
10258 test "$cross_compiling" = yes ||
10259 $as_test_x conftest$ac_exeext
10260 }; then
10261 ac_cv_lib_dl_dlopen=yes
10262 else
10263 $as_echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10265
10266 ac_cv_lib_dl_dlopen=no
10267 fi
10268
10269 rm -rf conftest.dSYM
10270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10271 conftest$ac_exeext conftest.$ac_ext
10272 LIBS=$ac_check_lib_save_LIBS
10273 fi
10274 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10275 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10276 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10277 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10278 else
10279 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10280 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10281 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10282 $as_echo_n "(cached) " >&6
10283 else
10284 ac_check_lib_save_LIBS=$LIBS
10285 LIBS="-lsvld $LIBS"
10286 cat >conftest.$ac_ext <<_ACEOF
10287 /* confdefs.h. */
10288 _ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10292
10293 /* Override any GCC internal prototype to avoid an error.
10294 Use char because int might match the return type of a GCC
10295 builtin and then its argument prototype would still apply. */
10296 #ifdef __cplusplus
10297 extern "C"
10298 #endif
10299 char dlopen ();
10300 int
10301 main ()
10302 {
10303 return dlopen ();
10304 ;
10305 return 0;
10306 }
10307 _ACEOF
10308 rm -f conftest.$ac_objext conftest$ac_exeext
10309 if { (ac_try="$ac_link"
10310 case "(($ac_try" in
10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312 *) ac_try_echo=$ac_try;;
10313 esac
10314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10315 $as_echo "$ac_try_echo") >&5
10316 (eval "$ac_link") 2>conftest.er1
10317 ac_status=$?
10318 grep -v '^ *+' conftest.er1 >conftest.err
10319 rm -f conftest.er1
10320 cat conftest.err >&5
10321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } && {
10323 test -z "$ac_c_werror_flag" ||
10324 test ! -s conftest.err
10325 } && test -s conftest$ac_exeext && {
10326 test "$cross_compiling" = yes ||
10327 $as_test_x conftest$ac_exeext
10328 }; then
10329 ac_cv_lib_svld_dlopen=yes
10330 else
10331 $as_echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10333
10334 ac_cv_lib_svld_dlopen=no
10335 fi
10336
10337 rm -rf conftest.dSYM
10338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10339 conftest$ac_exeext conftest.$ac_ext
10340 LIBS=$ac_check_lib_save_LIBS
10341 fi
10342 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10343 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10344 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10345 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10346 else
10347 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10348 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10349 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10350 $as_echo_n "(cached) " >&6
10351 else
10352 ac_check_lib_save_LIBS=$LIBS
10353 LIBS="-ldld $LIBS"
10354 cat >conftest.$ac_ext <<_ACEOF
10355 /* confdefs.h. */
10356 _ACEOF
10357 cat confdefs.h >>conftest.$ac_ext
10358 cat >>conftest.$ac_ext <<_ACEOF
10359 /* end confdefs.h. */
10360
10361 /* Override any GCC internal prototype to avoid an error.
10362 Use char because int might match the return type of a GCC
10363 builtin and then its argument prototype would still apply. */
10364 #ifdef __cplusplus
10365 extern "C"
10366 #endif
10367 char dld_link ();
10368 int
10369 main ()
10370 {
10371 return dld_link ();
10372 ;
10373 return 0;
10374 }
10375 _ACEOF
10376 rm -f conftest.$ac_objext conftest$ac_exeext
10377 if { (ac_try="$ac_link"
10378 case "(($ac_try" in
10379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380 *) ac_try_echo=$ac_try;;
10381 esac
10382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10383 $as_echo "$ac_try_echo") >&5
10384 (eval "$ac_link") 2>conftest.er1
10385 ac_status=$?
10386 grep -v '^ *+' conftest.er1 >conftest.err
10387 rm -f conftest.er1
10388 cat conftest.err >&5
10389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); } && {
10391 test -z "$ac_c_werror_flag" ||
10392 test ! -s conftest.err
10393 } && test -s conftest$ac_exeext && {
10394 test "$cross_compiling" = yes ||
10395 $as_test_x conftest$ac_exeext
10396 }; then
10397 ac_cv_lib_dld_dld_link=yes
10398 else
10399 $as_echo "$as_me: failed program was:" >&5
10400 sed 's/^/| /' conftest.$ac_ext >&5
10401
10402 ac_cv_lib_dld_dld_link=no
10403 fi
10404
10405 rm -rf conftest.dSYM
10406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10407 conftest$ac_exeext conftest.$ac_ext
10408 LIBS=$ac_check_lib_save_LIBS
10409 fi
10410 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10411 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10412 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10413 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10414 fi
10415
10416
10417 fi
10418
10419
10420 fi
10421
10422
10423 fi
10424
10425
10426 fi
10427
10428
10429 fi
10430
10431 ;;
10432 esac
10433
10434 if test "x$lt_cv_dlopen" != xno; then
10435 enable_dlopen=yes
10436 else
10437 enable_dlopen=no
10438 fi
10439
10440 case $lt_cv_dlopen in
10441 dlopen)
10442 save_CPPFLAGS="$CPPFLAGS"
10443 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10444
10445 save_LDFLAGS="$LDFLAGS"
10446 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10447
10448 save_LIBS="$LIBS"
10449 LIBS="$lt_cv_dlopen_libs $LIBS"
10450
10451 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10452 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10453 if test "${lt_cv_dlopen_self+set}" = set; then
10454 $as_echo_n "(cached) " >&6
10455 else
10456 if test "$cross_compiling" = yes; then :
10457 lt_cv_dlopen_self=cross
10458 else
10459 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10460 lt_status=$lt_dlunknown
10461 cat > conftest.$ac_ext <<EOF
10462 #line 10462 "configure"
10463 #include "confdefs.h"
10464
10465 #if HAVE_DLFCN_H
10466 #include <dlfcn.h>
10467 #endif
10468
10469 #include <stdio.h>
10470
10471 #ifdef RTLD_GLOBAL
10472 # define LT_DLGLOBAL RTLD_GLOBAL
10473 #else
10474 # ifdef DL_GLOBAL
10475 # define LT_DLGLOBAL DL_GLOBAL
10476 # else
10477 # define LT_DLGLOBAL 0
10478 # endif
10479 #endif
10480
10481 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10482 find out it does not work in some platform. */
10483 #ifndef LT_DLLAZY_OR_NOW
10484 # ifdef RTLD_LAZY
10485 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10486 # else
10487 # ifdef DL_LAZY
10488 # define LT_DLLAZY_OR_NOW DL_LAZY
10489 # else
10490 # ifdef RTLD_NOW
10491 # define LT_DLLAZY_OR_NOW RTLD_NOW
10492 # else
10493 # ifdef DL_NOW
10494 # define LT_DLLAZY_OR_NOW DL_NOW
10495 # else
10496 # define LT_DLLAZY_OR_NOW 0
10497 # endif
10498 # endif
10499 # endif
10500 # endif
10501 #endif
10502
10503 #ifdef __cplusplus
10504 extern "C" void exit (int);
10505 #endif
10506
10507 void fnord() { int i=42;}
10508 int main ()
10509 {
10510 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10511 int status = $lt_dlunknown;
10512
10513 if (self)
10514 {
10515 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10516 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10517 /* dlclose (self); */
10518 }
10519 else
10520 puts (dlerror ());
10521
10522 exit (status);
10523 }
10524 EOF
10525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10526 (eval $ac_link) 2>&5
10527 ac_status=$?
10528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10530 (./conftest; exit; ) >&5 2>/dev/null
10531 lt_status=$?
10532 case x$lt_status in
10533 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10534 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10535 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10536 esac
10537 else :
10538 # compilation failed
10539 lt_cv_dlopen_self=no
10540 fi
10541 fi
10542 rm -fr conftest*
10543
10544
10545 fi
10546 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10547 $as_echo "$lt_cv_dlopen_self" >&6; }
10548
10549 if test "x$lt_cv_dlopen_self" = xyes; then
10550 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10551 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10552 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10553 if test "${lt_cv_dlopen_self_static+set}" = set; then
10554 $as_echo_n "(cached) " >&6
10555 else
10556 if test "$cross_compiling" = yes; then :
10557 lt_cv_dlopen_self_static=cross
10558 else
10559 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10560 lt_status=$lt_dlunknown
10561 cat > conftest.$ac_ext <<EOF
10562 #line 10562 "configure"
10563 #include "confdefs.h"
10564
10565 #if HAVE_DLFCN_H
10566 #include <dlfcn.h>
10567 #endif
10568
10569 #include <stdio.h>
10570
10571 #ifdef RTLD_GLOBAL
10572 # define LT_DLGLOBAL RTLD_GLOBAL
10573 #else
10574 # ifdef DL_GLOBAL
10575 # define LT_DLGLOBAL DL_GLOBAL
10576 # else
10577 # define LT_DLGLOBAL 0
10578 # endif
10579 #endif
10580
10581 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10582 find out it does not work in some platform. */
10583 #ifndef LT_DLLAZY_OR_NOW
10584 # ifdef RTLD_LAZY
10585 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10586 # else
10587 # ifdef DL_LAZY
10588 # define LT_DLLAZY_OR_NOW DL_LAZY
10589 # else
10590 # ifdef RTLD_NOW
10591 # define LT_DLLAZY_OR_NOW RTLD_NOW
10592 # else
10593 # ifdef DL_NOW
10594 # define LT_DLLAZY_OR_NOW DL_NOW
10595 # else
10596 # define LT_DLLAZY_OR_NOW 0
10597 # endif
10598 # endif
10599 # endif
10600 # endif
10601 #endif
10602
10603 #ifdef __cplusplus
10604 extern "C" void exit (int);
10605 #endif
10606
10607 void fnord() { int i=42;}
10608 int main ()
10609 {
10610 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10611 int status = $lt_dlunknown;
10612
10613 if (self)
10614 {
10615 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10616 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10617 /* dlclose (self); */
10618 }
10619 else
10620 puts (dlerror ());
10621
10622 exit (status);
10623 }
10624 EOF
10625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10626 (eval $ac_link) 2>&5
10627 ac_status=$?
10628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10630 (./conftest; exit; ) >&5 2>/dev/null
10631 lt_status=$?
10632 case x$lt_status in
10633 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10634 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10635 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10636 esac
10637 else :
10638 # compilation failed
10639 lt_cv_dlopen_self_static=no
10640 fi
10641 fi
10642 rm -fr conftest*
10643
10644
10645 fi
10646 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10647 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10648 fi
10649
10650 CPPFLAGS="$save_CPPFLAGS"
10651 LDFLAGS="$save_LDFLAGS"
10652 LIBS="$save_LIBS"
10653 ;;
10654 esac
10655
10656 case $lt_cv_dlopen_self in
10657 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10658 *) enable_dlopen_self=unknown ;;
10659 esac
10660
10661 case $lt_cv_dlopen_self_static in
10662 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10663 *) enable_dlopen_self_static=unknown ;;
10664 esac
10665 fi
10666
10667
10668 # Report which library types will actually be built
10669 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10670 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10671 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10672 $as_echo "$can_build_shared" >&6; }
10673
10674 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10675 $as_echo_n "checking whether to build shared libraries... " >&6; }
10676 test "$can_build_shared" = "no" && enable_shared=no
10677
10678 # On AIX, shared libraries and static libraries use the same namespace, and
10679 # are all built from PIC.
10680 case $host_os in
10681 aix3*)
10682 test "$enable_shared" = yes && enable_static=no
10683 if test -n "$RANLIB"; then
10684 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10685 postinstall_cmds='$RANLIB $lib'
10686 fi
10687 ;;
10688
10689 aix[4-9]*)
10690 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10691 test "$enable_shared" = yes && enable_static=no
10692 fi
10693 ;;
10694 esac
10695 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10696 $as_echo "$enable_shared" >&6; }
10697
10698 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10699 $as_echo_n "checking whether to build static libraries... " >&6; }
10700 # Make sure either enable_shared or enable_static is yes.
10701 test "$enable_shared" = yes || enable_static=yes
10702 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10703 $as_echo "$enable_static" >&6; }
10704
10705 # The else clause should only fire when bootstrapping the
10706 # libtool distribution, otherwise you forgot to ship ltmain.sh
10707 # with your package, and you will get complaints that there are
10708 # no rules to generate ltmain.sh.
10709 if test -f "$ltmain"; then
10710 # See if we are running on zsh, and set the options which allow our commands through
10711 # without removal of \ escapes.
10712 if test -n "${ZSH_VERSION+set}" ; then
10713 setopt NO_GLOB_SUBST
10714 fi
10715 # Now quote all the things that may contain metacharacters while being
10716 # careful not to overquote the AC_SUBSTed values. We take copies of the
10717 # variables and quote the copies for generation of the libtool script.
10718 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10719 SED SHELL STRIP \
10720 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10721 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10722 deplibs_check_method reload_flag reload_cmds need_locks \
10723 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10724 lt_cv_sys_global_symbol_to_c_name_address \
10725 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10726 old_postinstall_cmds old_postuninstall_cmds \
10727 compiler \
10728 CC \
10729 LD \
10730 lt_prog_compiler_wl \
10731 lt_prog_compiler_pic \
10732 lt_prog_compiler_static \
10733 lt_prog_compiler_no_builtin_flag \
10734 export_dynamic_flag_spec \
10735 thread_safe_flag_spec \
10736 whole_archive_flag_spec \
10737 enable_shared_with_static_runtimes \
10738 old_archive_cmds \
10739 old_archive_from_new_cmds \
10740 predep_objects \
10741 postdep_objects \
10742 predeps \
10743 postdeps \
10744 compiler_lib_search_path \
10745 compiler_lib_search_dirs \
10746 archive_cmds \
10747 archive_expsym_cmds \
10748 postinstall_cmds \
10749 postuninstall_cmds \
10750 old_archive_from_expsyms_cmds \
10751 allow_undefined_flag \
10752 no_undefined_flag \
10753 export_symbols_cmds \
10754 hardcode_libdir_flag_spec \
10755 hardcode_libdir_flag_spec_ld \
10756 hardcode_libdir_separator \
10757 hardcode_automatic \
10758 module_cmds \
10759 module_expsym_cmds \
10760 lt_cv_prog_compiler_c_o \
10761 fix_srcfile_path \
10762 exclude_expsyms \
10763 include_expsyms; do
10764
10765 case $var in
10766 old_archive_cmds | \
10767 old_archive_from_new_cmds | \
10768 archive_cmds | \
10769 archive_expsym_cmds | \
10770 module_cmds | \
10771 module_expsym_cmds | \
10772 old_archive_from_expsyms_cmds | \
10773 export_symbols_cmds | \
10774 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10775 postinstall_cmds | postuninstall_cmds | \
10776 old_postinstall_cmds | old_postuninstall_cmds | \
10777 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10778 # Double-quote double-evaled strings.
10779 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10780 ;;
10781 *)
10782 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10783 ;;
10784 esac
10785 done
10786
10787 case $lt_echo in
10788 *'\$0 --fallback-echo"')
10789 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10790 ;;
10791 esac
10792
10793 cfgfile="${ofile}T"
10794 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10795 $rm -f "$cfgfile"
10796 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10797 $as_echo "$as_me: creating $ofile" >&6;}
10798
10799 cat <<__EOF__ >> "$cfgfile"
10800 #! $SHELL
10801
10802 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10803 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10804 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10805 #
10806 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10807 # Free Software Foundation, Inc.
10808 #
10809 # This file is part of GNU Libtool:
10810 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10811 #
10812 # This program is free software; you can redistribute it and/or modify
10813 # it under the terms of the GNU General Public License as published by
10814 # the Free Software Foundation; either version 2 of the License, or
10815 # (at your option) any later version.
10816 #
10817 # This program is distributed in the hope that it will be useful, but
10818 # WITHOUT ANY WARRANTY; without even the implied warranty of
10819 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10820 # General Public License for more details.
10821 #
10822 # You should have received a copy of the GNU General Public License
10823 # along with this program; if not, write to the Free Software
10824 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10825 #
10826 # As a special exception to the GNU General Public License, if you
10827 # distribute this file as part of a program that contains a
10828 # configuration script generated by Autoconf, you may include it under
10829 # the same distribution terms that you use for the rest of that program.
10830
10831 # A sed program that does not truncate output.
10832 SED=$lt_SED
10833
10834 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10835 Xsed="$SED -e 1s/^X//"
10836
10837 # The HP-UX ksh and POSIX shell print the target directory to stdout
10838 # if CDPATH is set.
10839 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10840
10841 # The names of the tagged configurations supported by this script.
10842 available_tags=
10843
10844 # ### BEGIN LIBTOOL CONFIG
10845
10846 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10847
10848 # Shell to use when invoking shell scripts.
10849 SHELL=$lt_SHELL
10850
10851 # Whether or not to build shared libraries.
10852 build_libtool_libs=$enable_shared
10853
10854 # Whether or not to build static libraries.
10855 build_old_libs=$enable_static
10856
10857 # Whether or not to add -lc for building shared libraries.
10858 build_libtool_need_lc=$archive_cmds_need_lc
10859
10860 # Whether or not to disallow shared libs when runtime libs are static
10861 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10862
10863 # Whether or not to optimize for fast installation.
10864 fast_install=$enable_fast_install
10865
10866 # The host system.
10867 host_alias=$host_alias
10868 host=$host
10869 host_os=$host_os
10870
10871 # The build system.
10872 build_alias=$build_alias
10873 build=$build
10874 build_os=$build_os
10875
10876 # An echo program that does not interpret backslashes.
10877 echo=$lt_echo
10878
10879 # The archiver.
10880 AR=$lt_AR
10881 AR_FLAGS=$lt_AR_FLAGS
10882
10883 # A C compiler.
10884 LTCC=$lt_LTCC
10885
10886 # LTCC compiler flags.
10887 LTCFLAGS=$lt_LTCFLAGS
10888
10889 # A language-specific compiler.
10890 CC=$lt_compiler
10891
10892 # Is the compiler the GNU C compiler?
10893 with_gcc=$GCC
10894
10895 # An ERE matcher.
10896 EGREP=$lt_EGREP
10897
10898 # The linker used to build libraries.
10899 LD=$lt_LD
10900
10901 # Whether we need hard or soft links.
10902 LN_S=$lt_LN_S
10903
10904 # A BSD-compatible nm program.
10905 NM=$lt_NM
10906
10907 # A symbol stripping program
10908 STRIP=$lt_STRIP
10909
10910 # Used to examine libraries when file_magic_cmd begins "file"
10911 MAGIC_CMD=$MAGIC_CMD
10912
10913 # Used on cygwin: DLL creation program.
10914 DLLTOOL="$DLLTOOL"
10915
10916 # Used on cygwin: object dumper.
10917 OBJDUMP="$OBJDUMP"
10918
10919 # Used on cygwin: assembler.
10920 AS="$AS"
10921
10922 # The name of the directory that contains temporary libtool files.
10923 objdir=$objdir
10924
10925 # How to create reloadable object files.
10926 reload_flag=$lt_reload_flag
10927 reload_cmds=$lt_reload_cmds
10928
10929 # How to pass a linker flag through the compiler.
10930 wl=$lt_lt_prog_compiler_wl
10931
10932 # Object file suffix (normally "o").
10933 objext="$ac_objext"
10934
10935 # Old archive suffix (normally "a").
10936 libext="$libext"
10937
10938 # Shared library suffix (normally ".so").
10939 shrext_cmds='$shrext_cmds'
10940
10941 # Executable file suffix (normally "").
10942 exeext="$exeext"
10943
10944 # Additional compiler flags for building library objects.
10945 pic_flag=$lt_lt_prog_compiler_pic
10946 pic_mode=$pic_mode
10947
10948 # What is the maximum length of a command?
10949 max_cmd_len=$lt_cv_sys_max_cmd_len
10950
10951 # Does compiler simultaneously support -c and -o options?
10952 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10953
10954 # Must we lock files when doing compilation?
10955 need_locks=$lt_need_locks
10956
10957 # Do we need the lib prefix for modules?
10958 need_lib_prefix=$need_lib_prefix
10959
10960 # Do we need a version for libraries?
10961 need_version=$need_version
10962
10963 # Whether dlopen is supported.
10964 dlopen_support=$enable_dlopen
10965
10966 # Whether dlopen of programs is supported.
10967 dlopen_self=$enable_dlopen_self
10968
10969 # Whether dlopen of statically linked programs is supported.
10970 dlopen_self_static=$enable_dlopen_self_static
10971
10972 # Compiler flag to prevent dynamic linking.
10973 link_static_flag=$lt_lt_prog_compiler_static
10974
10975 # Compiler flag to turn off builtin functions.
10976 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10977
10978 # Compiler flag to allow reflexive dlopens.
10979 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10980
10981 # Compiler flag to generate shared objects directly from archives.
10982 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10983
10984 # Compiler flag to generate thread-safe objects.
10985 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10986
10987 # Library versioning type.
10988 version_type=$version_type
10989
10990 # Format of library name prefix.
10991 libname_spec=$lt_libname_spec
10992
10993 # List of archive names. First name is the real one, the rest are links.
10994 # The last name is the one that the linker finds with -lNAME.
10995 library_names_spec=$lt_library_names_spec
10996
10997 # The coded name of the library, if different from the real name.
10998 soname_spec=$lt_soname_spec
10999
11000 # Commands used to build and install an old-style archive.
11001 RANLIB=$lt_RANLIB
11002 old_archive_cmds=$lt_old_archive_cmds
11003 old_postinstall_cmds=$lt_old_postinstall_cmds
11004 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11005
11006 # Create an old-style archive from a shared archive.
11007 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11008
11009 # Create a temporary old-style archive to link instead of a shared archive.
11010 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11011
11012 # Commands used to build and install a shared archive.
11013 archive_cmds=$lt_archive_cmds
11014 archive_expsym_cmds=$lt_archive_expsym_cmds
11015 postinstall_cmds=$lt_postinstall_cmds
11016 postuninstall_cmds=$lt_postuninstall_cmds
11017
11018 # Commands used to build a loadable module (assumed same as above if empty)
11019 module_cmds=$lt_module_cmds
11020 module_expsym_cmds=$lt_module_expsym_cmds
11021
11022 # Commands to strip libraries.
11023 old_striplib=$lt_old_striplib
11024 striplib=$lt_striplib
11025
11026 # Dependencies to place before the objects being linked to create a
11027 # shared library.
11028 predep_objects=$lt_predep_objects
11029
11030 # Dependencies to place after the objects being linked to create a
11031 # shared library.
11032 postdep_objects=$lt_postdep_objects
11033
11034 # Dependencies to place before the objects being linked to create a
11035 # shared library.
11036 predeps=$lt_predeps
11037
11038 # Dependencies to place after the objects being linked to create a
11039 # shared library.
11040 postdeps=$lt_postdeps
11041
11042 # The directories searched by this compiler when creating a shared
11043 # library
11044 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11045
11046 # The library search path used internally by the compiler when linking
11047 # a shared library.
11048 compiler_lib_search_path=$lt_compiler_lib_search_path
11049
11050 # Method to check whether dependent libraries are shared objects.
11051 deplibs_check_method=$lt_deplibs_check_method
11052
11053 # Command to use when deplibs_check_method == file_magic.
11054 file_magic_cmd=$lt_file_magic_cmd
11055
11056 # Flag that allows shared libraries with undefined symbols to be built.
11057 allow_undefined_flag=$lt_allow_undefined_flag
11058
11059 # Flag that forces no undefined symbols.
11060 no_undefined_flag=$lt_no_undefined_flag
11061
11062 # Commands used to finish a libtool library installation in a directory.
11063 finish_cmds=$lt_finish_cmds
11064
11065 # Same as above, but a single script fragment to be evaled but not shown.
11066 finish_eval=$lt_finish_eval
11067
11068 # Take the output of nm and produce a listing of raw symbols and C names.
11069 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11070
11071 # Transform the output of nm in a proper C declaration
11072 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11073
11074 # Transform the output of nm in a C name address pair
11075 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11076
11077 # This is the shared library runtime path variable.
11078 runpath_var=$runpath_var
11079
11080 # This is the shared library path variable.
11081 shlibpath_var=$shlibpath_var
11082
11083 # Is shlibpath searched before the hard-coded library search path?
11084 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11085
11086 # How to hardcode a shared library path into an executable.
11087 hardcode_action=$hardcode_action
11088
11089 # Whether we should hardcode library paths into libraries.
11090 hardcode_into_libs=$hardcode_into_libs
11091
11092 # Flag to hardcode \$libdir into a binary during linking.
11093 # This must work even if \$libdir does not exist.
11094 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11095
11096 # If ld is used when linking, flag to hardcode \$libdir into
11097 # a binary during linking. This must work even if \$libdir does
11098 # not exist.
11099 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11100
11101 # Whether we need a single -rpath flag with a separated argument.
11102 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11103
11104 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11105 # resulting binary.
11106 hardcode_direct=$hardcode_direct
11107
11108 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11109 # resulting binary.
11110 hardcode_minus_L=$hardcode_minus_L
11111
11112 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11113 # the resulting binary.
11114 hardcode_shlibpath_var=$hardcode_shlibpath_var
11115
11116 # Set to yes if building a shared library automatically hardcodes DIR into the library
11117 # and all subsequent libraries and executables linked against it.
11118 hardcode_automatic=$hardcode_automatic
11119
11120 # Variables whose values should be saved in libtool wrapper scripts and
11121 # restored at relink time.
11122 variables_saved_for_relink="$variables_saved_for_relink"
11123
11124 # Whether libtool must link a program against all its dependency libraries.
11125 link_all_deplibs=$link_all_deplibs
11126
11127 # Compile-time system search path for libraries
11128 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11129
11130 # Run-time system search path for libraries
11131 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11132
11133 # Fix the shell variable \$srcfile for the compiler.
11134 fix_srcfile_path=$lt_fix_srcfile_path
11135
11136 # Set to yes if exported symbols are required.
11137 always_export_symbols=$always_export_symbols
11138
11139 # The commands to list exported symbols.
11140 export_symbols_cmds=$lt_export_symbols_cmds
11141
11142 # The commands to extract the exported symbol list from a shared archive.
11143 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11144
11145 # Symbols that should not be listed in the preloaded symbols.
11146 exclude_expsyms=$lt_exclude_expsyms
11147
11148 # Symbols that must always be exported.
11149 include_expsyms=$lt_include_expsyms
11150
11151 # ### END LIBTOOL CONFIG
11152
11153 __EOF__
11154
11155
11156 case $host_os in
11157 aix3*)
11158 cat <<\EOF >> "$cfgfile"
11159
11160 # AIX sometimes has problems with the GCC collect2 program. For some
11161 # reason, if we set the COLLECT_NAMES environment variable, the problems
11162 # vanish in a puff of smoke.
11163 if test "X${COLLECT_NAMES+set}" != Xset; then
11164 COLLECT_NAMES=
11165 export COLLECT_NAMES
11166 fi
11167 EOF
11168 ;;
11169 esac
11170
11171 # We use sed instead of cat because bash on DJGPP gets confused if
11172 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11173 # text mode, it properly converts lines to CR/LF. This bash problem
11174 # is reportedly fixed, but why not run on old versions too?
11175 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11176
11177 mv -f "$cfgfile" "$ofile" || \
11178 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11179 chmod +x "$ofile"
11180
11181 else
11182 # If there is no Makefile yet, we rely on a make rule to execute
11183 # `config.status --recheck' to rerun these tests and create the
11184 # libtool script then.
11185 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11186 if test -f "$ltmain_in"; then
11187 test -f Makefile && make "$ltmain"
11188 fi
11189 fi
11190
11191
11192 ac_ext=c
11193 ac_cpp='$CPP $CPPFLAGS'
11194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11197
11198 CC="$lt_save_CC"
11199
11200
11201 # Check whether --with-tags was given.
11202 if test "${with_tags+set}" = set; then
11203 withval=$with_tags; tagnames="$withval"
11204 fi
11205
11206
11207 if test -f "$ltmain" && test -n "$tagnames"; then
11208 if test ! -f "${ofile}"; then
11209 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11210 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11211 fi
11212
11213 if test -z "$LTCC"; then
11214 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11215 if test -z "$LTCC"; then
11216 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11217 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11218 else
11219 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11220 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11221 fi
11222 fi
11223 if test -z "$LTCFLAGS"; then
11224 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11225 fi
11226
11227 # Extract list of available tagged configurations in $ofile.
11228 # Note that this assumes the entire list is on one line.
11229 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11230
11231 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11232 for tagname in $tagnames; do
11233 IFS="$lt_save_ifs"
11234 # Check whether tagname contains only valid characters
11235 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11236 "") ;;
11237 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11238 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11239 { (exit 1); exit 1; }; }
11240 ;;
11241 esac
11242
11243 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11244 then
11245 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11246 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11247 { (exit 1); exit 1; }; }
11248 fi
11249
11250 # Update the list of available tags.
11251 if test -n "$tagname"; then
11252 echo appending configuration tag \"$tagname\" to $ofile
11253
11254 case $tagname in
11255 CXX)
11256 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11257 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11258 (test "X$CXX" != "Xg++"))) ; then
11259 ac_ext=cpp
11260 ac_cpp='$CXXCPP $CPPFLAGS'
11261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11264
11265
11266
11267
11268 archive_cmds_need_lc_CXX=no
11269 allow_undefined_flag_CXX=
11270 always_export_symbols_CXX=no
11271 archive_expsym_cmds_CXX=
11272 export_dynamic_flag_spec_CXX=
11273 hardcode_direct_CXX=no
11274 hardcode_libdir_flag_spec_CXX=
11275 hardcode_libdir_flag_spec_ld_CXX=
11276 hardcode_libdir_separator_CXX=
11277 hardcode_minus_L_CXX=no
11278 hardcode_shlibpath_var_CXX=unsupported
11279 hardcode_automatic_CXX=no
11280 module_cmds_CXX=
11281 module_expsym_cmds_CXX=
11282 link_all_deplibs_CXX=unknown
11283 old_archive_cmds_CXX=$old_archive_cmds
11284 no_undefined_flag_CXX=
11285 whole_archive_flag_spec_CXX=
11286 enable_shared_with_static_runtimes_CXX=no
11287
11288 # Dependencies to place before and after the object being linked:
11289 predep_objects_CXX=
11290 postdep_objects_CXX=
11291 predeps_CXX=
11292 postdeps_CXX=
11293 compiler_lib_search_path_CXX=
11294 compiler_lib_search_dirs_CXX=
11295
11296 # Source file extension for C++ test sources.
11297 ac_ext=cpp
11298
11299 # Object file extension for compiled C++ test sources.
11300 objext=o
11301 objext_CXX=$objext
11302
11303 # Code to be used in simple compile tests
11304 lt_simple_compile_test_code="int some_variable = 0;"
11305
11306 # Code to be used in simple link tests
11307 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11308
11309 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11310
11311 # If no C compiler was specified, use CC.
11312 LTCC=${LTCC-"$CC"}
11313
11314 # If no C compiler flags were specified, use CFLAGS.
11315 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11316
11317 # Allow CC to be a program name with arguments.
11318 compiler=$CC
11319
11320
11321 # save warnings/boilerplate of simple test code
11322 ac_outfile=conftest.$ac_objext
11323 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11324 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11325 _lt_compiler_boilerplate=`cat conftest.err`
11326 $rm conftest*
11327
11328 ac_outfile=conftest.$ac_objext
11329 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11330 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11331 _lt_linker_boilerplate=`cat conftest.err`
11332 $rm -r conftest*
11333
11334
11335 # Allow CC to be a program name with arguments.
11336 lt_save_CC=$CC
11337 lt_save_LD=$LD
11338 lt_save_GCC=$GCC
11339 GCC=$GXX
11340 lt_save_with_gnu_ld=$with_gnu_ld
11341 lt_save_path_LD=$lt_cv_path_LD
11342 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11343 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11344 else
11345 $as_unset lt_cv_prog_gnu_ld
11346 fi
11347 if test -n "${lt_cv_path_LDCXX+set}"; then
11348 lt_cv_path_LD=$lt_cv_path_LDCXX
11349 else
11350 $as_unset lt_cv_path_LD
11351 fi
11352 test -z "${LDCXX+set}" || LD=$LDCXX
11353 CC=${CXX-"c++"}
11354 compiler=$CC
11355 compiler_CXX=$CC
11356 for cc_temp in $compiler""; do
11357 case $cc_temp in
11358 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11359 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11360 \-*) ;;
11361 *) break;;
11362 esac
11363 done
11364 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11365
11366
11367 # We don't want -fno-exception wen compiling C++ code, so set the
11368 # no_builtin_flag separately
11369 if test "$GXX" = yes; then
11370 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11371 else
11372 lt_prog_compiler_no_builtin_flag_CXX=
11373 fi
11374
11375 if test "$GXX" = yes; then
11376 # Set up default GNU C++ configuration
11377
11378
11379 # Check whether --with-gnu-ld was given.
11380 if test "${with_gnu_ld+set}" = set; then
11381 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11382 else
11383 with_gnu_ld=no
11384 fi
11385
11386 ac_prog=ld
11387 if test "$GCC" = yes; then
11388 # Check if gcc -print-prog-name=ld gives a path.
11389 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11390 $as_echo_n "checking for ld used by $CC... " >&6; }
11391 case $host in
11392 *-*-mingw*)
11393 # gcc leaves a trailing carriage return which upsets mingw
11394 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11395 *)
11396 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11397 esac
11398 case $ac_prog in
11399 # Accept absolute paths.
11400 [\\/]* | ?:[\\/]*)
11401 re_direlt='/[^/][^/]*/\.\./'
11402 # Canonicalize the pathname of ld
11403 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11404 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11405 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11406 done
11407 test -z "$LD" && LD="$ac_prog"
11408 ;;
11409 "")
11410 # If it fails, then pretend we aren't using GCC.
11411 ac_prog=ld
11412 ;;
11413 *)
11414 # If it is relative, then search for the first ld in PATH.
11415 with_gnu_ld=unknown
11416 ;;
11417 esac
11418 elif test "$with_gnu_ld" = yes; then
11419 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11420 $as_echo_n "checking for GNU ld... " >&6; }
11421 else
11422 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11423 $as_echo_n "checking for non-GNU ld... " >&6; }
11424 fi
11425 if test "${lt_cv_path_LD+set}" = set; then
11426 $as_echo_n "(cached) " >&6
11427 else
11428 if test -z "$LD"; then
11429 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11430 for ac_dir in $PATH; do
11431 IFS="$lt_save_ifs"
11432 test -z "$ac_dir" && ac_dir=.
11433 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11434 lt_cv_path_LD="$ac_dir/$ac_prog"
11435 # Check to see if the program is GNU ld. I'd rather use --version,
11436 # but apparently some variants of GNU ld only accept -v.
11437 # Break only if it was the GNU/non-GNU ld that we prefer.
11438 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11439 *GNU* | *'with BFD'*)
11440 test "$with_gnu_ld" != no && break
11441 ;;
11442 *)
11443 test "$with_gnu_ld" != yes && break
11444 ;;
11445 esac
11446 fi
11447 done
11448 IFS="$lt_save_ifs"
11449 else
11450 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11451 fi
11452 fi
11453
11454 LD="$lt_cv_path_LD"
11455 if test -n "$LD"; then
11456 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11457 $as_echo "$LD" >&6; }
11458 else
11459 { $as_echo "$as_me:$LINENO: result: no" >&5
11460 $as_echo "no" >&6; }
11461 fi
11462 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11463 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11464 { (exit 1); exit 1; }; }
11465 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11466 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11467 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11468 $as_echo_n "(cached) " >&6
11469 else
11470 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11471 case `$LD -v 2>&1 </dev/null` in
11472 *GNU* | *'with BFD'*)
11473 lt_cv_prog_gnu_ld=yes
11474 ;;
11475 *)
11476 lt_cv_prog_gnu_ld=no
11477 ;;
11478 esac
11479 fi
11480 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11481 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11482 with_gnu_ld=$lt_cv_prog_gnu_ld
11483
11484
11485
11486 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11487 # archiving commands below assume that GNU ld is being used.
11488 if test "$with_gnu_ld" = yes; then
11489 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11490 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'
11491
11492 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11493 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11494
11495 # If archive_cmds runs LD, not CC, wlarc should be empty
11496 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11497 # investigate it a little bit more. (MM)
11498 wlarc='${wl}'
11499
11500 # ancient GNU ld didn't support --whole-archive et. al.
11501 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11502 grep 'no-whole-archive' > /dev/null; then
11503 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11504 else
11505 whole_archive_flag_spec_CXX=
11506 fi
11507 else
11508 with_gnu_ld=no
11509 wlarc=
11510
11511 # A generic and very simple default shared library creation
11512 # command for GNU C++ for the case where it uses the native
11513 # linker, instead of GNU ld. If possible, this setting should
11514 # overridden to take advantage of the native linker features on
11515 # the platform it is being used on.
11516 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11517 fi
11518
11519 # Commands to make compiler produce verbose output that lists
11520 # what "hidden" libraries, object files and flags are used when
11521 # linking a shared library.
11522 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11523
11524 else
11525 GXX=no
11526 with_gnu_ld=no
11527 wlarc=
11528 fi
11529
11530 # PORTME: fill in a description of your system's C++ link characteristics
11531 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11532 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11533 ld_shlibs_CXX=yes
11534 case $host_os in
11535 aix3*)
11536 # FIXME: insert proper C++ library support
11537 ld_shlibs_CXX=no
11538 ;;
11539 aix[4-9]*)
11540 if test "$host_cpu" = ia64; then
11541 # On IA64, the linker does run time linking by default, so we don't
11542 # have to do anything special.
11543 aix_use_runtimelinking=no
11544 exp_sym_flag='-Bexport'
11545 no_entry_flag=""
11546 else
11547 aix_use_runtimelinking=no
11548
11549 # Test if we are trying to use run time linking or normal
11550 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11551 # need to do runtime linking.
11552 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11553 for ld_flag in $LDFLAGS; do
11554 case $ld_flag in
11555 *-brtl*)
11556 aix_use_runtimelinking=yes
11557 break
11558 ;;
11559 esac
11560 done
11561 ;;
11562 esac
11563
11564 exp_sym_flag='-bexport'
11565 no_entry_flag='-bnoentry'
11566 fi
11567
11568 # When large executables or shared objects are built, AIX ld can
11569 # have problems creating the table of contents. If linking a library
11570 # or program results in "error TOC overflow" add -mminimal-toc to
11571 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11572 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11573
11574 archive_cmds_CXX=''
11575 hardcode_direct_CXX=yes
11576 hardcode_libdir_separator_CXX=':'
11577 link_all_deplibs_CXX=yes
11578
11579 if test "$GXX" = yes; then
11580 case $host_os in aix4.[012]|aix4.[012].*)
11581 # We only want to do this on AIX 4.2 and lower, the check
11582 # below for broken collect2 doesn't work under 4.3+
11583 collect2name=`${CC} -print-prog-name=collect2`
11584 if test -f "$collect2name" && \
11585 strings "$collect2name" | grep resolve_lib_name >/dev/null
11586 then
11587 # We have reworked collect2
11588 :
11589 else
11590 # We have old collect2
11591 hardcode_direct_CXX=unsupported
11592 # It fails to find uninstalled libraries when the uninstalled
11593 # path is not listed in the libpath. Setting hardcode_minus_L
11594 # to unsupported forces relinking
11595 hardcode_minus_L_CXX=yes
11596 hardcode_libdir_flag_spec_CXX='-L$libdir'
11597 hardcode_libdir_separator_CXX=
11598 fi
11599 ;;
11600 esac
11601 shared_flag='-shared'
11602 if test "$aix_use_runtimelinking" = yes; then
11603 shared_flag="$shared_flag "'${wl}-G'
11604 fi
11605 else
11606 # not using gcc
11607 if test "$host_cpu" = ia64; then
11608 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11609 # chokes on -Wl,-G. The following line is correct:
11610 shared_flag='-G'
11611 else
11612 if test "$aix_use_runtimelinking" = yes; then
11613 shared_flag='${wl}-G'
11614 else
11615 shared_flag='${wl}-bM:SRE'
11616 fi
11617 fi
11618 fi
11619
11620 # It seems that -bexpall does not export symbols beginning with
11621 # underscore (_), so it is better to generate a list of symbols to export.
11622 always_export_symbols_CXX=yes
11623 if test "$aix_use_runtimelinking" = yes; then
11624 # Warning - without using the other runtime loading flags (-brtl),
11625 # -berok will link without error, but may produce a broken library.
11626 allow_undefined_flag_CXX='-berok'
11627 # Determine the default libpath from the value encoded in an empty executable.
11628 cat >conftest.$ac_ext <<_ACEOF
11629 /* confdefs.h. */
11630 _ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h. */
11634
11635 int
11636 main ()
11637 {
11638
11639 ;
11640 return 0;
11641 }
11642 _ACEOF
11643 rm -f conftest.$ac_objext conftest$ac_exeext
11644 if { (ac_try="$ac_link"
11645 case "(($ac_try" in
11646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11648 esac
11649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11650 $as_echo "$ac_try_echo") >&5
11651 (eval "$ac_link") 2>conftest.er1
11652 ac_status=$?
11653 grep -v '^ *+' conftest.er1 >conftest.err
11654 rm -f conftest.er1
11655 cat conftest.err >&5
11656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); } && {
11658 test -z "$ac_cxx_werror_flag" ||
11659 test ! -s conftest.err
11660 } && test -s conftest$ac_exeext && {
11661 test "$cross_compiling" = yes ||
11662 $as_test_x conftest$ac_exeext
11663 }; then
11664
11665 lt_aix_libpath_sed='
11666 /Import File Strings/,/^$/ {
11667 /^0/ {
11668 s/^0 *\(.*\)$/\1/
11669 p
11670 }
11671 }'
11672 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11673 # Check for a 64-bit object if we didn't find anything.
11674 if test -z "$aix_libpath"; then
11675 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11676 fi
11677 else
11678 $as_echo "$as_me: failed program was:" >&5
11679 sed 's/^/| /' conftest.$ac_ext >&5
11680
11681
11682 fi
11683
11684 rm -rf conftest.dSYM
11685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11686 conftest$ac_exeext conftest.$ac_ext
11687 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11688
11689 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11690
11691 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"
11692 else
11693 if test "$host_cpu" = ia64; then
11694 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11695 allow_undefined_flag_CXX="-z nodefs"
11696 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"
11697 else
11698 # Determine the default libpath from the value encoded in an empty executable.
11699 cat >conftest.$ac_ext <<_ACEOF
11700 /* confdefs.h. */
11701 _ACEOF
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h. */
11705
11706 int
11707 main ()
11708 {
11709
11710 ;
11711 return 0;
11712 }
11713 _ACEOF
11714 rm -f conftest.$ac_objext conftest$ac_exeext
11715 if { (ac_try="$ac_link"
11716 case "(($ac_try" in
11717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11718 *) ac_try_echo=$ac_try;;
11719 esac
11720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11721 $as_echo "$ac_try_echo") >&5
11722 (eval "$ac_link") 2>conftest.er1
11723 ac_status=$?
11724 grep -v '^ *+' conftest.er1 >conftest.err
11725 rm -f conftest.er1
11726 cat conftest.err >&5
11727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } && {
11729 test -z "$ac_cxx_werror_flag" ||
11730 test ! -s conftest.err
11731 } && test -s conftest$ac_exeext && {
11732 test "$cross_compiling" = yes ||
11733 $as_test_x conftest$ac_exeext
11734 }; then
11735
11736 lt_aix_libpath_sed='
11737 /Import File Strings/,/^$/ {
11738 /^0/ {
11739 s/^0 *\(.*\)$/\1/
11740 p
11741 }
11742 }'
11743 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11744 # Check for a 64-bit object if we didn't find anything.
11745 if test -z "$aix_libpath"; then
11746 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11747 fi
11748 else
11749 $as_echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11751
11752
11753 fi
11754
11755 rm -rf conftest.dSYM
11756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11757 conftest$ac_exeext conftest.$ac_ext
11758 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11759
11760 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11761 # Warning - without using the other run time loading flags,
11762 # -berok will link without error, but may produce a broken library.
11763 no_undefined_flag_CXX=' ${wl}-bernotok'
11764 allow_undefined_flag_CXX=' ${wl}-berok'
11765 # Exported symbols can be pulled into shared objects from archives
11766 whole_archive_flag_spec_CXX='$convenience'
11767 archive_cmds_need_lc_CXX=yes
11768 # This is similar to how AIX traditionally builds its shared libraries.
11769 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'
11770 fi
11771 fi
11772 ;;
11773
11774 beos*)
11775 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11776 allow_undefined_flag_CXX=unsupported
11777 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11778 # support --undefined. This deserves some investigation. FIXME
11779 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11780 else
11781 ld_shlibs_CXX=no
11782 fi
11783 ;;
11784
11785 chorus*)
11786 case $cc_basename in
11787 *)
11788 # FIXME: insert proper C++ library support
11789 ld_shlibs_CXX=no
11790 ;;
11791 esac
11792 ;;
11793
11794 cygwin* | mingw* | pw32*)
11795 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11796 # as there is no search path for DLLs.
11797 hardcode_libdir_flag_spec_CXX='-L$libdir'
11798 allow_undefined_flag_CXX=unsupported
11799 always_export_symbols_CXX=no
11800 enable_shared_with_static_runtimes_CXX=yes
11801
11802 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11803 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'
11804 # If the export-symbols file already is a .def file (1st line
11805 # is EXPORTS), use it as is; otherwise, prepend...
11806 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11807 cp $export_symbols $output_objdir/$soname.def;
11808 else
11809 echo EXPORTS > $output_objdir/$soname.def;
11810 cat $export_symbols >> $output_objdir/$soname.def;
11811 fi~
11812 $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'
11813 else
11814 ld_shlibs_CXX=no
11815 fi
11816 ;;
11817 darwin* | rhapsody*)
11818 archive_cmds_need_lc_CXX=no
11819 hardcode_direct_CXX=no
11820 hardcode_automatic_CXX=yes
11821 hardcode_shlibpath_var_CXX=unsupported
11822 whole_archive_flag_spec_CXX=''
11823 link_all_deplibs_CXX=yes
11824 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11825 if test "$GXX" = yes ; then
11826 output_verbose_link_cmd='echo'
11827 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11828 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11829 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11830 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11831 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11832 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11833 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11834 fi
11835 else
11836 case $cc_basename in
11837 xlc*)
11838 output_verbose_link_cmd='echo'
11839 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'
11840 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11841 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11842 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}'
11843 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}'
11844 ;;
11845 *)
11846 ld_shlibs_CXX=no
11847 ;;
11848 esac
11849 fi
11850 ;;
11851
11852 dgux*)
11853 case $cc_basename in
11854 ec++*)
11855 # FIXME: insert proper C++ library support
11856 ld_shlibs_CXX=no
11857 ;;
11858 ghcx*)
11859 # Green Hills C++ Compiler
11860 # FIXME: insert proper C++ library support
11861 ld_shlibs_CXX=no
11862 ;;
11863 *)
11864 # FIXME: insert proper C++ library support
11865 ld_shlibs_CXX=no
11866 ;;
11867 esac
11868 ;;
11869 freebsd[12]*)
11870 # C++ shared libraries reported to be fairly broken before switch to ELF
11871 ld_shlibs_CXX=no
11872 ;;
11873 freebsd-elf*)
11874 archive_cmds_need_lc_CXX=no
11875 ;;
11876 freebsd* | dragonfly*)
11877 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11878 # conventions
11879 ld_shlibs_CXX=yes
11880 ;;
11881 gnu*)
11882 ;;
11883 hpux9*)
11884 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11885 hardcode_libdir_separator_CXX=:
11886 export_dynamic_flag_spec_CXX='${wl}-E'
11887 hardcode_direct_CXX=yes
11888 hardcode_minus_L_CXX=yes # Not in the search PATH,
11889 # but as the default
11890 # location of the library.
11891
11892 case $cc_basename in
11893 CC*)
11894 # FIXME: insert proper C++ library support
11895 ld_shlibs_CXX=no
11896 ;;
11897 aCC*)
11898 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'
11899 # Commands to make compiler produce verbose output that lists
11900 # what "hidden" libraries, object files and flags are used when
11901 # linking a shared library.
11902 #
11903 # There doesn't appear to be a way to prevent this compiler from
11904 # explicitly linking system object files so we need to strip them
11905 # from the output so that they don't get included in the library
11906 # dependencies.
11907 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'
11908 ;;
11909 *)
11910 if test "$GXX" = yes; then
11911 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'
11912 else
11913 # FIXME: insert proper C++ library support
11914 ld_shlibs_CXX=no
11915 fi
11916 ;;
11917 esac
11918 ;;
11919 hpux10*|hpux11*)
11920 if test $with_gnu_ld = no; then
11921 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11922 hardcode_libdir_separator_CXX=:
11923
11924 case $host_cpu in
11925 hppa*64*|ia64*) ;;
11926 *)
11927 export_dynamic_flag_spec_CXX='${wl}-E'
11928 ;;
11929 esac
11930 fi
11931 case $host_cpu in
11932 hppa*64*|ia64*)
11933 hardcode_direct_CXX=no
11934 hardcode_shlibpath_var_CXX=no
11935 ;;
11936 *)
11937 hardcode_direct_CXX=yes
11938 hardcode_minus_L_CXX=yes # Not in the search PATH,
11939 # but as the default
11940 # location of the library.
11941 ;;
11942 esac
11943
11944 case $cc_basename in
11945 CC*)
11946 # FIXME: insert proper C++ library support
11947 ld_shlibs_CXX=no
11948 ;;
11949 aCC*)
11950 case $host_cpu in
11951 hppa*64*)
11952 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11953 ;;
11954 ia64*)
11955 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11956 ;;
11957 *)
11958 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11959 ;;
11960 esac
11961 # Commands to make compiler produce verbose output that lists
11962 # what "hidden" libraries, object files and flags are used when
11963 # linking a shared library.
11964 #
11965 # There doesn't appear to be a way to prevent this compiler from
11966 # explicitly linking system object files so we need to strip them
11967 # from the output so that they don't get included in the library
11968 # dependencies.
11969 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'
11970 ;;
11971 *)
11972 if test "$GXX" = yes; then
11973 if test $with_gnu_ld = no; then
11974 case $host_cpu in
11975 hppa*64*)
11976 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11977 ;;
11978 ia64*)
11979 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11980 ;;
11981 *)
11982 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'
11983 ;;
11984 esac
11985 fi
11986 else
11987 # FIXME: insert proper C++ library support
11988 ld_shlibs_CXX=no
11989 fi
11990 ;;
11991 esac
11992 ;;
11993 interix[3-9]*)
11994 hardcode_direct_CXX=no
11995 hardcode_shlibpath_var_CXX=no
11996 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11997 export_dynamic_flag_spec_CXX='${wl}-E'
11998 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11999 # Instead, shared libraries are loaded at an image base (0x10000000 by
12000 # default) and relocated if they conflict, which is a slow very memory
12001 # consuming and fragmenting process. To avoid this, we pick a random,
12002 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12003 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12004 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'
12005 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'
12006 ;;
12007 irix5* | irix6*)
12008 case $cc_basename in
12009 CC*)
12010 # SGI C++
12011 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'
12012
12013 # Archives containing C++ object files must be created using
12014 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12015 # necessary to make sure instantiated templates are included
12016 # in the archive.
12017 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12018 ;;
12019 *)
12020 if test "$GXX" = yes; then
12021 if test "$with_gnu_ld" = no; then
12022 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'
12023 else
12024 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'
12025 fi
12026 fi
12027 link_all_deplibs_CXX=yes
12028 ;;
12029 esac
12030 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12031 hardcode_libdir_separator_CXX=:
12032 ;;
12033 linux* | k*bsd*-gnu)
12034 case $cc_basename in
12035 KCC*)
12036 # Kuck and Associates, Inc. (KAI) C++ Compiler
12037
12038 # KCC will only create a shared library if the output file
12039 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12040 # to its proper name (with version) after linking.
12041 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'
12042 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'
12043 # Commands to make compiler produce verbose output that lists
12044 # what "hidden" libraries, object files and flags are used when
12045 # linking a shared library.
12046 #
12047 # There doesn't appear to be a way to prevent this compiler from
12048 # explicitly linking system object files so we need to strip them
12049 # from the output so that they don't get included in the library
12050 # dependencies.
12051 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'
12052
12053 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12054 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12055
12056 # Archives containing C++ object files must be created using
12057 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12058 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12059 ;;
12060 icpc*)
12061 # Intel C++
12062 with_gnu_ld=yes
12063 # version 8.0 and above of icpc choke on multiply defined symbols
12064 # if we add $predep_objects and $postdep_objects, however 7.1 and
12065 # earlier do not add the objects themselves.
12066 case `$CC -V 2>&1` in
12067 *"Version 7."*)
12068 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12069 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'
12070 ;;
12071 *) # Version 8.0 or newer
12072 tmp_idyn=
12073 case $host_cpu in
12074 ia64*) tmp_idyn=' -i_dynamic';;
12075 esac
12076 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12077 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'
12078 ;;
12079 esac
12080 archive_cmds_need_lc_CXX=no
12081 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12082 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12083 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12084 ;;
12085 pgCC* | pgcpp*)
12086 # Portland Group C++ compiler
12087 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12088 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'
12089
12090 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12091 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12092 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'
12093 ;;
12094 cxx*)
12095 # Compaq C++
12096 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12097 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'
12098
12099 runpath_var=LD_RUN_PATH
12100 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12101 hardcode_libdir_separator_CXX=:
12102
12103 # Commands to make compiler produce verbose output that lists
12104 # what "hidden" libraries, object files and flags are used when
12105 # linking a shared library.
12106 #
12107 # There doesn't appear to be a way to prevent this compiler from
12108 # explicitly linking system object files so we need to strip them
12109 # from the output so that they don't get included in the library
12110 # dependencies.
12111 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'
12112 ;;
12113 *)
12114 case `$CC -V 2>&1 | sed 5q` in
12115 *Sun\ C*)
12116 # Sun C++ 5.9
12117 no_undefined_flag_CXX=' -zdefs'
12118 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12119 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'
12120 hardcode_libdir_flag_spec_CXX='-R$libdir'
12121 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'
12122
12123 # Not sure whether something based on
12124 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12125 # would be better.
12126 output_verbose_link_cmd='echo'
12127
12128 # Archives containing C++ object files must be created using
12129 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12130 # necessary to make sure instantiated templates are included
12131 # in the archive.
12132 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12133 ;;
12134 esac
12135 ;;
12136 esac
12137 ;;
12138 lynxos*)
12139 # FIXME: insert proper C++ library support
12140 ld_shlibs_CXX=no
12141 ;;
12142 m88k*)
12143 # FIXME: insert proper C++ library support
12144 ld_shlibs_CXX=no
12145 ;;
12146 mvs*)
12147 case $cc_basename in
12148 cxx*)
12149 # FIXME: insert proper C++ library support
12150 ld_shlibs_CXX=no
12151 ;;
12152 *)
12153 # FIXME: insert proper C++ library support
12154 ld_shlibs_CXX=no
12155 ;;
12156 esac
12157 ;;
12158 netbsd*)
12159 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12160 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12161 wlarc=
12162 hardcode_libdir_flag_spec_CXX='-R$libdir'
12163 hardcode_direct_CXX=yes
12164 hardcode_shlibpath_var_CXX=no
12165 fi
12166 # Workaround some broken pre-1.5 toolchains
12167 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12168 ;;
12169 openbsd2*)
12170 # C++ shared libraries are fairly broken
12171 ld_shlibs_CXX=no
12172 ;;
12173 openbsd*)
12174 if test -f /usr/libexec/ld.so; then
12175 hardcode_direct_CXX=yes
12176 hardcode_shlibpath_var_CXX=no
12177 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12178 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12179 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12180 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12181 export_dynamic_flag_spec_CXX='${wl}-E'
12182 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12183 fi
12184 output_verbose_link_cmd='echo'
12185 else
12186 ld_shlibs_CXX=no
12187 fi
12188 ;;
12189 osf3*)
12190 case $cc_basename in
12191 KCC*)
12192 # Kuck and Associates, Inc. (KAI) C++ Compiler
12193
12194 # KCC will only create a shared library if the output file
12195 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12196 # to its proper name (with version) after linking.
12197 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'
12198
12199 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12200 hardcode_libdir_separator_CXX=:
12201
12202 # Archives containing C++ object files must be created using
12203 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12204 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12205
12206 ;;
12207 RCC*)
12208 # Rational C++ 2.4.1
12209 # FIXME: insert proper C++ library support
12210 ld_shlibs_CXX=no
12211 ;;
12212 cxx*)
12213 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12214 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'
12215
12216 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12217 hardcode_libdir_separator_CXX=:
12218
12219 # Commands to make compiler produce verbose output that lists
12220 # what "hidden" libraries, object files and flags are used when
12221 # linking a shared library.
12222 #
12223 # There doesn't appear to be a way to prevent this compiler from
12224 # explicitly linking system object files so we need to strip them
12225 # from the output so that they don't get included in the library
12226 # dependencies.
12227 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'
12228 ;;
12229 *)
12230 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12231 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12232 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'
12233
12234 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12235 hardcode_libdir_separator_CXX=:
12236
12237 # Commands to make compiler produce verbose output that lists
12238 # what "hidden" libraries, object files and flags are used when
12239 # linking a shared library.
12240 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12241
12242 else
12243 # FIXME: insert proper C++ library support
12244 ld_shlibs_CXX=no
12245 fi
12246 ;;
12247 esac
12248 ;;
12249 osf4* | osf5*)
12250 case $cc_basename in
12251 KCC*)
12252 # Kuck and Associates, Inc. (KAI) C++ Compiler
12253
12254 # KCC will only create a shared library if the output file
12255 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12256 # to its proper name (with version) after linking.
12257 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'
12258
12259 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12260 hardcode_libdir_separator_CXX=:
12261
12262 # Archives containing C++ object files must be created using
12263 # the KAI C++ compiler.
12264 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12265 ;;
12266 RCC*)
12267 # Rational C++ 2.4.1
12268 # FIXME: insert proper C++ library support
12269 ld_shlibs_CXX=no
12270 ;;
12271 cxx*)
12272 allow_undefined_flag_CXX=' -expect_unresolved \*'
12273 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'
12274 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12275 echo "-hidden">> $lib.exp~
12276 $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~
12277 $rm $lib.exp'
12278
12279 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12280 hardcode_libdir_separator_CXX=:
12281
12282 # Commands to make compiler produce verbose output that lists
12283 # what "hidden" libraries, object files and flags are used when
12284 # linking a shared library.
12285 #
12286 # There doesn't appear to be a way to prevent this compiler from
12287 # explicitly linking system object files so we need to strip them
12288 # from the output so that they don't get included in the library
12289 # dependencies.
12290 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'
12291 ;;
12292 *)
12293 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12294 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12295 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'
12296
12297 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12298 hardcode_libdir_separator_CXX=:
12299
12300 # Commands to make compiler produce verbose output that lists
12301 # what "hidden" libraries, object files and flags are used when
12302 # linking a shared library.
12303 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12304
12305 else
12306 # FIXME: insert proper C++ library support
12307 ld_shlibs_CXX=no
12308 fi
12309 ;;
12310 esac
12311 ;;
12312 psos*)
12313 # FIXME: insert proper C++ library support
12314 ld_shlibs_CXX=no
12315 ;;
12316 sunos4*)
12317 case $cc_basename in
12318 CC*)
12319 # Sun C++ 4.x
12320 # FIXME: insert proper C++ library support
12321 ld_shlibs_CXX=no
12322 ;;
12323 lcc*)
12324 # Lucid
12325 # FIXME: insert proper C++ library support
12326 ld_shlibs_CXX=no
12327 ;;
12328 *)
12329 # FIXME: insert proper C++ library support
12330 ld_shlibs_CXX=no
12331 ;;
12332 esac
12333 ;;
12334 solaris*)
12335 case $cc_basename in
12336 CC*)
12337 # Sun C++ 4.2, 5.x and Centerline C++
12338 archive_cmds_need_lc_CXX=yes
12339 no_undefined_flag_CXX=' -zdefs'
12340 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12341 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12342 $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'
12343
12344 hardcode_libdir_flag_spec_CXX='-R$libdir'
12345 hardcode_shlibpath_var_CXX=no
12346 case $host_os in
12347 solaris2.[0-5] | solaris2.[0-5].*) ;;
12348 *)
12349 # The compiler driver will combine and reorder linker options,
12350 # but understands `-z linker_flag'.
12351 # Supported since Solaris 2.6 (maybe 2.5.1?)
12352 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12353 ;;
12354 esac
12355 link_all_deplibs_CXX=yes
12356
12357 output_verbose_link_cmd='echo'
12358
12359 # Archives containing C++ object files must be created using
12360 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12361 # necessary to make sure instantiated templates are included
12362 # in the archive.
12363 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12364 ;;
12365 gcx*)
12366 # Green Hills C++ Compiler
12367 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12368
12369 # The C++ compiler must be used to create the archive.
12370 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12371 ;;
12372 *)
12373 # GNU C++ compiler with Solaris linker
12374 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12375 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12376 if $CC --version | grep -v '^2\.7' > /dev/null; then
12377 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12378 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12379 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12380
12381 # Commands to make compiler produce verbose output that lists
12382 # what "hidden" libraries, object files and flags are used when
12383 # linking a shared library.
12384 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12385 else
12386 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12387 # platform.
12388 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12389 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12390 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12391
12392 # Commands to make compiler produce verbose output that lists
12393 # what "hidden" libraries, object files and flags are used when
12394 # linking a shared library.
12395 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12396 fi
12397
12398 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12399 case $host_os in
12400 solaris2.[0-5] | solaris2.[0-5].*) ;;
12401 *)
12402 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12403 ;;
12404 esac
12405 fi
12406 ;;
12407 esac
12408 ;;
12409 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12410 no_undefined_flag_CXX='${wl}-z,text'
12411 archive_cmds_need_lc_CXX=no
12412 hardcode_shlibpath_var_CXX=no
12413 runpath_var='LD_RUN_PATH'
12414
12415 case $cc_basename in
12416 CC*)
12417 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12418 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12419 ;;
12420 *)
12421 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12422 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12423 ;;
12424 esac
12425 ;;
12426 sysv5* | sco3.2v5* | sco5v6*)
12427 # Note: We can NOT use -z defs as we might desire, because we do not
12428 # link with -lc, and that would cause any symbols used from libc to
12429 # always be unresolved, which means just about no library would
12430 # ever link correctly. If we're not using GNU ld we use -z text
12431 # though, which does catch some bad symbols but isn't as heavy-handed
12432 # as -z defs.
12433 # For security reasons, it is highly recommended that you always
12434 # use absolute paths for naming shared libraries, and exclude the
12435 # DT_RUNPATH tag from executables and libraries. But doing so
12436 # requires that you compile everything twice, which is a pain.
12437 # So that behaviour is only enabled if SCOABSPATH is set to a
12438 # non-empty value in the environment. Most likely only useful for
12439 # creating official distributions of packages.
12440 # This is a hack until libtool officially supports absolute path
12441 # names for shared libraries.
12442 no_undefined_flag_CXX='${wl}-z,text'
12443 allow_undefined_flag_CXX='${wl}-z,nodefs'
12444 archive_cmds_need_lc_CXX=no
12445 hardcode_shlibpath_var_CXX=no
12446 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12447 hardcode_libdir_separator_CXX=':'
12448 link_all_deplibs_CXX=yes
12449 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12450 runpath_var='LD_RUN_PATH'
12451
12452 case $cc_basename in
12453 CC*)
12454 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12455 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12456 ;;
12457 *)
12458 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12459 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12460 ;;
12461 esac
12462 ;;
12463 tandem*)
12464 case $cc_basename in
12465 NCC*)
12466 # NonStop-UX NCC 3.20
12467 # FIXME: insert proper C++ library support
12468 ld_shlibs_CXX=no
12469 ;;
12470 *)
12471 # FIXME: insert proper C++ library support
12472 ld_shlibs_CXX=no
12473 ;;
12474 esac
12475 ;;
12476 vxworks*)
12477 # FIXME: insert proper C++ library support
12478 ld_shlibs_CXX=no
12479 ;;
12480 *)
12481 # FIXME: insert proper C++ library support
12482 ld_shlibs_CXX=no
12483 ;;
12484 esac
12485 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12486 $as_echo "$ld_shlibs_CXX" >&6; }
12487 test "$ld_shlibs_CXX" = no && can_build_shared=no
12488
12489 GCC_CXX="$GXX"
12490 LD_CXX="$LD"
12491
12492 cat > conftest.$ac_ext <<EOF
12493 class Foo
12494 {
12495 public:
12496 Foo (void) { a = 0; }
12497 private:
12498 int a;
12499 };
12500 EOF
12501
12502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12503 (eval $ac_compile) 2>&5
12504 ac_status=$?
12505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; then
12507 # Parse the compiler output and extract the necessary
12508 # objects, libraries and library flags.
12509
12510 # Sentinel used to keep track of whether or not we are before
12511 # the conftest object file.
12512 pre_test_object_deps_done=no
12513
12514 # The `*' in the case matches for architectures that use `case' in
12515 # $output_verbose_cmd can trigger glob expansion during the loop
12516 # eval without this substitution.
12517 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12518
12519 for p in `eval $output_verbose_link_cmd`; do
12520 case $p in
12521
12522 -L* | -R* | -l*)
12523 # Some compilers place space between "-{L,R}" and the path.
12524 # Remove the space.
12525 if test $p = "-L" \
12526 || test $p = "-R"; then
12527 prev=$p
12528 continue
12529 else
12530 prev=
12531 fi
12532
12533 if test "$pre_test_object_deps_done" = no; then
12534 case $p in
12535 -L* | -R*)
12536 # Internal compiler library paths should come after those
12537 # provided the user. The postdeps already come after the
12538 # user supplied libs so there is no need to process them.
12539 if test -z "$compiler_lib_search_path_CXX"; then
12540 compiler_lib_search_path_CXX="${prev}${p}"
12541 else
12542 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12543 fi
12544 ;;
12545 # The "-l" case would never come before the object being
12546 # linked, so don't bother handling this case.
12547 esac
12548 else
12549 if test -z "$postdeps_CXX"; then
12550 postdeps_CXX="${prev}${p}"
12551 else
12552 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12553 fi
12554 fi
12555 ;;
12556
12557 *.$objext)
12558 # This assumes that the test object file only shows up
12559 # once in the compiler output.
12560 if test "$p" = "conftest.$objext"; then
12561 pre_test_object_deps_done=yes
12562 continue
12563 fi
12564
12565 if test "$pre_test_object_deps_done" = no; then
12566 if test -z "$predep_objects_CXX"; then
12567 predep_objects_CXX="$p"
12568 else
12569 predep_objects_CXX="$predep_objects_CXX $p"
12570 fi
12571 else
12572 if test -z "$postdep_objects_CXX"; then
12573 postdep_objects_CXX="$p"
12574 else
12575 postdep_objects_CXX="$postdep_objects_CXX $p"
12576 fi
12577 fi
12578 ;;
12579
12580 *) ;; # Ignore the rest.
12581
12582 esac
12583 done
12584
12585 # Clean up.
12586 rm -f a.out a.exe
12587 else
12588 echo "libtool.m4: error: problem compiling CXX test program"
12589 fi
12590
12591 $rm -f confest.$objext
12592
12593 compiler_lib_search_dirs_CXX=
12594 if test -n "$compiler_lib_search_path_CXX"; then
12595 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12596 fi
12597
12598 # PORTME: override above test on systems where it is broken
12599 case $host_os in
12600 interix[3-9]*)
12601 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12602 # hack all around it, let's just trust "g++" to DTRT.
12603 predep_objects_CXX=
12604 postdep_objects_CXX=
12605 postdeps_CXX=
12606 ;;
12607
12608 linux*)
12609 case `$CC -V 2>&1 | sed 5q` in
12610 *Sun\ C*)
12611 # Sun C++ 5.9
12612 #
12613 # The more standards-conforming stlport4 library is
12614 # incompatible with the Cstd library. Avoid specifying
12615 # it if it's in CXXFLAGS. Ignore libCrun as
12616 # -library=stlport4 depends on it.
12617 case " $CXX $CXXFLAGS " in
12618 *" -library=stlport4 "*)
12619 solaris_use_stlport4=yes
12620 ;;
12621 esac
12622 if test "$solaris_use_stlport4" != yes; then
12623 postdeps_CXX='-library=Cstd -library=Crun'
12624 fi
12625 ;;
12626 esac
12627 ;;
12628
12629 solaris*)
12630 case $cc_basename in
12631 CC*)
12632 # The more standards-conforming stlport4 library is
12633 # incompatible with the Cstd library. Avoid specifying
12634 # it if it's in CXXFLAGS. Ignore libCrun as
12635 # -library=stlport4 depends on it.
12636 case " $CXX $CXXFLAGS " in
12637 *" -library=stlport4 "*)
12638 solaris_use_stlport4=yes
12639 ;;
12640 esac
12641
12642 # Adding this requires a known-good setup of shared libraries for
12643 # Sun compiler versions before 5.6, else PIC objects from an old
12644 # archive will be linked into the output, leading to subtle bugs.
12645 if test "$solaris_use_stlport4" != yes; then
12646 postdeps_CXX='-library=Cstd -library=Crun'
12647 fi
12648 ;;
12649 esac
12650 ;;
12651 esac
12652
12653 case " $postdeps_CXX " in
12654 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12655 esac
12656
12657 lt_prog_compiler_wl_CXX=
12658 lt_prog_compiler_pic_CXX=
12659 lt_prog_compiler_static_CXX=
12660
12661 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12662 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12663
12664 # C++ specific cases for pic, static, wl, etc.
12665 if test "$GXX" = yes; then
12666 lt_prog_compiler_wl_CXX='-Wl,'
12667 lt_prog_compiler_static_CXX='-static'
12668
12669 case $host_os in
12670 aix*)
12671 # All AIX code is PIC.
12672 if test "$host_cpu" = ia64; then
12673 # AIX 5 now supports IA64 processor
12674 lt_prog_compiler_static_CXX='-Bstatic'
12675 fi
12676 ;;
12677 amigaos*)
12678 # FIXME: we need at least 68020 code to build shared libraries, but
12679 # adding the `-m68020' flag to GCC prevents building anything better,
12680 # like `-m68040'.
12681 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12682 ;;
12683 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12684 # PIC is the default for these OSes.
12685 ;;
12686 mingw* | cygwin* | os2* | pw32*)
12687 # This hack is so that the source file can tell whether it is being
12688 # built for inclusion in a dll (and should export symbols for example).
12689 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12690 # (--disable-auto-import) libraries
12691 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12692 ;;
12693 darwin* | rhapsody*)
12694 # PIC is the default on this platform
12695 # Common symbols not allowed in MH_DYLIB files
12696 lt_prog_compiler_pic_CXX='-fno-common'
12697 ;;
12698 *djgpp*)
12699 # DJGPP does not support shared libraries at all
12700 lt_prog_compiler_pic_CXX=
12701 ;;
12702 interix[3-9]*)
12703 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12704 # Instead, we relocate shared libraries at runtime.
12705 ;;
12706 sysv4*MP*)
12707 if test -d /usr/nec; then
12708 lt_prog_compiler_pic_CXX=-Kconform_pic
12709 fi
12710 ;;
12711 hpux*)
12712 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12713 # not for PA HP-UX.
12714 case $host_cpu in
12715 hppa*64*|ia64*)
12716 ;;
12717 *)
12718 lt_prog_compiler_pic_CXX='-fPIC'
12719 ;;
12720 esac
12721 ;;
12722 *)
12723 lt_prog_compiler_pic_CXX='-fPIC'
12724 ;;
12725 esac
12726 else
12727 case $host_os in
12728 aix[4-9]*)
12729 # All AIX code is PIC.
12730 if test "$host_cpu" = ia64; then
12731 # AIX 5 now supports IA64 processor
12732 lt_prog_compiler_static_CXX='-Bstatic'
12733 else
12734 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12735 fi
12736 ;;
12737 chorus*)
12738 case $cc_basename in
12739 cxch68*)
12740 # Green Hills C++ Compiler
12741 # _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"
12742 ;;
12743 esac
12744 ;;
12745 darwin*)
12746 # PIC is the default on this platform
12747 # Common symbols not allowed in MH_DYLIB files
12748 case $cc_basename in
12749 xlc*)
12750 lt_prog_compiler_pic_CXX='-qnocommon'
12751 lt_prog_compiler_wl_CXX='-Wl,'
12752 ;;
12753 esac
12754 ;;
12755 dgux*)
12756 case $cc_basename in
12757 ec++*)
12758 lt_prog_compiler_pic_CXX='-KPIC'
12759 ;;
12760 ghcx*)
12761 # Green Hills C++ Compiler
12762 lt_prog_compiler_pic_CXX='-pic'
12763 ;;
12764 *)
12765 ;;
12766 esac
12767 ;;
12768 freebsd* | dragonfly*)
12769 # FreeBSD uses GNU C++
12770 ;;
12771 hpux9* | hpux10* | hpux11*)
12772 case $cc_basename in
12773 CC*)
12774 lt_prog_compiler_wl_CXX='-Wl,'
12775 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12776 if test "$host_cpu" != ia64; then
12777 lt_prog_compiler_pic_CXX='+Z'
12778 fi
12779 ;;
12780 aCC*)
12781 lt_prog_compiler_wl_CXX='-Wl,'
12782 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12783 case $host_cpu in
12784 hppa*64*|ia64*)
12785 # +Z the default
12786 ;;
12787 *)
12788 lt_prog_compiler_pic_CXX='+Z'
12789 ;;
12790 esac
12791 ;;
12792 *)
12793 ;;
12794 esac
12795 ;;
12796 interix*)
12797 # This is c89, which is MS Visual C++ (no shared libs)
12798 # Anyone wants to do a port?
12799 ;;
12800 irix5* | irix6* | nonstopux*)
12801 case $cc_basename in
12802 CC*)
12803 lt_prog_compiler_wl_CXX='-Wl,'
12804 lt_prog_compiler_static_CXX='-non_shared'
12805 # CC pic flag -KPIC is the default.
12806 ;;
12807 *)
12808 ;;
12809 esac
12810 ;;
12811 linux* | k*bsd*-gnu)
12812 case $cc_basename in
12813 KCC*)
12814 # KAI C++ Compiler
12815 lt_prog_compiler_wl_CXX='--backend -Wl,'
12816 lt_prog_compiler_pic_CXX='-fPIC'
12817 ;;
12818 icpc* | ecpc*)
12819 # Intel C++
12820 lt_prog_compiler_wl_CXX='-Wl,'
12821 lt_prog_compiler_pic_CXX='-KPIC'
12822 lt_prog_compiler_static_CXX='-static'
12823 ;;
12824 pgCC* | pgcpp*)
12825 # Portland Group C++ compiler.
12826 lt_prog_compiler_wl_CXX='-Wl,'
12827 lt_prog_compiler_pic_CXX='-fpic'
12828 lt_prog_compiler_static_CXX='-Bstatic'
12829 ;;
12830 cxx*)
12831 # Compaq C++
12832 # Make sure the PIC flag is empty. It appears that all Alpha
12833 # Linux and Compaq Tru64 Unix objects are PIC.
12834 lt_prog_compiler_pic_CXX=
12835 lt_prog_compiler_static_CXX='-non_shared'
12836 ;;
12837 *)
12838 case `$CC -V 2>&1 | sed 5q` in
12839 *Sun\ C*)
12840 # Sun C++ 5.9
12841 lt_prog_compiler_pic_CXX='-KPIC'
12842 lt_prog_compiler_static_CXX='-Bstatic'
12843 lt_prog_compiler_wl_CXX='-Qoption ld '
12844 ;;
12845 esac
12846 ;;
12847 esac
12848 ;;
12849 lynxos*)
12850 ;;
12851 m88k*)
12852 ;;
12853 mvs*)
12854 case $cc_basename in
12855 cxx*)
12856 lt_prog_compiler_pic_CXX='-W c,exportall'
12857 ;;
12858 *)
12859 ;;
12860 esac
12861 ;;
12862 netbsd*)
12863 ;;
12864 osf3* | osf4* | osf5*)
12865 case $cc_basename in
12866 KCC*)
12867 lt_prog_compiler_wl_CXX='--backend -Wl,'
12868 ;;
12869 RCC*)
12870 # Rational C++ 2.4.1
12871 lt_prog_compiler_pic_CXX='-pic'
12872 ;;
12873 cxx*)
12874 # Digital/Compaq C++
12875 lt_prog_compiler_wl_CXX='-Wl,'
12876 # Make sure the PIC flag is empty. It appears that all Alpha
12877 # Linux and Compaq Tru64 Unix objects are PIC.
12878 lt_prog_compiler_pic_CXX=
12879 lt_prog_compiler_static_CXX='-non_shared'
12880 ;;
12881 *)
12882 ;;
12883 esac
12884 ;;
12885 psos*)
12886 ;;
12887 solaris*)
12888 case $cc_basename in
12889 CC*)
12890 # Sun C++ 4.2, 5.x and Centerline C++
12891 lt_prog_compiler_pic_CXX='-KPIC'
12892 lt_prog_compiler_static_CXX='-Bstatic'
12893 lt_prog_compiler_wl_CXX='-Qoption ld '
12894 ;;
12895 gcx*)
12896 # Green Hills C++ Compiler
12897 lt_prog_compiler_pic_CXX='-PIC'
12898 ;;
12899 *)
12900 ;;
12901 esac
12902 ;;
12903 sunos4*)
12904 case $cc_basename in
12905 CC*)
12906 # Sun C++ 4.x
12907 lt_prog_compiler_pic_CXX='-pic'
12908 lt_prog_compiler_static_CXX='-Bstatic'
12909 ;;
12910 lcc*)
12911 # Lucid
12912 lt_prog_compiler_pic_CXX='-pic'
12913 ;;
12914 *)
12915 ;;
12916 esac
12917 ;;
12918 tandem*)
12919 case $cc_basename in
12920 NCC*)
12921 # NonStop-UX NCC 3.20
12922 lt_prog_compiler_pic_CXX='-KPIC'
12923 ;;
12924 *)
12925 ;;
12926 esac
12927 ;;
12928 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12929 case $cc_basename in
12930 CC*)
12931 lt_prog_compiler_wl_CXX='-Wl,'
12932 lt_prog_compiler_pic_CXX='-KPIC'
12933 lt_prog_compiler_static_CXX='-Bstatic'
12934 ;;
12935 esac
12936 ;;
12937 vxworks*)
12938 ;;
12939 *)
12940 lt_prog_compiler_can_build_shared_CXX=no
12941 ;;
12942 esac
12943 fi
12944
12945 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12946 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12947
12948 #
12949 # Check to make sure the PIC flag actually works.
12950 #
12951 if test -n "$lt_prog_compiler_pic_CXX"; then
12952
12953 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12954 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12955 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12956 $as_echo_n "(cached) " >&6
12957 else
12958 lt_cv_prog_compiler_pic_works_CXX=no
12959 ac_outfile=conftest.$ac_objext
12960 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12961 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12962 # Insert the option either (1) after the last *FLAGS variable, or
12963 # (2) before a word containing "conftest.", or (3) at the end.
12964 # Note that $ac_compile itself does not contain backslashes and begins
12965 # with a dollar sign (not a hyphen), so the echo should work correctly.
12966 # The option is referenced via a variable to avoid confusing sed.
12967 lt_compile=`echo "$ac_compile" | $SED \
12968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12970 -e 's:$: $lt_compiler_flag:'`
12971 (eval echo "\"\$as_me:12971: $lt_compile\"" >&5)
12972 (eval "$lt_compile" 2>conftest.err)
12973 ac_status=$?
12974 cat conftest.err >&5
12975 echo "$as_me:12975: \$? = $ac_status" >&5
12976 if (exit $ac_status) && test -s "$ac_outfile"; then
12977 # The compiler can only warn and ignore the option if not recognized
12978 # So say no if there are warnings other than the usual output.
12979 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12980 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12981 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12982 lt_cv_prog_compiler_pic_works_CXX=yes
12983 fi
12984 fi
12985 $rm conftest*
12986
12987 fi
12988 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12989 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12990
12991 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12992 case $lt_prog_compiler_pic_CXX in
12993 "" | " "*) ;;
12994 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12995 esac
12996 else
12997 lt_prog_compiler_pic_CXX=
12998 lt_prog_compiler_can_build_shared_CXX=no
12999 fi
13000
13001 fi
13002 case $host_os in
13003 # For platforms which do not support PIC, -DPIC is meaningless:
13004 *djgpp*)
13005 lt_prog_compiler_pic_CXX=
13006 ;;
13007 *)
13008 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13009 ;;
13010 esac
13011
13012 #
13013 # Check to make sure the static flag actually works.
13014 #
13015 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13016 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13017 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13018 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13019 $as_echo_n "(cached) " >&6
13020 else
13021 lt_cv_prog_compiler_static_works_CXX=no
13022 save_LDFLAGS="$LDFLAGS"
13023 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13024 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13025 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13026 # The linker can only warn and ignore the option if not recognized
13027 # So say no if there are warnings
13028 if test -s conftest.err; then
13029 # Append any errors to the config.log.
13030 cat conftest.err 1>&5
13031 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13032 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13033 if diff conftest.exp conftest.er2 >/dev/null; then
13034 lt_cv_prog_compiler_static_works_CXX=yes
13035 fi
13036 else
13037 lt_cv_prog_compiler_static_works_CXX=yes
13038 fi
13039 fi
13040 $rm -r conftest*
13041 LDFLAGS="$save_LDFLAGS"
13042
13043 fi
13044 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13045 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13046
13047 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13048 :
13049 else
13050 lt_prog_compiler_static_CXX=
13051 fi
13052
13053
13054 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13055 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13056 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13057 $as_echo_n "(cached) " >&6
13058 else
13059 lt_cv_prog_compiler_c_o_CXX=no
13060 $rm -r conftest 2>/dev/null
13061 mkdir conftest
13062 cd conftest
13063 mkdir out
13064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13065
13066 lt_compiler_flag="-o out/conftest2.$ac_objext"
13067 # Insert the option either (1) after the last *FLAGS variable, or
13068 # (2) before a word containing "conftest.", or (3) at the end.
13069 # Note that $ac_compile itself does not contain backslashes and begins
13070 # with a dollar sign (not a hyphen), so the echo should work correctly.
13071 lt_compile=`echo "$ac_compile" | $SED \
13072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13073 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13074 -e 's:$: $lt_compiler_flag:'`
13075 (eval echo "\"\$as_me:13075: $lt_compile\"" >&5)
13076 (eval "$lt_compile" 2>out/conftest.err)
13077 ac_status=$?
13078 cat out/conftest.err >&5
13079 echo "$as_me:13079: \$? = $ac_status" >&5
13080 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13081 then
13082 # The compiler can only warn and ignore the option if not recognized
13083 # So say no if there are warnings
13084 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13085 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13086 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13087 lt_cv_prog_compiler_c_o_CXX=yes
13088 fi
13089 fi
13090 chmod u+w . 2>&5
13091 $rm conftest*
13092 # SGI C++ compiler will create directory out/ii_files/ for
13093 # template instantiation
13094 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13095 $rm out/* && rmdir out
13096 cd ..
13097 rmdir conftest
13098 $rm conftest*
13099
13100 fi
13101 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13102 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13103
13104
13105 hard_links="nottested"
13106 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13107 # do not overwrite the value of need_locks provided by the user
13108 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13109 $as_echo_n "checking if we can lock with hard links... " >&6; }
13110 hard_links=yes
13111 $rm conftest*
13112 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13113 touch conftest.a
13114 ln conftest.a conftest.b 2>&5 || hard_links=no
13115 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13116 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13117 $as_echo "$hard_links" >&6; }
13118 if test "$hard_links" = no; then
13119 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13120 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13121 need_locks=warn
13122 fi
13123 else
13124 need_locks=no
13125 fi
13126
13127 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13128 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13129
13130 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13131 case $host_os in
13132 aix[4-9]*)
13133 # If we're using GNU nm, then we don't want the "-C" option.
13134 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13135 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13136 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'
13137 else
13138 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'
13139 fi
13140 ;;
13141 pw32*)
13142 export_symbols_cmds_CXX="$ltdll_cmds"
13143 ;;
13144 cygwin* | mingw*)
13145 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'
13146 ;;
13147 *)
13148 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13149 ;;
13150 esac
13151 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13152
13153 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13154 $as_echo "$ld_shlibs_CXX" >&6; }
13155 test "$ld_shlibs_CXX" = no && can_build_shared=no
13156
13157 #
13158 # Do we need to explicitly link libc?
13159 #
13160 case "x$archive_cmds_need_lc_CXX" in
13161 x|xyes)
13162 # Assume -lc should be added
13163 archive_cmds_need_lc_CXX=yes
13164
13165 if test "$enable_shared" = yes && test "$GCC" = yes; then
13166 case $archive_cmds_CXX in
13167 *'~'*)
13168 # FIXME: we may have to deal with multi-command sequences.
13169 ;;
13170 '$CC '*)
13171 # Test whether the compiler implicitly links with -lc since on some
13172 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13173 # to ld, don't add -lc before -lgcc.
13174 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13175 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13176 $rm conftest*
13177 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13178
13179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13180 (eval $ac_compile) 2>&5
13181 ac_status=$?
13182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } 2>conftest.err; then
13184 soname=conftest
13185 lib=conftest
13186 libobjs=conftest.$ac_objext
13187 deplibs=
13188 wl=$lt_prog_compiler_wl_CXX
13189 pic_flag=$lt_prog_compiler_pic_CXX
13190 compiler_flags=-v
13191 linker_flags=-v
13192 verstring=
13193 output_objdir=.
13194 libname=conftest
13195 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13196 allow_undefined_flag_CXX=
13197 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13198 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13199 ac_status=$?
13200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }
13202 then
13203 archive_cmds_need_lc_CXX=no
13204 else
13205 archive_cmds_need_lc_CXX=yes
13206 fi
13207 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13208 else
13209 cat conftest.err 1>&5
13210 fi
13211 $rm conftest*
13212 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13213 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13214 ;;
13215 esac
13216 fi
13217 ;;
13218 esac
13219
13220 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13221 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13222 library_names_spec=
13223 libname_spec='lib$name'
13224 soname_spec=
13225 shrext_cmds=".so"
13226 postinstall_cmds=
13227 postuninstall_cmds=
13228 finish_cmds=
13229 finish_eval=
13230 shlibpath_var=
13231 shlibpath_overrides_runpath=unknown
13232 version_type=none
13233 dynamic_linker="$host_os ld.so"
13234 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13235
13236 need_lib_prefix=unknown
13237 hardcode_into_libs=no
13238
13239 # when you set need_version to no, make sure it does not cause -set_version
13240 # flags to be left without arguments
13241 need_version=unknown
13242
13243 case $host_os in
13244 aix3*)
13245 version_type=linux
13246 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13247 shlibpath_var=LIBPATH
13248
13249 # AIX 3 has no versioning support, so we append a major version to the name.
13250 soname_spec='${libname}${release}${shared_ext}$major'
13251 ;;
13252
13253 aix[4-9]*)
13254 version_type=linux
13255 need_lib_prefix=no
13256 need_version=no
13257 hardcode_into_libs=yes
13258 if test "$host_cpu" = ia64; then
13259 # AIX 5 supports IA64
13260 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13261 shlibpath_var=LD_LIBRARY_PATH
13262 else
13263 # With GCC up to 2.95.x, collect2 would create an import file
13264 # for dependence libraries. The import file would start with
13265 # the line `#! .'. This would cause the generated library to
13266 # depend on `.', always an invalid library. This was fixed in
13267 # development snapshots of GCC prior to 3.0.
13268 case $host_os in
13269 aix4 | aix4.[01] | aix4.[01].*)
13270 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13271 echo ' yes '
13272 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13273 :
13274 else
13275 can_build_shared=no
13276 fi
13277 ;;
13278 esac
13279 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13280 # soname into executable. Probably we can add versioning support to
13281 # collect2, so additional links can be useful in future.
13282 if test "$aix_use_runtimelinking" = yes; then
13283 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13284 # instead of lib<name>.a to let people know that these are not
13285 # typical AIX shared libraries.
13286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13287 else
13288 # We preserve .a as extension for shared libraries through AIX4.2
13289 # and later when we are not doing run time linking.
13290 library_names_spec='${libname}${release}.a $libname.a'
13291 soname_spec='${libname}${release}${shared_ext}$major'
13292 fi
13293 shlibpath_var=LIBPATH
13294 fi
13295 ;;
13296
13297 amigaos*)
13298 library_names_spec='$libname.ixlibrary $libname.a'
13299 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13300 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'
13301 ;;
13302
13303 beos*)
13304 library_names_spec='${libname}${shared_ext}'
13305 dynamic_linker="$host_os ld.so"
13306 shlibpath_var=LIBRARY_PATH
13307 ;;
13308
13309 bsdi[45]*)
13310 version_type=linux
13311 need_version=no
13312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13313 soname_spec='${libname}${release}${shared_ext}$major'
13314 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13315 shlibpath_var=LD_LIBRARY_PATH
13316 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13317 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13318 # the default ld.so.conf also contains /usr/contrib/lib and
13319 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13320 # libtool to hard-code these into programs
13321 ;;
13322
13323 cygwin* | mingw* | pw32*)
13324 version_type=windows
13325 shrext_cmds=".dll"
13326 need_version=no
13327 need_lib_prefix=no
13328
13329 case $GCC,$host_os in
13330 yes,cygwin* | yes,mingw* | yes,pw32*)
13331 library_names_spec='$libname.dll.a'
13332 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13333 postinstall_cmds='base_file=`basename \${file}`~
13334 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13335 dldir=$destdir/`dirname \$dlpath`~
13336 test -d \$dldir || mkdir -p \$dldir~
13337 $install_prog $dir/$dlname \$dldir/$dlname~
13338 chmod a+x \$dldir/$dlname'
13339 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13340 dlpath=$dir/\$dldll~
13341 $rm \$dlpath'
13342 shlibpath_overrides_runpath=yes
13343
13344 case $host_os in
13345 cygwin*)
13346 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13347 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13348 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13349 ;;
13350 mingw*)
13351 # MinGW DLLs use traditional 'lib' prefix
13352 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13353 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13354 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13355 # It is most probably a Windows format PATH printed by
13356 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13357 # path with ; separators, and with drive letters. We can handle the
13358 # drive letters (cygwin fileutils understands them), so leave them,
13359 # especially as we might pass files found there to a mingw objdump,
13360 # which wouldn't understand a cygwinified path. Ahh.
13361 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13362 else
13363 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13364 fi
13365 ;;
13366 pw32*)
13367 # pw32 DLLs use 'pw' prefix rather than 'lib'
13368 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13369 ;;
13370 esac
13371 ;;
13372
13373 *)
13374 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13375 ;;
13376 esac
13377 dynamic_linker='Win32 ld.exe'
13378 # FIXME: first we should search . and the directory the executable is in
13379 shlibpath_var=PATH
13380 ;;
13381
13382 darwin* | rhapsody*)
13383 dynamic_linker="$host_os dyld"
13384 version_type=darwin
13385 need_lib_prefix=no
13386 need_version=no
13387 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13388 soname_spec='${libname}${release}${major}$shared_ext'
13389 shlibpath_overrides_runpath=yes
13390 shlibpath_var=DYLD_LIBRARY_PATH
13391 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13392
13393 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13394 ;;
13395
13396 dgux*)
13397 version_type=linux
13398 need_lib_prefix=no
13399 need_version=no
13400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13401 soname_spec='${libname}${release}${shared_ext}$major'
13402 shlibpath_var=LD_LIBRARY_PATH
13403 ;;
13404
13405 freebsd1*)
13406 dynamic_linker=no
13407 ;;
13408
13409 freebsd* | dragonfly*)
13410 # DragonFly does not have aout. When/if they implement a new
13411 # versioning mechanism, adjust this.
13412 if test -x /usr/bin/objformat; then
13413 objformat=`/usr/bin/objformat`
13414 else
13415 case $host_os in
13416 freebsd[123]*) objformat=aout ;;
13417 *) objformat=elf ;;
13418 esac
13419 fi
13420 version_type=freebsd-$objformat
13421 case $version_type in
13422 freebsd-elf*)
13423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13424 need_version=no
13425 need_lib_prefix=no
13426 ;;
13427 freebsd-*)
13428 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13429 need_version=yes
13430 ;;
13431 esac
13432 shlibpath_var=LD_LIBRARY_PATH
13433 case $host_os in
13434 freebsd2*)
13435 shlibpath_overrides_runpath=yes
13436 ;;
13437 freebsd3.[01]* | freebsdelf3.[01]*)
13438 shlibpath_overrides_runpath=yes
13439 hardcode_into_libs=yes
13440 ;;
13441 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13442 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13443 shlibpath_overrides_runpath=no
13444 hardcode_into_libs=yes
13445 ;;
13446 *) # from 4.6 on, and DragonFly
13447 shlibpath_overrides_runpath=yes
13448 hardcode_into_libs=yes
13449 ;;
13450 esac
13451 ;;
13452
13453 gnu*)
13454 version_type=linux
13455 need_lib_prefix=no
13456 need_version=no
13457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13458 soname_spec='${libname}${release}${shared_ext}$major'
13459 shlibpath_var=LD_LIBRARY_PATH
13460 hardcode_into_libs=yes
13461 ;;
13462
13463 hpux9* | hpux10* | hpux11*)
13464 # Give a soname corresponding to the major version so that dld.sl refuses to
13465 # link against other versions.
13466 version_type=sunos
13467 need_lib_prefix=no
13468 need_version=no
13469 case $host_cpu in
13470 ia64*)
13471 shrext_cmds='.so'
13472 hardcode_into_libs=yes
13473 dynamic_linker="$host_os dld.so"
13474 shlibpath_var=LD_LIBRARY_PATH
13475 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13477 soname_spec='${libname}${release}${shared_ext}$major'
13478 if test "X$HPUX_IA64_MODE" = X32; then
13479 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13480 else
13481 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13482 fi
13483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13484 ;;
13485 hppa*64*)
13486 shrext_cmds='.sl'
13487 hardcode_into_libs=yes
13488 dynamic_linker="$host_os dld.sl"
13489 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13490 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13492 soname_spec='${libname}${release}${shared_ext}$major'
13493 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13494 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13495 ;;
13496 *)
13497 shrext_cmds='.sl'
13498 dynamic_linker="$host_os dld.sl"
13499 shlibpath_var=SHLIB_PATH
13500 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13502 soname_spec='${libname}${release}${shared_ext}$major'
13503 ;;
13504 esac
13505 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13506 postinstall_cmds='chmod 555 $lib'
13507 ;;
13508
13509 interix[3-9]*)
13510 version_type=linux
13511 need_lib_prefix=no
13512 need_version=no
13513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13514 soname_spec='${libname}${release}${shared_ext}$major'
13515 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13516 shlibpath_var=LD_LIBRARY_PATH
13517 shlibpath_overrides_runpath=no
13518 hardcode_into_libs=yes
13519 ;;
13520
13521 irix5* | irix6* | nonstopux*)
13522 case $host_os in
13523 nonstopux*) version_type=nonstopux ;;
13524 *)
13525 if test "$lt_cv_prog_gnu_ld" = yes; then
13526 version_type=linux
13527 else
13528 version_type=irix
13529 fi ;;
13530 esac
13531 need_lib_prefix=no
13532 need_version=no
13533 soname_spec='${libname}${release}${shared_ext}$major'
13534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13535 case $host_os in
13536 irix5* | nonstopux*)
13537 libsuff= shlibsuff=
13538 ;;
13539 *)
13540 case $LD in # libtool.m4 will add one of these switches to LD
13541 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13542 libsuff= shlibsuff= libmagic=32-bit;;
13543 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13544 libsuff=32 shlibsuff=N32 libmagic=N32;;
13545 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13546 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13547 *) libsuff= shlibsuff= libmagic=never-match;;
13548 esac
13549 ;;
13550 esac
13551 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13552 shlibpath_overrides_runpath=no
13553 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13554 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13555 hardcode_into_libs=yes
13556 ;;
13557
13558 # No shared lib support for Linux oldld, aout, or coff.
13559 linux*oldld* | linux*aout* | linux*coff*)
13560 dynamic_linker=no
13561 ;;
13562
13563 # This must be Linux ELF.
13564 linux* | k*bsd*-gnu)
13565 version_type=linux
13566 need_lib_prefix=no
13567 need_version=no
13568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13569 soname_spec='${libname}${release}${shared_ext}$major'
13570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13571 shlibpath_var=LD_LIBRARY_PATH
13572 shlibpath_overrides_runpath=no
13573 # This implies no fast_install, which is unacceptable.
13574 # Some rework will be needed to allow for fast_install
13575 # before this can be enabled.
13576 hardcode_into_libs=yes
13577
13578 # Append ld.so.conf contents to the search path
13579 if test -f /etc/ld.so.conf; then
13580 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' ' '`
13581 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13582 fi
13583
13584 # We used to test for /lib/ld.so.1 and disable shared libraries on
13585 # powerpc, because MkLinux only supported shared libraries with the
13586 # GNU dynamic linker. Since this was broken with cross compilers,
13587 # most powerpc-linux boxes support dynamic linking these days and
13588 # people can always --disable-shared, the test was removed, and we
13589 # assume the GNU/Linux dynamic linker is in use.
13590 dynamic_linker='GNU/Linux ld.so'
13591 ;;
13592
13593 netbsd*)
13594 version_type=sunos
13595 need_lib_prefix=no
13596 need_version=no
13597 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13600 dynamic_linker='NetBSD (a.out) ld.so'
13601 else
13602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13603 soname_spec='${libname}${release}${shared_ext}$major'
13604 dynamic_linker='NetBSD ld.elf_so'
13605 fi
13606 shlibpath_var=LD_LIBRARY_PATH
13607 shlibpath_overrides_runpath=yes
13608 hardcode_into_libs=yes
13609 ;;
13610
13611 newsos6)
13612 version_type=linux
13613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13614 shlibpath_var=LD_LIBRARY_PATH
13615 shlibpath_overrides_runpath=yes
13616 ;;
13617
13618 nto-qnx*)
13619 version_type=linux
13620 need_lib_prefix=no
13621 need_version=no
13622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13623 soname_spec='${libname}${release}${shared_ext}$major'
13624 shlibpath_var=LD_LIBRARY_PATH
13625 shlibpath_overrides_runpath=yes
13626 ;;
13627
13628 openbsd*)
13629 version_type=sunos
13630 sys_lib_dlsearch_path_spec="/usr/lib"
13631 need_lib_prefix=no
13632 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13633 case $host_os in
13634 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13635 *) need_version=no ;;
13636 esac
13637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13639 shlibpath_var=LD_LIBRARY_PATH
13640 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13641 case $host_os in
13642 openbsd2.[89] | openbsd2.[89].*)
13643 shlibpath_overrides_runpath=no
13644 ;;
13645 *)
13646 shlibpath_overrides_runpath=yes
13647 ;;
13648 esac
13649 else
13650 shlibpath_overrides_runpath=yes
13651 fi
13652 ;;
13653
13654 os2*)
13655 libname_spec='$name'
13656 shrext_cmds=".dll"
13657 need_lib_prefix=no
13658 library_names_spec='$libname${shared_ext} $libname.a'
13659 dynamic_linker='OS/2 ld.exe'
13660 shlibpath_var=LIBPATH
13661 ;;
13662
13663 osf3* | osf4* | osf5*)
13664 version_type=osf
13665 need_lib_prefix=no
13666 need_version=no
13667 soname_spec='${libname}${release}${shared_ext}$major'
13668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13669 shlibpath_var=LD_LIBRARY_PATH
13670 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13671 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13672 ;;
13673
13674 rdos*)
13675 dynamic_linker=no
13676 ;;
13677
13678 solaris*)
13679 version_type=linux
13680 need_lib_prefix=no
13681 need_version=no
13682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13683 soname_spec='${libname}${release}${shared_ext}$major'
13684 shlibpath_var=LD_LIBRARY_PATH
13685 shlibpath_overrides_runpath=yes
13686 hardcode_into_libs=yes
13687 # ldd complains unless libraries are executable
13688 postinstall_cmds='chmod +x $lib'
13689 ;;
13690
13691 sunos4*)
13692 version_type=sunos
13693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13694 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13695 shlibpath_var=LD_LIBRARY_PATH
13696 shlibpath_overrides_runpath=yes
13697 if test "$with_gnu_ld" = yes; then
13698 need_lib_prefix=no
13699 fi
13700 need_version=yes
13701 ;;
13702
13703 sysv4 | sysv4.3*)
13704 version_type=linux
13705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13706 soname_spec='${libname}${release}${shared_ext}$major'
13707 shlibpath_var=LD_LIBRARY_PATH
13708 case $host_vendor in
13709 sni)
13710 shlibpath_overrides_runpath=no
13711 need_lib_prefix=no
13712 export_dynamic_flag_spec='${wl}-Blargedynsym'
13713 runpath_var=LD_RUN_PATH
13714 ;;
13715 siemens)
13716 need_lib_prefix=no
13717 ;;
13718 motorola)
13719 need_lib_prefix=no
13720 need_version=no
13721 shlibpath_overrides_runpath=no
13722 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13723 ;;
13724 esac
13725 ;;
13726
13727 sysv4*MP*)
13728 if test -d /usr/nec ;then
13729 version_type=linux
13730 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13731 soname_spec='$libname${shared_ext}.$major'
13732 shlibpath_var=LD_LIBRARY_PATH
13733 fi
13734 ;;
13735
13736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13737 version_type=freebsd-elf
13738 need_lib_prefix=no
13739 need_version=no
13740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13741 soname_spec='${libname}${release}${shared_ext}$major'
13742 shlibpath_var=LD_LIBRARY_PATH
13743 hardcode_into_libs=yes
13744 if test "$with_gnu_ld" = yes; then
13745 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13746 shlibpath_overrides_runpath=no
13747 else
13748 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13749 shlibpath_overrides_runpath=yes
13750 case $host_os in
13751 sco3.2v5*)
13752 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13753 ;;
13754 esac
13755 fi
13756 sys_lib_dlsearch_path_spec='/usr/lib'
13757 ;;
13758
13759 uts4*)
13760 version_type=linux
13761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13762 soname_spec='${libname}${release}${shared_ext}$major'
13763 shlibpath_var=LD_LIBRARY_PATH
13764 ;;
13765
13766 *)
13767 dynamic_linker=no
13768 ;;
13769 esac
13770 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13771 $as_echo "$dynamic_linker" >&6; }
13772 test "$dynamic_linker" = no && can_build_shared=no
13773
13774 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13775 $as_echo_n "(cached) " >&6
13776 else
13777 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13778 fi
13779
13780 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13781 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13782 $as_echo_n "(cached) " >&6
13783 else
13784 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13785 fi
13786
13787 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13788
13789 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13790 if test "$GCC" = yes; then
13791 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13792 fi
13793
13794 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13795 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13796 hardcode_action_CXX=
13797 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13798 test -n "$runpath_var_CXX" || \
13799 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13800
13801 # We can hardcode non-existant directories.
13802 if test "$hardcode_direct_CXX" != no &&
13803 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13804 # have to relink, otherwise we might link with an installed library
13805 # when we should be linking with a yet-to-be-installed one
13806 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13807 test "$hardcode_minus_L_CXX" != no; then
13808 # Linking always hardcodes the temporary library directory.
13809 hardcode_action_CXX=relink
13810 else
13811 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13812 hardcode_action_CXX=immediate
13813 fi
13814 else
13815 # We cannot hardcode anything, or else we can only hardcode existing
13816 # directories.
13817 hardcode_action_CXX=unsupported
13818 fi
13819 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13820 $as_echo "$hardcode_action_CXX" >&6; }
13821
13822 if test "$hardcode_action_CXX" = relink; then
13823 # Fast installation is not supported
13824 enable_fast_install=no
13825 elif test "$shlibpath_overrides_runpath" = yes ||
13826 test "$enable_shared" = no; then
13827 # Fast installation is not necessary
13828 enable_fast_install=needless
13829 fi
13830
13831
13832 # The else clause should only fire when bootstrapping the
13833 # libtool distribution, otherwise you forgot to ship ltmain.sh
13834 # with your package, and you will get complaints that there are
13835 # no rules to generate ltmain.sh.
13836 if test -f "$ltmain"; then
13837 # See if we are running on zsh, and set the options which allow our commands through
13838 # without removal of \ escapes.
13839 if test -n "${ZSH_VERSION+set}" ; then
13840 setopt NO_GLOB_SUBST
13841 fi
13842 # Now quote all the things that may contain metacharacters while being
13843 # careful not to overquote the AC_SUBSTed values. We take copies of the
13844 # variables and quote the copies for generation of the libtool script.
13845 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13846 SED SHELL STRIP \
13847 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13848 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13849 deplibs_check_method reload_flag reload_cmds need_locks \
13850 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13851 lt_cv_sys_global_symbol_to_c_name_address \
13852 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13853 old_postinstall_cmds old_postuninstall_cmds \
13854 compiler_CXX \
13855 CC_CXX \
13856 LD_CXX \
13857 lt_prog_compiler_wl_CXX \
13858 lt_prog_compiler_pic_CXX \
13859 lt_prog_compiler_static_CXX \
13860 lt_prog_compiler_no_builtin_flag_CXX \
13861 export_dynamic_flag_spec_CXX \
13862 thread_safe_flag_spec_CXX \
13863 whole_archive_flag_spec_CXX \
13864 enable_shared_with_static_runtimes_CXX \
13865 old_archive_cmds_CXX \
13866 old_archive_from_new_cmds_CXX \
13867 predep_objects_CXX \
13868 postdep_objects_CXX \
13869 predeps_CXX \
13870 postdeps_CXX \
13871 compiler_lib_search_path_CXX \
13872 compiler_lib_search_dirs_CXX \
13873 archive_cmds_CXX \
13874 archive_expsym_cmds_CXX \
13875 postinstall_cmds_CXX \
13876 postuninstall_cmds_CXX \
13877 old_archive_from_expsyms_cmds_CXX \
13878 allow_undefined_flag_CXX \
13879 no_undefined_flag_CXX \
13880 export_symbols_cmds_CXX \
13881 hardcode_libdir_flag_spec_CXX \
13882 hardcode_libdir_flag_spec_ld_CXX \
13883 hardcode_libdir_separator_CXX \
13884 hardcode_automatic_CXX \
13885 module_cmds_CXX \
13886 module_expsym_cmds_CXX \
13887 lt_cv_prog_compiler_c_o_CXX \
13888 fix_srcfile_path_CXX \
13889 exclude_expsyms_CXX \
13890 include_expsyms_CXX; do
13891
13892 case $var in
13893 old_archive_cmds_CXX | \
13894 old_archive_from_new_cmds_CXX | \
13895 archive_cmds_CXX | \
13896 archive_expsym_cmds_CXX | \
13897 module_cmds_CXX | \
13898 module_expsym_cmds_CXX | \
13899 old_archive_from_expsyms_cmds_CXX | \
13900 export_symbols_cmds_CXX | \
13901 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13902 postinstall_cmds | postuninstall_cmds | \
13903 old_postinstall_cmds | old_postuninstall_cmds | \
13904 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13905 # Double-quote double-evaled strings.
13906 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13907 ;;
13908 *)
13909 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13910 ;;
13911 esac
13912 done
13913
13914 case $lt_echo in
13915 *'\$0 --fallback-echo"')
13916 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13917 ;;
13918 esac
13919
13920 cfgfile="$ofile"
13921
13922 cat <<__EOF__ >> "$cfgfile"
13923 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13924
13925 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13926
13927 # Shell to use when invoking shell scripts.
13928 SHELL=$lt_SHELL
13929
13930 # Whether or not to build shared libraries.
13931 build_libtool_libs=$enable_shared
13932
13933 # Whether or not to build static libraries.
13934 build_old_libs=$enable_static
13935
13936 # Whether or not to add -lc for building shared libraries.
13937 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13938
13939 # Whether or not to disallow shared libs when runtime libs are static
13940 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13941
13942 # Whether or not to optimize for fast installation.
13943 fast_install=$enable_fast_install
13944
13945 # The host system.
13946 host_alias=$host_alias
13947 host=$host
13948 host_os=$host_os
13949
13950 # The build system.
13951 build_alias=$build_alias
13952 build=$build
13953 build_os=$build_os
13954
13955 # An echo program that does not interpret backslashes.
13956 echo=$lt_echo
13957
13958 # The archiver.
13959 AR=$lt_AR
13960 AR_FLAGS=$lt_AR_FLAGS
13961
13962 # A C compiler.
13963 LTCC=$lt_LTCC
13964
13965 # LTCC compiler flags.
13966 LTCFLAGS=$lt_LTCFLAGS
13967
13968 # A language-specific compiler.
13969 CC=$lt_compiler_CXX
13970
13971 # Is the compiler the GNU C compiler?
13972 with_gcc=$GCC_CXX
13973
13974 # An ERE matcher.
13975 EGREP=$lt_EGREP
13976
13977 # The linker used to build libraries.
13978 LD=$lt_LD_CXX
13979
13980 # Whether we need hard or soft links.
13981 LN_S=$lt_LN_S
13982
13983 # A BSD-compatible nm program.
13984 NM=$lt_NM
13985
13986 # A symbol stripping program
13987 STRIP=$lt_STRIP
13988
13989 # Used to examine libraries when file_magic_cmd begins "file"
13990 MAGIC_CMD=$MAGIC_CMD
13991
13992 # Used on cygwin: DLL creation program.
13993 DLLTOOL="$DLLTOOL"
13994
13995 # Used on cygwin: object dumper.
13996 OBJDUMP="$OBJDUMP"
13997
13998 # Used on cygwin: assembler.
13999 AS="$AS"
14000
14001 # The name of the directory that contains temporary libtool files.
14002 objdir=$objdir
14003
14004 # How to create reloadable object files.
14005 reload_flag=$lt_reload_flag
14006 reload_cmds=$lt_reload_cmds
14007
14008 # How to pass a linker flag through the compiler.
14009 wl=$lt_lt_prog_compiler_wl_CXX
14010
14011 # Object file suffix (normally "o").
14012 objext="$ac_objext"
14013
14014 # Old archive suffix (normally "a").
14015 libext="$libext"
14016
14017 # Shared library suffix (normally ".so").
14018 shrext_cmds='$shrext_cmds'
14019
14020 # Executable file suffix (normally "").
14021 exeext="$exeext"
14022
14023 # Additional compiler flags for building library objects.
14024 pic_flag=$lt_lt_prog_compiler_pic_CXX
14025 pic_mode=$pic_mode
14026
14027 # What is the maximum length of a command?
14028 max_cmd_len=$lt_cv_sys_max_cmd_len
14029
14030 # Does compiler simultaneously support -c and -o options?
14031 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14032
14033 # Must we lock files when doing compilation?
14034 need_locks=$lt_need_locks
14035
14036 # Do we need the lib prefix for modules?
14037 need_lib_prefix=$need_lib_prefix
14038
14039 # Do we need a version for libraries?
14040 need_version=$need_version
14041
14042 # Whether dlopen is supported.
14043 dlopen_support=$enable_dlopen
14044
14045 # Whether dlopen of programs is supported.
14046 dlopen_self=$enable_dlopen_self
14047
14048 # Whether dlopen of statically linked programs is supported.
14049 dlopen_self_static=$enable_dlopen_self_static
14050
14051 # Compiler flag to prevent dynamic linking.
14052 link_static_flag=$lt_lt_prog_compiler_static_CXX
14053
14054 # Compiler flag to turn off builtin functions.
14055 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14056
14057 # Compiler flag to allow reflexive dlopens.
14058 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14059
14060 # Compiler flag to generate shared objects directly from archives.
14061 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14062
14063 # Compiler flag to generate thread-safe objects.
14064 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14065
14066 # Library versioning type.
14067 version_type=$version_type
14068
14069 # Format of library name prefix.
14070 libname_spec=$lt_libname_spec
14071
14072 # List of archive names. First name is the real one, the rest are links.
14073 # The last name is the one that the linker finds with -lNAME.
14074 library_names_spec=$lt_library_names_spec
14075
14076 # The coded name of the library, if different from the real name.
14077 soname_spec=$lt_soname_spec
14078
14079 # Commands used to build and install an old-style archive.
14080 RANLIB=$lt_RANLIB
14081 old_archive_cmds=$lt_old_archive_cmds_CXX
14082 old_postinstall_cmds=$lt_old_postinstall_cmds
14083 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14084
14085 # Create an old-style archive from a shared archive.
14086 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14087
14088 # Create a temporary old-style archive to link instead of a shared archive.
14089 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14090
14091 # Commands used to build and install a shared archive.
14092 archive_cmds=$lt_archive_cmds_CXX
14093 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14094 postinstall_cmds=$lt_postinstall_cmds
14095 postuninstall_cmds=$lt_postuninstall_cmds
14096
14097 # Commands used to build a loadable module (assumed same as above if empty)
14098 module_cmds=$lt_module_cmds_CXX
14099 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14100
14101 # Commands to strip libraries.
14102 old_striplib=$lt_old_striplib
14103 striplib=$lt_striplib
14104
14105 # Dependencies to place before the objects being linked to create a
14106 # shared library.
14107 predep_objects=$lt_predep_objects_CXX
14108
14109 # Dependencies to place after the objects being linked to create a
14110 # shared library.
14111 postdep_objects=$lt_postdep_objects_CXX
14112
14113 # Dependencies to place before the objects being linked to create a
14114 # shared library.
14115 predeps=$lt_predeps_CXX
14116
14117 # Dependencies to place after the objects being linked to create a
14118 # shared library.
14119 postdeps=$lt_postdeps_CXX
14120
14121 # The directories searched by this compiler when creating a shared
14122 # library
14123 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14124
14125 # The library search path used internally by the compiler when linking
14126 # a shared library.
14127 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14128
14129 # Method to check whether dependent libraries are shared objects.
14130 deplibs_check_method=$lt_deplibs_check_method
14131
14132 # Command to use when deplibs_check_method == file_magic.
14133 file_magic_cmd=$lt_file_magic_cmd
14134
14135 # Flag that allows shared libraries with undefined symbols to be built.
14136 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14137
14138 # Flag that forces no undefined symbols.
14139 no_undefined_flag=$lt_no_undefined_flag_CXX
14140
14141 # Commands used to finish a libtool library installation in a directory.
14142 finish_cmds=$lt_finish_cmds
14143
14144 # Same as above, but a single script fragment to be evaled but not shown.
14145 finish_eval=$lt_finish_eval
14146
14147 # Take the output of nm and produce a listing of raw symbols and C names.
14148 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14149
14150 # Transform the output of nm in a proper C declaration
14151 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14152
14153 # Transform the output of nm in a C name address pair
14154 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14155
14156 # This is the shared library runtime path variable.
14157 runpath_var=$runpath_var
14158
14159 # This is the shared library path variable.
14160 shlibpath_var=$shlibpath_var
14161
14162 # Is shlibpath searched before the hard-coded library search path?
14163 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14164
14165 # How to hardcode a shared library path into an executable.
14166 hardcode_action=$hardcode_action_CXX
14167
14168 # Whether we should hardcode library paths into libraries.
14169 hardcode_into_libs=$hardcode_into_libs
14170
14171 # Flag to hardcode \$libdir into a binary during linking.
14172 # This must work even if \$libdir does not exist.
14173 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14174
14175 # If ld is used when linking, flag to hardcode \$libdir into
14176 # a binary during linking. This must work even if \$libdir does
14177 # not exist.
14178 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14179
14180 # Whether we need a single -rpath flag with a separated argument.
14181 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14182
14183 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14184 # resulting binary.
14185 hardcode_direct=$hardcode_direct_CXX
14186
14187 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14188 # resulting binary.
14189 hardcode_minus_L=$hardcode_minus_L_CXX
14190
14191 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14192 # the resulting binary.
14193 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14194
14195 # Set to yes if building a shared library automatically hardcodes DIR into the library
14196 # and all subsequent libraries and executables linked against it.
14197 hardcode_automatic=$hardcode_automatic_CXX
14198
14199 # Variables whose values should be saved in libtool wrapper scripts and
14200 # restored at relink time.
14201 variables_saved_for_relink="$variables_saved_for_relink"
14202
14203 # Whether libtool must link a program against all its dependency libraries.
14204 link_all_deplibs=$link_all_deplibs_CXX
14205
14206 # Compile-time system search path for libraries
14207 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14208
14209 # Run-time system search path for libraries
14210 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14211
14212 # Fix the shell variable \$srcfile for the compiler.
14213 fix_srcfile_path=$lt_fix_srcfile_path
14214
14215 # Set to yes if exported symbols are required.
14216 always_export_symbols=$always_export_symbols_CXX
14217
14218 # The commands to list exported symbols.
14219 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14220
14221 # The commands to extract the exported symbol list from a shared archive.
14222 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14223
14224 # Symbols that should not be listed in the preloaded symbols.
14225 exclude_expsyms=$lt_exclude_expsyms_CXX
14226
14227 # Symbols that must always be exported.
14228 include_expsyms=$lt_include_expsyms_CXX
14229
14230 # ### END LIBTOOL TAG CONFIG: $tagname
14231
14232 __EOF__
14233
14234
14235 else
14236 # If there is no Makefile yet, we rely on a make rule to execute
14237 # `config.status --recheck' to rerun these tests and create the
14238 # libtool script then.
14239 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14240 if test -f "$ltmain_in"; then
14241 test -f Makefile && make "$ltmain"
14242 fi
14243 fi
14244
14245
14246 ac_ext=c
14247 ac_cpp='$CPP $CPPFLAGS'
14248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14251
14252 CC=$lt_save_CC
14253 LDCXX=$LD
14254 LD=$lt_save_LD
14255 GCC=$lt_save_GCC
14256 with_gnu_ldcxx=$with_gnu_ld
14257 with_gnu_ld=$lt_save_with_gnu_ld
14258 lt_cv_path_LDCXX=$lt_cv_path_LD
14259 lt_cv_path_LD=$lt_save_path_LD
14260 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14261 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14262
14263 else
14264 tagname=""
14265 fi
14266 ;;
14267
14268 F77)
14269 if test -n "$F77" && test "X$F77" != "Xno"; then
14270
14271 ac_ext=f
14272 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14273 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14274 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14275
14276
14277 archive_cmds_need_lc_F77=no
14278 allow_undefined_flag_F77=
14279 always_export_symbols_F77=no
14280 archive_expsym_cmds_F77=
14281 export_dynamic_flag_spec_F77=
14282 hardcode_direct_F77=no
14283 hardcode_libdir_flag_spec_F77=
14284 hardcode_libdir_flag_spec_ld_F77=
14285 hardcode_libdir_separator_F77=
14286 hardcode_minus_L_F77=no
14287 hardcode_automatic_F77=no
14288 module_cmds_F77=
14289 module_expsym_cmds_F77=
14290 link_all_deplibs_F77=unknown
14291 old_archive_cmds_F77=$old_archive_cmds
14292 no_undefined_flag_F77=
14293 whole_archive_flag_spec_F77=
14294 enable_shared_with_static_runtimes_F77=no
14295
14296 # Source file extension for f77 test sources.
14297 ac_ext=f
14298
14299 # Object file extension for compiled f77 test sources.
14300 objext=o
14301 objext_F77=$objext
14302
14303 # Code to be used in simple compile tests
14304 lt_simple_compile_test_code="\
14305 subroutine t
14306 return
14307 end
14308 "
14309
14310 # Code to be used in simple link tests
14311 lt_simple_link_test_code="\
14312 program t
14313 end
14314 "
14315
14316 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14317
14318 # If no C compiler was specified, use CC.
14319 LTCC=${LTCC-"$CC"}
14320
14321 # If no C compiler flags were specified, use CFLAGS.
14322 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14323
14324 # Allow CC to be a program name with arguments.
14325 compiler=$CC
14326
14327
14328 # save warnings/boilerplate of simple test code
14329 ac_outfile=conftest.$ac_objext
14330 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14331 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14332 _lt_compiler_boilerplate=`cat conftest.err`
14333 $rm conftest*
14334
14335 ac_outfile=conftest.$ac_objext
14336 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14337 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14338 _lt_linker_boilerplate=`cat conftest.err`
14339 $rm -r conftest*
14340
14341
14342 # Allow CC to be a program name with arguments.
14343 lt_save_CC="$CC"
14344 CC=${F77-"f77"}
14345 compiler=$CC
14346 compiler_F77=$CC
14347 for cc_temp in $compiler""; do
14348 case $cc_temp in
14349 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14350 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14351 \-*) ;;
14352 *) break;;
14353 esac
14354 done
14355 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14356
14357
14358 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14359 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14360 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14361 $as_echo "$can_build_shared" >&6; }
14362
14363 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14364 $as_echo_n "checking whether to build shared libraries... " >&6; }
14365 test "$can_build_shared" = "no" && enable_shared=no
14366
14367 # On AIX, shared libraries and static libraries use the same namespace, and
14368 # are all built from PIC.
14369 case $host_os in
14370 aix3*)
14371 test "$enable_shared" = yes && enable_static=no
14372 if test -n "$RANLIB"; then
14373 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14374 postinstall_cmds='$RANLIB $lib'
14375 fi
14376 ;;
14377 aix[4-9]*)
14378 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14379 test "$enable_shared" = yes && enable_static=no
14380 fi
14381 ;;
14382 esac
14383 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14384 $as_echo "$enable_shared" >&6; }
14385
14386 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14387 $as_echo_n "checking whether to build static libraries... " >&6; }
14388 # Make sure either enable_shared or enable_static is yes.
14389 test "$enable_shared" = yes || enable_static=yes
14390 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14391 $as_echo "$enable_static" >&6; }
14392
14393 GCC_F77="$G77"
14394 LD_F77="$LD"
14395
14396 lt_prog_compiler_wl_F77=
14397 lt_prog_compiler_pic_F77=
14398 lt_prog_compiler_static_F77=
14399
14400 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14401 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14402
14403 if test "$GCC" = yes; then
14404 lt_prog_compiler_wl_F77='-Wl,'
14405 lt_prog_compiler_static_F77='-static'
14406
14407 case $host_os in
14408 aix*)
14409 # All AIX code is PIC.
14410 if test "$host_cpu" = ia64; then
14411 # AIX 5 now supports IA64 processor
14412 lt_prog_compiler_static_F77='-Bstatic'
14413 fi
14414 ;;
14415
14416 amigaos*)
14417 # FIXME: we need at least 68020 code to build shared libraries, but
14418 # adding the `-m68020' flag to GCC prevents building anything better,
14419 # like `-m68040'.
14420 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14421 ;;
14422
14423 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14424 # PIC is the default for these OSes.
14425 ;;
14426
14427 mingw* | cygwin* | pw32* | os2*)
14428 # This hack is so that the source file can tell whether it is being
14429 # built for inclusion in a dll (and should export symbols for example).
14430 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14431 # (--disable-auto-import) libraries
14432 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14433 ;;
14434
14435 darwin* | rhapsody*)
14436 # PIC is the default on this platform
14437 # Common symbols not allowed in MH_DYLIB files
14438 lt_prog_compiler_pic_F77='-fno-common'
14439 ;;
14440
14441 interix[3-9]*)
14442 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14443 # Instead, we relocate shared libraries at runtime.
14444 ;;
14445
14446 msdosdjgpp*)
14447 # Just because we use GCC doesn't mean we suddenly get shared libraries
14448 # on systems that don't support them.
14449 lt_prog_compiler_can_build_shared_F77=no
14450 enable_shared=no
14451 ;;
14452
14453 sysv4*MP*)
14454 if test -d /usr/nec; then
14455 lt_prog_compiler_pic_F77=-Kconform_pic
14456 fi
14457 ;;
14458
14459 hpux*)
14460 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14461 # not for PA HP-UX.
14462 case $host_cpu in
14463 hppa*64*|ia64*)
14464 # +Z the default
14465 ;;
14466 *)
14467 lt_prog_compiler_pic_F77='-fPIC'
14468 ;;
14469 esac
14470 ;;
14471
14472 *)
14473 lt_prog_compiler_pic_F77='-fPIC'
14474 ;;
14475 esac
14476 else
14477 # PORTME Check for flag to pass linker flags through the system compiler.
14478 case $host_os in
14479 aix*)
14480 lt_prog_compiler_wl_F77='-Wl,'
14481 if test "$host_cpu" = ia64; then
14482 # AIX 5 now supports IA64 processor
14483 lt_prog_compiler_static_F77='-Bstatic'
14484 else
14485 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14486 fi
14487 ;;
14488 darwin*)
14489 # PIC is the default on this platform
14490 # Common symbols not allowed in MH_DYLIB files
14491 case $cc_basename in
14492 xlc*)
14493 lt_prog_compiler_pic_F77='-qnocommon'
14494 lt_prog_compiler_wl_F77='-Wl,'
14495 ;;
14496 esac
14497 ;;
14498
14499 mingw* | cygwin* | pw32* | os2*)
14500 # This hack is so that the source file can tell whether it is being
14501 # built for inclusion in a dll (and should export symbols for example).
14502 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14503 ;;
14504
14505 hpux9* | hpux10* | hpux11*)
14506 lt_prog_compiler_wl_F77='-Wl,'
14507 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14508 # not for PA HP-UX.
14509 case $host_cpu in
14510 hppa*64*|ia64*)
14511 # +Z the default
14512 ;;
14513 *)
14514 lt_prog_compiler_pic_F77='+Z'
14515 ;;
14516 esac
14517 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14518 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14519 ;;
14520
14521 irix5* | irix6* | nonstopux*)
14522 lt_prog_compiler_wl_F77='-Wl,'
14523 # PIC (with -KPIC) is the default.
14524 lt_prog_compiler_static_F77='-non_shared'
14525 ;;
14526
14527 newsos6)
14528 lt_prog_compiler_pic_F77='-KPIC'
14529 lt_prog_compiler_static_F77='-Bstatic'
14530 ;;
14531
14532 linux* | k*bsd*-gnu)
14533 case $cc_basename in
14534 icc* | ecc*)
14535 lt_prog_compiler_wl_F77='-Wl,'
14536 lt_prog_compiler_pic_F77='-KPIC'
14537 lt_prog_compiler_static_F77='-static'
14538 ;;
14539 pgcc* | pgf77* | pgf90* | pgf95*)
14540 # Portland Group compilers (*not* the Pentium gcc compiler,
14541 # which looks to be a dead project)
14542 lt_prog_compiler_wl_F77='-Wl,'
14543 lt_prog_compiler_pic_F77='-fpic'
14544 lt_prog_compiler_static_F77='-Bstatic'
14545 ;;
14546 ccc*)
14547 lt_prog_compiler_wl_F77='-Wl,'
14548 # All Alpha code is PIC.
14549 lt_prog_compiler_static_F77='-non_shared'
14550 ;;
14551 *)
14552 case `$CC -V 2>&1 | sed 5q` in
14553 *Sun\ C*)
14554 # Sun C 5.9
14555 lt_prog_compiler_pic_F77='-KPIC'
14556 lt_prog_compiler_static_F77='-Bstatic'
14557 lt_prog_compiler_wl_F77='-Wl,'
14558 ;;
14559 *Sun\ F*)
14560 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14561 lt_prog_compiler_pic_F77='-KPIC'
14562 lt_prog_compiler_static_F77='-Bstatic'
14563 lt_prog_compiler_wl_F77=''
14564 ;;
14565 esac
14566 ;;
14567 esac
14568 ;;
14569
14570 osf3* | osf4* | osf5*)
14571 lt_prog_compiler_wl_F77='-Wl,'
14572 # All OSF/1 code is PIC.
14573 lt_prog_compiler_static_F77='-non_shared'
14574 ;;
14575
14576 rdos*)
14577 lt_prog_compiler_static_F77='-non_shared'
14578 ;;
14579
14580 solaris*)
14581 lt_prog_compiler_pic_F77='-KPIC'
14582 lt_prog_compiler_static_F77='-Bstatic'
14583 case $cc_basename in
14584 f77* | f90* | f95*)
14585 lt_prog_compiler_wl_F77='-Qoption ld ';;
14586 *)
14587 lt_prog_compiler_wl_F77='-Wl,';;
14588 esac
14589 ;;
14590
14591 sunos4*)
14592 lt_prog_compiler_wl_F77='-Qoption ld '
14593 lt_prog_compiler_pic_F77='-PIC'
14594 lt_prog_compiler_static_F77='-Bstatic'
14595 ;;
14596
14597 sysv4 | sysv4.2uw2* | sysv4.3*)
14598 lt_prog_compiler_wl_F77='-Wl,'
14599 lt_prog_compiler_pic_F77='-KPIC'
14600 lt_prog_compiler_static_F77='-Bstatic'
14601 ;;
14602
14603 sysv4*MP*)
14604 if test -d /usr/nec ;then
14605 lt_prog_compiler_pic_F77='-Kconform_pic'
14606 lt_prog_compiler_static_F77='-Bstatic'
14607 fi
14608 ;;
14609
14610 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14611 lt_prog_compiler_wl_F77='-Wl,'
14612 lt_prog_compiler_pic_F77='-KPIC'
14613 lt_prog_compiler_static_F77='-Bstatic'
14614 ;;
14615
14616 unicos*)
14617 lt_prog_compiler_wl_F77='-Wl,'
14618 lt_prog_compiler_can_build_shared_F77=no
14619 ;;
14620
14621 uts4*)
14622 lt_prog_compiler_pic_F77='-pic'
14623 lt_prog_compiler_static_F77='-Bstatic'
14624 ;;
14625
14626 *)
14627 lt_prog_compiler_can_build_shared_F77=no
14628 ;;
14629 esac
14630 fi
14631
14632 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14633 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14634
14635 #
14636 # Check to make sure the PIC flag actually works.
14637 #
14638 if test -n "$lt_prog_compiler_pic_F77"; then
14639
14640 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14641 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14642 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14643 $as_echo_n "(cached) " >&6
14644 else
14645 lt_cv_prog_compiler_pic_works_F77=no
14646 ac_outfile=conftest.$ac_objext
14647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14648 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14649 # Insert the option either (1) after the last *FLAGS variable, or
14650 # (2) before a word containing "conftest.", or (3) at the end.
14651 # Note that $ac_compile itself does not contain backslashes and begins
14652 # with a dollar sign (not a hyphen), so the echo should work correctly.
14653 # The option is referenced via a variable to avoid confusing sed.
14654 lt_compile=`echo "$ac_compile" | $SED \
14655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14657 -e 's:$: $lt_compiler_flag:'`
14658 (eval echo "\"\$as_me:14658: $lt_compile\"" >&5)
14659 (eval "$lt_compile" 2>conftest.err)
14660 ac_status=$?
14661 cat conftest.err >&5
14662 echo "$as_me:14662: \$? = $ac_status" >&5
14663 if (exit $ac_status) && test -s "$ac_outfile"; then
14664 # The compiler can only warn and ignore the option if not recognized
14665 # So say no if there are warnings other than the usual output.
14666 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14668 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14669 lt_cv_prog_compiler_pic_works_F77=yes
14670 fi
14671 fi
14672 $rm conftest*
14673
14674 fi
14675 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14676 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14677
14678 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14679 case $lt_prog_compiler_pic_F77 in
14680 "" | " "*) ;;
14681 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14682 esac
14683 else
14684 lt_prog_compiler_pic_F77=
14685 lt_prog_compiler_can_build_shared_F77=no
14686 fi
14687
14688 fi
14689 case $host_os in
14690 # For platforms which do not support PIC, -DPIC is meaningless:
14691 *djgpp*)
14692 lt_prog_compiler_pic_F77=
14693 ;;
14694 *)
14695 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14696 ;;
14697 esac
14698
14699 #
14700 # Check to make sure the static flag actually works.
14701 #
14702 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14703 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14704 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14705 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14706 $as_echo_n "(cached) " >&6
14707 else
14708 lt_cv_prog_compiler_static_works_F77=no
14709 save_LDFLAGS="$LDFLAGS"
14710 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14711 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14712 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14713 # The linker can only warn and ignore the option if not recognized
14714 # So say no if there are warnings
14715 if test -s conftest.err; then
14716 # Append any errors to the config.log.
14717 cat conftest.err 1>&5
14718 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14720 if diff conftest.exp conftest.er2 >/dev/null; then
14721 lt_cv_prog_compiler_static_works_F77=yes
14722 fi
14723 else
14724 lt_cv_prog_compiler_static_works_F77=yes
14725 fi
14726 fi
14727 $rm -r conftest*
14728 LDFLAGS="$save_LDFLAGS"
14729
14730 fi
14731 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14732 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14733
14734 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14735 :
14736 else
14737 lt_prog_compiler_static_F77=
14738 fi
14739
14740
14741 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14742 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14743 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14744 $as_echo_n "(cached) " >&6
14745 else
14746 lt_cv_prog_compiler_c_o_F77=no
14747 $rm -r conftest 2>/dev/null
14748 mkdir conftest
14749 cd conftest
14750 mkdir out
14751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14752
14753 lt_compiler_flag="-o out/conftest2.$ac_objext"
14754 # Insert the option either (1) after the last *FLAGS variable, or
14755 # (2) before a word containing "conftest.", or (3) at the end.
14756 # Note that $ac_compile itself does not contain backslashes and begins
14757 # with a dollar sign (not a hyphen), so the echo should work correctly.
14758 lt_compile=`echo "$ac_compile" | $SED \
14759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14761 -e 's:$: $lt_compiler_flag:'`
14762 (eval echo "\"\$as_me:14762: $lt_compile\"" >&5)
14763 (eval "$lt_compile" 2>out/conftest.err)
14764 ac_status=$?
14765 cat out/conftest.err >&5
14766 echo "$as_me:14766: \$? = $ac_status" >&5
14767 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14768 then
14769 # The compiler can only warn and ignore the option if not recognized
14770 # So say no if there are warnings
14771 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14774 lt_cv_prog_compiler_c_o_F77=yes
14775 fi
14776 fi
14777 chmod u+w . 2>&5
14778 $rm conftest*
14779 # SGI C++ compiler will create directory out/ii_files/ for
14780 # template instantiation
14781 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14782 $rm out/* && rmdir out
14783 cd ..
14784 rmdir conftest
14785 $rm conftest*
14786
14787 fi
14788 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14789 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14790
14791
14792 hard_links="nottested"
14793 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14794 # do not overwrite the value of need_locks provided by the user
14795 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14796 $as_echo_n "checking if we can lock with hard links... " >&6; }
14797 hard_links=yes
14798 $rm conftest*
14799 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14800 touch conftest.a
14801 ln conftest.a conftest.b 2>&5 || hard_links=no
14802 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14803 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14804 $as_echo "$hard_links" >&6; }
14805 if test "$hard_links" = no; then
14806 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14807 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14808 need_locks=warn
14809 fi
14810 else
14811 need_locks=no
14812 fi
14813
14814 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14815 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14816
14817 runpath_var=
14818 allow_undefined_flag_F77=
14819 enable_shared_with_static_runtimes_F77=no
14820 archive_cmds_F77=
14821 archive_expsym_cmds_F77=
14822 old_archive_From_new_cmds_F77=
14823 old_archive_from_expsyms_cmds_F77=
14824 export_dynamic_flag_spec_F77=
14825 whole_archive_flag_spec_F77=
14826 thread_safe_flag_spec_F77=
14827 hardcode_libdir_flag_spec_F77=
14828 hardcode_libdir_flag_spec_ld_F77=
14829 hardcode_libdir_separator_F77=
14830 hardcode_direct_F77=no
14831 hardcode_minus_L_F77=no
14832 hardcode_shlibpath_var_F77=unsupported
14833 link_all_deplibs_F77=unknown
14834 hardcode_automatic_F77=no
14835 module_cmds_F77=
14836 module_expsym_cmds_F77=
14837 always_export_symbols_F77=no
14838 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14839 # include_expsyms should be a list of space-separated symbols to be *always*
14840 # included in the symbol list
14841 include_expsyms_F77=
14842 # exclude_expsyms can be an extended regexp of symbols to exclude
14843 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14844 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14845 # as well as any symbol that contains `d'.
14846 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14847 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14848 # platforms (ab)use it in PIC code, but their linkers get confused if
14849 # the symbol is explicitly referenced. Since portable code cannot
14850 # rely on this symbol name, it's probably fine to never include it in
14851 # preloaded symbol tables.
14852 # Exclude shared library initialization/finalization symbols.
14853 extract_expsyms_cmds=
14854 # Just being paranoid about ensuring that cc_basename is set.
14855 for cc_temp in $compiler""; do
14856 case $cc_temp in
14857 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14858 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14859 \-*) ;;
14860 *) break;;
14861 esac
14862 done
14863 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14864
14865 case $host_os in
14866 cygwin* | mingw* | pw32*)
14867 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14868 # When not using gcc, we currently assume that we are using
14869 # Microsoft Visual C++.
14870 if test "$GCC" != yes; then
14871 with_gnu_ld=no
14872 fi
14873 ;;
14874 interix*)
14875 # we just hope/assume this is gcc and not c89 (= MSVC++)
14876 with_gnu_ld=yes
14877 ;;
14878 openbsd*)
14879 with_gnu_ld=no
14880 ;;
14881 esac
14882
14883 ld_shlibs_F77=yes
14884 if test "$with_gnu_ld" = yes; then
14885 # If archive_cmds runs LD, not CC, wlarc should be empty
14886 wlarc='${wl}'
14887
14888 # Set some defaults for GNU ld with shared library support. These
14889 # are reset later if shared libraries are not supported. Putting them
14890 # here allows them to be overridden if necessary.
14891 runpath_var=LD_RUN_PATH
14892 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14893 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14894 # ancient GNU ld didn't support --whole-archive et. al.
14895 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14896 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14897 else
14898 whole_archive_flag_spec_F77=
14899 fi
14900 supports_anon_versioning=no
14901 case `$LD -v 2>/dev/null` in
14902 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14903 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14904 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14905 *\ 2.11.*) ;; # other 2.11 versions
14906 *) supports_anon_versioning=yes ;;
14907 esac
14908
14909 # See if GNU ld supports shared libraries.
14910 case $host_os in
14911 aix[3-9]*)
14912 # On AIX/PPC, the GNU linker is very broken
14913 if test "$host_cpu" != ia64; then
14914 ld_shlibs_F77=no
14915 cat <<EOF 1>&2
14916
14917 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14918 *** to be unable to reliably create shared libraries on AIX.
14919 *** Therefore, libtool is disabling shared libraries support. If you
14920 *** really care for shared libraries, you may want to modify your PATH
14921 *** so that a non-GNU linker is found, and then restart.
14922
14923 EOF
14924 fi
14925 ;;
14926
14927 amigaos*)
14928 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)'
14929 hardcode_libdir_flag_spec_F77='-L$libdir'
14930 hardcode_minus_L_F77=yes
14931
14932 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14933 # that the semantics of dynamic libraries on AmigaOS, at least up
14934 # to version 4, is to share data among multiple programs linked
14935 # with the same dynamic library. Since this doesn't match the
14936 # behavior of shared libraries on other platforms, we can't use
14937 # them.
14938 ld_shlibs_F77=no
14939 ;;
14940
14941 beos*)
14942 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14943 allow_undefined_flag_F77=unsupported
14944 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14945 # support --undefined. This deserves some investigation. FIXME
14946 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14947 else
14948 ld_shlibs_F77=no
14949 fi
14950 ;;
14951
14952 cygwin* | mingw* | pw32*)
14953 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14954 # as there is no search path for DLLs.
14955 hardcode_libdir_flag_spec_F77='-L$libdir'
14956 allow_undefined_flag_F77=unsupported
14957 always_export_symbols_F77=no
14958 enable_shared_with_static_runtimes_F77=yes
14959 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14960
14961 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14962 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14963 # If the export-symbols file already is a .def file (1st line
14964 # is EXPORTS), use it as is; otherwise, prepend...
14965 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14966 cp $export_symbols $output_objdir/$soname.def;
14967 else
14968 echo EXPORTS > $output_objdir/$soname.def;
14969 cat $export_symbols >> $output_objdir/$soname.def;
14970 fi~
14971 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14972 else
14973 ld_shlibs_F77=no
14974 fi
14975 ;;
14976
14977 interix[3-9]*)
14978 hardcode_direct_F77=no
14979 hardcode_shlibpath_var_F77=no
14980 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14981 export_dynamic_flag_spec_F77='${wl}-E'
14982 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14983 # Instead, shared libraries are loaded at an image base (0x10000000 by
14984 # default) and relocated if they conflict, which is a slow very memory
14985 # consuming and fragmenting process. To avoid this, we pick a random,
14986 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14987 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14988 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'
14989 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'
14990 ;;
14991
14992 gnu* | linux* | k*bsd*-gnu)
14993 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14994 tmp_addflag=
14995 case $cc_basename,$host_cpu in
14996 pgcc*) # Portland Group C compiler
14997 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'
14998 tmp_addflag=' $pic_flag'
14999 ;;
15000 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15001 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'
15002 tmp_addflag=' $pic_flag -Mnomain' ;;
15003 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15004 tmp_addflag=' -i_dynamic' ;;
15005 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15006 tmp_addflag=' -i_dynamic -nofor_main' ;;
15007 ifc* | ifort*) # Intel Fortran compiler
15008 tmp_addflag=' -nofor_main' ;;
15009 esac
15010 case `$CC -V 2>&1 | sed 5q` in
15011 *Sun\ C*) # Sun C 5.9
15012 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'
15013 tmp_sharedflag='-G' ;;
15014 *Sun\ F*) # Sun Fortran 8.3
15015 tmp_sharedflag='-G' ;;
15016 *)
15017 tmp_sharedflag='-shared' ;;
15018 esac
15019 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15020
15021 if test $supports_anon_versioning = yes; then
15022 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15023 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15024 $echo "local: *; };" >> $output_objdir/$libname.ver~
15025 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15026 fi
15027 else
15028 ld_shlibs_F77=no
15029 fi
15030 ;;
15031
15032 netbsd*)
15033 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15034 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15035 wlarc=
15036 else
15037 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15038 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15039 fi
15040 ;;
15041
15042 solaris*)
15043 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15044 ld_shlibs_F77=no
15045 cat <<EOF 1>&2
15046
15047 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15048 *** create shared libraries on Solaris systems. Therefore, libtool
15049 *** is disabling shared libraries support. We urge you to upgrade GNU
15050 *** binutils to release 2.9.1 or newer. Another option is to modify
15051 *** your PATH or compiler configuration so that the native linker is
15052 *** used, and then restart.
15053
15054 EOF
15055 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15056 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15057 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15058 else
15059 ld_shlibs_F77=no
15060 fi
15061 ;;
15062
15063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15064 case `$LD -v 2>&1` in
15065 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15066 ld_shlibs_F77=no
15067 cat <<_LT_EOF 1>&2
15068
15069 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15070 *** reliably create shared libraries on SCO systems. Therefore, libtool
15071 *** is disabling shared libraries support. We urge you to upgrade GNU
15072 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15073 *** your PATH or compiler configuration so that the native linker is
15074 *** used, and then restart.
15075
15076 _LT_EOF
15077 ;;
15078 *)
15079 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15080 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15081 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15082 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15083 else
15084 ld_shlibs_F77=no
15085 fi
15086 ;;
15087 esac
15088 ;;
15089
15090 sunos4*)
15091 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15092 wlarc=
15093 hardcode_direct_F77=yes
15094 hardcode_shlibpath_var_F77=no
15095 ;;
15096
15097 *)
15098 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15099 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15100 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15101 else
15102 ld_shlibs_F77=no
15103 fi
15104 ;;
15105 esac
15106
15107 if test "$ld_shlibs_F77" = no; then
15108 runpath_var=
15109 hardcode_libdir_flag_spec_F77=
15110 export_dynamic_flag_spec_F77=
15111 whole_archive_flag_spec_F77=
15112 fi
15113 else
15114 # PORTME fill in a description of your system's linker (not GNU ld)
15115 case $host_os in
15116 aix3*)
15117 allow_undefined_flag_F77=unsupported
15118 always_export_symbols_F77=yes
15119 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'
15120 # Note: this linker hardcodes the directories in LIBPATH if there
15121 # are no directories specified by -L.
15122 hardcode_minus_L_F77=yes
15123 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15124 # Neither direct hardcoding nor static linking is supported with a
15125 # broken collect2.
15126 hardcode_direct_F77=unsupported
15127 fi
15128 ;;
15129
15130 aix[4-9]*)
15131 if test "$host_cpu" = ia64; then
15132 # On IA64, the linker does run time linking by default, so we don't
15133 # have to do anything special.
15134 aix_use_runtimelinking=no
15135 exp_sym_flag='-Bexport'
15136 no_entry_flag=""
15137 else
15138 # If we're using GNU nm, then we don't want the "-C" option.
15139 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15140 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15141 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'
15142 else
15143 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'
15144 fi
15145 aix_use_runtimelinking=no
15146
15147 # Test if we are trying to use run time linking or normal
15148 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15149 # need to do runtime linking.
15150 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15151 for ld_flag in $LDFLAGS; do
15152 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15153 aix_use_runtimelinking=yes
15154 break
15155 fi
15156 done
15157 ;;
15158 esac
15159
15160 exp_sym_flag='-bexport'
15161 no_entry_flag='-bnoentry'
15162 fi
15163
15164 # When large executables or shared objects are built, AIX ld can
15165 # have problems creating the table of contents. If linking a library
15166 # or program results in "error TOC overflow" add -mminimal-toc to
15167 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15168 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15169
15170 archive_cmds_F77=''
15171 hardcode_direct_F77=yes
15172 hardcode_libdir_separator_F77=':'
15173 link_all_deplibs_F77=yes
15174
15175 if test "$GCC" = yes; then
15176 case $host_os in aix4.[012]|aix4.[012].*)
15177 # We only want to do this on AIX 4.2 and lower, the check
15178 # below for broken collect2 doesn't work under 4.3+
15179 collect2name=`${CC} -print-prog-name=collect2`
15180 if test -f "$collect2name" && \
15181 strings "$collect2name" | grep resolve_lib_name >/dev/null
15182 then
15183 # We have reworked collect2
15184 :
15185 else
15186 # We have old collect2
15187 hardcode_direct_F77=unsupported
15188 # It fails to find uninstalled libraries when the uninstalled
15189 # path is not listed in the libpath. Setting hardcode_minus_L
15190 # to unsupported forces relinking
15191 hardcode_minus_L_F77=yes
15192 hardcode_libdir_flag_spec_F77='-L$libdir'
15193 hardcode_libdir_separator_F77=
15194 fi
15195 ;;
15196 esac
15197 shared_flag='-shared'
15198 if test "$aix_use_runtimelinking" = yes; then
15199 shared_flag="$shared_flag "'${wl}-G'
15200 fi
15201 else
15202 # not using gcc
15203 if test "$host_cpu" = ia64; then
15204 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15205 # chokes on -Wl,-G. The following line is correct:
15206 shared_flag='-G'
15207 else
15208 if test "$aix_use_runtimelinking" = yes; then
15209 shared_flag='${wl}-G'
15210 else
15211 shared_flag='${wl}-bM:SRE'
15212 fi
15213 fi
15214 fi
15215
15216 # It seems that -bexpall does not export symbols beginning with
15217 # underscore (_), so it is better to generate a list of symbols to export.
15218 always_export_symbols_F77=yes
15219 if test "$aix_use_runtimelinking" = yes; then
15220 # Warning - without using the other runtime loading flags (-brtl),
15221 # -berok will link without error, but may produce a broken library.
15222 allow_undefined_flag_F77='-berok'
15223 # Determine the default libpath from the value encoded in an empty executable.
15224 cat >conftest.$ac_ext <<_ACEOF
15225 program main
15226
15227 end
15228 _ACEOF
15229 rm -f conftest.$ac_objext conftest$ac_exeext
15230 if { (ac_try="$ac_link"
15231 case "(($ac_try" in
15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233 *) ac_try_echo=$ac_try;;
15234 esac
15235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15236 $as_echo "$ac_try_echo") >&5
15237 (eval "$ac_link") 2>conftest.er1
15238 ac_status=$?
15239 grep -v '^ *+' conftest.er1 >conftest.err
15240 rm -f conftest.er1
15241 cat conftest.err >&5
15242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } && {
15244 test -z "$ac_f77_werror_flag" ||
15245 test ! -s conftest.err
15246 } && test -s conftest$ac_exeext && {
15247 test "$cross_compiling" = yes ||
15248 $as_test_x conftest$ac_exeext
15249 }; then
15250
15251 lt_aix_libpath_sed='
15252 /Import File Strings/,/^$/ {
15253 /^0/ {
15254 s/^0 *\(.*\)$/\1/
15255 p
15256 }
15257 }'
15258 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15259 # Check for a 64-bit object if we didn't find anything.
15260 if test -z "$aix_libpath"; then
15261 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15262 fi
15263 else
15264 $as_echo "$as_me: failed program was:" >&5
15265 sed 's/^/| /' conftest.$ac_ext >&5
15266
15267
15268 fi
15269
15270 rm -rf conftest.dSYM
15271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15272 conftest$ac_exeext conftest.$ac_ext
15273 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15274
15275 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15276 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"
15277 else
15278 if test "$host_cpu" = ia64; then
15279 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15280 allow_undefined_flag_F77="-z nodefs"
15281 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"
15282 else
15283 # Determine the default libpath from the value encoded in an empty executable.
15284 cat >conftest.$ac_ext <<_ACEOF
15285 program main
15286
15287 end
15288 _ACEOF
15289 rm -f conftest.$ac_objext conftest$ac_exeext
15290 if { (ac_try="$ac_link"
15291 case "(($ac_try" in
15292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15293 *) ac_try_echo=$ac_try;;
15294 esac
15295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15296 $as_echo "$ac_try_echo") >&5
15297 (eval "$ac_link") 2>conftest.er1
15298 ac_status=$?
15299 grep -v '^ *+' conftest.er1 >conftest.err
15300 rm -f conftest.er1
15301 cat conftest.err >&5
15302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } && {
15304 test -z "$ac_f77_werror_flag" ||
15305 test ! -s conftest.err
15306 } && test -s conftest$ac_exeext && {
15307 test "$cross_compiling" = yes ||
15308 $as_test_x conftest$ac_exeext
15309 }; then
15310
15311 lt_aix_libpath_sed='
15312 /Import File Strings/,/^$/ {
15313 /^0/ {
15314 s/^0 *\(.*\)$/\1/
15315 p
15316 }
15317 }'
15318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15319 # Check for a 64-bit object if we didn't find anything.
15320 if test -z "$aix_libpath"; then
15321 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15322 fi
15323 else
15324 $as_echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15326
15327
15328 fi
15329
15330 rm -rf conftest.dSYM
15331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15332 conftest$ac_exeext conftest.$ac_ext
15333 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15334
15335 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15336 # Warning - without using the other run time loading flags,
15337 # -berok will link without error, but may produce a broken library.
15338 no_undefined_flag_F77=' ${wl}-bernotok'
15339 allow_undefined_flag_F77=' ${wl}-berok'
15340 # Exported symbols can be pulled into shared objects from archives
15341 whole_archive_flag_spec_F77='$convenience'
15342 archive_cmds_need_lc_F77=yes
15343 # This is similar to how AIX traditionally builds its shared libraries.
15344 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'
15345 fi
15346 fi
15347 ;;
15348
15349 amigaos*)
15350 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)'
15351 hardcode_libdir_flag_spec_F77='-L$libdir'
15352 hardcode_minus_L_F77=yes
15353 # see comment about different semantics on the GNU ld section
15354 ld_shlibs_F77=no
15355 ;;
15356
15357 bsdi[45]*)
15358 export_dynamic_flag_spec_F77=-rdynamic
15359 ;;
15360
15361 cygwin* | mingw* | pw32*)
15362 # When not using gcc, we currently assume that we are using
15363 # Microsoft Visual C++.
15364 # hardcode_libdir_flag_spec is actually meaningless, as there is
15365 # no search path for DLLs.
15366 hardcode_libdir_flag_spec_F77=' '
15367 allow_undefined_flag_F77=unsupported
15368 # Tell ltmain to make .lib files, not .a files.
15369 libext=lib
15370 # Tell ltmain to make .dll files, not .so files.
15371 shrext_cmds=".dll"
15372 # FIXME: Setting linknames here is a bad hack.
15373 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15374 # The linker will automatically build a .lib file if we build a DLL.
15375 old_archive_From_new_cmds_F77='true'
15376 # FIXME: Should let the user specify the lib program.
15377 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15378 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15379 enable_shared_with_static_runtimes_F77=yes
15380 ;;
15381
15382 darwin* | rhapsody*)
15383 case $host_os in
15384 rhapsody* | darwin1.[012])
15385 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15386 ;;
15387 *) # Darwin 1.3 on
15388 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15389 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15390 else
15391 case ${MACOSX_DEPLOYMENT_TARGET} in
15392 10.[012])
15393 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15394 ;;
15395 10.*)
15396 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15397 ;;
15398 esac
15399 fi
15400 ;;
15401 esac
15402 archive_cmds_need_lc_F77=no
15403 hardcode_direct_F77=no
15404 hardcode_automatic_F77=yes
15405 hardcode_shlibpath_var_F77=unsupported
15406 whole_archive_flag_spec_F77=''
15407 link_all_deplibs_F77=yes
15408 if test "$GCC" = yes ; then
15409 output_verbose_link_cmd='echo'
15410 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15411 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15412 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15413 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15414 else
15415 case $cc_basename in
15416 xlc*)
15417 output_verbose_link_cmd='echo'
15418 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15419 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15420 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15421 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}'
15422 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}'
15423 ;;
15424 *)
15425 ld_shlibs_F77=no
15426 ;;
15427 esac
15428 fi
15429 ;;
15430
15431 dgux*)
15432 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15433 hardcode_libdir_flag_spec_F77='-L$libdir'
15434 hardcode_shlibpath_var_F77=no
15435 ;;
15436
15437 freebsd1*)
15438 ld_shlibs_F77=no
15439 ;;
15440
15441 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15442 # support. Future versions do this automatically, but an explicit c++rt0.o
15443 # does not break anything, and helps significantly (at the cost of a little
15444 # extra space).
15445 freebsd2.2*)
15446 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15447 hardcode_libdir_flag_spec_F77='-R$libdir'
15448 hardcode_direct_F77=yes
15449 hardcode_shlibpath_var_F77=no
15450 ;;
15451
15452 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15453 freebsd2*)
15454 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15455 hardcode_direct_F77=yes
15456 hardcode_minus_L_F77=yes
15457 hardcode_shlibpath_var_F77=no
15458 ;;
15459
15460 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15461 freebsd* | dragonfly*)
15462 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15463 hardcode_libdir_flag_spec_F77='-R$libdir'
15464 hardcode_direct_F77=yes
15465 hardcode_shlibpath_var_F77=no
15466 ;;
15467
15468 hpux9*)
15469 if test "$GCC" = yes; then
15470 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'
15471 else
15472 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'
15473 fi
15474 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15475 hardcode_libdir_separator_F77=:
15476 hardcode_direct_F77=yes
15477
15478 # hardcode_minus_L: Not really in the search PATH,
15479 # but as the default location of the library.
15480 hardcode_minus_L_F77=yes
15481 export_dynamic_flag_spec_F77='${wl}-E'
15482 ;;
15483
15484 hpux10*)
15485 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15486 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15487 else
15488 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15489 fi
15490 if test "$with_gnu_ld" = no; then
15491 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15492 hardcode_libdir_separator_F77=:
15493
15494 hardcode_direct_F77=yes
15495 export_dynamic_flag_spec_F77='${wl}-E'
15496
15497 # hardcode_minus_L: Not really in the search PATH,
15498 # but as the default location of the library.
15499 hardcode_minus_L_F77=yes
15500 fi
15501 ;;
15502
15503 hpux11*)
15504 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15505 case $host_cpu in
15506 hppa*64*)
15507 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15508 ;;
15509 ia64*)
15510 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15511 ;;
15512 *)
15513 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15514 ;;
15515 esac
15516 else
15517 case $host_cpu in
15518 hppa*64*)
15519 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15520 ;;
15521 ia64*)
15522 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15523 ;;
15524 *)
15525 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15526 ;;
15527 esac
15528 fi
15529 if test "$with_gnu_ld" = no; then
15530 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15531 hardcode_libdir_separator_F77=:
15532
15533 case $host_cpu in
15534 hppa*64*|ia64*)
15535 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15536 hardcode_direct_F77=no
15537 hardcode_shlibpath_var_F77=no
15538 ;;
15539 *)
15540 hardcode_direct_F77=yes
15541 export_dynamic_flag_spec_F77='${wl}-E'
15542
15543 # hardcode_minus_L: Not really in the search PATH,
15544 # but as the default location of the library.
15545 hardcode_minus_L_F77=yes
15546 ;;
15547 esac
15548 fi
15549 ;;
15550
15551 irix5* | irix6* | nonstopux*)
15552 if test "$GCC" = yes; then
15553 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'
15554 else
15555 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'
15556 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15557 fi
15558 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15559 hardcode_libdir_separator_F77=:
15560 link_all_deplibs_F77=yes
15561 ;;
15562
15563 netbsd*)
15564 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15565 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15566 else
15567 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15568 fi
15569 hardcode_libdir_flag_spec_F77='-R$libdir'
15570 hardcode_direct_F77=yes
15571 hardcode_shlibpath_var_F77=no
15572 ;;
15573
15574 newsos6)
15575 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15576 hardcode_direct_F77=yes
15577 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15578 hardcode_libdir_separator_F77=:
15579 hardcode_shlibpath_var_F77=no
15580 ;;
15581
15582 openbsd*)
15583 if test -f /usr/libexec/ld.so; then
15584 hardcode_direct_F77=yes
15585 hardcode_shlibpath_var_F77=no
15586 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15587 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15588 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15589 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15590 export_dynamic_flag_spec_F77='${wl}-E'
15591 else
15592 case $host_os in
15593 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15594 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15595 hardcode_libdir_flag_spec_F77='-R$libdir'
15596 ;;
15597 *)
15598 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15599 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15600 ;;
15601 esac
15602 fi
15603 else
15604 ld_shlibs_F77=no
15605 fi
15606 ;;
15607
15608 os2*)
15609 hardcode_libdir_flag_spec_F77='-L$libdir'
15610 hardcode_minus_L_F77=yes
15611 allow_undefined_flag_F77=unsupported
15612 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'
15613 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15614 ;;
15615
15616 osf3*)
15617 if test "$GCC" = yes; then
15618 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15619 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'
15620 else
15621 allow_undefined_flag_F77=' -expect_unresolved \*'
15622 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'
15623 fi
15624 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15625 hardcode_libdir_separator_F77=:
15626 ;;
15627
15628 osf4* | osf5*) # as osf3* with the addition of -msym flag
15629 if test "$GCC" = yes; then
15630 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15631 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'
15632 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15633 else
15634 allow_undefined_flag_F77=' -expect_unresolved \*'
15635 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'
15636 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~
15637 $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'
15638
15639 # Both c and cxx compiler support -rpath directly
15640 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15641 fi
15642 hardcode_libdir_separator_F77=:
15643 ;;
15644
15645 solaris*)
15646 no_undefined_flag_F77=' -z text'
15647 if test "$GCC" = yes; then
15648 wlarc='${wl}'
15649 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15650 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15651 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15652 else
15653 wlarc=''
15654 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15655 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15656 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15657 fi
15658 hardcode_libdir_flag_spec_F77='-R$libdir'
15659 hardcode_shlibpath_var_F77=no
15660 case $host_os in
15661 solaris2.[0-5] | solaris2.[0-5].*) ;;
15662 *)
15663 # The compiler driver will combine and reorder linker options,
15664 # but understands `-z linker_flag'. GCC discards it without `$wl',
15665 # but is careful enough not to reorder.
15666 # Supported since Solaris 2.6 (maybe 2.5.1?)
15667 if test "$GCC" = yes; then
15668 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15669 else
15670 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15671 fi
15672 ;;
15673 esac
15674 link_all_deplibs_F77=yes
15675 ;;
15676
15677 sunos4*)
15678 if test "x$host_vendor" = xsequent; then
15679 # Use $CC to link under sequent, because it throws in some extra .o
15680 # files that make .init and .fini sections work.
15681 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15682 else
15683 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15684 fi
15685 hardcode_libdir_flag_spec_F77='-L$libdir'
15686 hardcode_direct_F77=yes
15687 hardcode_minus_L_F77=yes
15688 hardcode_shlibpath_var_F77=no
15689 ;;
15690
15691 sysv4)
15692 case $host_vendor in
15693 sni)
15694 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15695 hardcode_direct_F77=yes # is this really true???
15696 ;;
15697 siemens)
15698 ## LD is ld it makes a PLAMLIB
15699 ## CC just makes a GrossModule.
15700 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15701 reload_cmds_F77='$CC -r -o $output$reload_objs'
15702 hardcode_direct_F77=no
15703 ;;
15704 motorola)
15705 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15706 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15707 ;;
15708 esac
15709 runpath_var='LD_RUN_PATH'
15710 hardcode_shlibpath_var_F77=no
15711 ;;
15712
15713 sysv4.3*)
15714 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15715 hardcode_shlibpath_var_F77=no
15716 export_dynamic_flag_spec_F77='-Bexport'
15717 ;;
15718
15719 sysv4*MP*)
15720 if test -d /usr/nec; then
15721 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15722 hardcode_shlibpath_var_F77=no
15723 runpath_var=LD_RUN_PATH
15724 hardcode_runpath_var=yes
15725 ld_shlibs_F77=yes
15726 fi
15727 ;;
15728
15729 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15730 no_undefined_flag_F77='${wl}-z,text'
15731 archive_cmds_need_lc_F77=no
15732 hardcode_shlibpath_var_F77=no
15733 runpath_var='LD_RUN_PATH'
15734
15735 if test "$GCC" = yes; then
15736 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15737 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15738 else
15739 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15740 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15741 fi
15742 ;;
15743
15744 sysv5* | sco3.2v5* | sco5v6*)
15745 # Note: We can NOT use -z defs as we might desire, because we do not
15746 # link with -lc, and that would cause any symbols used from libc to
15747 # always be unresolved, which means just about no library would
15748 # ever link correctly. If we're not using GNU ld we use -z text
15749 # though, which does catch some bad symbols but isn't as heavy-handed
15750 # as -z defs.
15751 no_undefined_flag_F77='${wl}-z,text'
15752 allow_undefined_flag_F77='${wl}-z,nodefs'
15753 archive_cmds_need_lc_F77=no
15754 hardcode_shlibpath_var_F77=no
15755 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15756 hardcode_libdir_separator_F77=':'
15757 link_all_deplibs_F77=yes
15758 export_dynamic_flag_spec_F77='${wl}-Bexport'
15759 runpath_var='LD_RUN_PATH'
15760
15761 if test "$GCC" = yes; then
15762 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15763 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15764 else
15765 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15766 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15767 fi
15768 ;;
15769
15770 uts4*)
15771 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15772 hardcode_libdir_flag_spec_F77='-L$libdir'
15773 hardcode_shlibpath_var_F77=no
15774 ;;
15775
15776 *)
15777 ld_shlibs_F77=no
15778 ;;
15779 esac
15780 fi
15781
15782 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15783 $as_echo "$ld_shlibs_F77" >&6; }
15784 test "$ld_shlibs_F77" = no && can_build_shared=no
15785
15786 #
15787 # Do we need to explicitly link libc?
15788 #
15789 case "x$archive_cmds_need_lc_F77" in
15790 x|xyes)
15791 # Assume -lc should be added
15792 archive_cmds_need_lc_F77=yes
15793
15794 if test "$enable_shared" = yes && test "$GCC" = yes; then
15795 case $archive_cmds_F77 in
15796 *'~'*)
15797 # FIXME: we may have to deal with multi-command sequences.
15798 ;;
15799 '$CC '*)
15800 # Test whether the compiler implicitly links with -lc since on some
15801 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15802 # to ld, don't add -lc before -lgcc.
15803 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15804 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15805 $rm conftest*
15806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15807
15808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15809 (eval $ac_compile) 2>&5
15810 ac_status=$?
15811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); } 2>conftest.err; then
15813 soname=conftest
15814 lib=conftest
15815 libobjs=conftest.$ac_objext
15816 deplibs=
15817 wl=$lt_prog_compiler_wl_F77
15818 pic_flag=$lt_prog_compiler_pic_F77
15819 compiler_flags=-v
15820 linker_flags=-v
15821 verstring=
15822 output_objdir=.
15823 libname=conftest
15824 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15825 allow_undefined_flag_F77=
15826 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15827 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15828 ac_status=$?
15829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }
15831 then
15832 archive_cmds_need_lc_F77=no
15833 else
15834 archive_cmds_need_lc_F77=yes
15835 fi
15836 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15837 else
15838 cat conftest.err 1>&5
15839 fi
15840 $rm conftest*
15841 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15842 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15843 ;;
15844 esac
15845 fi
15846 ;;
15847 esac
15848
15849 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15850 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15851 library_names_spec=
15852 libname_spec='lib$name'
15853 soname_spec=
15854 shrext_cmds=".so"
15855 postinstall_cmds=
15856 postuninstall_cmds=
15857 finish_cmds=
15858 finish_eval=
15859 shlibpath_var=
15860 shlibpath_overrides_runpath=unknown
15861 version_type=none
15862 dynamic_linker="$host_os ld.so"
15863 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15864
15865 need_lib_prefix=unknown
15866 hardcode_into_libs=no
15867
15868 # when you set need_version to no, make sure it does not cause -set_version
15869 # flags to be left without arguments
15870 need_version=unknown
15871
15872 case $host_os in
15873 aix3*)
15874 version_type=linux
15875 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15876 shlibpath_var=LIBPATH
15877
15878 # AIX 3 has no versioning support, so we append a major version to the name.
15879 soname_spec='${libname}${release}${shared_ext}$major'
15880 ;;
15881
15882 aix[4-9]*)
15883 version_type=linux
15884 need_lib_prefix=no
15885 need_version=no
15886 hardcode_into_libs=yes
15887 if test "$host_cpu" = ia64; then
15888 # AIX 5 supports IA64
15889 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15890 shlibpath_var=LD_LIBRARY_PATH
15891 else
15892 # With GCC up to 2.95.x, collect2 would create an import file
15893 # for dependence libraries. The import file would start with
15894 # the line `#! .'. This would cause the generated library to
15895 # depend on `.', always an invalid library. This was fixed in
15896 # development snapshots of GCC prior to 3.0.
15897 case $host_os in
15898 aix4 | aix4.[01] | aix4.[01].*)
15899 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15900 echo ' yes '
15901 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15902 :
15903 else
15904 can_build_shared=no
15905 fi
15906 ;;
15907 esac
15908 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15909 # soname into executable. Probably we can add versioning support to
15910 # collect2, so additional links can be useful in future.
15911 if test "$aix_use_runtimelinking" = yes; then
15912 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15913 # instead of lib<name>.a to let people know that these are not
15914 # typical AIX shared libraries.
15915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15916 else
15917 # We preserve .a as extension for shared libraries through AIX4.2
15918 # and later when we are not doing run time linking.
15919 library_names_spec='${libname}${release}.a $libname.a'
15920 soname_spec='${libname}${release}${shared_ext}$major'
15921 fi
15922 shlibpath_var=LIBPATH
15923 fi
15924 ;;
15925
15926 amigaos*)
15927 library_names_spec='$libname.ixlibrary $libname.a'
15928 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15929 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'
15930 ;;
15931
15932 beos*)
15933 library_names_spec='${libname}${shared_ext}'
15934 dynamic_linker="$host_os ld.so"
15935 shlibpath_var=LIBRARY_PATH
15936 ;;
15937
15938 bsdi[45]*)
15939 version_type=linux
15940 need_version=no
15941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15942 soname_spec='${libname}${release}${shared_ext}$major'
15943 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15944 shlibpath_var=LD_LIBRARY_PATH
15945 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15946 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15947 # the default ld.so.conf also contains /usr/contrib/lib and
15948 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15949 # libtool to hard-code these into programs
15950 ;;
15951
15952 cygwin* | mingw* | pw32*)
15953 version_type=windows
15954 shrext_cmds=".dll"
15955 need_version=no
15956 need_lib_prefix=no
15957
15958 case $GCC,$host_os in
15959 yes,cygwin* | yes,mingw* | yes,pw32*)
15960 library_names_spec='$libname.dll.a'
15961 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15962 postinstall_cmds='base_file=`basename \${file}`~
15963 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15964 dldir=$destdir/`dirname \$dlpath`~
15965 test -d \$dldir || mkdir -p \$dldir~
15966 $install_prog $dir/$dlname \$dldir/$dlname~
15967 chmod a+x \$dldir/$dlname'
15968 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15969 dlpath=$dir/\$dldll~
15970 $rm \$dlpath'
15971 shlibpath_overrides_runpath=yes
15972
15973 case $host_os in
15974 cygwin*)
15975 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15976 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15977 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15978 ;;
15979 mingw*)
15980 # MinGW DLLs use traditional 'lib' prefix
15981 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15982 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15983 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15984 # It is most probably a Windows format PATH printed by
15985 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15986 # path with ; separators, and with drive letters. We can handle the
15987 # drive letters (cygwin fileutils understands them), so leave them,
15988 # especially as we might pass files found there to a mingw objdump,
15989 # which wouldn't understand a cygwinified path. Ahh.
15990 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15991 else
15992 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15993 fi
15994 ;;
15995 pw32*)
15996 # pw32 DLLs use 'pw' prefix rather than 'lib'
15997 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15998 ;;
15999 esac
16000 ;;
16001
16002 *)
16003 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16004 ;;
16005 esac
16006 dynamic_linker='Win32 ld.exe'
16007 # FIXME: first we should search . and the directory the executable is in
16008 shlibpath_var=PATH
16009 ;;
16010
16011 darwin* | rhapsody*)
16012 dynamic_linker="$host_os dyld"
16013 version_type=darwin
16014 need_lib_prefix=no
16015 need_version=no
16016 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16017 soname_spec='${libname}${release}${major}$shared_ext'
16018 shlibpath_overrides_runpath=yes
16019 shlibpath_var=DYLD_LIBRARY_PATH
16020 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16021
16022 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16023 ;;
16024
16025 dgux*)
16026 version_type=linux
16027 need_lib_prefix=no
16028 need_version=no
16029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16030 soname_spec='${libname}${release}${shared_ext}$major'
16031 shlibpath_var=LD_LIBRARY_PATH
16032 ;;
16033
16034 freebsd1*)
16035 dynamic_linker=no
16036 ;;
16037
16038 freebsd* | dragonfly*)
16039 # DragonFly does not have aout. When/if they implement a new
16040 # versioning mechanism, adjust this.
16041 if test -x /usr/bin/objformat; then
16042 objformat=`/usr/bin/objformat`
16043 else
16044 case $host_os in
16045 freebsd[123]*) objformat=aout ;;
16046 *) objformat=elf ;;
16047 esac
16048 fi
16049 version_type=freebsd-$objformat
16050 case $version_type in
16051 freebsd-elf*)
16052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16053 need_version=no
16054 need_lib_prefix=no
16055 ;;
16056 freebsd-*)
16057 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16058 need_version=yes
16059 ;;
16060 esac
16061 shlibpath_var=LD_LIBRARY_PATH
16062 case $host_os in
16063 freebsd2*)
16064 shlibpath_overrides_runpath=yes
16065 ;;
16066 freebsd3.[01]* | freebsdelf3.[01]*)
16067 shlibpath_overrides_runpath=yes
16068 hardcode_into_libs=yes
16069 ;;
16070 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16071 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16072 shlibpath_overrides_runpath=no
16073 hardcode_into_libs=yes
16074 ;;
16075 *) # from 4.6 on, and DragonFly
16076 shlibpath_overrides_runpath=yes
16077 hardcode_into_libs=yes
16078 ;;
16079 esac
16080 ;;
16081
16082 gnu*)
16083 version_type=linux
16084 need_lib_prefix=no
16085 need_version=no
16086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16087 soname_spec='${libname}${release}${shared_ext}$major'
16088 shlibpath_var=LD_LIBRARY_PATH
16089 hardcode_into_libs=yes
16090 ;;
16091
16092 hpux9* | hpux10* | hpux11*)
16093 # Give a soname corresponding to the major version so that dld.sl refuses to
16094 # link against other versions.
16095 version_type=sunos
16096 need_lib_prefix=no
16097 need_version=no
16098 case $host_cpu in
16099 ia64*)
16100 shrext_cmds='.so'
16101 hardcode_into_libs=yes
16102 dynamic_linker="$host_os dld.so"
16103 shlibpath_var=LD_LIBRARY_PATH
16104 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16106 soname_spec='${libname}${release}${shared_ext}$major'
16107 if test "X$HPUX_IA64_MODE" = X32; then
16108 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16109 else
16110 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16111 fi
16112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16113 ;;
16114 hppa*64*)
16115 shrext_cmds='.sl'
16116 hardcode_into_libs=yes
16117 dynamic_linker="$host_os dld.sl"
16118 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16121 soname_spec='${libname}${release}${shared_ext}$major'
16122 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16124 ;;
16125 *)
16126 shrext_cmds='.sl'
16127 dynamic_linker="$host_os dld.sl"
16128 shlibpath_var=SHLIB_PATH
16129 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16131 soname_spec='${libname}${release}${shared_ext}$major'
16132 ;;
16133 esac
16134 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16135 postinstall_cmds='chmod 555 $lib'
16136 ;;
16137
16138 interix[3-9]*)
16139 version_type=linux
16140 need_lib_prefix=no
16141 need_version=no
16142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16143 soname_spec='${libname}${release}${shared_ext}$major'
16144 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16145 shlibpath_var=LD_LIBRARY_PATH
16146 shlibpath_overrides_runpath=no
16147 hardcode_into_libs=yes
16148 ;;
16149
16150 irix5* | irix6* | nonstopux*)
16151 case $host_os in
16152 nonstopux*) version_type=nonstopux ;;
16153 *)
16154 if test "$lt_cv_prog_gnu_ld" = yes; then
16155 version_type=linux
16156 else
16157 version_type=irix
16158 fi ;;
16159 esac
16160 need_lib_prefix=no
16161 need_version=no
16162 soname_spec='${libname}${release}${shared_ext}$major'
16163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16164 case $host_os in
16165 irix5* | nonstopux*)
16166 libsuff= shlibsuff=
16167 ;;
16168 *)
16169 case $LD in # libtool.m4 will add one of these switches to LD
16170 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16171 libsuff= shlibsuff= libmagic=32-bit;;
16172 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16173 libsuff=32 shlibsuff=N32 libmagic=N32;;
16174 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16175 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16176 *) libsuff= shlibsuff= libmagic=never-match;;
16177 esac
16178 ;;
16179 esac
16180 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16181 shlibpath_overrides_runpath=no
16182 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16183 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16184 hardcode_into_libs=yes
16185 ;;
16186
16187 # No shared lib support for Linux oldld, aout, or coff.
16188 linux*oldld* | linux*aout* | linux*coff*)
16189 dynamic_linker=no
16190 ;;
16191
16192 # This must be Linux ELF.
16193 linux* | k*bsd*-gnu)
16194 version_type=linux
16195 need_lib_prefix=no
16196 need_version=no
16197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16198 soname_spec='${libname}${release}${shared_ext}$major'
16199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16200 shlibpath_var=LD_LIBRARY_PATH
16201 shlibpath_overrides_runpath=no
16202 # This implies no fast_install, which is unacceptable.
16203 # Some rework will be needed to allow for fast_install
16204 # before this can be enabled.
16205 hardcode_into_libs=yes
16206
16207 # Append ld.so.conf contents to the search path
16208 if test -f /etc/ld.so.conf; then
16209 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' ' '`
16210 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16211 fi
16212
16213 # We used to test for /lib/ld.so.1 and disable shared libraries on
16214 # powerpc, because MkLinux only supported shared libraries with the
16215 # GNU dynamic linker. Since this was broken with cross compilers,
16216 # most powerpc-linux boxes support dynamic linking these days and
16217 # people can always --disable-shared, the test was removed, and we
16218 # assume the GNU/Linux dynamic linker is in use.
16219 dynamic_linker='GNU/Linux ld.so'
16220 ;;
16221
16222 netbsd*)
16223 version_type=sunos
16224 need_lib_prefix=no
16225 need_version=no
16226 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16229 dynamic_linker='NetBSD (a.out) ld.so'
16230 else
16231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16232 soname_spec='${libname}${release}${shared_ext}$major'
16233 dynamic_linker='NetBSD ld.elf_so'
16234 fi
16235 shlibpath_var=LD_LIBRARY_PATH
16236 shlibpath_overrides_runpath=yes
16237 hardcode_into_libs=yes
16238 ;;
16239
16240 newsos6)
16241 version_type=linux
16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16243 shlibpath_var=LD_LIBRARY_PATH
16244 shlibpath_overrides_runpath=yes
16245 ;;
16246
16247 nto-qnx*)
16248 version_type=linux
16249 need_lib_prefix=no
16250 need_version=no
16251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16252 soname_spec='${libname}${release}${shared_ext}$major'
16253 shlibpath_var=LD_LIBRARY_PATH
16254 shlibpath_overrides_runpath=yes
16255 ;;
16256
16257 openbsd*)
16258 version_type=sunos
16259 sys_lib_dlsearch_path_spec="/usr/lib"
16260 need_lib_prefix=no
16261 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16262 case $host_os in
16263 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16264 *) need_version=no ;;
16265 esac
16266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16267 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16268 shlibpath_var=LD_LIBRARY_PATH
16269 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16270 case $host_os in
16271 openbsd2.[89] | openbsd2.[89].*)
16272 shlibpath_overrides_runpath=no
16273 ;;
16274 *)
16275 shlibpath_overrides_runpath=yes
16276 ;;
16277 esac
16278 else
16279 shlibpath_overrides_runpath=yes
16280 fi
16281 ;;
16282
16283 os2*)
16284 libname_spec='$name'
16285 shrext_cmds=".dll"
16286 need_lib_prefix=no
16287 library_names_spec='$libname${shared_ext} $libname.a'
16288 dynamic_linker='OS/2 ld.exe'
16289 shlibpath_var=LIBPATH
16290 ;;
16291
16292 osf3* | osf4* | osf5*)
16293 version_type=osf
16294 need_lib_prefix=no
16295 need_version=no
16296 soname_spec='${libname}${release}${shared_ext}$major'
16297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16298 shlibpath_var=LD_LIBRARY_PATH
16299 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16300 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16301 ;;
16302
16303 rdos*)
16304 dynamic_linker=no
16305 ;;
16306
16307 solaris*)
16308 version_type=linux
16309 need_lib_prefix=no
16310 need_version=no
16311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16312 soname_spec='${libname}${release}${shared_ext}$major'
16313 shlibpath_var=LD_LIBRARY_PATH
16314 shlibpath_overrides_runpath=yes
16315 hardcode_into_libs=yes
16316 # ldd complains unless libraries are executable
16317 postinstall_cmds='chmod +x $lib'
16318 ;;
16319
16320 sunos4*)
16321 version_type=sunos
16322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16323 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16324 shlibpath_var=LD_LIBRARY_PATH
16325 shlibpath_overrides_runpath=yes
16326 if test "$with_gnu_ld" = yes; then
16327 need_lib_prefix=no
16328 fi
16329 need_version=yes
16330 ;;
16331
16332 sysv4 | sysv4.3*)
16333 version_type=linux
16334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16335 soname_spec='${libname}${release}${shared_ext}$major'
16336 shlibpath_var=LD_LIBRARY_PATH
16337 case $host_vendor in
16338 sni)
16339 shlibpath_overrides_runpath=no
16340 need_lib_prefix=no
16341 export_dynamic_flag_spec='${wl}-Blargedynsym'
16342 runpath_var=LD_RUN_PATH
16343 ;;
16344 siemens)
16345 need_lib_prefix=no
16346 ;;
16347 motorola)
16348 need_lib_prefix=no
16349 need_version=no
16350 shlibpath_overrides_runpath=no
16351 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16352 ;;
16353 esac
16354 ;;
16355
16356 sysv4*MP*)
16357 if test -d /usr/nec ;then
16358 version_type=linux
16359 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16360 soname_spec='$libname${shared_ext}.$major'
16361 shlibpath_var=LD_LIBRARY_PATH
16362 fi
16363 ;;
16364
16365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16366 version_type=freebsd-elf
16367 need_lib_prefix=no
16368 need_version=no
16369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16370 soname_spec='${libname}${release}${shared_ext}$major'
16371 shlibpath_var=LD_LIBRARY_PATH
16372 hardcode_into_libs=yes
16373 if test "$with_gnu_ld" = yes; then
16374 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16375 shlibpath_overrides_runpath=no
16376 else
16377 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16378 shlibpath_overrides_runpath=yes
16379 case $host_os in
16380 sco3.2v5*)
16381 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16382 ;;
16383 esac
16384 fi
16385 sys_lib_dlsearch_path_spec='/usr/lib'
16386 ;;
16387
16388 uts4*)
16389 version_type=linux
16390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16391 soname_spec='${libname}${release}${shared_ext}$major'
16392 shlibpath_var=LD_LIBRARY_PATH
16393 ;;
16394
16395 *)
16396 dynamic_linker=no
16397 ;;
16398 esac
16399 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16400 $as_echo "$dynamic_linker" >&6; }
16401 test "$dynamic_linker" = no && can_build_shared=no
16402
16403 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16404 $as_echo_n "(cached) " >&6
16405 else
16406 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16407 fi
16408
16409 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16410 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16411 $as_echo_n "(cached) " >&6
16412 else
16413 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16414 fi
16415
16416 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16417
16418 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16419 if test "$GCC" = yes; then
16420 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16421 fi
16422
16423 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16424 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16425 hardcode_action_F77=
16426 if test -n "$hardcode_libdir_flag_spec_F77" || \
16427 test -n "$runpath_var_F77" || \
16428 test "X$hardcode_automatic_F77" = "Xyes" ; then
16429
16430 # We can hardcode non-existant directories.
16431 if test "$hardcode_direct_F77" != no &&
16432 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16433 # have to relink, otherwise we might link with an installed library
16434 # when we should be linking with a yet-to-be-installed one
16435 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16436 test "$hardcode_minus_L_F77" != no; then
16437 # Linking always hardcodes the temporary library directory.
16438 hardcode_action_F77=relink
16439 else
16440 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16441 hardcode_action_F77=immediate
16442 fi
16443 else
16444 # We cannot hardcode anything, or else we can only hardcode existing
16445 # directories.
16446 hardcode_action_F77=unsupported
16447 fi
16448 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16449 $as_echo "$hardcode_action_F77" >&6; }
16450
16451 if test "$hardcode_action_F77" = relink; then
16452 # Fast installation is not supported
16453 enable_fast_install=no
16454 elif test "$shlibpath_overrides_runpath" = yes ||
16455 test "$enable_shared" = no; then
16456 # Fast installation is not necessary
16457 enable_fast_install=needless
16458 fi
16459
16460
16461 # The else clause should only fire when bootstrapping the
16462 # libtool distribution, otherwise you forgot to ship ltmain.sh
16463 # with your package, and you will get complaints that there are
16464 # no rules to generate ltmain.sh.
16465 if test -f "$ltmain"; then
16466 # See if we are running on zsh, and set the options which allow our commands through
16467 # without removal of \ escapes.
16468 if test -n "${ZSH_VERSION+set}" ; then
16469 setopt NO_GLOB_SUBST
16470 fi
16471 # Now quote all the things that may contain metacharacters while being
16472 # careful not to overquote the AC_SUBSTed values. We take copies of the
16473 # variables and quote the copies for generation of the libtool script.
16474 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16475 SED SHELL STRIP \
16476 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16477 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16478 deplibs_check_method reload_flag reload_cmds need_locks \
16479 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16480 lt_cv_sys_global_symbol_to_c_name_address \
16481 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16482 old_postinstall_cmds old_postuninstall_cmds \
16483 compiler_F77 \
16484 CC_F77 \
16485 LD_F77 \
16486 lt_prog_compiler_wl_F77 \
16487 lt_prog_compiler_pic_F77 \
16488 lt_prog_compiler_static_F77 \
16489 lt_prog_compiler_no_builtin_flag_F77 \
16490 export_dynamic_flag_spec_F77 \
16491 thread_safe_flag_spec_F77 \
16492 whole_archive_flag_spec_F77 \
16493 enable_shared_with_static_runtimes_F77 \
16494 old_archive_cmds_F77 \
16495 old_archive_from_new_cmds_F77 \
16496 predep_objects_F77 \
16497 postdep_objects_F77 \
16498 predeps_F77 \
16499 postdeps_F77 \
16500 compiler_lib_search_path_F77 \
16501 compiler_lib_search_dirs_F77 \
16502 archive_cmds_F77 \
16503 archive_expsym_cmds_F77 \
16504 postinstall_cmds_F77 \
16505 postuninstall_cmds_F77 \
16506 old_archive_from_expsyms_cmds_F77 \
16507 allow_undefined_flag_F77 \
16508 no_undefined_flag_F77 \
16509 export_symbols_cmds_F77 \
16510 hardcode_libdir_flag_spec_F77 \
16511 hardcode_libdir_flag_spec_ld_F77 \
16512 hardcode_libdir_separator_F77 \
16513 hardcode_automatic_F77 \
16514 module_cmds_F77 \
16515 module_expsym_cmds_F77 \
16516 lt_cv_prog_compiler_c_o_F77 \
16517 fix_srcfile_path_F77 \
16518 exclude_expsyms_F77 \
16519 include_expsyms_F77; do
16520
16521 case $var in
16522 old_archive_cmds_F77 | \
16523 old_archive_from_new_cmds_F77 | \
16524 archive_cmds_F77 | \
16525 archive_expsym_cmds_F77 | \
16526 module_cmds_F77 | \
16527 module_expsym_cmds_F77 | \
16528 old_archive_from_expsyms_cmds_F77 | \
16529 export_symbols_cmds_F77 | \
16530 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16531 postinstall_cmds | postuninstall_cmds | \
16532 old_postinstall_cmds | old_postuninstall_cmds | \
16533 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16534 # Double-quote double-evaled strings.
16535 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16536 ;;
16537 *)
16538 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16539 ;;
16540 esac
16541 done
16542
16543 case $lt_echo in
16544 *'\$0 --fallback-echo"')
16545 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16546 ;;
16547 esac
16548
16549 cfgfile="$ofile"
16550
16551 cat <<__EOF__ >> "$cfgfile"
16552 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16553
16554 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16555
16556 # Shell to use when invoking shell scripts.
16557 SHELL=$lt_SHELL
16558
16559 # Whether or not to build shared libraries.
16560 build_libtool_libs=$enable_shared
16561
16562 # Whether or not to build static libraries.
16563 build_old_libs=$enable_static
16564
16565 # Whether or not to add -lc for building shared libraries.
16566 build_libtool_need_lc=$archive_cmds_need_lc_F77
16567
16568 # Whether or not to disallow shared libs when runtime libs are static
16569 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16570
16571 # Whether or not to optimize for fast installation.
16572 fast_install=$enable_fast_install
16573
16574 # The host system.
16575 host_alias=$host_alias
16576 host=$host
16577 host_os=$host_os
16578
16579 # The build system.
16580 build_alias=$build_alias
16581 build=$build
16582 build_os=$build_os
16583
16584 # An echo program that does not interpret backslashes.
16585 echo=$lt_echo
16586
16587 # The archiver.
16588 AR=$lt_AR
16589 AR_FLAGS=$lt_AR_FLAGS
16590
16591 # A C compiler.
16592 LTCC=$lt_LTCC
16593
16594 # LTCC compiler flags.
16595 LTCFLAGS=$lt_LTCFLAGS
16596
16597 # A language-specific compiler.
16598 CC=$lt_compiler_F77
16599
16600 # Is the compiler the GNU C compiler?
16601 with_gcc=$GCC_F77
16602
16603 # An ERE matcher.
16604 EGREP=$lt_EGREP
16605
16606 # The linker used to build libraries.
16607 LD=$lt_LD_F77
16608
16609 # Whether we need hard or soft links.
16610 LN_S=$lt_LN_S
16611
16612 # A BSD-compatible nm program.
16613 NM=$lt_NM
16614
16615 # A symbol stripping program
16616 STRIP=$lt_STRIP
16617
16618 # Used to examine libraries when file_magic_cmd begins "file"
16619 MAGIC_CMD=$MAGIC_CMD
16620
16621 # Used on cygwin: DLL creation program.
16622 DLLTOOL="$DLLTOOL"
16623
16624 # Used on cygwin: object dumper.
16625 OBJDUMP="$OBJDUMP"
16626
16627 # Used on cygwin: assembler.
16628 AS="$AS"
16629
16630 # The name of the directory that contains temporary libtool files.
16631 objdir=$objdir
16632
16633 # How to create reloadable object files.
16634 reload_flag=$lt_reload_flag
16635 reload_cmds=$lt_reload_cmds
16636
16637 # How to pass a linker flag through the compiler.
16638 wl=$lt_lt_prog_compiler_wl_F77
16639
16640 # Object file suffix (normally "o").
16641 objext="$ac_objext"
16642
16643 # Old archive suffix (normally "a").
16644 libext="$libext"
16645
16646 # Shared library suffix (normally ".so").
16647 shrext_cmds='$shrext_cmds'
16648
16649 # Executable file suffix (normally "").
16650 exeext="$exeext"
16651
16652 # Additional compiler flags for building library objects.
16653 pic_flag=$lt_lt_prog_compiler_pic_F77
16654 pic_mode=$pic_mode
16655
16656 # What is the maximum length of a command?
16657 max_cmd_len=$lt_cv_sys_max_cmd_len
16658
16659 # Does compiler simultaneously support -c and -o options?
16660 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16661
16662 # Must we lock files when doing compilation?
16663 need_locks=$lt_need_locks
16664
16665 # Do we need the lib prefix for modules?
16666 need_lib_prefix=$need_lib_prefix
16667
16668 # Do we need a version for libraries?
16669 need_version=$need_version
16670
16671 # Whether dlopen is supported.
16672 dlopen_support=$enable_dlopen
16673
16674 # Whether dlopen of programs is supported.
16675 dlopen_self=$enable_dlopen_self
16676
16677 # Whether dlopen of statically linked programs is supported.
16678 dlopen_self_static=$enable_dlopen_self_static
16679
16680 # Compiler flag to prevent dynamic linking.
16681 link_static_flag=$lt_lt_prog_compiler_static_F77
16682
16683 # Compiler flag to turn off builtin functions.
16684 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16685
16686 # Compiler flag to allow reflexive dlopens.
16687 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16688
16689 # Compiler flag to generate shared objects directly from archives.
16690 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16691
16692 # Compiler flag to generate thread-safe objects.
16693 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16694
16695 # Library versioning type.
16696 version_type=$version_type
16697
16698 # Format of library name prefix.
16699 libname_spec=$lt_libname_spec
16700
16701 # List of archive names. First name is the real one, the rest are links.
16702 # The last name is the one that the linker finds with -lNAME.
16703 library_names_spec=$lt_library_names_spec
16704
16705 # The coded name of the library, if different from the real name.
16706 soname_spec=$lt_soname_spec
16707
16708 # Commands used to build and install an old-style archive.
16709 RANLIB=$lt_RANLIB
16710 old_archive_cmds=$lt_old_archive_cmds_F77
16711 old_postinstall_cmds=$lt_old_postinstall_cmds
16712 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16713
16714 # Create an old-style archive from a shared archive.
16715 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16716
16717 # Create a temporary old-style archive to link instead of a shared archive.
16718 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16719
16720 # Commands used to build and install a shared archive.
16721 archive_cmds=$lt_archive_cmds_F77
16722 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16723 postinstall_cmds=$lt_postinstall_cmds
16724 postuninstall_cmds=$lt_postuninstall_cmds
16725
16726 # Commands used to build a loadable module (assumed same as above if empty)
16727 module_cmds=$lt_module_cmds_F77
16728 module_expsym_cmds=$lt_module_expsym_cmds_F77
16729
16730 # Commands to strip libraries.
16731 old_striplib=$lt_old_striplib
16732 striplib=$lt_striplib
16733
16734 # Dependencies to place before the objects being linked to create a
16735 # shared library.
16736 predep_objects=$lt_predep_objects_F77
16737
16738 # Dependencies to place after the objects being linked to create a
16739 # shared library.
16740 postdep_objects=$lt_postdep_objects_F77
16741
16742 # Dependencies to place before the objects being linked to create a
16743 # shared library.
16744 predeps=$lt_predeps_F77
16745
16746 # Dependencies to place after the objects being linked to create a
16747 # shared library.
16748 postdeps=$lt_postdeps_F77
16749
16750 # The directories searched by this compiler when creating a shared
16751 # library
16752 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16753
16754 # The library search path used internally by the compiler when linking
16755 # a shared library.
16756 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16757
16758 # Method to check whether dependent libraries are shared objects.
16759 deplibs_check_method=$lt_deplibs_check_method
16760
16761 # Command to use when deplibs_check_method == file_magic.
16762 file_magic_cmd=$lt_file_magic_cmd
16763
16764 # Flag that allows shared libraries with undefined symbols to be built.
16765 allow_undefined_flag=$lt_allow_undefined_flag_F77
16766
16767 # Flag that forces no undefined symbols.
16768 no_undefined_flag=$lt_no_undefined_flag_F77
16769
16770 # Commands used to finish a libtool library installation in a directory.
16771 finish_cmds=$lt_finish_cmds
16772
16773 # Same as above, but a single script fragment to be evaled but not shown.
16774 finish_eval=$lt_finish_eval
16775
16776 # Take the output of nm and produce a listing of raw symbols and C names.
16777 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16778
16779 # Transform the output of nm in a proper C declaration
16780 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16781
16782 # Transform the output of nm in a C name address pair
16783 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16784
16785 # This is the shared library runtime path variable.
16786 runpath_var=$runpath_var
16787
16788 # This is the shared library path variable.
16789 shlibpath_var=$shlibpath_var
16790
16791 # Is shlibpath searched before the hard-coded library search path?
16792 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16793
16794 # How to hardcode a shared library path into an executable.
16795 hardcode_action=$hardcode_action_F77
16796
16797 # Whether we should hardcode library paths into libraries.
16798 hardcode_into_libs=$hardcode_into_libs
16799
16800 # Flag to hardcode \$libdir into a binary during linking.
16801 # This must work even if \$libdir does not exist.
16802 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16803
16804 # If ld is used when linking, flag to hardcode \$libdir into
16805 # a binary during linking. This must work even if \$libdir does
16806 # not exist.
16807 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16808
16809 # Whether we need a single -rpath flag with a separated argument.
16810 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16811
16812 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16813 # resulting binary.
16814 hardcode_direct=$hardcode_direct_F77
16815
16816 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16817 # resulting binary.
16818 hardcode_minus_L=$hardcode_minus_L_F77
16819
16820 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16821 # the resulting binary.
16822 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16823
16824 # Set to yes if building a shared library automatically hardcodes DIR into the library
16825 # and all subsequent libraries and executables linked against it.
16826 hardcode_automatic=$hardcode_automatic_F77
16827
16828 # Variables whose values should be saved in libtool wrapper scripts and
16829 # restored at relink time.
16830 variables_saved_for_relink="$variables_saved_for_relink"
16831
16832 # Whether libtool must link a program against all its dependency libraries.
16833 link_all_deplibs=$link_all_deplibs_F77
16834
16835 # Compile-time system search path for libraries
16836 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16837
16838 # Run-time system search path for libraries
16839 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16840
16841 # Fix the shell variable \$srcfile for the compiler.
16842 fix_srcfile_path=$lt_fix_srcfile_path
16843
16844 # Set to yes if exported symbols are required.
16845 always_export_symbols=$always_export_symbols_F77
16846
16847 # The commands to list exported symbols.
16848 export_symbols_cmds=$lt_export_symbols_cmds_F77
16849
16850 # The commands to extract the exported symbol list from a shared archive.
16851 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16852
16853 # Symbols that should not be listed in the preloaded symbols.
16854 exclude_expsyms=$lt_exclude_expsyms_F77
16855
16856 # Symbols that must always be exported.
16857 include_expsyms=$lt_include_expsyms_F77
16858
16859 # ### END LIBTOOL TAG CONFIG: $tagname
16860
16861 __EOF__
16862
16863
16864 else
16865 # If there is no Makefile yet, we rely on a make rule to execute
16866 # `config.status --recheck' to rerun these tests and create the
16867 # libtool script then.
16868 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16869 if test -f "$ltmain_in"; then
16870 test -f Makefile && make "$ltmain"
16871 fi
16872 fi
16873
16874
16875 ac_ext=c
16876 ac_cpp='$CPP $CPPFLAGS'
16877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16880
16881 CC="$lt_save_CC"
16882
16883 else
16884 tagname=""
16885 fi
16886 ;;
16887
16888 GCJ)
16889 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16890
16891
16892 # Source file extension for Java test sources.
16893 ac_ext=java
16894
16895 # Object file extension for compiled Java test sources.
16896 objext=o
16897 objext_GCJ=$objext
16898
16899 # Code to be used in simple compile tests
16900 lt_simple_compile_test_code="class foo {}"
16901
16902 # Code to be used in simple link tests
16903 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16904
16905 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16906
16907 # If no C compiler was specified, use CC.
16908 LTCC=${LTCC-"$CC"}
16909
16910 # If no C compiler flags were specified, use CFLAGS.
16911 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16912
16913 # Allow CC to be a program name with arguments.
16914 compiler=$CC
16915
16916
16917 # save warnings/boilerplate of simple test code
16918 ac_outfile=conftest.$ac_objext
16919 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16920 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16921 _lt_compiler_boilerplate=`cat conftest.err`
16922 $rm conftest*
16923
16924 ac_outfile=conftest.$ac_objext
16925 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16926 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16927 _lt_linker_boilerplate=`cat conftest.err`
16928 $rm -r conftest*
16929
16930
16931 # Allow CC to be a program name with arguments.
16932 lt_save_CC="$CC"
16933 CC=${GCJ-"gcj"}
16934 compiler=$CC
16935 compiler_GCJ=$CC
16936 for cc_temp in $compiler""; do
16937 case $cc_temp in
16938 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16939 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16940 \-*) ;;
16941 *) break;;
16942 esac
16943 done
16944 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16945
16946
16947 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16948 archive_cmds_need_lc_GCJ=no
16949
16950 old_archive_cmds_GCJ=$old_archive_cmds
16951
16952
16953 lt_prog_compiler_no_builtin_flag_GCJ=
16954
16955 if test "$GCC" = yes; then
16956 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16957
16958
16959 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16960 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16961 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16962 $as_echo_n "(cached) " >&6
16963 else
16964 lt_cv_prog_compiler_rtti_exceptions=no
16965 ac_outfile=conftest.$ac_objext
16966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16967 lt_compiler_flag="-fno-rtti -fno-exceptions"
16968 # Insert the option either (1) after the last *FLAGS variable, or
16969 # (2) before a word containing "conftest.", or (3) at the end.
16970 # Note that $ac_compile itself does not contain backslashes and begins
16971 # with a dollar sign (not a hyphen), so the echo should work correctly.
16972 # The option is referenced via a variable to avoid confusing sed.
16973 lt_compile=`echo "$ac_compile" | $SED \
16974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16976 -e 's:$: $lt_compiler_flag:'`
16977 (eval echo "\"\$as_me:16977: $lt_compile\"" >&5)
16978 (eval "$lt_compile" 2>conftest.err)
16979 ac_status=$?
16980 cat conftest.err >&5
16981 echo "$as_me:16981: \$? = $ac_status" >&5
16982 if (exit $ac_status) && test -s "$ac_outfile"; then
16983 # The compiler can only warn and ignore the option if not recognized
16984 # So say no if there are warnings other than the usual output.
16985 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16986 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16987 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16988 lt_cv_prog_compiler_rtti_exceptions=yes
16989 fi
16990 fi
16991 $rm conftest*
16992
16993 fi
16994 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16995 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16996
16997 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16998 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16999 else
17000 :
17001 fi
17002
17003 fi
17004
17005 lt_prog_compiler_wl_GCJ=
17006 lt_prog_compiler_pic_GCJ=
17007 lt_prog_compiler_static_GCJ=
17008
17009 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17010 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17011
17012 if test "$GCC" = yes; then
17013 lt_prog_compiler_wl_GCJ='-Wl,'
17014 lt_prog_compiler_static_GCJ='-static'
17015
17016 case $host_os in
17017 aix*)
17018 # All AIX code is PIC.
17019 if test "$host_cpu" = ia64; then
17020 # AIX 5 now supports IA64 processor
17021 lt_prog_compiler_static_GCJ='-Bstatic'
17022 fi
17023 ;;
17024
17025 amigaos*)
17026 # FIXME: we need at least 68020 code to build shared libraries, but
17027 # adding the `-m68020' flag to GCC prevents building anything better,
17028 # like `-m68040'.
17029 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17030 ;;
17031
17032 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17033 # PIC is the default for these OSes.
17034 ;;
17035
17036 mingw* | cygwin* | pw32* | os2*)
17037 # This hack is so that the source file can tell whether it is being
17038 # built for inclusion in a dll (and should export symbols for example).
17039 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17040 # (--disable-auto-import) libraries
17041
17042 ;;
17043
17044 darwin* | rhapsody*)
17045 # PIC is the default on this platform
17046 # Common symbols not allowed in MH_DYLIB files
17047 lt_prog_compiler_pic_GCJ='-fno-common'
17048 ;;
17049
17050 interix[3-9]*)
17051 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17052 # Instead, we relocate shared libraries at runtime.
17053 ;;
17054
17055 msdosdjgpp*)
17056 # Just because we use GCC doesn't mean we suddenly get shared libraries
17057 # on systems that don't support them.
17058 lt_prog_compiler_can_build_shared_GCJ=no
17059 enable_shared=no
17060 ;;
17061
17062 sysv4*MP*)
17063 if test -d /usr/nec; then
17064 lt_prog_compiler_pic_GCJ=-Kconform_pic
17065 fi
17066 ;;
17067
17068 hpux*)
17069 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17070 # not for PA HP-UX.
17071 case $host_cpu in
17072 hppa*64*|ia64*)
17073 # +Z the default
17074 ;;
17075 *)
17076 lt_prog_compiler_pic_GCJ='-fPIC'
17077 ;;
17078 esac
17079 ;;
17080
17081 *)
17082 lt_prog_compiler_pic_GCJ='-fPIC'
17083 ;;
17084 esac
17085 else
17086 # PORTME Check for flag to pass linker flags through the system compiler.
17087 case $host_os in
17088 aix*)
17089 lt_prog_compiler_wl_GCJ='-Wl,'
17090 if test "$host_cpu" = ia64; then
17091 # AIX 5 now supports IA64 processor
17092 lt_prog_compiler_static_GCJ='-Bstatic'
17093 else
17094 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17095 fi
17096 ;;
17097 darwin*)
17098 # PIC is the default on this platform
17099 # Common symbols not allowed in MH_DYLIB files
17100 case $cc_basename in
17101 xlc*)
17102 lt_prog_compiler_pic_GCJ='-qnocommon'
17103 lt_prog_compiler_wl_GCJ='-Wl,'
17104 ;;
17105 esac
17106 ;;
17107
17108 mingw* | cygwin* | pw32* | os2*)
17109 # This hack is so that the source file can tell whether it is being
17110 # built for inclusion in a dll (and should export symbols for example).
17111
17112 ;;
17113
17114 hpux9* | hpux10* | hpux11*)
17115 lt_prog_compiler_wl_GCJ='-Wl,'
17116 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17117 # not for PA HP-UX.
17118 case $host_cpu in
17119 hppa*64*|ia64*)
17120 # +Z the default
17121 ;;
17122 *)
17123 lt_prog_compiler_pic_GCJ='+Z'
17124 ;;
17125 esac
17126 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17127 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17128 ;;
17129
17130 irix5* | irix6* | nonstopux*)
17131 lt_prog_compiler_wl_GCJ='-Wl,'
17132 # PIC (with -KPIC) is the default.
17133 lt_prog_compiler_static_GCJ='-non_shared'
17134 ;;
17135
17136 newsos6)
17137 lt_prog_compiler_pic_GCJ='-KPIC'
17138 lt_prog_compiler_static_GCJ='-Bstatic'
17139 ;;
17140
17141 linux* | k*bsd*-gnu)
17142 case $cc_basename in
17143 icc* | ecc*)
17144 lt_prog_compiler_wl_GCJ='-Wl,'
17145 lt_prog_compiler_pic_GCJ='-KPIC'
17146 lt_prog_compiler_static_GCJ='-static'
17147 ;;
17148 pgcc* | pgf77* | pgf90* | pgf95*)
17149 # Portland Group compilers (*not* the Pentium gcc compiler,
17150 # which looks to be a dead project)
17151 lt_prog_compiler_wl_GCJ='-Wl,'
17152 lt_prog_compiler_pic_GCJ='-fpic'
17153 lt_prog_compiler_static_GCJ='-Bstatic'
17154 ;;
17155 ccc*)
17156 lt_prog_compiler_wl_GCJ='-Wl,'
17157 # All Alpha code is PIC.
17158 lt_prog_compiler_static_GCJ='-non_shared'
17159 ;;
17160 *)
17161 case `$CC -V 2>&1 | sed 5q` in
17162 *Sun\ C*)
17163 # Sun C 5.9
17164 lt_prog_compiler_pic_GCJ='-KPIC'
17165 lt_prog_compiler_static_GCJ='-Bstatic'
17166 lt_prog_compiler_wl_GCJ='-Wl,'
17167 ;;
17168 *Sun\ F*)
17169 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17170 lt_prog_compiler_pic_GCJ='-KPIC'
17171 lt_prog_compiler_static_GCJ='-Bstatic'
17172 lt_prog_compiler_wl_GCJ=''
17173 ;;
17174 esac
17175 ;;
17176 esac
17177 ;;
17178
17179 osf3* | osf4* | osf5*)
17180 lt_prog_compiler_wl_GCJ='-Wl,'
17181 # All OSF/1 code is PIC.
17182 lt_prog_compiler_static_GCJ='-non_shared'
17183 ;;
17184
17185 rdos*)
17186 lt_prog_compiler_static_GCJ='-non_shared'
17187 ;;
17188
17189 solaris*)
17190 lt_prog_compiler_pic_GCJ='-KPIC'
17191 lt_prog_compiler_static_GCJ='-Bstatic'
17192 case $cc_basename in
17193 f77* | f90* | f95*)
17194 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17195 *)
17196 lt_prog_compiler_wl_GCJ='-Wl,';;
17197 esac
17198 ;;
17199
17200 sunos4*)
17201 lt_prog_compiler_wl_GCJ='-Qoption ld '
17202 lt_prog_compiler_pic_GCJ='-PIC'
17203 lt_prog_compiler_static_GCJ='-Bstatic'
17204 ;;
17205
17206 sysv4 | sysv4.2uw2* | sysv4.3*)
17207 lt_prog_compiler_wl_GCJ='-Wl,'
17208 lt_prog_compiler_pic_GCJ='-KPIC'
17209 lt_prog_compiler_static_GCJ='-Bstatic'
17210 ;;
17211
17212 sysv4*MP*)
17213 if test -d /usr/nec ;then
17214 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17215 lt_prog_compiler_static_GCJ='-Bstatic'
17216 fi
17217 ;;
17218
17219 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17220 lt_prog_compiler_wl_GCJ='-Wl,'
17221 lt_prog_compiler_pic_GCJ='-KPIC'
17222 lt_prog_compiler_static_GCJ='-Bstatic'
17223 ;;
17224
17225 unicos*)
17226 lt_prog_compiler_wl_GCJ='-Wl,'
17227 lt_prog_compiler_can_build_shared_GCJ=no
17228 ;;
17229
17230 uts4*)
17231 lt_prog_compiler_pic_GCJ='-pic'
17232 lt_prog_compiler_static_GCJ='-Bstatic'
17233 ;;
17234
17235 *)
17236 lt_prog_compiler_can_build_shared_GCJ=no
17237 ;;
17238 esac
17239 fi
17240
17241 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17242 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17243
17244 #
17245 # Check to make sure the PIC flag actually works.
17246 #
17247 if test -n "$lt_prog_compiler_pic_GCJ"; then
17248
17249 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17250 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17251 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17252 $as_echo_n "(cached) " >&6
17253 else
17254 lt_cv_prog_compiler_pic_works_GCJ=no
17255 ac_outfile=conftest.$ac_objext
17256 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17257 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17258 # Insert the option either (1) after the last *FLAGS variable, or
17259 # (2) before a word containing "conftest.", or (3) at the end.
17260 # Note that $ac_compile itself does not contain backslashes and begins
17261 # with a dollar sign (not a hyphen), so the echo should work correctly.
17262 # The option is referenced via a variable to avoid confusing sed.
17263 lt_compile=`echo "$ac_compile" | $SED \
17264 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17265 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17266 -e 's:$: $lt_compiler_flag:'`
17267 (eval echo "\"\$as_me:17267: $lt_compile\"" >&5)
17268 (eval "$lt_compile" 2>conftest.err)
17269 ac_status=$?
17270 cat conftest.err >&5
17271 echo "$as_me:17271: \$? = $ac_status" >&5
17272 if (exit $ac_status) && test -s "$ac_outfile"; then
17273 # The compiler can only warn and ignore the option if not recognized
17274 # So say no if there are warnings other than the usual output.
17275 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17276 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17277 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17278 lt_cv_prog_compiler_pic_works_GCJ=yes
17279 fi
17280 fi
17281 $rm conftest*
17282
17283 fi
17284 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17285 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17286
17287 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17288 case $lt_prog_compiler_pic_GCJ in
17289 "" | " "*) ;;
17290 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17291 esac
17292 else
17293 lt_prog_compiler_pic_GCJ=
17294 lt_prog_compiler_can_build_shared_GCJ=no
17295 fi
17296
17297 fi
17298 case $host_os in
17299 # For platforms which do not support PIC, -DPIC is meaningless:
17300 *djgpp*)
17301 lt_prog_compiler_pic_GCJ=
17302 ;;
17303 *)
17304 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17305 ;;
17306 esac
17307
17308 #
17309 # Check to make sure the static flag actually works.
17310 #
17311 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17312 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17313 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17314 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17315 $as_echo_n "(cached) " >&6
17316 else
17317 lt_cv_prog_compiler_static_works_GCJ=no
17318 save_LDFLAGS="$LDFLAGS"
17319 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17320 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17321 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17322 # The linker can only warn and ignore the option if not recognized
17323 # So say no if there are warnings
17324 if test -s conftest.err; then
17325 # Append any errors to the config.log.
17326 cat conftest.err 1>&5
17327 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17328 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17329 if diff conftest.exp conftest.er2 >/dev/null; then
17330 lt_cv_prog_compiler_static_works_GCJ=yes
17331 fi
17332 else
17333 lt_cv_prog_compiler_static_works_GCJ=yes
17334 fi
17335 fi
17336 $rm -r conftest*
17337 LDFLAGS="$save_LDFLAGS"
17338
17339 fi
17340 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17341 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17342
17343 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17344 :
17345 else
17346 lt_prog_compiler_static_GCJ=
17347 fi
17348
17349
17350 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17351 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17352 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17353 $as_echo_n "(cached) " >&6
17354 else
17355 lt_cv_prog_compiler_c_o_GCJ=no
17356 $rm -r conftest 2>/dev/null
17357 mkdir conftest
17358 cd conftest
17359 mkdir out
17360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17361
17362 lt_compiler_flag="-o out/conftest2.$ac_objext"
17363 # Insert the option either (1) after the last *FLAGS variable, or
17364 # (2) before a word containing "conftest.", or (3) at the end.
17365 # Note that $ac_compile itself does not contain backslashes and begins
17366 # with a dollar sign (not a hyphen), so the echo should work correctly.
17367 lt_compile=`echo "$ac_compile" | $SED \
17368 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17370 -e 's:$: $lt_compiler_flag:'`
17371 (eval echo "\"\$as_me:17371: $lt_compile\"" >&5)
17372 (eval "$lt_compile" 2>out/conftest.err)
17373 ac_status=$?
17374 cat out/conftest.err >&5
17375 echo "$as_me:17375: \$? = $ac_status" >&5
17376 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17377 then
17378 # The compiler can only warn and ignore the option if not recognized
17379 # So say no if there are warnings
17380 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17381 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17382 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17383 lt_cv_prog_compiler_c_o_GCJ=yes
17384 fi
17385 fi
17386 chmod u+w . 2>&5
17387 $rm conftest*
17388 # SGI C++ compiler will create directory out/ii_files/ for
17389 # template instantiation
17390 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17391 $rm out/* && rmdir out
17392 cd ..
17393 rmdir conftest
17394 $rm conftest*
17395
17396 fi
17397 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17398 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17399
17400
17401 hard_links="nottested"
17402 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17403 # do not overwrite the value of need_locks provided by the user
17404 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17405 $as_echo_n "checking if we can lock with hard links... " >&6; }
17406 hard_links=yes
17407 $rm conftest*
17408 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17409 touch conftest.a
17410 ln conftest.a conftest.b 2>&5 || hard_links=no
17411 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17412 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17413 $as_echo "$hard_links" >&6; }
17414 if test "$hard_links" = no; then
17415 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17416 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17417 need_locks=warn
17418 fi
17419 else
17420 need_locks=no
17421 fi
17422
17423 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17424 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17425
17426 runpath_var=
17427 allow_undefined_flag_GCJ=
17428 enable_shared_with_static_runtimes_GCJ=no
17429 archive_cmds_GCJ=
17430 archive_expsym_cmds_GCJ=
17431 old_archive_From_new_cmds_GCJ=
17432 old_archive_from_expsyms_cmds_GCJ=
17433 export_dynamic_flag_spec_GCJ=
17434 whole_archive_flag_spec_GCJ=
17435 thread_safe_flag_spec_GCJ=
17436 hardcode_libdir_flag_spec_GCJ=
17437 hardcode_libdir_flag_spec_ld_GCJ=
17438 hardcode_libdir_separator_GCJ=
17439 hardcode_direct_GCJ=no
17440 hardcode_minus_L_GCJ=no
17441 hardcode_shlibpath_var_GCJ=unsupported
17442 link_all_deplibs_GCJ=unknown
17443 hardcode_automatic_GCJ=no
17444 module_cmds_GCJ=
17445 module_expsym_cmds_GCJ=
17446 always_export_symbols_GCJ=no
17447 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17448 # include_expsyms should be a list of space-separated symbols to be *always*
17449 # included in the symbol list
17450 include_expsyms_GCJ=
17451 # exclude_expsyms can be an extended regexp of symbols to exclude
17452 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17453 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17454 # as well as any symbol that contains `d'.
17455 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17456 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17457 # platforms (ab)use it in PIC code, but their linkers get confused if
17458 # the symbol is explicitly referenced. Since portable code cannot
17459 # rely on this symbol name, it's probably fine to never include it in
17460 # preloaded symbol tables.
17461 # Exclude shared library initialization/finalization symbols.
17462 extract_expsyms_cmds=
17463 # Just being paranoid about ensuring that cc_basename is set.
17464 for cc_temp in $compiler""; do
17465 case $cc_temp in
17466 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17467 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17468 \-*) ;;
17469 *) break;;
17470 esac
17471 done
17472 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17473
17474 case $host_os in
17475 cygwin* | mingw* | pw32*)
17476 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17477 # When not using gcc, we currently assume that we are using
17478 # Microsoft Visual C++.
17479 if test "$GCC" != yes; then
17480 with_gnu_ld=no
17481 fi
17482 ;;
17483 interix*)
17484 # we just hope/assume this is gcc and not c89 (= MSVC++)
17485 with_gnu_ld=yes
17486 ;;
17487 openbsd*)
17488 with_gnu_ld=no
17489 ;;
17490 esac
17491
17492 ld_shlibs_GCJ=yes
17493 if test "$with_gnu_ld" = yes; then
17494 # If archive_cmds runs LD, not CC, wlarc should be empty
17495 wlarc='${wl}'
17496
17497 # Set some defaults for GNU ld with shared library support. These
17498 # are reset later if shared libraries are not supported. Putting them
17499 # here allows them to be overridden if necessary.
17500 runpath_var=LD_RUN_PATH
17501 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17502 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17503 # ancient GNU ld didn't support --whole-archive et. al.
17504 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17505 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17506 else
17507 whole_archive_flag_spec_GCJ=
17508 fi
17509 supports_anon_versioning=no
17510 case `$LD -v 2>/dev/null` in
17511 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17512 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17513 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17514 *\ 2.11.*) ;; # other 2.11 versions
17515 *) supports_anon_versioning=yes ;;
17516 esac
17517
17518 # See if GNU ld supports shared libraries.
17519 case $host_os in
17520 aix[3-9]*)
17521 # On AIX/PPC, the GNU linker is very broken
17522 if test "$host_cpu" != ia64; then
17523 ld_shlibs_GCJ=no
17524 cat <<EOF 1>&2
17525
17526 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17527 *** to be unable to reliably create shared libraries on AIX.
17528 *** Therefore, libtool is disabling shared libraries support. If you
17529 *** really care for shared libraries, you may want to modify your PATH
17530 *** so that a non-GNU linker is found, and then restart.
17531
17532 EOF
17533 fi
17534 ;;
17535
17536 amigaos*)
17537 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)'
17538 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17539 hardcode_minus_L_GCJ=yes
17540
17541 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
17542 # that the semantics of dynamic libraries on AmigaOS, at least up
17543 # to version 4, is to share data among multiple programs linked
17544 # with the same dynamic library. Since this doesn't match the
17545 # behavior of shared libraries on other platforms, we can't use
17546 # them.
17547 ld_shlibs_GCJ=no
17548 ;;
17549
17550 beos*)
17551 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17552 allow_undefined_flag_GCJ=unsupported
17553 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
17554 # support --undefined. This deserves some investigation. FIXME
17555 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17556 else
17557 ld_shlibs_GCJ=no
17558 fi
17559 ;;
17560
17561 cygwin* | mingw* | pw32*)
17562 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17563 # as there is no search path for DLLs.
17564 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17565 allow_undefined_flag_GCJ=unsupported
17566 always_export_symbols_GCJ=no
17567 enable_shared_with_static_runtimes_GCJ=yes
17568 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17569
17570 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17571 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17572 # If the export-symbols file already is a .def file (1st line
17573 # is EXPORTS), use it as is; otherwise, prepend...
17574 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17575 cp $export_symbols $output_objdir/$soname.def;
17576 else
17577 echo EXPORTS > $output_objdir/$soname.def;
17578 cat $export_symbols >> $output_objdir/$soname.def;
17579 fi~
17580 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17581 else
17582 ld_shlibs_GCJ=no
17583 fi
17584 ;;
17585
17586 interix[3-9]*)
17587 hardcode_direct_GCJ=no
17588 hardcode_shlibpath_var_GCJ=no
17589 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17590 export_dynamic_flag_spec_GCJ='${wl}-E'
17591 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17592 # Instead, shared libraries are loaded at an image base (0x10000000 by
17593 # default) and relocated if they conflict, which is a slow very memory
17594 # consuming and fragmenting process. To avoid this, we pick a random,
17595 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17596 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17597 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'
17598 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'
17599 ;;
17600
17601 gnu* | linux* | k*bsd*-gnu)
17602 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17603 tmp_addflag=
17604 case $cc_basename,$host_cpu in
17605 pgcc*) # Portland Group C compiler
17606 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'
17607 tmp_addflag=' $pic_flag'
17608 ;;
17609 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17610 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'
17611 tmp_addflag=' $pic_flag -Mnomain' ;;
17612 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17613 tmp_addflag=' -i_dynamic' ;;
17614 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17615 tmp_addflag=' -i_dynamic -nofor_main' ;;
17616 ifc* | ifort*) # Intel Fortran compiler
17617 tmp_addflag=' -nofor_main' ;;
17618 esac
17619 case `$CC -V 2>&1 | sed 5q` in
17620 *Sun\ C*) # Sun C 5.9
17621 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'
17622 tmp_sharedflag='-G' ;;
17623 *Sun\ F*) # Sun Fortran 8.3
17624 tmp_sharedflag='-G' ;;
17625 *)
17626 tmp_sharedflag='-shared' ;;
17627 esac
17628 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17629
17630 if test $supports_anon_versioning = yes; then
17631 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17632 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17633 $echo "local: *; };" >> $output_objdir/$libname.ver~
17634 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17635 fi
17636 else
17637 ld_shlibs_GCJ=no
17638 fi
17639 ;;
17640
17641 netbsd*)
17642 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17643 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17644 wlarc=
17645 else
17646 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17647 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17648 fi
17649 ;;
17650
17651 solaris*)
17652 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17653 ld_shlibs_GCJ=no
17654 cat <<EOF 1>&2
17655
17656 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17657 *** create shared libraries on Solaris systems. Therefore, libtool
17658 *** is disabling shared libraries support. We urge you to upgrade GNU
17659 *** binutils to release 2.9.1 or newer. Another option is to modify
17660 *** your PATH or compiler configuration so that the native linker is
17661 *** used, and then restart.
17662
17663 EOF
17664 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17665 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17666 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17667 else
17668 ld_shlibs_GCJ=no
17669 fi
17670 ;;
17671
17672 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17673 case `$LD -v 2>&1` in
17674 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17675 ld_shlibs_GCJ=no
17676 cat <<_LT_EOF 1>&2
17677
17678 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17679 *** reliably create shared libraries on SCO systems. Therefore, libtool
17680 *** is disabling shared libraries support. We urge you to upgrade GNU
17681 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17682 *** your PATH or compiler configuration so that the native linker is
17683 *** used, and then restart.
17684
17685 _LT_EOF
17686 ;;
17687 *)
17688 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17689 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17690 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17691 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17692 else
17693 ld_shlibs_GCJ=no
17694 fi
17695 ;;
17696 esac
17697 ;;
17698
17699 sunos4*)
17700 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17701 wlarc=
17702 hardcode_direct_GCJ=yes
17703 hardcode_shlibpath_var_GCJ=no
17704 ;;
17705
17706 *)
17707 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17708 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17709 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17710 else
17711 ld_shlibs_GCJ=no
17712 fi
17713 ;;
17714 esac
17715
17716 if test "$ld_shlibs_GCJ" = no; then
17717 runpath_var=
17718 hardcode_libdir_flag_spec_GCJ=
17719 export_dynamic_flag_spec_GCJ=
17720 whole_archive_flag_spec_GCJ=
17721 fi
17722 else
17723 # PORTME fill in a description of your system's linker (not GNU ld)
17724 case $host_os in
17725 aix3*)
17726 allow_undefined_flag_GCJ=unsupported
17727 always_export_symbols_GCJ=yes
17728 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'
17729 # Note: this linker hardcodes the directories in LIBPATH if there
17730 # are no directories specified by -L.
17731 hardcode_minus_L_GCJ=yes
17732 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17733 # Neither direct hardcoding nor static linking is supported with a
17734 # broken collect2.
17735 hardcode_direct_GCJ=unsupported
17736 fi
17737 ;;
17738
17739 aix[4-9]*)
17740 if test "$host_cpu" = ia64; then
17741 # On IA64, the linker does run time linking by default, so we don't
17742 # have to do anything special.
17743 aix_use_runtimelinking=no
17744 exp_sym_flag='-Bexport'
17745 no_entry_flag=""
17746 else
17747 # If we're using GNU nm, then we don't want the "-C" option.
17748 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17749 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17750 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'
17751 else
17752 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'
17753 fi
17754 aix_use_runtimelinking=no
17755
17756 # Test if we are trying to use run time linking or normal
17757 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17758 # need to do runtime linking.
17759 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17760 for ld_flag in $LDFLAGS; do
17761 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17762 aix_use_runtimelinking=yes
17763 break
17764 fi
17765 done
17766 ;;
17767 esac
17768
17769 exp_sym_flag='-bexport'
17770 no_entry_flag='-bnoentry'
17771 fi
17772
17773 # When large executables or shared objects are built, AIX ld can
17774 # have problems creating the table of contents. If linking a library
17775 # or program results in "error TOC overflow" add -mminimal-toc to
17776 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17777 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17778
17779 archive_cmds_GCJ=''
17780 hardcode_direct_GCJ=yes
17781 hardcode_libdir_separator_GCJ=':'
17782 link_all_deplibs_GCJ=yes
17783
17784 if test "$GCC" = yes; then
17785 case $host_os in aix4.[012]|aix4.[012].*)
17786 # We only want to do this on AIX 4.2 and lower, the check
17787 # below for broken collect2 doesn't work under 4.3+
17788 collect2name=`${CC} -print-prog-name=collect2`
17789 if test -f "$collect2name" && \
17790 strings "$collect2name" | grep resolve_lib_name >/dev/null
17791 then
17792 # We have reworked collect2
17793 :
17794 else
17795 # We have old collect2
17796 hardcode_direct_GCJ=unsupported
17797 # It fails to find uninstalled libraries when the uninstalled
17798 # path is not listed in the libpath. Setting hardcode_minus_L
17799 # to unsupported forces relinking
17800 hardcode_minus_L_GCJ=yes
17801 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17802 hardcode_libdir_separator_GCJ=
17803 fi
17804 ;;
17805 esac
17806 shared_flag='-shared'
17807 if test "$aix_use_runtimelinking" = yes; then
17808 shared_flag="$shared_flag "'${wl}-G'
17809 fi
17810 else
17811 # not using gcc
17812 if test "$host_cpu" = ia64; then
17813 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17814 # chokes on -Wl,-G. The following line is correct:
17815 shared_flag='-G'
17816 else
17817 if test "$aix_use_runtimelinking" = yes; then
17818 shared_flag='${wl}-G'
17819 else
17820 shared_flag='${wl}-bM:SRE'
17821 fi
17822 fi
17823 fi
17824
17825 # It seems that -bexpall does not export symbols beginning with
17826 # underscore (_), so it is better to generate a list of symbols to export.
17827 always_export_symbols_GCJ=yes
17828 if test "$aix_use_runtimelinking" = yes; then
17829 # Warning - without using the other runtime loading flags (-brtl),
17830 # -berok will link without error, but may produce a broken library.
17831 allow_undefined_flag_GCJ='-berok'
17832 # Determine the default libpath from the value encoded in an empty executable.
17833 cat >conftest.$ac_ext <<_ACEOF
17834 /* confdefs.h. */
17835 _ACEOF
17836 cat confdefs.h >>conftest.$ac_ext
17837 cat >>conftest.$ac_ext <<_ACEOF
17838 /* end confdefs.h. */
17839
17840 int
17841 main ()
17842 {
17843
17844 ;
17845 return 0;
17846 }
17847 _ACEOF
17848 rm -f conftest.$ac_objext conftest$ac_exeext
17849 if { (ac_try="$ac_link"
17850 case "(($ac_try" in
17851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17852 *) ac_try_echo=$ac_try;;
17853 esac
17854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17855 $as_echo "$ac_try_echo") >&5
17856 (eval "$ac_link") 2>conftest.er1
17857 ac_status=$?
17858 grep -v '^ *+' conftest.er1 >conftest.err
17859 rm -f conftest.er1
17860 cat conftest.err >&5
17861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); } && {
17863 test -z "$ac_c_werror_flag" ||
17864 test ! -s conftest.err
17865 } && test -s conftest$ac_exeext && {
17866 test "$cross_compiling" = yes ||
17867 $as_test_x conftest$ac_exeext
17868 }; then
17869
17870 lt_aix_libpath_sed='
17871 /Import File Strings/,/^$/ {
17872 /^0/ {
17873 s/^0 *\(.*\)$/\1/
17874 p
17875 }
17876 }'
17877 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17878 # Check for a 64-bit object if we didn't find anything.
17879 if test -z "$aix_libpath"; then
17880 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17881 fi
17882 else
17883 $as_echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17885
17886
17887 fi
17888
17889 rm -rf conftest.dSYM
17890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17891 conftest$ac_exeext conftest.$ac_ext
17892 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17893
17894 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17895 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"
17896 else
17897 if test "$host_cpu" = ia64; then
17898 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17899 allow_undefined_flag_GCJ="-z nodefs"
17900 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"
17901 else
17902 # Determine the default libpath from the value encoded in an empty executable.
17903 cat >conftest.$ac_ext <<_ACEOF
17904 /* confdefs.h. */
17905 _ACEOF
17906 cat confdefs.h >>conftest.$ac_ext
17907 cat >>conftest.$ac_ext <<_ACEOF
17908 /* end confdefs.h. */
17909
17910 int
17911 main ()
17912 {
17913
17914 ;
17915 return 0;
17916 }
17917 _ACEOF
17918 rm -f conftest.$ac_objext conftest$ac_exeext
17919 if { (ac_try="$ac_link"
17920 case "(($ac_try" in
17921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17922 *) ac_try_echo=$ac_try;;
17923 esac
17924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17925 $as_echo "$ac_try_echo") >&5
17926 (eval "$ac_link") 2>conftest.er1
17927 ac_status=$?
17928 grep -v '^ *+' conftest.er1 >conftest.err
17929 rm -f conftest.er1
17930 cat conftest.err >&5
17931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); } && {
17933 test -z "$ac_c_werror_flag" ||
17934 test ! -s conftest.err
17935 } && test -s conftest$ac_exeext && {
17936 test "$cross_compiling" = yes ||
17937 $as_test_x conftest$ac_exeext
17938 }; then
17939
17940 lt_aix_libpath_sed='
17941 /Import File Strings/,/^$/ {
17942 /^0/ {
17943 s/^0 *\(.*\)$/\1/
17944 p
17945 }
17946 }'
17947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17948 # Check for a 64-bit object if we didn't find anything.
17949 if test -z "$aix_libpath"; then
17950 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17951 fi
17952 else
17953 $as_echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17955
17956
17957 fi
17958
17959 rm -rf conftest.dSYM
17960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17961 conftest$ac_exeext conftest.$ac_ext
17962 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17963
17964 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17965 # Warning - without using the other run time loading flags,
17966 # -berok will link without error, but may produce a broken library.
17967 no_undefined_flag_GCJ=' ${wl}-bernotok'
17968 allow_undefined_flag_GCJ=' ${wl}-berok'
17969 # Exported symbols can be pulled into shared objects from archives
17970 whole_archive_flag_spec_GCJ='$convenience'
17971 archive_cmds_need_lc_GCJ=yes
17972 # This is similar to how AIX traditionally builds its shared libraries.
17973 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'
17974 fi
17975 fi
17976 ;;
17977
17978 amigaos*)
17979 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)'
17980 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17981 hardcode_minus_L_GCJ=yes
17982 # see comment about different semantics on the GNU ld section
17983 ld_shlibs_GCJ=no
17984 ;;
17985
17986 bsdi[45]*)
17987 export_dynamic_flag_spec_GCJ=-rdynamic
17988 ;;
17989
17990 cygwin* | mingw* | pw32*)
17991 # When not using gcc, we currently assume that we are using
17992 # Microsoft Visual C++.
17993 # hardcode_libdir_flag_spec is actually meaningless, as there is
17994 # no search path for DLLs.
17995 hardcode_libdir_flag_spec_GCJ=' '
17996 allow_undefined_flag_GCJ=unsupported
17997 # Tell ltmain to make .lib files, not .a files.
17998 libext=lib
17999 # Tell ltmain to make .dll files, not .so files.
18000 shrext_cmds=".dll"
18001 # FIXME: Setting linknames here is a bad hack.
18002 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18003 # The linker will automatically build a .lib file if we build a DLL.
18004 old_archive_From_new_cmds_GCJ='true'
18005 # FIXME: Should let the user specify the lib program.
18006 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18007 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18008 enable_shared_with_static_runtimes_GCJ=yes
18009 ;;
18010
18011 darwin* | rhapsody*)
18012 case $host_os in
18013 rhapsody* | darwin1.[012])
18014 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18015 ;;
18016 *) # Darwin 1.3 on
18017 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18018 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18019 else
18020 case ${MACOSX_DEPLOYMENT_TARGET} in
18021 10.[012])
18022 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18023 ;;
18024 10.*)
18025 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18026 ;;
18027 esac
18028 fi
18029 ;;
18030 esac
18031 archive_cmds_need_lc_GCJ=no
18032 hardcode_direct_GCJ=no
18033 hardcode_automatic_GCJ=yes
18034 hardcode_shlibpath_var_GCJ=unsupported
18035 whole_archive_flag_spec_GCJ=''
18036 link_all_deplibs_GCJ=yes
18037 if test "$GCC" = yes ; then
18038 output_verbose_link_cmd='echo'
18039 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18040 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18041 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18042 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18043 else
18044 case $cc_basename in
18045 xlc*)
18046 output_verbose_link_cmd='echo'
18047 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18048 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18049 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18050 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}'
18051 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}'
18052 ;;
18053 *)
18054 ld_shlibs_GCJ=no
18055 ;;
18056 esac
18057 fi
18058 ;;
18059
18060 dgux*)
18061 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18062 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18063 hardcode_shlibpath_var_GCJ=no
18064 ;;
18065
18066 freebsd1*)
18067 ld_shlibs_GCJ=no
18068 ;;
18069
18070 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18071 # support. Future versions do this automatically, but an explicit c++rt0.o
18072 # does not break anything, and helps significantly (at the cost of a little
18073 # extra space).
18074 freebsd2.2*)
18075 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18076 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18077 hardcode_direct_GCJ=yes
18078 hardcode_shlibpath_var_GCJ=no
18079 ;;
18080
18081 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18082 freebsd2*)
18083 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18084 hardcode_direct_GCJ=yes
18085 hardcode_minus_L_GCJ=yes
18086 hardcode_shlibpath_var_GCJ=no
18087 ;;
18088
18089 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18090 freebsd* | dragonfly*)
18091 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18092 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18093 hardcode_direct_GCJ=yes
18094 hardcode_shlibpath_var_GCJ=no
18095 ;;
18096
18097 hpux9*)
18098 if test "$GCC" = yes; then
18099 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'
18100 else
18101 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'
18102 fi
18103 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18104 hardcode_libdir_separator_GCJ=:
18105 hardcode_direct_GCJ=yes
18106
18107 # hardcode_minus_L: Not really in the search PATH,
18108 # but as the default location of the library.
18109 hardcode_minus_L_GCJ=yes
18110 export_dynamic_flag_spec_GCJ='${wl}-E'
18111 ;;
18112
18113 hpux10*)
18114 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18115 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18116 else
18117 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18118 fi
18119 if test "$with_gnu_ld" = no; then
18120 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18121 hardcode_libdir_separator_GCJ=:
18122
18123 hardcode_direct_GCJ=yes
18124 export_dynamic_flag_spec_GCJ='${wl}-E'
18125
18126 # hardcode_minus_L: Not really in the search PATH,
18127 # but as the default location of the library.
18128 hardcode_minus_L_GCJ=yes
18129 fi
18130 ;;
18131
18132 hpux11*)
18133 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18134 case $host_cpu in
18135 hppa*64*)
18136 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18137 ;;
18138 ia64*)
18139 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18140 ;;
18141 *)
18142 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18143 ;;
18144 esac
18145 else
18146 case $host_cpu in
18147 hppa*64*)
18148 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18149 ;;
18150 ia64*)
18151 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18152 ;;
18153 *)
18154 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18155 ;;
18156 esac
18157 fi
18158 if test "$with_gnu_ld" = no; then
18159 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18160 hardcode_libdir_separator_GCJ=:
18161
18162 case $host_cpu in
18163 hppa*64*|ia64*)
18164 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18165 hardcode_direct_GCJ=no
18166 hardcode_shlibpath_var_GCJ=no
18167 ;;
18168 *)
18169 hardcode_direct_GCJ=yes
18170 export_dynamic_flag_spec_GCJ='${wl}-E'
18171
18172 # hardcode_minus_L: Not really in the search PATH,
18173 # but as the default location of the library.
18174 hardcode_minus_L_GCJ=yes
18175 ;;
18176 esac
18177 fi
18178 ;;
18179
18180 irix5* | irix6* | nonstopux*)
18181 if test "$GCC" = yes; then
18182 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'
18183 else
18184 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'
18185 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18186 fi
18187 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18188 hardcode_libdir_separator_GCJ=:
18189 link_all_deplibs_GCJ=yes
18190 ;;
18191
18192 netbsd*)
18193 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18194 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18195 else
18196 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18197 fi
18198 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18199 hardcode_direct_GCJ=yes
18200 hardcode_shlibpath_var_GCJ=no
18201 ;;
18202
18203 newsos6)
18204 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18205 hardcode_direct_GCJ=yes
18206 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18207 hardcode_libdir_separator_GCJ=:
18208 hardcode_shlibpath_var_GCJ=no
18209 ;;
18210
18211 openbsd*)
18212 if test -f /usr/libexec/ld.so; then
18213 hardcode_direct_GCJ=yes
18214 hardcode_shlibpath_var_GCJ=no
18215 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18216 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18217 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18218 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18219 export_dynamic_flag_spec_GCJ='${wl}-E'
18220 else
18221 case $host_os in
18222 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18223 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18224 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18225 ;;
18226 *)
18227 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18228 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18229 ;;
18230 esac
18231 fi
18232 else
18233 ld_shlibs_GCJ=no
18234 fi
18235 ;;
18236
18237 os2*)
18238 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18239 hardcode_minus_L_GCJ=yes
18240 allow_undefined_flag_GCJ=unsupported
18241 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'
18242 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18243 ;;
18244
18245 osf3*)
18246 if test "$GCC" = yes; then
18247 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18248 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'
18249 else
18250 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18251 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'
18252 fi
18253 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18254 hardcode_libdir_separator_GCJ=:
18255 ;;
18256
18257 osf4* | osf5*) # as osf3* with the addition of -msym flag
18258 if test "$GCC" = yes; then
18259 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18260 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'
18261 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18262 else
18263 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18264 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'
18265 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~
18266 $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'
18267
18268 # Both c and cxx compiler support -rpath directly
18269 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18270 fi
18271 hardcode_libdir_separator_GCJ=:
18272 ;;
18273
18274 solaris*)
18275 no_undefined_flag_GCJ=' -z text'
18276 if test "$GCC" = yes; then
18277 wlarc='${wl}'
18278 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18279 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18280 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18281 else
18282 wlarc=''
18283 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18284 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18285 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18286 fi
18287 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18288 hardcode_shlibpath_var_GCJ=no
18289 case $host_os in
18290 solaris2.[0-5] | solaris2.[0-5].*) ;;
18291 *)
18292 # The compiler driver will combine and reorder linker options,
18293 # but understands `-z linker_flag'. GCC discards it without `$wl',
18294 # but is careful enough not to reorder.
18295 # Supported since Solaris 2.6 (maybe 2.5.1?)
18296 if test "$GCC" = yes; then
18297 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18298 else
18299 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18300 fi
18301 ;;
18302 esac
18303 link_all_deplibs_GCJ=yes
18304 ;;
18305
18306 sunos4*)
18307 if test "x$host_vendor" = xsequent; then
18308 # Use $CC to link under sequent, because it throws in some extra .o
18309 # files that make .init and .fini sections work.
18310 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18311 else
18312 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18313 fi
18314 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18315 hardcode_direct_GCJ=yes
18316 hardcode_minus_L_GCJ=yes
18317 hardcode_shlibpath_var_GCJ=no
18318 ;;
18319
18320 sysv4)
18321 case $host_vendor in
18322 sni)
18323 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18324 hardcode_direct_GCJ=yes # is this really true???
18325 ;;
18326 siemens)
18327 ## LD is ld it makes a PLAMLIB
18328 ## CC just makes a GrossModule.
18329 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18330 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18331 hardcode_direct_GCJ=no
18332 ;;
18333 motorola)
18334 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18335 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18336 ;;
18337 esac
18338 runpath_var='LD_RUN_PATH'
18339 hardcode_shlibpath_var_GCJ=no
18340 ;;
18341
18342 sysv4.3*)
18343 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18344 hardcode_shlibpath_var_GCJ=no
18345 export_dynamic_flag_spec_GCJ='-Bexport'
18346 ;;
18347
18348 sysv4*MP*)
18349 if test -d /usr/nec; then
18350 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18351 hardcode_shlibpath_var_GCJ=no
18352 runpath_var=LD_RUN_PATH
18353 hardcode_runpath_var=yes
18354 ld_shlibs_GCJ=yes
18355 fi
18356 ;;
18357
18358 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18359 no_undefined_flag_GCJ='${wl}-z,text'
18360 archive_cmds_need_lc_GCJ=no
18361 hardcode_shlibpath_var_GCJ=no
18362 runpath_var='LD_RUN_PATH'
18363
18364 if test "$GCC" = yes; then
18365 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18366 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18367 else
18368 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18369 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18370 fi
18371 ;;
18372
18373 sysv5* | sco3.2v5* | sco5v6*)
18374 # Note: We can NOT use -z defs as we might desire, because we do not
18375 # link with -lc, and that would cause any symbols used from libc to
18376 # always be unresolved, which means just about no library would
18377 # ever link correctly. If we're not using GNU ld we use -z text
18378 # though, which does catch some bad symbols but isn't as heavy-handed
18379 # as -z defs.
18380 no_undefined_flag_GCJ='${wl}-z,text'
18381 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18382 archive_cmds_need_lc_GCJ=no
18383 hardcode_shlibpath_var_GCJ=no
18384 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18385 hardcode_libdir_separator_GCJ=':'
18386 link_all_deplibs_GCJ=yes
18387 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18388 runpath_var='LD_RUN_PATH'
18389
18390 if test "$GCC" = yes; then
18391 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18392 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18393 else
18394 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18395 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18396 fi
18397 ;;
18398
18399 uts4*)
18400 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18401 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18402 hardcode_shlibpath_var_GCJ=no
18403 ;;
18404
18405 *)
18406 ld_shlibs_GCJ=no
18407 ;;
18408 esac
18409 fi
18410
18411 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18412 $as_echo "$ld_shlibs_GCJ" >&6; }
18413 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18414
18415 #
18416 # Do we need to explicitly link libc?
18417 #
18418 case "x$archive_cmds_need_lc_GCJ" in
18419 x|xyes)
18420 # Assume -lc should be added
18421 archive_cmds_need_lc_GCJ=yes
18422
18423 if test "$enable_shared" = yes && test "$GCC" = yes; then
18424 case $archive_cmds_GCJ in
18425 *'~'*)
18426 # FIXME: we may have to deal with multi-command sequences.
18427 ;;
18428 '$CC '*)
18429 # Test whether the compiler implicitly links with -lc since on some
18430 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18431 # to ld, don't add -lc before -lgcc.
18432 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18433 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18434 $rm conftest*
18435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18436
18437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18438 (eval $ac_compile) 2>&5
18439 ac_status=$?
18440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); } 2>conftest.err; then
18442 soname=conftest
18443 lib=conftest
18444 libobjs=conftest.$ac_objext
18445 deplibs=
18446 wl=$lt_prog_compiler_wl_GCJ
18447 pic_flag=$lt_prog_compiler_pic_GCJ
18448 compiler_flags=-v
18449 linker_flags=-v
18450 verstring=
18451 output_objdir=.
18452 libname=conftest
18453 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18454 allow_undefined_flag_GCJ=
18455 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18456 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18457 ac_status=$?
18458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); }
18460 then
18461 archive_cmds_need_lc_GCJ=no
18462 else
18463 archive_cmds_need_lc_GCJ=yes
18464 fi
18465 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18466 else
18467 cat conftest.err 1>&5
18468 fi
18469 $rm conftest*
18470 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18471 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18472 ;;
18473 esac
18474 fi
18475 ;;
18476 esac
18477
18478 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18479 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18480 library_names_spec=
18481 libname_spec='lib$name'
18482 soname_spec=
18483 shrext_cmds=".so"
18484 postinstall_cmds=
18485 postuninstall_cmds=
18486 finish_cmds=
18487 finish_eval=
18488 shlibpath_var=
18489 shlibpath_overrides_runpath=unknown
18490 version_type=none
18491 dynamic_linker="$host_os ld.so"
18492 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18493
18494 need_lib_prefix=unknown
18495 hardcode_into_libs=no
18496
18497 # when you set need_version to no, make sure it does not cause -set_version
18498 # flags to be left without arguments
18499 need_version=unknown
18500
18501 case $host_os in
18502 aix3*)
18503 version_type=linux
18504 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18505 shlibpath_var=LIBPATH
18506
18507 # AIX 3 has no versioning support, so we append a major version to the name.
18508 soname_spec='${libname}${release}${shared_ext}$major'
18509 ;;
18510
18511 aix[4-9]*)
18512 version_type=linux
18513 need_lib_prefix=no
18514 need_version=no
18515 hardcode_into_libs=yes
18516 if test "$host_cpu" = ia64; then
18517 # AIX 5 supports IA64
18518 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18519 shlibpath_var=LD_LIBRARY_PATH
18520 else
18521 # With GCC up to 2.95.x, collect2 would create an import file
18522 # for dependence libraries. The import file would start with
18523 # the line `#! .'. This would cause the generated library to
18524 # depend on `.', always an invalid library. This was fixed in
18525 # development snapshots of GCC prior to 3.0.
18526 case $host_os in
18527 aix4 | aix4.[01] | aix4.[01].*)
18528 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18529 echo ' yes '
18530 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18531 :
18532 else
18533 can_build_shared=no
18534 fi
18535 ;;
18536 esac
18537 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18538 # soname into executable. Probably we can add versioning support to
18539 # collect2, so additional links can be useful in future.
18540 if test "$aix_use_runtimelinking" = yes; then
18541 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18542 # instead of lib<name>.a to let people know that these are not
18543 # typical AIX shared libraries.
18544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18545 else
18546 # We preserve .a as extension for shared libraries through AIX4.2
18547 # and later when we are not doing run time linking.
18548 library_names_spec='${libname}${release}.a $libname.a'
18549 soname_spec='${libname}${release}${shared_ext}$major'
18550 fi
18551 shlibpath_var=LIBPATH
18552 fi
18553 ;;
18554
18555 amigaos*)
18556 library_names_spec='$libname.ixlibrary $libname.a'
18557 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18558 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'
18559 ;;
18560
18561 beos*)
18562 library_names_spec='${libname}${shared_ext}'
18563 dynamic_linker="$host_os ld.so"
18564 shlibpath_var=LIBRARY_PATH
18565 ;;
18566
18567 bsdi[45]*)
18568 version_type=linux
18569 need_version=no
18570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18571 soname_spec='${libname}${release}${shared_ext}$major'
18572 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18573 shlibpath_var=LD_LIBRARY_PATH
18574 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18575 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18576 # the default ld.so.conf also contains /usr/contrib/lib and
18577 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18578 # libtool to hard-code these into programs
18579 ;;
18580
18581 cygwin* | mingw* | pw32*)
18582 version_type=windows
18583 shrext_cmds=".dll"
18584 need_version=no
18585 need_lib_prefix=no
18586
18587 case $GCC,$host_os in
18588 yes,cygwin* | yes,mingw* | yes,pw32*)
18589 library_names_spec='$libname.dll.a'
18590 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18591 postinstall_cmds='base_file=`basename \${file}`~
18592 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18593 dldir=$destdir/`dirname \$dlpath`~
18594 test -d \$dldir || mkdir -p \$dldir~
18595 $install_prog $dir/$dlname \$dldir/$dlname~
18596 chmod a+x \$dldir/$dlname'
18597 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18598 dlpath=$dir/\$dldll~
18599 $rm \$dlpath'
18600 shlibpath_overrides_runpath=yes
18601
18602 case $host_os in
18603 cygwin*)
18604 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18605 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18606 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18607 ;;
18608 mingw*)
18609 # MinGW DLLs use traditional 'lib' prefix
18610 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18611 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18612 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18613 # It is most probably a Windows format PATH printed by
18614 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18615 # path with ; separators, and with drive letters. We can handle the
18616 # drive letters (cygwin fileutils understands them), so leave them,
18617 # especially as we might pass files found there to a mingw objdump,
18618 # which wouldn't understand a cygwinified path. Ahh.
18619 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18620 else
18621 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18622 fi
18623 ;;
18624 pw32*)
18625 # pw32 DLLs use 'pw' prefix rather than 'lib'
18626 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18627 ;;
18628 esac
18629 ;;
18630
18631 *)
18632 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18633 ;;
18634 esac
18635 dynamic_linker='Win32 ld.exe'
18636 # FIXME: first we should search . and the directory the executable is in
18637 shlibpath_var=PATH
18638 ;;
18639
18640 darwin* | rhapsody*)
18641 dynamic_linker="$host_os dyld"
18642 version_type=darwin
18643 need_lib_prefix=no
18644 need_version=no
18645 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18646 soname_spec='${libname}${release}${major}$shared_ext'
18647 shlibpath_overrides_runpath=yes
18648 shlibpath_var=DYLD_LIBRARY_PATH
18649 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18650
18651 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18652 ;;
18653
18654 dgux*)
18655 version_type=linux
18656 need_lib_prefix=no
18657 need_version=no
18658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18659 soname_spec='${libname}${release}${shared_ext}$major'
18660 shlibpath_var=LD_LIBRARY_PATH
18661 ;;
18662
18663 freebsd1*)
18664 dynamic_linker=no
18665 ;;
18666
18667 freebsd* | dragonfly*)
18668 # DragonFly does not have aout. When/if they implement a new
18669 # versioning mechanism, adjust this.
18670 if test -x /usr/bin/objformat; then
18671 objformat=`/usr/bin/objformat`
18672 else
18673 case $host_os in
18674 freebsd[123]*) objformat=aout ;;
18675 *) objformat=elf ;;
18676 esac
18677 fi
18678 version_type=freebsd-$objformat
18679 case $version_type in
18680 freebsd-elf*)
18681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18682 need_version=no
18683 need_lib_prefix=no
18684 ;;
18685 freebsd-*)
18686 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18687 need_version=yes
18688 ;;
18689 esac
18690 shlibpath_var=LD_LIBRARY_PATH
18691 case $host_os in
18692 freebsd2*)
18693 shlibpath_overrides_runpath=yes
18694 ;;
18695 freebsd3.[01]* | freebsdelf3.[01]*)
18696 shlibpath_overrides_runpath=yes
18697 hardcode_into_libs=yes
18698 ;;
18699 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18700 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18701 shlibpath_overrides_runpath=no
18702 hardcode_into_libs=yes
18703 ;;
18704 *) # from 4.6 on, and DragonFly
18705 shlibpath_overrides_runpath=yes
18706 hardcode_into_libs=yes
18707 ;;
18708 esac
18709 ;;
18710
18711 gnu*)
18712 version_type=linux
18713 need_lib_prefix=no
18714 need_version=no
18715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18716 soname_spec='${libname}${release}${shared_ext}$major'
18717 shlibpath_var=LD_LIBRARY_PATH
18718 hardcode_into_libs=yes
18719 ;;
18720
18721 hpux9* | hpux10* | hpux11*)
18722 # Give a soname corresponding to the major version so that dld.sl refuses to
18723 # link against other versions.
18724 version_type=sunos
18725 need_lib_prefix=no
18726 need_version=no
18727 case $host_cpu in
18728 ia64*)
18729 shrext_cmds='.so'
18730 hardcode_into_libs=yes
18731 dynamic_linker="$host_os dld.so"
18732 shlibpath_var=LD_LIBRARY_PATH
18733 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18735 soname_spec='${libname}${release}${shared_ext}$major'
18736 if test "X$HPUX_IA64_MODE" = X32; then
18737 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18738 else
18739 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18740 fi
18741 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18742 ;;
18743 hppa*64*)
18744 shrext_cmds='.sl'
18745 hardcode_into_libs=yes
18746 dynamic_linker="$host_os dld.sl"
18747 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18748 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18750 soname_spec='${libname}${release}${shared_ext}$major'
18751 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18752 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18753 ;;
18754 *)
18755 shrext_cmds='.sl'
18756 dynamic_linker="$host_os dld.sl"
18757 shlibpath_var=SHLIB_PATH
18758 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18760 soname_spec='${libname}${release}${shared_ext}$major'
18761 ;;
18762 esac
18763 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18764 postinstall_cmds='chmod 555 $lib'
18765 ;;
18766
18767 interix[3-9]*)
18768 version_type=linux
18769 need_lib_prefix=no
18770 need_version=no
18771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18772 soname_spec='${libname}${release}${shared_ext}$major'
18773 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18774 shlibpath_var=LD_LIBRARY_PATH
18775 shlibpath_overrides_runpath=no
18776 hardcode_into_libs=yes
18777 ;;
18778
18779 irix5* | irix6* | nonstopux*)
18780 case $host_os in
18781 nonstopux*) version_type=nonstopux ;;
18782 *)
18783 if test "$lt_cv_prog_gnu_ld" = yes; then
18784 version_type=linux
18785 else
18786 version_type=irix
18787 fi ;;
18788 esac
18789 need_lib_prefix=no
18790 need_version=no
18791 soname_spec='${libname}${release}${shared_ext}$major'
18792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18793 case $host_os in
18794 irix5* | nonstopux*)
18795 libsuff= shlibsuff=
18796 ;;
18797 *)
18798 case $LD in # libtool.m4 will add one of these switches to LD
18799 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18800 libsuff= shlibsuff= libmagic=32-bit;;
18801 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18802 libsuff=32 shlibsuff=N32 libmagic=N32;;
18803 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18804 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18805 *) libsuff= shlibsuff= libmagic=never-match;;
18806 esac
18807 ;;
18808 esac
18809 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18810 shlibpath_overrides_runpath=no
18811 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18812 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18813 hardcode_into_libs=yes
18814 ;;
18815
18816 # No shared lib support for Linux oldld, aout, or coff.
18817 linux*oldld* | linux*aout* | linux*coff*)
18818 dynamic_linker=no
18819 ;;
18820
18821 # This must be Linux ELF.
18822 linux* | k*bsd*-gnu)
18823 version_type=linux
18824 need_lib_prefix=no
18825 need_version=no
18826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18827 soname_spec='${libname}${release}${shared_ext}$major'
18828 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18829 shlibpath_var=LD_LIBRARY_PATH
18830 shlibpath_overrides_runpath=no
18831 # This implies no fast_install, which is unacceptable.
18832 # Some rework will be needed to allow for fast_install
18833 # before this can be enabled.
18834 hardcode_into_libs=yes
18835
18836 # Append ld.so.conf contents to the search path
18837 if test -f /etc/ld.so.conf; then
18838 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' ' '`
18839 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18840 fi
18841
18842 # We used to test for /lib/ld.so.1 and disable shared libraries on
18843 # powerpc, because MkLinux only supported shared libraries with the
18844 # GNU dynamic linker. Since this was broken with cross compilers,
18845 # most powerpc-linux boxes support dynamic linking these days and
18846 # people can always --disable-shared, the test was removed, and we
18847 # assume the GNU/Linux dynamic linker is in use.
18848 dynamic_linker='GNU/Linux ld.so'
18849 ;;
18850
18851 netbsd*)
18852 version_type=sunos
18853 need_lib_prefix=no
18854 need_version=no
18855 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18857 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18858 dynamic_linker='NetBSD (a.out) ld.so'
18859 else
18860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18861 soname_spec='${libname}${release}${shared_ext}$major'
18862 dynamic_linker='NetBSD ld.elf_so'
18863 fi
18864 shlibpath_var=LD_LIBRARY_PATH
18865 shlibpath_overrides_runpath=yes
18866 hardcode_into_libs=yes
18867 ;;
18868
18869 newsos6)
18870 version_type=linux
18871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18872 shlibpath_var=LD_LIBRARY_PATH
18873 shlibpath_overrides_runpath=yes
18874 ;;
18875
18876 nto-qnx*)
18877 version_type=linux
18878 need_lib_prefix=no
18879 need_version=no
18880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18881 soname_spec='${libname}${release}${shared_ext}$major'
18882 shlibpath_var=LD_LIBRARY_PATH
18883 shlibpath_overrides_runpath=yes
18884 ;;
18885
18886 openbsd*)
18887 version_type=sunos
18888 sys_lib_dlsearch_path_spec="/usr/lib"
18889 need_lib_prefix=no
18890 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18891 case $host_os in
18892 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18893 *) need_version=no ;;
18894 esac
18895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18896 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18897 shlibpath_var=LD_LIBRARY_PATH
18898 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18899 case $host_os in
18900 openbsd2.[89] | openbsd2.[89].*)
18901 shlibpath_overrides_runpath=no
18902 ;;
18903 *)
18904 shlibpath_overrides_runpath=yes
18905 ;;
18906 esac
18907 else
18908 shlibpath_overrides_runpath=yes
18909 fi
18910 ;;
18911
18912 os2*)
18913 libname_spec='$name'
18914 shrext_cmds=".dll"
18915 need_lib_prefix=no
18916 library_names_spec='$libname${shared_ext} $libname.a'
18917 dynamic_linker='OS/2 ld.exe'
18918 shlibpath_var=LIBPATH
18919 ;;
18920
18921 osf3* | osf4* | osf5*)
18922 version_type=osf
18923 need_lib_prefix=no
18924 need_version=no
18925 soname_spec='${libname}${release}${shared_ext}$major'
18926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18927 shlibpath_var=LD_LIBRARY_PATH
18928 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18929 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18930 ;;
18931
18932 rdos*)
18933 dynamic_linker=no
18934 ;;
18935
18936 solaris*)
18937 version_type=linux
18938 need_lib_prefix=no
18939 need_version=no
18940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18941 soname_spec='${libname}${release}${shared_ext}$major'
18942 shlibpath_var=LD_LIBRARY_PATH
18943 shlibpath_overrides_runpath=yes
18944 hardcode_into_libs=yes
18945 # ldd complains unless libraries are executable
18946 postinstall_cmds='chmod +x $lib'
18947 ;;
18948
18949 sunos4*)
18950 version_type=sunos
18951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18952 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18953 shlibpath_var=LD_LIBRARY_PATH
18954 shlibpath_overrides_runpath=yes
18955 if test "$with_gnu_ld" = yes; then
18956 need_lib_prefix=no
18957 fi
18958 need_version=yes
18959 ;;
18960
18961 sysv4 | sysv4.3*)
18962 version_type=linux
18963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18964 soname_spec='${libname}${release}${shared_ext}$major'
18965 shlibpath_var=LD_LIBRARY_PATH
18966 case $host_vendor in
18967 sni)
18968 shlibpath_overrides_runpath=no
18969 need_lib_prefix=no
18970 export_dynamic_flag_spec='${wl}-Blargedynsym'
18971 runpath_var=LD_RUN_PATH
18972 ;;
18973 siemens)
18974 need_lib_prefix=no
18975 ;;
18976 motorola)
18977 need_lib_prefix=no
18978 need_version=no
18979 shlibpath_overrides_runpath=no
18980 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18981 ;;
18982 esac
18983 ;;
18984
18985 sysv4*MP*)
18986 if test -d /usr/nec ;then
18987 version_type=linux
18988 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18989 soname_spec='$libname${shared_ext}.$major'
18990 shlibpath_var=LD_LIBRARY_PATH
18991 fi
18992 ;;
18993
18994 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18995 version_type=freebsd-elf
18996 need_lib_prefix=no
18997 need_version=no
18998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18999 soname_spec='${libname}${release}${shared_ext}$major'
19000 shlibpath_var=LD_LIBRARY_PATH
19001 hardcode_into_libs=yes
19002 if test "$with_gnu_ld" = yes; then
19003 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19004 shlibpath_overrides_runpath=no
19005 else
19006 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19007 shlibpath_overrides_runpath=yes
19008 case $host_os in
19009 sco3.2v5*)
19010 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19011 ;;
19012 esac
19013 fi
19014 sys_lib_dlsearch_path_spec='/usr/lib'
19015 ;;
19016
19017 uts4*)
19018 version_type=linux
19019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19020 soname_spec='${libname}${release}${shared_ext}$major'
19021 shlibpath_var=LD_LIBRARY_PATH
19022 ;;
19023
19024 *)
19025 dynamic_linker=no
19026 ;;
19027 esac
19028 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19029 $as_echo "$dynamic_linker" >&6; }
19030 test "$dynamic_linker" = no && can_build_shared=no
19031
19032 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19033 $as_echo_n "(cached) " >&6
19034 else
19035 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19036 fi
19037
19038 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19039 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19040 $as_echo_n "(cached) " >&6
19041 else
19042 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19043 fi
19044
19045 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19046
19047 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19048 if test "$GCC" = yes; then
19049 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19050 fi
19051
19052 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19053 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19054 hardcode_action_GCJ=
19055 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19056 test -n "$runpath_var_GCJ" || \
19057 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19058
19059 # We can hardcode non-existant directories.
19060 if test "$hardcode_direct_GCJ" != no &&
19061 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19062 # have to relink, otherwise we might link with an installed library
19063 # when we should be linking with a yet-to-be-installed one
19064 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19065 test "$hardcode_minus_L_GCJ" != no; then
19066 # Linking always hardcodes the temporary library directory.
19067 hardcode_action_GCJ=relink
19068 else
19069 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19070 hardcode_action_GCJ=immediate
19071 fi
19072 else
19073 # We cannot hardcode anything, or else we can only hardcode existing
19074 # directories.
19075 hardcode_action_GCJ=unsupported
19076 fi
19077 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19078 $as_echo "$hardcode_action_GCJ" >&6; }
19079
19080 if test "$hardcode_action_GCJ" = relink; then
19081 # Fast installation is not supported
19082 enable_fast_install=no
19083 elif test "$shlibpath_overrides_runpath" = yes ||
19084 test "$enable_shared" = no; then
19085 # Fast installation is not necessary
19086 enable_fast_install=needless
19087 fi
19088
19089
19090 # The else clause should only fire when bootstrapping the
19091 # libtool distribution, otherwise you forgot to ship ltmain.sh
19092 # with your package, and you will get complaints that there are
19093 # no rules to generate ltmain.sh.
19094 if test -f "$ltmain"; then
19095 # See if we are running on zsh, and set the options which allow our commands through
19096 # without removal of \ escapes.
19097 if test -n "${ZSH_VERSION+set}" ; then
19098 setopt NO_GLOB_SUBST
19099 fi
19100 # Now quote all the things that may contain metacharacters while being
19101 # careful not to overquote the AC_SUBSTed values. We take copies of the
19102 # variables and quote the copies for generation of the libtool script.
19103 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19104 SED SHELL STRIP \
19105 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19106 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19107 deplibs_check_method reload_flag reload_cmds need_locks \
19108 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19109 lt_cv_sys_global_symbol_to_c_name_address \
19110 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19111 old_postinstall_cmds old_postuninstall_cmds \
19112 compiler_GCJ \
19113 CC_GCJ \
19114 LD_GCJ \
19115 lt_prog_compiler_wl_GCJ \
19116 lt_prog_compiler_pic_GCJ \
19117 lt_prog_compiler_static_GCJ \
19118 lt_prog_compiler_no_builtin_flag_GCJ \
19119 export_dynamic_flag_spec_GCJ \
19120 thread_safe_flag_spec_GCJ \
19121 whole_archive_flag_spec_GCJ \
19122 enable_shared_with_static_runtimes_GCJ \
19123 old_archive_cmds_GCJ \
19124 old_archive_from_new_cmds_GCJ \
19125 predep_objects_GCJ \
19126 postdep_objects_GCJ \
19127 predeps_GCJ \
19128 postdeps_GCJ \
19129 compiler_lib_search_path_GCJ \
19130 compiler_lib_search_dirs_GCJ \
19131 archive_cmds_GCJ \
19132 archive_expsym_cmds_GCJ \
19133 postinstall_cmds_GCJ \
19134 postuninstall_cmds_GCJ \
19135 old_archive_from_expsyms_cmds_GCJ \
19136 allow_undefined_flag_GCJ \
19137 no_undefined_flag_GCJ \
19138 export_symbols_cmds_GCJ \
19139 hardcode_libdir_flag_spec_GCJ \
19140 hardcode_libdir_flag_spec_ld_GCJ \
19141 hardcode_libdir_separator_GCJ \
19142 hardcode_automatic_GCJ \
19143 module_cmds_GCJ \
19144 module_expsym_cmds_GCJ \
19145 lt_cv_prog_compiler_c_o_GCJ \
19146 fix_srcfile_path_GCJ \
19147 exclude_expsyms_GCJ \
19148 include_expsyms_GCJ; do
19149
19150 case $var in
19151 old_archive_cmds_GCJ | \
19152 old_archive_from_new_cmds_GCJ | \
19153 archive_cmds_GCJ | \
19154 archive_expsym_cmds_GCJ | \
19155 module_cmds_GCJ | \
19156 module_expsym_cmds_GCJ | \
19157 old_archive_from_expsyms_cmds_GCJ | \
19158 export_symbols_cmds_GCJ | \
19159 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19160 postinstall_cmds | postuninstall_cmds | \
19161 old_postinstall_cmds | old_postuninstall_cmds | \
19162 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19163 # Double-quote double-evaled strings.
19164 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19165 ;;
19166 *)
19167 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19168 ;;
19169 esac
19170 done
19171
19172 case $lt_echo in
19173 *'\$0 --fallback-echo"')
19174 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19175 ;;
19176 esac
19177
19178 cfgfile="$ofile"
19179
19180 cat <<__EOF__ >> "$cfgfile"
19181 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19182
19183 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19184
19185 # Shell to use when invoking shell scripts.
19186 SHELL=$lt_SHELL
19187
19188 # Whether or not to build shared libraries.
19189 build_libtool_libs=$enable_shared
19190
19191 # Whether or not to build static libraries.
19192 build_old_libs=$enable_static
19193
19194 # Whether or not to add -lc for building shared libraries.
19195 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19196
19197 # Whether or not to disallow shared libs when runtime libs are static
19198 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19199
19200 # Whether or not to optimize for fast installation.
19201 fast_install=$enable_fast_install
19202
19203 # The host system.
19204 host_alias=$host_alias
19205 host=$host
19206 host_os=$host_os
19207
19208 # The build system.
19209 build_alias=$build_alias
19210 build=$build
19211 build_os=$build_os
19212
19213 # An echo program that does not interpret backslashes.
19214 echo=$lt_echo
19215
19216 # The archiver.
19217 AR=$lt_AR
19218 AR_FLAGS=$lt_AR_FLAGS
19219
19220 # A C compiler.
19221 LTCC=$lt_LTCC
19222
19223 # LTCC compiler flags.
19224 LTCFLAGS=$lt_LTCFLAGS
19225
19226 # A language-specific compiler.
19227 CC=$lt_compiler_GCJ
19228
19229 # Is the compiler the GNU C compiler?
19230 with_gcc=$GCC_GCJ
19231
19232 # An ERE matcher.
19233 EGREP=$lt_EGREP
19234
19235 # The linker used to build libraries.
19236 LD=$lt_LD_GCJ
19237
19238 # Whether we need hard or soft links.
19239 LN_S=$lt_LN_S
19240
19241 # A BSD-compatible nm program.
19242 NM=$lt_NM
19243
19244 # A symbol stripping program
19245 STRIP=$lt_STRIP
19246
19247 # Used to examine libraries when file_magic_cmd begins "file"
19248 MAGIC_CMD=$MAGIC_CMD
19249
19250 # Used on cygwin: DLL creation program.
19251 DLLTOOL="$DLLTOOL"
19252
19253 # Used on cygwin: object dumper.
19254 OBJDUMP="$OBJDUMP"
19255
19256 # Used on cygwin: assembler.
19257 AS="$AS"
19258
19259 # The name of the directory that contains temporary libtool files.
19260 objdir=$objdir
19261
19262 # How to create reloadable object files.
19263 reload_flag=$lt_reload_flag
19264 reload_cmds=$lt_reload_cmds
19265
19266 # How to pass a linker flag through the compiler.
19267 wl=$lt_lt_prog_compiler_wl_GCJ
19268
19269 # Object file suffix (normally "o").
19270 objext="$ac_objext"
19271
19272 # Old archive suffix (normally "a").
19273 libext="$libext"
19274
19275 # Shared library suffix (normally ".so").
19276 shrext_cmds='$shrext_cmds'
19277
19278 # Executable file suffix (normally "").
19279 exeext="$exeext"
19280
19281 # Additional compiler flags for building library objects.
19282 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19283 pic_mode=$pic_mode
19284
19285 # What is the maximum length of a command?
19286 max_cmd_len=$lt_cv_sys_max_cmd_len
19287
19288 # Does compiler simultaneously support -c and -o options?
19289 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19290
19291 # Must we lock files when doing compilation?
19292 need_locks=$lt_need_locks
19293
19294 # Do we need the lib prefix for modules?
19295 need_lib_prefix=$need_lib_prefix
19296
19297 # Do we need a version for libraries?
19298 need_version=$need_version
19299
19300 # Whether dlopen is supported.
19301 dlopen_support=$enable_dlopen
19302
19303 # Whether dlopen of programs is supported.
19304 dlopen_self=$enable_dlopen_self
19305
19306 # Whether dlopen of statically linked programs is supported.
19307 dlopen_self_static=$enable_dlopen_self_static
19308
19309 # Compiler flag to prevent dynamic linking.
19310 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19311
19312 # Compiler flag to turn off builtin functions.
19313 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19314
19315 # Compiler flag to allow reflexive dlopens.
19316 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19317
19318 # Compiler flag to generate shared objects directly from archives.
19319 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19320
19321 # Compiler flag to generate thread-safe objects.
19322 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19323
19324 # Library versioning type.
19325 version_type=$version_type
19326
19327 # Format of library name prefix.
19328 libname_spec=$lt_libname_spec
19329
19330 # List of archive names. First name is the real one, the rest are links.
19331 # The last name is the one that the linker finds with -lNAME.
19332 library_names_spec=$lt_library_names_spec
19333
19334 # The coded name of the library, if different from the real name.
19335 soname_spec=$lt_soname_spec
19336
19337 # Commands used to build and install an old-style archive.
19338 RANLIB=$lt_RANLIB
19339 old_archive_cmds=$lt_old_archive_cmds_GCJ
19340 old_postinstall_cmds=$lt_old_postinstall_cmds
19341 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19342
19343 # Create an old-style archive from a shared archive.
19344 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19345
19346 # Create a temporary old-style archive to link instead of a shared archive.
19347 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19348
19349 # Commands used to build and install a shared archive.
19350 archive_cmds=$lt_archive_cmds_GCJ
19351 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19352 postinstall_cmds=$lt_postinstall_cmds
19353 postuninstall_cmds=$lt_postuninstall_cmds
19354
19355 # Commands used to build a loadable module (assumed same as above if empty)
19356 module_cmds=$lt_module_cmds_GCJ
19357 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19358
19359 # Commands to strip libraries.
19360 old_striplib=$lt_old_striplib
19361 striplib=$lt_striplib
19362
19363 # Dependencies to place before the objects being linked to create a
19364 # shared library.
19365 predep_objects=$lt_predep_objects_GCJ
19366
19367 # Dependencies to place after the objects being linked to create a
19368 # shared library.
19369 postdep_objects=$lt_postdep_objects_GCJ
19370
19371 # Dependencies to place before the objects being linked to create a
19372 # shared library.
19373 predeps=$lt_predeps_GCJ
19374
19375 # Dependencies to place after the objects being linked to create a
19376 # shared library.
19377 postdeps=$lt_postdeps_GCJ
19378
19379 # The directories searched by this compiler when creating a shared
19380 # library
19381 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19382
19383 # The library search path used internally by the compiler when linking
19384 # a shared library.
19385 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19386
19387 # Method to check whether dependent libraries are shared objects.
19388 deplibs_check_method=$lt_deplibs_check_method
19389
19390 # Command to use when deplibs_check_method == file_magic.
19391 file_magic_cmd=$lt_file_magic_cmd
19392
19393 # Flag that allows shared libraries with undefined symbols to be built.
19394 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19395
19396 # Flag that forces no undefined symbols.
19397 no_undefined_flag=$lt_no_undefined_flag_GCJ
19398
19399 # Commands used to finish a libtool library installation in a directory.
19400 finish_cmds=$lt_finish_cmds
19401
19402 # Same as above, but a single script fragment to be evaled but not shown.
19403 finish_eval=$lt_finish_eval
19404
19405 # Take the output of nm and produce a listing of raw symbols and C names.
19406 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19407
19408 # Transform the output of nm in a proper C declaration
19409 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19410
19411 # Transform the output of nm in a C name address pair
19412 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19413
19414 # This is the shared library runtime path variable.
19415 runpath_var=$runpath_var
19416
19417 # This is the shared library path variable.
19418 shlibpath_var=$shlibpath_var
19419
19420 # Is shlibpath searched before the hard-coded library search path?
19421 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19422
19423 # How to hardcode a shared library path into an executable.
19424 hardcode_action=$hardcode_action_GCJ
19425
19426 # Whether we should hardcode library paths into libraries.
19427 hardcode_into_libs=$hardcode_into_libs
19428
19429 # Flag to hardcode \$libdir into a binary during linking.
19430 # This must work even if \$libdir does not exist.
19431 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19432
19433 # If ld is used when linking, flag to hardcode \$libdir into
19434 # a binary during linking. This must work even if \$libdir does
19435 # not exist.
19436 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19437
19438 # Whether we need a single -rpath flag with a separated argument.
19439 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19440
19441 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19442 # resulting binary.
19443 hardcode_direct=$hardcode_direct_GCJ
19444
19445 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19446 # resulting binary.
19447 hardcode_minus_L=$hardcode_minus_L_GCJ
19448
19449 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19450 # the resulting binary.
19451 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19452
19453 # Set to yes if building a shared library automatically hardcodes DIR into the library
19454 # and all subsequent libraries and executables linked against it.
19455 hardcode_automatic=$hardcode_automatic_GCJ
19456
19457 # Variables whose values should be saved in libtool wrapper scripts and
19458 # restored at relink time.
19459 variables_saved_for_relink="$variables_saved_for_relink"
19460
19461 # Whether libtool must link a program against all its dependency libraries.
19462 link_all_deplibs=$link_all_deplibs_GCJ
19463
19464 # Compile-time system search path for libraries
19465 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19466
19467 # Run-time system search path for libraries
19468 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19469
19470 # Fix the shell variable \$srcfile for the compiler.
19471 fix_srcfile_path=$lt_fix_srcfile_path
19472
19473 # Set to yes if exported symbols are required.
19474 always_export_symbols=$always_export_symbols_GCJ
19475
19476 # The commands to list exported symbols.
19477 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19478
19479 # The commands to extract the exported symbol list from a shared archive.
19480 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19481
19482 # Symbols that should not be listed in the preloaded symbols.
19483 exclude_expsyms=$lt_exclude_expsyms_GCJ
19484
19485 # Symbols that must always be exported.
19486 include_expsyms=$lt_include_expsyms_GCJ
19487
19488 # ### END LIBTOOL TAG CONFIG: $tagname
19489
19490 __EOF__
19491
19492
19493 else
19494 # If there is no Makefile yet, we rely on a make rule to execute
19495 # `config.status --recheck' to rerun these tests and create the
19496 # libtool script then.
19497 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19498 if test -f "$ltmain_in"; then
19499 test -f Makefile && make "$ltmain"
19500 fi
19501 fi
19502
19503
19504 ac_ext=c
19505 ac_cpp='$CPP $CPPFLAGS'
19506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19509
19510 CC="$lt_save_CC"
19511
19512 else
19513 tagname=""
19514 fi
19515 ;;
19516
19517 RC)
19518
19519
19520 # Source file extension for RC test sources.
19521 ac_ext=rc
19522
19523 # Object file extension for compiled RC test sources.
19524 objext=o
19525 objext_RC=$objext
19526
19527 # Code to be used in simple compile tests
19528 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19529
19530 # Code to be used in simple link tests
19531 lt_simple_link_test_code="$lt_simple_compile_test_code"
19532
19533 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19534
19535 # If no C compiler was specified, use CC.
19536 LTCC=${LTCC-"$CC"}
19537
19538 # If no C compiler flags were specified, use CFLAGS.
19539 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19540
19541 # Allow CC to be a program name with arguments.
19542 compiler=$CC
19543
19544
19545 # save warnings/boilerplate of simple test code
19546 ac_outfile=conftest.$ac_objext
19547 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19548 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19549 _lt_compiler_boilerplate=`cat conftest.err`
19550 $rm conftest*
19551
19552 ac_outfile=conftest.$ac_objext
19553 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19554 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19555 _lt_linker_boilerplate=`cat conftest.err`
19556 $rm -r conftest*
19557
19558
19559 # Allow CC to be a program name with arguments.
19560 lt_save_CC="$CC"
19561 CC=${RC-"windres"}
19562 compiler=$CC
19563 compiler_RC=$CC
19564 for cc_temp in $compiler""; do
19565 case $cc_temp in
19566 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19567 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19568 \-*) ;;
19569 *) break;;
19570 esac
19571 done
19572 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19573
19574 lt_cv_prog_compiler_c_o_RC=yes
19575
19576 # The else clause should only fire when bootstrapping the
19577 # libtool distribution, otherwise you forgot to ship ltmain.sh
19578 # with your package, and you will get complaints that there are
19579 # no rules to generate ltmain.sh.
19580 if test -f "$ltmain"; then
19581 # See if we are running on zsh, and set the options which allow our commands through
19582 # without removal of \ escapes.
19583 if test -n "${ZSH_VERSION+set}" ; then
19584 setopt NO_GLOB_SUBST
19585 fi
19586 # Now quote all the things that may contain metacharacters while being
19587 # careful not to overquote the AC_SUBSTed values. We take copies of the
19588 # variables and quote the copies for generation of the libtool script.
19589 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19590 SED SHELL STRIP \
19591 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19592 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19593 deplibs_check_method reload_flag reload_cmds need_locks \
19594 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19595 lt_cv_sys_global_symbol_to_c_name_address \
19596 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19597 old_postinstall_cmds old_postuninstall_cmds \
19598 compiler_RC \
19599 CC_RC \
19600 LD_RC \
19601 lt_prog_compiler_wl_RC \
19602 lt_prog_compiler_pic_RC \
19603 lt_prog_compiler_static_RC \
19604 lt_prog_compiler_no_builtin_flag_RC \
19605 export_dynamic_flag_spec_RC \
19606 thread_safe_flag_spec_RC \
19607 whole_archive_flag_spec_RC \
19608 enable_shared_with_static_runtimes_RC \
19609 old_archive_cmds_RC \
19610 old_archive_from_new_cmds_RC \
19611 predep_objects_RC \
19612 postdep_objects_RC \
19613 predeps_RC \
19614 postdeps_RC \
19615 compiler_lib_search_path_RC \
19616 compiler_lib_search_dirs_RC \
19617 archive_cmds_RC \
19618 archive_expsym_cmds_RC \
19619 postinstall_cmds_RC \
19620 postuninstall_cmds_RC \
19621 old_archive_from_expsyms_cmds_RC \
19622 allow_undefined_flag_RC \
19623 no_undefined_flag_RC \
19624 export_symbols_cmds_RC \
19625 hardcode_libdir_flag_spec_RC \
19626 hardcode_libdir_flag_spec_ld_RC \
19627 hardcode_libdir_separator_RC \
19628 hardcode_automatic_RC \
19629 module_cmds_RC \
19630 module_expsym_cmds_RC \
19631 lt_cv_prog_compiler_c_o_RC \
19632 fix_srcfile_path_RC \
19633 exclude_expsyms_RC \
19634 include_expsyms_RC; do
19635
19636 case $var in
19637 old_archive_cmds_RC | \
19638 old_archive_from_new_cmds_RC | \
19639 archive_cmds_RC | \
19640 archive_expsym_cmds_RC | \
19641 module_cmds_RC | \
19642 module_expsym_cmds_RC | \
19643 old_archive_from_expsyms_cmds_RC | \
19644 export_symbols_cmds_RC | \
19645 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19646 postinstall_cmds | postuninstall_cmds | \
19647 old_postinstall_cmds | old_postuninstall_cmds | \
19648 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19649 # Double-quote double-evaled strings.
19650 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19651 ;;
19652 *)
19653 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19654 ;;
19655 esac
19656 done
19657
19658 case $lt_echo in
19659 *'\$0 --fallback-echo"')
19660 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19661 ;;
19662 esac
19663
19664 cfgfile="$ofile"
19665
19666 cat <<__EOF__ >> "$cfgfile"
19667 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19668
19669 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19670
19671 # Shell to use when invoking shell scripts.
19672 SHELL=$lt_SHELL
19673
19674 # Whether or not to build shared libraries.
19675 build_libtool_libs=$enable_shared
19676
19677 # Whether or not to build static libraries.
19678 build_old_libs=$enable_static
19679
19680 # Whether or not to add -lc for building shared libraries.
19681 build_libtool_need_lc=$archive_cmds_need_lc_RC
19682
19683 # Whether or not to disallow shared libs when runtime libs are static
19684 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19685
19686 # Whether or not to optimize for fast installation.
19687 fast_install=$enable_fast_install
19688
19689 # The host system.
19690 host_alias=$host_alias
19691 host=$host
19692 host_os=$host_os
19693
19694 # The build system.
19695 build_alias=$build_alias
19696 build=$build
19697 build_os=$build_os
19698
19699 # An echo program that does not interpret backslashes.
19700 echo=$lt_echo
19701
19702 # The archiver.
19703 AR=$lt_AR
19704 AR_FLAGS=$lt_AR_FLAGS
19705
19706 # A C compiler.
19707 LTCC=$lt_LTCC
19708
19709 # LTCC compiler flags.
19710 LTCFLAGS=$lt_LTCFLAGS
19711
19712 # A language-specific compiler.
19713 CC=$lt_compiler_RC
19714
19715 # Is the compiler the GNU C compiler?
19716 with_gcc=$GCC_RC
19717
19718 # An ERE matcher.
19719 EGREP=$lt_EGREP
19720
19721 # The linker used to build libraries.
19722 LD=$lt_LD_RC
19723
19724 # Whether we need hard or soft links.
19725 LN_S=$lt_LN_S
19726
19727 # A BSD-compatible nm program.
19728 NM=$lt_NM
19729
19730 # A symbol stripping program
19731 STRIP=$lt_STRIP
19732
19733 # Used to examine libraries when file_magic_cmd begins "file"
19734 MAGIC_CMD=$MAGIC_CMD
19735
19736 # Used on cygwin: DLL creation program.
19737 DLLTOOL="$DLLTOOL"
19738
19739 # Used on cygwin: object dumper.
19740 OBJDUMP="$OBJDUMP"
19741
19742 # Used on cygwin: assembler.
19743 AS="$AS"
19744
19745 # The name of the directory that contains temporary libtool files.
19746 objdir=$objdir
19747
19748 # How to create reloadable object files.
19749 reload_flag=$lt_reload_flag
19750 reload_cmds=$lt_reload_cmds
19751
19752 # How to pass a linker flag through the compiler.
19753 wl=$lt_lt_prog_compiler_wl_RC
19754
19755 # Object file suffix (normally "o").
19756 objext="$ac_objext"
19757
19758 # Old archive suffix (normally "a").
19759 libext="$libext"
19760
19761 # Shared library suffix (normally ".so").
19762 shrext_cmds='$shrext_cmds'
19763
19764 # Executable file suffix (normally "").
19765 exeext="$exeext"
19766
19767 # Additional compiler flags for building library objects.
19768 pic_flag=$lt_lt_prog_compiler_pic_RC
19769 pic_mode=$pic_mode
19770
19771 # What is the maximum length of a command?
19772 max_cmd_len=$lt_cv_sys_max_cmd_len
19773
19774 # Does compiler simultaneously support -c and -o options?
19775 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19776
19777 # Must we lock files when doing compilation?
19778 need_locks=$lt_need_locks
19779
19780 # Do we need the lib prefix for modules?
19781 need_lib_prefix=$need_lib_prefix
19782
19783 # Do we need a version for libraries?
19784 need_version=$need_version
19785
19786 # Whether dlopen is supported.
19787 dlopen_support=$enable_dlopen
19788
19789 # Whether dlopen of programs is supported.
19790 dlopen_self=$enable_dlopen_self
19791
19792 # Whether dlopen of statically linked programs is supported.
19793 dlopen_self_static=$enable_dlopen_self_static
19794
19795 # Compiler flag to prevent dynamic linking.
19796 link_static_flag=$lt_lt_prog_compiler_static_RC
19797
19798 # Compiler flag to turn off builtin functions.
19799 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19800
19801 # Compiler flag to allow reflexive dlopens.
19802 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19803
19804 # Compiler flag to generate shared objects directly from archives.
19805 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19806
19807 # Compiler flag to generate thread-safe objects.
19808 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19809
19810 # Library versioning type.
19811 version_type=$version_type
19812
19813 # Format of library name prefix.
19814 libname_spec=$lt_libname_spec
19815
19816 # List of archive names. First name is the real one, the rest are links.
19817 # The last name is the one that the linker finds with -lNAME.
19818 library_names_spec=$lt_library_names_spec
19819
19820 # The coded name of the library, if different from the real name.
19821 soname_spec=$lt_soname_spec
19822
19823 # Commands used to build and install an old-style archive.
19824 RANLIB=$lt_RANLIB
19825 old_archive_cmds=$lt_old_archive_cmds_RC
19826 old_postinstall_cmds=$lt_old_postinstall_cmds
19827 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19828
19829 # Create an old-style archive from a shared archive.
19830 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19831
19832 # Create a temporary old-style archive to link instead of a shared archive.
19833 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19834
19835 # Commands used to build and install a shared archive.
19836 archive_cmds=$lt_archive_cmds_RC
19837 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19838 postinstall_cmds=$lt_postinstall_cmds
19839 postuninstall_cmds=$lt_postuninstall_cmds
19840
19841 # Commands used to build a loadable module (assumed same as above if empty)
19842 module_cmds=$lt_module_cmds_RC
19843 module_expsym_cmds=$lt_module_expsym_cmds_RC
19844
19845 # Commands to strip libraries.
19846 old_striplib=$lt_old_striplib
19847 striplib=$lt_striplib
19848
19849 # Dependencies to place before the objects being linked to create a
19850 # shared library.
19851 predep_objects=$lt_predep_objects_RC
19852
19853 # Dependencies to place after the objects being linked to create a
19854 # shared library.
19855 postdep_objects=$lt_postdep_objects_RC
19856
19857 # Dependencies to place before the objects being linked to create a
19858 # shared library.
19859 predeps=$lt_predeps_RC
19860
19861 # Dependencies to place after the objects being linked to create a
19862 # shared library.
19863 postdeps=$lt_postdeps_RC
19864
19865 # The directories searched by this compiler when creating a shared
19866 # library
19867 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19868
19869 # The library search path used internally by the compiler when linking
19870 # a shared library.
19871 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19872
19873 # Method to check whether dependent libraries are shared objects.
19874 deplibs_check_method=$lt_deplibs_check_method
19875
19876 # Command to use when deplibs_check_method == file_magic.
19877 file_magic_cmd=$lt_file_magic_cmd
19878
19879 # Flag that allows shared libraries with undefined symbols to be built.
19880 allow_undefined_flag=$lt_allow_undefined_flag_RC
19881
19882 # Flag that forces no undefined symbols.
19883 no_undefined_flag=$lt_no_undefined_flag_RC
19884
19885 # Commands used to finish a libtool library installation in a directory.
19886 finish_cmds=$lt_finish_cmds
19887
19888 # Same as above, but a single script fragment to be evaled but not shown.
19889 finish_eval=$lt_finish_eval
19890
19891 # Take the output of nm and produce a listing of raw symbols and C names.
19892 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19893
19894 # Transform the output of nm in a proper C declaration
19895 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19896
19897 # Transform the output of nm in a C name address pair
19898 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19899
19900 # This is the shared library runtime path variable.
19901 runpath_var=$runpath_var
19902
19903 # This is the shared library path variable.
19904 shlibpath_var=$shlibpath_var
19905
19906 # Is shlibpath searched before the hard-coded library search path?
19907 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19908
19909 # How to hardcode a shared library path into an executable.
19910 hardcode_action=$hardcode_action_RC
19911
19912 # Whether we should hardcode library paths into libraries.
19913 hardcode_into_libs=$hardcode_into_libs
19914
19915 # Flag to hardcode \$libdir into a binary during linking.
19916 # This must work even if \$libdir does not exist.
19917 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19918
19919 # If ld is used when linking, flag to hardcode \$libdir into
19920 # a binary during linking. This must work even if \$libdir does
19921 # not exist.
19922 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19923
19924 # Whether we need a single -rpath flag with a separated argument.
19925 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19926
19927 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19928 # resulting binary.
19929 hardcode_direct=$hardcode_direct_RC
19930
19931 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19932 # resulting binary.
19933 hardcode_minus_L=$hardcode_minus_L_RC
19934
19935 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19936 # the resulting binary.
19937 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19938
19939 # Set to yes if building a shared library automatically hardcodes DIR into the library
19940 # and all subsequent libraries and executables linked against it.
19941 hardcode_automatic=$hardcode_automatic_RC
19942
19943 # Variables whose values should be saved in libtool wrapper scripts and
19944 # restored at relink time.
19945 variables_saved_for_relink="$variables_saved_for_relink"
19946
19947 # Whether libtool must link a program against all its dependency libraries.
19948 link_all_deplibs=$link_all_deplibs_RC
19949
19950 # Compile-time system search path for libraries
19951 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19952
19953 # Run-time system search path for libraries
19954 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19955
19956 # Fix the shell variable \$srcfile for the compiler.
19957 fix_srcfile_path=$lt_fix_srcfile_path
19958
19959 # Set to yes if exported symbols are required.
19960 always_export_symbols=$always_export_symbols_RC
19961
19962 # The commands to list exported symbols.
19963 export_symbols_cmds=$lt_export_symbols_cmds_RC
19964
19965 # The commands to extract the exported symbol list from a shared archive.
19966 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19967
19968 # Symbols that should not be listed in the preloaded symbols.
19969 exclude_expsyms=$lt_exclude_expsyms_RC
19970
19971 # Symbols that must always be exported.
19972 include_expsyms=$lt_include_expsyms_RC
19973
19974 # ### END LIBTOOL TAG CONFIG: $tagname
19975
19976 __EOF__
19977
19978
19979 else
19980 # If there is no Makefile yet, we rely on a make rule to execute
19981 # `config.status --recheck' to rerun these tests and create the
19982 # libtool script then.
19983 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19984 if test -f "$ltmain_in"; then
19985 test -f Makefile && make "$ltmain"
19986 fi
19987 fi
19988
19989
19990 ac_ext=c
19991 ac_cpp='$CPP $CPPFLAGS'
19992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19995
19996 CC="$lt_save_CC"
19997
19998 ;;
19999
20000 *)
20001 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20002 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20003 { (exit 1); exit 1; }; }
20004 ;;
20005 esac
20006
20007 # Append the new tag name to the list of available tags.
20008 if test -n "$tagname" ; then
20009 available_tags="$available_tags $tagname"
20010 fi
20011 fi
20012 done
20013 IFS="$lt_save_ifs"
20014
20015 # Now substitute the updated list of available tags.
20016 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20017 mv "${ofile}T" "$ofile"
20018 chmod +x "$ofile"
20019 else
20020 rm -f "${ofile}T"
20021 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20022 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20023 { (exit 1); exit 1; }; }
20024 fi
20025 fi
20026
20027
20028
20029 # This can be used to rebuild libtool when needed
20030 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20031
20032 # Always use our own libtool.
20033 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20034
20035 # Prevent multiple expansion
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056 ac_ext=c
20057 ac_cpp='$CPP $CPPFLAGS'
20058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20061 if test -n "$ac_tool_prefix"; then
20062 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20063 set dummy ${ac_tool_prefix}gcc; ac_word=$2
20064 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20065 $as_echo_n "checking for $ac_word... " >&6; }
20066 if test "${ac_cv_prog_CC+set}" = set; then
20067 $as_echo_n "(cached) " >&6
20068 else
20069 if test -n "$CC"; then
20070 ac_cv_prog_CC="$CC" # Let the user override the test.
20071 else
20072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20073 for as_dir in $PATH
20074 do
20075 IFS=$as_save_IFS
20076 test -z "$as_dir" && as_dir=.
20077 for ac_exec_ext in '' $ac_executable_extensions; do
20078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20079 ac_cv_prog_CC="${ac_tool_prefix}gcc"
20080 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20081 break 2
20082 fi
20083 done
20084 done
20085 IFS=$as_save_IFS
20086
20087 fi
20088 fi
20089 CC=$ac_cv_prog_CC
20090 if test -n "$CC"; then
20091 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20092 $as_echo "$CC" >&6; }
20093 else
20094 { $as_echo "$as_me:$LINENO: result: no" >&5
20095 $as_echo "no" >&6; }
20096 fi
20097
20098
20099 fi
20100 if test -z "$ac_cv_prog_CC"; then
20101 ac_ct_CC=$CC
20102 # Extract the first word of "gcc", so it can be a program name with args.
20103 set dummy gcc; ac_word=$2
20104 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20105 $as_echo_n "checking for $ac_word... " >&6; }
20106 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20107 $as_echo_n "(cached) " >&6
20108 else
20109 if test -n "$ac_ct_CC"; then
20110 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20111 else
20112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20113 for as_dir in $PATH
20114 do
20115 IFS=$as_save_IFS
20116 test -z "$as_dir" && as_dir=.
20117 for ac_exec_ext in '' $ac_executable_extensions; do
20118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20119 ac_cv_prog_ac_ct_CC="gcc"
20120 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20121 break 2
20122 fi
20123 done
20124 done
20125 IFS=$as_save_IFS
20126
20127 fi
20128 fi
20129 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20130 if test -n "$ac_ct_CC"; then
20131 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20132 $as_echo "$ac_ct_CC" >&6; }
20133 else
20134 { $as_echo "$as_me:$LINENO: result: no" >&5
20135 $as_echo "no" >&6; }
20136 fi
20137
20138 if test "x$ac_ct_CC" = x; then
20139 CC=""
20140 else
20141 case $cross_compiling:$ac_tool_warned in
20142 yes:)
20143 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20145 ac_tool_warned=yes ;;
20146 esac
20147 CC=$ac_ct_CC
20148 fi
20149 else
20150 CC="$ac_cv_prog_CC"
20151 fi
20152
20153 if test -z "$CC"; then
20154 if test -n "$ac_tool_prefix"; then
20155 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20156 set dummy ${ac_tool_prefix}cc; ac_word=$2
20157 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20158 $as_echo_n "checking for $ac_word... " >&6; }
20159 if test "${ac_cv_prog_CC+set}" = set; then
20160 $as_echo_n "(cached) " >&6
20161 else
20162 if test -n "$CC"; then
20163 ac_cv_prog_CC="$CC" # Let the user override the test.
20164 else
20165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20166 for as_dir in $PATH
20167 do
20168 IFS=$as_save_IFS
20169 test -z "$as_dir" && as_dir=.
20170 for ac_exec_ext in '' $ac_executable_extensions; do
20171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20172 ac_cv_prog_CC="${ac_tool_prefix}cc"
20173 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20174 break 2
20175 fi
20176 done
20177 done
20178 IFS=$as_save_IFS
20179
20180 fi
20181 fi
20182 CC=$ac_cv_prog_CC
20183 if test -n "$CC"; then
20184 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20185 $as_echo "$CC" >&6; }
20186 else
20187 { $as_echo "$as_me:$LINENO: result: no" >&5
20188 $as_echo "no" >&6; }
20189 fi
20190
20191
20192 fi
20193 fi
20194 if test -z "$CC"; then
20195 # Extract the first word of "cc", so it can be a program name with args.
20196 set dummy cc; ac_word=$2
20197 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20198 $as_echo_n "checking for $ac_word... " >&6; }
20199 if test "${ac_cv_prog_CC+set}" = set; then
20200 $as_echo_n "(cached) " >&6
20201 else
20202 if test -n "$CC"; then
20203 ac_cv_prog_CC="$CC" # Let the user override the test.
20204 else
20205 ac_prog_rejected=no
20206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20207 for as_dir in $PATH
20208 do
20209 IFS=$as_save_IFS
20210 test -z "$as_dir" && as_dir=.
20211 for ac_exec_ext in '' $ac_executable_extensions; do
20212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20213 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20214 ac_prog_rejected=yes
20215 continue
20216 fi
20217 ac_cv_prog_CC="cc"
20218 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20219 break 2
20220 fi
20221 done
20222 done
20223 IFS=$as_save_IFS
20224
20225 if test $ac_prog_rejected = yes; then
20226 # We found a bogon in the path, so make sure we never use it.
20227 set dummy $ac_cv_prog_CC
20228 shift
20229 if test $# != 0; then
20230 # We chose a different compiler from the bogus one.
20231 # However, it has the same basename, so the bogon will be chosen
20232 # first if we set CC to just the basename; use the full file name.
20233 shift
20234 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20235 fi
20236 fi
20237 fi
20238 fi
20239 CC=$ac_cv_prog_CC
20240 if test -n "$CC"; then
20241 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20242 $as_echo "$CC" >&6; }
20243 else
20244 { $as_echo "$as_me:$LINENO: result: no" >&5
20245 $as_echo "no" >&6; }
20246 fi
20247
20248
20249 fi
20250 if test -z "$CC"; then
20251 if test -n "$ac_tool_prefix"; then
20252 for ac_prog in cl.exe
20253 do
20254 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20255 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20256 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20257 $as_echo_n "checking for $ac_word... " >&6; }
20258 if test "${ac_cv_prog_CC+set}" = set; then
20259 $as_echo_n "(cached) " >&6
20260 else
20261 if test -n "$CC"; then
20262 ac_cv_prog_CC="$CC" # Let the user override the test.
20263 else
20264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20265 for as_dir in $PATH
20266 do
20267 IFS=$as_save_IFS
20268 test -z "$as_dir" && as_dir=.
20269 for ac_exec_ext in '' $ac_executable_extensions; do
20270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20271 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20272 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20273 break 2
20274 fi
20275 done
20276 done
20277 IFS=$as_save_IFS
20278
20279 fi
20280 fi
20281 CC=$ac_cv_prog_CC
20282 if test -n "$CC"; then
20283 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20284 $as_echo "$CC" >&6; }
20285 else
20286 { $as_echo "$as_me:$LINENO: result: no" >&5
20287 $as_echo "no" >&6; }
20288 fi
20289
20290
20291 test -n "$CC" && break
20292 done
20293 fi
20294 if test -z "$CC"; then
20295 ac_ct_CC=$CC
20296 for ac_prog in cl.exe
20297 do
20298 # Extract the first word of "$ac_prog", so it can be a program name with args.
20299 set dummy $ac_prog; ac_word=$2
20300 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20301 $as_echo_n "checking for $ac_word... " >&6; }
20302 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20303 $as_echo_n "(cached) " >&6
20304 else
20305 if test -n "$ac_ct_CC"; then
20306 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20307 else
20308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20309 for as_dir in $PATH
20310 do
20311 IFS=$as_save_IFS
20312 test -z "$as_dir" && as_dir=.
20313 for ac_exec_ext in '' $ac_executable_extensions; do
20314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20315 ac_cv_prog_ac_ct_CC="$ac_prog"
20316 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20317 break 2
20318 fi
20319 done
20320 done
20321 IFS=$as_save_IFS
20322
20323 fi
20324 fi
20325 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20326 if test -n "$ac_ct_CC"; then
20327 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20328 $as_echo "$ac_ct_CC" >&6; }
20329 else
20330 { $as_echo "$as_me:$LINENO: result: no" >&5
20331 $as_echo "no" >&6; }
20332 fi
20333
20334
20335 test -n "$ac_ct_CC" && break
20336 done
20337
20338 if test "x$ac_ct_CC" = x; then
20339 CC=""
20340 else
20341 case $cross_compiling:$ac_tool_warned in
20342 yes:)
20343 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20345 ac_tool_warned=yes ;;
20346 esac
20347 CC=$ac_ct_CC
20348 fi
20349 fi
20350
20351 fi
20352
20353
20354 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20356 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20357 See \`config.log' for more details." >&5
20358 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20359 See \`config.log' for more details." >&2;}
20360 { (exit 1); exit 1; }; }; }
20361
20362 # Provide some information about the compiler.
20363 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20364 set X $ac_compile
20365 ac_compiler=$2
20366 { (ac_try="$ac_compiler --version >&5"
20367 case "(($ac_try" in
20368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20369 *) ac_try_echo=$ac_try;;
20370 esac
20371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20372 $as_echo "$ac_try_echo") >&5
20373 (eval "$ac_compiler --version >&5") 2>&5
20374 ac_status=$?
20375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }
20377 { (ac_try="$ac_compiler -v >&5"
20378 case "(($ac_try" in
20379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20380 *) ac_try_echo=$ac_try;;
20381 esac
20382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20383 $as_echo "$ac_try_echo") >&5
20384 (eval "$ac_compiler -v >&5") 2>&5
20385 ac_status=$?
20386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); }
20388 { (ac_try="$ac_compiler -V >&5"
20389 case "(($ac_try" in
20390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391 *) ac_try_echo=$ac_try;;
20392 esac
20393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20394 $as_echo "$ac_try_echo") >&5
20395 (eval "$ac_compiler -V >&5") 2>&5
20396 ac_status=$?
20397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); }
20399
20400 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20401 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20402 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20403 $as_echo_n "(cached) " >&6
20404 else
20405 cat >conftest.$ac_ext <<_ACEOF
20406 /* confdefs.h. */
20407 _ACEOF
20408 cat confdefs.h >>conftest.$ac_ext
20409 cat >>conftest.$ac_ext <<_ACEOF
20410 /* end confdefs.h. */
20411
20412 int
20413 main ()
20414 {
20415 #ifndef __GNUC__
20416 choke me
20417 #endif
20418
20419 ;
20420 return 0;
20421 }
20422 _ACEOF
20423 rm -f conftest.$ac_objext
20424 if { (ac_try="$ac_compile"
20425 case "(($ac_try" in
20426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427 *) ac_try_echo=$ac_try;;
20428 esac
20429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20430 $as_echo "$ac_try_echo") >&5
20431 (eval "$ac_compile") 2>conftest.er1
20432 ac_status=$?
20433 grep -v '^ *+' conftest.er1 >conftest.err
20434 rm -f conftest.er1
20435 cat conftest.err >&5
20436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); } && {
20438 test -z "$ac_c_werror_flag" ||
20439 test ! -s conftest.err
20440 } && test -s conftest.$ac_objext; then
20441 ac_compiler_gnu=yes
20442 else
20443 $as_echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20445
20446 ac_compiler_gnu=no
20447 fi
20448
20449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20450 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20451
20452 fi
20453 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20454 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
20455 if test $ac_compiler_gnu = yes; then
20456 GCC=yes
20457 else
20458 GCC=
20459 fi
20460 ac_test_CFLAGS=${CFLAGS+set}
20461 ac_save_CFLAGS=$CFLAGS
20462 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20463 $as_echo_n "checking whether $CC accepts -g... " >&6; }
20464 if test "${ac_cv_prog_cc_g+set}" = set; then
20465 $as_echo_n "(cached) " >&6
20466 else
20467 ac_save_c_werror_flag=$ac_c_werror_flag
20468 ac_c_werror_flag=yes
20469 ac_cv_prog_cc_g=no
20470 CFLAGS="-g"
20471 cat >conftest.$ac_ext <<_ACEOF
20472 /* confdefs.h. */
20473 _ACEOF
20474 cat confdefs.h >>conftest.$ac_ext
20475 cat >>conftest.$ac_ext <<_ACEOF
20476 /* end confdefs.h. */
20477
20478 int
20479 main ()
20480 {
20481
20482 ;
20483 return 0;
20484 }
20485 _ACEOF
20486 rm -f conftest.$ac_objext
20487 if { (ac_try="$ac_compile"
20488 case "(($ac_try" in
20489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490 *) ac_try_echo=$ac_try;;
20491 esac
20492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20493 $as_echo "$ac_try_echo") >&5
20494 (eval "$ac_compile") 2>conftest.er1
20495 ac_status=$?
20496 grep -v '^ *+' conftest.er1 >conftest.err
20497 rm -f conftest.er1
20498 cat conftest.err >&5
20499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); } && {
20501 test -z "$ac_c_werror_flag" ||
20502 test ! -s conftest.err
20503 } && test -s conftest.$ac_objext; then
20504 ac_cv_prog_cc_g=yes
20505 else
20506 $as_echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20508
20509 CFLAGS=""
20510 cat >conftest.$ac_ext <<_ACEOF
20511 /* confdefs.h. */
20512 _ACEOF
20513 cat confdefs.h >>conftest.$ac_ext
20514 cat >>conftest.$ac_ext <<_ACEOF
20515 /* end confdefs.h. */
20516
20517 int
20518 main ()
20519 {
20520
20521 ;
20522 return 0;
20523 }
20524 _ACEOF
20525 rm -f conftest.$ac_objext
20526 if { (ac_try="$ac_compile"
20527 case "(($ac_try" in
20528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529 *) ac_try_echo=$ac_try;;
20530 esac
20531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20532 $as_echo "$ac_try_echo") >&5
20533 (eval "$ac_compile") 2>conftest.er1
20534 ac_status=$?
20535 grep -v '^ *+' conftest.er1 >conftest.err
20536 rm -f conftest.er1
20537 cat conftest.err >&5
20538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); } && {
20540 test -z "$ac_c_werror_flag" ||
20541 test ! -s conftest.err
20542 } && test -s conftest.$ac_objext; then
20543 :
20544 else
20545 $as_echo "$as_me: failed program was:" >&5
20546 sed 's/^/| /' conftest.$ac_ext >&5
20547
20548 ac_c_werror_flag=$ac_save_c_werror_flag
20549 CFLAGS="-g"
20550 cat >conftest.$ac_ext <<_ACEOF
20551 /* confdefs.h. */
20552 _ACEOF
20553 cat confdefs.h >>conftest.$ac_ext
20554 cat >>conftest.$ac_ext <<_ACEOF
20555 /* end confdefs.h. */
20556
20557 int
20558 main ()
20559 {
20560
20561 ;
20562 return 0;
20563 }
20564 _ACEOF
20565 rm -f conftest.$ac_objext
20566 if { (ac_try="$ac_compile"
20567 case "(($ac_try" in
20568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20569 *) ac_try_echo=$ac_try;;
20570 esac
20571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20572 $as_echo "$ac_try_echo") >&5
20573 (eval "$ac_compile") 2>conftest.er1
20574 ac_status=$?
20575 grep -v '^ *+' conftest.er1 >conftest.err
20576 rm -f conftest.er1
20577 cat conftest.err >&5
20578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); } && {
20580 test -z "$ac_c_werror_flag" ||
20581 test ! -s conftest.err
20582 } && test -s conftest.$ac_objext; then
20583 ac_cv_prog_cc_g=yes
20584 else
20585 $as_echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20587
20588
20589 fi
20590
20591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20592 fi
20593
20594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20595 fi
20596
20597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20598 ac_c_werror_flag=$ac_save_c_werror_flag
20599 fi
20600 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20601 $as_echo "$ac_cv_prog_cc_g" >&6; }
20602 if test "$ac_test_CFLAGS" = set; then
20603 CFLAGS=$ac_save_CFLAGS
20604 elif test $ac_cv_prog_cc_g = yes; then
20605 if test "$GCC" = yes; then
20606 CFLAGS="-g -O2"
20607 else
20608 CFLAGS="-g"
20609 fi
20610 else
20611 if test "$GCC" = yes; then
20612 CFLAGS="-O2"
20613 else
20614 CFLAGS=
20615 fi
20616 fi
20617 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20618 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20619 if test "${ac_cv_prog_cc_c89+set}" = set; then
20620 $as_echo_n "(cached) " >&6
20621 else
20622 ac_cv_prog_cc_c89=no
20623 ac_save_CC=$CC
20624 cat >conftest.$ac_ext <<_ACEOF
20625 /* confdefs.h. */
20626 _ACEOF
20627 cat confdefs.h >>conftest.$ac_ext
20628 cat >>conftest.$ac_ext <<_ACEOF
20629 /* end confdefs.h. */
20630 #include <stdarg.h>
20631 #include <stdio.h>
20632 #include <sys/types.h>
20633 #include <sys/stat.h>
20634 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20635 struct buf { int x; };
20636 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20637 static char *e (p, i)
20638 char **p;
20639 int i;
20640 {
20641 return p[i];
20642 }
20643 static char *f (char * (*g) (char **, int), char **p, ...)
20644 {
20645 char *s;
20646 va_list v;
20647 va_start (v,p);
20648 s = g (p, va_arg (v,int));
20649 va_end (v);
20650 return s;
20651 }
20652
20653 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20654 function prototypes and stuff, but not '\xHH' hex character constants.
20655 These don't provoke an error unfortunately, instead are silently treated
20656 as 'x'. The following induces an error, until -std is added to get
20657 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20658 array size at least. It's necessary to write '\x00'==0 to get something
20659 that's true only with -std. */
20660 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20661
20662 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20663 inside strings and character constants. */
20664 #define FOO(x) 'x'
20665 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20666
20667 int test (int i, double x);
20668 struct s1 {int (*f) (int a);};
20669 struct s2 {int (*f) (double a);};
20670 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20671 int argc;
20672 char **argv;
20673 int
20674 main ()
20675 {
20676 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20677 ;
20678 return 0;
20679 }
20680 _ACEOF
20681 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20682 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20683 do
20684 CC="$ac_save_CC $ac_arg"
20685 rm -f conftest.$ac_objext
20686 if { (ac_try="$ac_compile"
20687 case "(($ac_try" in
20688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20689 *) ac_try_echo=$ac_try;;
20690 esac
20691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20692 $as_echo "$ac_try_echo") >&5
20693 (eval "$ac_compile") 2>conftest.er1
20694 ac_status=$?
20695 grep -v '^ *+' conftest.er1 >conftest.err
20696 rm -f conftest.er1
20697 cat conftest.err >&5
20698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); } && {
20700 test -z "$ac_c_werror_flag" ||
20701 test ! -s conftest.err
20702 } && test -s conftest.$ac_objext; then
20703 ac_cv_prog_cc_c89=$ac_arg
20704 else
20705 $as_echo "$as_me: failed program was:" >&5
20706 sed 's/^/| /' conftest.$ac_ext >&5
20707
20708
20709 fi
20710
20711 rm -f core conftest.err conftest.$ac_objext
20712 test "x$ac_cv_prog_cc_c89" != "xno" && break
20713 done
20714 rm -f conftest.$ac_ext
20715 CC=$ac_save_CC
20716
20717 fi
20718 # AC_CACHE_VAL
20719 case "x$ac_cv_prog_cc_c89" in
20720 x)
20721 { $as_echo "$as_me:$LINENO: result: none needed" >&5
20722 $as_echo "none needed" >&6; } ;;
20723 xno)
20724 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20725 $as_echo "unsupported" >&6; } ;;
20726 *)
20727 CC="$CC $ac_cv_prog_cc_c89"
20728 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20729 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20730 esac
20731
20732
20733 ac_ext=c
20734 ac_cpp='$CPP $CPPFLAGS'
20735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20738
20739 depcc="$CC" am_compiler_list=
20740
20741 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20742 $as_echo_n "checking dependency style of $depcc... " >&6; }
20743 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20744 $as_echo_n "(cached) " >&6
20745 else
20746 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20747 # We make a subdir and do the tests there. Otherwise we can end up
20748 # making bogus files that we don't know about and never remove. For
20749 # instance it was reported that on HP-UX the gcc test will end up
20750 # making a dummy file named `D' -- because `-MD' means `put the output
20751 # in D'.
20752 mkdir conftest.dir
20753 # Copy depcomp to subdir because otherwise we won't find it if we're
20754 # using a relative directory.
20755 cp "$am_depcomp" conftest.dir
20756 cd conftest.dir
20757 # We will build objects and dependencies in a subdirectory because
20758 # it helps to detect inapplicable dependency modes. For instance
20759 # both Tru64's cc and ICC support -MD to output dependencies as a
20760 # side effect of compilation, but ICC will put the dependencies in
20761 # the current directory while Tru64 will put them in the object
20762 # directory.
20763 mkdir sub
20764
20765 am_cv_CC_dependencies_compiler_type=none
20766 if test "$am_compiler_list" = ""; then
20767 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20768 fi
20769 am__universal=false
20770 case " $depcc " in #(
20771 *\ -arch\ *\ -arch\ *) am__universal=true ;;
20772 esac
20773
20774 for depmode in $am_compiler_list; do
20775 # Setup a source with many dependencies, because some compilers
20776 # like to wrap large dependency lists on column 80 (with \), and
20777 # we should not choose a depcomp mode which is confused by this.
20778 #
20779 # We need to recreate these files for each test, as the compiler may
20780 # overwrite some of them when testing with obscure command lines.
20781 # This happens at least with the AIX C compiler.
20782 : > sub/conftest.c
20783 for i in 1 2 3 4 5 6; do
20784 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20785 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20786 # Solaris 8's {/usr,}/bin/sh.
20787 touch sub/conftst$i.h
20788 done
20789 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20790
20791 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20792 # mode. It turns out that the SunPro C++ compiler does not properly
20793 # handle `-M -o', and we need to detect this. Also, some Intel
20794 # versions had trouble with output in subdirs
20795 am__obj=sub/conftest.${OBJEXT-o}
20796 am__minus_obj="-o $am__obj"
20797 case $depmode in
20798 gcc)
20799 # This depmode causes a compiler race in universal mode.
20800 test "$am__universal" = false || continue
20801 ;;
20802 nosideeffect)
20803 # after this tag, mechanisms are not by side-effect, so they'll
20804 # only be used when explicitly requested
20805 if test "x$enable_dependency_tracking" = xyes; then
20806 continue
20807 else
20808 break
20809 fi
20810 ;;
20811 msvisualcpp | msvcmsys)
20812 # This compiler won't grok `-c -o', but also, the minuso test has
20813 # not run yet. These depmodes are late enough in the game, and
20814 # so weak that their functioning should not be impacted.
20815 am__obj=conftest.${OBJEXT-o}
20816 am__minus_obj=
20817 ;;
20818 none) break ;;
20819 esac
20820 if depmode=$depmode \
20821 source=sub/conftest.c object=$am__obj \
20822 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20823 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
20824 >/dev/null 2>conftest.err &&
20825 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20826 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20827 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
20828 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20829 # icc doesn't choke on unknown options, it will just issue warnings
20830 # or remarks (even with -Werror). So we grep stderr for any message
20831 # that says an option was ignored or not supported.
20832 # When given -MP, icc 7.0 and 7.1 complain thusly:
20833 # icc: Command line warning: ignoring option '-M'; no argument required
20834 # The diagnosis changed in icc 8.0:
20835 # icc: Command line remark: option '-MP' not supported
20836 if (grep 'ignoring option' conftest.err ||
20837 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20838 am_cv_CC_dependencies_compiler_type=$depmode
20839 break
20840 fi
20841 fi
20842 done
20843
20844 cd ..
20845 rm -rf conftest.dir
20846 else
20847 am_cv_CC_dependencies_compiler_type=none
20848 fi
20849
20850 fi
20851 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20852 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20853 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20854
20855 if
20856 test "x$enable_dependency_tracking" != xno \
20857 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20858 am__fastdepCC_TRUE=
20859 am__fastdepCC_FALSE='#'
20860 else
20861 am__fastdepCC_TRUE='#'
20862 am__fastdepCC_FALSE=
20863 fi
20864
20865
20866 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
20867 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
20868 if test "${lt_cv_path_SED+set}" = set; then
20869 $as_echo_n "(cached) " >&6
20870 else
20871 # Loop through the user's path and test for sed and gsed.
20872 # Then use that list of sed's as ones to test for truncation.
20873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20874 for as_dir in $PATH
20875 do
20876 IFS=$as_save_IFS
20877 test -z "$as_dir" && as_dir=.
20878 for lt_ac_prog in sed gsed; do
20879 for ac_exec_ext in '' $ac_executable_extensions; do
20880 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
20881 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
20882 fi
20883 done
20884 done
20885 done
20886 IFS=$as_save_IFS
20887 lt_ac_max=0
20888 lt_ac_count=0
20889 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
20890 # along with /bin/sed that truncates output.
20891 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
20892 test ! -f $lt_ac_sed && continue
20893 cat /dev/null > conftest.in
20894 lt_ac_count=0
20895 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
20896 # Check for GNU sed and select it if it is found.
20897 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
20898 lt_cv_path_SED=$lt_ac_sed
20899 break
20900 fi
20901 while true; do
20902 cat conftest.in conftest.in >conftest.tmp
20903 mv conftest.tmp conftest.in
20904 cp conftest.in conftest.nl
20905 echo >>conftest.nl
20906 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
20907 cmp -s conftest.out conftest.nl || break
20908 # 10000 chars as input seems more than enough
20909 test $lt_ac_count -gt 10 && break
20910 lt_ac_count=`expr $lt_ac_count + 1`
20911 if test $lt_ac_count -gt $lt_ac_max; then
20912 lt_ac_max=$lt_ac_count
20913 lt_cv_path_SED=$lt_ac_sed
20914 fi
20915 done
20916 done
20917
20918 fi
20919
20920 SED=$lt_cv_path_SED
20921
20922 { $as_echo "$as_me:$LINENO: result: $SED" >&5
20923 $as_echo "$SED" >&6; }
20924
20925
20926 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
20927 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
20928 if test "${ac_cv_prog_cc_c99+set}" = set; then
20929 $as_echo_n "(cached) " >&6
20930 else
20931 ac_cv_prog_cc_c99=no
20932 ac_save_CC=$CC
20933 cat >conftest.$ac_ext <<_ACEOF
20934 /* confdefs.h. */
20935 _ACEOF
20936 cat confdefs.h >>conftest.$ac_ext
20937 cat >>conftest.$ac_ext <<_ACEOF
20938 /* end confdefs.h. */
20939 #include <stdarg.h>
20940 #include <stdbool.h>
20941 #include <stdlib.h>
20942 #include <wchar.h>
20943 #include <stdio.h>
20944
20945 // Check varargs macros. These examples are taken from C99 6.10.3.5.
20946 #define debug(...) fprintf (stderr, __VA_ARGS__)
20947 #define showlist(...) puts (#__VA_ARGS__)
20948 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
20949 static void
20950 test_varargs_macros (void)
20951 {
20952 int x = 1234;
20953 int y = 5678;
20954 debug ("Flag");
20955 debug ("X = %d\n", x);
20956 showlist (The first, second, and third items.);
20957 report (x>y, "x is %d but y is %d", x, y);
20958 }
20959
20960 // Check long long types.
20961 #define BIG64 18446744073709551615ull
20962 #define BIG32 4294967295ul
20963 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
20964 #if !BIG_OK
20965 your preprocessor is broken;
20966 #endif
20967 #if BIG_OK
20968 #else
20969 your preprocessor is broken;
20970 #endif
20971 static long long int bignum = -9223372036854775807LL;
20972 static unsigned long long int ubignum = BIG64;
20973
20974 struct incomplete_array
20975 {
20976 int datasize;
20977 double data[];
20978 };
20979
20980 struct named_init {
20981 int number;
20982 const wchar_t *name;
20983 double average;
20984 };
20985
20986 typedef const char *ccp;
20987
20988 static inline int
20989 test_restrict (ccp restrict text)
20990 {
20991 // See if C++-style comments work.
20992 // Iterate through items via the restricted pointer.
20993 // Also check for declarations in for loops.
20994 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
20995 continue;
20996 return 0;
20997 }
20998
20999 // Check varargs and va_copy.
21000 static void
21001 test_varargs (const char *format, ...)
21002 {
21003 va_list args;
21004 va_start (args, format);
21005 va_list args_copy;
21006 va_copy (args_copy, args);
21007
21008 const char *str;
21009 int number;
21010 float fnumber;
21011
21012 while (*format)
21013 {
21014 switch (*format++)
21015 {
21016 case 's': // string
21017 str = va_arg (args_copy, const char *);
21018 break;
21019 case 'd': // int
21020 number = va_arg (args_copy, int);
21021 break;
21022 case 'f': // float
21023 fnumber = va_arg (args_copy, double);
21024 break;
21025 default:
21026 break;
21027 }
21028 }
21029 va_end (args_copy);
21030 va_end (args);
21031 }
21032
21033 int
21034 main ()
21035 {
21036
21037 // Check bool.
21038 _Bool success = false;
21039
21040 // Check restrict.
21041 if (test_restrict ("String literal") == 0)
21042 success = true;
21043 char *restrict newvar = "Another string";
21044
21045 // Check varargs.
21046 test_varargs ("s, d' f .", "string", 65, 34.234);
21047 test_varargs_macros ();
21048
21049 // Check flexible array members.
21050 struct incomplete_array *ia =
21051 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
21052 ia->datasize = 10;
21053 for (int i = 0; i < ia->datasize; ++i)
21054 ia->data[i] = i * 1.234;
21055
21056 // Check named initializers.
21057 struct named_init ni = {
21058 .number = 34,
21059 .name = L"Test wide string",
21060 .average = 543.34343,
21061 };
21062
21063 ni.number = 58;
21064
21065 int dynamic_array[ni.number];
21066 dynamic_array[ni.number - 1] = 543;
21067
21068 // work around unused variable warnings
21069 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
21070 || dynamic_array[ni.number - 1] != 543);
21071
21072 ;
21073 return 0;
21074 }
21075 _ACEOF
21076 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
21077 do
21078 CC="$ac_save_CC $ac_arg"
21079 rm -f conftest.$ac_objext
21080 if { (ac_try="$ac_compile"
21081 case "(($ac_try" in
21082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21083 *) ac_try_echo=$ac_try;;
21084 esac
21085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21086 $as_echo "$ac_try_echo") >&5
21087 (eval "$ac_compile") 2>conftest.er1
21088 ac_status=$?
21089 grep -v '^ *+' conftest.er1 >conftest.err
21090 rm -f conftest.er1
21091 cat conftest.err >&5
21092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); } && {
21094 test -z "$ac_c_werror_flag" ||
21095 test ! -s conftest.err
21096 } && test -s conftest.$ac_objext; then
21097 ac_cv_prog_cc_c99=$ac_arg
21098 else
21099 $as_echo "$as_me: failed program was:" >&5
21100 sed 's/^/| /' conftest.$ac_ext >&5
21101
21102
21103 fi
21104
21105 rm -f core conftest.err conftest.$ac_objext
21106 test "x$ac_cv_prog_cc_c99" != "xno" && break
21107 done
21108 rm -f conftest.$ac_ext
21109 CC=$ac_save_CC
21110
21111 fi
21112 # AC_CACHE_VAL
21113 case "x$ac_cv_prog_cc_c99" in
21114 x)
21115 { $as_echo "$as_me:$LINENO: result: none needed" >&5
21116 $as_echo "none needed" >&6; } ;;
21117 xno)
21118 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
21119 $as_echo "unsupported" >&6; } ;;
21120 *)
21121 CC="$CC $ac_cv_prog_cc_c99"
21122 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
21123 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
21124 esac
21125
21126
21127
21128
21129
21130
21131 if test "x$GCC" = xyes ; then
21132 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
21133 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
21134 -Wbad-function-cast"
21135 case `$CC -dumpversion` in
21136 3.4.* | 4.*)
21137 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
21138 ;;
21139 esac
21140 else
21141 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
21142 $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
21143 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
21144 $as_echo_n "(cached) " >&6
21145 else
21146 cat >conftest.$ac_ext <<_ACEOF
21147 /* confdefs.h. */
21148 _ACEOF
21149 cat confdefs.h >>conftest.$ac_ext
21150 cat >>conftest.$ac_ext <<_ACEOF
21151 /* end confdefs.h. */
21152 $ac_includes_default
21153 int
21154 main ()
21155 {
21156 #ifndef __SUNPRO_C
21157 (void) __SUNPRO_C;
21158 #endif
21159
21160 ;
21161 return 0;
21162 }
21163 _ACEOF
21164 rm -f conftest.$ac_objext
21165 if { (ac_try="$ac_compile"
21166 case "(($ac_try" in
21167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21168 *) ac_try_echo=$ac_try;;
21169 esac
21170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21171 $as_echo "$ac_try_echo") >&5
21172 (eval "$ac_compile") 2>conftest.er1
21173 ac_status=$?
21174 grep -v '^ *+' conftest.er1 >conftest.err
21175 rm -f conftest.er1
21176 cat conftest.err >&5
21177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); } && {
21179 test -z "$ac_c_werror_flag" ||
21180 test ! -s conftest.err
21181 } && test -s conftest.$ac_objext; then
21182 ac_cv_have_decl___SUNPRO_C=yes
21183 else
21184 $as_echo "$as_me: failed program was:" >&5
21185 sed 's/^/| /' conftest.$ac_ext >&5
21186
21187 ac_cv_have_decl___SUNPRO_C=no
21188 fi
21189
21190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21191 fi
21192 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
21193 $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
21194 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
21195 SUNCC="yes"
21196 else
21197 SUNCC="no"
21198 fi
21199
21200 if test "x$SUNCC" = "xyes"; then
21201 CWARNFLAGS="-v"
21202 fi
21203 fi
21204
21205 # Check whether --enable-silent-rules was given.
21206 if test "${enable_silent_rules+set}" = set; then
21207 enableval=$enable_silent_rules;
21208 fi
21209
21210 case $enable_silent_rules in
21211 yes) AM_DEFAULT_VERBOSITY=0;;
21212 no) AM_DEFAULT_VERBOSITY=1;;
21213 *) AM_DEFAULT_VERBOSITY=0;;
21214 esac
21215 AM_BACKSLASH='\'
21216
21217
21218
21219
21220
21221
21222
21223 # Check whether --enable-strict-compilation was given.
21224 if test "${enable_strict_compilation+set}" = set; then
21225 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
21226 else
21227 STRICT_COMPILE=no
21228 fi
21229
21230 if test "x$STRICT_COMPILE" = "xyes"; then
21231 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
21232 $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
21233 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
21234 $as_echo_n "(cached) " >&6
21235 else
21236 cat >conftest.$ac_ext <<_ACEOF
21237 /* confdefs.h. */
21238 _ACEOF
21239 cat confdefs.h >>conftest.$ac_ext
21240 cat >>conftest.$ac_ext <<_ACEOF
21241 /* end confdefs.h. */
21242 $ac_includes_default
21243 int
21244 main ()
21245 {
21246 #ifndef __SUNPRO_C
21247 (void) __SUNPRO_C;
21248 #endif
21249
21250 ;
21251 return 0;
21252 }
21253 _ACEOF
21254 rm -f conftest.$ac_objext
21255 if { (ac_try="$ac_compile"
21256 case "(($ac_try" in
21257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21258 *) ac_try_echo=$ac_try;;
21259 esac
21260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21261 $as_echo "$ac_try_echo") >&5
21262 (eval "$ac_compile") 2>conftest.er1
21263 ac_status=$?
21264 grep -v '^ *+' conftest.er1 >conftest.err
21265 rm -f conftest.er1
21266 cat conftest.err >&5
21267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); } && {
21269 test -z "$ac_c_werror_flag" ||
21270 test ! -s conftest.err
21271 } && test -s conftest.$ac_objext; then
21272 ac_cv_have_decl___SUNPRO_C=yes
21273 else
21274 $as_echo "$as_me: failed program was:" >&5
21275 sed 's/^/| /' conftest.$ac_ext >&5
21276
21277 ac_cv_have_decl___SUNPRO_C=no
21278 fi
21279
21280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21281 fi
21282 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
21283 $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
21284 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
21285 SUNCC="yes"
21286 else
21287 SUNCC="no"
21288 fi
21289
21290 { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
21291 $as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
21292 if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
21293 $as_echo_n "(cached) " >&6
21294 else
21295 cat >conftest.$ac_ext <<_ACEOF
21296 /* confdefs.h. */
21297 _ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h. */
21301 $ac_includes_default
21302 int
21303 main ()
21304 {
21305 #ifndef __INTEL_COMPILER
21306 (void) __INTEL_COMPILER;
21307 #endif
21308
21309 ;
21310 return 0;
21311 }
21312 _ACEOF
21313 rm -f conftest.$ac_objext
21314 if { (ac_try="$ac_compile"
21315 case "(($ac_try" in
21316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21317 *) ac_try_echo=$ac_try;;
21318 esac
21319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21320 $as_echo "$ac_try_echo") >&5
21321 (eval "$ac_compile") 2>conftest.er1
21322 ac_status=$?
21323 grep -v '^ *+' conftest.er1 >conftest.err
21324 rm -f conftest.er1
21325 cat conftest.err >&5
21326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); } && {
21328 test -z "$ac_c_werror_flag" ||
21329 test ! -s conftest.err
21330 } && test -s conftest.$ac_objext; then
21331 ac_cv_have_decl___INTEL_COMPILER=yes
21332 else
21333 $as_echo "$as_me: failed program was:" >&5
21334 sed 's/^/| /' conftest.$ac_ext >&5
21335
21336 ac_cv_have_decl___INTEL_COMPILER=no
21337 fi
21338
21339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21340 fi
21341 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
21342 $as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
21343 if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
21344 INTELCC="yes"
21345 else
21346 INTELCC="no"
21347 fi
21348
21349 if test "x$GCC" = xyes ; then
21350 STRICT_CFLAGS="-pedantic -Werror"
21351 elif test "x$SUNCC" = "xyes"; then
21352 STRICT_CFLAGS="-errwarn"
21353 elif test "x$INTELCC" = "xyes"; then
21354 STRICT_CFLAGS="-Werror"
21355 fi
21356 fi
21357 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
21358
21359
21360
21361
21362 # Check whether --with-release-version was given.
21363 if test "${with_release_version+set}" = set; then
21364 withval=$with_release_version; RELEASE_VERSION="$withval"
21365 else
21366 RELEASE_VERSION=""
21367 fi
21368
21369 if test "x$RELEASE_VERSION" != "x"; then
21370 PACKAGE="$PACKAGE-$RELEASE_VERSION"
21371 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
21372 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
21373 $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
21374 fi
21375
21376 cat >>confdefs.h <<_ACEOF
21377 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
21378 _ACEOF
21379
21380 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
21381 if test "x$PVM" = "x"; then
21382 PVM="0"
21383 fi
21384
21385 cat >>confdefs.h <<_ACEOF
21386 #define PACKAGE_VERSION_MINOR $PVM
21387 _ACEOF
21388
21389 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
21390 if test "x$PVP" = "x"; then
21391 PVP="0"
21392 fi
21393
21394 cat >>confdefs.h <<_ACEOF
21395 #define PACKAGE_VERSION_PATCHLEVEL $PVP
21396 _ACEOF
21397
21398
21399
21400 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
21401 mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
21402 echo 'git directory not found: installing possibly empty changelog.' >&2)"
21403
21404 distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
21405
21406
21407
21408
21409
21410 if test x$APP_MAN_SUFFIX = x ; then
21411 APP_MAN_SUFFIX=1
21412 fi
21413 if test x$APP_MAN_DIR = x ; then
21414 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
21415 fi
21416
21417 if test x$LIB_MAN_SUFFIX = x ; then
21418 LIB_MAN_SUFFIX=3
21419 fi
21420 if test x$LIB_MAN_DIR = x ; then
21421 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
21422 fi
21423
21424 if test x$FILE_MAN_SUFFIX = x ; then
21425 case $host_os in
21426 solaris*) FILE_MAN_SUFFIX=4 ;;
21427 *) FILE_MAN_SUFFIX=5 ;;
21428 esac
21429 fi
21430 if test x$FILE_MAN_DIR = x ; then
21431 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
21432 fi
21433
21434 if test x$MISC_MAN_SUFFIX = x ; then
21435 case $host_os in
21436 solaris*) MISC_MAN_SUFFIX=5 ;;
21437 *) MISC_MAN_SUFFIX=7 ;;
21438 esac
21439 fi
21440 if test x$MISC_MAN_DIR = x ; then
21441 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
21442 fi
21443
21444 if test x$DRIVER_MAN_SUFFIX = x ; then
21445 case $host_os in
21446 solaris*) DRIVER_MAN_SUFFIX=7 ;;
21447 *) DRIVER_MAN_SUFFIX=4 ;;
21448 esac
21449 fi
21450 if test x$DRIVER_MAN_DIR = x ; then
21451 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
21452 fi
21453
21454 if test x$ADMIN_MAN_SUFFIX = x ; then
21455 case $host_os in
21456 solaris*) ADMIN_MAN_SUFFIX=1m ;;
21457 *) ADMIN_MAN_SUFFIX=8 ;;
21458 esac
21459 fi
21460 if test x$ADMIN_MAN_DIR = x ; then
21461 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
21462 fi
21463
21464
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480 # Checks for pkg-config packages
21481
21482
21483 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21484 if test -n "$ac_tool_prefix"; then
21485 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21486 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21487 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21488 $as_echo_n "checking for $ac_word... " >&6; }
21489 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21490 $as_echo_n "(cached) " >&6
21491 else
21492 case $PKG_CONFIG in
21493 [\\/]* | ?:[\\/]*)
21494 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21495 ;;
21496 *)
21497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21498 for as_dir in $PATH
21499 do
21500 IFS=$as_save_IFS
21501 test -z "$as_dir" && as_dir=.
21502 for ac_exec_ext in '' $ac_executable_extensions; do
21503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21504 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21505 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21506 break 2
21507 fi
21508 done
21509 done
21510 IFS=$as_save_IFS
21511
21512 ;;
21513 esac
21514 fi
21515 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21516 if test -n "$PKG_CONFIG"; then
21517 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21518 $as_echo "$PKG_CONFIG" >&6; }
21519 else
21520 { $as_echo "$as_me:$LINENO: result: no" >&5
21521 $as_echo "no" >&6; }
21522 fi
21523
21524
21525 fi
21526 if test -z "$ac_cv_path_PKG_CONFIG"; then
21527 ac_pt_PKG_CONFIG=$PKG_CONFIG
21528 # Extract the first word of "pkg-config", so it can be a program name with args.
21529 set dummy pkg-config; ac_word=$2
21530 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21531 $as_echo_n "checking for $ac_word... " >&6; }
21532 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21533 $as_echo_n "(cached) " >&6
21534 else
21535 case $ac_pt_PKG_CONFIG in
21536 [\\/]* | ?:[\\/]*)
21537 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21538 ;;
21539 *)
21540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21541 for as_dir in $PATH
21542 do
21543 IFS=$as_save_IFS
21544 test -z "$as_dir" && as_dir=.
21545 for ac_exec_ext in '' $ac_executable_extensions; do
21546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21547 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21549 break 2
21550 fi
21551 done
21552 done
21553 IFS=$as_save_IFS
21554
21555 ;;
21556 esac
21557 fi
21558 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21559 if test -n "$ac_pt_PKG_CONFIG"; then
21560 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21561 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
21562 else
21563 { $as_echo "$as_me:$LINENO: result: no" >&5
21564 $as_echo "no" >&6; }
21565 fi
21566
21567 if test "x$ac_pt_PKG_CONFIG" = x; then
21568 PKG_CONFIG=""
21569 else
21570 case $cross_compiling:$ac_tool_warned in
21571 yes:)
21572 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21574 ac_tool_warned=yes ;;
21575 esac
21576 PKG_CONFIG=$ac_pt_PKG_CONFIG
21577 fi
21578 else
21579 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21580 fi
21581
21582 fi
21583 if test -n "$PKG_CONFIG"; then
21584 _pkg_min_version=0.9.0
21585 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21586 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21587 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21588 { $as_echo "$as_me:$LINENO: result: yes" >&5
21589 $as_echo "yes" >&6; }
21590 else
21591 { $as_echo "$as_me:$LINENO: result: no" >&5
21592 $as_echo "no" >&6; }
21593 PKG_CONFIG=""
21594 fi
21595
21596 fi
21597
21598 pkg_failed=no
21599 { $as_echo "$as_me:$LINENO: checking for XPM" >&5
21600 $as_echo_n "checking for XPM... " >&6; }
21601
21602 if test -n "$XPM_CFLAGS"; then
21603 pkg_cv_XPM_CFLAGS="$XPM_CFLAGS"
21604 elif test -n "$PKG_CONFIG"; then
21605 if test -n "$PKG_CONFIG" && \
21606 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11\"") >&5
21607 ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5
21608 ac_status=$?
21609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); }; then
21611 pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xproto x11" 2>/dev/null`
21612 else
21613 pkg_failed=yes
21614 fi
21615 else
21616 pkg_failed=untried
21617 fi
21618 if test -n "$XPM_LIBS"; then
21619 pkg_cv_XPM_LIBS="$XPM_LIBS"
21620 elif test -n "$PKG_CONFIG"; then
21621 if test -n "$PKG_CONFIG" && \
21622 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11\"") >&5
21623 ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5
21624 ac_status=$?
21625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); }; then
21627 pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xproto x11" 2>/dev/null`
21628 else
21629 pkg_failed=yes
21630 fi
21631 else
21632 pkg_failed=untried
21633 fi
21634
21635
21636
21637 if test $pkg_failed = yes; then
21638
21639 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21640 _pkg_short_errors_supported=yes
21641 else
21642 _pkg_short_errors_supported=no
21643 fi
21644 if test $_pkg_short_errors_supported = yes; then
21645 XPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto x11" 2>&1`
21646 else
21647 XPM_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto x11" 2>&1`
21648 fi
21649 # Put the nasty error message in config.log where it belongs
21650 echo "$XPM_PKG_ERRORS" >&5
21651
21652 { { $as_echo "$as_me:$LINENO: error: Package requirements (xproto x11) were not met:
21653
21654 $XPM_PKG_ERRORS
21655
21656 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21657 installed software in a non-standard prefix.
21658
21659 Alternatively, you may set the environment variables XPM_CFLAGS
21660 and XPM_LIBS to avoid the need to call pkg-config.
21661 See the pkg-config man page for more details.
21662 " >&5
21663 $as_echo "$as_me: error: Package requirements (xproto x11) were not met:
21664
21665 $XPM_PKG_ERRORS
21666
21667 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21668 installed software in a non-standard prefix.
21669
21670 Alternatively, you may set the environment variables XPM_CFLAGS
21671 and XPM_LIBS to avoid the need to call pkg-config.
21672 See the pkg-config man page for more details.
21673 " >&2;}
21674 { (exit 1); exit 1; }; }
21675 elif test $pkg_failed = untried; then
21676 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21678 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21679 is in your PATH or set the PKG_CONFIG environment variable to the full
21680 path to pkg-config.
21681
21682 Alternatively, you may set the environment variables XPM_CFLAGS
21683 and XPM_LIBS to avoid the need to call pkg-config.
21684 See the pkg-config man page for more details.
21685
21686 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21687 See \`config.log' for more details." >&5
21688 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21689 is in your PATH or set the PKG_CONFIG environment variable to the full
21690 path to pkg-config.
21691
21692 Alternatively, you may set the environment variables XPM_CFLAGS
21693 and XPM_LIBS to avoid the need to call pkg-config.
21694 See the pkg-config man page for more details.
21695
21696 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21697 See \`config.log' for more details." >&2;}
21698 { (exit 1); exit 1; }; }; }
21699 else
21700 XPM_CFLAGS=$pkg_cv_XPM_CFLAGS
21701 XPM_LIBS=$pkg_cv_XPM_LIBS
21702 { $as_echo "$as_me:$LINENO: result: yes" >&5
21703 $as_echo "yes" >&6; }
21704 :
21705 fi
21706
21707
21708
21709 # Checks for header files.
21710 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21711 $as_echo_n "checking for ANSI C header files... " >&6; }
21712 if test "${ac_cv_header_stdc+set}" = set; then
21713 $as_echo_n "(cached) " >&6
21714 else
21715 cat >conftest.$ac_ext <<_ACEOF
21716 /* confdefs.h. */
21717 _ACEOF
21718 cat confdefs.h >>conftest.$ac_ext
21719 cat >>conftest.$ac_ext <<_ACEOF
21720 /* end confdefs.h. */
21721 #include <stdlib.h>
21722 #include <stdarg.h>
21723 #include <string.h>
21724 #include <float.h>
21725
21726 int
21727 main ()
21728 {
21729
21730 ;
21731 return 0;
21732 }
21733 _ACEOF
21734 rm -f conftest.$ac_objext
21735 if { (ac_try="$ac_compile"
21736 case "(($ac_try" in
21737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21738 *) ac_try_echo=$ac_try;;
21739 esac
21740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21741 $as_echo "$ac_try_echo") >&5
21742 (eval "$ac_compile") 2>conftest.er1
21743 ac_status=$?
21744 grep -v '^ *+' conftest.er1 >conftest.err
21745 rm -f conftest.er1
21746 cat conftest.err >&5
21747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); } && {
21749 test -z "$ac_c_werror_flag" ||
21750 test ! -s conftest.err
21751 } && test -s conftest.$ac_objext; then
21752 ac_cv_header_stdc=yes
21753 else
21754 $as_echo "$as_me: failed program was:" >&5
21755 sed 's/^/| /' conftest.$ac_ext >&5
21756
21757 ac_cv_header_stdc=no
21758 fi
21759
21760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21761
21762 if test $ac_cv_header_stdc = yes; then
21763 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21764 cat >conftest.$ac_ext <<_ACEOF
21765 /* confdefs.h. */
21766 _ACEOF
21767 cat confdefs.h >>conftest.$ac_ext
21768 cat >>conftest.$ac_ext <<_ACEOF
21769 /* end confdefs.h. */
21770 #include <string.h>
21771
21772 _ACEOF
21773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21774 $EGREP "memchr" >/dev/null 2>&1; then
21775 :
21776 else
21777 ac_cv_header_stdc=no
21778 fi
21779 rm -f conftest*
21780
21781 fi
21782
21783 if test $ac_cv_header_stdc = yes; then
21784 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21785 cat >conftest.$ac_ext <<_ACEOF
21786 /* confdefs.h. */
21787 _ACEOF
21788 cat confdefs.h >>conftest.$ac_ext
21789 cat >>conftest.$ac_ext <<_ACEOF
21790 /* end confdefs.h. */
21791 #include <stdlib.h>
21792
21793 _ACEOF
21794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21795 $EGREP "free" >/dev/null 2>&1; then
21796 :
21797 else
21798 ac_cv_header_stdc=no
21799 fi
21800 rm -f conftest*
21801
21802 fi
21803
21804 if test $ac_cv_header_stdc = yes; then
21805 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21806 if test "$cross_compiling" = yes; then
21807 :
21808 else
21809 cat >conftest.$ac_ext <<_ACEOF
21810 /* confdefs.h. */
21811 _ACEOF
21812 cat confdefs.h >>conftest.$ac_ext
21813 cat >>conftest.$ac_ext <<_ACEOF
21814 /* end confdefs.h. */
21815 #include <ctype.h>
21816 #include <stdlib.h>
21817 #if ((' ' & 0x0FF) == 0x020)
21818 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21819 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21820 #else
21821 # define ISLOWER(c) \
21822 (('a' <= (c) && (c) <= 'i') \
21823 || ('j' <= (c) && (c) <= 'r') \
21824 || ('s' <= (c) && (c) <= 'z'))
21825 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21826 #endif
21827
21828 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21829 int
21830 main ()
21831 {
21832 int i;
21833 for (i = 0; i < 256; i++)
21834 if (XOR (islower (i), ISLOWER (i))
21835 || toupper (i) != TOUPPER (i))
21836 return 2;
21837 return 0;
21838 }
21839 _ACEOF
21840 rm -f conftest$ac_exeext
21841 if { (ac_try="$ac_link"
21842 case "(($ac_try" in
21843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844 *) ac_try_echo=$ac_try;;
21845 esac
21846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21847 $as_echo "$ac_try_echo") >&5
21848 (eval "$ac_link") 2>&5
21849 ac_status=$?
21850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21852 { (case "(($ac_try" in
21853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854 *) ac_try_echo=$ac_try;;
21855 esac
21856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21857 $as_echo "$ac_try_echo") >&5
21858 (eval "$ac_try") 2>&5
21859 ac_status=$?
21860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 (exit $ac_status); }; }; then
21862 :
21863 else
21864 $as_echo "$as_me: program exited with status $ac_status" >&5
21865 $as_echo "$as_me: failed program was:" >&5
21866 sed 's/^/| /' conftest.$ac_ext >&5
21867
21868 ( exit $ac_status )
21869 ac_cv_header_stdc=no
21870 fi
21871 rm -rf conftest.dSYM
21872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21873 fi
21874
21875
21876 fi
21877 fi
21878 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21879 $as_echo "$ac_cv_header_stdc" >&6; }
21880 if test $ac_cv_header_stdc = yes; then
21881
21882 cat >>confdefs.h <<\_ACEOF
21883 #define STDC_HEADERS 1
21884 _ACEOF
21885
21886 fi
21887
21888
21889 # Checks for functions
21890
21891 for ac_func in strlcat
21892 do
21893 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21894 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21895 $as_echo_n "checking for $ac_func... " >&6; }
21896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21897 $as_echo_n "(cached) " >&6
21898 else
21899 cat >conftest.$ac_ext <<_ACEOF
21900 /* confdefs.h. */
21901 _ACEOF
21902 cat confdefs.h >>conftest.$ac_ext
21903 cat >>conftest.$ac_ext <<_ACEOF
21904 /* end confdefs.h. */
21905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21907 #define $ac_func innocuous_$ac_func
21908
21909 /* System header to define __stub macros and hopefully few prototypes,
21910 which can conflict with char $ac_func (); below.
21911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21912 <limits.h> exists even on freestanding compilers. */
21913
21914 #ifdef __STDC__
21915 # include <limits.h>
21916 #else
21917 # include <assert.h>
21918 #endif
21919
21920 #undef $ac_func
21921
21922 /* Override any GCC internal prototype to avoid an error.
21923 Use char because int might match the return type of a GCC
21924 builtin and then its argument prototype would still apply. */
21925 #ifdef __cplusplus
21926 extern "C"
21927 #endif
21928 char $ac_func ();
21929 /* The GNU C library defines this for functions which it implements
21930 to always fail with ENOSYS. Some functions are actually named
21931 something starting with __ and the normal name is an alias. */
21932 #if defined __stub_$ac_func || defined __stub___$ac_func
21933 choke me
21934 #endif
21935
21936 int
21937 main ()
21938 {
21939 return $ac_func ();
21940 ;
21941 return 0;
21942 }
21943 _ACEOF
21944 rm -f conftest.$ac_objext conftest$ac_exeext
21945 if { (ac_try="$ac_link"
21946 case "(($ac_try" in
21947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21948 *) ac_try_echo=$ac_try;;
21949 esac
21950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21951 $as_echo "$ac_try_echo") >&5
21952 (eval "$ac_link") 2>conftest.er1
21953 ac_status=$?
21954 grep -v '^ *+' conftest.er1 >conftest.err
21955 rm -f conftest.er1
21956 cat conftest.err >&5
21957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); } && {
21959 test -z "$ac_c_werror_flag" ||
21960 test ! -s conftest.err
21961 } && test -s conftest$ac_exeext && {
21962 test "$cross_compiling" = yes ||
21963 $as_test_x conftest$ac_exeext
21964 }; then
21965 eval "$as_ac_var=yes"
21966 else
21967 $as_echo "$as_me: failed program was:" >&5
21968 sed 's/^/| /' conftest.$ac_ext >&5
21969
21970 eval "$as_ac_var=no"
21971 fi
21972
21973 rm -rf conftest.dSYM
21974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21975 conftest$ac_exeext conftest.$ac_ext
21976 fi
21977 ac_res=`eval 'as_val=${'$as_ac_var'}
21978 $as_echo "$as_val"'`
21979 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21980 $as_echo "$ac_res" >&6; }
21981 as_val=`eval 'as_val=${'$as_ac_var'}
21982 $as_echo "$as_val"'`
21983 if test "x$as_val" = x""yes; then
21984 cat >>confdefs.h <<_ACEOF
21985 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21986 _ACEOF
21987
21988 fi
21989 done
21990
21991
21992 # Internationalization & localization support
21993 { $as_echo "$as_me:$LINENO: checking for library containing gettext" >&5
21994 $as_echo_n "checking for library containing gettext... " >&6; }
21995 if test "${ac_cv_search_gettext+set}" = set; then
21996 $as_echo_n "(cached) " >&6
21997 else
21998 ac_func_search_save_LIBS=$LIBS
21999 cat >conftest.$ac_ext <<_ACEOF
22000 /* confdefs.h. */
22001 _ACEOF
22002 cat confdefs.h >>conftest.$ac_ext
22003 cat >>conftest.$ac_ext <<_ACEOF
22004 /* end confdefs.h. */
22005
22006 /* Override any GCC internal prototype to avoid an error.
22007 Use char because int might match the return type of a GCC
22008 builtin and then its argument prototype would still apply. */
22009 #ifdef __cplusplus
22010 extern "C"
22011 #endif
22012 char gettext ();
22013 int
22014 main ()
22015 {
22016 return gettext ();
22017 ;
22018 return 0;
22019 }
22020 _ACEOF
22021 for ac_lib in '' intl; do
22022 if test -z "$ac_lib"; then
22023 ac_res="none required"
22024 else
22025 ac_res=-l$ac_lib
22026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22027 fi
22028 rm -f conftest.$ac_objext conftest$ac_exeext
22029 if { (ac_try="$ac_link"
22030 case "(($ac_try" in
22031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22032 *) ac_try_echo=$ac_try;;
22033 esac
22034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22035 $as_echo "$ac_try_echo") >&5
22036 (eval "$ac_link") 2>conftest.er1
22037 ac_status=$?
22038 grep -v '^ *+' conftest.er1 >conftest.err
22039 rm -f conftest.er1
22040 cat conftest.err >&5
22041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042 (exit $ac_status); } && {
22043 test -z "$ac_c_werror_flag" ||
22044 test ! -s conftest.err
22045 } && test -s conftest$ac_exeext && {
22046 test "$cross_compiling" = yes ||
22047 $as_test_x conftest$ac_exeext
22048 }; then
22049 ac_cv_search_gettext=$ac_res
22050 else
22051 $as_echo "$as_me: failed program was:" >&5
22052 sed 's/^/| /' conftest.$ac_ext >&5
22053
22054
22055 fi
22056
22057 rm -rf conftest.dSYM
22058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22059 conftest$ac_exeext
22060 if test "${ac_cv_search_gettext+set}" = set; then
22061 break
22062 fi
22063 done
22064 if test "${ac_cv_search_gettext+set}" = set; then
22065 :
22066 else
22067 ac_cv_search_gettext=no
22068 fi
22069 rm conftest.$ac_ext
22070 LIBS=$ac_func_search_save_LIBS
22071 fi
22072 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
22073 $as_echo "$ac_cv_search_gettext" >&6; }
22074 ac_res=$ac_cv_search_gettext
22075 if test "$ac_res" != no; then
22076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22077 USE_GETTEXT="yes"
22078 else
22079 USE_GETTEXT="no"
22080 fi
22081
22082 { $as_echo "$as_me:$LINENO: checking where to install localized messages" >&5
22083 $as_echo_n "checking where to install localized messages... " >&6; }
22084
22085 # Check whether --with-localedir was given.
22086 if test "${with_localedir+set}" = set; then
22087 withval=$with_localedir; LOCALEDIR=${withval}
22088 else
22089 LOCALEDIR=${datadir}/locale
22090 fi
22091
22092
22093 prefix_NONE=
22094 exec_prefix_NONE=
22095 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22096 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22097 eval ax_define_dir="\"$LOCALEDIR\""
22098 eval ax_define_dir="\"$ax_define_dir\""
22099 LOCALEDIR="$ax_define_dir"
22100
22101
22102 cat >>confdefs.h <<_ACEOF
22103 #define LOCALEDIR "$ax_define_dir"
22104 _ACEOF
22105
22106 test "$prefix_NONE" && prefix=NONE
22107 test "$exec_prefix_NONE" && exec_prefix=NONE
22108
22109 if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
22110 { $as_echo "$as_me:$LINENO: result: nowhere" >&5
22111 $as_echo "nowhere" >&6; }
22112 USE_GETTEXT="no"
22113 else
22114 { $as_echo "$as_me:$LINENO: result: $LOCALEDIR" >&5
22115 $as_echo "$LOCALEDIR" >&6; }
22116 fi
22117
22118 if test "x$USE_GETTEXT" = "xyes" ; then
22119
22120 cat >>confdefs.h <<\_ACEOF
22121 #define USE_GETTEXT 1
22122 _ACEOF
22123
22124 fi
22125 if test "x$USE_GETTEXT" = "xyes"; then
22126 USE_GETTEXT_TRUE=
22127 USE_GETTEXT_FALSE='#'
22128 else
22129 USE_GETTEXT_TRUE='#'
22130 USE_GETTEXT_FALSE=
22131 fi
22132
22133
22134 # Optional feature: When ___.xpm is requested, also look for ___.xpm.Z & .gz
22135 # Replaces ZFILEDEF = -DSTAT_ZFILE in old Imakefile
22136 # Check whether --enable-stat-zfile was given.
22137 if test "${enable_stat_zfile+set}" = set; then
22138 enableval=$enable_stat_zfile; STAT_ZFILE=$enableval
22139 else
22140 STAT_ZFILE=yes
22141 fi
22142
22143 if test x$STAT_ZFILE = xyes ; then
22144
22145 cat >>confdefs.h <<\_ACEOF
22146 #define STAT_ZFILE 1
22147 _ACEOF
22148
22149 fi
22150
22151
22152 pkg_failed=no
22153 { $as_echo "$as_me:$LINENO: checking for SXPM" >&5
22154 $as_echo_n "checking for SXPM... " >&6; }
22155
22156 if test -n "$SXPM_CFLAGS"; then
22157 pkg_cv_SXPM_CFLAGS="$SXPM_CFLAGS"
22158 elif test -n "$PKG_CONFIG"; then
22159 if test -n "$PKG_CONFIG" && \
22160 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt xext xextproto\"") >&5
22161 ($PKG_CONFIG --exists --print-errors "xt xext xextproto") 2>&5
22162 ac_status=$?
22163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); }; then
22165 pkg_cv_SXPM_CFLAGS=`$PKG_CONFIG --cflags "xt xext xextproto" 2>/dev/null`
22166 else
22167 pkg_failed=yes
22168 fi
22169 else
22170 pkg_failed=untried
22171 fi
22172 if test -n "$SXPM_LIBS"; then
22173 pkg_cv_SXPM_LIBS="$SXPM_LIBS"
22174 elif test -n "$PKG_CONFIG"; then
22175 if test -n "$PKG_CONFIG" && \
22176 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt xext xextproto\"") >&5
22177 ($PKG_CONFIG --exists --print-errors "xt xext xextproto") 2>&5
22178 ac_status=$?
22179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); }; then
22181 pkg_cv_SXPM_LIBS=`$PKG_CONFIG --libs "xt xext xextproto" 2>/dev/null`
22182 else
22183 pkg_failed=yes
22184 fi
22185 else
22186 pkg_failed=untried
22187 fi
22188
22189
22190
22191 if test $pkg_failed = yes; then
22192
22193 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22194 _pkg_short_errors_supported=yes
22195 else
22196 _pkg_short_errors_supported=no
22197 fi
22198 if test $_pkg_short_errors_supported = yes; then
22199 SXPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt xext xextproto" 2>&1`
22200 else
22201 SXPM_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt xext xextproto" 2>&1`
22202 fi
22203 # Put the nasty error message in config.log where it belongs
22204 echo "$SXPM_PKG_ERRORS" >&5
22205
22206 { $as_echo "$as_me:$LINENO: result: no" >&5
22207 $as_echo "no" >&6; }
22208 build_sxpm=false
22209 elif test $pkg_failed = untried; then
22210 build_sxpm=false
22211 else
22212 SXPM_CFLAGS=$pkg_cv_SXPM_CFLAGS
22213 SXPM_LIBS=$pkg_cv_SXPM_LIBS
22214 { $as_echo "$as_me:$LINENO: result: yes" >&5
22215 $as_echo "yes" >&6; }
22216 build_sxpm=true
22217 fi
22218 if test x$build_sxpm = xtrue; then
22219 BUILD_SXPM_TRUE=
22220 BUILD_SXPM_FALSE='#'
22221 else
22222 BUILD_SXPM_TRUE='#'
22223 BUILD_SXPM_FALSE=
22224 fi
22225
22226
22227 ac_config_files="$ac_config_files Makefile src/Makefile sxpm/Makefile cxpm/Makefile xpm.pc"
22228
22229 cat >confcache <<\_ACEOF
22230 # This file is a shell script that caches the results of configure
22231 # tests run on this system so they can be shared between configure
22232 # scripts and configure runs, see configure's option --config-cache.
22233 # It is not useful on other systems. If it contains results you don't
22234 # want to keep, you may remove or edit it.
22235 #
22236 # config.status only pays attention to the cache file if you give it
22237 # the --recheck option to rerun configure.
22238 #
22239 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22240 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22241 # following values.
22242
22243 _ACEOF
22244
22245 # The following way of writing the cache mishandles newlines in values,
22246 # but we know of no workaround that is simple, portable, and efficient.
22247 # So, we kill variables containing newlines.
22248 # Ultrix sh set writes to stderr and can't be redirected directly,
22249 # and sets the high bit in the cache file unless we assign to the vars.
22250 (
22251 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22252 eval ac_val=\$$ac_var
22253 case $ac_val in #(
22254 *${as_nl}*)
22255 case $ac_var in #(
22256 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22257 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22258 esac
22259 case $ac_var in #(
22260 _ | IFS | as_nl) ;; #(
22261 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22262 *) $as_unset $ac_var ;;
22263 esac ;;
22264 esac
22265 done
22266
22267 (set) 2>&1 |
22268 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22269 *${as_nl}ac_space=\ *)
22270 # `set' does not quote correctly, so add quotes (double-quote
22271 # substitution turns \\\\ into \\, and sed turns \\ into \).
22272 sed -n \
22273 "s/'/'\\\\''/g;
22274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22275 ;; #(
22276 *)
22277 # `set' quotes correctly as required by POSIX, so do not add quotes.
22278 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22279 ;;
22280 esac |
22281 sort
22282 ) |
22283 sed '
22284 /^ac_cv_env_/b end
22285 t clear
22286 :clear
22287 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22288 t end
22289 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22290 :end' >>confcache
22291 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22292 if test -w "$cache_file"; then
22293 test "x$cache_file" != "x/dev/null" &&
22294 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
22295 $as_echo "$as_me: updating cache $cache_file" >&6;}
22296 cat confcache >$cache_file
22297 else
22298 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22299 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22300 fi
22301 fi
22302 rm -f confcache
22303
22304 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22305 # Let make expand exec_prefix.
22306 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22307
22308 DEFS=-DHAVE_CONFIG_H
22309
22310 ac_libobjs=
22311 ac_ltlibobjs=
22312 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22313 # 1. Remove the extension, and $U if already installed.
22314 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22315 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22316 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22317 # will be set to the directory where LIBOBJS objects are built.
22318 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22319 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22320 done
22321 LIBOBJS=$ac_libobjs
22322
22323 LTLIBOBJS=$ac_ltlibobjs
22324
22325
22326 if test -n "$EXEEXT"; then
22327 am__EXEEXT_TRUE=
22328 am__EXEEXT_FALSE='#'
22329 else
22330 am__EXEEXT_TRUE='#'
22331 am__EXEEXT_FALSE=
22332 fi
22333
22334 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22335 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22336 Usually this means the macro was only invoked conditionally." >&5
22337 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22338 Usually this means the macro was only invoked conditionally." >&2;}
22339 { (exit 1); exit 1; }; }
22340 fi
22341 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22342 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22343 Usually this means the macro was only invoked conditionally." >&5
22344 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
22345 Usually this means the macro was only invoked conditionally." >&2;}
22346 { (exit 1); exit 1; }; }
22347 fi
22348 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22349 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22350 Usually this means the macro was only invoked conditionally." >&5
22351 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22352 Usually this means the macro was only invoked conditionally." >&2;}
22353 { (exit 1); exit 1; }; }
22354 fi
22355 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22356 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22357 Usually this means the macro was only invoked conditionally." >&5
22358 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22359 Usually this means the macro was only invoked conditionally." >&2;}
22360 { (exit 1); exit 1; }; }
22361 fi
22362 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22363 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22364 Usually this means the macro was only invoked conditionally." >&5
22365 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22366 Usually this means the macro was only invoked conditionally." >&2;}
22367 { (exit 1); exit 1; }; }
22368 fi
22369 if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then
22370 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_GETTEXT\" was never defined.
22371 Usually this means the macro was only invoked conditionally." >&5
22372 $as_echo "$as_me: error: conditional \"USE_GETTEXT\" was never defined.
22373 Usually this means the macro was only invoked conditionally." >&2;}
22374 { (exit 1); exit 1; }; }
22375 fi
22376 if test -z "${BUILD_SXPM_TRUE}" && test -z "${BUILD_SXPM_FALSE}"; then
22377 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SXPM\" was never defined.
22378 Usually this means the macro was only invoked conditionally." >&5
22379 $as_echo "$as_me: error: conditional \"BUILD_SXPM\" was never defined.
22380 Usually this means the macro was only invoked conditionally." >&2;}
22381 { (exit 1); exit 1; }; }
22382 fi
22383
22384 : ${CONFIG_STATUS=./config.status}
22385 ac_write_fail=0
22386 ac_clean_files_save=$ac_clean_files
22387 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22388 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22389 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22390 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22391 #! $SHELL
22392 # Generated by $as_me.
22393 # Run this file to recreate the current configuration.
22394 # Compiler output produced by configure, useful for debugging
22395 # configure, is in config.log if it exists.
22396
22397 debug=false
22398 ac_cs_recheck=false
22399 ac_cs_silent=false
22400 SHELL=\${CONFIG_SHELL-$SHELL}
22401 _ACEOF
22402
22403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22404 ## --------------------- ##
22405 ## M4sh Initialization. ##
22406 ## --------------------- ##
22407
22408 # Be more Bourne compatible
22409 DUALCASE=1; export DUALCASE # for MKS sh
22410 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22411 emulate sh
22412 NULLCMD=:
22413 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22414 # is contrary to our usage. Disable this feature.
22415 alias -g '${1+"$@"}'='"$@"'
22416 setopt NO_GLOB_SUBST
22417 else
22418 case `(set -o) 2>/dev/null` in
22419 *posix*) set -o posix ;;
22420 esac
22421
22422 fi
22423
22424
22425
22426
22427 # PATH needs CR
22428 # Avoid depending upon Character Ranges.
22429 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22430 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22431 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22432 as_cr_digits='0123456789'
22433 as_cr_alnum=$as_cr_Letters$as_cr_digits
22434
22435 as_nl='
22436 '
22437 export as_nl
22438 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22439 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22440 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22441 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22442 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22443 as_echo='printf %s\n'
22444 as_echo_n='printf %s'
22445 else
22446 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22447 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22448 as_echo_n='/usr/ucb/echo -n'
22449 else
22450 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22451 as_echo_n_body='eval
22452 arg=$1;
22453 case $arg in
22454 *"$as_nl"*)
22455 expr "X$arg" : "X\\(.*\\)$as_nl";
22456 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22457 esac;
22458 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22459 '
22460 export as_echo_n_body
22461 as_echo_n='sh -c $as_echo_n_body as_echo'
22462 fi
22463 export as_echo_body
22464 as_echo='sh -c $as_echo_body as_echo'
22465 fi
22466
22467 # The user is always right.
22468 if test "${PATH_SEPARATOR+set}" != set; then
22469 PATH_SEPARATOR=:
22470 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22471 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22472 PATH_SEPARATOR=';'
22473 }
22474 fi
22475
22476 # Support unset when possible.
22477 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22478 as_unset=unset
22479 else
22480 as_unset=false
22481 fi
22482
22483
22484 # IFS
22485 # We need space, tab and new line, in precisely that order. Quoting is
22486 # there to prevent editors from complaining about space-tab.
22487 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22488 # splitting by setting IFS to empty value.)
22489 IFS=" "" $as_nl"
22490
22491 # Find who we are. Look in the path if we contain no directory separator.
22492 case $0 in
22493 *[\\/]* ) as_myself=$0 ;;
22494 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22495 for as_dir in $PATH
22496 do
22497 IFS=$as_save_IFS
22498 test -z "$as_dir" && as_dir=.
22499 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22500 done
22501 IFS=$as_save_IFS
22502
22503 ;;
22504 esac
22505 # We did not find ourselves, most probably we were run as `sh COMMAND'
22506 # in which case we are not to be found in the path.
22507 if test "x$as_myself" = x; then
22508 as_myself=$0
22509 fi
22510 if test ! -f "$as_myself"; then
22511 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22512 { (exit 1); exit 1; }
22513 fi
22514
22515 # Work around bugs in pre-3.0 UWIN ksh.
22516 for as_var in ENV MAIL MAILPATH
22517 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22518 done
22519 PS1='$ '
22520 PS2='> '
22521 PS4='+ '
22522
22523 # NLS nuisances.
22524 LC_ALL=C
22525 export LC_ALL
22526 LANGUAGE=C
22527 export LANGUAGE
22528
22529 # Required to use basename.
22530 if expr a : '\(a\)' >/dev/null 2>&1 &&
22531 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22532 as_expr=expr
22533 else
22534 as_expr=false
22535 fi
22536
22537 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22538 as_basename=basename
22539 else
22540 as_basename=false
22541 fi
22542
22543
22544 # Name of the executable.
22545 as_me=`$as_basename -- "$0" ||
22546 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22547 X"$0" : 'X\(//\)$' \| \
22548 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22549 $as_echo X/"$0" |
22550 sed '/^.*\/\([^/][^/]*\)\/*$/{
22551 s//\1/
22552 q
22553 }
22554 /^X\/\(\/\/\)$/{
22555 s//\1/
22556 q
22557 }
22558 /^X\/\(\/\).*/{
22559 s//\1/
22560 q
22561 }
22562 s/.*/./; q'`
22563
22564 # CDPATH.
22565 $as_unset CDPATH
22566
22567
22568
22569 as_lineno_1=$LINENO
22570 as_lineno_2=$LINENO
22571 test "x$as_lineno_1" != "x$as_lineno_2" &&
22572 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22573
22574 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22575 # uniformly replaced by the line number. The first 'sed' inserts a
22576 # line-number line after each line using $LINENO; the second 'sed'
22577 # does the real work. The second script uses 'N' to pair each
22578 # line-number line with the line containing $LINENO, and appends
22579 # trailing '-' during substitution so that $LINENO is not a special
22580 # case at line end.
22581 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22582 # scripts with optimization help from Paolo Bonzini. Blame Lee
22583 # E. McMahon (1931-1989) for sed's syntax. :-)
22584 sed -n '
22585 p
22586 /[$]LINENO/=
22587 ' <$as_myself |
22588 sed '
22589 s/[$]LINENO.*/&-/
22590 t lineno
22591 b
22592 :lineno
22593 N
22594 :loop
22595 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22596 t loop
22597 s/-\n.*//
22598 ' >$as_me.lineno &&
22599 chmod +x "$as_me.lineno" ||
22600 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22601 { (exit 1); exit 1; }; }
22602
22603 # Don't try to exec as it changes $[0], causing all sort of problems
22604 # (the dirname of $[0] is not the place where we might find the
22605 # original and so on. Autoconf is especially sensitive to this).
22606 . "./$as_me.lineno"
22607 # Exit status is that of the last command.
22608 exit
22609 }
22610
22611
22612 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22613 as_dirname=dirname
22614 else
22615 as_dirname=false
22616 fi
22617
22618 ECHO_C= ECHO_N= ECHO_T=
22619 case `echo -n x` in
22620 -n*)
22621 case `echo 'x\c'` in
22622 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22623 *) ECHO_C='\c';;
22624 esac;;
22625 *)
22626 ECHO_N='-n';;
22627 esac
22628 if expr a : '\(a\)' >/dev/null 2>&1 &&
22629 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22630 as_expr=expr
22631 else
22632 as_expr=false
22633 fi
22634
22635 rm -f conf$$ conf$$.exe conf$$.file
22636 if test -d conf$$.dir; then
22637 rm -f conf$$.dir/conf$$.file
22638 else
22639 rm -f conf$$.dir
22640 mkdir conf$$.dir 2>/dev/null
22641 fi
22642 if (echo >conf$$.file) 2>/dev/null; then
22643 if ln -s conf$$.file conf$$ 2>/dev/null; then
22644 as_ln_s='ln -s'
22645 # ... but there are two gotchas:
22646 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22647 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22648 # In both cases, we have to default to `cp -p'.
22649 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22650 as_ln_s='cp -p'
22651 elif ln conf$$.file conf$$ 2>/dev/null; then
22652 as_ln_s=ln
22653 else
22654 as_ln_s='cp -p'
22655 fi
22656 else
22657 as_ln_s='cp -p'
22658 fi
22659 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22660 rmdir conf$$.dir 2>/dev/null
22661
22662 if mkdir -p . 2>/dev/null; then
22663 as_mkdir_p=:
22664 else
22665 test -d ./-p && rmdir ./-p
22666 as_mkdir_p=false
22667 fi
22668
22669 if test -x / >/dev/null 2>&1; then
22670 as_test_x='test -x'
22671 else
22672 if ls -dL / >/dev/null 2>&1; then
22673 as_ls_L_option=L
22674 else
22675 as_ls_L_option=
22676 fi
22677 as_test_x='
22678 eval sh -c '\''
22679 if test -d "$1"; then
22680 test -d "$1/.";
22681 else
22682 case $1 in
22683 -*)set "./$1";;
22684 esac;
22685 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22686 ???[sx]*):;;*)false;;esac;fi
22687 '\'' sh
22688 '
22689 fi
22690 as_executable_p=$as_test_x
22691
22692 # Sed expression to map a string onto a valid CPP name.
22693 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22694
22695 # Sed expression to map a string onto a valid variable name.
22696 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22697
22698
22699 exec 6>&1
22700
22701 # Save the log message, to keep $[0] and so on meaningful, and to
22702 # report actual input values of CONFIG_FILES etc. instead of their
22703 # values after options handling.
22704 ac_log="
22705 This file was extended by libXpm $as_me 3.5.8, which was
22706 generated by GNU Autoconf 2.63. Invocation command line was
22707
22708 CONFIG_FILES = $CONFIG_FILES
22709 CONFIG_HEADERS = $CONFIG_HEADERS
22710 CONFIG_LINKS = $CONFIG_LINKS
22711 CONFIG_COMMANDS = $CONFIG_COMMANDS
22712 $ $0 $@
22713
22714 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22715 "
22716
22717 _ACEOF
22718
22719 case $ac_config_files in *"
22720 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22721 esac
22722
22723 case $ac_config_headers in *"
22724 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22725 esac
22726
22727
22728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22729 # Files that config.status was made for.
22730 config_files="$ac_config_files"
22731 config_headers="$ac_config_headers"
22732 config_commands="$ac_config_commands"
22733
22734 _ACEOF
22735
22736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22737 ac_cs_usage="\
22738 \`$as_me' instantiates files from templates according to the
22739 current configuration.
22740
22741 Usage: $0 [OPTION]... [FILE]...
22742
22743 -h, --help print this help, then exit
22744 -V, --version print version number and configuration settings, then exit
22745 -q, --quiet, --silent
22746 do not print progress messages
22747 -d, --debug don't remove temporary files
22748 --recheck update $as_me by reconfiguring in the same conditions
22749 --file=FILE[:TEMPLATE]
22750 instantiate the configuration file FILE
22751 --header=FILE[:TEMPLATE]
22752 instantiate the configuration header FILE
22753
22754 Configuration files:
22755 $config_files
22756
22757 Configuration headers:
22758 $config_headers
22759
22760 Configuration commands:
22761 $config_commands
22762
22763 Report bugs to <bug-autoconf (at] gnu.org>."
22764
22765 _ACEOF
22766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22767 ac_cs_version="\\
22768 libXpm config.status 3.5.8
22769 configured by $0, generated by GNU Autoconf 2.63,
22770 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22771
22772 Copyright (C) 2008 Free Software Foundation, Inc.
22773 This config.status script is free software; the Free Software Foundation
22774 gives unlimited permission to copy, distribute and modify it."
22775
22776 ac_pwd='$ac_pwd'
22777 srcdir='$srcdir'
22778 INSTALL='$INSTALL'
22779 MKDIR_P='$MKDIR_P'
22780 AWK='$AWK'
22781 test -n "\$AWK" || AWK=awk
22782 _ACEOF
22783
22784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22785 # The default lists apply if the user does not specify any file.
22786 ac_need_defaults=:
22787 while test $# != 0
22788 do
22789 case $1 in
22790 --*=*)
22791 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22792 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22793 ac_shift=:
22794 ;;
22795 *)
22796 ac_option=$1
22797 ac_optarg=$2
22798 ac_shift=shift
22799 ;;
22800 esac
22801
22802 case $ac_option in
22803 # Handling of the options.
22804 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22805 ac_cs_recheck=: ;;
22806 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22807 $as_echo "$ac_cs_version"; exit ;;
22808 --debug | --debu | --deb | --de | --d | -d )
22809 debug=: ;;
22810 --file | --fil | --fi | --f )
22811 $ac_shift
22812 case $ac_optarg in
22813 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22814 esac
22815 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22816 ac_need_defaults=false;;
22817 --header | --heade | --head | --hea )
22818 $ac_shift
22819 case $ac_optarg in
22820 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22821 esac
22822 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22823 ac_need_defaults=false;;
22824 --he | --h)
22825 # Conflict between --help and --header
22826 { $as_echo "$as_me: error: ambiguous option: $1
22827 Try \`$0 --help' for more information." >&2
22828 { (exit 1); exit 1; }; };;
22829 --help | --hel | -h )
22830 $as_echo "$ac_cs_usage"; exit ;;
22831 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22832 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22833 ac_cs_silent=: ;;
22834
22835 # This is an error.
22836 -*) { $as_echo "$as_me: error: unrecognized option: $1
22837 Try \`$0 --help' for more information." >&2
22838 { (exit 1); exit 1; }; } ;;
22839
22840 *) ac_config_targets="$ac_config_targets $1"
22841 ac_need_defaults=false ;;
22842
22843 esac
22844 shift
22845 done
22846
22847 ac_configure_extra_args=
22848
22849 if $ac_cs_silent; then
22850 exec 6>/dev/null
22851 ac_configure_extra_args="$ac_configure_extra_args --silent"
22852 fi
22853
22854 _ACEOF
22855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22856 if \$ac_cs_recheck; then
22857 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22858 shift
22859 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22860 CONFIG_SHELL='$SHELL'
22861 export CONFIG_SHELL
22862 exec "\$@"
22863 fi
22864
22865 _ACEOF
22866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22867 exec 5>>config.log
22868 {
22869 echo
22870 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22871 ## Running $as_me. ##
22872 _ASBOX
22873 $as_echo "$ac_log"
22874 } >&5
22875
22876 _ACEOF
22877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22878 #
22879 # INIT-COMMANDS
22880 #
22881 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22882
22883 _ACEOF
22884
22885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22886
22887 # Handling of arguments.
22888 for ac_config_target in $ac_config_targets
22889 do
22890 case $ac_config_target in
22891 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22892 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22893 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22894 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22895 "sxpm/Makefile") CONFIG_FILES="$CONFIG_FILES sxpm/Makefile" ;;
22896 "cxpm/Makefile") CONFIG_FILES="$CONFIG_FILES cxpm/Makefile" ;;
22897 "xpm.pc") CONFIG_FILES="$CONFIG_FILES xpm.pc" ;;
22898
22899 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22900 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22901 { (exit 1); exit 1; }; };;
22902 esac
22903 done
22904
22905
22906 # If the user did not use the arguments to specify the items to instantiate,
22907 # then the envvar interface is used. Set only those that are not.
22908 # We use the long form for the default assignment because of an extremely
22909 # bizarre bug on SunOS 4.1.3.
22910 if $ac_need_defaults; then
22911 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22912 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22913 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22914 fi
22915
22916 # Have a temporary directory for convenience. Make it in the build tree
22917 # simply because there is no reason against having it here, and in addition,
22918 # creating and moving files from /tmp can sometimes cause problems.
22919 # Hook for its removal unless debugging.
22920 # Note that there is a small window in which the directory will not be cleaned:
22921 # after its creation but before its name has been assigned to `$tmp'.
22922 $debug ||
22923 {
22924 tmp=
22925 trap 'exit_status=$?
22926 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22927 ' 0
22928 trap '{ (exit 1); exit 1; }' 1 2 13 15
22929 }
22930 # Create a (secure) tmp directory for tmp files.
22931
22932 {
22933 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22934 test -n "$tmp" && test -d "$tmp"
22935 } ||
22936 {
22937 tmp=./conf$$-$RANDOM
22938 (umask 077 && mkdir "$tmp")
22939 } ||
22940 {
22941 $as_echo "$as_me: cannot create a temporary directory in ." >&2
22942 { (exit 1); exit 1; }
22943 }
22944
22945 # Set up the scripts for CONFIG_FILES section.
22946 # No need to generate them if there are no CONFIG_FILES.
22947 # This happens for instance with `./config.status config.h'.
22948 if test -n "$CONFIG_FILES"; then
22949
22950
22951 ac_cr='
'
22953 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22954 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22955 ac_cs_awk_cr='\\r'
22956 else
22957 ac_cs_awk_cr=$ac_cr
22958 fi
22959
22960 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22961 _ACEOF
22962
22963
22964 {
22965 echo "cat >conf$$subs.awk <<_ACEOF" &&
22966 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22967 echo "_ACEOF"
22968 } >conf$$subs.sh ||
22969 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22970 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22971 { (exit 1); exit 1; }; }
22972 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22973 ac_delim='%!_!# '
22974 for ac_last_try in false false false false false :; do
22975 . ./conf$$subs.sh ||
22976 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22977 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22978 { (exit 1); exit 1; }; }
22979
22980 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22981 if test $ac_delim_n = $ac_delim_num; then
22982 break
22983 elif $ac_last_try; then
22984 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22985 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22986 { (exit 1); exit 1; }; }
22987 else
22988 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22989 fi
22990 done
22991 rm -f conf$$subs.sh
22992
22993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22994 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22995 _ACEOF
22996 sed -n '
22997 h
22998 s/^/S["/; s/!.*/"]=/
22999 p
23000 g
23001 s/^[^!]*!//
23002 :repl
23003 t repl
23004 s/'"$ac_delim"'$//
23005 t delim
23006 :nl
23007 h
23008 s/\(.\{148\}\).*/\1/
23009 t more1
23010 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23011 p
23012 n
23013 b repl
23014 :more1
23015 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23016 p
23017 g
23018 s/.\{148\}//
23019 t nl
23020 :delim
23021 h
23022 s/\(.\{148\}\).*/\1/
23023 t more2
23024 s/["\\]/\\&/g; s/^/"/; s/$/"/
23025 p
23026 b
23027 :more2
23028 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23029 p
23030 g
23031 s/.\{148\}//
23032 t delim
23033 ' <conf$$subs.awk | sed '
23034 /^[^""]/{
23035 N
23036 s/\n//
23037 }
23038 ' >>$CONFIG_STATUS || ac_write_fail=1
23039 rm -f conf$$subs.awk
23040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23041 _ACAWK
23042 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23043 for (key in S) S_is_set[key] = 1
23044 FS = ""
23045
23046 }
23047 {
23048 line = $ 0
23049 nfields = split(line, field, "@")
23050 substed = 0
23051 len = length(field[1])
23052 for (i = 2; i < nfields; i++) {
23053 key = field[i]
23054 keylen = length(key)
23055 if (S_is_set[key]) {
23056 value = S[key]
23057 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23058 len += length(value) + length(field[++i])
23059 substed = 1
23060 } else
23061 len += 1 + keylen
23062 }
23063
23064 print line
23065 }
23066
23067 _ACAWK
23068 _ACEOF
23069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23070 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23071 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23072 else
23073 cat
23074 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23075 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
23076 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
23077 { (exit 1); exit 1; }; }
23078 _ACEOF
23079
23080 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23081 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23082 # trailing colons and then remove the whole line if VPATH becomes empty
23083 # (actually we leave an empty line to preserve line numbers).
23084 if test "x$srcdir" = x.; then
23085 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23086 s/:*\$(srcdir):*/:/
23087 s/:*\${srcdir}:*/:/
23088 s/:*@srcdir@:*/:/
23089 s/^\([^=]*=[ ]*\):*/\1/
23090 s/:*$//
23091 s/^[^=]*=[ ]*$//
23092 }'
23093 fi
23094
23095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23096 fi # test -n "$CONFIG_FILES"
23097
23098 # Set up the scripts for CONFIG_HEADERS section.
23099 # No need to generate them if there are no CONFIG_HEADERS.
23100 # This happens for instance with `./config.status Makefile'.
23101 if test -n "$CONFIG_HEADERS"; then
23102 cat >"$tmp/defines.awk" <<\_ACAWK ||
23103 BEGIN {
23104 _ACEOF
23105
23106 # Transform confdefs.h into an awk script `defines.awk', embedded as
23107 # here-document in config.status, that substitutes the proper values into
23108 # config.h.in to produce config.h.
23109
23110 # Create a delimiter string that does not exist in confdefs.h, to ease
23111 # handling of long lines.
23112 ac_delim='%!_!# '
23113 for ac_last_try in false false :; do
23114 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23115 if test -z "$ac_t"; then
23116 break
23117 elif $ac_last_try; then
23118 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
23119 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
23120 { (exit 1); exit 1; }; }
23121 else
23122 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23123 fi
23124 done
23125
23126 # For the awk script, D is an array of macro values keyed by name,
23127 # likewise P contains macro parameters if any. Preserve backslash
23128 # newline sequences.
23129
23130 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23131 sed -n '
23132 s/.\{148\}/&'"$ac_delim"'/g
23133 t rset
23134 :rset
23135 s/^[ ]*#[ ]*define[ ][ ]*/ /
23136 t def
23137 d
23138 :def
23139 s/\\$//
23140 t bsnl
23141 s/["\\]/\\&/g
23142 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23143 D["\1"]=" \3"/p
23144 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23145 d
23146 :bsnl
23147 s/["\\]/\\&/g
23148 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23149 D["\1"]=" \3\\\\\\n"\\/p
23150 t cont
23151 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23152 t cont
23153 d
23154 :cont
23155 n
23156 s/.\{148\}/&'"$ac_delim"'/g
23157 t clear
23158 :clear
23159 s/\\$//
23160 t bsnlc
23161 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23162 d
23163 :bsnlc
23164 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23165 b cont
23166 ' <confdefs.h | sed '
23167 s/'"$ac_delim"'/"\\\
23168 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23169
23170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23171 for (key in D) D_is_set[key] = 1
23172 FS = ""
23173 }
23174 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23175 line = \$ 0
23176 split(line, arg, " ")
23177 if (arg[1] == "#") {
23178 defundef = arg[2]
23179 mac1 = arg[3]
23180 } else {
23181 defundef = substr(arg[1], 2)
23182 mac1 = arg[2]
23183 }
23184 split(mac1, mac2, "(") #)
23185 macro = mac2[1]
23186 prefix = substr(line, 1, index(line, defundef) - 1)
23187 if (D_is_set[macro]) {
23188 # Preserve the white space surrounding the "#".
23189 print prefix "define", macro P[macro] D[macro]
23190 next
23191 } else {
23192 # Replace #undef with comments. This is necessary, for example,
23193 # in the case of _POSIX_SOURCE, which is predefined and required
23194 # on some systems where configure will not decide to define it.
23195 if (defundef == "undef") {
23196 print "/*", prefix defundef, macro, "*/"
23197 next
23198 }
23199 }
23200 }
23201 { print }
23202 _ACAWK
23203 _ACEOF
23204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23205 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
23206 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
23207 { (exit 1); exit 1; }; }
23208 fi # test -n "$CONFIG_HEADERS"
23209
23210
23211 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23212 shift
23213 for ac_tag
23214 do
23215 case $ac_tag in
23216 :[FHLC]) ac_mode=$ac_tag; continue;;
23217 esac
23218 case $ac_mode$ac_tag in
23219 :[FHL]*:*);;
23220 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
23221 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
23222 { (exit 1); exit 1; }; };;
23223 :[FH]-) ac_tag=-:-;;
23224 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23225 esac
23226 ac_save_IFS=$IFS
23227 IFS=:
23228 set x $ac_tag
23229 IFS=$ac_save_IFS
23230 shift
23231 ac_file=$1
23232 shift
23233
23234 case $ac_mode in
23235 :L) ac_source=$1;;
23236 :[FH])
23237 ac_file_inputs=
23238 for ac_f
23239 do
23240 case $ac_f in
23241 -) ac_f="$tmp/stdin";;
23242 *) # Look for the file first in the build tree, then in the source tree
23243 # (if the path is not absolute). The absolute path cannot be DOS-style,
23244 # because $ac_f cannot contain `:'.
23245 test -f "$ac_f" ||
23246 case $ac_f in
23247 [\\/$]*) false;;
23248 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23249 esac ||
23250 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23251 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23252 { (exit 1); exit 1; }; };;
23253 esac
23254 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23255 ac_file_inputs="$ac_file_inputs '$ac_f'"
23256 done
23257
23258 # Let's still pretend it is `configure' which instantiates (i.e., don't
23259 # use $as_me), people would be surprised to read:
23260 # /* config.h. Generated by config.status. */
23261 configure_input='Generated from '`
23262 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23263 `' by configure.'
23264 if test x"$ac_file" != x-; then
23265 configure_input="$ac_file. $configure_input"
23266 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
23267 $as_echo "$as_me: creating $ac_file" >&6;}
23268 fi
23269 # Neutralize special characters interpreted by sed in replacement strings.
23270 case $configure_input in #(
23271 *\&* | *\|* | *\\* )
23272 ac_sed_conf_input=`$as_echo "$configure_input" |
23273 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23274 *) ac_sed_conf_input=$configure_input;;
23275 esac
23276
23277 case $ac_tag in
23278 *:-:* | *:-) cat >"$tmp/stdin" \
23279 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23280 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23281 { (exit 1); exit 1; }; } ;;
23282 esac
23283 ;;
23284 esac
23285
23286 ac_dir=`$as_dirname -- "$ac_file" ||
23287 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23288 X"$ac_file" : 'X\(//\)[^/]' \| \
23289 X"$ac_file" : 'X\(//\)$' \| \
23290 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23291 $as_echo X"$ac_file" |
23292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23293 s//\1/
23294 q
23295 }
23296 /^X\(\/\/\)[^/].*/{
23297 s//\1/
23298 q
23299 }
23300 /^X\(\/\/\)$/{
23301 s//\1/
23302 q
23303 }
23304 /^X\(\/\).*/{
23305 s//\1/
23306 q
23307 }
23308 s/.*/./; q'`
23309 { as_dir="$ac_dir"
23310 case $as_dir in #(
23311 -*) as_dir=./$as_dir;;
23312 esac
23313 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23314 as_dirs=
23315 while :; do
23316 case $as_dir in #(
23317 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23318 *) as_qdir=$as_dir;;
23319 esac
23320 as_dirs="'$as_qdir' $as_dirs"
23321 as_dir=`$as_dirname -- "$as_dir" ||
23322 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23323 X"$as_dir" : 'X\(//\)[^/]' \| \
23324 X"$as_dir" : 'X\(//\)$' \| \
23325 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23326 $as_echo X"$as_dir" |
23327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23328 s//\1/
23329 q
23330 }
23331 /^X\(\/\/\)[^/].*/{
23332 s//\1/
23333 q
23334 }
23335 /^X\(\/\/\)$/{
23336 s//\1/
23337 q
23338 }
23339 /^X\(\/\).*/{
23340 s//\1/
23341 q
23342 }
23343 s/.*/./; q'`
23344 test -d "$as_dir" && break
23345 done
23346 test -z "$as_dirs" || eval "mkdir $as_dirs"
23347 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23348 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23349 { (exit 1); exit 1; }; }; }
23350 ac_builddir=.
23351
23352 case "$ac_dir" in
23353 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23354 *)
23355 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23356 # A ".." for each directory in $ac_dir_suffix.
23357 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23358 case $ac_top_builddir_sub in
23359 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23360 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23361 esac ;;
23362 esac
23363 ac_abs_top_builddir=$ac_pwd
23364 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23365 # for backward compatibility:
23366 ac_top_builddir=$ac_top_build_prefix
23367
23368 case $srcdir in
23369 .) # We are building in place.
23370 ac_srcdir=.
23371 ac_top_srcdir=$ac_top_builddir_sub
23372 ac_abs_top_srcdir=$ac_pwd ;;
23373 [\\/]* | ?:[\\/]* ) # Absolute name.
23374 ac_srcdir=$srcdir$ac_dir_suffix;
23375 ac_top_srcdir=$srcdir
23376 ac_abs_top_srcdir=$srcdir ;;
23377 *) # Relative name.
23378 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23379 ac_top_srcdir=$ac_top_build_prefix$srcdir
23380 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23381 esac
23382 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23383
23384
23385 case $ac_mode in
23386 :F)
23387 #
23388 # CONFIG_FILE
23389 #
23390
23391 case $INSTALL in
23392 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23393 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23394 esac
23395 ac_MKDIR_P=$MKDIR_P
23396 case $MKDIR_P in
23397 [\\/$]* | ?:[\\/]* ) ;;
23398 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23399 esac
23400 _ACEOF
23401
23402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23403 # If the template does not know about datarootdir, expand it.
23404 # FIXME: This hack should be removed a few years after 2.60.
23405 ac_datarootdir_hack=; ac_datarootdir_seen=
23406
23407 ac_sed_dataroot='
23408 /datarootdir/ {
23409 p
23410 q
23411 }
23412 /@datadir@/p
23413 /@docdir@/p
23414 /@infodir@/p
23415 /@localedir@/p
23416 /@mandir@/p
23417 '
23418 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23419 *datarootdir*) ac_datarootdir_seen=yes;;
23420 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23421 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23422 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23423 _ACEOF
23424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23425 ac_datarootdir_hack='
23426 s&@datadir@&$datadir&g
23427 s&@docdir@&$docdir&g
23428 s&@infodir@&$infodir&g
23429 s&@localedir@&$localedir&g
23430 s&@mandir@&$mandir&g
23431 s&\\\${datarootdir}&$datarootdir&g' ;;
23432 esac
23433 _ACEOF
23434
23435 # Neutralize VPATH when `$srcdir' = `.'.
23436 # Shell code in configure.ac might set extrasub.
23437 # FIXME: do we really want to maintain this feature?
23438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23439 ac_sed_extra="$ac_vpsub
23440 $extrasub
23441 _ACEOF
23442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23443 :t
23444 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23445 s|@configure_input@|$ac_sed_conf_input|;t t
23446 s&@top_builddir@&$ac_top_builddir_sub&;t t
23447 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23448 s&@srcdir@&$ac_srcdir&;t t
23449 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23450 s&@top_srcdir@&$ac_top_srcdir&;t t
23451 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23452 s&@builddir@&$ac_builddir&;t t
23453 s&@abs_builddir@&$ac_abs_builddir&;t t
23454 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23455 s&@INSTALL@&$ac_INSTALL&;t t
23456 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23457 $ac_datarootdir_hack
23458 "
23459 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23460 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23461 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23462 { (exit 1); exit 1; }; }
23463
23464 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23465 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23466 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23467 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23468 which seems to be undefined. Please make sure it is defined." >&5
23469 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23470 which seems to be undefined. Please make sure it is defined." >&2;}
23471
23472 rm -f "$tmp/stdin"
23473 case $ac_file in
23474 -) cat "$tmp/out" && rm -f "$tmp/out";;
23475 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23476 esac \
23477 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23478 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23479 { (exit 1); exit 1; }; }
23480 ;;
23481 :H)
23482 #
23483 # CONFIG_HEADER
23484 #
23485 if test x"$ac_file" != x-; then
23486 {
23487 $as_echo "/* $configure_input */" \
23488 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23489 } >"$tmp/config.h" \
23490 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23491 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23492 { (exit 1); exit 1; }; }
23493 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23494 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23495 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23496 else
23497 rm -f "$ac_file"
23498 mv "$tmp/config.h" "$ac_file" \
23499 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23500 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23501 { (exit 1); exit 1; }; }
23502 fi
23503 else
23504 $as_echo "/* $configure_input */" \
23505 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23506 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23507 $as_echo "$as_me: error: could not create -" >&2;}
23508 { (exit 1); exit 1; }; }
23509 fi
23510 # Compute "$ac_file"'s index in $config_headers.
23511 _am_arg="$ac_file"
23512 _am_stamp_count=1
23513 for _am_header in $config_headers :; do
23514 case $_am_header in
23515 $_am_arg | $_am_arg:* )
23516 break ;;
23517 * )
23518 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23519 esac
23520 done
23521 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23522 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23523 X"$_am_arg" : 'X\(//\)[^/]' \| \
23524 X"$_am_arg" : 'X\(//\)$' \| \
23525 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23526 $as_echo X"$_am_arg" |
23527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23528 s//\1/
23529 q
23530 }
23531 /^X\(\/\/\)[^/].*/{
23532 s//\1/
23533 q
23534 }
23535 /^X\(\/\/\)$/{
23536 s//\1/
23537 q
23538 }
23539 /^X\(\/\).*/{
23540 s//\1/
23541 q
23542 }
23543 s/.*/./; q'`/stamp-h$_am_stamp_count
23544 ;;
23545
23546 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23547 $as_echo "$as_me: executing $ac_file commands" >&6;}
23548 ;;
23549 esac
23550
23551
23552 case $ac_file$ac_mode in
23553 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23554 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23555 # are listed without --file. Let's play safe and only enable the eval
23556 # if we detect the quoting.
23557 case $CONFIG_FILES in
23558 *\'*) eval set x "$CONFIG_FILES" ;;
23559 *) set x $CONFIG_FILES ;;
23560 esac
23561 shift
23562 for mf
23563 do
23564 # Strip MF so we end up with the name of the file.
23565 mf=`echo "$mf" | sed -e 's/:.*$//'`
23566 # Check whether this is an Automake generated Makefile or not.
23567 # We used to match only the files named `Makefile.in', but
23568 # some people rename them; so instead we look at the file content.
23569 # Grep'ing the first line is not enough: some people post-process
23570 # each Makefile.in and add a new line on top of each file to say so.
23571 # Grep'ing the whole file is not good either: AIX grep has a line
23572 # limit of 2048, but all sed's we know have understand at least 4000.
23573 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23574 dirpart=`$as_dirname -- "$mf" ||
23575 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23576 X"$mf" : 'X\(//\)[^/]' \| \
23577 X"$mf" : 'X\(//\)$' \| \
23578 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23579 $as_echo X"$mf" |
23580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23581 s//\1/
23582 q
23583 }
23584 /^X\(\/\/\)[^/].*/{
23585 s//\1/
23586 q
23587 }
23588 /^X\(\/\/\)$/{
23589 s//\1/
23590 q
23591 }
23592 /^X\(\/\).*/{
23593 s//\1/
23594 q
23595 }
23596 s/.*/./; q'`
23597 else
23598 continue
23599 fi
23600 # Extract the definition of DEPDIR, am__include, and am__quote
23601 # from the Makefile without running `make'.
23602 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23603 test -z "$DEPDIR" && continue
23604 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23605 test -z "am__include" && continue
23606 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23607 # When using ansi2knr, U may be empty or an underscore; expand it
23608 U=`sed -n 's/^U = //p' < "$mf"`
23609 # Find all dependency output files, they are included files with
23610 # $(DEPDIR) in their names. We invoke sed twice because it is the
23611 # simplest approach to changing $(DEPDIR) to its actual value in the
23612 # expansion.
23613 for file in `sed -n "
23614 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23615 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23616 # Make sure the directory exists.
23617 test -f "$dirpart/$file" && continue
23618 fdir=`$as_dirname -- "$file" ||
23619 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23620 X"$file" : 'X\(//\)[^/]' \| \
23621 X"$file" : 'X\(//\)$' \| \
23622 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23623 $as_echo X"$file" |
23624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23625 s//\1/
23626 q
23627 }
23628 /^X\(\/\/\)[^/].*/{
23629 s//\1/
23630 q
23631 }
23632 /^X\(\/\/\)$/{
23633 s//\1/
23634 q
23635 }
23636 /^X\(\/\).*/{
23637 s//\1/
23638 q
23639 }
23640 s/.*/./; q'`
23641 { as_dir=$dirpart/$fdir
23642 case $as_dir in #(
23643 -*) as_dir=./$as_dir;;
23644 esac
23645 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23646 as_dirs=
23647 while :; do
23648 case $as_dir in #(
23649 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23650 *) as_qdir=$as_dir;;
23651 esac
23652 as_dirs="'$as_qdir' $as_dirs"
23653 as_dir=`$as_dirname -- "$as_dir" ||
23654 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23655 X"$as_dir" : 'X\(//\)[^/]' \| \
23656 X"$as_dir" : 'X\(//\)$' \| \
23657 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23658 $as_echo X"$as_dir" |
23659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23660 s//\1/
23661 q
23662 }
23663 /^X\(\/\/\)[^/].*/{
23664 s//\1/
23665 q
23666 }
23667 /^X\(\/\/\)$/{
23668 s//\1/
23669 q
23670 }
23671 /^X\(\/\).*/{
23672 s//\1/
23673 q
23674 }
23675 s/.*/./; q'`
23676 test -d "$as_dir" && break
23677 done
23678 test -z "$as_dirs" || eval "mkdir $as_dirs"
23679 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23680 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23681 { (exit 1); exit 1; }; }; }
23682 # echo "creating $dirpart/$file"
23683 echo '# dummy' > "$dirpart/$file"
23684 done
23685 done
23686 }
23687 ;;
23688
23689 esac
23690 done # for ac_tag
23691
23692
23693 { (exit 0); exit 0; }
23694 _ACEOF
23695 chmod +x $CONFIG_STATUS
23696 ac_clean_files=$ac_clean_files_save
23697
23698 test $ac_write_fail = 0 ||
23699 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23700 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23701 { (exit 1); exit 1; }; }
23702
23703
23704 # configure is writing to config.log, and then calls config.status.
23705 # config.status does its own redirection, appending to config.log.
23706 # Unfortunately, on DOS this fails, as config.log is still kept open
23707 # by configure, so config.status won't be able to write to it; its
23708 # output is simply discarded. So we exec the FD to /dev/null,
23709 # effectively closing config.log, so it can be properly (re)opened and
23710 # appended to by config.status. When coming back to configure, we
23711 # need to make the FD available again.
23712 if test "$no_create" != yes; then
23713 ac_cs_success=:
23714 ac_config_status_args=
23715 test "$silent" = yes &&
23716 ac_config_status_args="$ac_config_status_args --quiet"
23717 exec 5>/dev/null
23718 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23719 exec 5>>config.log
23720 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23721 # would make configure fail if this is the last instruction.
23722 $ac_cs_success || { (exit 1); exit 1; }
23723 fi
23724 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23725 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23726 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23727 fi
23728
23729