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.62 for xf86-input-ws 1.3.0.
4 #
5 # Report bugs to <http://www.openbsd.org/>.
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='xf86-input-ws'
752 PACKAGE_TARNAME='xf86-input-ws'
753 PACKAGE_VERSION='1.3.0'
754 PACKAGE_STRING='xf86-input-ws 1.3.0'
755 PACKAGE_BUGREPORT='http://www.openbsd.org/'
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='SHELL
795 PATH_SEPARATOR
796 PACKAGE_NAME
797 PACKAGE_TARNAME
798 PACKAGE_VERSION
799 PACKAGE_STRING
800 PACKAGE_BUGREPORT
801 exec_prefix
802 prefix
803 program_transform_name
804 bindir
805 sbindir
806 libexecdir
807 datarootdir
808 datadir
809 sysconfdir
810 sharedstatedir
811 localstatedir
812 includedir
813 oldincludedir
814 docdir
815 infodir
816 htmldir
817 dvidir
818 pdfdir
819 psdir
820 libdir
821 localedir
822 mandir
823 DEFS
824 ECHO_C
825 ECHO_N
826 ECHO_T
827 LIBS
828 build_alias
829 host_alias
830 target_alias
831 INSTALL_PROGRAM
832 INSTALL_SCRIPT
833 INSTALL_DATA
834 CYGPATH_W
835 PACKAGE
836 VERSION
837 ACLOCAL
838 AUTOCONF
839 AUTOMAKE
840 AUTOHEADER
841 MAKEINFO
842 install_sh
843 STRIP
844 INSTALL_STRIP_PROGRAM
845 mkdir_p
846 AWK
847 SET_MAKE
848 am__leading_dot
849 AMTAR
850 am__tar
851 am__untar
852 MAINTAINER_MODE_TRUE
853 MAINTAINER_MODE_FALSE
854 MAINT
855 build
856 build_cpu
857 build_vendor
858 build_os
859 host
860 host_cpu
861 host_vendor
862 host_os
863 CC
864 CFLAGS
865 LDFLAGS
866 CPPFLAGS
867 ac_ct_CC
868 EXEEXT
869 OBJEXT
870 DEPDIR
871 am__include
872 am__quote
873 AMDEP_TRUE
874 AMDEP_FALSE
875 AMDEPBACKSLASH
876 CCDEPMODE
877 am__fastdepCC_TRUE
878 am__fastdepCC_FALSE
879 SED
880 GREP
881 EGREP
882 LN_S
883 ECHO
884 AR
885 RANLIB
886 DSYMUTIL
887 NMEDIT
888 CPP
889 CXX
890 CXXFLAGS
891 ac_ct_CXX
892 CXXDEPMODE
893 am__fastdepCXX_TRUE
894 am__fastdepCXX_FALSE
895 CXXCPP
896 F77
897 FFLAGS
898 ac_ct_F77
899 LIBTOOL
900 CWARNFLAGS
901 CHANGELOG_CMD
902 PKG_CONFIG
903 INSTALL_CMD
904 APP_MAN_SUFFIX
905 LIB_MAN_SUFFIX
906 FILE_MAN_SUFFIX
907 MISC_MAN_SUFFIX
908 DRIVER_MAN_SUFFIX
909 ADMIN_MAN_SUFFIX
910 APP_MAN_DIR
911 LIB_MAN_DIR
912 FILE_MAN_DIR
913 MISC_MAN_DIR
914 DRIVER_MAN_DIR
915 ADMIN_MAN_DIR
916 XORG_MAN_PAGE
917 MAN_SUBSTS
918 AM_DEFAULT_VERBOSITY
919 XORG_CFLAGS
920 XORG_LIBS
921 inputdir
922 sdkdir
923 DRIVER_NAME
924 LIBOBJS
925 LTLIBOBJS'
926 ac_subst_files=''
927 ac_user_opts='
928 enable_option_checking
929 enable_maintainer_mode
930 enable_static
931 enable_shared
932 enable_fast_install
933 enable_dependency_tracking
934 with_gnu_ld
935 enable_libtool_lock
936 with_pic
937 with_tags
938 enable_strict_compilation
939 with_xorg_module_dir
940 with_sdkdir
941 '
942 ac_precious_vars='build_alias
943 host_alias
944 target_alias
945 CC
946 CFLAGS
947 LDFLAGS
948 LIBS
949 CPPFLAGS
950 CPP
951 CXX
952 CXXFLAGS
953 CCC
954 CXXCPP
955 F77
956 FFLAGS
957 PKG_CONFIG
958 XORG_CFLAGS
959 XORG_LIBS'
960
961
962 # Initialize some variables set by options.
963 ac_init_help=
964 ac_init_version=false
965 ac_unrecognized_opts=
966 ac_unrecognized_sep=
967 # The variables have the same names as the options, with
968 # dashes changed to underlines.
969 cache_file=/dev/null
970 exec_prefix=NONE
971 no_create=
972 no_recursion=
973 prefix=NONE
974 program_prefix=NONE
975 program_suffix=NONE
976 program_transform_name=s,x,x,
977 silent=
978 site=
979 srcdir=
980 verbose=
981 x_includes=NONE
982 x_libraries=NONE
983
984 # Installation directory options.
985 # These are left unexpanded so users can "make install exec_prefix=/foo"
986 # and all the variables that are supposed to be based on exec_prefix
987 # by default will actually change.
988 # Use braces instead of parens because sh, perl, etc. also accept them.
989 # (The list follows the same order as the GNU Coding Standards.)
990 bindir='${exec_prefix}/bin'
991 sbindir='${exec_prefix}/sbin'
992 libexecdir='${exec_prefix}/libexec'
993 datarootdir='${prefix}/share'
994 datadir='${datarootdir}'
995 sysconfdir='${prefix}/etc'
996 sharedstatedir='${prefix}/com'
997 localstatedir='${prefix}/var'
998 includedir='${prefix}/include'
999 oldincludedir='/usr/include'
1000 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1001 infodir='${datarootdir}/info'
1002 htmldir='${docdir}'
1003 dvidir='${docdir}'
1004 pdfdir='${docdir}'
1005 psdir='${docdir}'
1006 libdir='${exec_prefix}/lib'
1007 localedir='${datarootdir}/locale'
1008 mandir='${datarootdir}/man'
1009
1010 ac_prev=
1011 ac_dashdash=
1012 for ac_option
1013 do
1014 # If the previous option needs an argument, assign it.
1015 if test -n "$ac_prev"; then
1016 eval $ac_prev=\$ac_option
1017 ac_prev=
1018 continue
1019 fi
1020
1021 case $ac_option in
1022 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023 *) ac_optarg=yes ;;
1024 esac
1025
1026 # Accept the important Cygnus configure options, so we can diagnose typos.
1027
1028 case $ac_dashdash$ac_option in
1029 --)
1030 ac_dashdash=yes ;;
1031
1032 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1033 ac_prev=bindir ;;
1034 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1035 bindir=$ac_optarg ;;
1036
1037 -build | --build | --buil | --bui | --bu)
1038 ac_prev=build_alias ;;
1039 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1040 build_alias=$ac_optarg ;;
1041
1042 -cache-file | --cache-file | --cache-fil | --cache-fi \
1043 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1044 ac_prev=cache_file ;;
1045 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1046 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1047 cache_file=$ac_optarg ;;
1048
1049 --config-cache | -C)
1050 cache_file=config.cache ;;
1051
1052 -datadir | --datadir | --datadi | --datad)
1053 ac_prev=datadir ;;
1054 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1055 datadir=$ac_optarg ;;
1056
1057 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1058 | --dataroo | --dataro | --datar)
1059 ac_prev=datarootdir ;;
1060 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1061 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1062 datarootdir=$ac_optarg ;;
1063
1064 -disable-* | --disable-*)
1065 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1073 *"
1074 "enable_$ac_useropt"
1075 "*) ;;
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1078 esac
1079 eval enable_$ac_useropt=no ;;
1080
1081 -docdir | --docdir | --docdi | --doc | --do)
1082 ac_prev=docdir ;;
1083 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084 docdir=$ac_optarg ;;
1085
1086 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087 ac_prev=dvidir ;;
1088 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089 dvidir=$ac_optarg ;;
1090
1091 -enable-* | --enable-*)
1092 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1096 { (exit 1); exit 1; }; }
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1100 *"
1101 "enable_$ac_useropt"
1102 "*) ;;
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1105 esac
1106 eval enable_$ac_useropt=\$ac_optarg ;;
1107
1108 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1109 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1110 | --exec | --exe | --ex)
1111 ac_prev=exec_prefix ;;
1112 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1113 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1114 | --exec=* | --exe=* | --ex=*)
1115 exec_prefix=$ac_optarg ;;
1116
1117 -gas | --gas | --ga | --g)
1118 # Obsolete; use --with-gas.
1119 with_gas=yes ;;
1120
1121 -help | --help | --hel | --he | -h)
1122 ac_init_help=long ;;
1123 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1124 ac_init_help=recursive ;;
1125 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1126 ac_init_help=short ;;
1127
1128 -host | --host | --hos | --ho)
1129 ac_prev=host_alias ;;
1130 -host=* | --host=* | --hos=* | --ho=*)
1131 host_alias=$ac_optarg ;;
1132
1133 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1134 ac_prev=htmldir ;;
1135 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1136 | --ht=*)
1137 htmldir=$ac_optarg ;;
1138
1139 -includedir | --includedir | --includedi | --included | --include \
1140 | --includ | --inclu | --incl | --inc)
1141 ac_prev=includedir ;;
1142 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1143 | --includ=* | --inclu=* | --incl=* | --inc=*)
1144 includedir=$ac_optarg ;;
1145
1146 -infodir | --infodir | --infodi | --infod | --info | --inf)
1147 ac_prev=infodir ;;
1148 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1149 infodir=$ac_optarg ;;
1150
1151 -libdir | --libdir | --libdi | --libd)
1152 ac_prev=libdir ;;
1153 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1154 libdir=$ac_optarg ;;
1155
1156 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1157 | --libexe | --libex | --libe)
1158 ac_prev=libexecdir ;;
1159 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1160 | --libexe=* | --libex=* | --libe=*)
1161 libexecdir=$ac_optarg ;;
1162
1163 -localedir | --localedir | --localedi | --localed | --locale)
1164 ac_prev=localedir ;;
1165 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1166 localedir=$ac_optarg ;;
1167
1168 -localstatedir | --localstatedir | --localstatedi | --localstated \
1169 | --localstate | --localstat | --localsta | --localst | --locals)
1170 ac_prev=localstatedir ;;
1171 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1172 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1173 localstatedir=$ac_optarg ;;
1174
1175 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1176 ac_prev=mandir ;;
1177 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1178 mandir=$ac_optarg ;;
1179
1180 -nfp | --nfp | --nf)
1181 # Obsolete; use --without-fp.
1182 with_fp=no ;;
1183
1184 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1185 | --no-cr | --no-c | -n)
1186 no_create=yes ;;
1187
1188 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1189 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1190 no_recursion=yes ;;
1191
1192 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1193 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1194 | --oldin | --oldi | --old | --ol | --o)
1195 ac_prev=oldincludedir ;;
1196 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1197 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1198 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1199 oldincludedir=$ac_optarg ;;
1200
1201 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1202 ac_prev=prefix ;;
1203 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1204 prefix=$ac_optarg ;;
1205
1206 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1207 | --program-pre | --program-pr | --program-p)
1208 ac_prev=program_prefix ;;
1209 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1210 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1211 program_prefix=$ac_optarg ;;
1212
1213 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1214 | --program-suf | --program-su | --program-s)
1215 ac_prev=program_suffix ;;
1216 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1217 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1218 program_suffix=$ac_optarg ;;
1219
1220 -program-transform-name | --program-transform-name \
1221 | --program-transform-nam | --program-transform-na \
1222 | --program-transform-n | --program-transform- \
1223 | --program-transform | --program-transfor \
1224 | --program-transfo | --program-transf \
1225 | --program-trans | --program-tran \
1226 | --progr-tra | --program-tr | --program-t)
1227 ac_prev=program_transform_name ;;
1228 -program-transform-name=* | --program-transform-name=* \
1229 | --program-transform-nam=* | --program-transform-na=* \
1230 | --program-transform-n=* | --program-transform-=* \
1231 | --program-transform=* | --program-transfor=* \
1232 | --program-transfo=* | --program-transf=* \
1233 | --program-trans=* | --program-tran=* \
1234 | --progr-tra=* | --program-tr=* | --program-t=*)
1235 program_transform_name=$ac_optarg ;;
1236
1237 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1238 ac_prev=pdfdir ;;
1239 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1240 pdfdir=$ac_optarg ;;
1241
1242 -psdir | --psdir | --psdi | --psd | --ps)
1243 ac_prev=psdir ;;
1244 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1245 psdir=$ac_optarg ;;
1246
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1249 silent=yes ;;
1250
1251 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1252 ac_prev=sbindir ;;
1253 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1254 | --sbi=* | --sb=*)
1255 sbindir=$ac_optarg ;;
1256
1257 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1258 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1259 | --sharedst | --shareds | --shared | --share | --shar \
1260 | --sha | --sh)
1261 ac_prev=sharedstatedir ;;
1262 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1263 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1264 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1265 | --sha=* | --sh=*)
1266 sharedstatedir=$ac_optarg ;;
1267
1268 -site | --site | --sit)
1269 ac_prev=site ;;
1270 -site=* | --site=* | --sit=*)
1271 site=$ac_optarg ;;
1272
1273 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1274 ac_prev=srcdir ;;
1275 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1276 srcdir=$ac_optarg ;;
1277
1278 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1279 | --syscon | --sysco | --sysc | --sys | --sy)
1280 ac_prev=sysconfdir ;;
1281 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1282 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1283 sysconfdir=$ac_optarg ;;
1284
1285 -target | --target | --targe | --targ | --tar | --ta | --t)
1286 ac_prev=target_alias ;;
1287 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1288 target_alias=$ac_optarg ;;
1289
1290 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1291 verbose=yes ;;
1292
1293 -version | --version | --versio | --versi | --vers | -V)
1294 ac_init_version=: ;;
1295
1296 -with-* | --with-*)
1297 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1301 { (exit 1); exit 1; }; }
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1305 *"
1306 "with_$ac_useropt"
1307 "*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=\$ac_optarg ;;
1312
1313 -without-* | --without-*)
1314 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1318 { (exit 1); exit 1; }; }
1319 ac_useropt_orig=$ac_useropt
1320 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321 case $ac_user_opts in
1322 *"
1323 "with_$ac_useropt"
1324 "*) ;;
1325 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1326 ac_unrecognized_sep=', ';;
1327 esac
1328 eval with_$ac_useropt=no ;;
1329
1330 --x)
1331 # Obsolete; use --with-x.
1332 with_x=yes ;;
1333
1334 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1335 | --x-incl | --x-inc | --x-in | --x-i)
1336 ac_prev=x_includes ;;
1337 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1338 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1339 x_includes=$ac_optarg ;;
1340
1341 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1342 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1343 ac_prev=x_libraries ;;
1344 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1345 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1346 x_libraries=$ac_optarg ;;
1347
1348 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1349 Try \`$0 --help' for more information." >&2
1350 { (exit 1); exit 1; }; }
1351 ;;
1352
1353 *=*)
1354 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1355 # Reject names that are not valid shell variable names.
1356 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1357 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1358 { (exit 1); exit 1; }; }
1359 eval $ac_envvar=\$ac_optarg
1360 export $ac_envvar ;;
1361
1362 *)
1363 # FIXME: should be removed in autoconf 3.0.
1364 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1365 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1366 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1367 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1368 ;;
1369
1370 esac
1371 done
1372
1373 if test -n "$ac_prev"; then
1374 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1375 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1376 { (exit 1); exit 1; }; }
1377 fi
1378
1379 if test -n "$ac_unrecognized_opts"; then
1380 case $enable_option_checking in
1381 no) ;;
1382 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1383 { (exit 1); exit 1; }; } ;;
1384 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1385 esac
1386 fi
1387
1388 # Check all directory arguments for consistency.
1389 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1390 datadir sysconfdir sharedstatedir localstatedir includedir \
1391 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1392 libdir localedir mandir
1393 do
1394 eval ac_val=\$$ac_var
1395 # Remove trailing slashes.
1396 case $ac_val in
1397 */ )
1398 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1399 eval $ac_var=\$ac_val;;
1400 esac
1401 # Be sure to have absolute directory names.
1402 case $ac_val in
1403 [\\/$]* | ?:[\\/]* ) continue;;
1404 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1405 esac
1406 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1407 { (exit 1); exit 1; }; }
1408 done
1409
1410 # There might be people who depend on the old broken behavior: `$host'
1411 # used to hold the argument of --host etc.
1412 # FIXME: To remove some day.
1413 build=$build_alias
1414 host=$host_alias
1415 target=$target_alias
1416
1417 # FIXME: To remove some day.
1418 if test "x$host_alias" != x; then
1419 if test "x$build_alias" = x; then
1420 cross_compiling=maybe
1421 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1422 If a cross compiler is detected then cross compile mode will be used." >&2
1423 elif test "x$build_alias" != "x$host_alias"; then
1424 cross_compiling=yes
1425 fi
1426 fi
1427
1428 ac_tool_prefix=
1429 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1430
1431 test "$silent" = yes && exec 6>/dev/null
1432
1433
1434 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1435 ac_ls_di=`ls -di .` &&
1436 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1437 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1438 { (exit 1); exit 1; }; }
1439 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1440 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1441 { (exit 1); exit 1; }; }
1442
1443
1444 # Find the source files, if location was not specified.
1445 if test -z "$srcdir"; then
1446 ac_srcdir_defaulted=yes
1447 # Try the directory containing this script, then the parent directory.
1448 ac_confdir=`$as_dirname -- "$as_myself" ||
1449 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450 X"$as_myself" : 'X\(//\)[^/]' \| \
1451 X"$as_myself" : 'X\(//\)$' \| \
1452 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453 $as_echo X"$as_myself" |
1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1455 s//\1/
1456 q
1457 }
1458 /^X\(\/\/\)[^/].*/{
1459 s//\1/
1460 q
1461 }
1462 /^X\(\/\/\)$/{
1463 s//\1/
1464 q
1465 }
1466 /^X\(\/\).*/{
1467 s//\1/
1468 q
1469 }
1470 s/.*/./; q'`
1471 srcdir=$ac_confdir
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 srcdir=..
1474 fi
1475 else
1476 ac_srcdir_defaulted=no
1477 fi
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1481 { (exit 1); exit 1; }; }
1482 fi
1483 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1484 ac_abs_confdir=`(
1485 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1486 { (exit 1); exit 1; }; }
1487 pwd)`
1488 # When building in place, set srcdir=.
1489 if test "$ac_abs_confdir" = "$ac_pwd"; then
1490 srcdir=.
1491 fi
1492 # Remove unnecessary trailing slashes from srcdir.
1493 # Double slashes in file names in object file debugging info
1494 # mess up M-x gdb in Emacs.
1495 case $srcdir in
1496 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1497 esac
1498 for ac_var in $ac_precious_vars; do
1499 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_env_${ac_var}_value=\$${ac_var}
1501 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1502 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1503 done
1504
1505 #
1506 # Report the --help message.
1507 #
1508 if test "$ac_init_help" = "long"; then
1509 # Omit some internal or obsolete options to make the list less imposing.
1510 # This message is too long to be a string in the A/UX 3.1 sh.
1511 cat <<_ACEOF
1512 \`configure' configures xf86-input-ws 1.3.0 to adapt to many kinds of systems.
1513
1514 Usage: $0 [OPTION]... [VAR=VALUE]...
1515
1516 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1517 VAR=VALUE. See below for descriptions of some of the useful variables.
1518
1519 Defaults for the options are specified in brackets.
1520
1521 Configuration:
1522 -h, --help display this help and exit
1523 --help=short display options specific to this package
1524 --help=recursive display the short help of all the included packages
1525 -V, --version display version information and exit
1526 -q, --quiet, --silent do not print \`checking...' messages
1527 --cache-file=FILE cache test results in FILE [disabled]
1528 -C, --config-cache alias for \`--cache-file=config.cache'
1529 -n, --no-create do not create output files
1530 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1531
1532 Installation directories:
1533 --prefix=PREFIX install architecture-independent files in PREFIX
1534 [$ac_default_prefix]
1535 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1536 [PREFIX]
1537
1538 By default, \`make install' will install all the files in
1539 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1540 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1541 for instance \`--prefix=\$HOME'.
1542
1543 For better control, use the options below.
1544
1545 Fine tuning of the installation directories:
1546 --bindir=DIR user executables [EPREFIX/bin]
1547 --sbindir=DIR system admin executables [EPREFIX/sbin]
1548 --libexecdir=DIR program executables [EPREFIX/libexec]
1549 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1550 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1551 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1552 --libdir=DIR object code libraries [EPREFIX/lib]
1553 --includedir=DIR C header files [PREFIX/include]
1554 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1555 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1556 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1557 --infodir=DIR info documentation [DATAROOTDIR/info]
1558 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1559 --mandir=DIR man documentation [DATAROOTDIR/man]
1560 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-input-ws]
1561 --htmldir=DIR html documentation [DOCDIR]
1562 --dvidir=DIR dvi documentation [DOCDIR]
1563 --pdfdir=DIR pdf documentation [DOCDIR]
1564 --psdir=DIR ps documentation [DOCDIR]
1565 _ACEOF
1566
1567 cat <<\_ACEOF
1568
1569 Program names:
1570 --program-prefix=PREFIX prepend PREFIX to installed program names
1571 --program-suffix=SUFFIX append SUFFIX to installed program names
1572 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1573
1574 System types:
1575 --build=BUILD configure for building on BUILD [guessed]
1576 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1577 _ACEOF
1578 fi
1579
1580 if test -n "$ac_init_help"; then
1581 case $ac_init_help in
1582 short | recursive ) echo "Configuration of xf86-input-ws 1.3.0:";;
1583 esac
1584 cat <<\_ACEOF
1585
1586 Optional Features:
1587 --disable-option-checking ignore unrecognized --enable/--with options
1588 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1589 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1590 --enable-maintainer-mode enable make rules and dependencies not useful
1591 (and sometimes confusing) to the casual installer
1592 --enable-static[=PKGS] build static libraries [default=no]
1593 --enable-shared[=PKGS] build shared libraries [default=yes]
1594 --enable-fast-install[=PKGS]
1595 optimize for fast installation [default=yes]
1596 --disable-dependency-tracking speeds up one-time build
1597 --enable-dependency-tracking do not reject slow dependency extractors
1598 --disable-libtool-lock avoid locking (might break parallel builds)
1599 --enable-strict-compilation
1600 Enable all warnings from compiler and make them
1601 errors (default: disabled)
1602
1603 Optional Packages:
1604 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1605 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1606 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1607 --with-pic try to use only PIC/non-PIC objects [default=use
1608 both]
1609 --with-tags[=TAGS] include additional configurations [automatic]
1610 --with-xorg-module-dir=DIR
1611 Default xorg module directory
1612 [default=$libdir/xorg/modules]
1613
1614
1615 Some influential environment variables:
1616 CC C compiler command
1617 CFLAGS C compiler flags
1618 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1619 nonstandard directory <lib dir>
1620 LIBS libraries to pass to the linker, e.g. -l<library>
1621 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1622 you have headers in a nonstandard directory <include dir>
1623 CPP C preprocessor
1624 CXX C++ compiler command
1625 CXXFLAGS C++ compiler flags
1626 CXXCPP C++ preprocessor
1627 F77 Fortran 77 compiler command
1628 FFLAGS Fortran 77 compiler flags
1629 PKG_CONFIG path to pkg-config utility
1630 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1631 XORG_LIBS linker flags for XORG, overriding pkg-config
1632
1633 Use these variables to override the choices made by `configure' or to help
1634 it to find libraries and programs with nonstandard names/locations.
1635
1636 Report bugs to <http://www.openbsd.org/>.
1637 _ACEOF
1638 ac_status=$?
1639 fi
1640
1641 if test "$ac_init_help" = "recursive"; then
1642 # If there are subdirs, report their specific --help.
1643 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1644 test -d "$ac_dir" ||
1645 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1646 continue
1647 ac_builddir=.
1648
1649 case "$ac_dir" in
1650 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 *)
1652 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1653 # A ".." for each directory in $ac_dir_suffix.
1654 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1655 case $ac_top_builddir_sub in
1656 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1658 esac ;;
1659 esac
1660 ac_abs_top_builddir=$ac_pwd
1661 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1662 # for backward compatibility:
1663 ac_top_builddir=$ac_top_build_prefix
1664
1665 case $srcdir in
1666 .) # We are building in place.
1667 ac_srcdir=.
1668 ac_top_srcdir=$ac_top_builddir_sub
1669 ac_abs_top_srcdir=$ac_pwd ;;
1670 [\\/]* | ?:[\\/]* ) # Absolute name.
1671 ac_srcdir=$srcdir$ac_dir_suffix;
1672 ac_top_srcdir=$srcdir
1673 ac_abs_top_srcdir=$srcdir ;;
1674 *) # Relative name.
1675 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1676 ac_top_srcdir=$ac_top_build_prefix$srcdir
1677 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1678 esac
1679 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1680
1681 cd "$ac_dir" || { ac_status=$?; continue; }
1682 # Check for guested configure.
1683 if test -f "$ac_srcdir/configure.gnu"; then
1684 echo &&
1685 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1686 elif test -f "$ac_srcdir/configure"; then
1687 echo &&
1688 $SHELL "$ac_srcdir/configure" --help=recursive
1689 else
1690 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1691 fi || ac_status=$?
1692 cd "$ac_pwd" || { ac_status=$?; break; }
1693 done
1694 fi
1695
1696 test -n "$ac_init_help" && exit $ac_status
1697 if $ac_init_version; then
1698 cat <<\_ACEOF
1699 xf86-input-ws configure 1.3.0
1700 generated by GNU Autoconf 2.62
1701
1702 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1703 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1704 This configure script is free software; the Free Software Foundation
1705 gives unlimited permission to copy, distribute and modify it.
1706 _ACEOF
1707 exit
1708 fi
1709 cat >config.log <<_ACEOF
1710 This file contains any messages produced by compilers while
1711 running configure, to aid debugging if configure makes a mistake.
1712
1713 It was created by xf86-input-ws $as_me 1.3.0, which was
1714 generated by GNU Autoconf 2.62. Invocation command line was
1715
1716 $ $0 $@
1717
1718 _ACEOF
1719 exec 5>>config.log
1720 {
1721 cat <<_ASUNAME
1722 ## --------- ##
1723 ## Platform. ##
1724 ## --------- ##
1725
1726 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1727 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1728 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1729 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1730 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1731
1732 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1733 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1734
1735 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1736 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1737 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1738 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1739 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1740 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1741 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1742
1743 _ASUNAME
1744
1745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 for as_dir in $PATH
1747 do
1748 IFS=$as_save_IFS
1749 test -z "$as_dir" && as_dir=.
1750 $as_echo "PATH: $as_dir"
1751 done
1752 IFS=$as_save_IFS
1753
1754 } >&5
1755
1756 cat >&5 <<_ACEOF
1757
1758
1759 ## ----------- ##
1760 ## Core tests. ##
1761 ## ----------- ##
1762
1763 _ACEOF
1764
1765
1766 # Keep a trace of the command line.
1767 # Strip out --no-create and --no-recursion so they do not pile up.
1768 # Strip out --silent because we don't want to record it for future runs.
1769 # Also quote any args containing shell meta-characters.
1770 # Make two passes to allow for proper duplicate-argument suppression.
1771 ac_configure_args=
1772 ac_configure_args0=
1773 ac_configure_args1=
1774 ac_must_keep_next=false
1775 for ac_pass in 1 2
1776 do
1777 for ac_arg
1778 do
1779 case $ac_arg in
1780 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1781 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1782 | -silent | --silent | --silen | --sile | --sil)
1783 continue ;;
1784 *\'*)
1785 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1786 esac
1787 case $ac_pass in
1788 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1789 2)
1790 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1791 if test $ac_must_keep_next = true; then
1792 ac_must_keep_next=false # Got value, back to normal.
1793 else
1794 case $ac_arg in
1795 *=* | --config-cache | -C | -disable-* | --disable-* \
1796 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1797 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1798 | -with-* | --with-* | -without-* | --without-* | --x)
1799 case "$ac_configure_args0 " in
1800 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1801 esac
1802 ;;
1803 -* ) ac_must_keep_next=true ;;
1804 esac
1805 fi
1806 ac_configure_args="$ac_configure_args '$ac_arg'"
1807 ;;
1808 esac
1809 done
1810 done
1811 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1812 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1813
1814 # When interrupted or exit'd, cleanup temporary files, and complete
1815 # config.log. We remove comments because anyway the quotes in there
1816 # would cause problems or look ugly.
1817 # WARNING: Use '\'' to represent an apostrophe within the trap.
1818 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1819 trap 'exit_status=$?
1820 # Save into config.log some information that might help in debugging.
1821 {
1822 echo
1823
1824 cat <<\_ASBOX
1825 ## ---------------- ##
1826 ## Cache variables. ##
1827 ## ---------------- ##
1828 _ASBOX
1829 echo
1830 # The following way of writing the cache mishandles newlines in values,
1831 (
1832 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1833 eval ac_val=\$$ac_var
1834 case $ac_val in #(
1835 *${as_nl}*)
1836 case $ac_var in #(
1837 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1838 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1839 esac
1840 case $ac_var in #(
1841 _ | IFS | as_nl) ;; #(
1842 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1843 *) $as_unset $ac_var ;;
1844 esac ;;
1845 esac
1846 done
1847 (set) 2>&1 |
1848 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1849 *${as_nl}ac_space=\ *)
1850 sed -n \
1851 "s/'\''/'\''\\\\'\'''\''/g;
1852 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1853 ;; #(
1854 *)
1855 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1856 ;;
1857 esac |
1858 sort
1859 )
1860 echo
1861
1862 cat <<\_ASBOX
1863 ## ----------------- ##
1864 ## Output variables. ##
1865 ## ----------------- ##
1866 _ASBOX
1867 echo
1868 for ac_var in $ac_subst_vars
1869 do
1870 eval ac_val=\$$ac_var
1871 case $ac_val in
1872 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1873 esac
1874 $as_echo "$ac_var='\''$ac_val'\''"
1875 done | sort
1876 echo
1877
1878 if test -n "$ac_subst_files"; then
1879 cat <<\_ASBOX
1880 ## ------------------- ##
1881 ## File substitutions. ##
1882 ## ------------------- ##
1883 _ASBOX
1884 echo
1885 for ac_var in $ac_subst_files
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 fi
1895
1896 if test -s confdefs.h; then
1897 cat <<\_ASBOX
1898 ## ----------- ##
1899 ## confdefs.h. ##
1900 ## ----------- ##
1901 _ASBOX
1902 echo
1903 cat confdefs.h
1904 echo
1905 fi
1906 test "$ac_signal" != 0 &&
1907 $as_echo "$as_me: caught signal $ac_signal"
1908 $as_echo "$as_me: exit $exit_status"
1909 } >&5
1910 rm -f core *.core core.conftest.* &&
1911 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1912 exit $exit_status
1913 ' 0
1914 for ac_signal in 1 2 13 15; do
1915 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1916 done
1917 ac_signal=0
1918
1919 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1920 rm -f -r conftest* confdefs.h
1921
1922 # Predefined preprocessor variables.
1923
1924 cat >>confdefs.h <<_ACEOF
1925 #define PACKAGE_NAME "$PACKAGE_NAME"
1926 _ACEOF
1927
1928
1929 cat >>confdefs.h <<_ACEOF
1930 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1931 _ACEOF
1932
1933
1934 cat >>confdefs.h <<_ACEOF
1935 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1936 _ACEOF
1937
1938
1939 cat >>confdefs.h <<_ACEOF
1940 #define PACKAGE_STRING "$PACKAGE_STRING"
1941 _ACEOF
1942
1943
1944 cat >>confdefs.h <<_ACEOF
1945 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1946 _ACEOF
1947
1948
1949 # Let the site file select an alternate cache file if it wants to.
1950 # Prefer an explicitly selected file to automatically selected ones.
1951 ac_site_file1=NONE
1952 ac_site_file2=NONE
1953 if test -n "$CONFIG_SITE"; then
1954 ac_site_file1=$CONFIG_SITE
1955 elif test "x$prefix" != xNONE; then
1956 ac_site_file1=$prefix/share/config.site
1957 ac_site_file2=$prefix/etc/config.site
1958 else
1959 ac_site_file1=$ac_default_prefix/share/config.site
1960 ac_site_file2=$ac_default_prefix/etc/config.site
1961 fi
1962 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1963 do
1964 test "x$ac_site_file" = xNONE && continue
1965 if test -r "$ac_site_file"; then
1966 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1967 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1968 sed 's/^/| /' "$ac_site_file" >&5
1969 . "$ac_site_file"
1970 fi
1971 done
1972
1973 if test -r "$cache_file"; then
1974 # Some versions of bash will fail to source /dev/null (special
1975 # files actually), so we avoid doing that.
1976 if test -f "$cache_file"; then
1977 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1978 $as_echo "$as_me: loading cache $cache_file" >&6;}
1979 case $cache_file in
1980 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1981 *) . "./$cache_file";;
1982 esac
1983 fi
1984 else
1985 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1986 $as_echo "$as_me: creating cache $cache_file" >&6;}
1987 >$cache_file
1988 fi
1989
1990 # Check that the precious variables saved in the cache have kept the same
1991 # value.
1992 ac_cache_corrupted=false
1993 for ac_var in $ac_precious_vars; do
1994 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1995 eval ac_new_set=\$ac_env_${ac_var}_set
1996 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1997 eval ac_new_val=\$ac_env_${ac_var}_value
1998 case $ac_old_set,$ac_new_set in
1999 set,)
2000 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2001 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2002 ac_cache_corrupted=: ;;
2003 ,set)
2004 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2005 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2006 ac_cache_corrupted=: ;;
2007 ,);;
2008 *)
2009 if test "x$ac_old_val" != "x$ac_new_val"; then
2010 # differences in whitespace do not lead to failure.
2011 ac_old_val_w=`echo x $ac_old_val`
2012 ac_new_val_w=`echo x $ac_new_val`
2013 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2014 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2015 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2016 ac_cache_corrupted=:
2017 else
2018 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2019 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2020 eval $ac_var=\$ac_old_val
2021 fi
2022 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2023 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2024 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2025 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2026 fi;;
2027 esac
2028 # Pass precious variables to config.status.
2029 if test "$ac_new_set" = set; then
2030 case $ac_new_val in
2031 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2032 *) ac_arg=$ac_var=$ac_new_val ;;
2033 esac
2034 case " $ac_configure_args " in
2035 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2036 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2037 esac
2038 fi
2039 done
2040 if $ac_cache_corrupted; then
2041 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2042 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2043 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2044 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2045 { (exit 1); exit 1; }; }
2046 fi
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072 ac_ext=c
2073 ac_cpp='$CPP $CPPFLAGS'
2074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2077
2078
2079
2080
2081 ac_config_headers="$ac_config_headers config.h"
2082
2083 ac_aux_dir=
2084 for ac_dir in . "$srcdir"/.; do
2085 if test -f "$ac_dir/install-sh"; then
2086 ac_aux_dir=$ac_dir
2087 ac_install_sh="$ac_aux_dir/install-sh -c"
2088 break
2089 elif test -f "$ac_dir/install.sh"; then
2090 ac_aux_dir=$ac_dir
2091 ac_install_sh="$ac_aux_dir/install.sh -c"
2092 break
2093 elif test -f "$ac_dir/shtool"; then
2094 ac_aux_dir=$ac_dir
2095 ac_install_sh="$ac_aux_dir/shtool install -c"
2096 break
2097 fi
2098 done
2099 if test -z "$ac_aux_dir"; then
2100 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2101 $as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2102 { (exit 1); exit 1; }; }
2103 fi
2104
2105 # These three variables are undocumented and unsupported,
2106 # and are intended to be withdrawn in a future Autoconf release.
2107 # They can cause serious problems if a builder's source tree is in a directory
2108 # whose full name contains unusual characters.
2109 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2110 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2111 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2112
2113
2114
2115 # Initialize Automake
2116 am__api_version="1.9"
2117 # Find a good install program. We prefer a C program (faster),
2118 # so one script is as good as another. But avoid the broken or
2119 # incompatible versions:
2120 # SysV /etc/install, /usr/sbin/install
2121 # SunOS /usr/etc/install
2122 # IRIX /sbin/install
2123 # AIX /bin/install
2124 # AmigaOS /C/install, which installs bootblocks on floppy discs
2125 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2126 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2127 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2128 # OS/2's system install, which has a completely different semantic
2129 # ./install, which can be erroneously created by make from ./install.sh.
2130 # Reject install programs that cannot install multiple files.
2131 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2132 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2133 if test -z "$INSTALL"; then
2134 if test "${ac_cv_path_install+set}" = set; then
2135 $as_echo_n "(cached) " >&6
2136 else
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2139 do
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 # Account for people who put trailing slashes in PATH elements.
2143 case $as_dir/ in
2144 ./ | .// | /cC/* | \
2145 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2146 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2147 /usr/ucb/* ) ;;
2148 *)
2149 # OSF1 and SCO ODT 3.0 have their own names for install.
2150 # Don't use installbsd from OSF since it installs stuff as root
2151 # by default.
2152 for ac_prog in ginstall scoinst install; do
2153 for ac_exec_ext in '' $ac_executable_extensions; do
2154 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2155 if test $ac_prog = install &&
2156 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2157 # AIX install. It has an incompatible calling convention.
2158 :
2159 elif test $ac_prog = install &&
2160 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2161 # program-specific install script used by HP pwplus--don't use.
2162 :
2163 else
2164 rm -rf conftest.one conftest.two conftest.dir
2165 echo one > conftest.one
2166 echo two > conftest.two
2167 mkdir conftest.dir
2168 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2169 test -s conftest.one && test -s conftest.two &&
2170 test -s conftest.dir/conftest.one &&
2171 test -s conftest.dir/conftest.two
2172 then
2173 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2174 break 3
2175 fi
2176 fi
2177 fi
2178 done
2179 done
2180 ;;
2181 esac
2182
2183 done
2184 IFS=$as_save_IFS
2185
2186 rm -rf conftest.one conftest.two conftest.dir
2187
2188 fi
2189 if test "${ac_cv_path_install+set}" = set; then
2190 INSTALL=$ac_cv_path_install
2191 else
2192 # As a last resort, use the slow shell script. Don't cache a
2193 # value for INSTALL within a source directory, because that will
2194 # break other packages using the cache if that directory is
2195 # removed, or if the value is a relative name.
2196 INSTALL=$ac_install_sh
2197 fi
2198 fi
2199 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2200 $as_echo "$INSTALL" >&6; }
2201
2202 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2203 # It thinks the first close brace ends the variable substitution.
2204 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2205
2206 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2207
2208 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2209
2210 test "$program_prefix" != NONE &&
2211 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2212 # Use a double $ so make ignores it.
2213 test "$program_suffix" != NONE &&
2214 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2215 # Double any \ or $.
2216 # By default was `s,x,x', remove it if useless.
2217 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2218 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2219
2220 # expand $ac_aux_dir to an absolute path
2221 am_aux_dir=`cd $ac_aux_dir && pwd`
2222
2223 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2224 # Use eval to expand $SHELL
2225 if eval "$MISSING --run true"; then
2226 am_missing_run="$MISSING --run "
2227 else
2228 am_missing_run=
2229 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2230 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2231 fi
2232
2233 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2234 # We used to keeping the `.' as first argument, in order to
2235 # allow $(mkdir_p) to be used without argument. As in
2236 # $(mkdir_p) $(somedir)
2237 # where $(somedir) is conditionally defined. However this is wrong
2238 # for two reasons:
2239 # 1. if the package is installed by a user who cannot write `.'
2240 # make install will fail,
2241 # 2. the above comment should most certainly read
2242 # $(mkdir_p) $(DESTDIR)$(somedir)
2243 # so it does not work when $(somedir) is undefined and
2244 # $(DESTDIR) is not.
2245 # To support the latter case, we have to write
2246 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2247 # so the `.' trick is pointless.
2248 mkdir_p='mkdir -p --'
2249 else
2250 # On NextStep and OpenStep, the `mkdir' command does not
2251 # recognize any option. It will interpret all options as
2252 # directories to create, and then abort because `.' already
2253 # exists.
2254 for d in ./-p ./--version;
2255 do
2256 test -d $d && rmdir $d
2257 done
2258 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2259 if test -f "$ac_aux_dir/mkinstalldirs"; then
2260 mkdir_p='$(mkinstalldirs)'
2261 else
2262 mkdir_p='$(SHELL) $(install_sh) -d'
2263 fi
2264 fi
2265
2266 for ac_prog in gawk mawk nawk awk
2267 do
2268 # Extract the first word of "$ac_prog", so it can be a program name with args.
2269 set dummy $ac_prog; ac_word=$2
2270 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 $as_echo_n "checking for $ac_word... " >&6; }
2272 if test "${ac_cv_prog_AWK+set}" = set; then
2273 $as_echo_n "(cached) " >&6
2274 else
2275 if test -n "$AWK"; then
2276 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2277 else
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 for as_dir in $PATH
2280 do
2281 IFS=$as_save_IFS
2282 test -z "$as_dir" && as_dir=.
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2285 ac_cv_prog_AWK="$ac_prog"
2286 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287 break 2
2288 fi
2289 done
2290 done
2291 IFS=$as_save_IFS
2292
2293 fi
2294 fi
2295 AWK=$ac_cv_prog_AWK
2296 if test -n "$AWK"; then
2297 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2298 $as_echo "$AWK" >&6; }
2299 else
2300 { $as_echo "$as_me:$LINENO: result: no" >&5
2301 $as_echo "no" >&6; }
2302 fi
2303
2304
2305 test -n "$AWK" && break
2306 done
2307
2308 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2309 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2310 set x ${MAKE-make}
2311 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2312 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2313 $as_echo_n "(cached) " >&6
2314 else
2315 cat >conftest.make <<\_ACEOF
2316 SHELL = /bin/sh
2317 all:
2318 @echo '@@@%%%=$(MAKE)=@@@%%%'
2319 _ACEOF
2320 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2321 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2322 *@@@%%%=?*=@@@%%%*)
2323 eval ac_cv_prog_make_${ac_make}_set=yes;;
2324 *)
2325 eval ac_cv_prog_make_${ac_make}_set=no;;
2326 esac
2327 rm -f conftest.make
2328 fi
2329 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2330 { $as_echo "$as_me:$LINENO: result: yes" >&5
2331 $as_echo "yes" >&6; }
2332 SET_MAKE=
2333 else
2334 { $as_echo "$as_me:$LINENO: result: no" >&5
2335 $as_echo "no" >&6; }
2336 SET_MAKE="MAKE=${MAKE-make}"
2337 fi
2338
2339 rm -rf .tst 2>/dev/null
2340 mkdir .tst 2>/dev/null
2341 if test -d .tst; then
2342 am__leading_dot=.
2343 else
2344 am__leading_dot=_
2345 fi
2346 rmdir .tst 2>/dev/null
2347
2348 # test to see if srcdir already configured
2349 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2350 test -f $srcdir/config.status; then
2351 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2352 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2353 { (exit 1); exit 1; }; }
2354 fi
2355
2356 # test whether we have cygpath
2357 if test -z "$CYGPATH_W"; then
2358 if (cygpath --version) >/dev/null 2>/dev/null; then
2359 CYGPATH_W='cygpath -w'
2360 else
2361 CYGPATH_W=echo
2362 fi
2363 fi
2364
2365
2366 # Define the identity of the package.
2367 PACKAGE='xf86-input-ws'
2368 VERSION='1.3.0'
2369
2370
2371 cat >>confdefs.h <<_ACEOF
2372 #define PACKAGE "$PACKAGE"
2373 _ACEOF
2374
2375
2376 cat >>confdefs.h <<_ACEOF
2377 #define VERSION "$VERSION"
2378 _ACEOF
2379
2380 # Some tools Automake needs.
2381
2382 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2383
2384
2385 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2386
2387
2388 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2389
2390
2391 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2392
2393
2394 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2395
2396 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2397
2398 # Installed binaries are usually stripped using `strip' when the user
2399 # run `make install-strip'. However `strip' might not be the right
2400 # tool to use in cross-compilation environments, therefore Automake
2401 # will honor the `STRIP' environment variable to overrule this program.
2402 if test "$cross_compiling" != no; then
2403 if test -n "$ac_tool_prefix"; then
2404 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2405 set dummy ${ac_tool_prefix}strip; ac_word=$2
2406 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2407 $as_echo_n "checking for $ac_word... " >&6; }
2408 if test "${ac_cv_prog_STRIP+set}" = set; then
2409 $as_echo_n "(cached) " >&6
2410 else
2411 if test -n "$STRIP"; then
2412 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2413 else
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 for as_dir in $PATH
2416 do
2417 IFS=$as_save_IFS
2418 test -z "$as_dir" && as_dir=.
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2421 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 break 2
2424 fi
2425 done
2426 done
2427 IFS=$as_save_IFS
2428
2429 fi
2430 fi
2431 STRIP=$ac_cv_prog_STRIP
2432 if test -n "$STRIP"; then
2433 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2434 $as_echo "$STRIP" >&6; }
2435 else
2436 { $as_echo "$as_me:$LINENO: result: no" >&5
2437 $as_echo "no" >&6; }
2438 fi
2439
2440
2441 fi
2442 if test -z "$ac_cv_prog_STRIP"; then
2443 ac_ct_STRIP=$STRIP
2444 # Extract the first word of "strip", so it can be a program name with args.
2445 set dummy strip; ac_word=$2
2446 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2447 $as_echo_n "checking for $ac_word... " >&6; }
2448 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2449 $as_echo_n "(cached) " >&6
2450 else
2451 if test -n "$ac_ct_STRIP"; then
2452 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2453 else
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 for as_dir in $PATH
2456 do
2457 IFS=$as_save_IFS
2458 test -z "$as_dir" && as_dir=.
2459 for ac_exec_ext in '' $ac_executable_extensions; do
2460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2461 ac_cv_prog_ac_ct_STRIP="strip"
2462 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 break 2
2464 fi
2465 done
2466 done
2467 IFS=$as_save_IFS
2468
2469 fi
2470 fi
2471 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2472 if test -n "$ac_ct_STRIP"; then
2473 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2474 $as_echo "$ac_ct_STRIP" >&6; }
2475 else
2476 { $as_echo "$as_me:$LINENO: result: no" >&5
2477 $as_echo "no" >&6; }
2478 fi
2479
2480 if test "x$ac_ct_STRIP" = x; then
2481 STRIP=":"
2482 else
2483 case $cross_compiling:$ac_tool_warned in
2484 yes:)
2485 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2486 whose name does not start with the host triplet. If you think this
2487 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2488 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2489 whose name does not start with the host triplet. If you think this
2490 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2491 ac_tool_warned=yes ;;
2492 esac
2493 STRIP=$ac_ct_STRIP
2494 fi
2495 else
2496 STRIP="$ac_cv_prog_STRIP"
2497 fi
2498
2499 fi
2500 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2501
2502 # We need awk for the "check" target. The system "awk" is bad on
2503 # some platforms.
2504 # Always define AMTAR for backward compatibility.
2505
2506 AMTAR=${AMTAR-"${am_missing_run}tar"}
2507
2508 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2509
2510
2511
2512
2513
2514 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2515 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2516 # Check whether --enable-maintainer-mode was given.
2517 if test "${enable_maintainer_mode+set}" = set; then
2518 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2519 else
2520 USE_MAINTAINER_MODE=no
2521 fi
2522
2523 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2524 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2525
2526
2527 if test $USE_MAINTAINER_MODE = yes; then
2528 MAINTAINER_MODE_TRUE=
2529 MAINTAINER_MODE_FALSE='#'
2530 else
2531 MAINTAINER_MODE_TRUE='#'
2532 MAINTAINER_MODE_FALSE=
2533 fi
2534
2535 MAINT=$MAINTAINER_MODE_TRUE
2536
2537
2538
2539 # Initialize libtool
2540 # Check whether --enable-static was given.
2541 if test "${enable_static+set}" = set; then
2542 enableval=$enable_static; p=${PACKAGE-default}
2543 case $enableval in
2544 yes) enable_static=yes ;;
2545 no) enable_static=no ;;
2546 *)
2547 enable_static=no
2548 # Look at the argument we got. We use all the common list separators.
2549 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2550 for pkg in $enableval; do
2551 IFS="$lt_save_ifs"
2552 if test "X$pkg" = "X$p"; then
2553 enable_static=yes
2554 fi
2555 done
2556 IFS="$lt_save_ifs"
2557 ;;
2558 esac
2559 else
2560 enable_static=no
2561 fi
2562
2563
2564
2565 # Check whether --enable-shared was given.
2566 if test "${enable_shared+set}" = set; then
2567 enableval=$enable_shared; p=${PACKAGE-default}
2568 case $enableval in
2569 yes) enable_shared=yes ;;
2570 no) enable_shared=no ;;
2571 *)
2572 enable_shared=no
2573 # Look at the argument we got. We use all the common list separators.
2574 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2575 for pkg in $enableval; do
2576 IFS="$lt_save_ifs"
2577 if test "X$pkg" = "X$p"; then
2578 enable_shared=yes
2579 fi
2580 done
2581 IFS="$lt_save_ifs"
2582 ;;
2583 esac
2584 else
2585 enable_shared=yes
2586 fi
2587
2588
2589 # Check whether --enable-fast-install was given.
2590 if test "${enable_fast_install+set}" = set; then
2591 enableval=$enable_fast_install; p=${PACKAGE-default}
2592 case $enableval in
2593 yes) enable_fast_install=yes ;;
2594 no) enable_fast_install=no ;;
2595 *)
2596 enable_fast_install=no
2597 # Look at the argument we got. We use all the common list separators.
2598 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2599 for pkg in $enableval; do
2600 IFS="$lt_save_ifs"
2601 if test "X$pkg" = "X$p"; then
2602 enable_fast_install=yes
2603 fi
2604 done
2605 IFS="$lt_save_ifs"
2606 ;;
2607 esac
2608 else
2609 enable_fast_install=yes
2610 fi
2611
2612
2613 # Make sure we can run config.sub.
2614 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2615 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2616 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2617 { (exit 1); exit 1; }; }
2618
2619 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2620 $as_echo_n "checking build system type... " >&6; }
2621 if test "${ac_cv_build+set}" = set; then
2622 $as_echo_n "(cached) " >&6
2623 else
2624 ac_build_alias=$build_alias
2625 test "x$ac_build_alias" = x &&
2626 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2627 test "x$ac_build_alias" = x &&
2628 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2629 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2630 { (exit 1); exit 1; }; }
2631 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2632 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2633 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2634 { (exit 1); exit 1; }; }
2635
2636 fi
2637 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2638 $as_echo "$ac_cv_build" >&6; }
2639 case $ac_cv_build in
2640 *-*-*) ;;
2641 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2642 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2643 { (exit 1); exit 1; }; };;
2644 esac
2645 build=$ac_cv_build
2646 ac_save_IFS=$IFS; IFS='-'
2647 set x $ac_cv_build
2648 shift
2649 build_cpu=$1
2650 build_vendor=$2
2651 shift; shift
2652 # Remember, the first character of IFS is used to create $*,
2653 # except with old shells:
2654 build_os=$*
2655 IFS=$ac_save_IFS
2656 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2657
2658
2659 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2660 $as_echo_n "checking host system type... " >&6; }
2661 if test "${ac_cv_host+set}" = set; then
2662 $as_echo_n "(cached) " >&6
2663 else
2664 if test "x$host_alias" = x; then
2665 ac_cv_host=$ac_cv_build
2666 else
2667 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2668 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2669 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2670 { (exit 1); exit 1; }; }
2671 fi
2672
2673 fi
2674 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2675 $as_echo "$ac_cv_host" >&6; }
2676 case $ac_cv_host in
2677 *-*-*) ;;
2678 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2679 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2680 { (exit 1); exit 1; }; };;
2681 esac
2682 host=$ac_cv_host
2683 ac_save_IFS=$IFS; IFS='-'
2684 set x $ac_cv_host
2685 shift
2686 host_cpu=$1
2687 host_vendor=$2
2688 shift; shift
2689 # Remember, the first character of IFS is used to create $*,
2690 # except with old shells:
2691 host_os=$*
2692 IFS=$ac_save_IFS
2693 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2694
2695
2696 DEPDIR="${am__leading_dot}deps"
2697
2698 ac_config_commands="$ac_config_commands depfiles"
2699
2700
2701 am_make=${MAKE-make}
2702 cat > confinc << 'END'
2703 am__doit:
2704 @echo done
2705 .PHONY: am__doit
2706 END
2707 # If we don't find an include directive, just comment out the code.
2708 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2709 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2710 am__include="#"
2711 am__quote=
2712 _am_result=none
2713 # First try GNU make style include.
2714 echo "include confinc" > confmf
2715 # We grep out `Entering directory' and `Leaving directory'
2716 # messages which can occur if `w' ends up in MAKEFLAGS.
2717 # In particular we don't look at `^make:' because GNU make might
2718 # be invoked under some other name (usually "gmake"), in which
2719 # case it prints its new name instead of `make'.
2720 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2721 am__include=include
2722 am__quote=
2723 _am_result=GNU
2724 fi
2725 # Now try BSD make style include.
2726 if test "$am__include" = "#"; then
2727 echo '.include "confinc"' > confmf
2728 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2729 am__include=.include
2730 am__quote="\""
2731 _am_result=BSD
2732 fi
2733 fi
2734
2735
2736 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2737 $as_echo "$_am_result" >&6; }
2738 rm -f confinc confmf
2739
2740 # Check whether --enable-dependency-tracking was given.
2741 if test "${enable_dependency_tracking+set}" = set; then
2742 enableval=$enable_dependency_tracking;
2743 fi
2744
2745 if test "x$enable_dependency_tracking" != xno; then
2746 am_depcomp="$ac_aux_dir/depcomp"
2747 AMDEPBACKSLASH='\'
2748 fi
2749
2750
2751 if test "x$enable_dependency_tracking" != xno; then
2752 AMDEP_TRUE=
2753 AMDEP_FALSE='#'
2754 else
2755 AMDEP_TRUE='#'
2756 AMDEP_FALSE=
2757 fi
2758
2759
2760
2761 ac_ext=c
2762 ac_cpp='$CPP $CPPFLAGS'
2763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2766 if test -n "$ac_tool_prefix"; then
2767 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2768 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2769 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 $as_echo_n "checking for $ac_word... " >&6; }
2771 if test "${ac_cv_prog_CC+set}" = set; then
2772 $as_echo_n "(cached) " >&6
2773 else
2774 if test -n "$CC"; then
2775 ac_cv_prog_CC="$CC" # Let the user override the test.
2776 else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2779 do
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2784 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2785 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2787 fi
2788 done
2789 done
2790 IFS=$as_save_IFS
2791
2792 fi
2793 fi
2794 CC=$ac_cv_prog_CC
2795 if test -n "$CC"; then
2796 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2797 $as_echo "$CC" >&6; }
2798 else
2799 { $as_echo "$as_me:$LINENO: result: no" >&5
2800 $as_echo "no" >&6; }
2801 fi
2802
2803
2804 fi
2805 if test -z "$ac_cv_prog_CC"; then
2806 ac_ct_CC=$CC
2807 # Extract the first word of "gcc", so it can be a program name with args.
2808 set dummy gcc; ac_word=$2
2809 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2810 $as_echo_n "checking for $ac_word... " >&6; }
2811 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2812 $as_echo_n "(cached) " >&6
2813 else
2814 if test -n "$ac_ct_CC"; then
2815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2819 do
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2824 ac_cv_prog_ac_ct_CC="gcc"
2825 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2827 fi
2828 done
2829 done
2830 IFS=$as_save_IFS
2831
2832 fi
2833 fi
2834 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2835 if test -n "$ac_ct_CC"; then
2836 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2837 $as_echo "$ac_ct_CC" >&6; }
2838 else
2839 { $as_echo "$as_me:$LINENO: result: no" >&5
2840 $as_echo "no" >&6; }
2841 fi
2842
2843 if test "x$ac_ct_CC" = x; then
2844 CC=""
2845 else
2846 case $cross_compiling:$ac_tool_warned in
2847 yes:)
2848 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2849 whose name does not start with the host triplet. If you think this
2850 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2851 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2852 whose name does not start with the host triplet. If you think this
2853 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2854 ac_tool_warned=yes ;;
2855 esac
2856 CC=$ac_ct_CC
2857 fi
2858 else
2859 CC="$ac_cv_prog_CC"
2860 fi
2861
2862 if test -z "$CC"; then
2863 if test -n "$ac_tool_prefix"; then
2864 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2865 set dummy ${ac_tool_prefix}cc; ac_word=$2
2866 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2867 $as_echo_n "checking for $ac_word... " >&6; }
2868 if test "${ac_cv_prog_CC+set}" = set; then
2869 $as_echo_n "(cached) " >&6
2870 else
2871 if test -n "$CC"; then
2872 ac_cv_prog_CC="$CC" # Let the user override the test.
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2876 do
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2881 ac_cv_prog_CC="${ac_tool_prefix}cc"
2882 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 break 2
2884 fi
2885 done
2886 done
2887 IFS=$as_save_IFS
2888
2889 fi
2890 fi
2891 CC=$ac_cv_prog_CC
2892 if test -n "$CC"; then
2893 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2894 $as_echo "$CC" >&6; }
2895 else
2896 { $as_echo "$as_me:$LINENO: result: no" >&5
2897 $as_echo "no" >&6; }
2898 fi
2899
2900
2901 fi
2902 fi
2903 if test -z "$CC"; then
2904 # Extract the first word of "cc", so it can be a program name with args.
2905 set dummy cc; ac_word=$2
2906 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2907 $as_echo_n "checking for $ac_word... " >&6; }
2908 if test "${ac_cv_prog_CC+set}" = set; then
2909 $as_echo_n "(cached) " >&6
2910 else
2911 if test -n "$CC"; then
2912 ac_cv_prog_CC="$CC" # Let the user override the test.
2913 else
2914 ac_prog_rejected=no
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 for as_dir in $PATH
2917 do
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2922 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2923 ac_prog_rejected=yes
2924 continue
2925 fi
2926 ac_cv_prog_CC="cc"
2927 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2929 fi
2930 done
2931 done
2932 IFS=$as_save_IFS
2933
2934 if test $ac_prog_rejected = yes; then
2935 # We found a bogon in the path, so make sure we never use it.
2936 set dummy $ac_cv_prog_CC
2937 shift
2938 if test $# != 0; then
2939 # We chose a different compiler from the bogus one.
2940 # However, it has the same basename, so the bogon will be chosen
2941 # first if we set CC to just the basename; use the full file name.
2942 shift
2943 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2944 fi
2945 fi
2946 fi
2947 fi
2948 CC=$ac_cv_prog_CC
2949 if test -n "$CC"; then
2950 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2951 $as_echo "$CC" >&6; }
2952 else
2953 { $as_echo "$as_me:$LINENO: result: no" >&5
2954 $as_echo "no" >&6; }
2955 fi
2956
2957
2958 fi
2959 if test -z "$CC"; then
2960 if test -n "$ac_tool_prefix"; then
2961 for ac_prog in cl.exe
2962 do
2963 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2964 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2965 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2966 $as_echo_n "checking for $ac_word... " >&6; }
2967 if test "${ac_cv_prog_CC+set}" = set; then
2968 $as_echo_n "(cached) " >&6
2969 else
2970 if test -n "$CC"; then
2971 ac_cv_prog_CC="$CC" # Let the user override the test.
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2975 do
2976 IFS=$as_save_IFS
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2980 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2981 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 break 2
2983 fi
2984 done
2985 done
2986 IFS=$as_save_IFS
2987
2988 fi
2989 fi
2990 CC=$ac_cv_prog_CC
2991 if test -n "$CC"; then
2992 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2993 $as_echo "$CC" >&6; }
2994 else
2995 { $as_echo "$as_me:$LINENO: result: no" >&5
2996 $as_echo "no" >&6; }
2997 fi
2998
2999
3000 test -n "$CC" && break
3001 done
3002 fi
3003 if test -z "$CC"; then
3004 ac_ct_CC=$CC
3005 for ac_prog in cl.exe
3006 do
3007 # Extract the first word of "$ac_prog", so it can be a program name with args.
3008 set dummy $ac_prog; ac_word=$2
3009 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3012 $as_echo_n "(cached) " >&6
3013 else
3014 if test -n "$ac_ct_CC"; then
3015 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3016 else
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3019 do
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3024 ac_cv_prog_ac_ct_CC="$ac_prog"
3025 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3027 fi
3028 done
3029 done
3030 IFS=$as_save_IFS
3031
3032 fi
3033 fi
3034 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3035 if test -n "$ac_ct_CC"; then
3036 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3037 $as_echo "$ac_ct_CC" >&6; }
3038 else
3039 { $as_echo "$as_me:$LINENO: result: no" >&5
3040 $as_echo "no" >&6; }
3041 fi
3042
3043
3044 test -n "$ac_ct_CC" && break
3045 done
3046
3047 if test "x$ac_ct_CC" = x; then
3048 CC=""
3049 else
3050 case $cross_compiling:$ac_tool_warned in
3051 yes:)
3052 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3053 whose name does not start with the host triplet. If you think this
3054 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
3055 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3056 whose name does not start with the host triplet. If you think this
3057 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
3058 ac_tool_warned=yes ;;
3059 esac
3060 CC=$ac_ct_CC
3061 fi
3062 fi
3063
3064 fi
3065
3066
3067 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3068 See \`config.log' for more details." >&5
3069 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3070 See \`config.log' for more details." >&2;}
3071 { (exit 1); exit 1; }; }
3072
3073 # Provide some information about the compiler.
3074 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3075 set X $ac_compile
3076 ac_compiler=$2
3077 { (ac_try="$ac_compiler --version >&5"
3078 case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081 esac
3082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3083 $as_echo "$ac_try_echo") >&5
3084 (eval "$ac_compiler --version >&5") 2>&5
3085 ac_status=$?
3086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }
3088 { (ac_try="$ac_compiler -v >&5"
3089 case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092 esac
3093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3094 $as_echo "$ac_try_echo") >&5
3095 (eval "$ac_compiler -v >&5") 2>&5
3096 ac_status=$?
3097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }
3099 { (ac_try="$ac_compiler -V >&5"
3100 case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103 esac
3104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3105 $as_echo "$ac_try_echo") >&5
3106 (eval "$ac_compiler -V >&5") 2>&5
3107 ac_status=$?
3108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }
3110
3111 cat >conftest.$ac_ext <<_ACEOF
3112 /* confdefs.h. */
3113 _ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h. */
3117
3118 int
3119 main ()
3120 {
3121
3122 ;
3123 return 0;
3124 }
3125 _ACEOF
3126 ac_clean_files_save=$ac_clean_files
3127 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3128 # Try to create an executable without -o first, disregard a.out.
3129 # It will help us diagnose broken compilers, and finding out an intuition
3130 # of exeext.
3131 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3132 $as_echo_n "checking for C compiler default output file name... " >&6; }
3133 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3134
3135 # The possible output files:
3136 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3137
3138 ac_rmfiles=
3139 for ac_file in $ac_files
3140 do
3141 case $ac_file in
3142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3143 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3144 esac
3145 done
3146 rm -f $ac_rmfiles
3147
3148 if { (ac_try="$ac_link_default"
3149 case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152 esac
3153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3154 $as_echo "$ac_try_echo") >&5
3155 (eval "$ac_link_default") 2>&5
3156 ac_status=$?
3157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; then
3159 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3160 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3161 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3162 # so that the user can short-circuit this test for compilers unknown to
3163 # Autoconf.
3164 for ac_file in $ac_files ''
3165 do
3166 test -f "$ac_file" || continue
3167 case $ac_file in
3168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3169 ;;
3170 [ab].out )
3171 # We found the default executable, but exeext='' is most
3172 # certainly right.
3173 break;;
3174 *.* )
3175 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3176 then :; else
3177 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3178 fi
3179 # We set ac_cv_exeext here because the later test for it is not
3180 # safe: cross compilers may not add the suffix if given an `-o'
3181 # argument, so we may need to know it at that point already.
3182 # Even if this section looks crufty: it has the advantage of
3183 # actually working.
3184 break;;
3185 * )
3186 break;;
3187 esac
3188 done
3189 test "$ac_cv_exeext" = no && ac_cv_exeext=
3190
3191 else
3192 ac_file=''
3193 fi
3194
3195 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3196 $as_echo "$ac_file" >&6; }
3197 if test -z "$ac_file"; then
3198 $as_echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3200
3201 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3202 See \`config.log' for more details." >&5
3203 $as_echo "$as_me: error: C compiler cannot create executables
3204 See \`config.log' for more details." >&2;}
3205 { (exit 77); exit 77; }; }
3206 fi
3207
3208 ac_exeext=$ac_cv_exeext
3209
3210 # Check that the compiler produces executables we can run. If not, either
3211 # the compiler is broken, or we cross compile.
3212 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3213 $as_echo_n "checking whether the C compiler works... " >&6; }
3214 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3215 # If not cross compiling, check that we can run a simple program.
3216 if test "$cross_compiling" != yes; then
3217 if { ac_try='./$ac_file'
3218 { (case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221 esac
3222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3223 $as_echo "$ac_try_echo") >&5
3224 (eval "$ac_try") 2>&5
3225 ac_status=$?
3226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; }; then
3228 cross_compiling=no
3229 else
3230 if test "$cross_compiling" = maybe; then
3231 cross_compiling=yes
3232 else
3233 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3234 If you meant to cross compile, use \`--host'.
3235 See \`config.log' for more details." >&5
3236 $as_echo "$as_me: error: cannot run C compiled programs.
3237 If you meant to cross compile, use \`--host'.
3238 See \`config.log' for more details." >&2;}
3239 { (exit 1); exit 1; }; }
3240 fi
3241 fi
3242 fi
3243 { $as_echo "$as_me:$LINENO: result: yes" >&5
3244 $as_echo "yes" >&6; }
3245
3246 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3247 ac_clean_files=$ac_clean_files_save
3248 # Check that the compiler produces executables we can run. If not, either
3249 # the compiler is broken, or we cross compile.
3250 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3251 $as_echo_n "checking whether we are cross compiling... " >&6; }
3252 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3253 $as_echo "$cross_compiling" >&6; }
3254
3255 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3256 $as_echo_n "checking for suffix of executables... " >&6; }
3257 if { (ac_try="$ac_link"
3258 case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261 esac
3262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3263 $as_echo "$ac_try_echo") >&5
3264 (eval "$ac_link") 2>&5
3265 ac_status=$?
3266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }; then
3268 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3269 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3270 # work properly (i.e., refer to `conftest.exe'), while it won't with
3271 # `rm'.
3272 for ac_file in conftest.exe conftest conftest.*; do
3273 test -f "$ac_file" || continue
3274 case $ac_file in
3275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3276 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3277 break;;
3278 * ) break;;
3279 esac
3280 done
3281 else
3282 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3283 See \`config.log' for more details." >&5
3284 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3285 See \`config.log' for more details." >&2;}
3286 { (exit 1); exit 1; }; }
3287 fi
3288
3289 rm -f conftest$ac_cv_exeext
3290 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3291 $as_echo "$ac_cv_exeext" >&6; }
3292
3293 rm -f conftest.$ac_ext
3294 EXEEXT=$ac_cv_exeext
3295 ac_exeext=$EXEEXT
3296 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3297 $as_echo_n "checking for suffix of object files... " >&6; }
3298 if test "${ac_cv_objext+set}" = set; then
3299 $as_echo_n "(cached) " >&6
3300 else
3301 cat >conftest.$ac_ext <<_ACEOF
3302 /* confdefs.h. */
3303 _ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h. */
3307
3308 int
3309 main ()
3310 {
3311
3312 ;
3313 return 0;
3314 }
3315 _ACEOF
3316 rm -f conftest.o conftest.obj
3317 if { (ac_try="$ac_compile"
3318 case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321 esac
3322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3323 $as_echo "$ac_try_echo") >&5
3324 (eval "$ac_compile") 2>&5
3325 ac_status=$?
3326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; then
3328 for ac_file in conftest.o conftest.obj conftest.*; do
3329 test -f "$ac_file" || continue;
3330 case $ac_file in
3331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3332 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3333 break;;
3334 esac
3335 done
3336 else
3337 $as_echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3339
3340 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3341 See \`config.log' for more details." >&5
3342 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3343 See \`config.log' for more details." >&2;}
3344 { (exit 1); exit 1; }; }
3345 fi
3346
3347 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3348 fi
3349 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3350 $as_echo "$ac_cv_objext" >&6; }
3351 OBJEXT=$ac_cv_objext
3352 ac_objext=$OBJEXT
3353 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3354 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3355 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3356 $as_echo_n "(cached) " >&6
3357 else
3358 cat >conftest.$ac_ext <<_ACEOF
3359 /* confdefs.h. */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3364
3365 int
3366 main ()
3367 {
3368 #ifndef __GNUC__
3369 choke me
3370 #endif
3371
3372 ;
3373 return 0;
3374 }
3375 _ACEOF
3376 rm -f conftest.$ac_objext
3377 if { (ac_try="$ac_compile"
3378 case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381 esac
3382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3383 $as_echo "$ac_try_echo") >&5
3384 (eval "$ac_compile") 2>conftest.er1
3385 ac_status=$?
3386 grep -v '^ *+' conftest.er1 >conftest.err
3387 rm -f conftest.er1
3388 cat conftest.err >&5
3389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } && {
3391 test -z "$ac_c_werror_flag" ||
3392 test ! -s conftest.err
3393 } && test -s conftest.$ac_objext; then
3394 ac_compiler_gnu=yes
3395 else
3396 $as_echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399 ac_compiler_gnu=no
3400 fi
3401
3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3404
3405 fi
3406 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3407 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3408 if test $ac_compiler_gnu = yes; then
3409 GCC=yes
3410 else
3411 GCC=
3412 fi
3413 ac_test_CFLAGS=${CFLAGS+set}
3414 ac_save_CFLAGS=$CFLAGS
3415 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3416 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3417 if test "${ac_cv_prog_cc_g+set}" = set; then
3418 $as_echo_n "(cached) " >&6
3419 else
3420 ac_save_c_werror_flag=$ac_c_werror_flag
3421 ac_c_werror_flag=yes
3422 ac_cv_prog_cc_g=no
3423 CFLAGS="-g"
3424 cat >conftest.$ac_ext <<_ACEOF
3425 /* confdefs.h. */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3430
3431 int
3432 main ()
3433 {
3434
3435 ;
3436 return 0;
3437 }
3438 _ACEOF
3439 rm -f conftest.$ac_objext
3440 if { (ac_try="$ac_compile"
3441 case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444 esac
3445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3446 $as_echo "$ac_try_echo") >&5
3447 (eval "$ac_compile") 2>conftest.er1
3448 ac_status=$?
3449 grep -v '^ *+' conftest.er1 >conftest.err
3450 rm -f conftest.er1
3451 cat conftest.err >&5
3452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } && {
3454 test -z "$ac_c_werror_flag" ||
3455 test ! -s conftest.err
3456 } && test -s conftest.$ac_objext; then
3457 ac_cv_prog_cc_g=yes
3458 else
3459 $as_echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3461
3462 CFLAGS=""
3463 cat >conftest.$ac_ext <<_ACEOF
3464 /* confdefs.h. */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3469
3470 int
3471 main ()
3472 {
3473
3474 ;
3475 return 0;
3476 }
3477 _ACEOF
3478 rm -f conftest.$ac_objext
3479 if { (ac_try="$ac_compile"
3480 case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3483 esac
3484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3485 $as_echo "$ac_try_echo") >&5
3486 (eval "$ac_compile") 2>conftest.er1
3487 ac_status=$?
3488 grep -v '^ *+' conftest.er1 >conftest.err
3489 rm -f conftest.er1
3490 cat conftest.err >&5
3491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } && {
3493 test -z "$ac_c_werror_flag" ||
3494 test ! -s conftest.err
3495 } && test -s conftest.$ac_objext; then
3496 :
3497 else
3498 $as_echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3500
3501 ac_c_werror_flag=$ac_save_c_werror_flag
3502 CFLAGS="-g"
3503 cat >conftest.$ac_ext <<_ACEOF
3504 /* confdefs.h. */
3505 _ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h. */
3509
3510 int
3511 main ()
3512 {
3513
3514 ;
3515 return 0;
3516 }
3517 _ACEOF
3518 rm -f conftest.$ac_objext
3519 if { (ac_try="$ac_compile"
3520 case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3523 esac
3524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3525 $as_echo "$ac_try_echo") >&5
3526 (eval "$ac_compile") 2>conftest.er1
3527 ac_status=$?
3528 grep -v '^ *+' conftest.er1 >conftest.err
3529 rm -f conftest.er1
3530 cat conftest.err >&5
3531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } && {
3533 test -z "$ac_c_werror_flag" ||
3534 test ! -s conftest.err
3535 } && test -s conftest.$ac_objext; then
3536 ac_cv_prog_cc_g=yes
3537 else
3538 $as_echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3540
3541
3542 fi
3543
3544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3545 fi
3546
3547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548 fi
3549
3550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 ac_c_werror_flag=$ac_save_c_werror_flag
3552 fi
3553 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3554 $as_echo "$ac_cv_prog_cc_g" >&6; }
3555 if test "$ac_test_CFLAGS" = set; then
3556 CFLAGS=$ac_save_CFLAGS
3557 elif test $ac_cv_prog_cc_g = yes; then
3558 if test "$GCC" = yes; then
3559 CFLAGS="-g -O2"
3560 else
3561 CFLAGS="-g"
3562 fi
3563 else
3564 if test "$GCC" = yes; then
3565 CFLAGS="-O2"
3566 else
3567 CFLAGS=
3568 fi
3569 fi
3570 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3571 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3572 if test "${ac_cv_prog_cc_c89+set}" = set; then
3573 $as_echo_n "(cached) " >&6
3574 else
3575 ac_cv_prog_cc_c89=no
3576 ac_save_CC=$CC
3577 cat >conftest.$ac_ext <<_ACEOF
3578 /* confdefs.h. */
3579 _ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3583 #include <stdarg.h>
3584 #include <stdio.h>
3585 #include <sys/types.h>
3586 #include <sys/stat.h>
3587 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3588 struct buf { int x; };
3589 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3590 static char *e (p, i)
3591 char **p;
3592 int i;
3593 {
3594 return p[i];
3595 }
3596 static char *f (char * (*g) (char **, int), char **p, ...)
3597 {
3598 char *s;
3599 va_list v;
3600 va_start (v,p);
3601 s = g (p, va_arg (v,int));
3602 va_end (v);
3603 return s;
3604 }
3605
3606 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3607 function prototypes and stuff, but not '\xHH' hex character constants.
3608 These don't provoke an error unfortunately, instead are silently treated
3609 as 'x'. The following induces an error, until -std is added to get
3610 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3611 array size at least. It's necessary to write '\x00'==0 to get something
3612 that's true only with -std. */
3613 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3614
3615 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3616 inside strings and character constants. */
3617 #define FOO(x) 'x'
3618 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3619
3620 int test (int i, double x);
3621 struct s1 {int (*f) (int a);};
3622 struct s2 {int (*f) (double a);};
3623 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3624 int argc;
3625 char **argv;
3626 int
3627 main ()
3628 {
3629 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3630 ;
3631 return 0;
3632 }
3633 _ACEOF
3634 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3635 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3636 do
3637 CC="$ac_save_CC $ac_arg"
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_c89=$ac_arg
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
3665 test "x$ac_cv_prog_cc_c89" != "xno" && break
3666 done
3667 rm -f conftest.$ac_ext
3668 CC=$ac_save_CC
3669
3670 fi
3671 # AC_CACHE_VAL
3672 case "x$ac_cv_prog_cc_c89" in
3673 x)
3674 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3675 $as_echo "none needed" >&6; } ;;
3676 xno)
3677 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3678 $as_echo "unsupported" >&6; } ;;
3679 *)
3680 CC="$CC $ac_cv_prog_cc_c89"
3681 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3682 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3683 esac
3684
3685
3686 ac_ext=c
3687 ac_cpp='$CPP $CPPFLAGS'
3688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3691
3692 depcc="$CC" am_compiler_list=
3693
3694 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3695 $as_echo_n "checking dependency style of $depcc... " >&6; }
3696 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3697 $as_echo_n "(cached) " >&6
3698 else
3699 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3700 # We make a subdir and do the tests there. Otherwise we can end up
3701 # making bogus files that we don't know about and never remove. For
3702 # instance it was reported that on HP-UX the gcc test will end up
3703 # making a dummy file named `D' -- because `-MD' means `put the output
3704 # in D'.
3705 mkdir conftest.dir
3706 # Copy depcomp to subdir because otherwise we won't find it if we're
3707 # using a relative directory.
3708 cp "$am_depcomp" conftest.dir
3709 cd conftest.dir
3710 # We will build objects and dependencies in a subdirectory because
3711 # it helps to detect inapplicable dependency modes. For instance
3712 # both Tru64's cc and ICC support -MD to output dependencies as a
3713 # side effect of compilation, but ICC will put the dependencies in
3714 # the current directory while Tru64 will put them in the object
3715 # directory.
3716 mkdir sub
3717
3718 am_cv_CC_dependencies_compiler_type=none
3719 if test "$am_compiler_list" = ""; then
3720 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3721 fi
3722 for depmode in $am_compiler_list; do
3723 # Setup a source with many dependencies, because some compilers
3724 # like to wrap large dependency lists on column 80 (with \), and
3725 # we should not choose a depcomp mode which is confused by this.
3726 #
3727 # We need to recreate these files for each test, as the compiler may
3728 # overwrite some of them when testing with obscure command lines.
3729 # This happens at least with the AIX C compiler.
3730 : > sub/conftest.c
3731 for i in 1 2 3 4 5 6; do
3732 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3733 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3734 # Solaris 8's {/usr,}/bin/sh.
3735 touch sub/conftst$i.h
3736 done
3737 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3738
3739 case $depmode in
3740 nosideeffect)
3741 # after this tag, mechanisms are not by side-effect, so they'll
3742 # only be used when explicitly requested
3743 if test "x$enable_dependency_tracking" = xyes; then
3744 continue
3745 else
3746 break
3747 fi
3748 ;;
3749 none) break ;;
3750 esac
3751 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3752 # mode. It turns out that the SunPro C++ compiler does not properly
3753 # handle `-M -o', and we need to detect this.
3754 if depmode=$depmode \
3755 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3756 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3757 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3758 >/dev/null 2>conftest.err &&
3759 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3760 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3761 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3762 # icc doesn't choke on unknown options, it will just issue warnings
3763 # or remarks (even with -Werror). So we grep stderr for any message
3764 # that says an option was ignored or not supported.
3765 # When given -MP, icc 7.0 and 7.1 complain thusly:
3766 # icc: Command line warning: ignoring option '-M'; no argument required
3767 # The diagnosis changed in icc 8.0:
3768 # icc: Command line remark: option '-MP' not supported
3769 if (grep 'ignoring option' conftest.err ||
3770 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3771 am_cv_CC_dependencies_compiler_type=$depmode
3772 break
3773 fi
3774 fi
3775 done
3776
3777 cd ..
3778 rm -rf conftest.dir
3779 else
3780 am_cv_CC_dependencies_compiler_type=none
3781 fi
3782
3783 fi
3784 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3785 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3786 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3787
3788
3789
3790 if
3791 test "x$enable_dependency_tracking" != xno \
3792 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3793 am__fastdepCC_TRUE=
3794 am__fastdepCC_FALSE='#'
3795 else
3796 am__fastdepCC_TRUE='#'
3797 am__fastdepCC_FALSE=
3798 fi
3799
3800
3801 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3802 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3803 if test "${lt_cv_path_SED+set}" = set; then
3804 $as_echo_n "(cached) " >&6
3805 else
3806 # Loop through the user's path and test for sed and gsed.
3807 # Then use that list of sed's as ones to test for truncation.
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 for as_dir in $PATH
3810 do
3811 IFS=$as_save_IFS
3812 test -z "$as_dir" && as_dir=.
3813 for lt_ac_prog in sed gsed; do
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3816 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3817 fi
3818 done
3819 done
3820 done
3821 IFS=$as_save_IFS
3822 lt_ac_max=0
3823 lt_ac_count=0
3824 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3825 # along with /bin/sed that truncates output.
3826 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3827 test ! -f $lt_ac_sed && continue
3828 cat /dev/null > conftest.in
3829 lt_ac_count=0
3830 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3831 # Check for GNU sed and select it if it is found.
3832 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3833 lt_cv_path_SED=$lt_ac_sed
3834 break
3835 fi
3836 while true; do
3837 cat conftest.in conftest.in >conftest.tmp
3838 mv conftest.tmp conftest.in
3839 cp conftest.in conftest.nl
3840 echo >>conftest.nl
3841 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3842 cmp -s conftest.out conftest.nl || break
3843 # 10000 chars as input seems more than enough
3844 test $lt_ac_count -gt 10 && break
3845 lt_ac_count=`expr $lt_ac_count + 1`
3846 if test $lt_ac_count -gt $lt_ac_max; then
3847 lt_ac_max=$lt_ac_count
3848 lt_cv_path_SED=$lt_ac_sed
3849 fi
3850 done
3851 done
3852
3853 fi
3854
3855 SED=$lt_cv_path_SED
3856
3857 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3858 $as_echo "$SED" >&6; }
3859
3860 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3861 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3862 if test "${ac_cv_path_GREP+set}" = set; then
3863 $as_echo_n "(cached) " >&6
3864 else
3865 if test -z "$GREP"; then
3866 ac_path_GREP_found=false
3867 # Loop through the user's path and test for each of PROGNAME-LIST
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3870 do
3871 IFS=$as_save_IFS
3872 test -z "$as_dir" && as_dir=.
3873 for ac_prog in grep ggrep; do
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3876 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3877 # Check for GNU ac_path_GREP and select it if it is found.
3878 # Check for GNU $ac_path_GREP
3879 case `"$ac_path_GREP" --version 2>&1` in
3880 *GNU*)
3881 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3882 *)
3883 ac_count=0
3884 $as_echo_n 0123456789 >"conftest.in"
3885 while :
3886 do
3887 cat "conftest.in" "conftest.in" >"conftest.tmp"
3888 mv "conftest.tmp" "conftest.in"
3889 cp "conftest.in" "conftest.nl"
3890 $as_echo 'GREP' >> "conftest.nl"
3891 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3893 ac_count=`expr $ac_count + 1`
3894 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3895 # Best one so far, save it but keep looking for a better one
3896 ac_cv_path_GREP="$ac_path_GREP"
3897 ac_path_GREP_max=$ac_count
3898 fi
3899 # 10*(2^10) chars as input seems more than enough
3900 test $ac_count -gt 10 && break
3901 done
3902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3903 esac
3904
3905 $ac_path_GREP_found && break 3
3906 done
3907 done
3908 done
3909 IFS=$as_save_IFS
3910 if test -z "$ac_cv_path_GREP"; then
3911 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3912 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3913 { (exit 1); exit 1; }; }
3914 fi
3915 else
3916 ac_cv_path_GREP=$GREP
3917 fi
3918
3919 fi
3920 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3921 $as_echo "$ac_cv_path_GREP" >&6; }
3922 GREP="$ac_cv_path_GREP"
3923
3924
3925 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3926 $as_echo_n "checking for egrep... " >&6; }
3927 if test "${ac_cv_path_EGREP+set}" = set; then
3928 $as_echo_n "(cached) " >&6
3929 else
3930 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3931 then ac_cv_path_EGREP="$GREP -E"
3932 else
3933 if test -z "$EGREP"; then
3934 ac_path_EGREP_found=false
3935 # Loop through the user's path and test for each of PROGNAME-LIST
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3938 do
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 for ac_prog in egrep; do
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3944 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3945 # Check for GNU ac_path_EGREP and select it if it is found.
3946 # Check for GNU $ac_path_EGREP
3947 case `"$ac_path_EGREP" --version 2>&1` in
3948 *GNU*)
3949 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3950 *)
3951 ac_count=0
3952 $as_echo_n 0123456789 >"conftest.in"
3953 while :
3954 do
3955 cat "conftest.in" "conftest.in" >"conftest.tmp"
3956 mv "conftest.tmp" "conftest.in"
3957 cp "conftest.in" "conftest.nl"
3958 $as_echo 'EGREP' >> "conftest.nl"
3959 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3961 ac_count=`expr $ac_count + 1`
3962 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3963 # Best one so far, save it but keep looking for a better one
3964 ac_cv_path_EGREP="$ac_path_EGREP"
3965 ac_path_EGREP_max=$ac_count
3966 fi
3967 # 10*(2^10) chars as input seems more than enough
3968 test $ac_count -gt 10 && break
3969 done
3970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3971 esac
3972
3973 $ac_path_EGREP_found && break 3
3974 done
3975 done
3976 done
3977 IFS=$as_save_IFS
3978 if test -z "$ac_cv_path_EGREP"; then
3979 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3980 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3981 { (exit 1); exit 1; }; }
3982 fi
3983 else
3984 ac_cv_path_EGREP=$EGREP
3985 fi
3986
3987 fi
3988 fi
3989 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3990 $as_echo "$ac_cv_path_EGREP" >&6; }
3991 EGREP="$ac_cv_path_EGREP"
3992
3993
3994
3995 # Check whether --with-gnu-ld was given.
3996 if test "${with_gnu_ld+set}" = set; then
3997 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3998 else
3999 with_gnu_ld=no
4000 fi
4001
4002 ac_prog=ld
4003 if test "$GCC" = yes; then
4004 # Check if gcc -print-prog-name=ld gives a path.
4005 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4006 $as_echo_n "checking for ld used by $CC... " >&6; }
4007 case $host in
4008 *-*-mingw*)
4009 # gcc leaves a trailing carriage return which upsets mingw
4010 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4011 *)
4012 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4013 esac
4014 case $ac_prog in
4015 # Accept absolute paths.
4016 [\\/]* | ?:[\\/]*)
4017 re_direlt='/[^/][^/]*/\.\./'
4018 # Canonicalize the pathname of ld
4019 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4020 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4021 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4022 done
4023 test -z "$LD" && LD="$ac_prog"
4024 ;;
4025 "")
4026 # If it fails, then pretend we aren't using GCC.
4027 ac_prog=ld
4028 ;;
4029 *)
4030 # If it is relative, then search for the first ld in PATH.
4031 with_gnu_ld=unknown
4032 ;;
4033 esac
4034 elif test "$with_gnu_ld" = yes; then
4035 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4036 $as_echo_n "checking for GNU ld... " >&6; }
4037 else
4038 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4039 $as_echo_n "checking for non-GNU ld... " >&6; }
4040 fi
4041 if test "${lt_cv_path_LD+set}" = set; then
4042 $as_echo_n "(cached) " >&6
4043 else
4044 if test -z "$LD"; then
4045 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4046 for ac_dir in $PATH; do
4047 IFS="$lt_save_ifs"
4048 test -z "$ac_dir" && ac_dir=.
4049 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4050 lt_cv_path_LD="$ac_dir/$ac_prog"
4051 # Check to see if the program is GNU ld. I'd rather use --version,
4052 # but apparently some variants of GNU ld only accept -v.
4053 # Break only if it was the GNU/non-GNU ld that we prefer.
4054 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4055 *GNU* | *'with BFD'*)
4056 test "$with_gnu_ld" != no && break
4057 ;;
4058 *)
4059 test "$with_gnu_ld" != yes && break
4060 ;;
4061 esac
4062 fi
4063 done
4064 IFS="$lt_save_ifs"
4065 else
4066 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4067 fi
4068 fi
4069
4070 LD="$lt_cv_path_LD"
4071 if test -n "$LD"; then
4072 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4073 $as_echo "$LD" >&6; }
4074 else
4075 { $as_echo "$as_me:$LINENO: result: no" >&5
4076 $as_echo "no" >&6; }
4077 fi
4078 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4079 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4080 { (exit 1); exit 1; }; }
4081 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4082 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4083 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4084 $as_echo_n "(cached) " >&6
4085 else
4086 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4087 case `$LD -v 2>&1 </dev/null` in
4088 *GNU* | *'with BFD'*)
4089 lt_cv_prog_gnu_ld=yes
4090 ;;
4091 *)
4092 lt_cv_prog_gnu_ld=no
4093 ;;
4094 esac
4095 fi
4096 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4097 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4098 with_gnu_ld=$lt_cv_prog_gnu_ld
4099
4100
4101 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4102 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4103 if test "${lt_cv_ld_reload_flag+set}" = set; then
4104 $as_echo_n "(cached) " >&6
4105 else
4106 lt_cv_ld_reload_flag='-r'
4107 fi
4108 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4109 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4110 reload_flag=$lt_cv_ld_reload_flag
4111 case $reload_flag in
4112 "" | " "*) ;;
4113 *) reload_flag=" $reload_flag" ;;
4114 esac
4115 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4116 case $host_os in
4117 darwin*)
4118 if test "$GCC" = yes; then
4119 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4120 else
4121 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4122 fi
4123 ;;
4124 esac
4125
4126 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4127 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4128 if test "${lt_cv_path_NM+set}" = set; then
4129 $as_echo_n "(cached) " >&6
4130 else
4131 if test -n "$NM"; then
4132 # Let the user override the test.
4133 lt_cv_path_NM="$NM"
4134 else
4135 lt_nm_to_check="${ac_tool_prefix}nm"
4136 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4137 lt_nm_to_check="$lt_nm_to_check nm"
4138 fi
4139 for lt_tmp_nm in $lt_nm_to_check; do
4140 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4141 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4142 IFS="$lt_save_ifs"
4143 test -z "$ac_dir" && ac_dir=.
4144 tmp_nm="$ac_dir/$lt_tmp_nm"
4145 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4146 # Check to see if the nm accepts a BSD-compat flag.
4147 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4148 # nm: unknown option "B" ignored
4149 # Tru64's nm complains that /dev/null is an invalid object file
4150 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4151 */dev/null* | *'Invalid file or object type'*)
4152 lt_cv_path_NM="$tmp_nm -B"
4153 break
4154 ;;
4155 *)
4156 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4157 */dev/null*)
4158 lt_cv_path_NM="$tmp_nm -p"
4159 break
4160 ;;
4161 *)
4162 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4163 continue # so that we can try to find one that supports BSD flags
4164 ;;
4165 esac
4166 ;;
4167 esac
4168 fi
4169 done
4170 IFS="$lt_save_ifs"
4171 done
4172 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4173 fi
4174 fi
4175 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4176 $as_echo "$lt_cv_path_NM" >&6; }
4177 NM="$lt_cv_path_NM"
4178
4179 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4180 $as_echo_n "checking whether ln -s works... " >&6; }
4181 LN_S=$as_ln_s
4182 if test "$LN_S" = "ln -s"; then
4183 { $as_echo "$as_me:$LINENO: result: yes" >&5
4184 $as_echo "yes" >&6; }
4185 else
4186 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4187 $as_echo "no, using $LN_S" >&6; }
4188 fi
4189
4190 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4191 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4192 if test "${lt_cv_deplibs_check_method+set}" = set; then
4193 $as_echo_n "(cached) " >&6
4194 else
4195 lt_cv_file_magic_cmd='$MAGIC_CMD'
4196 lt_cv_file_magic_test_file=
4197 lt_cv_deplibs_check_method='unknown'
4198 # Need to set the preceding variable on all platforms that support
4199 # interlibrary dependencies.
4200 # 'none' -- dependencies not supported.
4201 # `unknown' -- same as none, but documents that we really don't know.
4202 # 'pass_all' -- all dependencies passed with no checks.
4203 # 'test_compile' -- check by making test program.
4204 # 'file_magic [[regex]]' -- check by looking for files in library path
4205 # which responds to the $file_magic_cmd with a given extended regex.
4206 # If you have `file' or equivalent on your system and you're not sure
4207 # whether `pass_all' will *always* work, you probably want this one.
4208
4209 case $host_os in
4210 aix[4-9]*)
4211 lt_cv_deplibs_check_method=pass_all
4212 ;;
4213
4214 beos*)
4215 lt_cv_deplibs_check_method=pass_all
4216 ;;
4217
4218 bsdi[45]*)
4219 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4220 lt_cv_file_magic_cmd='/usr/bin/file -L'
4221 lt_cv_file_magic_test_file=/shlib/libc.so
4222 ;;
4223
4224 cygwin*)
4225 # func_win32_libid is a shell function defined in ltmain.sh
4226 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4227 lt_cv_file_magic_cmd='func_win32_libid'
4228 ;;
4229
4230 mingw* | pw32*)
4231 # Base MSYS/MinGW do not provide the 'file' command needed by
4232 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4233 # unless we find 'file', for example because we are cross-compiling.
4234 if ( file / ) >/dev/null 2>&1; then
4235 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4236 lt_cv_file_magic_cmd='func_win32_libid'
4237 else
4238 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4239 lt_cv_file_magic_cmd='$OBJDUMP -f'
4240 fi
4241 ;;
4242
4243 darwin* | rhapsody*)
4244 lt_cv_deplibs_check_method=pass_all
4245 ;;
4246
4247 freebsd* | dragonfly*)
4248 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4249 case $host_cpu in
4250 i*86 )
4251 # Not sure whether the presence of OpenBSD here was a mistake.
4252 # Let's accept both of them until this is cleared up.
4253 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4254 lt_cv_file_magic_cmd=/usr/bin/file
4255 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4256 ;;
4257 esac
4258 else
4259 lt_cv_deplibs_check_method=pass_all
4260 fi
4261 ;;
4262
4263 gnu*)
4264 lt_cv_deplibs_check_method=pass_all
4265 ;;
4266
4267 hpux10.20* | hpux11*)
4268 lt_cv_file_magic_cmd=/usr/bin/file
4269 case $host_cpu in
4270 ia64*)
4271 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4272 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4273 ;;
4274 hppa*64*)
4275 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]'
4276 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4277 ;;
4278 *)
4279 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4280 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4281 ;;
4282 esac
4283 ;;
4284
4285 interix[3-9]*)
4286 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4288 ;;
4289
4290 irix5* | irix6* | nonstopux*)
4291 case $LD in
4292 *-32|*"-32 ") libmagic=32-bit;;
4293 *-n32|*"-n32 ") libmagic=N32;;
4294 *-64|*"-64 ") libmagic=64-bit;;
4295 *) libmagic=never-match;;
4296 esac
4297 lt_cv_deplibs_check_method=pass_all
4298 ;;
4299
4300 # This must be Linux ELF.
4301 linux* | k*bsd*-gnu)
4302 lt_cv_deplibs_check_method=pass_all
4303 ;;
4304
4305 netbsd*)
4306 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4307 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4308 else
4309 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4310 fi
4311 ;;
4312
4313 newos6*)
4314 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4315 lt_cv_file_magic_cmd=/usr/bin/file
4316 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4317 ;;
4318
4319 nto-qnx*)
4320 lt_cv_deplibs_check_method=unknown
4321 ;;
4322
4323 openbsd*)
4324 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4325 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4326 else
4327 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4328 fi
4329 ;;
4330
4331 osf3* | osf4* | osf5*)
4332 lt_cv_deplibs_check_method=pass_all
4333 ;;
4334
4335 rdos*)
4336 lt_cv_deplibs_check_method=pass_all
4337 ;;
4338
4339 solaris*)
4340 lt_cv_deplibs_check_method=pass_all
4341 ;;
4342
4343 sysv4 | sysv4.3*)
4344 case $host_vendor in
4345 motorola)
4346 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]'
4347 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4348 ;;
4349 ncr)
4350 lt_cv_deplibs_check_method=pass_all
4351 ;;
4352 sequent)
4353 lt_cv_file_magic_cmd='/bin/file'
4354 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4355 ;;
4356 sni)
4357 lt_cv_file_magic_cmd='/bin/file'
4358 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4359 lt_cv_file_magic_test_file=/lib/libc.so
4360 ;;
4361 siemens)
4362 lt_cv_deplibs_check_method=pass_all
4363 ;;
4364 pc)
4365 lt_cv_deplibs_check_method=pass_all
4366 ;;
4367 esac
4368 ;;
4369
4370 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4371 lt_cv_deplibs_check_method=pass_all
4372 ;;
4373 esac
4374
4375 fi
4376 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4377 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4378 file_magic_cmd=$lt_cv_file_magic_cmd
4379 deplibs_check_method=$lt_cv_deplibs_check_method
4380 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4381
4382
4383
4384
4385 # If no C compiler was specified, use CC.
4386 LTCC=${LTCC-"$CC"}
4387
4388 # If no C compiler flags were specified, use CFLAGS.
4389 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4390
4391 # Allow CC to be a program name with arguments.
4392 compiler=$CC
4393
4394
4395 # Check whether --enable-libtool-lock was given.
4396 if test "${enable_libtool_lock+set}" = set; then
4397 enableval=$enable_libtool_lock;
4398 fi
4399
4400 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4401
4402 # Some flags need to be propagated to the compiler or linker for good
4403 # libtool support.
4404 case $host in
4405 ia64-*-hpux*)
4406 # Find out which ABI we are using.
4407 echo 'int i;' > conftest.$ac_ext
4408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409 (eval $ac_compile) 2>&5
4410 ac_status=$?
4411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; then
4413 case `/usr/bin/file conftest.$ac_objext` in
4414 *ELF-32*)
4415 HPUX_IA64_MODE="32"
4416 ;;
4417 *ELF-64*)
4418 HPUX_IA64_MODE="64"
4419 ;;
4420 esac
4421 fi
4422 rm -rf conftest*
4423 ;;
4424 *-*-irix6*)
4425 # Find out which ABI we are using.
4426 echo '#line 4426 "configure"' > conftest.$ac_ext
4427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4428 (eval $ac_compile) 2>&5
4429 ac_status=$?
4430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); }; then
4432 if test "$lt_cv_prog_gnu_ld" = yes; then
4433 case `/usr/bin/file conftest.$ac_objext` in
4434 *32-bit*)
4435 LD="${LD-ld} -melf32bsmip"
4436 ;;
4437 *N32*)
4438 LD="${LD-ld} -melf32bmipn32"
4439 ;;
4440 *64-bit*)
4441 LD="${LD-ld} -melf64bmip"
4442 ;;
4443 esac
4444 else
4445 case `/usr/bin/file conftest.$ac_objext` in
4446 *32-bit*)
4447 LD="${LD-ld} -32"
4448 ;;
4449 *N32*)
4450 LD="${LD-ld} -n32"
4451 ;;
4452 *64-bit*)
4453 LD="${LD-ld} -64"
4454 ;;
4455 esac
4456 fi
4457 fi
4458 rm -rf conftest*
4459 ;;
4460
4461 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4462 s390*-*linux*|sparc*-*linux*)
4463 # Find out which ABI we are using.
4464 echo 'int i;' > conftest.$ac_ext
4465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4466 (eval $ac_compile) 2>&5
4467 ac_status=$?
4468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; then
4470 case `/usr/bin/file conftest.o` in
4471 *32-bit*)
4472 case $host in
4473 x86_64-*kfreebsd*-gnu)
4474 LD="${LD-ld} -m elf_i386_fbsd"
4475 ;;
4476 x86_64-*linux*)
4477 LD="${LD-ld} -m elf_i386"
4478 ;;
4479 ppc64-*linux*|powerpc64-*linux*)
4480 LD="${LD-ld} -m elf32ppclinux"
4481 ;;
4482 s390x-*linux*)
4483 LD="${LD-ld} -m elf_s390"
4484 ;;
4485 sparc64-*linux*)
4486 LD="${LD-ld} -m elf32_sparc"
4487 ;;
4488 esac
4489 ;;
4490 *64-bit*)
4491 case $host in
4492 x86_64-*kfreebsd*-gnu)
4493 LD="${LD-ld} -m elf_x86_64_fbsd"
4494 ;;
4495 x86_64-*linux*)
4496 LD="${LD-ld} -m elf_x86_64"
4497 ;;
4498 ppc*-*linux*|powerpc*-*linux*)
4499 LD="${LD-ld} -m elf64ppc"
4500 ;;
4501 s390*-*linux*)
4502 LD="${LD-ld} -m elf64_s390"
4503 ;;
4504 sparc*-*linux*)
4505 LD="${LD-ld} -m elf64_sparc"
4506 ;;
4507 esac
4508 ;;
4509 esac
4510 fi
4511 rm -rf conftest*
4512 ;;
4513
4514 *-*-sco3.2v5*)
4515 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4516 SAVE_CFLAGS="$CFLAGS"
4517 CFLAGS="$CFLAGS -belf"
4518 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4519 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4520 if test "${lt_cv_cc_needs_belf+set}" = set; then
4521 $as_echo_n "(cached) " >&6
4522 else
4523 ac_ext=c
4524 ac_cpp='$CPP $CPPFLAGS'
4525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4528
4529 cat >conftest.$ac_ext <<_ACEOF
4530 /* confdefs.h. */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4535
4536 int
4537 main ()
4538 {
4539
4540 ;
4541 return 0;
4542 }
4543 _ACEOF
4544 rm -f conftest.$ac_objext conftest$ac_exeext
4545 if { (ac_try="$ac_link"
4546 case "(($ac_try" in
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4549 esac
4550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4551 $as_echo "$ac_try_echo") >&5
4552 (eval "$ac_link") 2>conftest.er1
4553 ac_status=$?
4554 grep -v '^ *+' conftest.er1 >conftest.err
4555 rm -f conftest.er1
4556 cat conftest.err >&5
4557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } && {
4559 test -z "$ac_c_werror_flag" ||
4560 test ! -s conftest.err
4561 } && test -s conftest$ac_exeext && {
4562 test "$cross_compiling" = yes ||
4563 $as_test_x conftest$ac_exeext
4564 }; then
4565 lt_cv_cc_needs_belf=yes
4566 else
4567 $as_echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4569
4570 lt_cv_cc_needs_belf=no
4571 fi
4572
4573 rm -rf conftest.dSYM
4574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4575 conftest$ac_exeext conftest.$ac_ext
4576 ac_ext=c
4577 ac_cpp='$CPP $CPPFLAGS'
4578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4581
4582 fi
4583 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4584 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4585 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4586 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4587 CFLAGS="$SAVE_CFLAGS"
4588 fi
4589 ;;
4590 sparc*-*solaris*)
4591 # Find out which ABI we are using.
4592 echo 'int i;' > conftest.$ac_ext
4593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4594 (eval $ac_compile) 2>&5
4595 ac_status=$?
4596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; then
4598 case `/usr/bin/file conftest.o` in
4599 *64-bit*)
4600 case $lt_cv_prog_gnu_ld in
4601 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4602 *)
4603 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4604 LD="${LD-ld} -64"
4605 fi
4606 ;;
4607 esac
4608 ;;
4609 esac
4610 fi
4611 rm -rf conftest*
4612 ;;
4613
4614
4615 esac
4616
4617 need_locks="$enable_libtool_lock"
4618
4619
4620 ac_ext=c
4621 ac_cpp='$CPP $CPPFLAGS'
4622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4625 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4626 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4627 # On Suns, sometimes $CPP names a directory.
4628 if test -n "$CPP" && test -d "$CPP"; then
4629 CPP=
4630 fi
4631 if test -z "$CPP"; then
4632 if test "${ac_cv_prog_CPP+set}" = set; then
4633 $as_echo_n "(cached) " >&6
4634 else
4635 # Double quotes because CPP needs to be expanded
4636 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4637 do
4638 ac_preproc_ok=false
4639 for ac_c_preproc_warn_flag in '' yes
4640 do
4641 # Use a header file that comes with gcc, so configuring glibc
4642 # with a fresh cross-compiler works.
4643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4644 # <limits.h> exists even on freestanding compilers.
4645 # On the NeXT, cc -E runs the code through the compiler's parser,
4646 # not just through cpp. "Syntax error" is here to catch this case.
4647 cat >conftest.$ac_ext <<_ACEOF
4648 /* confdefs.h. */
4649 _ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4653 #ifdef __STDC__
4654 # include <limits.h>
4655 #else
4656 # include <assert.h>
4657 #endif
4658 Syntax error
4659 _ACEOF
4660 if { (ac_try="$ac_cpp conftest.$ac_ext"
4661 case "(($ac_try" in
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4664 esac
4665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4666 $as_echo "$ac_try_echo") >&5
4667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4668 ac_status=$?
4669 grep -v '^ *+' conftest.er1 >conftest.err
4670 rm -f conftest.er1
4671 cat conftest.err >&5
4672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } >/dev/null && {
4674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4675 test ! -s conftest.err
4676 }; then
4677 :
4678 else
4679 $as_echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4681
4682 # Broken: fails on valid input.
4683 continue
4684 fi
4685
4686 rm -f conftest.err conftest.$ac_ext
4687
4688 # OK, works on sane cases. Now check whether nonexistent headers
4689 # can be detected and how.
4690 cat >conftest.$ac_ext <<_ACEOF
4691 /* confdefs.h. */
4692 _ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4696 #include <ac_nonexistent.h>
4697 _ACEOF
4698 if { (ac_try="$ac_cpp conftest.$ac_ext"
4699 case "(($ac_try" in
4700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4701 *) ac_try_echo=$ac_try;;
4702 esac
4703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4704 $as_echo "$ac_try_echo") >&5
4705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4706 ac_status=$?
4707 grep -v '^ *+' conftest.er1 >conftest.err
4708 rm -f conftest.er1
4709 cat conftest.err >&5
4710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } >/dev/null && {
4712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4713 test ! -s conftest.err
4714 }; then
4715 # Broken: success on invalid input.
4716 continue
4717 else
4718 $as_echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.$ac_ext >&5
4720
4721 # Passes both tests.
4722 ac_preproc_ok=:
4723 break
4724 fi
4725
4726 rm -f conftest.err conftest.$ac_ext
4727
4728 done
4729 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4730 rm -f conftest.err conftest.$ac_ext
4731 if $ac_preproc_ok; then
4732 break
4733 fi
4734
4735 done
4736 ac_cv_prog_CPP=$CPP
4737
4738 fi
4739 CPP=$ac_cv_prog_CPP
4740 else
4741 ac_cv_prog_CPP=$CPP
4742 fi
4743 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4744 $as_echo "$CPP" >&6; }
4745 ac_preproc_ok=false
4746 for ac_c_preproc_warn_flag in '' yes
4747 do
4748 # Use a header file that comes with gcc, so configuring glibc
4749 # with a fresh cross-compiler works.
4750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4751 # <limits.h> exists even on freestanding compilers.
4752 # On the NeXT, cc -E runs the code through the compiler's parser,
4753 # not just through cpp. "Syntax error" is here to catch this case.
4754 cat >conftest.$ac_ext <<_ACEOF
4755 /* confdefs.h. */
4756 _ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h. */
4760 #ifdef __STDC__
4761 # include <limits.h>
4762 #else
4763 # include <assert.h>
4764 #endif
4765 Syntax error
4766 _ACEOF
4767 if { (ac_try="$ac_cpp conftest.$ac_ext"
4768 case "(($ac_try" in
4769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4770 *) ac_try_echo=$ac_try;;
4771 esac
4772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4773 $as_echo "$ac_try_echo") >&5
4774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4775 ac_status=$?
4776 grep -v '^ *+' conftest.er1 >conftest.err
4777 rm -f conftest.er1
4778 cat conftest.err >&5
4779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } >/dev/null && {
4781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4782 test ! -s conftest.err
4783 }; then
4784 :
4785 else
4786 $as_echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4788
4789 # Broken: fails on valid input.
4790 continue
4791 fi
4792
4793 rm -f conftest.err conftest.$ac_ext
4794
4795 # OK, works on sane cases. Now check whether nonexistent headers
4796 # can be detected and how.
4797 cat >conftest.$ac_ext <<_ACEOF
4798 /* confdefs.h. */
4799 _ACEOF
4800 cat confdefs.h >>conftest.$ac_ext
4801 cat >>conftest.$ac_ext <<_ACEOF
4802 /* end confdefs.h. */
4803 #include <ac_nonexistent.h>
4804 _ACEOF
4805 if { (ac_try="$ac_cpp conftest.$ac_ext"
4806 case "(($ac_try" in
4807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808 *) ac_try_echo=$ac_try;;
4809 esac
4810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4811 $as_echo "$ac_try_echo") >&5
4812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4813 ac_status=$?
4814 grep -v '^ *+' conftest.er1 >conftest.err
4815 rm -f conftest.er1
4816 cat conftest.err >&5
4817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } >/dev/null && {
4819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4820 test ! -s conftest.err
4821 }; then
4822 # Broken: success on invalid input.
4823 continue
4824 else
4825 $as_echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4827
4828 # Passes both tests.
4829 ac_preproc_ok=:
4830 break
4831 fi
4832
4833 rm -f conftest.err conftest.$ac_ext
4834
4835 done
4836 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4837 rm -f conftest.err conftest.$ac_ext
4838 if $ac_preproc_ok; then
4839 :
4840 else
4841 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4842 See \`config.log' for more details." >&5
4843 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4844 See \`config.log' for more details." >&2;}
4845 { (exit 1); exit 1; }; }
4846 fi
4847
4848 ac_ext=c
4849 ac_cpp='$CPP $CPPFLAGS'
4850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4853
4854
4855 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4856 $as_echo_n "checking for ANSI C header files... " >&6; }
4857 if test "${ac_cv_header_stdc+set}" = set; then
4858 $as_echo_n "(cached) " >&6
4859 else
4860 cat >conftest.$ac_ext <<_ACEOF
4861 /* confdefs.h. */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 #include <stdlib.h>
4867 #include <stdarg.h>
4868 #include <string.h>
4869 #include <float.h>
4870
4871 int
4872 main ()
4873 {
4874
4875 ;
4876 return 0;
4877 }
4878 _ACEOF
4879 rm -f conftest.$ac_objext
4880 if { (ac_try="$ac_compile"
4881 case "(($ac_try" in
4882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4883 *) ac_try_echo=$ac_try;;
4884 esac
4885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4886 $as_echo "$ac_try_echo") >&5
4887 (eval "$ac_compile") 2>conftest.er1
4888 ac_status=$?
4889 grep -v '^ *+' conftest.er1 >conftest.err
4890 rm -f conftest.er1
4891 cat conftest.err >&5
4892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); } && {
4894 test -z "$ac_c_werror_flag" ||
4895 test ! -s conftest.err
4896 } && test -s conftest.$ac_objext; then
4897 ac_cv_header_stdc=yes
4898 else
4899 $as_echo "$as_me: failed program was:" >&5
4900 sed 's/^/| /' conftest.$ac_ext >&5
4901
4902 ac_cv_header_stdc=no
4903 fi
4904
4905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906
4907 if test $ac_cv_header_stdc = yes; then
4908 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4909 cat >conftest.$ac_ext <<_ACEOF
4910 /* confdefs.h. */
4911 _ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4915 #include <string.h>
4916
4917 _ACEOF
4918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4919 $EGREP "memchr" >/dev/null 2>&1; then
4920 :
4921 else
4922 ac_cv_header_stdc=no
4923 fi
4924 rm -f conftest*
4925
4926 fi
4927
4928 if test $ac_cv_header_stdc = yes; then
4929 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4930 cat >conftest.$ac_ext <<_ACEOF
4931 /* confdefs.h. */
4932 _ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h. */
4936 #include <stdlib.h>
4937
4938 _ACEOF
4939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4940 $EGREP "free" >/dev/null 2>&1; then
4941 :
4942 else
4943 ac_cv_header_stdc=no
4944 fi
4945 rm -f conftest*
4946
4947 fi
4948
4949 if test $ac_cv_header_stdc = yes; then
4950 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4951 if test "$cross_compiling" = yes; then
4952 :
4953 else
4954 cat >conftest.$ac_ext <<_ACEOF
4955 /* confdefs.h. */
4956 _ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4960 #include <ctype.h>
4961 #include <stdlib.h>
4962 #if ((' ' & 0x0FF) == 0x020)
4963 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4964 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4965 #else
4966 # define ISLOWER(c) \
4967 (('a' <= (c) && (c) <= 'i') \
4968 || ('j' <= (c) && (c) <= 'r') \
4969 || ('s' <= (c) && (c) <= 'z'))
4970 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4971 #endif
4972
4973 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4974 int
4975 main ()
4976 {
4977 int i;
4978 for (i = 0; i < 256; i++)
4979 if (XOR (islower (i), ISLOWER (i))
4980 || toupper (i) != TOUPPER (i))
4981 return 2;
4982 return 0;
4983 }
4984 _ACEOF
4985 rm -f conftest$ac_exeext
4986 if { (ac_try="$ac_link"
4987 case "(($ac_try" in
4988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4989 *) ac_try_echo=$ac_try;;
4990 esac
4991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4992 $as_echo "$ac_try_echo") >&5
4993 (eval "$ac_link") 2>&5
4994 ac_status=$?
4995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4997 { (case "(($ac_try" in
4998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4999 *) ac_try_echo=$ac_try;;
5000 esac
5001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5002 $as_echo "$ac_try_echo") >&5
5003 (eval "$ac_try") 2>&5
5004 ac_status=$?
5005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; }; then
5007 :
5008 else
5009 $as_echo "$as_me: program exited with status $ac_status" >&5
5010 $as_echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5012
5013 ( exit $ac_status )
5014 ac_cv_header_stdc=no
5015 fi
5016 rm -rf conftest.dSYM
5017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5018 fi
5019
5020
5021 fi
5022 fi
5023 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5024 $as_echo "$ac_cv_header_stdc" >&6; }
5025 if test $ac_cv_header_stdc = yes; then
5026
5027 cat >>confdefs.h <<\_ACEOF
5028 #define STDC_HEADERS 1
5029 _ACEOF
5030
5031 fi
5032
5033 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5044 inttypes.h stdint.h unistd.h
5045 do
5046 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5047 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5048 $as_echo_n "checking for $ac_header... " >&6; }
5049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5050 $as_echo_n "(cached) " >&6
5051 else
5052 cat >conftest.$ac_ext <<_ACEOF
5053 /* confdefs.h. */
5054 _ACEOF
5055 cat confdefs.h >>conftest.$ac_ext
5056 cat >>conftest.$ac_ext <<_ACEOF
5057 /* end confdefs.h. */
5058 $ac_includes_default
5059
5060 #include <$ac_header>
5061 _ACEOF
5062 rm -f conftest.$ac_objext
5063 if { (ac_try="$ac_compile"
5064 case "(($ac_try" in
5065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5066 *) ac_try_echo=$ac_try;;
5067 esac
5068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5069 $as_echo "$ac_try_echo") >&5
5070 (eval "$ac_compile") 2>conftest.er1
5071 ac_status=$?
5072 grep -v '^ *+' conftest.er1 >conftest.err
5073 rm -f conftest.er1
5074 cat conftest.err >&5
5075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } && {
5077 test -z "$ac_c_werror_flag" ||
5078 test ! -s conftest.err
5079 } && test -s conftest.$ac_objext; then
5080 eval "$as_ac_Header=yes"
5081 else
5082 $as_echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5084
5085 eval "$as_ac_Header=no"
5086 fi
5087
5088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5089 fi
5090 ac_res=`eval 'as_val=${'$as_ac_Header'}
5091 $as_echo "$as_val"'`
5092 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5093 $as_echo "$ac_res" >&6; }
5094 if test `eval 'as_val=${'$as_ac_Header'}
5095 $as_echo "$as_val"'` = yes; then
5096 cat >>confdefs.h <<_ACEOF
5097 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5098 _ACEOF
5099
5100 fi
5101
5102 done
5103
5104
5105
5106 for ac_header in dlfcn.h
5107 do
5108 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5110 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5111 $as_echo_n "checking for $ac_header... " >&6; }
5112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5113 $as_echo_n "(cached) " >&6
5114 fi
5115 ac_res=`eval 'as_val=${'$as_ac_Header'}
5116 $as_echo "$as_val"'`
5117 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5118 $as_echo "$ac_res" >&6; }
5119 else
5120 # Is the header compilable?
5121 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5122 $as_echo_n "checking $ac_header usability... " >&6; }
5123 cat >conftest.$ac_ext <<_ACEOF
5124 /* confdefs.h. */
5125 _ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5129 $ac_includes_default
5130 #include <$ac_header>
5131 _ACEOF
5132 rm -f conftest.$ac_objext
5133 if { (ac_try="$ac_compile"
5134 case "(($ac_try" in
5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136 *) ac_try_echo=$ac_try;;
5137 esac
5138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5139 $as_echo "$ac_try_echo") >&5
5140 (eval "$ac_compile") 2>conftest.er1
5141 ac_status=$?
5142 grep -v '^ *+' conftest.er1 >conftest.err
5143 rm -f conftest.er1
5144 cat conftest.err >&5
5145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } && {
5147 test -z "$ac_c_werror_flag" ||
5148 test ! -s conftest.err
5149 } && test -s conftest.$ac_objext; then
5150 ac_header_compiler=yes
5151 else
5152 $as_echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5154
5155 ac_header_compiler=no
5156 fi
5157
5158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5160 $as_echo "$ac_header_compiler" >&6; }
5161
5162 # Is the header present?
5163 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5164 $as_echo_n "checking $ac_header presence... " >&6; }
5165 cat >conftest.$ac_ext <<_ACEOF
5166 /* confdefs.h. */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 #include <$ac_header>
5172 _ACEOF
5173 if { (ac_try="$ac_cpp conftest.$ac_ext"
5174 case "(($ac_try" in
5175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5176 *) ac_try_echo=$ac_try;;
5177 esac
5178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5179 $as_echo "$ac_try_echo") >&5
5180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5181 ac_status=$?
5182 grep -v '^ *+' conftest.er1 >conftest.err
5183 rm -f conftest.er1
5184 cat conftest.err >&5
5185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } >/dev/null && {
5187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5188 test ! -s conftest.err
5189 }; then
5190 ac_header_preproc=yes
5191 else
5192 $as_echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5194
5195 ac_header_preproc=no
5196 fi
5197
5198 rm -f conftest.err conftest.$ac_ext
5199 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5200 $as_echo "$ac_header_preproc" >&6; }
5201
5202 # So? What about this header?
5203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5204 yes:no: )
5205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5206 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5208 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5209 ac_header_preproc=yes
5210 ;;
5211 no:yes:* )
5212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5213 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5215 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5217 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5219 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5221 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5223 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5224 ( cat <<\_ASBOX
5225 ## -------------------------------------- ##
5226 ## Report this to http://www.openbsd.org/ ##
5227 ## -------------------------------------- ##
5228 _ASBOX
5229 ) | sed "s/^/$as_me: WARNING: /" >&2
5230 ;;
5231 esac
5232 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5233 $as_echo_n "checking for $ac_header... " >&6; }
5234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5235 $as_echo_n "(cached) " >&6
5236 else
5237 eval "$as_ac_Header=\$ac_header_preproc"
5238 fi
5239 ac_res=`eval 'as_val=${'$as_ac_Header'}
5240 $as_echo "$as_val"'`
5241 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5242 $as_echo "$ac_res" >&6; }
5243
5244 fi
5245 if test `eval 'as_val=${'$as_ac_Header'}
5246 $as_echo "$as_val"'` = yes; then
5247 cat >>confdefs.h <<_ACEOF
5248 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5249 _ACEOF
5250
5251 fi
5252
5253 done
5254
5255 ac_ext=cpp
5256 ac_cpp='$CXXCPP $CPPFLAGS'
5257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5260 if test -z "$CXX"; then
5261 if test -n "$CCC"; then
5262 CXX=$CCC
5263 else
5264 if test -n "$ac_tool_prefix"; then
5265 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5266 do
5267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5269 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5270 $as_echo_n "checking for $ac_word... " >&6; }
5271 if test "${ac_cv_prog_CXX+set}" = set; then
5272 $as_echo_n "(cached) " >&6
5273 else
5274 if test -n "$CXX"; then
5275 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5276 else
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5279 do
5280 IFS=$as_save_IFS
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5285 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5286 break 2
5287 fi
5288 done
5289 done
5290 IFS=$as_save_IFS
5291
5292 fi
5293 fi
5294 CXX=$ac_cv_prog_CXX
5295 if test -n "$CXX"; then
5296 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5297 $as_echo "$CXX" >&6; }
5298 else
5299 { $as_echo "$as_me:$LINENO: result: no" >&5
5300 $as_echo "no" >&6; }
5301 fi
5302
5303
5304 test -n "$CXX" && break
5305 done
5306 fi
5307 if test -z "$CXX"; then
5308 ac_ct_CXX=$CXX
5309 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5310 do
5311 # Extract the first word of "$ac_prog", so it can be a program name with args.
5312 set dummy $ac_prog; ac_word=$2
5313 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5314 $as_echo_n "checking for $ac_word... " >&6; }
5315 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5316 $as_echo_n "(cached) " >&6
5317 else
5318 if test -n "$ac_ct_CXX"; then
5319 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5320 else
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH
5323 do
5324 IFS=$as_save_IFS
5325 test -z "$as_dir" && as_dir=.
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5328 ac_cv_prog_ac_ct_CXX="$ac_prog"
5329 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 break 2
5331 fi
5332 done
5333 done
5334 IFS=$as_save_IFS
5335
5336 fi
5337 fi
5338 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5339 if test -n "$ac_ct_CXX"; then
5340 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5341 $as_echo "$ac_ct_CXX" >&6; }
5342 else
5343 { $as_echo "$as_me:$LINENO: result: no" >&5
5344 $as_echo "no" >&6; }
5345 fi
5346
5347
5348 test -n "$ac_ct_CXX" && break
5349 done
5350
5351 if test "x$ac_ct_CXX" = x; then
5352 CXX="g++"
5353 else
5354 case $cross_compiling:$ac_tool_warned in
5355 yes:)
5356 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5357 whose name does not start with the host triplet. If you think this
5358 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
5359 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5360 whose name does not start with the host triplet. If you think this
5361 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
5362 ac_tool_warned=yes ;;
5363 esac
5364 CXX=$ac_ct_CXX
5365 fi
5366 fi
5367
5368 fi
5369 fi
5370 # Provide some information about the compiler.
5371 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5372 set X $ac_compile
5373 ac_compiler=$2
5374 { (ac_try="$ac_compiler --version >&5"
5375 case "(($ac_try" in
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5378 esac
5379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5380 $as_echo "$ac_try_echo") >&5
5381 (eval "$ac_compiler --version >&5") 2>&5
5382 ac_status=$?
5383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }
5385 { (ac_try="$ac_compiler -v >&5"
5386 case "(($ac_try" in
5387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388 *) ac_try_echo=$ac_try;;
5389 esac
5390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5391 $as_echo "$ac_try_echo") >&5
5392 (eval "$ac_compiler -v >&5") 2>&5
5393 ac_status=$?
5394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }
5396 { (ac_try="$ac_compiler -V >&5"
5397 case "(($ac_try" in
5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399 *) ac_try_echo=$ac_try;;
5400 esac
5401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5402 $as_echo "$ac_try_echo") >&5
5403 (eval "$ac_compiler -V >&5") 2>&5
5404 ac_status=$?
5405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }
5407
5408 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5409 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5410 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5411 $as_echo_n "(cached) " >&6
5412 else
5413 cat >conftest.$ac_ext <<_ACEOF
5414 /* confdefs.h. */
5415 _ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h. */
5419
5420 int
5421 main ()
5422 {
5423 #ifndef __GNUC__
5424 choke me
5425 #endif
5426
5427 ;
5428 return 0;
5429 }
5430 _ACEOF
5431 rm -f conftest.$ac_objext
5432 if { (ac_try="$ac_compile"
5433 case "(($ac_try" in
5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435 *) ac_try_echo=$ac_try;;
5436 esac
5437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5438 $as_echo "$ac_try_echo") >&5
5439 (eval "$ac_compile") 2>conftest.er1
5440 ac_status=$?
5441 grep -v '^ *+' conftest.er1 >conftest.err
5442 rm -f conftest.er1
5443 cat conftest.err >&5
5444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } && {
5446 test -z "$ac_cxx_werror_flag" ||
5447 test ! -s conftest.err
5448 } && test -s conftest.$ac_objext; then
5449 ac_compiler_gnu=yes
5450 else
5451 $as_echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5453
5454 ac_compiler_gnu=no
5455 fi
5456
5457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5458 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5459
5460 fi
5461 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5462 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5463 if test $ac_compiler_gnu = yes; then
5464 GXX=yes
5465 else
5466 GXX=
5467 fi
5468 ac_test_CXXFLAGS=${CXXFLAGS+set}
5469 ac_save_CXXFLAGS=$CXXFLAGS
5470 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5471 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5472 if test "${ac_cv_prog_cxx_g+set}" = set; then
5473 $as_echo_n "(cached) " >&6
5474 else
5475 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5476 ac_cxx_werror_flag=yes
5477 ac_cv_prog_cxx_g=no
5478 CXXFLAGS="-g"
5479 cat >conftest.$ac_ext <<_ACEOF
5480 /* confdefs.h. */
5481 _ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5485
5486 int
5487 main ()
5488 {
5489
5490 ;
5491 return 0;
5492 }
5493 _ACEOF
5494 rm -f conftest.$ac_objext
5495 if { (ac_try="$ac_compile"
5496 case "(($ac_try" in
5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498 *) ac_try_echo=$ac_try;;
5499 esac
5500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5501 $as_echo "$ac_try_echo") >&5
5502 (eval "$ac_compile") 2>conftest.er1
5503 ac_status=$?
5504 grep -v '^ *+' conftest.er1 >conftest.err
5505 rm -f conftest.er1
5506 cat conftest.err >&5
5507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } && {
5509 test -z "$ac_cxx_werror_flag" ||
5510 test ! -s conftest.err
5511 } && test -s conftest.$ac_objext; then
5512 ac_cv_prog_cxx_g=yes
5513 else
5514 $as_echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
5516
5517 CXXFLAGS=""
5518 cat >conftest.$ac_ext <<_ACEOF
5519 /* confdefs.h. */
5520 _ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5524
5525 int
5526 main ()
5527 {
5528
5529 ;
5530 return 0;
5531 }
5532 _ACEOF
5533 rm -f conftest.$ac_objext
5534 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5542 ac_status=$?
5543 grep -v '^ *+' conftest.er1 >conftest.err
5544 rm -f conftest.er1
5545 cat conftest.err >&5
5546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } && {
5548 test -z "$ac_cxx_werror_flag" ||
5549 test ! -s conftest.err
5550 } && test -s conftest.$ac_objext; then
5551 :
5552 else
5553 $as_echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5555
5556 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5557 CXXFLAGS="-g"
5558 cat >conftest.$ac_ext <<_ACEOF
5559 /* confdefs.h. */
5560 _ACEOF
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h. */
5564
5565 int
5566 main ()
5567 {
5568
5569 ;
5570 return 0;
5571 }
5572 _ACEOF
5573 rm -f conftest.$ac_objext
5574 if { (ac_try="$ac_compile"
5575 case "(($ac_try" in
5576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577 *) ac_try_echo=$ac_try;;
5578 esac
5579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5580 $as_echo "$ac_try_echo") >&5
5581 (eval "$ac_compile") 2>conftest.er1
5582 ac_status=$?
5583 grep -v '^ *+' conftest.er1 >conftest.err
5584 rm -f conftest.er1
5585 cat conftest.err >&5
5586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } && {
5588 test -z "$ac_cxx_werror_flag" ||
5589 test ! -s conftest.err
5590 } && test -s conftest.$ac_objext; then
5591 ac_cv_prog_cxx_g=yes
5592 else
5593 $as_echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5595
5596
5597 fi
5598
5599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5600 fi
5601
5602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5603 fi
5604
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5607 fi
5608 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5609 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5610 if test "$ac_test_CXXFLAGS" = set; then
5611 CXXFLAGS=$ac_save_CXXFLAGS
5612 elif test $ac_cv_prog_cxx_g = yes; then
5613 if test "$GXX" = yes; then
5614 CXXFLAGS="-g -O2"
5615 else
5616 CXXFLAGS="-g"
5617 fi
5618 else
5619 if test "$GXX" = yes; then
5620 CXXFLAGS="-O2"
5621 else
5622 CXXFLAGS=
5623 fi
5624 fi
5625 ac_ext=cpp
5626 ac_cpp='$CXXCPP $CPPFLAGS'
5627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5630
5631 depcc="$CXX" am_compiler_list=
5632
5633 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5634 $as_echo_n "checking dependency style of $depcc... " >&6; }
5635 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5636 $as_echo_n "(cached) " >&6
5637 else
5638 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5639 # We make a subdir and do the tests there. Otherwise we can end up
5640 # making bogus files that we don't know about and never remove. For
5641 # instance it was reported that on HP-UX the gcc test will end up
5642 # making a dummy file named `D' -- because `-MD' means `put the output
5643 # in D'.
5644 mkdir conftest.dir
5645 # Copy depcomp to subdir because otherwise we won't find it if we're
5646 # using a relative directory.
5647 cp "$am_depcomp" conftest.dir
5648 cd conftest.dir
5649 # We will build objects and dependencies in a subdirectory because
5650 # it helps to detect inapplicable dependency modes. For instance
5651 # both Tru64's cc and ICC support -MD to output dependencies as a
5652 # side effect of compilation, but ICC will put the dependencies in
5653 # the current directory while Tru64 will put them in the object
5654 # directory.
5655 mkdir sub
5656
5657 am_cv_CXX_dependencies_compiler_type=none
5658 if test "$am_compiler_list" = ""; then
5659 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5660 fi
5661 for depmode in $am_compiler_list; do
5662 # Setup a source with many dependencies, because some compilers
5663 # like to wrap large dependency lists on column 80 (with \), and
5664 # we should not choose a depcomp mode which is confused by this.
5665 #
5666 # We need to recreate these files for each test, as the compiler may
5667 # overwrite some of them when testing with obscure command lines.
5668 # This happens at least with the AIX C compiler.
5669 : > sub/conftest.c
5670 for i in 1 2 3 4 5 6; do
5671 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5672 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5673 # Solaris 8's {/usr,}/bin/sh.
5674 touch sub/conftst$i.h
5675 done
5676 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5677
5678 case $depmode in
5679 nosideeffect)
5680 # after this tag, mechanisms are not by side-effect, so they'll
5681 # only be used when explicitly requested
5682 if test "x$enable_dependency_tracking" = xyes; then
5683 continue
5684 else
5685 break
5686 fi
5687 ;;
5688 none) break ;;
5689 esac
5690 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5691 # mode. It turns out that the SunPro C++ compiler does not properly
5692 # handle `-M -o', and we need to detect this.
5693 if depmode=$depmode \
5694 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5695 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5696 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5697 >/dev/null 2>conftest.err &&
5698 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5699 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5700 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5701 # icc doesn't choke on unknown options, it will just issue warnings
5702 # or remarks (even with -Werror). So we grep stderr for any message
5703 # that says an option was ignored or not supported.
5704 # When given -MP, icc 7.0 and 7.1 complain thusly:
5705 # icc: Command line warning: ignoring option '-M'; no argument required
5706 # The diagnosis changed in icc 8.0:
5707 # icc: Command line remark: option '-MP' not supported
5708 if (grep 'ignoring option' conftest.err ||
5709 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5710 am_cv_CXX_dependencies_compiler_type=$depmode
5711 break
5712 fi
5713 fi
5714 done
5715
5716 cd ..
5717 rm -rf conftest.dir
5718 else
5719 am_cv_CXX_dependencies_compiler_type=none
5720 fi
5721
5722 fi
5723 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5724 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5725 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5726
5727
5728
5729 if
5730 test "x$enable_dependency_tracking" != xno \
5731 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5732 am__fastdepCXX_TRUE=
5733 am__fastdepCXX_FALSE='#'
5734 else
5735 am__fastdepCXX_TRUE='#'
5736 am__fastdepCXX_FALSE=
5737 fi
5738
5739
5740
5741
5742 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5743 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5744 (test "X$CXX" != "Xg++"))) ; then
5745 ac_ext=cpp
5746 ac_cpp='$CXXCPP $CPPFLAGS'
5747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5750 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5751 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5752 if test -z "$CXXCPP"; then
5753 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5754 $as_echo_n "(cached) " >&6
5755 else
5756 # Double quotes because CXXCPP needs to be expanded
5757 for CXXCPP in "$CXX -E" "/lib/cpp"
5758 do
5759 ac_preproc_ok=false
5760 for ac_cxx_preproc_warn_flag in '' yes
5761 do
5762 # Use a header file that comes with gcc, so configuring glibc
5763 # with a fresh cross-compiler works.
5764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5765 # <limits.h> exists even on freestanding compilers.
5766 # On the NeXT, cc -E runs the code through the compiler's parser,
5767 # not just through cpp. "Syntax error" is here to catch this case.
5768 cat >conftest.$ac_ext <<_ACEOF
5769 /* confdefs.h. */
5770 _ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5774 #ifdef __STDC__
5775 # include <limits.h>
5776 #else
5777 # include <assert.h>
5778 #endif
5779 Syntax error
5780 _ACEOF
5781 if { (ac_try="$ac_cpp conftest.$ac_ext"
5782 case "(($ac_try" in
5783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784 *) ac_try_echo=$ac_try;;
5785 esac
5786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5787 $as_echo "$ac_try_echo") >&5
5788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5789 ac_status=$?
5790 grep -v '^ *+' conftest.er1 >conftest.err
5791 rm -f conftest.er1
5792 cat conftest.err >&5
5793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } >/dev/null && {
5795 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5796 test ! -s conftest.err
5797 }; then
5798 :
5799 else
5800 $as_echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.$ac_ext >&5
5802
5803 # Broken: fails on valid input.
5804 continue
5805 fi
5806
5807 rm -f conftest.err conftest.$ac_ext
5808
5809 # OK, works on sane cases. Now check whether nonexistent headers
5810 # can be detected and how.
5811 cat >conftest.$ac_ext <<_ACEOF
5812 /* confdefs.h. */
5813 _ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5817 #include <ac_nonexistent.h>
5818 _ACEOF
5819 if { (ac_try="$ac_cpp conftest.$ac_ext"
5820 case "(($ac_try" in
5821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822 *) ac_try_echo=$ac_try;;
5823 esac
5824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5825 $as_echo "$ac_try_echo") >&5
5826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5827 ac_status=$?
5828 grep -v '^ *+' conftest.er1 >conftest.err
5829 rm -f conftest.er1
5830 cat conftest.err >&5
5831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } >/dev/null && {
5833 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5834 test ! -s conftest.err
5835 }; then
5836 # Broken: success on invalid input.
5837 continue
5838 else
5839 $as_echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5841
5842 # Passes both tests.
5843 ac_preproc_ok=:
5844 break
5845 fi
5846
5847 rm -f conftest.err conftest.$ac_ext
5848
5849 done
5850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5851 rm -f conftest.err conftest.$ac_ext
5852 if $ac_preproc_ok; then
5853 break
5854 fi
5855
5856 done
5857 ac_cv_prog_CXXCPP=$CXXCPP
5858
5859 fi
5860 CXXCPP=$ac_cv_prog_CXXCPP
5861 else
5862 ac_cv_prog_CXXCPP=$CXXCPP
5863 fi
5864 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5865 $as_echo "$CXXCPP" >&6; }
5866 ac_preproc_ok=false
5867 for ac_cxx_preproc_warn_flag in '' yes
5868 do
5869 # Use a header file that comes with gcc, so configuring glibc
5870 # with a fresh cross-compiler works.
5871 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5872 # <limits.h> exists even on freestanding compilers.
5873 # On the NeXT, cc -E runs the code through the compiler's parser,
5874 # not just through cpp. "Syntax error" is here to catch this case.
5875 cat >conftest.$ac_ext <<_ACEOF
5876 /* confdefs.h. */
5877 _ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5881 #ifdef __STDC__
5882 # include <limits.h>
5883 #else
5884 # include <assert.h>
5885 #endif
5886 Syntax error
5887 _ACEOF
5888 if { (ac_try="$ac_cpp conftest.$ac_ext"
5889 case "(($ac_try" in
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5892 esac
5893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5894 $as_echo "$ac_try_echo") >&5
5895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5896 ac_status=$?
5897 grep -v '^ *+' conftest.er1 >conftest.err
5898 rm -f conftest.er1
5899 cat conftest.err >&5
5900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } >/dev/null && {
5902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5903 test ! -s conftest.err
5904 }; then
5905 :
5906 else
5907 $as_echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5909
5910 # Broken: fails on valid input.
5911 continue
5912 fi
5913
5914 rm -f conftest.err conftest.$ac_ext
5915
5916 # OK, works on sane cases. Now check whether nonexistent headers
5917 # can be detected and how.
5918 cat >conftest.$ac_ext <<_ACEOF
5919 /* confdefs.h. */
5920 _ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5924 #include <ac_nonexistent.h>
5925 _ACEOF
5926 if { (ac_try="$ac_cpp conftest.$ac_ext"
5927 case "(($ac_try" in
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5930 esac
5931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5932 $as_echo "$ac_try_echo") >&5
5933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5934 ac_status=$?
5935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
5938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } >/dev/null && {
5940 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5941 test ! -s conftest.err
5942 }; then
5943 # Broken: success on invalid input.
5944 continue
5945 else
5946 $as_echo "$as_me: failed program was:" >&5
5947 sed 's/^/| /' conftest.$ac_ext >&5
5948
5949 # Passes both tests.
5950 ac_preproc_ok=:
5951 break
5952 fi
5953
5954 rm -f conftest.err conftest.$ac_ext
5955
5956 done
5957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5958 rm -f conftest.err conftest.$ac_ext
5959 if $ac_preproc_ok; then
5960 :
5961 else
5962 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5963 See \`config.log' for more details." >&5
5964 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5965 See \`config.log' for more details." >&2;}
5966 { (exit 1); exit 1; }; }
5967 fi
5968
5969 ac_ext=cpp
5970 ac_cpp='$CXXCPP $CPPFLAGS'
5971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5974
5975 fi
5976
5977
5978 ac_ext=f
5979 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5980 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5981 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5982 if test -n "$ac_tool_prefix"; then
5983 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
5984 do
5985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5987 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5988 $as_echo_n "checking for $ac_word... " >&6; }
5989 if test "${ac_cv_prog_F77+set}" = set; then
5990 $as_echo_n "(cached) " >&6
5991 else
5992 if test -n "$F77"; then
5993 ac_cv_prog_F77="$F77" # Let the user override the test.
5994 else
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 for as_dir in $PATH
5997 do
5998 IFS=$as_save_IFS
5999 test -z "$as_dir" && as_dir=.
6000 for ac_exec_ext in '' $ac_executable_extensions; do
6001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6002 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6003 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 break 2
6005 fi
6006 done
6007 done
6008 IFS=$as_save_IFS
6009
6010 fi
6011 fi
6012 F77=$ac_cv_prog_F77
6013 if test -n "$F77"; then
6014 { $as_echo "$as_me:$LINENO: result: $F77" >&5
6015 $as_echo "$F77" >&6; }
6016 else
6017 { $as_echo "$as_me:$LINENO: result: no" >&5
6018 $as_echo "no" >&6; }
6019 fi
6020
6021
6022 test -n "$F77" && break
6023 done
6024 fi
6025 if test -z "$F77"; then
6026 ac_ct_F77=$F77
6027 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
6028 do
6029 # Extract the first word of "$ac_prog", so it can be a program name with args.
6030 set dummy $ac_prog; ac_word=$2
6031 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6034 $as_echo_n "(cached) " >&6
6035 else
6036 if test -n "$ac_ct_F77"; then
6037 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6038 else
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6041 do
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046 ac_cv_prog_ac_ct_F77="$ac_prog"
6047 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 break 2
6049 fi
6050 done
6051 done
6052 IFS=$as_save_IFS
6053
6054 fi
6055 fi
6056 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6057 if test -n "$ac_ct_F77"; then
6058 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6059 $as_echo "$ac_ct_F77" >&6; }
6060 else
6061 { $as_echo "$as_me:$LINENO: result: no" >&5
6062 $as_echo "no" >&6; }
6063 fi
6064
6065
6066 test -n "$ac_ct_F77" && break
6067 done
6068
6069 if test "x$ac_ct_F77" = x; then
6070 F77=""
6071 else
6072 case $cross_compiling:$ac_tool_warned in
6073 yes:)
6074 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6075 whose name does not start with the host triplet. If you think this
6076 configuration is useful to you, please write to autoconf@gnu.org." >&5
6077 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6078 whose name does not start with the host triplet. If you think this
6079 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6080 ac_tool_warned=yes ;;
6081 esac
6082 F77=$ac_ct_F77
6083 fi
6084 fi
6085
6086
6087 # Provide some information about the compiler.
6088 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6089 set X $ac_compile
6090 ac_compiler=$2
6091 { (ac_try="$ac_compiler --version >&5"
6092 case "(($ac_try" in
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6095 esac
6096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6097 $as_echo "$ac_try_echo") >&5
6098 (eval "$ac_compiler --version >&5") 2>&5
6099 ac_status=$?
6100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }
6102 { (ac_try="$ac_compiler -v >&5"
6103 case "(($ac_try" in
6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6106 esac
6107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6108 $as_echo "$ac_try_echo") >&5
6109 (eval "$ac_compiler -v >&5") 2>&5
6110 ac_status=$?
6111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }
6113 { (ac_try="$ac_compiler -V >&5"
6114 case "(($ac_try" in
6115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116 *) ac_try_echo=$ac_try;;
6117 esac
6118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6119 $as_echo "$ac_try_echo") >&5
6120 (eval "$ac_compiler -V >&5") 2>&5
6121 ac_status=$?
6122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }
6124 rm -f a.out
6125
6126 # If we don't use `.F' as extension, the preprocessor is not run on the
6127 # input file. (Note that this only needs to work for GNU compilers.)
6128 ac_save_ext=$ac_ext
6129 ac_ext=F
6130 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6131 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6132 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6133 $as_echo_n "(cached) " >&6
6134 else
6135 cat >conftest.$ac_ext <<_ACEOF
6136 program main
6137 #ifndef __GNUC__
6138 choke me
6139 #endif
6140
6141 end
6142 _ACEOF
6143 rm -f conftest.$ac_objext
6144 if { (ac_try="$ac_compile"
6145 case "(($ac_try" in
6146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147 *) ac_try_echo=$ac_try;;
6148 esac
6149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6150 $as_echo "$ac_try_echo") >&5
6151 (eval "$ac_compile") 2>conftest.er1
6152 ac_status=$?
6153 grep -v '^ *+' conftest.er1 >conftest.err
6154 rm -f conftest.er1
6155 cat conftest.err >&5
6156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); } && {
6158 test -z "$ac_f77_werror_flag" ||
6159 test ! -s conftest.err
6160 } && test -s conftest.$ac_objext; then
6161 ac_compiler_gnu=yes
6162 else
6163 $as_echo "$as_me: failed program was:" >&5
6164 sed 's/^/| /' conftest.$ac_ext >&5
6165
6166 ac_compiler_gnu=no
6167 fi
6168
6169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6170 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6171
6172 fi
6173 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6174 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6175 ac_ext=$ac_save_ext
6176 ac_test_FFLAGS=${FFLAGS+set}
6177 ac_save_FFLAGS=$FFLAGS
6178 FFLAGS=
6179 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6180 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6181 if test "${ac_cv_prog_f77_g+set}" = set; then
6182 $as_echo_n "(cached) " >&6
6183 else
6184 FFLAGS=-g
6185 cat >conftest.$ac_ext <<_ACEOF
6186 program main
6187
6188 end
6189 _ACEOF
6190 rm -f conftest.$ac_objext
6191 if { (ac_try="$ac_compile"
6192 case "(($ac_try" in
6193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194 *) ac_try_echo=$ac_try;;
6195 esac
6196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6197 $as_echo "$ac_try_echo") >&5
6198 (eval "$ac_compile") 2>conftest.er1
6199 ac_status=$?
6200 grep -v '^ *+' conftest.er1 >conftest.err
6201 rm -f conftest.er1
6202 cat conftest.err >&5
6203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } && {
6205 test -z "$ac_f77_werror_flag" ||
6206 test ! -s conftest.err
6207 } && test -s conftest.$ac_objext; then
6208 ac_cv_prog_f77_g=yes
6209 else
6210 $as_echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6212
6213 ac_cv_prog_f77_g=no
6214 fi
6215
6216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217
6218 fi
6219 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6220 $as_echo "$ac_cv_prog_f77_g" >&6; }
6221 if test "$ac_test_FFLAGS" = set; then
6222 FFLAGS=$ac_save_FFLAGS
6223 elif test $ac_cv_prog_f77_g = yes; then
6224 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6225 FFLAGS="-g -O2"
6226 else
6227 FFLAGS="-g"
6228 fi
6229 else
6230 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6231 FFLAGS="-O2"
6232 else
6233 FFLAGS=
6234 fi
6235 fi
6236
6237 if test $ac_compiler_gnu = yes; then
6238 G77=yes
6239 else
6240 G77=
6241 fi
6242 ac_ext=c
6243 ac_cpp='$CPP $CPPFLAGS'
6244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6247
6248
6249
6250 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6251 # find the maximum length of command line arguments
6252 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6253 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6254 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6255 $as_echo_n "(cached) " >&6
6256 else
6257 i=0
6258 teststring="ABCD"
6259
6260 case $build_os in
6261 msdosdjgpp*)
6262 # On DJGPP, this test can blow up pretty badly due to problems in libc
6263 # (any single argument exceeding 2000 bytes causes a buffer overrun
6264 # during glob expansion). Even if it were fixed, the result of this
6265 # check would be larger than it should be.
6266 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6267 ;;
6268
6269 gnu*)
6270 # Under GNU Hurd, this test is not required because there is
6271 # no limit to the length of command line arguments.
6272 # Libtool will interpret -1 as no limit whatsoever
6273 lt_cv_sys_max_cmd_len=-1;
6274 ;;
6275
6276 cygwin* | mingw*)
6277 # On Win9x/ME, this test blows up -- it succeeds, but takes
6278 # about 5 minutes as the teststring grows exponentially.
6279 # Worse, since 9x/ME are not pre-emptively multitasking,
6280 # you end up with a "frozen" computer, even though with patience
6281 # the test eventually succeeds (with a max line length of 256k).
6282 # Instead, let's just punt: use the minimum linelength reported by
6283 # all of the supported platforms: 8192 (on NT/2K/XP).
6284 lt_cv_sys_max_cmd_len=8192;
6285 ;;
6286
6287 amigaos*)
6288 # On AmigaOS with pdksh, this test takes hours, literally.
6289 # So we just punt and use a minimum line length of 8192.
6290 lt_cv_sys_max_cmd_len=8192;
6291 ;;
6292
6293 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6294 # This has been around since 386BSD, at least. Likely further.
6295 if test -x /sbin/sysctl; then
6296 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6297 elif test -x /usr/sbin/sysctl; then
6298 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6299 else
6300 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6301 fi
6302 # And add a safety zone
6303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6304 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6305 ;;
6306
6307 interix*)
6308 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6309 lt_cv_sys_max_cmd_len=196608
6310 ;;
6311
6312 osf*)
6313 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6314 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6315 # nice to cause kernel panics so lets avoid the loop below.
6316 # First set a reasonable default.
6317 lt_cv_sys_max_cmd_len=16384
6318 #
6319 if test -x /sbin/sysconfig; then
6320 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6321 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6322 esac
6323 fi
6324 ;;
6325 sco3.2v5*)
6326 lt_cv_sys_max_cmd_len=102400
6327 ;;
6328 sysv5* | sco5v6* | sysv4.2uw2*)
6329 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6330 if test -n "$kargmax"; then
6331 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6332 else
6333 lt_cv_sys_max_cmd_len=32768
6334 fi
6335 ;;
6336 *)
6337 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6338 if test -n "$lt_cv_sys_max_cmd_len"; then
6339 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6340 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6341 else
6342 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6343 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6344 = "XX$teststring") >/dev/null 2>&1 &&
6345 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6346 lt_cv_sys_max_cmd_len=$new_result &&
6347 test $i != 17 # 1/2 MB should be enough
6348 do
6349 i=`expr $i + 1`
6350 teststring=$teststring$teststring
6351 done
6352 teststring=
6353 # Add a significant safety factor because C++ compilers can tack on massive
6354 # amounts of additional arguments before passing them to the linker.
6355 # It appears as though 1/2 is a usable value.
6356 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6357 fi
6358 ;;
6359 esac
6360
6361 fi
6362
6363 if test -n $lt_cv_sys_max_cmd_len ; then
6364 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6365 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6366 else
6367 { $as_echo "$as_me:$LINENO: result: none" >&5
6368 $as_echo "none" >&6; }
6369 fi
6370
6371
6372
6373
6374
6375 # Check for command to grab the raw symbol name followed by C symbol from nm.
6376 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6377 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6378 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6379 $as_echo_n "(cached) " >&6
6380 else
6381
6382 # These are sane defaults that work on at least a few old systems.
6383 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6384
6385 # Character class describing NM global symbol codes.
6386 symcode='[BCDEGRST]'
6387
6388 # Regexp to match symbols that can be accessed directly from C.
6389 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6390
6391 # Transform an extracted symbol line into a proper C declaration
6392 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6393
6394 # Transform an extracted symbol line into symbol name and symbol address
6395 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'"
6396
6397 # Define system-specific variables.
6398 case $host_os in
6399 aix*)
6400 symcode='[BCDT]'
6401 ;;
6402 cygwin* | mingw* | pw32*)
6403 symcode='[ABCDGISTW]'
6404 ;;
6405 hpux*) # Its linker distinguishes data from code symbols
6406 if test "$host_cpu" = ia64; then
6407 symcode='[ABCDEGRST]'
6408 fi
6409 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6410 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'"
6411 ;;
6412 linux* | k*bsd*-gnu)
6413 if test "$host_cpu" = ia64; then
6414 symcode='[ABCDGIRSTW]'
6415 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6416 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'"
6417 fi
6418 ;;
6419 irix* | nonstopux*)
6420 symcode='[BCDEGRST]'
6421 ;;
6422 osf*)
6423 symcode='[BCDEGQRST]'
6424 ;;
6425 solaris*)
6426 symcode='[BDRT]'
6427 ;;
6428 sco3.2v5*)
6429 symcode='[DT]'
6430 ;;
6431 sysv4.2uw2*)
6432 symcode='[DT]'
6433 ;;
6434 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6435 symcode='[ABDT]'
6436 ;;
6437 sysv4)
6438 symcode='[DFNSTU]'
6439 ;;
6440 esac
6441
6442 # Handle CRLF in mingw tool chain
6443 opt_cr=
6444 case $build_os in
6445 mingw*)
6446 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6447 ;;
6448 esac
6449
6450 # If we're using GNU nm, then use its standard symbol codes.
6451 case `$NM -V 2>&1` in
6452 *GNU* | *'with BFD'*)
6453 symcode='[ABCDGIRSTW]' ;;
6454 esac
6455
6456 # Try without a prefix undercore, then with it.
6457 for ac_symprfx in "" "_"; do
6458
6459 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6460 symxfrm="\\1 $ac_symprfx\\2 \\2"
6461
6462 # Write the raw and C identifiers.
6463 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6464
6465 # Check to see that the pipe works correctly.
6466 pipe_works=no
6467
6468 rm -f conftest*
6469 cat > conftest.$ac_ext <<EOF
6470 #ifdef __cplusplus
6471 extern "C" {
6472 #endif
6473 char nm_test_var;
6474 void nm_test_func(){}
6475 #ifdef __cplusplus
6476 }
6477 #endif
6478 int main(){nm_test_var='a';nm_test_func();return(0);}
6479 EOF
6480
6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482 (eval $ac_compile) 2>&5
6483 ac_status=$?
6484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; then
6486 # Now try to grab the symbols.
6487 nlist=conftest.nm
6488 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6489 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6490 ac_status=$?
6491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } && test -s "$nlist"; then
6493 # Try sorting and uniquifying the output.
6494 if sort "$nlist" | uniq > "$nlist"T; then
6495 mv -f "$nlist"T "$nlist"
6496 else
6497 rm -f "$nlist"T
6498 fi
6499
6500 # Make sure that we snagged all the symbols we need.
6501 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6502 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6503 cat <<EOF > conftest.$ac_ext
6504 #ifdef __cplusplus
6505 extern "C" {
6506 #endif
6507
6508 EOF
6509 # Now generate the symbol file.
6510 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6511
6512 cat <<EOF >> conftest.$ac_ext
6513 #if defined (__STDC__) && __STDC__
6514 # define lt_ptr_t void *
6515 #else
6516 # define lt_ptr_t char *
6517 # define const
6518 #endif
6519
6520 /* The mapping between symbol names and symbols. */
6521 const struct {
6522 const char *name;
6523 lt_ptr_t address;
6524 }
6525 lt_preloaded_symbols[] =
6526 {
6527 EOF
6528 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6529 cat <<\EOF >> conftest.$ac_ext
6530 {0, (lt_ptr_t) 0}
6531 };
6532
6533 #ifdef __cplusplus
6534 }
6535 #endif
6536 EOF
6537 # Now try linking the two files.
6538 mv conftest.$ac_objext conftstm.$ac_objext
6539 lt_save_LIBS="$LIBS"
6540 lt_save_CFLAGS="$CFLAGS"
6541 LIBS="conftstm.$ac_objext"
6542 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6544 (eval $ac_link) 2>&5
6545 ac_status=$?
6546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6548 pipe_works=yes
6549 fi
6550 LIBS="$lt_save_LIBS"
6551 CFLAGS="$lt_save_CFLAGS"
6552 else
6553 echo "cannot find nm_test_func in $nlist" >&5
6554 fi
6555 else
6556 echo "cannot find nm_test_var in $nlist" >&5
6557 fi
6558 else
6559 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6560 fi
6561 else
6562 echo "$progname: failed program was:" >&5
6563 cat conftest.$ac_ext >&5
6564 fi
6565 rm -rf conftest* conftst*
6566
6567 # Do not use the global_symbol_pipe unless it works.
6568 if test "$pipe_works" = yes; then
6569 break
6570 else
6571 lt_cv_sys_global_symbol_pipe=
6572 fi
6573 done
6574
6575 fi
6576
6577 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6578 lt_cv_sys_global_symbol_to_cdecl=
6579 fi
6580 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6581 { $as_echo "$as_me:$LINENO: result: failed" >&5
6582 $as_echo "failed" >&6; }
6583 else
6584 { $as_echo "$as_me:$LINENO: result: ok" >&5
6585 $as_echo "ok" >&6; }
6586 fi
6587
6588 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6589 $as_echo_n "checking for objdir... " >&6; }
6590 if test "${lt_cv_objdir+set}" = set; then
6591 $as_echo_n "(cached) " >&6
6592 else
6593 rm -f .libs 2>/dev/null
6594 mkdir .libs 2>/dev/null
6595 if test -d .libs; then
6596 lt_cv_objdir=.libs
6597 else
6598 # MS-DOS does not allow filenames that begin with a dot.
6599 lt_cv_objdir=_libs
6600 fi
6601 rmdir .libs 2>/dev/null
6602 fi
6603 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6604 $as_echo "$lt_cv_objdir" >&6; }
6605 objdir=$lt_cv_objdir
6606
6607
6608
6609
6610
6611 case $host_os in
6612 aix3*)
6613 # AIX sometimes has problems with the GCC collect2 program. For some
6614 # reason, if we set the COLLECT_NAMES environment variable, the problems
6615 # vanish in a puff of smoke.
6616 if test "X${COLLECT_NAMES+set}" != Xset; then
6617 COLLECT_NAMES=
6618 export COLLECT_NAMES
6619 fi
6620 ;;
6621 esac
6622
6623 # Sed substitution that helps us do robust quoting. It backslashifies
6624 # metacharacters that are still active within double-quoted strings.
6625 Xsed='sed -e 1s/^X//'
6626 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6627
6628 # Same as above, but do not quote variable references.
6629 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6630
6631 # Sed substitution to delay expansion of an escaped shell variable in a
6632 # double_quote_subst'ed string.
6633 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6634
6635 # Sed substitution to avoid accidental globbing in evaled expressions
6636 no_glob_subst='s/\*/\\\*/g'
6637
6638 # Constants:
6639 rm="rm -f"
6640
6641 # Global variables:
6642 default_ofile=libtool
6643 can_build_shared=yes
6644
6645 # All known linkers require a `.a' archive for static linking (except MSVC,
6646 # which needs '.lib').
6647 libext=a
6648 ltmain="$ac_aux_dir/ltmain.sh"
6649 ofile="$default_ofile"
6650 with_gnu_ld="$lt_cv_prog_gnu_ld"
6651
6652 if test -n "$ac_tool_prefix"; then
6653 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6654 set dummy ${ac_tool_prefix}ar; ac_word=$2
6655 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6656 $as_echo_n "checking for $ac_word... " >&6; }
6657 if test "${ac_cv_prog_AR+set}" = set; then
6658 $as_echo_n "(cached) " >&6
6659 else
6660 if test -n "$AR"; then
6661 ac_cv_prog_AR="$AR" # Let the user override the test.
6662 else
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6665 do
6666 IFS=$as_save_IFS
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670 ac_cv_prog_AR="${ac_tool_prefix}ar"
6671 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 break 2
6673 fi
6674 done
6675 done
6676 IFS=$as_save_IFS
6677
6678 fi
6679 fi
6680 AR=$ac_cv_prog_AR
6681 if test -n "$AR"; then
6682 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6683 $as_echo "$AR" >&6; }
6684 else
6685 { $as_echo "$as_me:$LINENO: result: no" >&5
6686 $as_echo "no" >&6; }
6687 fi
6688
6689
6690 fi
6691 if test -z "$ac_cv_prog_AR"; then
6692 ac_ct_AR=$AR
6693 # Extract the first word of "ar", so it can be a program name with args.
6694 set dummy ar; ac_word=$2
6695 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6698 $as_echo_n "(cached) " >&6
6699 else
6700 if test -n "$ac_ct_AR"; then
6701 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6702 else
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 for as_dir in $PATH
6705 do
6706 IFS=$as_save_IFS
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6710 ac_cv_prog_ac_ct_AR="ar"
6711 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 break 2
6713 fi
6714 done
6715 done
6716 IFS=$as_save_IFS
6717
6718 fi
6719 fi
6720 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6721 if test -n "$ac_ct_AR"; then
6722 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6723 $as_echo "$ac_ct_AR" >&6; }
6724 else
6725 { $as_echo "$as_me:$LINENO: result: no" >&5
6726 $as_echo "no" >&6; }
6727 fi
6728
6729 if test "x$ac_ct_AR" = x; then
6730 AR="false"
6731 else
6732 case $cross_compiling:$ac_tool_warned in
6733 yes:)
6734 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6735 whose name does not start with the host triplet. If you think this
6736 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6737 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6738 whose name does not start with the host triplet. If you think this
6739 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6740 ac_tool_warned=yes ;;
6741 esac
6742 AR=$ac_ct_AR
6743 fi
6744 else
6745 AR="$ac_cv_prog_AR"
6746 fi
6747
6748 if test -n "$ac_tool_prefix"; then
6749 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6750 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6751 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6752 $as_echo_n "checking for $ac_word... " >&6; }
6753 if test "${ac_cv_prog_RANLIB+set}" = set; then
6754 $as_echo_n "(cached) " >&6
6755 else
6756 if test -n "$RANLIB"; then
6757 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6758 else
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 for as_dir in $PATH
6761 do
6762 IFS=$as_save_IFS
6763 test -z "$as_dir" && as_dir=.
6764 for ac_exec_ext in '' $ac_executable_extensions; do
6765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6766 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6767 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6768 break 2
6769 fi
6770 done
6771 done
6772 IFS=$as_save_IFS
6773
6774 fi
6775 fi
6776 RANLIB=$ac_cv_prog_RANLIB
6777 if test -n "$RANLIB"; then
6778 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6779 $as_echo "$RANLIB" >&6; }
6780 else
6781 { $as_echo "$as_me:$LINENO: result: no" >&5
6782 $as_echo "no" >&6; }
6783 fi
6784
6785
6786 fi
6787 if test -z "$ac_cv_prog_RANLIB"; then
6788 ac_ct_RANLIB=$RANLIB
6789 # Extract the first word of "ranlib", so it can be a program name with args.
6790 set dummy ranlib; ac_word=$2
6791 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6792 $as_echo_n "checking for $ac_word... " >&6; }
6793 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6794 $as_echo_n "(cached) " >&6
6795 else
6796 if test -n "$ac_ct_RANLIB"; then
6797 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6798 else
6799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 for as_dir in $PATH
6801 do
6802 IFS=$as_save_IFS
6803 test -z "$as_dir" && as_dir=.
6804 for ac_exec_ext in '' $ac_executable_extensions; do
6805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6806 ac_cv_prog_ac_ct_RANLIB="ranlib"
6807 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6808 break 2
6809 fi
6810 done
6811 done
6812 IFS=$as_save_IFS
6813
6814 fi
6815 fi
6816 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6817 if test -n "$ac_ct_RANLIB"; then
6818 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6819 $as_echo "$ac_ct_RANLIB" >&6; }
6820 else
6821 { $as_echo "$as_me:$LINENO: result: no" >&5
6822 $as_echo "no" >&6; }
6823 fi
6824
6825 if test "x$ac_ct_RANLIB" = x; then
6826 RANLIB=":"
6827 else
6828 case $cross_compiling:$ac_tool_warned in
6829 yes:)
6830 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6831 whose name does not start with the host triplet. If you think this
6832 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6833 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6834 whose name does not start with the host triplet. If you think this
6835 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6836 ac_tool_warned=yes ;;
6837 esac
6838 RANLIB=$ac_ct_RANLIB
6839 fi
6840 else
6841 RANLIB="$ac_cv_prog_RANLIB"
6842 fi
6843
6844 if test -n "$ac_tool_prefix"; then
6845 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6846 set dummy ${ac_tool_prefix}strip; ac_word=$2
6847 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6848 $as_echo_n "checking for $ac_word... " >&6; }
6849 if test "${ac_cv_prog_STRIP+set}" = set; then
6850 $as_echo_n "(cached) " >&6
6851 else
6852 if test -n "$STRIP"; then
6853 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6854 else
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 for as_dir in $PATH
6857 do
6858 IFS=$as_save_IFS
6859 test -z "$as_dir" && as_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6862 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6863 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 break 2
6865 fi
6866 done
6867 done
6868 IFS=$as_save_IFS
6869
6870 fi
6871 fi
6872 STRIP=$ac_cv_prog_STRIP
6873 if test -n "$STRIP"; then
6874 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6875 $as_echo "$STRIP" >&6; }
6876 else
6877 { $as_echo "$as_me:$LINENO: result: no" >&5
6878 $as_echo "no" >&6; }
6879 fi
6880
6881
6882 fi
6883 if test -z "$ac_cv_prog_STRIP"; then
6884 ac_ct_STRIP=$STRIP
6885 # Extract the first word of "strip", so it can be a program name with args.
6886 set dummy strip; ac_word=$2
6887 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6888 $as_echo_n "checking for $ac_word... " >&6; }
6889 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6890 $as_echo_n "(cached) " >&6
6891 else
6892 if test -n "$ac_ct_STRIP"; then
6893 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6894 else
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 for as_dir in $PATH
6897 do
6898 IFS=$as_save_IFS
6899 test -z "$as_dir" && as_dir=.
6900 for ac_exec_ext in '' $ac_executable_extensions; do
6901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6902 ac_cv_prog_ac_ct_STRIP="strip"
6903 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6904 break 2
6905 fi
6906 done
6907 done
6908 IFS=$as_save_IFS
6909
6910 fi
6911 fi
6912 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6913 if test -n "$ac_ct_STRIP"; then
6914 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6915 $as_echo "$ac_ct_STRIP" >&6; }
6916 else
6917 { $as_echo "$as_me:$LINENO: result: no" >&5
6918 $as_echo "no" >&6; }
6919 fi
6920
6921 if test "x$ac_ct_STRIP" = x; then
6922 STRIP=":"
6923 else
6924 case $cross_compiling:$ac_tool_warned in
6925 yes:)
6926 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6927 whose name does not start with the host triplet. If you think this
6928 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6929 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6930 whose name does not start with the host triplet. If you think this
6931 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6932 ac_tool_warned=yes ;;
6933 esac
6934 STRIP=$ac_ct_STRIP
6935 fi
6936 else
6937 STRIP="$ac_cv_prog_STRIP"
6938 fi
6939
6940
6941 old_CC="$CC"
6942 old_CFLAGS="$CFLAGS"
6943
6944 # Set sane defaults for various variables
6945 test -z "$AR" && AR=ar
6946 test -z "$AR_FLAGS" && AR_FLAGS=cru
6947 test -z "$AS" && AS=as
6948 test -z "$CC" && CC=cc
6949 test -z "$LTCC" && LTCC=$CC
6950 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6951 test -z "$DLLTOOL" && DLLTOOL=dlltool
6952 test -z "$LD" && LD=ld
6953 test -z "$LN_S" && LN_S="ln -s"
6954 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6955 test -z "$NM" && NM=nm
6956 test -z "$SED" && SED=sed
6957 test -z "$OBJDUMP" && OBJDUMP=objdump
6958 test -z "$RANLIB" && RANLIB=:
6959 test -z "$STRIP" && STRIP=:
6960 test -z "$ac_objext" && ac_objext=o
6961
6962 # Determine commands to create old-style static archives.
6963 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6964 old_postinstall_cmds='chmod 644 $oldlib'
6965 old_postuninstall_cmds=
6966
6967 if test -n "$RANLIB"; then
6968 case $host_os in
6969 openbsd*)
6970 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6971 ;;
6972 *)
6973 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6974 ;;
6975 esac
6976 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6977 fi
6978
6979 for cc_temp in $compiler""; do
6980 case $cc_temp in
6981 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6982 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6983 \-*) ;;
6984 *) break;;
6985 esac
6986 done
6987 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6988
6989
6990 # Only perform the check for file, if the check method requires it
6991 case $deplibs_check_method in
6992 file_magic*)
6993 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6994 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6995 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6996 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6997 $as_echo_n "(cached) " >&6
6998 else
6999 case $MAGIC_CMD in
7000 [\\/*] | ?:[\\/]*)
7001 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7002 ;;
7003 *)
7004 lt_save_MAGIC_CMD="$MAGIC_CMD"
7005 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7006 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7007 for ac_dir in $ac_dummy; do
7008 IFS="$lt_save_ifs"
7009 test -z "$ac_dir" && ac_dir=.
7010 if test -f $ac_dir/${ac_tool_prefix}file; then
7011 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7012 if test -n "$file_magic_test_file"; then
7013 case $deplibs_check_method in
7014 "file_magic "*)
7015 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7017 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7018 $EGREP "$file_magic_regex" > /dev/null; then
7019 :
7020 else
7021 cat <<EOF 1>&2
7022
7023 *** Warning: the command libtool uses to detect shared libraries,
7024 *** $file_magic_cmd, produces output that libtool cannot recognize.
7025 *** The result is that libtool may fail to recognize shared libraries
7026 *** as such. This will affect the creation of libtool libraries that
7027 *** depend on shared libraries, but programs linked with such libtool
7028 *** libraries will work regardless of this problem. Nevertheless, you
7029 *** may want to report the problem to your system manager and/or to
7030 *** bug-libtool@gnu.org
7031
7032 EOF
7033 fi ;;
7034 esac
7035 fi
7036 break
7037 fi
7038 done
7039 IFS="$lt_save_ifs"
7040 MAGIC_CMD="$lt_save_MAGIC_CMD"
7041 ;;
7042 esac
7043 fi
7044
7045 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7046 if test -n "$MAGIC_CMD"; then
7047 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7048 $as_echo "$MAGIC_CMD" >&6; }
7049 else
7050 { $as_echo "$as_me:$LINENO: result: no" >&5
7051 $as_echo "no" >&6; }
7052 fi
7053
7054 if test -z "$lt_cv_path_MAGIC_CMD"; then
7055 if test -n "$ac_tool_prefix"; then
7056 { $as_echo "$as_me:$LINENO: checking for file" >&5
7057 $as_echo_n "checking for file... " >&6; }
7058 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7059 $as_echo_n "(cached) " >&6
7060 else
7061 case $MAGIC_CMD in
7062 [\\/*] | ?:[\\/]*)
7063 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7064 ;;
7065 *)
7066 lt_save_MAGIC_CMD="$MAGIC_CMD"
7067 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7068 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7069 for ac_dir in $ac_dummy; do
7070 IFS="$lt_save_ifs"
7071 test -z "$ac_dir" && ac_dir=.
7072 if test -f $ac_dir/file; then
7073 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7074 if test -n "$file_magic_test_file"; then
7075 case $deplibs_check_method in
7076 "file_magic "*)
7077 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7078 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7079 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7080 $EGREP "$file_magic_regex" > /dev/null; then
7081 :
7082 else
7083 cat <<EOF 1>&2
7084
7085 *** Warning: the command libtool uses to detect shared libraries,
7086 *** $file_magic_cmd, produces output that libtool cannot recognize.
7087 *** The result is that libtool may fail to recognize shared libraries
7088 *** as such. This will affect the creation of libtool libraries that
7089 *** depend on shared libraries, but programs linked with such libtool
7090 *** libraries will work regardless of this problem. Nevertheless, you
7091 *** may want to report the problem to your system manager and/or to
7092 *** bug-libtool@gnu.org
7093
7094 EOF
7095 fi ;;
7096 esac
7097 fi
7098 break
7099 fi
7100 done
7101 IFS="$lt_save_ifs"
7102 MAGIC_CMD="$lt_save_MAGIC_CMD"
7103 ;;
7104 esac
7105 fi
7106
7107 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7108 if test -n "$MAGIC_CMD"; then
7109 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7110 $as_echo "$MAGIC_CMD" >&6; }
7111 else
7112 { $as_echo "$as_me:$LINENO: result: no" >&5
7113 $as_echo "no" >&6; }
7114 fi
7115
7116 else
7117 MAGIC_CMD=:
7118 fi
7119 fi
7120
7121 fi
7122 ;;
7123 esac
7124
7125
7126 case $host_os in
7127 rhapsody* | darwin*)
7128 if test -n "$ac_tool_prefix"; then
7129 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7130 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7131 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7132 $as_echo_n "checking for $ac_word... " >&6; }
7133 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7134 $as_echo_n "(cached) " >&6
7135 else
7136 if test -n "$DSYMUTIL"; then
7137 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7138 else
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7141 do
7142 IFS=$as_save_IFS
7143 test -z "$as_dir" && as_dir=.
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7146 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7147 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 break 2
7149 fi
7150 done
7151 done
7152 IFS=$as_save_IFS
7153
7154 fi
7155 fi
7156 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7157 if test -n "$DSYMUTIL"; then
7158 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7159 $as_echo "$DSYMUTIL" >&6; }
7160 else
7161 { $as_echo "$as_me:$LINENO: result: no" >&5
7162 $as_echo "no" >&6; }
7163 fi
7164
7165
7166 fi
7167 if test -z "$ac_cv_prog_DSYMUTIL"; then
7168 ac_ct_DSYMUTIL=$DSYMUTIL
7169 # Extract the first word of "dsymutil", so it can be a program name with args.
7170 set dummy dsymutil; ac_word=$2
7171 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7172 $as_echo_n "checking for $ac_word... " >&6; }
7173 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7174 $as_echo_n "(cached) " >&6
7175 else
7176 if test -n "$ac_ct_DSYMUTIL"; then
7177 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7178 else
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7181 do
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7186 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7187 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7189 fi
7190 done
7191 done
7192 IFS=$as_save_IFS
7193
7194 fi
7195 fi
7196 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7197 if test -n "$ac_ct_DSYMUTIL"; then
7198 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7199 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7200 else
7201 { $as_echo "$as_me:$LINENO: result: no" >&5
7202 $as_echo "no" >&6; }
7203 fi
7204
7205 if test "x$ac_ct_DSYMUTIL" = x; then
7206 DSYMUTIL=":"
7207 else
7208 case $cross_compiling:$ac_tool_warned in
7209 yes:)
7210 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7211 whose name does not start with the host triplet. If you think this
7212 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
7213 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7214 whose name does not start with the host triplet. If you think this
7215 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
7216 ac_tool_warned=yes ;;
7217 esac
7218 DSYMUTIL=$ac_ct_DSYMUTIL
7219 fi
7220 else
7221 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7222 fi
7223
7224 if test -n "$ac_tool_prefix"; then
7225 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7226 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7227 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7228 $as_echo_n "checking for $ac_word... " >&6; }
7229 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7230 $as_echo_n "(cached) " >&6
7231 else
7232 if test -n "$NMEDIT"; then
7233 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7234 else
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 for as_dir in $PATH
7237 do
7238 IFS=$as_save_IFS
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7242 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7243 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 break 2
7245 fi
7246 done
7247 done
7248 IFS=$as_save_IFS
7249
7250 fi
7251 fi
7252 NMEDIT=$ac_cv_prog_NMEDIT
7253 if test -n "$NMEDIT"; then
7254 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7255 $as_echo "$NMEDIT" >&6; }
7256 else
7257 { $as_echo "$as_me:$LINENO: result: no" >&5
7258 $as_echo "no" >&6; }
7259 fi
7260
7261
7262 fi
7263 if test -z "$ac_cv_prog_NMEDIT"; then
7264 ac_ct_NMEDIT=$NMEDIT
7265 # Extract the first word of "nmedit", so it can be a program name with args.
7266 set dummy nmedit; ac_word=$2
7267 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7268 $as_echo_n "checking for $ac_word... " >&6; }
7269 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7270 $as_echo_n "(cached) " >&6
7271 else
7272 if test -n "$ac_ct_NMEDIT"; then
7273 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7274 else
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 for as_dir in $PATH
7277 do
7278 IFS=$as_save_IFS
7279 test -z "$as_dir" && as_dir=.
7280 for ac_exec_ext in '' $ac_executable_extensions; do
7281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7282 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7283 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 break 2
7285 fi
7286 done
7287 done
7288 IFS=$as_save_IFS
7289
7290 fi
7291 fi
7292 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7293 if test -n "$ac_ct_NMEDIT"; then
7294 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7295 $as_echo "$ac_ct_NMEDIT" >&6; }
7296 else
7297 { $as_echo "$as_me:$LINENO: result: no" >&5
7298 $as_echo "no" >&6; }
7299 fi
7300
7301 if test "x$ac_ct_NMEDIT" = x; then
7302 NMEDIT=":"
7303 else
7304 case $cross_compiling:$ac_tool_warned in
7305 yes:)
7306 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7307 whose name does not start with the host triplet. If you think this
7308 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
7309 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7310 whose name does not start with the host triplet. If you think this
7311 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
7312 ac_tool_warned=yes ;;
7313 esac
7314 NMEDIT=$ac_ct_NMEDIT
7315 fi
7316 else
7317 NMEDIT="$ac_cv_prog_NMEDIT"
7318 fi
7319
7320
7321 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7322 $as_echo_n "checking for -single_module linker flag... " >&6; }
7323 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7324 $as_echo_n "(cached) " >&6
7325 else
7326 lt_cv_apple_cc_single_mod=no
7327 if test -z "${LT_MULTI_MODULE}"; then
7328 # By default we will add the -single_module flag. You can override
7329 # by either setting the environment variable LT_MULTI_MODULE
7330 # non-empty at configure time, or by adding -multi_module to the
7331 # link flags.
7332 echo "int foo(void){return 1;}" > conftest.c
7333 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7334 -dynamiclib ${wl}-single_module conftest.c
7335 if test -f libconftest.dylib; then
7336 lt_cv_apple_cc_single_mod=yes
7337 rm -rf libconftest.dylib*
7338 fi
7339 rm conftest.c
7340 fi
7341 fi
7342 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7343 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7344 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7345 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7346 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7347 $as_echo_n "(cached) " >&6
7348 else
7349 lt_cv_ld_exported_symbols_list=no
7350 save_LDFLAGS=$LDFLAGS
7351 echo "_main" > conftest.sym
7352 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7353 cat >conftest.$ac_ext <<_ACEOF
7354 /* confdefs.h. */
7355 _ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7359
7360 int
7361 main ()
7362 {
7363
7364 ;
7365 return 0;
7366 }
7367 _ACEOF
7368 rm -f conftest.$ac_objext conftest$ac_exeext
7369 if { (ac_try="$ac_link"
7370 case "(($ac_try" in
7371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7372 *) ac_try_echo=$ac_try;;
7373 esac
7374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7375 $as_echo "$ac_try_echo") >&5
7376 (eval "$ac_link") 2>conftest.er1
7377 ac_status=$?
7378 grep -v '^ *+' conftest.er1 >conftest.err
7379 rm -f conftest.er1
7380 cat conftest.err >&5
7381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } && {
7383 test -z "$ac_c_werror_flag" ||
7384 test ! -s conftest.err
7385 } && test -s conftest$ac_exeext && {
7386 test "$cross_compiling" = yes ||
7387 $as_test_x conftest$ac_exeext
7388 }; then
7389 lt_cv_ld_exported_symbols_list=yes
7390 else
7391 $as_echo "$as_me: failed program was:" >&5
7392 sed 's/^/| /' conftest.$ac_ext >&5
7393
7394 lt_cv_ld_exported_symbols_list=no
7395 fi
7396
7397 rm -rf conftest.dSYM
7398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7399 conftest$ac_exeext conftest.$ac_ext
7400 LDFLAGS="$save_LDFLAGS"
7401
7402 fi
7403 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7404 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7405 case $host_os in
7406 rhapsody* | darwin1.[0123])
7407 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7408 darwin1.*)
7409 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7410 darwin*)
7411 # if running on 10.5 or later, the deployment target defaults
7412 # to the OS version, if on x86, and 10.4, the deployment
7413 # target defaults to 10.4. Don't you love it?
7414 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7415 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7416 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7417 10.[012]*)
7418 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7419 10.*)
7420 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7421 esac
7422 ;;
7423 esac
7424 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7425 _lt_dar_single_mod='$single_module'
7426 fi
7427 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7428 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7429 else
7430 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7431 fi
7432 if test "$DSYMUTIL" != ":"; then
7433 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7434 else
7435 _lt_dsymutil=
7436 fi
7437 ;;
7438 esac
7439
7440
7441 enable_dlopen=no
7442 enable_win32_dll=no
7443
7444 # Check whether --enable-libtool-lock was given.
7445 if test "${enable_libtool_lock+set}" = set; then
7446 enableval=$enable_libtool_lock;
7447 fi
7448
7449 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7450
7451
7452 # Check whether --with-pic was given.
7453 if test "${with_pic+set}" = set; then
7454 withval=$with_pic; pic_mode="$withval"
7455 else
7456 pic_mode=default
7457 fi
7458
7459 test -z "$pic_mode" && pic_mode=default
7460
7461 # Use C for the default configuration in the libtool script
7462 tagname=
7463 lt_save_CC="$CC"
7464 ac_ext=c
7465 ac_cpp='$CPP $CPPFLAGS'
7466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7469
7470
7471 # Source file extension for C test sources.
7472 ac_ext=c
7473
7474 # Object file extension for compiled C test sources.
7475 objext=o
7476 objext=$objext
7477
7478 # Code to be used in simple compile tests
7479 lt_simple_compile_test_code="int some_variable = 0;"
7480
7481 # Code to be used in simple link tests
7482 lt_simple_link_test_code='int main(){return(0);}'
7483
7484
7485 # If no C compiler was specified, use CC.
7486 LTCC=${LTCC-"$CC"}
7487
7488 # If no C compiler flags were specified, use CFLAGS.
7489 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7490
7491 # Allow CC to be a program name with arguments.
7492 compiler=$CC
7493
7494
7495 # save warnings/boilerplate of simple test code
7496 ac_outfile=conftest.$ac_objext
7497 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7498 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7499 _lt_compiler_boilerplate=`cat conftest.err`
7500 $rm conftest*
7501
7502 ac_outfile=conftest.$ac_objext
7503 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7504 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7505 _lt_linker_boilerplate=`cat conftest.err`
7506 $rm -r conftest*
7507
7508
7509
7510 lt_prog_compiler_no_builtin_flag=
7511
7512 if test "$GCC" = yes; then
7513 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7514
7515
7516 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7517 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7518 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7519 $as_echo_n "(cached) " >&6
7520 else
7521 lt_cv_prog_compiler_rtti_exceptions=no
7522 ac_outfile=conftest.$ac_objext
7523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7524 lt_compiler_flag="-fno-rtti -fno-exceptions"
7525 # Insert the option either (1) after the last *FLAGS variable, or
7526 # (2) before a word containing "conftest.", or (3) at the end.
7527 # Note that $ac_compile itself does not contain backslashes and begins
7528 # with a dollar sign (not a hyphen), so the echo should work correctly.
7529 # The option is referenced via a variable to avoid confusing sed.
7530 lt_compile=`echo "$ac_compile" | $SED \
7531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7533 -e 's:$: $lt_compiler_flag:'`
7534 (eval echo "\"\$as_me:7534: $lt_compile\"" >&5)
7535 (eval "$lt_compile" 2>conftest.err)
7536 ac_status=$?
7537 cat conftest.err >&5
7538 echo "$as_me:7538: \$? = $ac_status" >&5
7539 if (exit $ac_status) && test -s "$ac_outfile"; then
7540 # The compiler can only warn and ignore the option if not recognized
7541 # So say no if there are warnings other than the usual output.
7542 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7543 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7544 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7545 lt_cv_prog_compiler_rtti_exceptions=yes
7546 fi
7547 fi
7548 $rm conftest*
7549
7550 fi
7551 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7552 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7553
7554 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7555 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7556 else
7557 :
7558 fi
7559
7560 fi
7561
7562 lt_prog_compiler_wl=
7563 lt_prog_compiler_pic=
7564 lt_prog_compiler_static=
7565
7566 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7567 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7568
7569 if test "$GCC" = yes; then
7570 lt_prog_compiler_wl='-Wl,'
7571 lt_prog_compiler_static='-static'
7572
7573 case $host_os in
7574 aix*)
7575 # All AIX code is PIC.
7576 if test "$host_cpu" = ia64; then
7577 # AIX 5 now supports IA64 processor
7578 lt_prog_compiler_static='-Bstatic'
7579 fi
7580 ;;
7581
7582 amigaos*)
7583 # FIXME: we need at least 68020 code to build shared libraries, but
7584 # adding the `-m68020' flag to GCC prevents building anything better,
7585 # like `-m68040'.
7586 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7587 ;;
7588
7589 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7590 # PIC is the default for these OSes.
7591 ;;
7592
7593 mingw* | cygwin* | pw32* | os2*)
7594 # This hack is so that the source file can tell whether it is being
7595 # built for inclusion in a dll (and should export symbols for example).
7596 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7597 # (--disable-auto-import) libraries
7598 lt_prog_compiler_pic='-DDLL_EXPORT'
7599 ;;
7600
7601 darwin* | rhapsody*)
7602 # PIC is the default on this platform
7603 # Common symbols not allowed in MH_DYLIB files
7604 lt_prog_compiler_pic='-fno-common'
7605 ;;
7606
7607 interix[3-9]*)
7608 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7609 # Instead, we relocate shared libraries at runtime.
7610 ;;
7611
7612 msdosdjgpp*)
7613 # Just because we use GCC doesn't mean we suddenly get shared libraries
7614 # on systems that don't support them.
7615 lt_prog_compiler_can_build_shared=no
7616 enable_shared=no
7617 ;;
7618
7619 sysv4*MP*)
7620 if test -d /usr/nec; then
7621 lt_prog_compiler_pic=-Kconform_pic
7622 fi
7623 ;;
7624
7625 hpux*)
7626 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7627 # not for PA HP-UX.
7628 case $host_cpu in
7629 hppa*64*|ia64*)
7630 # +Z the default
7631 ;;
7632 *)
7633 lt_prog_compiler_pic='-fPIC'
7634 ;;
7635 esac
7636 ;;
7637
7638 *)
7639 lt_prog_compiler_pic='-fPIC'
7640 ;;
7641 esac
7642 else
7643 # PORTME Check for flag to pass linker flags through the system compiler.
7644 case $host_os in
7645 aix*)
7646 lt_prog_compiler_wl='-Wl,'
7647 if test "$host_cpu" = ia64; then
7648 # AIX 5 now supports IA64 processor
7649 lt_prog_compiler_static='-Bstatic'
7650 else
7651 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7652 fi
7653 ;;
7654 darwin*)
7655 # PIC is the default on this platform
7656 # Common symbols not allowed in MH_DYLIB files
7657 case $cc_basename in
7658 xlc*)
7659 lt_prog_compiler_pic='-qnocommon'
7660 lt_prog_compiler_wl='-Wl,'
7661 ;;
7662 esac
7663 ;;
7664
7665 mingw* | cygwin* | pw32* | os2*)
7666 # This hack is so that the source file can tell whether it is being
7667 # built for inclusion in a dll (and should export symbols for example).
7668 lt_prog_compiler_pic='-DDLL_EXPORT'
7669 ;;
7670
7671 hpux9* | hpux10* | hpux11*)
7672 lt_prog_compiler_wl='-Wl,'
7673 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7674 # not for PA HP-UX.
7675 case $host_cpu in
7676 hppa*64*|ia64*)
7677 # +Z the default
7678 ;;
7679 *)
7680 lt_prog_compiler_pic='+Z'
7681 ;;
7682 esac
7683 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7684 lt_prog_compiler_static='${wl}-a ${wl}archive'
7685 ;;
7686
7687 irix5* | irix6* | nonstopux*)
7688 lt_prog_compiler_wl='-Wl,'
7689 # PIC (with -KPIC) is the default.
7690 lt_prog_compiler_static='-non_shared'
7691 ;;
7692
7693 newsos6)
7694 lt_prog_compiler_pic='-KPIC'
7695 lt_prog_compiler_static='-Bstatic'
7696 ;;
7697
7698 linux* | k*bsd*-gnu)
7699 case $cc_basename in
7700 icc* | ecc*)
7701 lt_prog_compiler_wl='-Wl,'
7702 lt_prog_compiler_pic='-KPIC'
7703 lt_prog_compiler_static='-static'
7704 ;;
7705 pgcc* | pgf77* | pgf90* | pgf95*)
7706 # Portland Group compilers (*not* the Pentium gcc compiler,
7707 # which looks to be a dead project)
7708 lt_prog_compiler_wl='-Wl,'
7709 lt_prog_compiler_pic='-fpic'
7710 lt_prog_compiler_static='-Bstatic'
7711 ;;
7712 ccc*)
7713 lt_prog_compiler_wl='-Wl,'
7714 # All Alpha code is PIC.
7715 lt_prog_compiler_static='-non_shared'
7716 ;;
7717 *)
7718 case `$CC -V 2>&1 | sed 5q` in
7719 *Sun\ C*)
7720 # Sun C 5.9
7721 lt_prog_compiler_pic='-KPIC'
7722 lt_prog_compiler_static='-Bstatic'
7723 lt_prog_compiler_wl='-Wl,'
7724 ;;
7725 *Sun\ F*)
7726 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7727 lt_prog_compiler_pic='-KPIC'
7728 lt_prog_compiler_static='-Bstatic'
7729 lt_prog_compiler_wl=''
7730 ;;
7731 esac
7732 ;;
7733 esac
7734 ;;
7735
7736 osf3* | osf4* | osf5*)
7737 lt_prog_compiler_wl='-Wl,'
7738 # All OSF/1 code is PIC.
7739 lt_prog_compiler_static='-non_shared'
7740 ;;
7741
7742 rdos*)
7743 lt_prog_compiler_static='-non_shared'
7744 ;;
7745
7746 solaris*)
7747 lt_prog_compiler_pic='-KPIC'
7748 lt_prog_compiler_static='-Bstatic'
7749 case $cc_basename in
7750 f77* | f90* | f95*)
7751 lt_prog_compiler_wl='-Qoption ld ';;
7752 *)
7753 lt_prog_compiler_wl='-Wl,';;
7754 esac
7755 ;;
7756
7757 sunos4*)
7758 lt_prog_compiler_wl='-Qoption ld '
7759 lt_prog_compiler_pic='-PIC'
7760 lt_prog_compiler_static='-Bstatic'
7761 ;;
7762
7763 sysv4 | sysv4.2uw2* | sysv4.3*)
7764 lt_prog_compiler_wl='-Wl,'
7765 lt_prog_compiler_pic='-KPIC'
7766 lt_prog_compiler_static='-Bstatic'
7767 ;;
7768
7769 sysv4*MP*)
7770 if test -d /usr/nec ;then
7771 lt_prog_compiler_pic='-Kconform_pic'
7772 lt_prog_compiler_static='-Bstatic'
7773 fi
7774 ;;
7775
7776 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7777 lt_prog_compiler_wl='-Wl,'
7778 lt_prog_compiler_pic='-KPIC'
7779 lt_prog_compiler_static='-Bstatic'
7780 ;;
7781
7782 unicos*)
7783 lt_prog_compiler_wl='-Wl,'
7784 lt_prog_compiler_can_build_shared=no
7785 ;;
7786
7787 uts4*)
7788 lt_prog_compiler_pic='-pic'
7789 lt_prog_compiler_static='-Bstatic'
7790 ;;
7791
7792 *)
7793 lt_prog_compiler_can_build_shared=no
7794 ;;
7795 esac
7796 fi
7797
7798 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7799 $as_echo "$lt_prog_compiler_pic" >&6; }
7800
7801 #
7802 # Check to make sure the PIC flag actually works.
7803 #
7804 if test -n "$lt_prog_compiler_pic"; then
7805
7806 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7807 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7808 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7809 $as_echo_n "(cached) " >&6
7810 else
7811 lt_cv_prog_compiler_pic_works=no
7812 ac_outfile=conftest.$ac_objext
7813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7814 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7815 # Insert the option either (1) after the last *FLAGS variable, or
7816 # (2) before a word containing "conftest.", or (3) at the end.
7817 # Note that $ac_compile itself does not contain backslashes and begins
7818 # with a dollar sign (not a hyphen), so the echo should work correctly.
7819 # The option is referenced via a variable to avoid confusing sed.
7820 lt_compile=`echo "$ac_compile" | $SED \
7821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7823 -e 's:$: $lt_compiler_flag:'`
7824 (eval echo "\"\$as_me:7824: $lt_compile\"" >&5)
7825 (eval "$lt_compile" 2>conftest.err)
7826 ac_status=$?
7827 cat conftest.err >&5
7828 echo "$as_me:7828: \$? = $ac_status" >&5
7829 if (exit $ac_status) && test -s "$ac_outfile"; then
7830 # The compiler can only warn and ignore the option if not recognized
7831 # So say no if there are warnings other than the usual output.
7832 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7834 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7835 lt_cv_prog_compiler_pic_works=yes
7836 fi
7837 fi
7838 $rm conftest*
7839
7840 fi
7841 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7842 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7843
7844 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7845 case $lt_prog_compiler_pic in
7846 "" | " "*) ;;
7847 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7848 esac
7849 else
7850 lt_prog_compiler_pic=
7851 lt_prog_compiler_can_build_shared=no
7852 fi
7853
7854 fi
7855 case $host_os in
7856 # For platforms which do not support PIC, -DPIC is meaningless:
7857 *djgpp*)
7858 lt_prog_compiler_pic=
7859 ;;
7860 *)
7861 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7862 ;;
7863 esac
7864
7865 #
7866 # Check to make sure the static flag actually works.
7867 #
7868 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7869 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7870 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7871 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7872 $as_echo_n "(cached) " >&6
7873 else
7874 lt_cv_prog_compiler_static_works=no
7875 save_LDFLAGS="$LDFLAGS"
7876 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7877 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7878 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7879 # The linker can only warn and ignore the option if not recognized
7880 # So say no if there are warnings
7881 if test -s conftest.err; then
7882 # Append any errors to the config.log.
7883 cat conftest.err 1>&5
7884 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7886 if diff conftest.exp conftest.er2 >/dev/null; then
7887 lt_cv_prog_compiler_static_works=yes
7888 fi
7889 else
7890 lt_cv_prog_compiler_static_works=yes
7891 fi
7892 fi
7893 $rm -r conftest*
7894 LDFLAGS="$save_LDFLAGS"
7895
7896 fi
7897 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7898 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7899
7900 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7901 :
7902 else
7903 lt_prog_compiler_static=
7904 fi
7905
7906
7907 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7908 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7909 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7910 $as_echo_n "(cached) " >&6
7911 else
7912 lt_cv_prog_compiler_c_o=no
7913 $rm -r conftest 2>/dev/null
7914 mkdir conftest
7915 cd conftest
7916 mkdir out
7917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7918
7919 lt_compiler_flag="-o out/conftest2.$ac_objext"
7920 # Insert the option either (1) after the last *FLAGS variable, or
7921 # (2) before a word containing "conftest.", or (3) at the end.
7922 # Note that $ac_compile itself does not contain backslashes and begins
7923 # with a dollar sign (not a hyphen), so the echo should work correctly.
7924 lt_compile=`echo "$ac_compile" | $SED \
7925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7927 -e 's:$: $lt_compiler_flag:'`
7928 (eval echo "\"\$as_me:7928: $lt_compile\"" >&5)
7929 (eval "$lt_compile" 2>out/conftest.err)
7930 ac_status=$?
7931 cat out/conftest.err >&5
7932 echo "$as_me:7932: \$? = $ac_status" >&5
7933 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7934 then
7935 # The compiler can only warn and ignore the option if not recognized
7936 # So say no if there are warnings
7937 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7938 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7939 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7940 lt_cv_prog_compiler_c_o=yes
7941 fi
7942 fi
7943 chmod u+w . 2>&5
7944 $rm conftest*
7945 # SGI C++ compiler will create directory out/ii_files/ for
7946 # template instantiation
7947 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7948 $rm out/* && rmdir out
7949 cd ..
7950 rmdir conftest
7951 $rm conftest*
7952
7953 fi
7954 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7955 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7956
7957
7958 hard_links="nottested"
7959 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7960 # do not overwrite the value of need_locks provided by the user
7961 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7962 $as_echo_n "checking if we can lock with hard links... " >&6; }
7963 hard_links=yes
7964 $rm conftest*
7965 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7966 touch conftest.a
7967 ln conftest.a conftest.b 2>&5 || hard_links=no
7968 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7969 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7970 $as_echo "$hard_links" >&6; }
7971 if test "$hard_links" = no; then
7972 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7973 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7974 need_locks=warn
7975 fi
7976 else
7977 need_locks=no
7978 fi
7979
7980 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7981 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7982
7983 runpath_var=
7984 allow_undefined_flag=
7985 enable_shared_with_static_runtimes=no
7986 archive_cmds=
7987 archive_expsym_cmds=
7988 old_archive_From_new_cmds=
7989 old_archive_from_expsyms_cmds=
7990 export_dynamic_flag_spec=
7991 whole_archive_flag_spec=
7992 thread_safe_flag_spec=
7993 hardcode_libdir_flag_spec=
7994 hardcode_libdir_flag_spec_ld=
7995 hardcode_libdir_separator=
7996 hardcode_direct=no
7997 hardcode_minus_L=no
7998 hardcode_shlibpath_var=unsupported
7999 link_all_deplibs=unknown
8000 hardcode_automatic=no
8001 module_cmds=
8002 module_expsym_cmds=
8003 always_export_symbols=no
8004 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8005 # include_expsyms should be a list of space-separated symbols to be *always*
8006 # included in the symbol list
8007 include_expsyms=
8008 # exclude_expsyms can be an extended regexp of symbols to exclude
8009 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8010 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8011 # as well as any symbol that contains `d'.
8012 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8013 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8014 # platforms (ab)use it in PIC code, but their linkers get confused if
8015 # the symbol is explicitly referenced. Since portable code cannot
8016 # rely on this symbol name, it's probably fine to never include it in
8017 # preloaded symbol tables.
8018 # Exclude shared library initialization/finalization symbols.
8019 extract_expsyms_cmds=
8020 # Just being paranoid about ensuring that cc_basename is set.
8021 for cc_temp in $compiler""; do
8022 case $cc_temp in
8023 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8024 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8025 \-*) ;;
8026 *) break;;
8027 esac
8028 done
8029 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8030
8031 case $host_os in
8032 cygwin* | mingw* | pw32*)
8033 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8034 # When not using gcc, we currently assume that we are using
8035 # Microsoft Visual C++.
8036 if test "$GCC" != yes; then
8037 with_gnu_ld=no
8038 fi
8039 ;;
8040 interix*)
8041 # we just hope/assume this is gcc and not c89 (= MSVC++)
8042 with_gnu_ld=yes
8043 ;;
8044 openbsd*)
8045 with_gnu_ld=no
8046 ;;
8047 esac
8048
8049 ld_shlibs=yes
8050 if test "$with_gnu_ld" = yes; then
8051 # If archive_cmds runs LD, not CC, wlarc should be empty
8052 wlarc='${wl}'
8053
8054 # Set some defaults for GNU ld with shared library support. These
8055 # are reset later if shared libraries are not supported. Putting them
8056 # here allows them to be overridden if necessary.
8057 runpath_var=LD_RUN_PATH
8058 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8059 export_dynamic_flag_spec='${wl}--export-dynamic'
8060 # ancient GNU ld didn't support --whole-archive et. al.
8061 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8062 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8063 else
8064 whole_archive_flag_spec=
8065 fi
8066 supports_anon_versioning=no
8067 case `$LD -v 2>/dev/null` in
8068 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8069 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8070 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8071 *\ 2.11.*) ;; # other 2.11 versions
8072 *) supports_anon_versioning=yes ;;
8073 esac
8074
8075 # See if GNU ld supports shared libraries.
8076 case $host_os in
8077 aix[3-9]*)
8078 # On AIX/PPC, the GNU linker is very broken
8079 if test "$host_cpu" != ia64; then
8080 ld_shlibs=no
8081 cat <<EOF 1>&2
8082
8083 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8084 *** to be unable to reliably create shared libraries on AIX.
8085 *** Therefore, libtool is disabling shared libraries support. If you
8086 *** really care for shared libraries, you may want to modify your PATH
8087 *** so that a non-GNU linker is found, and then restart.
8088
8089 EOF
8090 fi
8091 ;;
8092
8093 amigaos*)
8094 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)'
8095 hardcode_libdir_flag_spec='-L$libdir'
8096 hardcode_minus_L=yes
8097
8098 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
8099 # that the semantics of dynamic libraries on AmigaOS, at least up
8100 # to version 4, is to share data among multiple programs linked
8101 # with the same dynamic library. Since this doesn't match the
8102 # behavior of shared libraries on other platforms, we can't use
8103 # them.
8104 ld_shlibs=no
8105 ;;
8106
8107 beos*)
8108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8109 allow_undefined_flag=unsupported
8110 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8111 # support --undefined. This deserves some investigation. FIXME
8112 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8113 else
8114 ld_shlibs=no
8115 fi
8116 ;;
8117
8118 cygwin* | mingw* | pw32*)
8119 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8120 # as there is no search path for DLLs.
8121 hardcode_libdir_flag_spec='-L$libdir'
8122 allow_undefined_flag=unsupported
8123 always_export_symbols=no
8124 enable_shared_with_static_runtimes=yes
8125 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8126
8127 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8129 # If the export-symbols file already is a .def file (1st line
8130 # is EXPORTS), use it as is; otherwise, prepend...
8131 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8132 cp $export_symbols $output_objdir/$soname.def;
8133 else
8134 echo EXPORTS > $output_objdir/$soname.def;
8135 cat $export_symbols >> $output_objdir/$soname.def;
8136 fi~
8137 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8138 else
8139 ld_shlibs=no
8140 fi
8141 ;;
8142
8143 interix[3-9]*)
8144 hardcode_direct=no
8145 hardcode_shlibpath_var=no
8146 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8147 export_dynamic_flag_spec='${wl}-E'
8148 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8149 # Instead, shared libraries are loaded at an image base (0x10000000 by
8150 # default) and relocated if they conflict, which is a slow very memory
8151 # consuming and fragmenting process. To avoid this, we pick a random,
8152 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8153 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8154 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8155 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'
8156 ;;
8157
8158 gnu* | linux* | k*bsd*-gnu)
8159 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8160 tmp_addflag=
8161 case $cc_basename,$host_cpu in
8162 pgcc*) # Portland Group C compiler
8163 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'
8164 tmp_addflag=' $pic_flag'
8165 ;;
8166 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8167 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'
8168 tmp_addflag=' $pic_flag -Mnomain' ;;
8169 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8170 tmp_addflag=' -i_dynamic' ;;
8171 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8172 tmp_addflag=' -i_dynamic -nofor_main' ;;
8173 ifc* | ifort*) # Intel Fortran compiler
8174 tmp_addflag=' -nofor_main' ;;
8175 esac
8176 case `$CC -V 2>&1 | sed 5q` in
8177 *Sun\ C*) # Sun C 5.9
8178 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'
8179 tmp_sharedflag='-G' ;;
8180 *Sun\ F*) # Sun Fortran 8.3
8181 tmp_sharedflag='-G' ;;
8182 *)
8183 tmp_sharedflag='-shared' ;;
8184 esac
8185 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8186
8187 if test $supports_anon_versioning = yes; then
8188 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8189 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8190 $echo "local: *; };" >> $output_objdir/$libname.ver~
8191 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8192 fi
8193 else
8194 ld_shlibs=no
8195 fi
8196 ;;
8197
8198 netbsd*)
8199 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8200 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8201 wlarc=
8202 else
8203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8205 fi
8206 ;;
8207
8208 solaris*)
8209 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8210 ld_shlibs=no
8211 cat <<EOF 1>&2
8212
8213 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8214 *** create shared libraries on Solaris systems. Therefore, libtool
8215 *** is disabling shared libraries support. We urge you to upgrade GNU
8216 *** binutils to release 2.9.1 or newer. Another option is to modify
8217 *** your PATH or compiler configuration so that the native linker is
8218 *** used, and then restart.
8219
8220 EOF
8221 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8223 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8224 else
8225 ld_shlibs=no
8226 fi
8227 ;;
8228
8229 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8230 case `$LD -v 2>&1` in
8231 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8232 ld_shlibs=no
8233 cat <<_LT_EOF 1>&2
8234
8235 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8236 *** reliably create shared libraries on SCO systems. Therefore, libtool
8237 *** is disabling shared libraries support. We urge you to upgrade GNU
8238 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8239 *** your PATH or compiler configuration so that the native linker is
8240 *** used, and then restart.
8241
8242 _LT_EOF
8243 ;;
8244 *)
8245 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8246 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8248 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8249 else
8250 ld_shlibs=no
8251 fi
8252 ;;
8253 esac
8254 ;;
8255
8256 sunos4*)
8257 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8258 wlarc=
8259 hardcode_direct=yes
8260 hardcode_shlibpath_var=no
8261 ;;
8262
8263 *)
8264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8266 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8267 else
8268 ld_shlibs=no
8269 fi
8270 ;;
8271 esac
8272
8273 if test "$ld_shlibs" = no; then
8274 runpath_var=
8275 hardcode_libdir_flag_spec=
8276 export_dynamic_flag_spec=
8277 whole_archive_flag_spec=
8278 fi
8279 else
8280 # PORTME fill in a description of your system's linker (not GNU ld)
8281 case $host_os in
8282 aix3*)
8283 allow_undefined_flag=unsupported
8284 always_export_symbols=yes
8285 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'
8286 # Note: this linker hardcodes the directories in LIBPATH if there
8287 # are no directories specified by -L.
8288 hardcode_minus_L=yes
8289 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8290 # Neither direct hardcoding nor static linking is supported with a
8291 # broken collect2.
8292 hardcode_direct=unsupported
8293 fi
8294 ;;
8295
8296 aix[4-9]*)
8297 if test "$host_cpu" = ia64; then
8298 # On IA64, the linker does run time linking by default, so we don't
8299 # have to do anything special.
8300 aix_use_runtimelinking=no
8301 exp_sym_flag='-Bexport'
8302 no_entry_flag=""
8303 else
8304 # If we're using GNU nm, then we don't want the "-C" option.
8305 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8306 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8307 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'
8308 else
8309 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'
8310 fi
8311 aix_use_runtimelinking=no
8312
8313 # Test if we are trying to use run time linking or normal
8314 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8315 # need to do runtime linking.
8316 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8317 for ld_flag in $LDFLAGS; do
8318 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8319 aix_use_runtimelinking=yes
8320 break
8321 fi
8322 done
8323 ;;
8324 esac
8325
8326 exp_sym_flag='-bexport'
8327 no_entry_flag='-bnoentry'
8328 fi
8329
8330 # When large executables or shared objects are built, AIX ld can
8331 # have problems creating the table of contents. If linking a library
8332 # or program results in "error TOC overflow" add -mminimal-toc to
8333 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8334 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8335
8336 archive_cmds=''
8337 hardcode_direct=yes
8338 hardcode_libdir_separator=':'
8339 link_all_deplibs=yes
8340
8341 if test "$GCC" = yes; then
8342 case $host_os in aix4.[012]|aix4.[012].*)
8343 # We only want to do this on AIX 4.2 and lower, the check
8344 # below for broken collect2 doesn't work under 4.3+
8345 collect2name=`${CC} -print-prog-name=collect2`
8346 if test -f "$collect2name" && \
8347 strings "$collect2name" | grep resolve_lib_name >/dev/null
8348 then
8349 # We have reworked collect2
8350 :
8351 else
8352 # We have old collect2
8353 hardcode_direct=unsupported
8354 # It fails to find uninstalled libraries when the uninstalled
8355 # path is not listed in the libpath. Setting hardcode_minus_L
8356 # to unsupported forces relinking
8357 hardcode_minus_L=yes
8358 hardcode_libdir_flag_spec='-L$libdir'
8359 hardcode_libdir_separator=
8360 fi
8361 ;;
8362 esac
8363 shared_flag='-shared'
8364 if test "$aix_use_runtimelinking" = yes; then
8365 shared_flag="$shared_flag "'${wl}-G'
8366 fi
8367 else
8368 # not using gcc
8369 if test "$host_cpu" = ia64; then
8370 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8371 # chokes on -Wl,-G. The following line is correct:
8372 shared_flag='-G'
8373 else
8374 if test "$aix_use_runtimelinking" = yes; then
8375 shared_flag='${wl}-G'
8376 else
8377 shared_flag='${wl}-bM:SRE'
8378 fi
8379 fi
8380 fi
8381
8382 # It seems that -bexpall does not export symbols beginning with
8383 # underscore (_), so it is better to generate a list of symbols to export.
8384 always_export_symbols=yes
8385 if test "$aix_use_runtimelinking" = yes; then
8386 # Warning - without using the other runtime loading flags (-brtl),
8387 # -berok will link without error, but may produce a broken library.
8388 allow_undefined_flag='-berok'
8389 # Determine the default libpath from the value encoded in an empty executable.
8390 cat >conftest.$ac_ext <<_ACEOF
8391 /* confdefs.h. */
8392 _ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h. */
8396
8397 int
8398 main ()
8399 {
8400
8401 ;
8402 return 0;
8403 }
8404 _ACEOF
8405 rm -f conftest.$ac_objext conftest$ac_exeext
8406 if { (ac_try="$ac_link"
8407 case "(($ac_try" in
8408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409 *) ac_try_echo=$ac_try;;
8410 esac
8411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8412 $as_echo "$ac_try_echo") >&5
8413 (eval "$ac_link") 2>conftest.er1
8414 ac_status=$?
8415 grep -v '^ *+' conftest.er1 >conftest.err
8416 rm -f conftest.er1
8417 cat conftest.err >&5
8418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); } && {
8420 test -z "$ac_c_werror_flag" ||
8421 test ! -s conftest.err
8422 } && test -s conftest$ac_exeext && {
8423 test "$cross_compiling" = yes ||
8424 $as_test_x conftest$ac_exeext
8425 }; then
8426
8427 lt_aix_libpath_sed='
8428 /Import File Strings/,/^$/ {
8429 /^0/ {
8430 s/^0 *\(.*\)$/\1/
8431 p
8432 }
8433 }'
8434 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8435 # Check for a 64-bit object if we didn't find anything.
8436 if test -z "$aix_libpath"; then
8437 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8438 fi
8439 else
8440 $as_echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8442
8443
8444 fi
8445
8446 rm -rf conftest.dSYM
8447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8448 conftest$ac_exeext conftest.$ac_ext
8449 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8450
8451 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8452 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"
8453 else
8454 if test "$host_cpu" = ia64; then
8455 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8456 allow_undefined_flag="-z nodefs"
8457 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"
8458 else
8459 # Determine the default libpath from the value encoded in an empty executable.
8460 cat >conftest.$ac_ext <<_ACEOF
8461 /* confdefs.h. */
8462 _ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8466
8467 int
8468 main ()
8469 {
8470
8471 ;
8472 return 0;
8473 }
8474 _ACEOF
8475 rm -f conftest.$ac_objext conftest$ac_exeext
8476 if { (ac_try="$ac_link"
8477 case "(($ac_try" in
8478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479 *) ac_try_echo=$ac_try;;
8480 esac
8481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8482 $as_echo "$ac_try_echo") >&5
8483 (eval "$ac_link") 2>conftest.er1
8484 ac_status=$?
8485 grep -v '^ *+' conftest.er1 >conftest.err
8486 rm -f conftest.er1
8487 cat conftest.err >&5
8488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } && {
8490 test -z "$ac_c_werror_flag" ||
8491 test ! -s conftest.err
8492 } && test -s conftest$ac_exeext && {
8493 test "$cross_compiling" = yes ||
8494 $as_test_x conftest$ac_exeext
8495 }; then
8496
8497 lt_aix_libpath_sed='
8498 /Import File Strings/,/^$/ {
8499 /^0/ {
8500 s/^0 *\(.*\)$/\1/
8501 p
8502 }
8503 }'
8504 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8505 # Check for a 64-bit object if we didn't find anything.
8506 if test -z "$aix_libpath"; then
8507 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8508 fi
8509 else
8510 $as_echo "$as_me: failed program was:" >&5
8511 sed 's/^/| /' conftest.$ac_ext >&5
8512
8513
8514 fi
8515
8516 rm -rf conftest.dSYM
8517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8518 conftest$ac_exeext conftest.$ac_ext
8519 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8520
8521 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8522 # Warning - without using the other run time loading flags,
8523 # -berok will link without error, but may produce a broken library.
8524 no_undefined_flag=' ${wl}-bernotok'
8525 allow_undefined_flag=' ${wl}-berok'
8526 # Exported symbols can be pulled into shared objects from archives
8527 whole_archive_flag_spec='$convenience'
8528 archive_cmds_need_lc=yes
8529 # This is similar to how AIX traditionally builds its shared libraries.
8530 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'
8531 fi
8532 fi
8533 ;;
8534
8535 amigaos*)
8536 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)'
8537 hardcode_libdir_flag_spec='-L$libdir'
8538 hardcode_minus_L=yes
8539 # see comment about different semantics on the GNU ld section
8540 ld_shlibs=no
8541 ;;
8542
8543 bsdi[45]*)
8544 export_dynamic_flag_spec=-rdynamic
8545 ;;
8546
8547 cygwin* | mingw* | pw32*)
8548 # When not using gcc, we currently assume that we are using
8549 # Microsoft Visual C++.
8550 # hardcode_libdir_flag_spec is actually meaningless, as there is
8551 # no search path for DLLs.
8552 hardcode_libdir_flag_spec=' '
8553 allow_undefined_flag=unsupported
8554 # Tell ltmain to make .lib files, not .a files.
8555 libext=lib
8556 # Tell ltmain to make .dll files, not .so files.
8557 shrext_cmds=".dll"
8558 # FIXME: Setting linknames here is a bad hack.
8559 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8560 # The linker will automatically build a .lib file if we build a DLL.
8561 old_archive_From_new_cmds='true'
8562 # FIXME: Should let the user specify the lib program.
8563 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8564 fix_srcfile_path='`cygpath -w "$srcfile"`'
8565 enable_shared_with_static_runtimes=yes
8566 ;;
8567
8568 darwin* | rhapsody*)
8569 case $host_os in
8570 rhapsody* | darwin1.[012])
8571 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8572 ;;
8573 *) # Darwin 1.3 on
8574 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8575 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8576 else
8577 case ${MACOSX_DEPLOYMENT_TARGET} in
8578 10.[012])
8579 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8580 ;;
8581 10.*)
8582 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8583 ;;
8584 esac
8585 fi
8586 ;;
8587 esac
8588 archive_cmds_need_lc=no
8589 hardcode_direct=no
8590 hardcode_automatic=yes
8591 hardcode_shlibpath_var=unsupported
8592 whole_archive_flag_spec=''
8593 link_all_deplibs=yes
8594 if test "$GCC" = yes ; then
8595 output_verbose_link_cmd='echo'
8596 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8597 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8598 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}"
8599 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}"
8600 else
8601 case $cc_basename in
8602 xlc*)
8603 output_verbose_link_cmd='echo'
8604 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8605 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8606 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8607 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}'
8608 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}'
8609 ;;
8610 *)
8611 ld_shlibs=no
8612 ;;
8613 esac
8614 fi
8615 ;;
8616
8617 dgux*)
8618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8619 hardcode_libdir_flag_spec='-L$libdir'
8620 hardcode_shlibpath_var=no
8621 ;;
8622
8623 freebsd1*)
8624 ld_shlibs=no
8625 ;;
8626
8627 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8628 # support. Future versions do this automatically, but an explicit c++rt0.o
8629 # does not break anything, and helps significantly (at the cost of a little
8630 # extra space).
8631 freebsd2.2*)
8632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8633 hardcode_libdir_flag_spec='-R$libdir'
8634 hardcode_direct=yes
8635 hardcode_shlibpath_var=no
8636 ;;
8637
8638 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8639 freebsd2*)
8640 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8641 hardcode_direct=yes
8642 hardcode_minus_L=yes
8643 hardcode_shlibpath_var=no
8644 ;;
8645
8646 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8647 freebsd* | dragonfly*)
8648 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8649 hardcode_libdir_flag_spec='-R$libdir'
8650 hardcode_direct=yes
8651 hardcode_shlibpath_var=no
8652 ;;
8653
8654 hpux9*)
8655 if test "$GCC" = yes; then
8656 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'
8657 else
8658 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'
8659 fi
8660 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8661 hardcode_libdir_separator=:
8662 hardcode_direct=yes
8663
8664 # hardcode_minus_L: Not really in the search PATH,
8665 # but as the default location of the library.
8666 hardcode_minus_L=yes
8667 export_dynamic_flag_spec='${wl}-E'
8668 ;;
8669
8670 hpux10*)
8671 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8672 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8673 else
8674 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8675 fi
8676 if test "$with_gnu_ld" = no; then
8677 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8678 hardcode_libdir_separator=:
8679
8680 hardcode_direct=yes
8681 export_dynamic_flag_spec='${wl}-E'
8682
8683 # hardcode_minus_L: Not really in the search PATH,
8684 # but as the default location of the library.
8685 hardcode_minus_L=yes
8686 fi
8687 ;;
8688
8689 hpux11*)
8690 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8691 case $host_cpu in
8692 hppa*64*)
8693 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8694 ;;
8695 ia64*)
8696 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8697 ;;
8698 *)
8699 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8700 ;;
8701 esac
8702 else
8703 case $host_cpu in
8704 hppa*64*)
8705 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8706 ;;
8707 ia64*)
8708 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8709 ;;
8710 *)
8711 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8712 ;;
8713 esac
8714 fi
8715 if test "$with_gnu_ld" = no; then
8716 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8717 hardcode_libdir_separator=:
8718
8719 case $host_cpu in
8720 hppa*64*|ia64*)
8721 hardcode_libdir_flag_spec_ld='+b $libdir'
8722 hardcode_direct=no
8723 hardcode_shlibpath_var=no
8724 ;;
8725 *)
8726 hardcode_direct=yes
8727 export_dynamic_flag_spec='${wl}-E'
8728
8729 # hardcode_minus_L: Not really in the search PATH,
8730 # but as the default location of the library.
8731 hardcode_minus_L=yes
8732 ;;
8733 esac
8734 fi
8735 ;;
8736
8737 irix5* | irix6* | nonstopux*)
8738 if test "$GCC" = yes; then
8739 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'
8740 else
8741 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'
8742 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8743 fi
8744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8745 hardcode_libdir_separator=:
8746 link_all_deplibs=yes
8747 ;;
8748
8749 netbsd*)
8750 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8751 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8752 else
8753 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8754 fi
8755 hardcode_libdir_flag_spec='-R$libdir'
8756 hardcode_direct=yes
8757 hardcode_shlibpath_var=no
8758 ;;
8759
8760 newsos6)
8761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8762 hardcode_direct=yes
8763 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8764 hardcode_libdir_separator=:
8765 hardcode_shlibpath_var=no
8766 ;;
8767
8768 openbsd*)
8769 if test -f /usr/libexec/ld.so; then
8770 hardcode_direct=yes
8771 hardcode_shlibpath_var=no
8772 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8773 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8774 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8775 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8776 export_dynamic_flag_spec='${wl}-E'
8777 else
8778 case $host_os in
8779 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8780 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8781 hardcode_libdir_flag_spec='-R$libdir'
8782 ;;
8783 *)
8784 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8785 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8786 ;;
8787 esac
8788 fi
8789 else
8790 ld_shlibs=no
8791 fi
8792 ;;
8793
8794 os2*)
8795 hardcode_libdir_flag_spec='-L$libdir'
8796 hardcode_minus_L=yes
8797 allow_undefined_flag=unsupported
8798 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'
8799 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8800 ;;
8801
8802 osf3*)
8803 if test "$GCC" = yes; then
8804 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8805 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'
8806 else
8807 allow_undefined_flag=' -expect_unresolved \*'
8808 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'
8809 fi
8810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8811 hardcode_libdir_separator=:
8812 ;;
8813
8814 osf4* | osf5*) # as osf3* with the addition of -msym flag
8815 if test "$GCC" = yes; then
8816 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8817 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'
8818 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8819 else
8820 allow_undefined_flag=' -expect_unresolved \*'
8821 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'
8822 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8823 $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'
8824
8825 # Both c and cxx compiler support -rpath directly
8826 hardcode_libdir_flag_spec='-rpath $libdir'
8827 fi
8828 hardcode_libdir_separator=:
8829 ;;
8830
8831 solaris*)
8832 no_undefined_flag=' -z text'
8833 if test "$GCC" = yes; then
8834 wlarc='${wl}'
8835 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8836 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8837 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8838 else
8839 wlarc=''
8840 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8841 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8842 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8843 fi
8844 hardcode_libdir_flag_spec='-R$libdir'
8845 hardcode_shlibpath_var=no
8846 case $host_os in
8847 solaris2.[0-5] | solaris2.[0-5].*) ;;
8848 *)
8849 # The compiler driver will combine and reorder linker options,
8850 # but understands `-z linker_flag'. GCC discards it without `$wl',
8851 # but is careful enough not to reorder.
8852 # Supported since Solaris 2.6 (maybe 2.5.1?)
8853 if test "$GCC" = yes; then
8854 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8855 else
8856 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8857 fi
8858 ;;
8859 esac
8860 link_all_deplibs=yes
8861 ;;
8862
8863 sunos4*)
8864 if test "x$host_vendor" = xsequent; then
8865 # Use $CC to link under sequent, because it throws in some extra .o
8866 # files that make .init and .fini sections work.
8867 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8868 else
8869 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8870 fi
8871 hardcode_libdir_flag_spec='-L$libdir'
8872 hardcode_direct=yes
8873 hardcode_minus_L=yes
8874 hardcode_shlibpath_var=no
8875 ;;
8876
8877 sysv4)
8878 case $host_vendor in
8879 sni)
8880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8881 hardcode_direct=yes # is this really true???
8882 ;;
8883 siemens)
8884 ## LD is ld it makes a PLAMLIB
8885 ## CC just makes a GrossModule.
8886 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8887 reload_cmds='$CC -r -o $output$reload_objs'
8888 hardcode_direct=no
8889 ;;
8890 motorola)
8891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8892 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8893 ;;
8894 esac
8895 runpath_var='LD_RUN_PATH'
8896 hardcode_shlibpath_var=no
8897 ;;
8898
8899 sysv4.3*)
8900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8901 hardcode_shlibpath_var=no
8902 export_dynamic_flag_spec='-Bexport'
8903 ;;
8904
8905 sysv4*MP*)
8906 if test -d /usr/nec; then
8907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8908 hardcode_shlibpath_var=no
8909 runpath_var=LD_RUN_PATH
8910 hardcode_runpath_var=yes
8911 ld_shlibs=yes
8912 fi
8913 ;;
8914
8915 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8916 no_undefined_flag='${wl}-z,text'
8917 archive_cmds_need_lc=no
8918 hardcode_shlibpath_var=no
8919 runpath_var='LD_RUN_PATH'
8920
8921 if test "$GCC" = yes; then
8922 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8923 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8924 else
8925 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8926 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8927 fi
8928 ;;
8929
8930 sysv5* | sco3.2v5* | sco5v6*)
8931 # Note: We can NOT use -z defs as we might desire, because we do not
8932 # link with -lc, and that would cause any symbols used from libc to
8933 # always be unresolved, which means just about no library would
8934 # ever link correctly. If we're not using GNU ld we use -z text
8935 # though, which does catch some bad symbols but isn't as heavy-handed
8936 # as -z defs.
8937 no_undefined_flag='${wl}-z,text'
8938 allow_undefined_flag='${wl}-z,nodefs'
8939 archive_cmds_need_lc=no
8940 hardcode_shlibpath_var=no
8941 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8942 hardcode_libdir_separator=':'
8943 link_all_deplibs=yes
8944 export_dynamic_flag_spec='${wl}-Bexport'
8945 runpath_var='LD_RUN_PATH'
8946
8947 if test "$GCC" = yes; then
8948 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8949 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8950 else
8951 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8952 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8953 fi
8954 ;;
8955
8956 uts4*)
8957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8958 hardcode_libdir_flag_spec='-L$libdir'
8959 hardcode_shlibpath_var=no
8960 ;;
8961
8962 *)
8963 ld_shlibs=no
8964 ;;
8965 esac
8966 fi
8967
8968 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8969 $as_echo "$ld_shlibs" >&6; }
8970 test "$ld_shlibs" = no && can_build_shared=no
8971
8972 #
8973 # Do we need to explicitly link libc?
8974 #
8975 case "x$archive_cmds_need_lc" in
8976 x|xyes)
8977 # Assume -lc should be added
8978 archive_cmds_need_lc=yes
8979
8980 if test "$enable_shared" = yes && test "$GCC" = yes; then
8981 case $archive_cmds in
8982 *'~'*)
8983 # FIXME: we may have to deal with multi-command sequences.
8984 ;;
8985 '$CC '*)
8986 # Test whether the compiler implicitly links with -lc since on some
8987 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8988 # to ld, don't add -lc before -lgcc.
8989 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8990 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8991 $rm conftest*
8992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8993
8994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8995 (eval $ac_compile) 2>&5
8996 ac_status=$?
8997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } 2>conftest.err; then
8999 soname=conftest
9000 lib=conftest
9001 libobjs=conftest.$ac_objext
9002 deplibs=
9003 wl=$lt_prog_compiler_wl
9004 pic_flag=$lt_prog_compiler_pic
9005 compiler_flags=-v
9006 linker_flags=-v
9007 verstring=
9008 output_objdir=.
9009 libname=conftest
9010 lt_save_allow_undefined_flag=$allow_undefined_flag
9011 allow_undefined_flag=
9012 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9013 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9014 ac_status=$?
9015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }
9017 then
9018 archive_cmds_need_lc=no
9019 else
9020 archive_cmds_need_lc=yes
9021 fi
9022 allow_undefined_flag=$lt_save_allow_undefined_flag
9023 else
9024 cat conftest.err 1>&5
9025 fi
9026 $rm conftest*
9027 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9028 $as_echo "$archive_cmds_need_lc" >&6; }
9029 ;;
9030 esac
9031 fi
9032 ;;
9033 esac
9034
9035 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9036 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9037 library_names_spec=
9038 libname_spec='lib$name'
9039 soname_spec=
9040 shrext_cmds=".so"
9041 postinstall_cmds=
9042 postuninstall_cmds=
9043 finish_cmds=
9044 finish_eval=
9045 shlibpath_var=
9046 shlibpath_overrides_runpath=unknown
9047 version_type=none
9048 dynamic_linker="$host_os ld.so"
9049 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9050
9051 if test "$GCC" = yes; then
9052 case $host_os in
9053 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9054 *) lt_awk_arg="/^libraries:/" ;;
9055 esac
9056 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9057 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9058 # if the path contains ";" then we assume it to be the separator
9059 # otherwise default to the standard path separator (i.e. ":") - it is
9060 # assumed that no part of a normal pathname contains ";" but that should
9061 # okay in the real world where ";" in dirpaths is itself problematic.
9062 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9063 else
9064 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9065 fi
9066 # Ok, now we have the path, separated by spaces, we can step through it
9067 # and add multilib dir if necessary.
9068 lt_tmp_lt_search_path_spec=
9069 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9070 for lt_sys_path in $lt_search_path_spec; do
9071 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9072 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9073 else
9074 test -d "$lt_sys_path" && \
9075 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9076 fi
9077 done
9078 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9079 BEGIN {RS=" "; FS="/|\n";} {
9080 lt_foo="";
9081 lt_count=0;
9082 for (lt_i = NF; lt_i > 0; lt_i--) {
9083 if ($lt_i != "" && $lt_i != ".") {
9084 if ($lt_i == "..") {
9085 lt_count++;
9086 } else {
9087 if (lt_count == 0) {
9088 lt_foo="/" $lt_i lt_foo;
9089 } else {
9090 lt_count--;
9091 }
9092 }
9093 }
9094 }
9095 if (lt_foo != "") { lt_freq[lt_foo]++; }
9096 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9097 }'`
9098 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9099 else
9100 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9101 fi
9102 need_lib_prefix=unknown
9103 hardcode_into_libs=no
9104
9105 # when you set need_version to no, make sure it does not cause -set_version
9106 # flags to be left without arguments
9107 need_version=unknown
9108
9109 case $host_os in
9110 aix3*)
9111 version_type=linux
9112 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9113 shlibpath_var=LIBPATH
9114
9115 # AIX 3 has no versioning support, so we append a major version to the name.
9116 soname_spec='${libname}${release}${shared_ext}$major'
9117 ;;
9118
9119 aix[4-9]*)
9120 version_type=linux
9121 need_lib_prefix=no
9122 need_version=no
9123 hardcode_into_libs=yes
9124 if test "$host_cpu" = ia64; then
9125 # AIX 5 supports IA64
9126 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9127 shlibpath_var=LD_LIBRARY_PATH
9128 else
9129 # With GCC up to 2.95.x, collect2 would create an import file
9130 # for dependence libraries. The import file would start with
9131 # the line `#! .'. This would cause the generated library to
9132 # depend on `.', always an invalid library. This was fixed in
9133 # development snapshots of GCC prior to 3.0.
9134 case $host_os in
9135 aix4 | aix4.[01] | aix4.[01].*)
9136 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9137 echo ' yes '
9138 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9139 :
9140 else
9141 can_build_shared=no
9142 fi
9143 ;;
9144 esac
9145 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9146 # soname into executable. Probably we can add versioning support to
9147 # collect2, so additional links can be useful in future.
9148 if test "$aix_use_runtimelinking" = yes; then
9149 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9150 # instead of lib<name>.a to let people know that these are not
9151 # typical AIX shared libraries.
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9153 else
9154 # We preserve .a as extension for shared libraries through AIX4.2
9155 # and later when we are not doing run time linking.
9156 library_names_spec='${libname}${release}.a $libname.a'
9157 soname_spec='${libname}${release}${shared_ext}$major'
9158 fi
9159 shlibpath_var=LIBPATH
9160 fi
9161 ;;
9162
9163 amigaos*)
9164 library_names_spec='$libname.ixlibrary $libname.a'
9165 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9166 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'
9167 ;;
9168
9169 beos*)
9170 library_names_spec='${libname}${shared_ext}'
9171 dynamic_linker="$host_os ld.so"
9172 shlibpath_var=LIBRARY_PATH
9173 ;;
9174
9175 bsdi[45]*)
9176 version_type=linux
9177 need_version=no
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179 soname_spec='${libname}${release}${shared_ext}$major'
9180 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9181 shlibpath_var=LD_LIBRARY_PATH
9182 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9183 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9184 # the default ld.so.conf also contains /usr/contrib/lib and
9185 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9186 # libtool to hard-code these into programs
9187 ;;
9188
9189 cygwin* | mingw* | pw32*)
9190 version_type=windows
9191 shrext_cmds=".dll"
9192 need_version=no
9193 need_lib_prefix=no
9194
9195 case $GCC,$host_os in
9196 yes,cygwin* | yes,mingw* | yes,pw32*)
9197 library_names_spec='$libname.dll.a'
9198 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9199 postinstall_cmds='base_file=`basename \${file}`~
9200 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9201 dldir=$destdir/`dirname \$dlpath`~
9202 test -d \$dldir || mkdir -p \$dldir~
9203 $install_prog $dir/$dlname \$dldir/$dlname~
9204 chmod a+x \$dldir/$dlname'
9205 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9206 dlpath=$dir/\$dldll~
9207 $rm \$dlpath'
9208 shlibpath_overrides_runpath=yes
9209
9210 case $host_os in
9211 cygwin*)
9212 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9213 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9214 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9215 ;;
9216 mingw*)
9217 # MinGW DLLs use traditional 'lib' prefix
9218 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9219 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9220 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9221 # It is most probably a Windows format PATH printed by
9222 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9223 # path with ; separators, and with drive letters. We can handle the
9224 # drive letters (cygwin fileutils understands them), so leave them,
9225 # especially as we might pass files found there to a mingw objdump,
9226 # which wouldn't understand a cygwinified path. Ahh.
9227 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9228 else
9229 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9230 fi
9231 ;;
9232 pw32*)
9233 # pw32 DLLs use 'pw' prefix rather than 'lib'
9234 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9235 ;;
9236 esac
9237 ;;
9238
9239 *)
9240 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9241 ;;
9242 esac
9243 dynamic_linker='Win32 ld.exe'
9244 # FIXME: first we should search . and the directory the executable is in
9245 shlibpath_var=PATH
9246 ;;
9247
9248 darwin* | rhapsody*)
9249 dynamic_linker="$host_os dyld"
9250 version_type=darwin
9251 need_lib_prefix=no
9252 need_version=no
9253 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9254 soname_spec='${libname}${release}${major}$shared_ext'
9255 shlibpath_overrides_runpath=yes
9256 shlibpath_var=DYLD_LIBRARY_PATH
9257 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9258
9259 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9260 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9261 ;;
9262
9263 dgux*)
9264 version_type=linux
9265 need_lib_prefix=no
9266 need_version=no
9267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9268 soname_spec='${libname}${release}${shared_ext}$major'
9269 shlibpath_var=LD_LIBRARY_PATH
9270 ;;
9271
9272 freebsd1*)
9273 dynamic_linker=no
9274 ;;
9275
9276 freebsd* | dragonfly*)
9277 # DragonFly does not have aout. When/if they implement a new
9278 # versioning mechanism, adjust this.
9279 if test -x /usr/bin/objformat; then
9280 objformat=`/usr/bin/objformat`
9281 else
9282 case $host_os in
9283 freebsd[123]*) objformat=aout ;;
9284 *) objformat=elf ;;
9285 esac
9286 fi
9287 version_type=freebsd-$objformat
9288 case $version_type in
9289 freebsd-elf*)
9290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9291 need_version=no
9292 need_lib_prefix=no
9293 ;;
9294 freebsd-*)
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9296 need_version=yes
9297 ;;
9298 esac
9299 shlibpath_var=LD_LIBRARY_PATH
9300 case $host_os in
9301 freebsd2*)
9302 shlibpath_overrides_runpath=yes
9303 ;;
9304 freebsd3.[01]* | freebsdelf3.[01]*)
9305 shlibpath_overrides_runpath=yes
9306 hardcode_into_libs=yes
9307 ;;
9308 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9309 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9310 shlibpath_overrides_runpath=no
9311 hardcode_into_libs=yes
9312 ;;
9313 *) # from 4.6 on, and DragonFly
9314 shlibpath_overrides_runpath=yes
9315 hardcode_into_libs=yes
9316 ;;
9317 esac
9318 ;;
9319
9320 gnu*)
9321 version_type=linux
9322 need_lib_prefix=no
9323 need_version=no
9324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9325 soname_spec='${libname}${release}${shared_ext}$major'
9326 shlibpath_var=LD_LIBRARY_PATH
9327 hardcode_into_libs=yes
9328 ;;
9329
9330 hpux9* | hpux10* | hpux11*)
9331 # Give a soname corresponding to the major version so that dld.sl refuses to
9332 # link against other versions.
9333 version_type=sunos
9334 need_lib_prefix=no
9335 need_version=no
9336 case $host_cpu in
9337 ia64*)
9338 shrext_cmds='.so'
9339 hardcode_into_libs=yes
9340 dynamic_linker="$host_os dld.so"
9341 shlibpath_var=LD_LIBRARY_PATH
9342 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9344 soname_spec='${libname}${release}${shared_ext}$major'
9345 if test "X$HPUX_IA64_MODE" = X32; then
9346 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9347 else
9348 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9349 fi
9350 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9351 ;;
9352 hppa*64*)
9353 shrext_cmds='.sl'
9354 hardcode_into_libs=yes
9355 dynamic_linker="$host_os dld.sl"
9356 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9357 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9359 soname_spec='${libname}${release}${shared_ext}$major'
9360 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9362 ;;
9363 *)
9364 shrext_cmds='.sl'
9365 dynamic_linker="$host_os dld.sl"
9366 shlibpath_var=SHLIB_PATH
9367 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369 soname_spec='${libname}${release}${shared_ext}$major'
9370 ;;
9371 esac
9372 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9373 postinstall_cmds='chmod 555 $lib'
9374 ;;
9375
9376 interix[3-9]*)
9377 version_type=linux
9378 need_lib_prefix=no
9379 need_version=no
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9383 shlibpath_var=LD_LIBRARY_PATH
9384 shlibpath_overrides_runpath=no
9385 hardcode_into_libs=yes
9386 ;;
9387
9388 irix5* | irix6* | nonstopux*)
9389 case $host_os in
9390 nonstopux*) version_type=nonstopux ;;
9391 *)
9392 if test "$lt_cv_prog_gnu_ld" = yes; then
9393 version_type=linux
9394 else
9395 version_type=irix
9396 fi ;;
9397 esac
9398 need_lib_prefix=no
9399 need_version=no
9400 soname_spec='${libname}${release}${shared_ext}$major'
9401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9402 case $host_os in
9403 irix5* | nonstopux*)
9404 libsuff= shlibsuff=
9405 ;;
9406 *)
9407 case $LD in # libtool.m4 will add one of these switches to LD
9408 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9409 libsuff= shlibsuff= libmagic=32-bit;;
9410 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9411 libsuff=32 shlibsuff=N32 libmagic=N32;;
9412 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9413 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9414 *) libsuff= shlibsuff= libmagic=never-match;;
9415 esac
9416 ;;
9417 esac
9418 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9419 shlibpath_overrides_runpath=no
9420 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9421 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9422 hardcode_into_libs=yes
9423 ;;
9424
9425 # No shared lib support for Linux oldld, aout, or coff.
9426 linux*oldld* | linux*aout* | linux*coff*)
9427 dynamic_linker=no
9428 ;;
9429
9430 # This must be Linux ELF.
9431 linux* | k*bsd*-gnu)
9432 version_type=linux
9433 need_lib_prefix=no
9434 need_version=no
9435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9436 soname_spec='${libname}${release}${shared_ext}$major'
9437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9438 shlibpath_var=LD_LIBRARY_PATH
9439 shlibpath_overrides_runpath=no
9440 # This implies no fast_install, which is unacceptable.
9441 # Some rework will be needed to allow for fast_install
9442 # before this can be enabled.
9443 hardcode_into_libs=yes
9444
9445 # Append ld.so.conf contents to the search path
9446 if test -f /etc/ld.so.conf; then
9447 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' ' '`
9448 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9449 fi
9450
9451 # We used to test for /lib/ld.so.1 and disable shared libraries on
9452 # powerpc, because MkLinux only supported shared libraries with the
9453 # GNU dynamic linker. Since this was broken with cross compilers,
9454 # most powerpc-linux boxes support dynamic linking these days and
9455 # people can always --disable-shared, the test was removed, and we
9456 # assume the GNU/Linux dynamic linker is in use.
9457 dynamic_linker='GNU/Linux ld.so'
9458 ;;
9459
9460 netbsd*)
9461 version_type=sunos
9462 need_lib_prefix=no
9463 need_version=no
9464 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9467 dynamic_linker='NetBSD (a.out) ld.so'
9468 else
9469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9470 soname_spec='${libname}${release}${shared_ext}$major'
9471 dynamic_linker='NetBSD ld.elf_so'
9472 fi
9473 shlibpath_var=LD_LIBRARY_PATH
9474 shlibpath_overrides_runpath=yes
9475 hardcode_into_libs=yes
9476 ;;
9477
9478 newsos6)
9479 version_type=linux
9480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9481 shlibpath_var=LD_LIBRARY_PATH
9482 shlibpath_overrides_runpath=yes
9483 ;;
9484
9485 nto-qnx*)
9486 version_type=linux
9487 need_lib_prefix=no
9488 need_version=no
9489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9490 soname_spec='${libname}${release}${shared_ext}$major'
9491 shlibpath_var=LD_LIBRARY_PATH
9492 shlibpath_overrides_runpath=yes
9493 ;;
9494
9495 openbsd*)
9496 version_type=sunos
9497 sys_lib_dlsearch_path_spec="/usr/lib"
9498 need_lib_prefix=no
9499 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9500 case $host_os in
9501 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9502 *) need_version=no ;;
9503 esac
9504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9506 shlibpath_var=LD_LIBRARY_PATH
9507 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9508 case $host_os in
9509 openbsd2.[89] | openbsd2.[89].*)
9510 shlibpath_overrides_runpath=no
9511 ;;
9512 *)
9513 shlibpath_overrides_runpath=yes
9514 ;;
9515 esac
9516 else
9517 shlibpath_overrides_runpath=yes
9518 fi
9519 ;;
9520
9521 os2*)
9522 libname_spec='$name'
9523 shrext_cmds=".dll"
9524 need_lib_prefix=no
9525 library_names_spec='$libname${shared_ext} $libname.a'
9526 dynamic_linker='OS/2 ld.exe'
9527 shlibpath_var=LIBPATH
9528 ;;
9529
9530 osf3* | osf4* | osf5*)
9531 version_type=osf
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${shared_ext}'
9536 shlibpath_var=LD_LIBRARY_PATH
9537 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9538 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9539 ;;
9540
9541 rdos*)
9542 dynamic_linker=no
9543 ;;
9544
9545 solaris*)
9546 version_type=linux
9547 need_lib_prefix=no
9548 need_version=no
9549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9550 soname_spec='${libname}${release}${shared_ext}$major'
9551 shlibpath_var=LD_LIBRARY_PATH
9552 shlibpath_overrides_runpath=yes
9553 hardcode_into_libs=yes
9554 # ldd complains unless libraries are executable
9555 postinstall_cmds='chmod +x $lib'
9556 ;;
9557
9558 sunos4*)
9559 version_type=sunos
9560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9561 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9562 shlibpath_var=LD_LIBRARY_PATH
9563 shlibpath_overrides_runpath=yes
9564 if test "$with_gnu_ld" = yes; then
9565 need_lib_prefix=no
9566 fi
9567 need_version=yes
9568 ;;
9569
9570 sysv4 | sysv4.3*)
9571 version_type=linux
9572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9573 soname_spec='${libname}${release}${shared_ext}$major'
9574 shlibpath_var=LD_LIBRARY_PATH
9575 case $host_vendor in
9576 sni)
9577 shlibpath_overrides_runpath=no
9578 need_lib_prefix=no
9579 export_dynamic_flag_spec='${wl}-Blargedynsym'
9580 runpath_var=LD_RUN_PATH
9581 ;;
9582 siemens)
9583 need_lib_prefix=no
9584 ;;
9585 motorola)
9586 need_lib_prefix=no
9587 need_version=no
9588 shlibpath_overrides_runpath=no
9589 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9590 ;;
9591 esac
9592 ;;
9593
9594 sysv4*MP*)
9595 if test -d /usr/nec ;then
9596 version_type=linux
9597 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9598 soname_spec='$libname${shared_ext}.$major'
9599 shlibpath_var=LD_LIBRARY_PATH
9600 fi
9601 ;;
9602
9603 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9604 version_type=freebsd-elf
9605 need_lib_prefix=no
9606 need_version=no
9607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9608 soname_spec='${libname}${release}${shared_ext}$major'
9609 shlibpath_var=LD_LIBRARY_PATH
9610 hardcode_into_libs=yes
9611 if test "$with_gnu_ld" = yes; then
9612 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9613 shlibpath_overrides_runpath=no
9614 else
9615 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9616 shlibpath_overrides_runpath=yes
9617 case $host_os in
9618 sco3.2v5*)
9619 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9620 ;;
9621 esac
9622 fi
9623 sys_lib_dlsearch_path_spec='/usr/lib'
9624 ;;
9625
9626 uts4*)
9627 version_type=linux
9628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9629 soname_spec='${libname}${release}${shared_ext}$major'
9630 shlibpath_var=LD_LIBRARY_PATH
9631 ;;
9632
9633 *)
9634 dynamic_linker=no
9635 ;;
9636 esac
9637 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9638 $as_echo "$dynamic_linker" >&6; }
9639 test "$dynamic_linker" = no && can_build_shared=no
9640
9641 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9642 $as_echo_n "(cached) " >&6
9643 else
9644 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9645 fi
9646
9647 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9648 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9649 $as_echo_n "(cached) " >&6
9650 else
9651 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9652 fi
9653
9654 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9655
9656 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9657 if test "$GCC" = yes; then
9658 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9659 fi
9660
9661 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9662 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9663 hardcode_action=
9664 if test -n "$hardcode_libdir_flag_spec" || \
9665 test -n "$runpath_var" || \
9666 test "X$hardcode_automatic" = "Xyes" ; then
9667
9668 # We can hardcode non-existant directories.
9669 if test "$hardcode_direct" != no &&
9670 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9671 # have to relink, otherwise we might link with an installed library
9672 # when we should be linking with a yet-to-be-installed one
9673 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9674 test "$hardcode_minus_L" != no; then
9675 # Linking always hardcodes the temporary library directory.
9676 hardcode_action=relink
9677 else
9678 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9679 hardcode_action=immediate
9680 fi
9681 else
9682 # We cannot hardcode anything, or else we can only hardcode existing
9683 # directories.
9684 hardcode_action=unsupported
9685 fi
9686 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9687 $as_echo "$hardcode_action" >&6; }
9688
9689 if test "$hardcode_action" = relink; then
9690 # Fast installation is not supported
9691 enable_fast_install=no
9692 elif test "$shlibpath_overrides_runpath" = yes ||
9693 test "$enable_shared" = no; then
9694 # Fast installation is not necessary
9695 enable_fast_install=needless
9696 fi
9697
9698 striplib=
9699 old_striplib=
9700 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9701 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9702 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9703 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9704 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9705 { $as_echo "$as_me:$LINENO: result: yes" >&5
9706 $as_echo "yes" >&6; }
9707 else
9708 # FIXME - insert some real tests, host_os isn't really good enough
9709 case $host_os in
9710 darwin*)
9711 if test -n "$STRIP" ; then
9712 striplib="$STRIP -x"
9713 old_striplib="$STRIP -S"
9714 { $as_echo "$as_me:$LINENO: result: yes" >&5
9715 $as_echo "yes" >&6; }
9716 else
9717 { $as_echo "$as_me:$LINENO: result: no" >&5
9718 $as_echo "no" >&6; }
9719 fi
9720 ;;
9721 *)
9722 { $as_echo "$as_me:$LINENO: result: no" >&5
9723 $as_echo "no" >&6; }
9724 ;;
9725 esac
9726 fi
9727
9728 if test "x$enable_dlopen" != xyes; then
9729 enable_dlopen=unknown
9730 enable_dlopen_self=unknown
9731 enable_dlopen_self_static=unknown
9732 else
9733 lt_cv_dlopen=no
9734 lt_cv_dlopen_libs=
9735
9736 case $host_os in
9737 beos*)
9738 lt_cv_dlopen="load_add_on"
9739 lt_cv_dlopen_libs=
9740 lt_cv_dlopen_self=yes
9741 ;;
9742
9743 mingw* | pw32*)
9744 lt_cv_dlopen="LoadLibrary"
9745 lt_cv_dlopen_libs=
9746 ;;
9747
9748 cygwin*)
9749 lt_cv_dlopen="dlopen"
9750 lt_cv_dlopen_libs=
9751 ;;
9752
9753 darwin*)
9754 # if libdl is installed we need to link against it
9755 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9756 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9757 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9758 $as_echo_n "(cached) " >&6
9759 else
9760 ac_check_lib_save_LIBS=$LIBS
9761 LIBS="-ldl $LIBS"
9762 cat >conftest.$ac_ext <<_ACEOF
9763 /* confdefs.h. */
9764 _ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h. */
9768
9769 /* Override any GCC internal prototype to avoid an error.
9770 Use char because int might match the return type of a GCC
9771 builtin and then its argument prototype would still apply. */
9772 #ifdef __cplusplus
9773 extern "C"
9774 #endif
9775 char dlopen ();
9776 int
9777 main ()
9778 {
9779 return dlopen ();
9780 ;
9781 return 0;
9782 }
9783 _ACEOF
9784 rm -f conftest.$ac_objext conftest$ac_exeext
9785 if { (ac_try="$ac_link"
9786 case "(($ac_try" in
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9789 esac
9790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9791 $as_echo "$ac_try_echo") >&5
9792 (eval "$ac_link") 2>conftest.er1
9793 ac_status=$?
9794 grep -v '^ *+' conftest.er1 >conftest.err
9795 rm -f conftest.er1
9796 cat conftest.err >&5
9797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } && {
9799 test -z "$ac_c_werror_flag" ||
9800 test ! -s conftest.err
9801 } && test -s conftest$ac_exeext && {
9802 test "$cross_compiling" = yes ||
9803 $as_test_x conftest$ac_exeext
9804 }; then
9805 ac_cv_lib_dl_dlopen=yes
9806 else
9807 $as_echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9809
9810 ac_cv_lib_dl_dlopen=no
9811 fi
9812
9813 rm -rf conftest.dSYM
9814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9815 conftest$ac_exeext conftest.$ac_ext
9816 LIBS=$ac_check_lib_save_LIBS
9817 fi
9818 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9819 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9820 if test $ac_cv_lib_dl_dlopen = yes; then
9821 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9822 else
9823
9824 lt_cv_dlopen="dyld"
9825 lt_cv_dlopen_libs=
9826 lt_cv_dlopen_self=yes
9827
9828 fi
9829
9830 ;;
9831
9832 *)
9833 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9834 $as_echo_n "checking for shl_load... " >&6; }
9835 if test "${ac_cv_func_shl_load+set}" = set; then
9836 $as_echo_n "(cached) " >&6
9837 else
9838 cat >conftest.$ac_ext <<_ACEOF
9839 /* confdefs.h. */
9840 _ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h. */
9844 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9846 #define shl_load innocuous_shl_load
9847
9848 /* System header to define __stub macros and hopefully few prototypes,
9849 which can conflict with char shl_load (); below.
9850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9851 <limits.h> exists even on freestanding compilers. */
9852
9853 #ifdef __STDC__
9854 # include <limits.h>
9855 #else
9856 # include <assert.h>
9857 #endif
9858
9859 #undef shl_load
9860
9861 /* Override any GCC internal prototype to avoid an error.
9862 Use char because int might match the return type of a GCC
9863 builtin and then its argument prototype would still apply. */
9864 #ifdef __cplusplus
9865 extern "C"
9866 #endif
9867 char shl_load ();
9868 /* The GNU C library defines this for functions which it implements
9869 to always fail with ENOSYS. Some functions are actually named
9870 something starting with __ and the normal name is an alias. */
9871 #if defined __stub_shl_load || defined __stub___shl_load
9872 choke me
9873 #endif
9874
9875 int
9876 main ()
9877 {
9878 return shl_load ();
9879 ;
9880 return 0;
9881 }
9882 _ACEOF
9883 rm -f conftest.$ac_objext conftest$ac_exeext
9884 if { (ac_try="$ac_link"
9885 case "(($ac_try" in
9886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9887 *) ac_try_echo=$ac_try;;
9888 esac
9889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9890 $as_echo "$ac_try_echo") >&5
9891 (eval "$ac_link") 2>conftest.er1
9892 ac_status=$?
9893 grep -v '^ *+' conftest.er1 >conftest.err
9894 rm -f conftest.er1
9895 cat conftest.err >&5
9896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } && {
9898 test -z "$ac_c_werror_flag" ||
9899 test ! -s conftest.err
9900 } && test -s conftest$ac_exeext && {
9901 test "$cross_compiling" = yes ||
9902 $as_test_x conftest$ac_exeext
9903 }; then
9904 ac_cv_func_shl_load=yes
9905 else
9906 $as_echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9908
9909 ac_cv_func_shl_load=no
9910 fi
9911
9912 rm -rf conftest.dSYM
9913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9914 conftest$ac_exeext conftest.$ac_ext
9915 fi
9916 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9917 $as_echo "$ac_cv_func_shl_load" >&6; }
9918 if test $ac_cv_func_shl_load = yes; then
9919 lt_cv_dlopen="shl_load"
9920 else
9921 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9922 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9923 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9924 $as_echo_n "(cached) " >&6
9925 else
9926 ac_check_lib_save_LIBS=$LIBS
9927 LIBS="-ldld $LIBS"
9928 cat >conftest.$ac_ext <<_ACEOF
9929 /* confdefs.h. */
9930 _ACEOF
9931 cat confdefs.h >>conftest.$ac_ext
9932 cat >>conftest.$ac_ext <<_ACEOF
9933 /* end confdefs.h. */
9934
9935 /* Override any GCC internal prototype to avoid an error.
9936 Use char because int might match the return type of a GCC
9937 builtin and then its argument prototype would still apply. */
9938 #ifdef __cplusplus
9939 extern "C"
9940 #endif
9941 char shl_load ();
9942 int
9943 main ()
9944 {
9945 return shl_load ();
9946 ;
9947 return 0;
9948 }
9949 _ACEOF
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (ac_try="$ac_link"
9952 case "(($ac_try" in
9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954 *) ac_try_echo=$ac_try;;
9955 esac
9956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9957 $as_echo "$ac_try_echo") >&5
9958 (eval "$ac_link") 2>conftest.er1
9959 ac_status=$?
9960 grep -v '^ *+' conftest.er1 >conftest.err
9961 rm -f conftest.er1
9962 cat conftest.err >&5
9963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } && {
9965 test -z "$ac_c_werror_flag" ||
9966 test ! -s conftest.err
9967 } && test -s conftest$ac_exeext && {
9968 test "$cross_compiling" = yes ||
9969 $as_test_x conftest$ac_exeext
9970 }; then
9971 ac_cv_lib_dld_shl_load=yes
9972 else
9973 $as_echo "$as_me: failed program was:" >&5
9974 sed 's/^/| /' conftest.$ac_ext >&5
9975
9976 ac_cv_lib_dld_shl_load=no
9977 fi
9978
9979 rm -rf conftest.dSYM
9980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9981 conftest$ac_exeext conftest.$ac_ext
9982 LIBS=$ac_check_lib_save_LIBS
9983 fi
9984 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9985 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9986 if test $ac_cv_lib_dld_shl_load = yes; then
9987 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9988 else
9989 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9990 $as_echo_n "checking for dlopen... " >&6; }
9991 if test "${ac_cv_func_dlopen+set}" = set; then
9992 $as_echo_n "(cached) " >&6
9993 else
9994 cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h. */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10000 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10002 #define dlopen innocuous_dlopen
10003
10004 /* System header to define __stub macros and hopefully few prototypes,
10005 which can conflict with char dlopen (); below.
10006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10007 <limits.h> exists even on freestanding compilers. */
10008
10009 #ifdef __STDC__
10010 # include <limits.h>
10011 #else
10012 # include <assert.h>
10013 #endif
10014
10015 #undef dlopen
10016
10017 /* Override any GCC internal prototype to avoid an error.
10018 Use char because int might match the return type of a GCC
10019 builtin and then its argument prototype would still apply. */
10020 #ifdef __cplusplus
10021 extern "C"
10022 #endif
10023 char dlopen ();
10024 /* The GNU C library defines this for functions which it implements
10025 to always fail with ENOSYS. Some functions are actually named
10026 something starting with __ and the normal name is an alias. */
10027 #if defined __stub_dlopen || defined __stub___dlopen
10028 choke me
10029 #endif
10030
10031 int
10032 main ()
10033 {
10034 return dlopen ();
10035 ;
10036 return 0;
10037 }
10038 _ACEOF
10039 rm -f conftest.$ac_objext conftest$ac_exeext
10040 if { (ac_try="$ac_link"
10041 case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10044 esac
10045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10046 $as_echo "$ac_try_echo") >&5
10047 (eval "$ac_link") 2>conftest.er1
10048 ac_status=$?
10049 grep -v '^ *+' conftest.er1 >conftest.err
10050 rm -f conftest.er1
10051 cat conftest.err >&5
10052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } && {
10054 test -z "$ac_c_werror_flag" ||
10055 test ! -s conftest.err
10056 } && test -s conftest$ac_exeext && {
10057 test "$cross_compiling" = yes ||
10058 $as_test_x conftest$ac_exeext
10059 }; then
10060 ac_cv_func_dlopen=yes
10061 else
10062 $as_echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10064
10065 ac_cv_func_dlopen=no
10066 fi
10067
10068 rm -rf conftest.dSYM
10069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10070 conftest$ac_exeext conftest.$ac_ext
10071 fi
10072 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10073 $as_echo "$ac_cv_func_dlopen" >&6; }
10074 if test $ac_cv_func_dlopen = yes; then
10075 lt_cv_dlopen="dlopen"
10076 else
10077 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10078 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10079 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10080 $as_echo_n "(cached) " >&6
10081 else
10082 ac_check_lib_save_LIBS=$LIBS
10083 LIBS="-ldl $LIBS"
10084 cat >conftest.$ac_ext <<_ACEOF
10085 /* confdefs.h. */
10086 _ACEOF
10087 cat confdefs.h >>conftest.$ac_ext
10088 cat >>conftest.$ac_ext <<_ACEOF
10089 /* end confdefs.h. */
10090
10091 /* Override any GCC internal prototype to avoid an error.
10092 Use char because int might match the return type of a GCC
10093 builtin and then its argument prototype would still apply. */
10094 #ifdef __cplusplus
10095 extern "C"
10096 #endif
10097 char dlopen ();
10098 int
10099 main ()
10100 {
10101 return dlopen ();
10102 ;
10103 return 0;
10104 }
10105 _ACEOF
10106 rm -f conftest.$ac_objext conftest$ac_exeext
10107 if { (ac_try="$ac_link"
10108 case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10111 esac
10112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10113 $as_echo "$ac_try_echo") >&5
10114 (eval "$ac_link") 2>conftest.er1
10115 ac_status=$?
10116 grep -v '^ *+' conftest.er1 >conftest.err
10117 rm -f conftest.er1
10118 cat conftest.err >&5
10119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); } && {
10121 test -z "$ac_c_werror_flag" ||
10122 test ! -s conftest.err
10123 } && test -s conftest$ac_exeext && {
10124 test "$cross_compiling" = yes ||
10125 $as_test_x conftest$ac_exeext
10126 }; then
10127 ac_cv_lib_dl_dlopen=yes
10128 else
10129 $as_echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10131
10132 ac_cv_lib_dl_dlopen=no
10133 fi
10134
10135 rm -rf conftest.dSYM
10136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10137 conftest$ac_exeext conftest.$ac_ext
10138 LIBS=$ac_check_lib_save_LIBS
10139 fi
10140 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10141 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10142 if test $ac_cv_lib_dl_dlopen = yes; then
10143 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10144 else
10145 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10146 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10147 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10148 $as_echo_n "(cached) " >&6
10149 else
10150 ac_check_lib_save_LIBS=$LIBS
10151 LIBS="-lsvld $LIBS"
10152 cat >conftest.$ac_ext <<_ACEOF
10153 /* confdefs.h. */
10154 _ACEOF
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h. */
10158
10159 /* Override any GCC internal prototype to avoid an error.
10160 Use char because int might match the return type of a GCC
10161 builtin and then its argument prototype would still apply. */
10162 #ifdef __cplusplus
10163 extern "C"
10164 #endif
10165 char dlopen ();
10166 int
10167 main ()
10168 {
10169 return dlopen ();
10170 ;
10171 return 0;
10172 }
10173 _ACEOF
10174 rm -f conftest.$ac_objext conftest$ac_exeext
10175 if { (ac_try="$ac_link"
10176 case "(($ac_try" in
10177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10178 *) ac_try_echo=$ac_try;;
10179 esac
10180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10181 $as_echo "$ac_try_echo") >&5
10182 (eval "$ac_link") 2>conftest.er1
10183 ac_status=$?
10184 grep -v '^ *+' conftest.er1 >conftest.err
10185 rm -f conftest.er1
10186 cat conftest.err >&5
10187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); } && {
10189 test -z "$ac_c_werror_flag" ||
10190 test ! -s conftest.err
10191 } && test -s conftest$ac_exeext && {
10192 test "$cross_compiling" = yes ||
10193 $as_test_x conftest$ac_exeext
10194 }; then
10195 ac_cv_lib_svld_dlopen=yes
10196 else
10197 $as_echo "$as_me: failed program was:" >&5
10198 sed 's/^/| /' conftest.$ac_ext >&5
10199
10200 ac_cv_lib_svld_dlopen=no
10201 fi
10202
10203 rm -rf conftest.dSYM
10204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10205 conftest$ac_exeext conftest.$ac_ext
10206 LIBS=$ac_check_lib_save_LIBS
10207 fi
10208 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10209 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10210 if test $ac_cv_lib_svld_dlopen = yes; then
10211 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10212 else
10213 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10214 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10215 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10216 $as_echo_n "(cached) " >&6
10217 else
10218 ac_check_lib_save_LIBS=$LIBS
10219 LIBS="-ldld $LIBS"
10220 cat >conftest.$ac_ext <<_ACEOF
10221 /* confdefs.h. */
10222 _ACEOF
10223 cat confdefs.h >>conftest.$ac_ext
10224 cat >>conftest.$ac_ext <<_ACEOF
10225 /* end confdefs.h. */
10226
10227 /* Override any GCC internal prototype to avoid an error.
10228 Use char because int might match the return type of a GCC
10229 builtin and then its argument prototype would still apply. */
10230 #ifdef __cplusplus
10231 extern "C"
10232 #endif
10233 char dld_link ();
10234 int
10235 main ()
10236 {
10237 return dld_link ();
10238 ;
10239 return 0;
10240 }
10241 _ACEOF
10242 rm -f conftest.$ac_objext conftest$ac_exeext
10243 if { (ac_try="$ac_link"
10244 case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10247 esac
10248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10249 $as_echo "$ac_try_echo") >&5
10250 (eval "$ac_link") 2>conftest.er1
10251 ac_status=$?
10252 grep -v '^ *+' conftest.er1 >conftest.err
10253 rm -f conftest.er1
10254 cat conftest.err >&5
10255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } && {
10257 test -z "$ac_c_werror_flag" ||
10258 test ! -s conftest.err
10259 } && test -s conftest$ac_exeext && {
10260 test "$cross_compiling" = yes ||
10261 $as_test_x conftest$ac_exeext
10262 }; then
10263 ac_cv_lib_dld_dld_link=yes
10264 else
10265 $as_echo "$as_me: failed program was:" >&5
10266 sed 's/^/| /' conftest.$ac_ext >&5
10267
10268 ac_cv_lib_dld_dld_link=no
10269 fi
10270
10271 rm -rf conftest.dSYM
10272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10273 conftest$ac_exeext conftest.$ac_ext
10274 LIBS=$ac_check_lib_save_LIBS
10275 fi
10276 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10277 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10278 if test $ac_cv_lib_dld_dld_link = yes; then
10279 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10280 fi
10281
10282
10283 fi
10284
10285
10286 fi
10287
10288
10289 fi
10290
10291
10292 fi
10293
10294
10295 fi
10296
10297 ;;
10298 esac
10299
10300 if test "x$lt_cv_dlopen" != xno; then
10301 enable_dlopen=yes
10302 else
10303 enable_dlopen=no
10304 fi
10305
10306 case $lt_cv_dlopen in
10307 dlopen)
10308 save_CPPFLAGS="$CPPFLAGS"
10309 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10310
10311 save_LDFLAGS="$LDFLAGS"
10312 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10313
10314 save_LIBS="$LIBS"
10315 LIBS="$lt_cv_dlopen_libs $LIBS"
10316
10317 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10318 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10319 if test "${lt_cv_dlopen_self+set}" = set; then
10320 $as_echo_n "(cached) " >&6
10321 else
10322 if test "$cross_compiling" = yes; then :
10323 lt_cv_dlopen_self=cross
10324 else
10325 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10326 lt_status=$lt_dlunknown
10327 cat > conftest.$ac_ext <<EOF
10328 #line 10328 "configure"
10329 #include "confdefs.h"
10330
10331 #if HAVE_DLFCN_H
10332 #include <dlfcn.h>
10333 #endif
10334
10335 #include <stdio.h>
10336
10337 #ifdef RTLD_GLOBAL
10338 # define LT_DLGLOBAL RTLD_GLOBAL
10339 #else
10340 # ifdef DL_GLOBAL
10341 # define LT_DLGLOBAL DL_GLOBAL
10342 # else
10343 # define LT_DLGLOBAL 0
10344 # endif
10345 #endif
10346
10347 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10348 find out it does not work in some platform. */
10349 #ifndef LT_DLLAZY_OR_NOW
10350 # ifdef RTLD_LAZY
10351 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10352 # else
10353 # ifdef DL_LAZY
10354 # define LT_DLLAZY_OR_NOW DL_LAZY
10355 # else
10356 # ifdef RTLD_NOW
10357 # define LT_DLLAZY_OR_NOW RTLD_NOW
10358 # else
10359 # ifdef DL_NOW
10360 # define LT_DLLAZY_OR_NOW DL_NOW
10361 # else
10362 # define LT_DLLAZY_OR_NOW 0
10363 # endif
10364 # endif
10365 # endif
10366 # endif
10367 #endif
10368
10369 #ifdef __cplusplus
10370 extern "C" void exit (int);
10371 #endif
10372
10373 void fnord() { int i=42;}
10374 int main ()
10375 {
10376 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10377 int status = $lt_dlunknown;
10378
10379 if (self)
10380 {
10381 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10382 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10383 /* dlclose (self); */
10384 }
10385 else
10386 puts (dlerror ());
10387
10388 exit (status);
10389 }
10390 EOF
10391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10392 (eval $ac_link) 2>&5
10393 ac_status=$?
10394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10396 (./conftest; exit; ) >&5 2>/dev/null
10397 lt_status=$?
10398 case x$lt_status in
10399 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10400 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10401 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10402 esac
10403 else :
10404 # compilation failed
10405 lt_cv_dlopen_self=no
10406 fi
10407 fi
10408 rm -fr conftest*
10409
10410
10411 fi
10412 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10413 $as_echo "$lt_cv_dlopen_self" >&6; }
10414
10415 if test "x$lt_cv_dlopen_self" = xyes; then
10416 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10417 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10418 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10419 if test "${lt_cv_dlopen_self_static+set}" = set; then
10420 $as_echo_n "(cached) " >&6
10421 else
10422 if test "$cross_compiling" = yes; then :
10423 lt_cv_dlopen_self_static=cross
10424 else
10425 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10426 lt_status=$lt_dlunknown
10427 cat > conftest.$ac_ext <<EOF
10428 #line 10428 "configure"
10429 #include "confdefs.h"
10430
10431 #if HAVE_DLFCN_H
10432 #include <dlfcn.h>
10433 #endif
10434
10435 #include <stdio.h>
10436
10437 #ifdef RTLD_GLOBAL
10438 # define LT_DLGLOBAL RTLD_GLOBAL
10439 #else
10440 # ifdef DL_GLOBAL
10441 # define LT_DLGLOBAL DL_GLOBAL
10442 # else
10443 # define LT_DLGLOBAL 0
10444 # endif
10445 #endif
10446
10447 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10448 find out it does not work in some platform. */
10449 #ifndef LT_DLLAZY_OR_NOW
10450 # ifdef RTLD_LAZY
10451 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10452 # else
10453 # ifdef DL_LAZY
10454 # define LT_DLLAZY_OR_NOW DL_LAZY
10455 # else
10456 # ifdef RTLD_NOW
10457 # define LT_DLLAZY_OR_NOW RTLD_NOW
10458 # else
10459 # ifdef DL_NOW
10460 # define LT_DLLAZY_OR_NOW DL_NOW
10461 # else
10462 # define LT_DLLAZY_OR_NOW 0
10463 # endif
10464 # endif
10465 # endif
10466 # endif
10467 #endif
10468
10469 #ifdef __cplusplus
10470 extern "C" void exit (int);
10471 #endif
10472
10473 void fnord() { int i=42;}
10474 int main ()
10475 {
10476 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10477 int status = $lt_dlunknown;
10478
10479 if (self)
10480 {
10481 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10482 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10483 /* dlclose (self); */
10484 }
10485 else
10486 puts (dlerror ());
10487
10488 exit (status);
10489 }
10490 EOF
10491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10492 (eval $ac_link) 2>&5
10493 ac_status=$?
10494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10496 (./conftest; exit; ) >&5 2>/dev/null
10497 lt_status=$?
10498 case x$lt_status in
10499 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10500 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10501 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10502 esac
10503 else :
10504 # compilation failed
10505 lt_cv_dlopen_self_static=no
10506 fi
10507 fi
10508 rm -fr conftest*
10509
10510
10511 fi
10512 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10513 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10514 fi
10515
10516 CPPFLAGS="$save_CPPFLAGS"
10517 LDFLAGS="$save_LDFLAGS"
10518 LIBS="$save_LIBS"
10519 ;;
10520 esac
10521
10522 case $lt_cv_dlopen_self in
10523 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10524 *) enable_dlopen_self=unknown ;;
10525 esac
10526
10527 case $lt_cv_dlopen_self_static in
10528 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10529 *) enable_dlopen_self_static=unknown ;;
10530 esac
10531 fi
10532
10533
10534 # Report which library types will actually be built
10535 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10536 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10537 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10538 $as_echo "$can_build_shared" >&6; }
10539
10540 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10541 $as_echo_n "checking whether to build shared libraries... " >&6; }
10542 test "$can_build_shared" = "no" && enable_shared=no
10543
10544 # On AIX, shared libraries and static libraries use the same namespace, and
10545 # are all built from PIC.
10546 case $host_os in
10547 aix3*)
10548 test "$enable_shared" = yes && enable_static=no
10549 if test -n "$RANLIB"; then
10550 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10551 postinstall_cmds='$RANLIB $lib'
10552 fi
10553 ;;
10554
10555 aix[4-9]*)
10556 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10557 test "$enable_shared" = yes && enable_static=no
10558 fi
10559 ;;
10560 esac
10561 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10562 $as_echo "$enable_shared" >&6; }
10563
10564 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10565 $as_echo_n "checking whether to build static libraries... " >&6; }
10566 # Make sure either enable_shared or enable_static is yes.
10567 test "$enable_shared" = yes || enable_static=yes
10568 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10569 $as_echo "$enable_static" >&6; }
10570
10571 # The else clause should only fire when bootstrapping the
10572 # libtool distribution, otherwise you forgot to ship ltmain.sh
10573 # with your package, and you will get complaints that there are
10574 # no rules to generate ltmain.sh.
10575 if test -f "$ltmain"; then
10576 # See if we are running on zsh, and set the options which allow our commands through
10577 # without removal of \ escapes.
10578 if test -n "${ZSH_VERSION+set}" ; then
10579 setopt NO_GLOB_SUBST
10580 fi
10581 # Now quote all the things that may contain metacharacters while being
10582 # careful not to overquote the AC_SUBSTed values. We take copies of the
10583 # variables and quote the copies for generation of the libtool script.
10584 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10585 SED SHELL STRIP \
10586 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10587 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10588 deplibs_check_method reload_flag reload_cmds need_locks \
10589 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10590 lt_cv_sys_global_symbol_to_c_name_address \
10591 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10592 old_postinstall_cmds old_postuninstall_cmds \
10593 compiler \
10594 CC \
10595 LD \
10596 lt_prog_compiler_wl \
10597 lt_prog_compiler_pic \
10598 lt_prog_compiler_static \
10599 lt_prog_compiler_no_builtin_flag \
10600 export_dynamic_flag_spec \
10601 thread_safe_flag_spec \
10602 whole_archive_flag_spec \
10603 enable_shared_with_static_runtimes \
10604 old_archive_cmds \
10605 old_archive_from_new_cmds \
10606 predep_objects \
10607 postdep_objects \
10608 predeps \
10609 postdeps \
10610 compiler_lib_search_path \
10611 compiler_lib_search_dirs \
10612 archive_cmds \
10613 archive_expsym_cmds \
10614 postinstall_cmds \
10615 postuninstall_cmds \
10616 old_archive_from_expsyms_cmds \
10617 allow_undefined_flag \
10618 no_undefined_flag \
10619 export_symbols_cmds \
10620 hardcode_libdir_flag_spec \
10621 hardcode_libdir_flag_spec_ld \
10622 hardcode_libdir_separator \
10623 hardcode_automatic \
10624 module_cmds \
10625 module_expsym_cmds \
10626 lt_cv_prog_compiler_c_o \
10627 fix_srcfile_path \
10628 exclude_expsyms \
10629 include_expsyms; do
10630
10631 case $var in
10632 old_archive_cmds | \
10633 old_archive_from_new_cmds | \
10634 archive_cmds | \
10635 archive_expsym_cmds | \
10636 module_cmds | \
10637 module_expsym_cmds | \
10638 old_archive_from_expsyms_cmds | \
10639 export_symbols_cmds | \
10640 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10641 postinstall_cmds | postuninstall_cmds | \
10642 old_postinstall_cmds | old_postuninstall_cmds | \
10643 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10644 # Double-quote double-evaled strings.
10645 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10646 ;;
10647 *)
10648 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10649 ;;
10650 esac
10651 done
10652
10653 case $lt_echo in
10654 *'\$0 --fallback-echo"')
10655 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10656 ;;
10657 esac
10658
10659 cfgfile="${ofile}T"
10660 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10661 $rm -f "$cfgfile"
10662 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10663 $as_echo "$as_me: creating $ofile" >&6;}
10664
10665 cat <<__EOF__ >> "$cfgfile"
10666 #! $SHELL
10667
10668 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10669 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10670 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10671 #
10672 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10673 # Free Software Foundation, Inc.
10674 #
10675 # This file is part of GNU Libtool:
10676 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10677 #
10678 # This program is free software; you can redistribute it and/or modify
10679 # it under the terms of the GNU General Public License as published by
10680 # the Free Software Foundation; either version 2 of the License, or
10681 # (at your option) any later version.
10682 #
10683 # This program is distributed in the hope that it will be useful, but
10684 # WITHOUT ANY WARRANTY; without even the implied warranty of
10685 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10686 # General Public License for more details.
10687 #
10688 # You should have received a copy of the GNU General Public License
10689 # along with this program; if not, write to the Free Software
10690 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10691 #
10692 # As a special exception to the GNU General Public License, if you
10693 # distribute this file as part of a program that contains a
10694 # configuration script generated by Autoconf, you may include it under
10695 # the same distribution terms that you use for the rest of that program.
10696
10697 # A sed program that does not truncate output.
10698 SED=$lt_SED
10699
10700 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10701 Xsed="$SED -e 1s/^X//"
10702
10703 # The HP-UX ksh and POSIX shell print the target directory to stdout
10704 # if CDPATH is set.
10705 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10706
10707 # The names of the tagged configurations supported by this script.
10708 available_tags=
10709
10710 # ### BEGIN LIBTOOL CONFIG
10711
10712 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10713
10714 # Shell to use when invoking shell scripts.
10715 SHELL=$lt_SHELL
10716
10717 # Whether or not to build shared libraries.
10718 build_libtool_libs=$enable_shared
10719
10720 # Whether or not to build static libraries.
10721 build_old_libs=$enable_static
10722
10723 # Whether or not to add -lc for building shared libraries.
10724 build_libtool_need_lc=$archive_cmds_need_lc
10725
10726 # Whether or not to disallow shared libs when runtime libs are static
10727 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10728
10729 # Whether or not to optimize for fast installation.
10730 fast_install=$enable_fast_install
10731
10732 # The host system.
10733 host_alias=$host_alias
10734 host=$host
10735 host_os=$host_os
10736
10737 # The build system.
10738 build_alias=$build_alias
10739 build=$build
10740 build_os=$build_os
10741
10742 # An echo program that does not interpret backslashes.
10743 echo=$lt_echo
10744
10745 # The archiver.
10746 AR=$lt_AR
10747 AR_FLAGS=$lt_AR_FLAGS
10748
10749 # A C compiler.
10750 LTCC=$lt_LTCC
10751
10752 # LTCC compiler flags.
10753 LTCFLAGS=$lt_LTCFLAGS
10754
10755 # A language-specific compiler.
10756 CC=$lt_compiler
10757
10758 # Is the compiler the GNU C compiler?
10759 with_gcc=$GCC
10760
10761 # An ERE matcher.
10762 EGREP=$lt_EGREP
10763
10764 # The linker used to build libraries.
10765 LD=$lt_LD
10766
10767 # Whether we need hard or soft links.
10768 LN_S=$lt_LN_S
10769
10770 # A BSD-compatible nm program.
10771 NM=$lt_NM
10772
10773 # A symbol stripping program
10774 STRIP=$lt_STRIP
10775
10776 # Used to examine libraries when file_magic_cmd begins "file"
10777 MAGIC_CMD=$MAGIC_CMD
10778
10779 # Used on cygwin: DLL creation program.
10780 DLLTOOL="$DLLTOOL"
10781
10782 # Used on cygwin: object dumper.
10783 OBJDUMP="$OBJDUMP"
10784
10785 # Used on cygwin: assembler.
10786 AS="$AS"
10787
10788 # The name of the directory that contains temporary libtool files.
10789 objdir=$objdir
10790
10791 # How to create reloadable object files.
10792 reload_flag=$lt_reload_flag
10793 reload_cmds=$lt_reload_cmds
10794
10795 # How to pass a linker flag through the compiler.
10796 wl=$lt_lt_prog_compiler_wl
10797
10798 # Object file suffix (normally "o").
10799 objext="$ac_objext"
10800
10801 # Old archive suffix (normally "a").
10802 libext="$libext"
10803
10804 # Shared library suffix (normally ".so").
10805 shrext_cmds='$shrext_cmds'
10806
10807 # Executable file suffix (normally "").
10808 exeext="$exeext"
10809
10810 # Additional compiler flags for building library objects.
10811 pic_flag=$lt_lt_prog_compiler_pic
10812 pic_mode=$pic_mode
10813
10814 # What is the maximum length of a command?
10815 max_cmd_len=$lt_cv_sys_max_cmd_len
10816
10817 # Does compiler simultaneously support -c and -o options?
10818 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10819
10820 # Must we lock files when doing compilation?
10821 need_locks=$lt_need_locks
10822
10823 # Do we need the lib prefix for modules?
10824 need_lib_prefix=$need_lib_prefix
10825
10826 # Do we need a version for libraries?
10827 need_version=$need_version
10828
10829 # Whether dlopen is supported.
10830 dlopen_support=$enable_dlopen
10831
10832 # Whether dlopen of programs is supported.
10833 dlopen_self=$enable_dlopen_self
10834
10835 # Whether dlopen of statically linked programs is supported.
10836 dlopen_self_static=$enable_dlopen_self_static
10837
10838 # Compiler flag to prevent dynamic linking.
10839 link_static_flag=$lt_lt_prog_compiler_static
10840
10841 # Compiler flag to turn off builtin functions.
10842 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10843
10844 # Compiler flag to allow reflexive dlopens.
10845 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10846
10847 # Compiler flag to generate shared objects directly from archives.
10848 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10849
10850 # Compiler flag to generate thread-safe objects.
10851 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10852
10853 # Library versioning type.
10854 version_type=$version_type
10855
10856 # Format of library name prefix.
10857 libname_spec=$lt_libname_spec
10858
10859 # List of archive names. First name is the real one, the rest are links.
10860 # The last name is the one that the linker finds with -lNAME.
10861 library_names_spec=$lt_library_names_spec
10862
10863 # The coded name of the library, if different from the real name.
10864 soname_spec=$lt_soname_spec
10865
10866 # Commands used to build and install an old-style archive.
10867 RANLIB=$lt_RANLIB
10868 old_archive_cmds=$lt_old_archive_cmds
10869 old_postinstall_cmds=$lt_old_postinstall_cmds
10870 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10871
10872 # Create an old-style archive from a shared archive.
10873 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10874
10875 # Create a temporary old-style archive to link instead of a shared archive.
10876 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10877
10878 # Commands used to build and install a shared archive.
10879 archive_cmds=$lt_archive_cmds
10880 archive_expsym_cmds=$lt_archive_expsym_cmds
10881 postinstall_cmds=$lt_postinstall_cmds
10882 postuninstall_cmds=$lt_postuninstall_cmds
10883
10884 # Commands used to build a loadable module (assumed same as above if empty)
10885 module_cmds=$lt_module_cmds
10886 module_expsym_cmds=$lt_module_expsym_cmds
10887
10888 # Commands to strip libraries.
10889 old_striplib=$lt_old_striplib
10890 striplib=$lt_striplib
10891
10892 # Dependencies to place before the objects being linked to create a
10893 # shared library.
10894 predep_objects=$lt_predep_objects
10895
10896 # Dependencies to place after the objects being linked to create a
10897 # shared library.
10898 postdep_objects=$lt_postdep_objects
10899
10900 # Dependencies to place before the objects being linked to create a
10901 # shared library.
10902 predeps=$lt_predeps
10903
10904 # Dependencies to place after the objects being linked to create a
10905 # shared library.
10906 postdeps=$lt_postdeps
10907
10908 # The directories searched by this compiler when creating a shared
10909 # library
10910 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10911
10912 # The library search path used internally by the compiler when linking
10913 # a shared library.
10914 compiler_lib_search_path=$lt_compiler_lib_search_path
10915
10916 # Method to check whether dependent libraries are shared objects.
10917 deplibs_check_method=$lt_deplibs_check_method
10918
10919 # Command to use when deplibs_check_method == file_magic.
10920 file_magic_cmd=$lt_file_magic_cmd
10921
10922 # Flag that allows shared libraries with undefined symbols to be built.
10923 allow_undefined_flag=$lt_allow_undefined_flag
10924
10925 # Flag that forces no undefined symbols.
10926 no_undefined_flag=$lt_no_undefined_flag
10927
10928 # Commands used to finish a libtool library installation in a directory.
10929 finish_cmds=$lt_finish_cmds
10930
10931 # Same as above, but a single script fragment to be evaled but not shown.
10932 finish_eval=$lt_finish_eval
10933
10934 # Take the output of nm and produce a listing of raw symbols and C names.
10935 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10936
10937 # Transform the output of nm in a proper C declaration
10938 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10939
10940 # Transform the output of nm in a C name address pair
10941 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10942
10943 # This is the shared library runtime path variable.
10944 runpath_var=$runpath_var
10945
10946 # This is the shared library path variable.
10947 shlibpath_var=$shlibpath_var
10948
10949 # Is shlibpath searched before the hard-coded library search path?
10950 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10951
10952 # How to hardcode a shared library path into an executable.
10953 hardcode_action=$hardcode_action
10954
10955 # Whether we should hardcode library paths into libraries.
10956 hardcode_into_libs=$hardcode_into_libs
10957
10958 # Flag to hardcode \$libdir into a binary during linking.
10959 # This must work even if \$libdir does not exist.
10960 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10961
10962 # If ld is used when linking, flag to hardcode \$libdir into
10963 # a binary during linking. This must work even if \$libdir does
10964 # not exist.
10965 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10966
10967 # Whether we need a single -rpath flag with a separated argument.
10968 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10969
10970 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10971 # resulting binary.
10972 hardcode_direct=$hardcode_direct
10973
10974 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10975 # resulting binary.
10976 hardcode_minus_L=$hardcode_minus_L
10977
10978 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10979 # the resulting binary.
10980 hardcode_shlibpath_var=$hardcode_shlibpath_var
10981
10982 # Set to yes if building a shared library automatically hardcodes DIR into the library
10983 # and all subsequent libraries and executables linked against it.
10984 hardcode_automatic=$hardcode_automatic
10985
10986 # Variables whose values should be saved in libtool wrapper scripts and
10987 # restored at relink time.
10988 variables_saved_for_relink="$variables_saved_for_relink"
10989
10990 # Whether libtool must link a program against all its dependency libraries.
10991 link_all_deplibs=$link_all_deplibs
10992
10993 # Compile-time system search path for libraries
10994 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10995
10996 # Run-time system search path for libraries
10997 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10998
10999 # Fix the shell variable \$srcfile for the compiler.
11000 fix_srcfile_path=$lt_fix_srcfile_path
11001
11002 # Set to yes if exported symbols are required.
11003 always_export_symbols=$always_export_symbols
11004
11005 # The commands to list exported symbols.
11006 export_symbols_cmds=$lt_export_symbols_cmds
11007
11008 # The commands to extract the exported symbol list from a shared archive.
11009 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11010
11011 # Symbols that should not be listed in the preloaded symbols.
11012 exclude_expsyms=$lt_exclude_expsyms
11013
11014 # Symbols that must always be exported.
11015 include_expsyms=$lt_include_expsyms
11016
11017 # ### END LIBTOOL CONFIG
11018
11019 __EOF__
11020
11021
11022 case $host_os in
11023 aix3*)
11024 cat <<\EOF >> "$cfgfile"
11025
11026 # AIX sometimes has problems with the GCC collect2 program. For some
11027 # reason, if we set the COLLECT_NAMES environment variable, the problems
11028 # vanish in a puff of smoke.
11029 if test "X${COLLECT_NAMES+set}" != Xset; then
11030 COLLECT_NAMES=
11031 export COLLECT_NAMES
11032 fi
11033 EOF
11034 ;;
11035 esac
11036
11037 # We use sed instead of cat because bash on DJGPP gets confused if
11038 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11039 # text mode, it properly converts lines to CR/LF. This bash problem
11040 # is reportedly fixed, but why not run on old versions too?
11041 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11042
11043 mv -f "$cfgfile" "$ofile" || \
11044 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11045 chmod +x "$ofile"
11046
11047 else
11048 # If there is no Makefile yet, we rely on a make rule to execute
11049 # `config.status --recheck' to rerun these tests and create the
11050 # libtool script then.
11051 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11052 if test -f "$ltmain_in"; then
11053 test -f Makefile && make "$ltmain"
11054 fi
11055 fi
11056
11057
11058 ac_ext=c
11059 ac_cpp='$CPP $CPPFLAGS'
11060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11063
11064 CC="$lt_save_CC"
11065
11066
11067 # Check whether --with-tags was given.
11068 if test "${with_tags+set}" = set; then
11069 withval=$with_tags; tagnames="$withval"
11070 fi
11071
11072
11073 if test -f "$ltmain" && test -n "$tagnames"; then
11074 if test ! -f "${ofile}"; then
11075 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11076 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11077 fi
11078
11079 if test -z "$LTCC"; then
11080 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11081 if test -z "$LTCC"; then
11082 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11083 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11084 else
11085 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11086 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11087 fi
11088 fi
11089 if test -z "$LTCFLAGS"; then
11090 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11091 fi
11092
11093 # Extract list of available tagged configurations in $ofile.
11094 # Note that this assumes the entire list is on one line.
11095 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11096
11097 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11098 for tagname in $tagnames; do
11099 IFS="$lt_save_ifs"
11100 # Check whether tagname contains only valid characters
11101 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11102 "") ;;
11103 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11104 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11105 { (exit 1); exit 1; }; }
11106 ;;
11107 esac
11108
11109 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11110 then
11111 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11112 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11113 { (exit 1); exit 1; }; }
11114 fi
11115
11116 # Update the list of available tags.
11117 if test -n "$tagname"; then
11118 echo appending configuration tag \"$tagname\" to $ofile
11119
11120 case $tagname in
11121 CXX)
11122 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11123 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11124 (test "X$CXX" != "Xg++"))) ; then
11125 ac_ext=cpp
11126 ac_cpp='$CXXCPP $CPPFLAGS'
11127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11130
11131
11132
11133
11134 archive_cmds_need_lc_CXX=no
11135 allow_undefined_flag_CXX=
11136 always_export_symbols_CXX=no
11137 archive_expsym_cmds_CXX=
11138 export_dynamic_flag_spec_CXX=
11139 hardcode_direct_CXX=no
11140 hardcode_libdir_flag_spec_CXX=
11141 hardcode_libdir_flag_spec_ld_CXX=
11142 hardcode_libdir_separator_CXX=
11143 hardcode_minus_L_CXX=no
11144 hardcode_shlibpath_var_CXX=unsupported
11145 hardcode_automatic_CXX=no
11146 module_cmds_CXX=
11147 module_expsym_cmds_CXX=
11148 link_all_deplibs_CXX=unknown
11149 old_archive_cmds_CXX=$old_archive_cmds
11150 no_undefined_flag_CXX=
11151 whole_archive_flag_spec_CXX=
11152 enable_shared_with_static_runtimes_CXX=no
11153
11154 # Dependencies to place before and after the object being linked:
11155 predep_objects_CXX=
11156 postdep_objects_CXX=
11157 predeps_CXX=
11158 postdeps_CXX=
11159 compiler_lib_search_path_CXX=
11160 compiler_lib_search_dirs_CXX=
11161
11162 # Source file extension for C++ test sources.
11163 ac_ext=cpp
11164
11165 # Object file extension for compiled C++ test sources.
11166 objext=o
11167 objext_CXX=$objext
11168
11169 # Code to be used in simple compile tests
11170 lt_simple_compile_test_code="int some_variable = 0;"
11171
11172 # Code to be used in simple link tests
11173 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11174
11175 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11176
11177 # If no C compiler was specified, use CC.
11178 LTCC=${LTCC-"$CC"}
11179
11180 # If no C compiler flags were specified, use CFLAGS.
11181 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11182
11183 # Allow CC to be a program name with arguments.
11184 compiler=$CC
11185
11186
11187 # save warnings/boilerplate of simple test code
11188 ac_outfile=conftest.$ac_objext
11189 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11190 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11191 _lt_compiler_boilerplate=`cat conftest.err`
11192 $rm conftest*
11193
11194 ac_outfile=conftest.$ac_objext
11195 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11196 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11197 _lt_linker_boilerplate=`cat conftest.err`
11198 $rm -r conftest*
11199
11200
11201 # Allow CC to be a program name with arguments.
11202 lt_save_CC=$CC
11203 lt_save_LD=$LD
11204 lt_save_GCC=$GCC
11205 GCC=$GXX
11206 lt_save_with_gnu_ld=$with_gnu_ld
11207 lt_save_path_LD=$lt_cv_path_LD
11208 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11209 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11210 else
11211 $as_unset lt_cv_prog_gnu_ld
11212 fi
11213 if test -n "${lt_cv_path_LDCXX+set}"; then
11214 lt_cv_path_LD=$lt_cv_path_LDCXX
11215 else
11216 $as_unset lt_cv_path_LD
11217 fi
11218 test -z "${LDCXX+set}" || LD=$LDCXX
11219 CC=${CXX-"c++"}
11220 compiler=$CC
11221 compiler_CXX=$CC
11222 for cc_temp in $compiler""; do
11223 case $cc_temp in
11224 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11225 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11226 \-*) ;;
11227 *) break;;
11228 esac
11229 done
11230 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11231
11232
11233 # We don't want -fno-exception wen compiling C++ code, so set the
11234 # no_builtin_flag separately
11235 if test "$GXX" = yes; then
11236 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11237 else
11238 lt_prog_compiler_no_builtin_flag_CXX=
11239 fi
11240
11241 if test "$GXX" = yes; then
11242 # Set up default GNU C++ configuration
11243
11244
11245 # Check whether --with-gnu-ld was given.
11246 if test "${with_gnu_ld+set}" = set; then
11247 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11248 else
11249 with_gnu_ld=no
11250 fi
11251
11252 ac_prog=ld
11253 if test "$GCC" = yes; then
11254 # Check if gcc -print-prog-name=ld gives a path.
11255 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11256 $as_echo_n "checking for ld used by $CC... " >&6; }
11257 case $host in
11258 *-*-mingw*)
11259 # gcc leaves a trailing carriage return which upsets mingw
11260 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11261 *)
11262 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11263 esac
11264 case $ac_prog in
11265 # Accept absolute paths.
11266 [\\/]* | ?:[\\/]*)
11267 re_direlt='/[^/][^/]*/\.\./'
11268 # Canonicalize the pathname of ld
11269 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11270 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11271 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11272 done
11273 test -z "$LD" && LD="$ac_prog"
11274 ;;
11275 "")
11276 # If it fails, then pretend we aren't using GCC.
11277 ac_prog=ld
11278 ;;
11279 *)
11280 # If it is relative, then search for the first ld in PATH.
11281 with_gnu_ld=unknown
11282 ;;
11283 esac
11284 elif test "$with_gnu_ld" = yes; then
11285 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11286 $as_echo_n "checking for GNU ld... " >&6; }
11287 else
11288 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11289 $as_echo_n "checking for non-GNU ld... " >&6; }
11290 fi
11291 if test "${lt_cv_path_LD+set}" = set; then
11292 $as_echo_n "(cached) " >&6
11293 else
11294 if test -z "$LD"; then
11295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11296 for ac_dir in $PATH; do
11297 IFS="$lt_save_ifs"
11298 test -z "$ac_dir" && ac_dir=.
11299 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11300 lt_cv_path_LD="$ac_dir/$ac_prog"
11301 # Check to see if the program is GNU ld. I'd rather use --version,
11302 # but apparently some variants of GNU ld only accept -v.
11303 # Break only if it was the GNU/non-GNU ld that we prefer.
11304 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11305 *GNU* | *'with BFD'*)
11306 test "$with_gnu_ld" != no && break
11307 ;;
11308 *)
11309 test "$with_gnu_ld" != yes && break
11310 ;;
11311 esac
11312 fi
11313 done
11314 IFS="$lt_save_ifs"
11315 else
11316 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11317 fi
11318 fi
11319
11320 LD="$lt_cv_path_LD"
11321 if test -n "$LD"; then
11322 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11323 $as_echo "$LD" >&6; }
11324 else
11325 { $as_echo "$as_me:$LINENO: result: no" >&5
11326 $as_echo "no" >&6; }
11327 fi
11328 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11329 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11330 { (exit 1); exit 1; }; }
11331 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11332 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11333 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11334 $as_echo_n "(cached) " >&6
11335 else
11336 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11337 case `$LD -v 2>&1 </dev/null` in
11338 *GNU* | *'with BFD'*)
11339 lt_cv_prog_gnu_ld=yes
11340 ;;
11341 *)
11342 lt_cv_prog_gnu_ld=no
11343 ;;
11344 esac
11345 fi
11346 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11347 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11348 with_gnu_ld=$lt_cv_prog_gnu_ld
11349
11350
11351
11352 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11353 # archiving commands below assume that GNU ld is being used.
11354 if test "$with_gnu_ld" = yes; then
11355 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11356 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'
11357
11358 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11359 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11360
11361 # If archive_cmds runs LD, not CC, wlarc should be empty
11362 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11363 # investigate it a little bit more. (MM)
11364 wlarc='${wl}'
11365
11366 # ancient GNU ld didn't support --whole-archive et. al.
11367 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11368 grep 'no-whole-archive' > /dev/null; then
11369 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11370 else
11371 whole_archive_flag_spec_CXX=
11372 fi
11373 else
11374 with_gnu_ld=no
11375 wlarc=
11376
11377 # A generic and very simple default shared library creation
11378 # command for GNU C++ for the case where it uses the native
11379 # linker, instead of GNU ld. If possible, this setting should
11380 # overridden to take advantage of the native linker features on
11381 # the platform it is being used on.
11382 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11383 fi
11384
11385 # Commands to make compiler produce verbose output that lists
11386 # what "hidden" libraries, object files and flags are used when
11387 # linking a shared library.
11388 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11389
11390 else
11391 GXX=no
11392 with_gnu_ld=no
11393 wlarc=
11394 fi
11395
11396 # PORTME: fill in a description of your system's C++ link characteristics
11397 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11398 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11399 ld_shlibs_CXX=yes
11400 case $host_os in
11401 aix3*)
11402 # FIXME: insert proper C++ library support
11403 ld_shlibs_CXX=no
11404 ;;
11405 aix[4-9]*)
11406 if test "$host_cpu" = ia64; then
11407 # On IA64, the linker does run time linking by default, so we don't
11408 # have to do anything special.
11409 aix_use_runtimelinking=no
11410 exp_sym_flag='-Bexport'
11411 no_entry_flag=""
11412 else
11413 aix_use_runtimelinking=no
11414
11415 # Test if we are trying to use run time linking or normal
11416 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11417 # need to do runtime linking.
11418 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11419 for ld_flag in $LDFLAGS; do
11420 case $ld_flag in
11421 *-brtl*)
11422 aix_use_runtimelinking=yes
11423 break
11424 ;;
11425 esac
11426 done
11427 ;;
11428 esac
11429
11430 exp_sym_flag='-bexport'
11431 no_entry_flag='-bnoentry'
11432 fi
11433
11434 # When large executables or shared objects are built, AIX ld can
11435 # have problems creating the table of contents. If linking a library
11436 # or program results in "error TOC overflow" add -mminimal-toc to
11437 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11438 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11439
11440 archive_cmds_CXX=''
11441 hardcode_direct_CXX=yes
11442 hardcode_libdir_separator_CXX=':'
11443 link_all_deplibs_CXX=yes
11444
11445 if test "$GXX" = yes; then
11446 case $host_os in aix4.[012]|aix4.[012].*)
11447 # We only want to do this on AIX 4.2 and lower, the check
11448 # below for broken collect2 doesn't work under 4.3+
11449 collect2name=`${CC} -print-prog-name=collect2`
11450 if test -f "$collect2name" && \
11451 strings "$collect2name" | grep resolve_lib_name >/dev/null
11452 then
11453 # We have reworked collect2
11454 :
11455 else
11456 # We have old collect2
11457 hardcode_direct_CXX=unsupported
11458 # It fails to find uninstalled libraries when the uninstalled
11459 # path is not listed in the libpath. Setting hardcode_minus_L
11460 # to unsupported forces relinking
11461 hardcode_minus_L_CXX=yes
11462 hardcode_libdir_flag_spec_CXX='-L$libdir'
11463 hardcode_libdir_separator_CXX=
11464 fi
11465 ;;
11466 esac
11467 shared_flag='-shared'
11468 if test "$aix_use_runtimelinking" = yes; then
11469 shared_flag="$shared_flag "'${wl}-G'
11470 fi
11471 else
11472 # not using gcc
11473 if test "$host_cpu" = ia64; then
11474 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11475 # chokes on -Wl,-G. The following line is correct:
11476 shared_flag='-G'
11477 else
11478 if test "$aix_use_runtimelinking" = yes; then
11479 shared_flag='${wl}-G'
11480 else
11481 shared_flag='${wl}-bM:SRE'
11482 fi
11483 fi
11484 fi
11485
11486 # It seems that -bexpall does not export symbols beginning with
11487 # underscore (_), so it is better to generate a list of symbols to export.
11488 always_export_symbols_CXX=yes
11489 if test "$aix_use_runtimelinking" = yes; then
11490 # Warning - without using the other runtime loading flags (-brtl),
11491 # -berok will link without error, but may produce a broken library.
11492 allow_undefined_flag_CXX='-berok'
11493 # Determine the default libpath from the value encoded in an empty executable.
11494 cat >conftest.$ac_ext <<_ACEOF
11495 /* confdefs.h. */
11496 _ACEOF
11497 cat confdefs.h >>conftest.$ac_ext
11498 cat >>conftest.$ac_ext <<_ACEOF
11499 /* end confdefs.h. */
11500
11501 int
11502 main ()
11503 {
11504
11505 ;
11506 return 0;
11507 }
11508 _ACEOF
11509 rm -f conftest.$ac_objext conftest$ac_exeext
11510 if { (ac_try="$ac_link"
11511 case "(($ac_try" in
11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513 *) ac_try_echo=$ac_try;;
11514 esac
11515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11516 $as_echo "$ac_try_echo") >&5
11517 (eval "$ac_link") 2>conftest.er1
11518 ac_status=$?
11519 grep -v '^ *+' conftest.er1 >conftest.err
11520 rm -f conftest.er1
11521 cat conftest.err >&5
11522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } && {
11524 test -z "$ac_cxx_werror_flag" ||
11525 test ! -s conftest.err
11526 } && test -s conftest$ac_exeext && {
11527 test "$cross_compiling" = yes ||
11528 $as_test_x conftest$ac_exeext
11529 }; then
11530
11531 lt_aix_libpath_sed='
11532 /Import File Strings/,/^$/ {
11533 /^0/ {
11534 s/^0 *\(.*\)$/\1/
11535 p
11536 }
11537 }'
11538 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11539 # Check for a 64-bit object if we didn't find anything.
11540 if test -z "$aix_libpath"; then
11541 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11542 fi
11543 else
11544 $as_echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11546
11547
11548 fi
11549
11550 rm -rf conftest.dSYM
11551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11552 conftest$ac_exeext conftest.$ac_ext
11553 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11554
11555 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11556
11557 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"
11558 else
11559 if test "$host_cpu" = ia64; then
11560 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11561 allow_undefined_flag_CXX="-z nodefs"
11562 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"
11563 else
11564 # Determine the default libpath from the value encoded in an empty executable.
11565 cat >conftest.$ac_ext <<_ACEOF
11566 /* confdefs.h. */
11567 _ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11571
11572 int
11573 main ()
11574 {
11575
11576 ;
11577 return 0;
11578 }
11579 _ACEOF
11580 rm -f conftest.$ac_objext conftest$ac_exeext
11581 if { (ac_try="$ac_link"
11582 case "(($ac_try" in
11583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584 *) ac_try_echo=$ac_try;;
11585 esac
11586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11587 $as_echo "$ac_try_echo") >&5
11588 (eval "$ac_link") 2>conftest.er1
11589 ac_status=$?
11590 grep -v '^ *+' conftest.er1 >conftest.err
11591 rm -f conftest.er1
11592 cat conftest.err >&5
11593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); } && {
11595 test -z "$ac_cxx_werror_flag" ||
11596 test ! -s conftest.err
11597 } && test -s conftest$ac_exeext && {
11598 test "$cross_compiling" = yes ||
11599 $as_test_x conftest$ac_exeext
11600 }; then
11601
11602 lt_aix_libpath_sed='
11603 /Import File Strings/,/^$/ {
11604 /^0/ {
11605 s/^0 *\(.*\)$/\1/
11606 p
11607 }
11608 }'
11609 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11610 # Check for a 64-bit object if we didn't find anything.
11611 if test -z "$aix_libpath"; then
11612 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11613 fi
11614 else
11615 $as_echo "$as_me: failed program was:" >&5
11616 sed 's/^/| /' conftest.$ac_ext >&5
11617
11618
11619 fi
11620
11621 rm -rf conftest.dSYM
11622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11623 conftest$ac_exeext conftest.$ac_ext
11624 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11625
11626 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11627 # Warning - without using the other run time loading flags,
11628 # -berok will link without error, but may produce a broken library.
11629 no_undefined_flag_CXX=' ${wl}-bernotok'
11630 allow_undefined_flag_CXX=' ${wl}-berok'
11631 # Exported symbols can be pulled into shared objects from archives
11632 whole_archive_flag_spec_CXX='$convenience'
11633 archive_cmds_need_lc_CXX=yes
11634 # This is similar to how AIX traditionally builds its shared libraries.
11635 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'
11636 fi
11637 fi
11638 ;;
11639
11640 beos*)
11641 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11642 allow_undefined_flag_CXX=unsupported
11643 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11644 # support --undefined. This deserves some investigation. FIXME
11645 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11646 else
11647 ld_shlibs_CXX=no
11648 fi
11649 ;;
11650
11651 chorus*)
11652 case $cc_basename in
11653 *)
11654 # FIXME: insert proper C++ library support
11655 ld_shlibs_CXX=no
11656 ;;
11657 esac
11658 ;;
11659
11660 cygwin* | mingw* | pw32*)
11661 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11662 # as there is no search path for DLLs.
11663 hardcode_libdir_flag_spec_CXX='-L$libdir'
11664 allow_undefined_flag_CXX=unsupported
11665 always_export_symbols_CXX=no
11666 enable_shared_with_static_runtimes_CXX=yes
11667
11668 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11669 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'
11670 # If the export-symbols file already is a .def file (1st line
11671 # is EXPORTS), use it as is; otherwise, prepend...
11672 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11673 cp $export_symbols $output_objdir/$soname.def;
11674 else
11675 echo EXPORTS > $output_objdir/$soname.def;
11676 cat $export_symbols >> $output_objdir/$soname.def;
11677 fi~
11678 $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'
11679 else
11680 ld_shlibs_CXX=no
11681 fi
11682 ;;
11683 darwin* | rhapsody*)
11684 archive_cmds_need_lc_CXX=no
11685 hardcode_direct_CXX=no
11686 hardcode_automatic_CXX=yes
11687 hardcode_shlibpath_var_CXX=unsupported
11688 whole_archive_flag_spec_CXX=''
11689 link_all_deplibs_CXX=yes
11690 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11691 if test "$GXX" = yes ; then
11692 output_verbose_link_cmd='echo'
11693 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}"
11694 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11695 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}"
11696 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}"
11697 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11698 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}"
11699 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}"
11700 fi
11701 else
11702 case $cc_basename in
11703 xlc*)
11704 output_verbose_link_cmd='echo'
11705 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'
11706 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11707 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11708 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}'
11709 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}'
11710 ;;
11711 *)
11712 ld_shlibs_CXX=no
11713 ;;
11714 esac
11715 fi
11716 ;;
11717
11718 dgux*)
11719 case $cc_basename in
11720 ec++*)
11721 # FIXME: insert proper C++ library support
11722 ld_shlibs_CXX=no
11723 ;;
11724 ghcx*)
11725 # Green Hills C++ Compiler
11726 # FIXME: insert proper C++ library support
11727 ld_shlibs_CXX=no
11728 ;;
11729 *)
11730 # FIXME: insert proper C++ library support
11731 ld_shlibs_CXX=no
11732 ;;
11733 esac
11734 ;;
11735 freebsd[12]*)
11736 # C++ shared libraries reported to be fairly broken before switch to ELF
11737 ld_shlibs_CXX=no
11738 ;;
11739 freebsd-elf*)
11740 archive_cmds_need_lc_CXX=no
11741 ;;
11742 freebsd* | dragonfly*)
11743 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11744 # conventions
11745 ld_shlibs_CXX=yes
11746 ;;
11747 gnu*)
11748 ;;
11749 hpux9*)
11750 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11751 hardcode_libdir_separator_CXX=:
11752 export_dynamic_flag_spec_CXX='${wl}-E'
11753 hardcode_direct_CXX=yes
11754 hardcode_minus_L_CXX=yes # Not in the search PATH,
11755 # but as the default
11756 # location of the library.
11757
11758 case $cc_basename in
11759 CC*)
11760 # FIXME: insert proper C++ library support
11761 ld_shlibs_CXX=no
11762 ;;
11763 aCC*)
11764 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'
11765 # Commands to make compiler produce verbose output that lists
11766 # what "hidden" libraries, object files and flags are used when
11767 # linking a shared library.
11768 #
11769 # There doesn't appear to be a way to prevent this compiler from
11770 # explicitly linking system object files so we need to strip them
11771 # from the output so that they don't get included in the library
11772 # dependencies.
11773 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'
11774 ;;
11775 *)
11776 if test "$GXX" = yes; then
11777 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'
11778 else
11779 # FIXME: insert proper C++ library support
11780 ld_shlibs_CXX=no
11781 fi
11782 ;;
11783 esac
11784 ;;
11785 hpux10*|hpux11*)
11786 if test $with_gnu_ld = no; then
11787 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11788 hardcode_libdir_separator_CXX=:
11789
11790 case $host_cpu in
11791 hppa*64*|ia64*) ;;
11792 *)
11793 export_dynamic_flag_spec_CXX='${wl}-E'
11794 ;;
11795 esac
11796 fi
11797 case $host_cpu in
11798 hppa*64*|ia64*)
11799 hardcode_direct_CXX=no
11800 hardcode_shlibpath_var_CXX=no
11801 ;;
11802 *)
11803 hardcode_direct_CXX=yes
11804 hardcode_minus_L_CXX=yes # Not in the search PATH,
11805 # but as the default
11806 # location of the library.
11807 ;;
11808 esac
11809
11810 case $cc_basename in
11811 CC*)
11812 # FIXME: insert proper C++ library support
11813 ld_shlibs_CXX=no
11814 ;;
11815 aCC*)
11816 case $host_cpu in
11817 hppa*64*)
11818 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11819 ;;
11820 ia64*)
11821 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11822 ;;
11823 *)
11824 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11825 ;;
11826 esac
11827 # Commands to make compiler produce verbose output that lists
11828 # what "hidden" libraries, object files and flags are used when
11829 # linking a shared library.
11830 #
11831 # There doesn't appear to be a way to prevent this compiler from
11832 # explicitly linking system object files so we need to strip them
11833 # from the output so that they don't get included in the library
11834 # dependencies.
11835 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'
11836 ;;
11837 *)
11838 if test "$GXX" = yes; then
11839 if test $with_gnu_ld = no; then
11840 case $host_cpu in
11841 hppa*64*)
11842 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11843 ;;
11844 ia64*)
11845 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11846 ;;
11847 *)
11848 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'
11849 ;;
11850 esac
11851 fi
11852 else
11853 # FIXME: insert proper C++ library support
11854 ld_shlibs_CXX=no
11855 fi
11856 ;;
11857 esac
11858 ;;
11859 interix[3-9]*)
11860 hardcode_direct_CXX=no
11861 hardcode_shlibpath_var_CXX=no
11862 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11863 export_dynamic_flag_spec_CXX='${wl}-E'
11864 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11865 # Instead, shared libraries are loaded at an image base (0x10000000 by
11866 # default) and relocated if they conflict, which is a slow very memory
11867 # consuming and fragmenting process. To avoid this, we pick a random,
11868 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11869 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11870 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'
11871 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'
11872 ;;
11873 irix5* | irix6*)
11874 case $cc_basename in
11875 CC*)
11876 # SGI C++
11877 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'
11878
11879 # Archives containing C++ object files must be created using
11880 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11881 # necessary to make sure instantiated templates are included
11882 # in the archive.
11883 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11884 ;;
11885 *)
11886 if test "$GXX" = yes; then
11887 if test "$with_gnu_ld" = no; then
11888 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'
11889 else
11890 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'
11891 fi
11892 fi
11893 link_all_deplibs_CXX=yes
11894 ;;
11895 esac
11896 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11897 hardcode_libdir_separator_CXX=:
11898 ;;
11899 linux* | k*bsd*-gnu)
11900 case $cc_basename in
11901 KCC*)
11902 # Kuck and Associates, Inc. (KAI) C++ Compiler
11903
11904 # KCC will only create a shared library if the output file
11905 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11906 # to its proper name (with version) after linking.
11907 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'
11908 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'
11909 # Commands to make compiler produce verbose output that lists
11910 # what "hidden" libraries, object files and flags are used when
11911 # linking a shared library.
11912 #
11913 # There doesn't appear to be a way to prevent this compiler from
11914 # explicitly linking system object files so we need to strip them
11915 # from the output so that they don't get included in the library
11916 # dependencies.
11917 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'
11918
11919 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11920 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11921
11922 # Archives containing C++ object files must be created using
11923 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11924 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11925 ;;
11926 icpc*)
11927 # Intel C++
11928 with_gnu_ld=yes
11929 # version 8.0 and above of icpc choke on multiply defined symbols
11930 # if we add $predep_objects and $postdep_objects, however 7.1 and
11931 # earlier do not add the objects themselves.
11932 case `$CC -V 2>&1` in
11933 *"Version 7."*)
11934 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11935 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'
11936 ;;
11937 *) # Version 8.0 or newer
11938 tmp_idyn=
11939 case $host_cpu in
11940 ia64*) tmp_idyn=' -i_dynamic';;
11941 esac
11942 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11943 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'
11944 ;;
11945 esac
11946 archive_cmds_need_lc_CXX=no
11947 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11948 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11949 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11950 ;;
11951 pgCC* | pgcpp*)
11952 # Portland Group C++ compiler
11953 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11954 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'
11955
11956 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11957 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11958 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'
11959 ;;
11960 cxx*)
11961 # Compaq C++
11962 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11963 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'
11964
11965 runpath_var=LD_RUN_PATH
11966 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11967 hardcode_libdir_separator_CXX=:
11968
11969 # Commands to make compiler produce verbose output that lists
11970 # what "hidden" libraries, object files and flags are used when
11971 # linking a shared library.
11972 #
11973 # There doesn't appear to be a way to prevent this compiler from
11974 # explicitly linking system object files so we need to strip them
11975 # from the output so that they don't get included in the library
11976 # dependencies.
11977 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'
11978 ;;
11979 *)
11980 case `$CC -V 2>&1 | sed 5q` in
11981 *Sun\ C*)
11982 # Sun C++ 5.9
11983 no_undefined_flag_CXX=' -zdefs'
11984 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11985 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'
11986 hardcode_libdir_flag_spec_CXX='-R$libdir'
11987 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'
11988
11989 # Not sure whether something based on
11990 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11991 # would be better.
11992 output_verbose_link_cmd='echo'
11993
11994 # Archives containing C++ object files must be created using
11995 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11996 # necessary to make sure instantiated templates are included
11997 # in the archive.
11998 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11999 ;;
12000 esac
12001 ;;
12002 esac
12003 ;;
12004 lynxos*)
12005 # FIXME: insert proper C++ library support
12006 ld_shlibs_CXX=no
12007 ;;
12008 m88k*)
12009 # FIXME: insert proper C++ library support
12010 ld_shlibs_CXX=no
12011 ;;
12012 mvs*)
12013 case $cc_basename in
12014 cxx*)
12015 # FIXME: insert proper C++ library support
12016 ld_shlibs_CXX=no
12017 ;;
12018 *)
12019 # FIXME: insert proper C++ library support
12020 ld_shlibs_CXX=no
12021 ;;
12022 esac
12023 ;;
12024 netbsd*)
12025 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12026 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12027 wlarc=
12028 hardcode_libdir_flag_spec_CXX='-R$libdir'
12029 hardcode_direct_CXX=yes
12030 hardcode_shlibpath_var_CXX=no
12031 fi
12032 # Workaround some broken pre-1.5 toolchains
12033 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12034 ;;
12035 openbsd2*)
12036 # C++ shared libraries are fairly broken
12037 ld_shlibs_CXX=no
12038 ;;
12039 openbsd*)
12040 if test -f /usr/libexec/ld.so; then
12041 hardcode_direct_CXX=yes
12042 hardcode_shlibpath_var_CXX=no
12043 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12044 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12045 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12046 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12047 export_dynamic_flag_spec_CXX='${wl}-E'
12048 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12049 fi
12050 output_verbose_link_cmd='echo'
12051 else
12052 ld_shlibs_CXX=no
12053 fi
12054 ;;
12055 osf3*)
12056 case $cc_basename in
12057 KCC*)
12058 # Kuck and Associates, Inc. (KAI) C++ Compiler
12059
12060 # KCC will only create a shared library if the output file
12061 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12062 # to its proper name (with version) after linking.
12063 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'
12064
12065 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12066 hardcode_libdir_separator_CXX=:
12067
12068 # Archives containing C++ object files must be created using
12069 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12070 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12071
12072 ;;
12073 RCC*)
12074 # Rational C++ 2.4.1
12075 # FIXME: insert proper C++ library support
12076 ld_shlibs_CXX=no
12077 ;;
12078 cxx*)
12079 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12080 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'
12081
12082 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12083 hardcode_libdir_separator_CXX=:
12084
12085 # Commands to make compiler produce verbose output that lists
12086 # what "hidden" libraries, object files and flags are used when
12087 # linking a shared library.
12088 #
12089 # There doesn't appear to be a way to prevent this compiler from
12090 # explicitly linking system object files so we need to strip them
12091 # from the output so that they don't get included in the library
12092 # dependencies.
12093 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'
12094 ;;
12095 *)
12096 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12097 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12098 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'
12099
12100 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$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 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12107
12108 else
12109 # FIXME: insert proper C++ library support
12110 ld_shlibs_CXX=no
12111 fi
12112 ;;
12113 esac
12114 ;;
12115 osf4* | osf5*)
12116 case $cc_basename in
12117 KCC*)
12118 # Kuck and Associates, Inc. (KAI) C++ Compiler
12119
12120 # KCC will only create a shared library if the output file
12121 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12122 # to its proper name (with version) after linking.
12123 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'
12124
12125 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12126 hardcode_libdir_separator_CXX=:
12127
12128 # Archives containing C++ object files must be created using
12129 # the KAI C++ compiler.
12130 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12131 ;;
12132 RCC*)
12133 # Rational C++ 2.4.1
12134 # FIXME: insert proper C++ library support
12135 ld_shlibs_CXX=no
12136 ;;
12137 cxx*)
12138 allow_undefined_flag_CXX=' -expect_unresolved \*'
12139 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'
12140 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12141 echo "-hidden">> $lib.exp~
12142 $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~
12143 $rm $lib.exp'
12144
12145 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12146 hardcode_libdir_separator_CXX=:
12147
12148 # Commands to make compiler produce verbose output that lists
12149 # what "hidden" libraries, object files and flags are used when
12150 # linking a shared library.
12151 #
12152 # There doesn't appear to be a way to prevent this compiler from
12153 # explicitly linking system object files so we need to strip them
12154 # from the output so that they don't get included in the library
12155 # dependencies.
12156 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'
12157 ;;
12158 *)
12159 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12160 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12161 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'
12162
12163 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12164 hardcode_libdir_separator_CXX=:
12165
12166 # Commands to make compiler produce verbose output that lists
12167 # what "hidden" libraries, object files and flags are used when
12168 # linking a shared library.
12169 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12170
12171 else
12172 # FIXME: insert proper C++ library support
12173 ld_shlibs_CXX=no
12174 fi
12175 ;;
12176 esac
12177 ;;
12178 psos*)
12179 # FIXME: insert proper C++ library support
12180 ld_shlibs_CXX=no
12181 ;;
12182 sunos4*)
12183 case $cc_basename in
12184 CC*)
12185 # Sun C++ 4.x
12186 # FIXME: insert proper C++ library support
12187 ld_shlibs_CXX=no
12188 ;;
12189 lcc*)
12190 # Lucid
12191 # FIXME: insert proper C++ library support
12192 ld_shlibs_CXX=no
12193 ;;
12194 *)
12195 # FIXME: insert proper C++ library support
12196 ld_shlibs_CXX=no
12197 ;;
12198 esac
12199 ;;
12200 solaris*)
12201 case $cc_basename in
12202 CC*)
12203 # Sun C++ 4.2, 5.x and Centerline C++
12204 archive_cmds_need_lc_CXX=yes
12205 no_undefined_flag_CXX=' -zdefs'
12206 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12207 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12208 $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'
12209
12210 hardcode_libdir_flag_spec_CXX='-R$libdir'
12211 hardcode_shlibpath_var_CXX=no
12212 case $host_os in
12213 solaris2.[0-5] | solaris2.[0-5].*) ;;
12214 *)
12215 # The compiler driver will combine and reorder linker options,
12216 # but understands `-z linker_flag'.
12217 # Supported since Solaris 2.6 (maybe 2.5.1?)
12218 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12219 ;;
12220 esac
12221 link_all_deplibs_CXX=yes
12222
12223 output_verbose_link_cmd='echo'
12224
12225 # Archives containing C++ object files must be created using
12226 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12227 # necessary to make sure instantiated templates are included
12228 # in the archive.
12229 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12230 ;;
12231 gcx*)
12232 # Green Hills C++ Compiler
12233 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12234
12235 # The C++ compiler must be used to create the archive.
12236 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12237 ;;
12238 *)
12239 # GNU C++ compiler with Solaris linker
12240 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12241 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12242 if $CC --version | grep -v '^2\.7' > /dev/null; then
12243 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12244 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12245 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12246
12247 # Commands to make compiler produce verbose output that lists
12248 # what "hidden" libraries, object files and flags are used when
12249 # linking a shared library.
12250 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12251 else
12252 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12253 # platform.
12254 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12255 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12256 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12257
12258 # Commands to make compiler produce verbose output that lists
12259 # what "hidden" libraries, object files and flags are used when
12260 # linking a shared library.
12261 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12262 fi
12263
12264 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12265 case $host_os in
12266 solaris2.[0-5] | solaris2.[0-5].*) ;;
12267 *)
12268 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12269 ;;
12270 esac
12271 fi
12272 ;;
12273 esac
12274 ;;
12275 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12276 no_undefined_flag_CXX='${wl}-z,text'
12277 archive_cmds_need_lc_CXX=no
12278 hardcode_shlibpath_var_CXX=no
12279 runpath_var='LD_RUN_PATH'
12280
12281 case $cc_basename in
12282 CC*)
12283 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12284 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12285 ;;
12286 *)
12287 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12288 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12289 ;;
12290 esac
12291 ;;
12292 sysv5* | sco3.2v5* | sco5v6*)
12293 # Note: We can NOT use -z defs as we might desire, because we do not
12294 # link with -lc, and that would cause any symbols used from libc to
12295 # always be unresolved, which means just about no library would
12296 # ever link correctly. If we're not using GNU ld we use -z text
12297 # though, which does catch some bad symbols but isn't as heavy-handed
12298 # as -z defs.
12299 # For security reasons, it is highly recommended that you always
12300 # use absolute paths for naming shared libraries, and exclude the
12301 # DT_RUNPATH tag from executables and libraries. But doing so
12302 # requires that you compile everything twice, which is a pain.
12303 # So that behaviour is only enabled if SCOABSPATH is set to a
12304 # non-empty value in the environment. Most likely only useful for
12305 # creating official distributions of packages.
12306 # This is a hack until libtool officially supports absolute path
12307 # names for shared libraries.
12308 no_undefined_flag_CXX='${wl}-z,text'
12309 allow_undefined_flag_CXX='${wl}-z,nodefs'
12310 archive_cmds_need_lc_CXX=no
12311 hardcode_shlibpath_var_CXX=no
12312 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12313 hardcode_libdir_separator_CXX=':'
12314 link_all_deplibs_CXX=yes
12315 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12316 runpath_var='LD_RUN_PATH'
12317
12318 case $cc_basename in
12319 CC*)
12320 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12321 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12322 ;;
12323 *)
12324 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12325 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12326 ;;
12327 esac
12328 ;;
12329 tandem*)
12330 case $cc_basename in
12331 NCC*)
12332 # NonStop-UX NCC 3.20
12333 # FIXME: insert proper C++ library support
12334 ld_shlibs_CXX=no
12335 ;;
12336 *)
12337 # FIXME: insert proper C++ library support
12338 ld_shlibs_CXX=no
12339 ;;
12340 esac
12341 ;;
12342 vxworks*)
12343 # FIXME: insert proper C++ library support
12344 ld_shlibs_CXX=no
12345 ;;
12346 *)
12347 # FIXME: insert proper C++ library support
12348 ld_shlibs_CXX=no
12349 ;;
12350 esac
12351 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12352 $as_echo "$ld_shlibs_CXX" >&6; }
12353 test "$ld_shlibs_CXX" = no && can_build_shared=no
12354
12355 GCC_CXX="$GXX"
12356 LD_CXX="$LD"
12357
12358 cat > conftest.$ac_ext <<EOF
12359 class Foo
12360 {
12361 public:
12362 Foo (void) { a = 0; }
12363 private:
12364 int a;
12365 };
12366 EOF
12367
12368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12369 (eval $ac_compile) 2>&5
12370 ac_status=$?
12371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; then
12373 # Parse the compiler output and extract the necessary
12374 # objects, libraries and library flags.
12375
12376 # Sentinel used to keep track of whether or not we are before
12377 # the conftest object file.
12378 pre_test_object_deps_done=no
12379
12380 # The `*' in the case matches for architectures that use `case' in
12381 # $output_verbose_cmd can trigger glob expansion during the loop
12382 # eval without this substitution.
12383 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12384
12385 for p in `eval $output_verbose_link_cmd`; do
12386 case $p in
12387
12388 -L* | -R* | -l*)
12389 # Some compilers place space between "-{L,R}" and the path.
12390 # Remove the space.
12391 if test $p = "-L" \
12392 || test $p = "-R"; then
12393 prev=$p
12394 continue
12395 else
12396 prev=
12397 fi
12398
12399 if test "$pre_test_object_deps_done" = no; then
12400 case $p in
12401 -L* | -R*)
12402 # Internal compiler library paths should come after those
12403 # provided the user. The postdeps already come after the
12404 # user supplied libs so there is no need to process them.
12405 if test -z "$compiler_lib_search_path_CXX"; then
12406 compiler_lib_search_path_CXX="${prev}${p}"
12407 else
12408 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12409 fi
12410 ;;
12411 # The "-l" case would never come before the object being
12412 # linked, so don't bother handling this case.
12413 esac
12414 else
12415 if test -z "$postdeps_CXX"; then
12416 postdeps_CXX="${prev}${p}"
12417 else
12418 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12419 fi
12420 fi
12421 ;;
12422
12423 *.$objext)
12424 # This assumes that the test object file only shows up
12425 # once in the compiler output.
12426 if test "$p" = "conftest.$objext"; then
12427 pre_test_object_deps_done=yes
12428 continue
12429 fi
12430
12431 if test "$pre_test_object_deps_done" = no; then
12432 if test -z "$predep_objects_CXX"; then
12433 predep_objects_CXX="$p"
12434 else
12435 predep_objects_CXX="$predep_objects_CXX $p"
12436 fi
12437 else
12438 if test -z "$postdep_objects_CXX"; then
12439 postdep_objects_CXX="$p"
12440 else
12441 postdep_objects_CXX="$postdep_objects_CXX $p"
12442 fi
12443 fi
12444 ;;
12445
12446 *) ;; # Ignore the rest.
12447
12448 esac
12449 done
12450
12451 # Clean up.
12452 rm -f a.out a.exe
12453 else
12454 echo "libtool.m4: error: problem compiling CXX test program"
12455 fi
12456
12457 $rm -f confest.$objext
12458
12459 compiler_lib_search_dirs_CXX=
12460 if test -n "$compiler_lib_search_path_CXX"; then
12461 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12462 fi
12463
12464 # PORTME: override above test on systems where it is broken
12465 case $host_os in
12466 interix[3-9]*)
12467 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12468 # hack all around it, let's just trust "g++" to DTRT.
12469 predep_objects_CXX=
12470 postdep_objects_CXX=
12471 postdeps_CXX=
12472 ;;
12473
12474 linux*)
12475 case `$CC -V 2>&1 | sed 5q` in
12476 *Sun\ C*)
12477 # Sun C++ 5.9
12478 #
12479 # The more standards-conforming stlport4 library is
12480 # incompatible with the Cstd library. Avoid specifying
12481 # it if it's in CXXFLAGS. Ignore libCrun as
12482 # -library=stlport4 depends on it.
12483 case " $CXX $CXXFLAGS " in
12484 *" -library=stlport4 "*)
12485 solaris_use_stlport4=yes
12486 ;;
12487 esac
12488 if test "$solaris_use_stlport4" != yes; then
12489 postdeps_CXX='-library=Cstd -library=Crun'
12490 fi
12491 ;;
12492 esac
12493 ;;
12494
12495 solaris*)
12496 case $cc_basename in
12497 CC*)
12498 # The more standards-conforming stlport4 library is
12499 # incompatible with the Cstd library. Avoid specifying
12500 # it if it's in CXXFLAGS. Ignore libCrun as
12501 # -library=stlport4 depends on it.
12502 case " $CXX $CXXFLAGS " in
12503 *" -library=stlport4 "*)
12504 solaris_use_stlport4=yes
12505 ;;
12506 esac
12507
12508 # Adding this requires a known-good setup of shared libraries for
12509 # Sun compiler versions before 5.6, else PIC objects from an old
12510 # archive will be linked into the output, leading to subtle bugs.
12511 if test "$solaris_use_stlport4" != yes; then
12512 postdeps_CXX='-library=Cstd -library=Crun'
12513 fi
12514 ;;
12515 esac
12516 ;;
12517 esac
12518
12519 case " $postdeps_CXX " in
12520 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12521 esac
12522
12523 lt_prog_compiler_wl_CXX=
12524 lt_prog_compiler_pic_CXX=
12525 lt_prog_compiler_static_CXX=
12526
12527 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12528 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12529
12530 # C++ specific cases for pic, static, wl, etc.
12531 if test "$GXX" = yes; then
12532 lt_prog_compiler_wl_CXX='-Wl,'
12533 lt_prog_compiler_static_CXX='-static'
12534
12535 case $host_os in
12536 aix*)
12537 # All AIX code is PIC.
12538 if test "$host_cpu" = ia64; then
12539 # AIX 5 now supports IA64 processor
12540 lt_prog_compiler_static_CXX='-Bstatic'
12541 fi
12542 ;;
12543 amigaos*)
12544 # FIXME: we need at least 68020 code to build shared libraries, but
12545 # adding the `-m68020' flag to GCC prevents building anything better,
12546 # like `-m68040'.
12547 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12548 ;;
12549 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12550 # PIC is the default for these OSes.
12551 ;;
12552 mingw* | cygwin* | os2* | pw32*)
12553 # This hack is so that the source file can tell whether it is being
12554 # built for inclusion in a dll (and should export symbols for example).
12555 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12556 # (--disable-auto-import) libraries
12557 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12558 ;;
12559 darwin* | rhapsody*)
12560 # PIC is the default on this platform
12561 # Common symbols not allowed in MH_DYLIB files
12562 lt_prog_compiler_pic_CXX='-fno-common'
12563 ;;
12564 *djgpp*)
12565 # DJGPP does not support shared libraries at all
12566 lt_prog_compiler_pic_CXX=
12567 ;;
12568 interix[3-9]*)
12569 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12570 # Instead, we relocate shared libraries at runtime.
12571 ;;
12572 sysv4*MP*)
12573 if test -d /usr/nec; then
12574 lt_prog_compiler_pic_CXX=-Kconform_pic
12575 fi
12576 ;;
12577 hpux*)
12578 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12579 # not for PA HP-UX.
12580 case $host_cpu in
12581 hppa*64*|ia64*)
12582 ;;
12583 *)
12584 lt_prog_compiler_pic_CXX='-fPIC'
12585 ;;
12586 esac
12587 ;;
12588 *)
12589 lt_prog_compiler_pic_CXX='-fPIC'
12590 ;;
12591 esac
12592 else
12593 case $host_os in
12594 aix[4-9]*)
12595 # All AIX code is PIC.
12596 if test "$host_cpu" = ia64; then
12597 # AIX 5 now supports IA64 processor
12598 lt_prog_compiler_static_CXX='-Bstatic'
12599 else
12600 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12601 fi
12602 ;;
12603 chorus*)
12604 case $cc_basename in
12605 cxch68*)
12606 # Green Hills C++ Compiler
12607 # _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"
12608 ;;
12609 esac
12610 ;;
12611 darwin*)
12612 # PIC is the default on this platform
12613 # Common symbols not allowed in MH_DYLIB files
12614 case $cc_basename in
12615 xlc*)
12616 lt_prog_compiler_pic_CXX='-qnocommon'
12617 lt_prog_compiler_wl_CXX='-Wl,'
12618 ;;
12619 esac
12620 ;;
12621 dgux*)
12622 case $cc_basename in
12623 ec++*)
12624 lt_prog_compiler_pic_CXX='-KPIC'
12625 ;;
12626 ghcx*)
12627 # Green Hills C++ Compiler
12628 lt_prog_compiler_pic_CXX='-pic'
12629 ;;
12630 *)
12631 ;;
12632 esac
12633 ;;
12634 freebsd* | dragonfly*)
12635 # FreeBSD uses GNU C++
12636 ;;
12637 hpux9* | hpux10* | hpux11*)
12638 case $cc_basename in
12639 CC*)
12640 lt_prog_compiler_wl_CXX='-Wl,'
12641 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12642 if test "$host_cpu" != ia64; then
12643 lt_prog_compiler_pic_CXX='+Z'
12644 fi
12645 ;;
12646 aCC*)
12647 lt_prog_compiler_wl_CXX='-Wl,'
12648 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12649 case $host_cpu in
12650 hppa*64*|ia64*)
12651 # +Z the default
12652 ;;
12653 *)
12654 lt_prog_compiler_pic_CXX='+Z'
12655 ;;
12656 esac
12657 ;;
12658 *)
12659 ;;
12660 esac
12661 ;;
12662 interix*)
12663 # This is c89, which is MS Visual C++ (no shared libs)
12664 # Anyone wants to do a port?
12665 ;;
12666 irix5* | irix6* | nonstopux*)
12667 case $cc_basename in
12668 CC*)
12669 lt_prog_compiler_wl_CXX='-Wl,'
12670 lt_prog_compiler_static_CXX='-non_shared'
12671 # CC pic flag -KPIC is the default.
12672 ;;
12673 *)
12674 ;;
12675 esac
12676 ;;
12677 linux* | k*bsd*-gnu)
12678 case $cc_basename in
12679 KCC*)
12680 # KAI C++ Compiler
12681 lt_prog_compiler_wl_CXX='--backend -Wl,'
12682 lt_prog_compiler_pic_CXX='-fPIC'
12683 ;;
12684 icpc* | ecpc*)
12685 # Intel C++
12686 lt_prog_compiler_wl_CXX='-Wl,'
12687 lt_prog_compiler_pic_CXX='-KPIC'
12688 lt_prog_compiler_static_CXX='-static'
12689 ;;
12690 pgCC* | pgcpp*)
12691 # Portland Group C++ compiler.
12692 lt_prog_compiler_wl_CXX='-Wl,'
12693 lt_prog_compiler_pic_CXX='-fpic'
12694 lt_prog_compiler_static_CXX='-Bstatic'
12695 ;;
12696 cxx*)
12697 # Compaq C++
12698 # Make sure the PIC flag is empty. It appears that all Alpha
12699 # Linux and Compaq Tru64 Unix objects are PIC.
12700 lt_prog_compiler_pic_CXX=
12701 lt_prog_compiler_static_CXX='-non_shared'
12702 ;;
12703 *)
12704 case `$CC -V 2>&1 | sed 5q` in
12705 *Sun\ C*)
12706 # Sun C++ 5.9
12707 lt_prog_compiler_pic_CXX='-KPIC'
12708 lt_prog_compiler_static_CXX='-Bstatic'
12709 lt_prog_compiler_wl_CXX='-Qoption ld '
12710 ;;
12711 esac
12712 ;;
12713 esac
12714 ;;
12715 lynxos*)
12716 ;;
12717 m88k*)
12718 ;;
12719 mvs*)
12720 case $cc_basename in
12721 cxx*)
12722 lt_prog_compiler_pic_CXX='-W c,exportall'
12723 ;;
12724 *)
12725 ;;
12726 esac
12727 ;;
12728 netbsd*)
12729 ;;
12730 osf3* | osf4* | osf5*)
12731 case $cc_basename in
12732 KCC*)
12733 lt_prog_compiler_wl_CXX='--backend -Wl,'
12734 ;;
12735 RCC*)
12736 # Rational C++ 2.4.1
12737 lt_prog_compiler_pic_CXX='-pic'
12738 ;;
12739 cxx*)
12740 # Digital/Compaq C++
12741 lt_prog_compiler_wl_CXX='-Wl,'
12742 # Make sure the PIC flag is empty. It appears that all Alpha
12743 # Linux and Compaq Tru64 Unix objects are PIC.
12744 lt_prog_compiler_pic_CXX=
12745 lt_prog_compiler_static_CXX='-non_shared'
12746 ;;
12747 *)
12748 ;;
12749 esac
12750 ;;
12751 psos*)
12752 ;;
12753 solaris*)
12754 case $cc_basename in
12755 CC*)
12756 # Sun C++ 4.2, 5.x and Centerline C++
12757 lt_prog_compiler_pic_CXX='-KPIC'
12758 lt_prog_compiler_static_CXX='-Bstatic'
12759 lt_prog_compiler_wl_CXX='-Qoption ld '
12760 ;;
12761 gcx*)
12762 # Green Hills C++ Compiler
12763 lt_prog_compiler_pic_CXX='-PIC'
12764 ;;
12765 *)
12766 ;;
12767 esac
12768 ;;
12769 sunos4*)
12770 case $cc_basename in
12771 CC*)
12772 # Sun C++ 4.x
12773 lt_prog_compiler_pic_CXX='-pic'
12774 lt_prog_compiler_static_CXX='-Bstatic'
12775 ;;
12776 lcc*)
12777 # Lucid
12778 lt_prog_compiler_pic_CXX='-pic'
12779 ;;
12780 *)
12781 ;;
12782 esac
12783 ;;
12784 tandem*)
12785 case $cc_basename in
12786 NCC*)
12787 # NonStop-UX NCC 3.20
12788 lt_prog_compiler_pic_CXX='-KPIC'
12789 ;;
12790 *)
12791 ;;
12792 esac
12793 ;;
12794 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12795 case $cc_basename in
12796 CC*)
12797 lt_prog_compiler_wl_CXX='-Wl,'
12798 lt_prog_compiler_pic_CXX='-KPIC'
12799 lt_prog_compiler_static_CXX='-Bstatic'
12800 ;;
12801 esac
12802 ;;
12803 vxworks*)
12804 ;;
12805 *)
12806 lt_prog_compiler_can_build_shared_CXX=no
12807 ;;
12808 esac
12809 fi
12810
12811 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12812 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12813
12814 #
12815 # Check to make sure the PIC flag actually works.
12816 #
12817 if test -n "$lt_prog_compiler_pic_CXX"; then
12818
12819 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12820 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12821 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12822 $as_echo_n "(cached) " >&6
12823 else
12824 lt_cv_prog_compiler_pic_works_CXX=no
12825 ac_outfile=conftest.$ac_objext
12826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12827 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12828 # Insert the option either (1) after the last *FLAGS variable, or
12829 # (2) before a word containing "conftest.", or (3) at the end.
12830 # Note that $ac_compile itself does not contain backslashes and begins
12831 # with a dollar sign (not a hyphen), so the echo should work correctly.
12832 # The option is referenced via a variable to avoid confusing sed.
12833 lt_compile=`echo "$ac_compile" | $SED \
12834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12836 -e 's:$: $lt_compiler_flag:'`
12837 (eval echo "\"\$as_me:12837: $lt_compile\"" >&5)
12838 (eval "$lt_compile" 2>conftest.err)
12839 ac_status=$?
12840 cat conftest.err >&5
12841 echo "$as_me:12841: \$? = $ac_status" >&5
12842 if (exit $ac_status) && test -s "$ac_outfile"; then
12843 # The compiler can only warn and ignore the option if not recognized
12844 # So say no if there are warnings other than the usual output.
12845 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12847 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12848 lt_cv_prog_compiler_pic_works_CXX=yes
12849 fi
12850 fi
12851 $rm conftest*
12852
12853 fi
12854 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12855 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12856
12857 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12858 case $lt_prog_compiler_pic_CXX in
12859 "" | " "*) ;;
12860 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12861 esac
12862 else
12863 lt_prog_compiler_pic_CXX=
12864 lt_prog_compiler_can_build_shared_CXX=no
12865 fi
12866
12867 fi
12868 case $host_os in
12869 # For platforms which do not support PIC, -DPIC is meaningless:
12870 *djgpp*)
12871 lt_prog_compiler_pic_CXX=
12872 ;;
12873 *)
12874 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12875 ;;
12876 esac
12877
12878 #
12879 # Check to make sure the static flag actually works.
12880 #
12881 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12882 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12883 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12884 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12885 $as_echo_n "(cached) " >&6
12886 else
12887 lt_cv_prog_compiler_static_works_CXX=no
12888 save_LDFLAGS="$LDFLAGS"
12889 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12890 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12891 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12892 # The linker can only warn and ignore the option if not recognized
12893 # So say no if there are warnings
12894 if test -s conftest.err; then
12895 # Append any errors to the config.log.
12896 cat conftest.err 1>&5
12897 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12899 if diff conftest.exp conftest.er2 >/dev/null; then
12900 lt_cv_prog_compiler_static_works_CXX=yes
12901 fi
12902 else
12903 lt_cv_prog_compiler_static_works_CXX=yes
12904 fi
12905 fi
12906 $rm -r conftest*
12907 LDFLAGS="$save_LDFLAGS"
12908
12909 fi
12910 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12911 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12912
12913 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12914 :
12915 else
12916 lt_prog_compiler_static_CXX=
12917 fi
12918
12919
12920 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12921 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12922 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12923 $as_echo_n "(cached) " >&6
12924 else
12925 lt_cv_prog_compiler_c_o_CXX=no
12926 $rm -r conftest 2>/dev/null
12927 mkdir conftest
12928 cd conftest
12929 mkdir out
12930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12931
12932 lt_compiler_flag="-o out/conftest2.$ac_objext"
12933 # Insert the option either (1) after the last *FLAGS variable, or
12934 # (2) before a word containing "conftest.", or (3) at the end.
12935 # Note that $ac_compile itself does not contain backslashes and begins
12936 # with a dollar sign (not a hyphen), so the echo should work correctly.
12937 lt_compile=`echo "$ac_compile" | $SED \
12938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12940 -e 's:$: $lt_compiler_flag:'`
12941 (eval echo "\"\$as_me:12941: $lt_compile\"" >&5)
12942 (eval "$lt_compile" 2>out/conftest.err)
12943 ac_status=$?
12944 cat out/conftest.err >&5
12945 echo "$as_me:12945: \$? = $ac_status" >&5
12946 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12947 then
12948 # The compiler can only warn and ignore the option if not recognized
12949 # So say no if there are warnings
12950 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12951 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12952 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12953 lt_cv_prog_compiler_c_o_CXX=yes
12954 fi
12955 fi
12956 chmod u+w . 2>&5
12957 $rm conftest*
12958 # SGI C++ compiler will create directory out/ii_files/ for
12959 # template instantiation
12960 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12961 $rm out/* && rmdir out
12962 cd ..
12963 rmdir conftest
12964 $rm conftest*
12965
12966 fi
12967 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12968 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12969
12970
12971 hard_links="nottested"
12972 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12973 # do not overwrite the value of need_locks provided by the user
12974 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12975 $as_echo_n "checking if we can lock with hard links... " >&6; }
12976 hard_links=yes
12977 $rm conftest*
12978 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12979 touch conftest.a
12980 ln conftest.a conftest.b 2>&5 || hard_links=no
12981 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12982 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
12983 $as_echo "$hard_links" >&6; }
12984 if test "$hard_links" = no; then
12985 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12986 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12987 need_locks=warn
12988 fi
12989 else
12990 need_locks=no
12991 fi
12992
12993 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12994 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12995
12996 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12997 case $host_os in
12998 aix[4-9]*)
12999 # If we're using GNU nm, then we don't want the "-C" option.
13000 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13001 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13002 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'
13003 else
13004 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'
13005 fi
13006 ;;
13007 pw32*)
13008 export_symbols_cmds_CXX="$ltdll_cmds"
13009 ;;
13010 cygwin* | mingw*)
13011 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'
13012 ;;
13013 *)
13014 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13015 ;;
13016 esac
13017 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13018
13019 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13020 $as_echo "$ld_shlibs_CXX" >&6; }
13021 test "$ld_shlibs_CXX" = no && can_build_shared=no
13022
13023 #
13024 # Do we need to explicitly link libc?
13025 #
13026 case "x$archive_cmds_need_lc_CXX" in
13027 x|xyes)
13028 # Assume -lc should be added
13029 archive_cmds_need_lc_CXX=yes
13030
13031 if test "$enable_shared" = yes && test "$GCC" = yes; then
13032 case $archive_cmds_CXX in
13033 *'~'*)
13034 # FIXME: we may have to deal with multi-command sequences.
13035 ;;
13036 '$CC '*)
13037 # Test whether the compiler implicitly links with -lc since on some
13038 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13039 # to ld, don't add -lc before -lgcc.
13040 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13041 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13042 $rm conftest*
13043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13044
13045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13046 (eval $ac_compile) 2>&5
13047 ac_status=$?
13048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); } 2>conftest.err; then
13050 soname=conftest
13051 lib=conftest
13052 libobjs=conftest.$ac_objext
13053 deplibs=
13054 wl=$lt_prog_compiler_wl_CXX
13055 pic_flag=$lt_prog_compiler_pic_CXX
13056 compiler_flags=-v
13057 linker_flags=-v
13058 verstring=
13059 output_objdir=.
13060 libname=conftest
13061 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13062 allow_undefined_flag_CXX=
13063 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13064 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13065 ac_status=$?
13066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }
13068 then
13069 archive_cmds_need_lc_CXX=no
13070 else
13071 archive_cmds_need_lc_CXX=yes
13072 fi
13073 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13074 else
13075 cat conftest.err 1>&5
13076 fi
13077 $rm conftest*
13078 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13079 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13080 ;;
13081 esac
13082 fi
13083 ;;
13084 esac
13085
13086 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13087 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13088 library_names_spec=
13089 libname_spec='lib$name'
13090 soname_spec=
13091 shrext_cmds=".so"
13092 postinstall_cmds=
13093 postuninstall_cmds=
13094 finish_cmds=
13095 finish_eval=
13096 shlibpath_var=
13097 shlibpath_overrides_runpath=unknown
13098 version_type=none
13099 dynamic_linker="$host_os ld.so"
13100 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13101
13102 need_lib_prefix=unknown
13103 hardcode_into_libs=no
13104
13105 # when you set need_version to no, make sure it does not cause -set_version
13106 # flags to be left without arguments
13107 need_version=unknown
13108
13109 case $host_os in
13110 aix3*)
13111 version_type=linux
13112 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13113 shlibpath_var=LIBPATH
13114
13115 # AIX 3 has no versioning support, so we append a major version to the name.
13116 soname_spec='${libname}${release}${shared_ext}$major'
13117 ;;
13118
13119 aix[4-9]*)
13120 version_type=linux
13121 need_lib_prefix=no
13122 need_version=no
13123 hardcode_into_libs=yes
13124 if test "$host_cpu" = ia64; then
13125 # AIX 5 supports IA64
13126 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13127 shlibpath_var=LD_LIBRARY_PATH
13128 else
13129 # With GCC up to 2.95.x, collect2 would create an import file
13130 # for dependence libraries. The import file would start with
13131 # the line `#! .'. This would cause the generated library to
13132 # depend on `.', always an invalid library. This was fixed in
13133 # development snapshots of GCC prior to 3.0.
13134 case $host_os in
13135 aix4 | aix4.[01] | aix4.[01].*)
13136 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13137 echo ' yes '
13138 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13139 :
13140 else
13141 can_build_shared=no
13142 fi
13143 ;;
13144 esac
13145 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13146 # soname into executable. Probably we can add versioning support to
13147 # collect2, so additional links can be useful in future.
13148 if test "$aix_use_runtimelinking" = yes; then
13149 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13150 # instead of lib<name>.a to let people know that these are not
13151 # typical AIX shared libraries.
13152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13153 else
13154 # We preserve .a as extension for shared libraries through AIX4.2
13155 # and later when we are not doing run time linking.
13156 library_names_spec='${libname}${release}.a $libname.a'
13157 soname_spec='${libname}${release}${shared_ext}$major'
13158 fi
13159 shlibpath_var=LIBPATH
13160 fi
13161 ;;
13162
13163 amigaos*)
13164 library_names_spec='$libname.ixlibrary $libname.a'
13165 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13166 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'
13167 ;;
13168
13169 beos*)
13170 library_names_spec='${libname}${shared_ext}'
13171 dynamic_linker="$host_os ld.so"
13172 shlibpath_var=LIBRARY_PATH
13173 ;;
13174
13175 bsdi[45]*)
13176 version_type=linux
13177 need_version=no
13178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13179 soname_spec='${libname}${release}${shared_ext}$major'
13180 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13181 shlibpath_var=LD_LIBRARY_PATH
13182 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13183 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13184 # the default ld.so.conf also contains /usr/contrib/lib and
13185 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13186 # libtool to hard-code these into programs
13187 ;;
13188
13189 cygwin* | mingw* | pw32*)
13190 version_type=windows
13191 shrext_cmds=".dll"
13192 need_version=no
13193 need_lib_prefix=no
13194
13195 case $GCC,$host_os in
13196 yes,cygwin* | yes,mingw* | yes,pw32*)
13197 library_names_spec='$libname.dll.a'
13198 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13199 postinstall_cmds='base_file=`basename \${file}`~
13200 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13201 dldir=$destdir/`dirname \$dlpath`~
13202 test -d \$dldir || mkdir -p \$dldir~
13203 $install_prog $dir/$dlname \$dldir/$dlname~
13204 chmod a+x \$dldir/$dlname'
13205 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13206 dlpath=$dir/\$dldll~
13207 $rm \$dlpath'
13208 shlibpath_overrides_runpath=yes
13209
13210 case $host_os in
13211 cygwin*)
13212 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13213 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13214 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13215 ;;
13216 mingw*)
13217 # MinGW DLLs use traditional 'lib' prefix
13218 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13219 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13220 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13221 # It is most probably a Windows format PATH printed by
13222 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13223 # path with ; separators, and with drive letters. We can handle the
13224 # drive letters (cygwin fileutils understands them), so leave them,
13225 # especially as we might pass files found there to a mingw objdump,
13226 # which wouldn't understand a cygwinified path. Ahh.
13227 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13228 else
13229 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13230 fi
13231 ;;
13232 pw32*)
13233 # pw32 DLLs use 'pw' prefix rather than 'lib'
13234 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13235 ;;
13236 esac
13237 ;;
13238
13239 *)
13240 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13241 ;;
13242 esac
13243 dynamic_linker='Win32 ld.exe'
13244 # FIXME: first we should search . and the directory the executable is in
13245 shlibpath_var=PATH
13246 ;;
13247
13248 darwin* | rhapsody*)
13249 dynamic_linker="$host_os dyld"
13250 version_type=darwin
13251 need_lib_prefix=no
13252 need_version=no
13253 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13254 soname_spec='${libname}${release}${major}$shared_ext'
13255 shlibpath_overrides_runpath=yes
13256 shlibpath_var=DYLD_LIBRARY_PATH
13257 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13258
13259 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13260 ;;
13261
13262 dgux*)
13263 version_type=linux
13264 need_lib_prefix=no
13265 need_version=no
13266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13267 soname_spec='${libname}${release}${shared_ext}$major'
13268 shlibpath_var=LD_LIBRARY_PATH
13269 ;;
13270
13271 freebsd1*)
13272 dynamic_linker=no
13273 ;;
13274
13275 freebsd* | dragonfly*)
13276 # DragonFly does not have aout. When/if they implement a new
13277 # versioning mechanism, adjust this.
13278 if test -x /usr/bin/objformat; then
13279 objformat=`/usr/bin/objformat`
13280 else
13281 case $host_os in
13282 freebsd[123]*) objformat=aout ;;
13283 *) objformat=elf ;;
13284 esac
13285 fi
13286 version_type=freebsd-$objformat
13287 case $version_type in
13288 freebsd-elf*)
13289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13290 need_version=no
13291 need_lib_prefix=no
13292 ;;
13293 freebsd-*)
13294 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13295 need_version=yes
13296 ;;
13297 esac
13298 shlibpath_var=LD_LIBRARY_PATH
13299 case $host_os in
13300 freebsd2*)
13301 shlibpath_overrides_runpath=yes
13302 ;;
13303 freebsd3.[01]* | freebsdelf3.[01]*)
13304 shlibpath_overrides_runpath=yes
13305 hardcode_into_libs=yes
13306 ;;
13307 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13308 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13309 shlibpath_overrides_runpath=no
13310 hardcode_into_libs=yes
13311 ;;
13312 *) # from 4.6 on, and DragonFly
13313 shlibpath_overrides_runpath=yes
13314 hardcode_into_libs=yes
13315 ;;
13316 esac
13317 ;;
13318
13319 gnu*)
13320 version_type=linux
13321 need_lib_prefix=no
13322 need_version=no
13323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13324 soname_spec='${libname}${release}${shared_ext}$major'
13325 shlibpath_var=LD_LIBRARY_PATH
13326 hardcode_into_libs=yes
13327 ;;
13328
13329 hpux9* | hpux10* | hpux11*)
13330 # Give a soname corresponding to the major version so that dld.sl refuses to
13331 # link against other versions.
13332 version_type=sunos
13333 need_lib_prefix=no
13334 need_version=no
13335 case $host_cpu in
13336 ia64*)
13337 shrext_cmds='.so'
13338 hardcode_into_libs=yes
13339 dynamic_linker="$host_os dld.so"
13340 shlibpath_var=LD_LIBRARY_PATH
13341 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13343 soname_spec='${libname}${release}${shared_ext}$major'
13344 if test "X$HPUX_IA64_MODE" = X32; then
13345 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13346 else
13347 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13348 fi
13349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13350 ;;
13351 hppa*64*)
13352 shrext_cmds='.sl'
13353 hardcode_into_libs=yes
13354 dynamic_linker="$host_os dld.sl"
13355 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13358 soname_spec='${libname}${release}${shared_ext}$major'
13359 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13361 ;;
13362 *)
13363 shrext_cmds='.sl'
13364 dynamic_linker="$host_os dld.sl"
13365 shlibpath_var=SHLIB_PATH
13366 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13368 soname_spec='${libname}${release}${shared_ext}$major'
13369 ;;
13370 esac
13371 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13372 postinstall_cmds='chmod 555 $lib'
13373 ;;
13374
13375 interix[3-9]*)
13376 version_type=linux
13377 need_lib_prefix=no
13378 need_version=no
13379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13380 soname_spec='${libname}${release}${shared_ext}$major'
13381 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13382 shlibpath_var=LD_LIBRARY_PATH
13383 shlibpath_overrides_runpath=no
13384 hardcode_into_libs=yes
13385 ;;
13386
13387 irix5* | irix6* | nonstopux*)
13388 case $host_os in
13389 nonstopux*) version_type=nonstopux ;;
13390 *)
13391 if test "$lt_cv_prog_gnu_ld" = yes; then
13392 version_type=linux
13393 else
13394 version_type=irix
13395 fi ;;
13396 esac
13397 need_lib_prefix=no
13398 need_version=no
13399 soname_spec='${libname}${release}${shared_ext}$major'
13400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13401 case $host_os in
13402 irix5* | nonstopux*)
13403 libsuff= shlibsuff=
13404 ;;
13405 *)
13406 case $LD in # libtool.m4 will add one of these switches to LD
13407 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13408 libsuff= shlibsuff= libmagic=32-bit;;
13409 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13410 libsuff=32 shlibsuff=N32 libmagic=N32;;
13411 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13412 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13413 *) libsuff= shlibsuff= libmagic=never-match;;
13414 esac
13415 ;;
13416 esac
13417 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13418 shlibpath_overrides_runpath=no
13419 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13420 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13421 hardcode_into_libs=yes
13422 ;;
13423
13424 # No shared lib support for Linux oldld, aout, or coff.
13425 linux*oldld* | linux*aout* | linux*coff*)
13426 dynamic_linker=no
13427 ;;
13428
13429 # This must be Linux ELF.
13430 linux* | k*bsd*-gnu)
13431 version_type=linux
13432 need_lib_prefix=no
13433 need_version=no
13434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13435 soname_spec='${libname}${release}${shared_ext}$major'
13436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13437 shlibpath_var=LD_LIBRARY_PATH
13438 shlibpath_overrides_runpath=no
13439 # This implies no fast_install, which is unacceptable.
13440 # Some rework will be needed to allow for fast_install
13441 # before this can be enabled.
13442 hardcode_into_libs=yes
13443
13444 # Append ld.so.conf contents to the search path
13445 if test -f /etc/ld.so.conf; then
13446 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' ' '`
13447 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13448 fi
13449
13450 # We used to test for /lib/ld.so.1 and disable shared libraries on
13451 # powerpc, because MkLinux only supported shared libraries with the
13452 # GNU dynamic linker. Since this was broken with cross compilers,
13453 # most powerpc-linux boxes support dynamic linking these days and
13454 # people can always --disable-shared, the test was removed, and we
13455 # assume the GNU/Linux dynamic linker is in use.
13456 dynamic_linker='GNU/Linux ld.so'
13457 ;;
13458
13459 netbsd*)
13460 version_type=sunos
13461 need_lib_prefix=no
13462 need_version=no
13463 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13466 dynamic_linker='NetBSD (a.out) ld.so'
13467 else
13468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13469 soname_spec='${libname}${release}${shared_ext}$major'
13470 dynamic_linker='NetBSD ld.elf_so'
13471 fi
13472 shlibpath_var=LD_LIBRARY_PATH
13473 shlibpath_overrides_runpath=yes
13474 hardcode_into_libs=yes
13475 ;;
13476
13477 newsos6)
13478 version_type=linux
13479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13480 shlibpath_var=LD_LIBRARY_PATH
13481 shlibpath_overrides_runpath=yes
13482 ;;
13483
13484 nto-qnx*)
13485 version_type=linux
13486 need_lib_prefix=no
13487 need_version=no
13488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13489 soname_spec='${libname}${release}${shared_ext}$major'
13490 shlibpath_var=LD_LIBRARY_PATH
13491 shlibpath_overrides_runpath=yes
13492 ;;
13493
13494 openbsd*)
13495 version_type=sunos
13496 sys_lib_dlsearch_path_spec="/usr/lib"
13497 need_lib_prefix=no
13498 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13499 case $host_os in
13500 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13501 *) need_version=no ;;
13502 esac
13503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13505 shlibpath_var=LD_LIBRARY_PATH
13506 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13507 case $host_os in
13508 openbsd2.[89] | openbsd2.[89].*)
13509 shlibpath_overrides_runpath=no
13510 ;;
13511 *)
13512 shlibpath_overrides_runpath=yes
13513 ;;
13514 esac
13515 else
13516 shlibpath_overrides_runpath=yes
13517 fi
13518 ;;
13519
13520 os2*)
13521 libname_spec='$name'
13522 shrext_cmds=".dll"
13523 need_lib_prefix=no
13524 library_names_spec='$libname${shared_ext} $libname.a'
13525 dynamic_linker='OS/2 ld.exe'
13526 shlibpath_var=LIBPATH
13527 ;;
13528
13529 osf3* | osf4* | osf5*)
13530 version_type=osf
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${shared_ext}'
13535 shlibpath_var=LD_LIBRARY_PATH
13536 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13537 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13538 ;;
13539
13540 rdos*)
13541 dynamic_linker=no
13542 ;;
13543
13544 solaris*)
13545 version_type=linux
13546 need_lib_prefix=no
13547 need_version=no
13548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13549 soname_spec='${libname}${release}${shared_ext}$major'
13550 shlibpath_var=LD_LIBRARY_PATH
13551 shlibpath_overrides_runpath=yes
13552 hardcode_into_libs=yes
13553 # ldd complains unless libraries are executable
13554 postinstall_cmds='chmod +x $lib'
13555 ;;
13556
13557 sunos4*)
13558 version_type=sunos
13559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13560 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13561 shlibpath_var=LD_LIBRARY_PATH
13562 shlibpath_overrides_runpath=yes
13563 if test "$with_gnu_ld" = yes; then
13564 need_lib_prefix=no
13565 fi
13566 need_version=yes
13567 ;;
13568
13569 sysv4 | sysv4.3*)
13570 version_type=linux
13571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13572 soname_spec='${libname}${release}${shared_ext}$major'
13573 shlibpath_var=LD_LIBRARY_PATH
13574 case $host_vendor in
13575 sni)
13576 shlibpath_overrides_runpath=no
13577 need_lib_prefix=no
13578 export_dynamic_flag_spec='${wl}-Blargedynsym'
13579 runpath_var=LD_RUN_PATH
13580 ;;
13581 siemens)
13582 need_lib_prefix=no
13583 ;;
13584 motorola)
13585 need_lib_prefix=no
13586 need_version=no
13587 shlibpath_overrides_runpath=no
13588 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13589 ;;
13590 esac
13591 ;;
13592
13593 sysv4*MP*)
13594 if test -d /usr/nec ;then
13595 version_type=linux
13596 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13597 soname_spec='$libname${shared_ext}.$major'
13598 shlibpath_var=LD_LIBRARY_PATH
13599 fi
13600 ;;
13601
13602 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13603 version_type=freebsd-elf
13604 need_lib_prefix=no
13605 need_version=no
13606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13607 soname_spec='${libname}${release}${shared_ext}$major'
13608 shlibpath_var=LD_LIBRARY_PATH
13609 hardcode_into_libs=yes
13610 if test "$with_gnu_ld" = yes; then
13611 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13612 shlibpath_overrides_runpath=no
13613 else
13614 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13615 shlibpath_overrides_runpath=yes
13616 case $host_os in
13617 sco3.2v5*)
13618 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13619 ;;
13620 esac
13621 fi
13622 sys_lib_dlsearch_path_spec='/usr/lib'
13623 ;;
13624
13625 uts4*)
13626 version_type=linux
13627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13628 soname_spec='${libname}${release}${shared_ext}$major'
13629 shlibpath_var=LD_LIBRARY_PATH
13630 ;;
13631
13632 *)
13633 dynamic_linker=no
13634 ;;
13635 esac
13636 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13637 $as_echo "$dynamic_linker" >&6; }
13638 test "$dynamic_linker" = no && can_build_shared=no
13639
13640 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13641 $as_echo_n "(cached) " >&6
13642 else
13643 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13644 fi
13645
13646 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13647 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13648 $as_echo_n "(cached) " >&6
13649 else
13650 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13651 fi
13652
13653 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13654
13655 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13656 if test "$GCC" = yes; then
13657 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13658 fi
13659
13660 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13661 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13662 hardcode_action_CXX=
13663 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13664 test -n "$runpath_var_CXX" || \
13665 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13666
13667 # We can hardcode non-existant directories.
13668 if test "$hardcode_direct_CXX" != no &&
13669 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13670 # have to relink, otherwise we might link with an installed library
13671 # when we should be linking with a yet-to-be-installed one
13672 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13673 test "$hardcode_minus_L_CXX" != no; then
13674 # Linking always hardcodes the temporary library directory.
13675 hardcode_action_CXX=relink
13676 else
13677 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13678 hardcode_action_CXX=immediate
13679 fi
13680 else
13681 # We cannot hardcode anything, or else we can only hardcode existing
13682 # directories.
13683 hardcode_action_CXX=unsupported
13684 fi
13685 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13686 $as_echo "$hardcode_action_CXX" >&6; }
13687
13688 if test "$hardcode_action_CXX" = relink; then
13689 # Fast installation is not supported
13690 enable_fast_install=no
13691 elif test "$shlibpath_overrides_runpath" = yes ||
13692 test "$enable_shared" = no; then
13693 # Fast installation is not necessary
13694 enable_fast_install=needless
13695 fi
13696
13697
13698 # The else clause should only fire when bootstrapping the
13699 # libtool distribution, otherwise you forgot to ship ltmain.sh
13700 # with your package, and you will get complaints that there are
13701 # no rules to generate ltmain.sh.
13702 if test -f "$ltmain"; then
13703 # See if we are running on zsh, and set the options which allow our commands through
13704 # without removal of \ escapes.
13705 if test -n "${ZSH_VERSION+set}" ; then
13706 setopt NO_GLOB_SUBST
13707 fi
13708 # Now quote all the things that may contain metacharacters while being
13709 # careful not to overquote the AC_SUBSTed values. We take copies of the
13710 # variables and quote the copies for generation of the libtool script.
13711 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13712 SED SHELL STRIP \
13713 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13714 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13715 deplibs_check_method reload_flag reload_cmds need_locks \
13716 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13717 lt_cv_sys_global_symbol_to_c_name_address \
13718 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13719 old_postinstall_cmds old_postuninstall_cmds \
13720 compiler_CXX \
13721 CC_CXX \
13722 LD_CXX \
13723 lt_prog_compiler_wl_CXX \
13724 lt_prog_compiler_pic_CXX \
13725 lt_prog_compiler_static_CXX \
13726 lt_prog_compiler_no_builtin_flag_CXX \
13727 export_dynamic_flag_spec_CXX \
13728 thread_safe_flag_spec_CXX \
13729 whole_archive_flag_spec_CXX \
13730 enable_shared_with_static_runtimes_CXX \
13731 old_archive_cmds_CXX \
13732 old_archive_from_new_cmds_CXX \
13733 predep_objects_CXX \
13734 postdep_objects_CXX \
13735 predeps_CXX \
13736 postdeps_CXX \
13737 compiler_lib_search_path_CXX \
13738 compiler_lib_search_dirs_CXX \
13739 archive_cmds_CXX \
13740 archive_expsym_cmds_CXX \
13741 postinstall_cmds_CXX \
13742 postuninstall_cmds_CXX \
13743 old_archive_from_expsyms_cmds_CXX \
13744 allow_undefined_flag_CXX \
13745 no_undefined_flag_CXX \
13746 export_symbols_cmds_CXX \
13747 hardcode_libdir_flag_spec_CXX \
13748 hardcode_libdir_flag_spec_ld_CXX \
13749 hardcode_libdir_separator_CXX \
13750 hardcode_automatic_CXX \
13751 module_cmds_CXX \
13752 module_expsym_cmds_CXX \
13753 lt_cv_prog_compiler_c_o_CXX \
13754 fix_srcfile_path_CXX \
13755 exclude_expsyms_CXX \
13756 include_expsyms_CXX; do
13757
13758 case $var in
13759 old_archive_cmds_CXX | \
13760 old_archive_from_new_cmds_CXX | \
13761 archive_cmds_CXX | \
13762 archive_expsym_cmds_CXX | \
13763 module_cmds_CXX | \
13764 module_expsym_cmds_CXX | \
13765 old_archive_from_expsyms_cmds_CXX | \
13766 export_symbols_cmds_CXX | \
13767 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13768 postinstall_cmds | postuninstall_cmds | \
13769 old_postinstall_cmds | old_postuninstall_cmds | \
13770 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13771 # Double-quote double-evaled strings.
13772 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13773 ;;
13774 *)
13775 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13776 ;;
13777 esac
13778 done
13779
13780 case $lt_echo in
13781 *'\$0 --fallback-echo"')
13782 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13783 ;;
13784 esac
13785
13786 cfgfile="$ofile"
13787
13788 cat <<__EOF__ >> "$cfgfile"
13789 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13790
13791 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13792
13793 # Shell to use when invoking shell scripts.
13794 SHELL=$lt_SHELL
13795
13796 # Whether or not to build shared libraries.
13797 build_libtool_libs=$enable_shared
13798
13799 # Whether or not to build static libraries.
13800 build_old_libs=$enable_static
13801
13802 # Whether or not to add -lc for building shared libraries.
13803 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13804
13805 # Whether or not to disallow shared libs when runtime libs are static
13806 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13807
13808 # Whether or not to optimize for fast installation.
13809 fast_install=$enable_fast_install
13810
13811 # The host system.
13812 host_alias=$host_alias
13813 host=$host
13814 host_os=$host_os
13815
13816 # The build system.
13817 build_alias=$build_alias
13818 build=$build
13819 build_os=$build_os
13820
13821 # An echo program that does not interpret backslashes.
13822 echo=$lt_echo
13823
13824 # The archiver.
13825 AR=$lt_AR
13826 AR_FLAGS=$lt_AR_FLAGS
13827
13828 # A C compiler.
13829 LTCC=$lt_LTCC
13830
13831 # LTCC compiler flags.
13832 LTCFLAGS=$lt_LTCFLAGS
13833
13834 # A language-specific compiler.
13835 CC=$lt_compiler_CXX
13836
13837 # Is the compiler the GNU C compiler?
13838 with_gcc=$GCC_CXX
13839
13840 # An ERE matcher.
13841 EGREP=$lt_EGREP
13842
13843 # The linker used to build libraries.
13844 LD=$lt_LD_CXX
13845
13846 # Whether we need hard or soft links.
13847 LN_S=$lt_LN_S
13848
13849 # A BSD-compatible nm program.
13850 NM=$lt_NM
13851
13852 # A symbol stripping program
13853 STRIP=$lt_STRIP
13854
13855 # Used to examine libraries when file_magic_cmd begins "file"
13856 MAGIC_CMD=$MAGIC_CMD
13857
13858 # Used on cygwin: DLL creation program.
13859 DLLTOOL="$DLLTOOL"
13860
13861 # Used on cygwin: object dumper.
13862 OBJDUMP="$OBJDUMP"
13863
13864 # Used on cygwin: assembler.
13865 AS="$AS"
13866
13867 # The name of the directory that contains temporary libtool files.
13868 objdir=$objdir
13869
13870 # How to create reloadable object files.
13871 reload_flag=$lt_reload_flag
13872 reload_cmds=$lt_reload_cmds
13873
13874 # How to pass a linker flag through the compiler.
13875 wl=$lt_lt_prog_compiler_wl_CXX
13876
13877 # Object file suffix (normally "o").
13878 objext="$ac_objext"
13879
13880 # Old archive suffix (normally "a").
13881 libext="$libext"
13882
13883 # Shared library suffix (normally ".so").
13884 shrext_cmds='$shrext_cmds'
13885
13886 # Executable file suffix (normally "").
13887 exeext="$exeext"
13888
13889 # Additional compiler flags for building library objects.
13890 pic_flag=$lt_lt_prog_compiler_pic_CXX
13891 pic_mode=$pic_mode
13892
13893 # What is the maximum length of a command?
13894 max_cmd_len=$lt_cv_sys_max_cmd_len
13895
13896 # Does compiler simultaneously support -c and -o options?
13897 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13898
13899 # Must we lock files when doing compilation?
13900 need_locks=$lt_need_locks
13901
13902 # Do we need the lib prefix for modules?
13903 need_lib_prefix=$need_lib_prefix
13904
13905 # Do we need a version for libraries?
13906 need_version=$need_version
13907
13908 # Whether dlopen is supported.
13909 dlopen_support=$enable_dlopen
13910
13911 # Whether dlopen of programs is supported.
13912 dlopen_self=$enable_dlopen_self
13913
13914 # Whether dlopen of statically linked programs is supported.
13915 dlopen_self_static=$enable_dlopen_self_static
13916
13917 # Compiler flag to prevent dynamic linking.
13918 link_static_flag=$lt_lt_prog_compiler_static_CXX
13919
13920 # Compiler flag to turn off builtin functions.
13921 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13922
13923 # Compiler flag to allow reflexive dlopens.
13924 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13925
13926 # Compiler flag to generate shared objects directly from archives.
13927 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13928
13929 # Compiler flag to generate thread-safe objects.
13930 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13931
13932 # Library versioning type.
13933 version_type=$version_type
13934
13935 # Format of library name prefix.
13936 libname_spec=$lt_libname_spec
13937
13938 # List of archive names. First name is the real one, the rest are links.
13939 # The last name is the one that the linker finds with -lNAME.
13940 library_names_spec=$lt_library_names_spec
13941
13942 # The coded name of the library, if different from the real name.
13943 soname_spec=$lt_soname_spec
13944
13945 # Commands used to build and install an old-style archive.
13946 RANLIB=$lt_RANLIB
13947 old_archive_cmds=$lt_old_archive_cmds_CXX
13948 old_postinstall_cmds=$lt_old_postinstall_cmds
13949 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13950
13951 # Create an old-style archive from a shared archive.
13952 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13953
13954 # Create a temporary old-style archive to link instead of a shared archive.
13955 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13956
13957 # Commands used to build and install a shared archive.
13958 archive_cmds=$lt_archive_cmds_CXX
13959 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13960 postinstall_cmds=$lt_postinstall_cmds
13961 postuninstall_cmds=$lt_postuninstall_cmds
13962
13963 # Commands used to build a loadable module (assumed same as above if empty)
13964 module_cmds=$lt_module_cmds_CXX
13965 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13966
13967 # Commands to strip libraries.
13968 old_striplib=$lt_old_striplib
13969 striplib=$lt_striplib
13970
13971 # Dependencies to place before the objects being linked to create a
13972 # shared library.
13973 predep_objects=$lt_predep_objects_CXX
13974
13975 # Dependencies to place after the objects being linked to create a
13976 # shared library.
13977 postdep_objects=$lt_postdep_objects_CXX
13978
13979 # Dependencies to place before the objects being linked to create a
13980 # shared library.
13981 predeps=$lt_predeps_CXX
13982
13983 # Dependencies to place after the objects being linked to create a
13984 # shared library.
13985 postdeps=$lt_postdeps_CXX
13986
13987 # The directories searched by this compiler when creating a shared
13988 # library
13989 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13990
13991 # The library search path used internally by the compiler when linking
13992 # a shared library.
13993 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13994
13995 # Method to check whether dependent libraries are shared objects.
13996 deplibs_check_method=$lt_deplibs_check_method
13997
13998 # Command to use when deplibs_check_method == file_magic.
13999 file_magic_cmd=$lt_file_magic_cmd
14000
14001 # Flag that allows shared libraries with undefined symbols to be built.
14002 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14003
14004 # Flag that forces no undefined symbols.
14005 no_undefined_flag=$lt_no_undefined_flag_CXX
14006
14007 # Commands used to finish a libtool library installation in a directory.
14008 finish_cmds=$lt_finish_cmds
14009
14010 # Same as above, but a single script fragment to be evaled but not shown.
14011 finish_eval=$lt_finish_eval
14012
14013 # Take the output of nm and produce a listing of raw symbols and C names.
14014 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14015
14016 # Transform the output of nm in a proper C declaration
14017 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14018
14019 # Transform the output of nm in a C name address pair
14020 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14021
14022 # This is the shared library runtime path variable.
14023 runpath_var=$runpath_var
14024
14025 # This is the shared library path variable.
14026 shlibpath_var=$shlibpath_var
14027
14028 # Is shlibpath searched before the hard-coded library search path?
14029 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14030
14031 # How to hardcode a shared library path into an executable.
14032 hardcode_action=$hardcode_action_CXX
14033
14034 # Whether we should hardcode library paths into libraries.
14035 hardcode_into_libs=$hardcode_into_libs
14036
14037 # Flag to hardcode \$libdir into a binary during linking.
14038 # This must work even if \$libdir does not exist.
14039 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14040
14041 # If ld is used when linking, flag to hardcode \$libdir into
14042 # a binary during linking. This must work even if \$libdir does
14043 # not exist.
14044 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14045
14046 # Whether we need a single -rpath flag with a separated argument.
14047 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14048
14049 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14050 # resulting binary.
14051 hardcode_direct=$hardcode_direct_CXX
14052
14053 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14054 # resulting binary.
14055 hardcode_minus_L=$hardcode_minus_L_CXX
14056
14057 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14058 # the resulting binary.
14059 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14060
14061 # Set to yes if building a shared library automatically hardcodes DIR into the library
14062 # and all subsequent libraries and executables linked against it.
14063 hardcode_automatic=$hardcode_automatic_CXX
14064
14065 # Variables whose values should be saved in libtool wrapper scripts and
14066 # restored at relink time.
14067 variables_saved_for_relink="$variables_saved_for_relink"
14068
14069 # Whether libtool must link a program against all its dependency libraries.
14070 link_all_deplibs=$link_all_deplibs_CXX
14071
14072 # Compile-time system search path for libraries
14073 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14074
14075 # Run-time system search path for libraries
14076 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14077
14078 # Fix the shell variable \$srcfile for the compiler.
14079 fix_srcfile_path=$lt_fix_srcfile_path
14080
14081 # Set to yes if exported symbols are required.
14082 always_export_symbols=$always_export_symbols_CXX
14083
14084 # The commands to list exported symbols.
14085 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14086
14087 # The commands to extract the exported symbol list from a shared archive.
14088 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14089
14090 # Symbols that should not be listed in the preloaded symbols.
14091 exclude_expsyms=$lt_exclude_expsyms_CXX
14092
14093 # Symbols that must always be exported.
14094 include_expsyms=$lt_include_expsyms_CXX
14095
14096 # ### END LIBTOOL TAG CONFIG: $tagname
14097
14098 __EOF__
14099
14100
14101 else
14102 # If there is no Makefile yet, we rely on a make rule to execute
14103 # `config.status --recheck' to rerun these tests and create the
14104 # libtool script then.
14105 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14106 if test -f "$ltmain_in"; then
14107 test -f Makefile && make "$ltmain"
14108 fi
14109 fi
14110
14111
14112 ac_ext=c
14113 ac_cpp='$CPP $CPPFLAGS'
14114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14117
14118 CC=$lt_save_CC
14119 LDCXX=$LD
14120 LD=$lt_save_LD
14121 GCC=$lt_save_GCC
14122 with_gnu_ldcxx=$with_gnu_ld
14123 with_gnu_ld=$lt_save_with_gnu_ld
14124 lt_cv_path_LDCXX=$lt_cv_path_LD
14125 lt_cv_path_LD=$lt_save_path_LD
14126 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14127 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14128
14129 else
14130 tagname=""
14131 fi
14132 ;;
14133
14134 F77)
14135 if test -n "$F77" && test "X$F77" != "Xno"; then
14136
14137 ac_ext=f
14138 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14139 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14140 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14141
14142
14143 archive_cmds_need_lc_F77=no
14144 allow_undefined_flag_F77=
14145 always_export_symbols_F77=no
14146 archive_expsym_cmds_F77=
14147 export_dynamic_flag_spec_F77=
14148 hardcode_direct_F77=no
14149 hardcode_libdir_flag_spec_F77=
14150 hardcode_libdir_flag_spec_ld_F77=
14151 hardcode_libdir_separator_F77=
14152 hardcode_minus_L_F77=no
14153 hardcode_automatic_F77=no
14154 module_cmds_F77=
14155 module_expsym_cmds_F77=
14156 link_all_deplibs_F77=unknown
14157 old_archive_cmds_F77=$old_archive_cmds
14158 no_undefined_flag_F77=
14159 whole_archive_flag_spec_F77=
14160 enable_shared_with_static_runtimes_F77=no
14161
14162 # Source file extension for f77 test sources.
14163 ac_ext=f
14164
14165 # Object file extension for compiled f77 test sources.
14166 objext=o
14167 objext_F77=$objext
14168
14169 # Code to be used in simple compile tests
14170 lt_simple_compile_test_code="\
14171 subroutine t
14172 return
14173 end
14174 "
14175
14176 # Code to be used in simple link tests
14177 lt_simple_link_test_code="\
14178 program t
14179 end
14180 "
14181
14182 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14183
14184 # If no C compiler was specified, use CC.
14185 LTCC=${LTCC-"$CC"}
14186
14187 # If no C compiler flags were specified, use CFLAGS.
14188 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14189
14190 # Allow CC to be a program name with arguments.
14191 compiler=$CC
14192
14193
14194 # save warnings/boilerplate of simple test code
14195 ac_outfile=conftest.$ac_objext
14196 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14197 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14198 _lt_compiler_boilerplate=`cat conftest.err`
14199 $rm conftest*
14200
14201 ac_outfile=conftest.$ac_objext
14202 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14203 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14204 _lt_linker_boilerplate=`cat conftest.err`
14205 $rm -r conftest*
14206
14207
14208 # Allow CC to be a program name with arguments.
14209 lt_save_CC="$CC"
14210 CC=${F77-"f77"}
14211 compiler=$CC
14212 compiler_F77=$CC
14213 for cc_temp in $compiler""; do
14214 case $cc_temp in
14215 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14216 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14217 \-*) ;;
14218 *) break;;
14219 esac
14220 done
14221 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14222
14223
14224 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14225 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14226 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14227 $as_echo "$can_build_shared" >&6; }
14228
14229 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14230 $as_echo_n "checking whether to build shared libraries... " >&6; }
14231 test "$can_build_shared" = "no" && enable_shared=no
14232
14233 # On AIX, shared libraries and static libraries use the same namespace, and
14234 # are all built from PIC.
14235 case $host_os in
14236 aix3*)
14237 test "$enable_shared" = yes && enable_static=no
14238 if test -n "$RANLIB"; then
14239 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14240 postinstall_cmds='$RANLIB $lib'
14241 fi
14242 ;;
14243 aix[4-9]*)
14244 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14245 test "$enable_shared" = yes && enable_static=no
14246 fi
14247 ;;
14248 esac
14249 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14250 $as_echo "$enable_shared" >&6; }
14251
14252 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14253 $as_echo_n "checking whether to build static libraries... " >&6; }
14254 # Make sure either enable_shared or enable_static is yes.
14255 test "$enable_shared" = yes || enable_static=yes
14256 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14257 $as_echo "$enable_static" >&6; }
14258
14259 GCC_F77="$G77"
14260 LD_F77="$LD"
14261
14262 lt_prog_compiler_wl_F77=
14263 lt_prog_compiler_pic_F77=
14264 lt_prog_compiler_static_F77=
14265
14266 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14267 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14268
14269 if test "$GCC" = yes; then
14270 lt_prog_compiler_wl_F77='-Wl,'
14271 lt_prog_compiler_static_F77='-static'
14272
14273 case $host_os in
14274 aix*)
14275 # All AIX code is PIC.
14276 if test "$host_cpu" = ia64; then
14277 # AIX 5 now supports IA64 processor
14278 lt_prog_compiler_static_F77='-Bstatic'
14279 fi
14280 ;;
14281
14282 amigaos*)
14283 # FIXME: we need at least 68020 code to build shared libraries, but
14284 # adding the `-m68020' flag to GCC prevents building anything better,
14285 # like `-m68040'.
14286 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14287 ;;
14288
14289 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14290 # PIC is the default for these OSes.
14291 ;;
14292
14293 mingw* | cygwin* | pw32* | os2*)
14294 # This hack is so that the source file can tell whether it is being
14295 # built for inclusion in a dll (and should export symbols for example).
14296 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14297 # (--disable-auto-import) libraries
14298 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14299 ;;
14300
14301 darwin* | rhapsody*)
14302 # PIC is the default on this platform
14303 # Common symbols not allowed in MH_DYLIB files
14304 lt_prog_compiler_pic_F77='-fno-common'
14305 ;;
14306
14307 interix[3-9]*)
14308 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14309 # Instead, we relocate shared libraries at runtime.
14310 ;;
14311
14312 msdosdjgpp*)
14313 # Just because we use GCC doesn't mean we suddenly get shared libraries
14314 # on systems that don't support them.
14315 lt_prog_compiler_can_build_shared_F77=no
14316 enable_shared=no
14317 ;;
14318
14319 sysv4*MP*)
14320 if test -d /usr/nec; then
14321 lt_prog_compiler_pic_F77=-Kconform_pic
14322 fi
14323 ;;
14324
14325 hpux*)
14326 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14327 # not for PA HP-UX.
14328 case $host_cpu in
14329 hppa*64*|ia64*)
14330 # +Z the default
14331 ;;
14332 *)
14333 lt_prog_compiler_pic_F77='-fPIC'
14334 ;;
14335 esac
14336 ;;
14337
14338 *)
14339 lt_prog_compiler_pic_F77='-fPIC'
14340 ;;
14341 esac
14342 else
14343 # PORTME Check for flag to pass linker flags through the system compiler.
14344 case $host_os in
14345 aix*)
14346 lt_prog_compiler_wl_F77='-Wl,'
14347 if test "$host_cpu" = ia64; then
14348 # AIX 5 now supports IA64 processor
14349 lt_prog_compiler_static_F77='-Bstatic'
14350 else
14351 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14352 fi
14353 ;;
14354 darwin*)
14355 # PIC is the default on this platform
14356 # Common symbols not allowed in MH_DYLIB files
14357 case $cc_basename in
14358 xlc*)
14359 lt_prog_compiler_pic_F77='-qnocommon'
14360 lt_prog_compiler_wl_F77='-Wl,'
14361 ;;
14362 esac
14363 ;;
14364
14365 mingw* | cygwin* | pw32* | os2*)
14366 # This hack is so that the source file can tell whether it is being
14367 # built for inclusion in a dll (and should export symbols for example).
14368 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14369 ;;
14370
14371 hpux9* | hpux10* | hpux11*)
14372 lt_prog_compiler_wl_F77='-Wl,'
14373 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14374 # not for PA HP-UX.
14375 case $host_cpu in
14376 hppa*64*|ia64*)
14377 # +Z the default
14378 ;;
14379 *)
14380 lt_prog_compiler_pic_F77='+Z'
14381 ;;
14382 esac
14383 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14384 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14385 ;;
14386
14387 irix5* | irix6* | nonstopux*)
14388 lt_prog_compiler_wl_F77='-Wl,'
14389 # PIC (with -KPIC) is the default.
14390 lt_prog_compiler_static_F77='-non_shared'
14391 ;;
14392
14393 newsos6)
14394 lt_prog_compiler_pic_F77='-KPIC'
14395 lt_prog_compiler_static_F77='-Bstatic'
14396 ;;
14397
14398 linux* | k*bsd*-gnu)
14399 case $cc_basename in
14400 icc* | ecc*)
14401 lt_prog_compiler_wl_F77='-Wl,'
14402 lt_prog_compiler_pic_F77='-KPIC'
14403 lt_prog_compiler_static_F77='-static'
14404 ;;
14405 pgcc* | pgf77* | pgf90* | pgf95*)
14406 # Portland Group compilers (*not* the Pentium gcc compiler,
14407 # which looks to be a dead project)
14408 lt_prog_compiler_wl_F77='-Wl,'
14409 lt_prog_compiler_pic_F77='-fpic'
14410 lt_prog_compiler_static_F77='-Bstatic'
14411 ;;
14412 ccc*)
14413 lt_prog_compiler_wl_F77='-Wl,'
14414 # All Alpha code is PIC.
14415 lt_prog_compiler_static_F77='-non_shared'
14416 ;;
14417 *)
14418 case `$CC -V 2>&1 | sed 5q` in
14419 *Sun\ C*)
14420 # Sun C 5.9
14421 lt_prog_compiler_pic_F77='-KPIC'
14422 lt_prog_compiler_static_F77='-Bstatic'
14423 lt_prog_compiler_wl_F77='-Wl,'
14424 ;;
14425 *Sun\ F*)
14426 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14427 lt_prog_compiler_pic_F77='-KPIC'
14428 lt_prog_compiler_static_F77='-Bstatic'
14429 lt_prog_compiler_wl_F77=''
14430 ;;
14431 esac
14432 ;;
14433 esac
14434 ;;
14435
14436 osf3* | osf4* | osf5*)
14437 lt_prog_compiler_wl_F77='-Wl,'
14438 # All OSF/1 code is PIC.
14439 lt_prog_compiler_static_F77='-non_shared'
14440 ;;
14441
14442 rdos*)
14443 lt_prog_compiler_static_F77='-non_shared'
14444 ;;
14445
14446 solaris*)
14447 lt_prog_compiler_pic_F77='-KPIC'
14448 lt_prog_compiler_static_F77='-Bstatic'
14449 case $cc_basename in
14450 f77* | f90* | f95*)
14451 lt_prog_compiler_wl_F77='-Qoption ld ';;
14452 *)
14453 lt_prog_compiler_wl_F77='-Wl,';;
14454 esac
14455 ;;
14456
14457 sunos4*)
14458 lt_prog_compiler_wl_F77='-Qoption ld '
14459 lt_prog_compiler_pic_F77='-PIC'
14460 lt_prog_compiler_static_F77='-Bstatic'
14461 ;;
14462
14463 sysv4 | sysv4.2uw2* | sysv4.3*)
14464 lt_prog_compiler_wl_F77='-Wl,'
14465 lt_prog_compiler_pic_F77='-KPIC'
14466 lt_prog_compiler_static_F77='-Bstatic'
14467 ;;
14468
14469 sysv4*MP*)
14470 if test -d /usr/nec ;then
14471 lt_prog_compiler_pic_F77='-Kconform_pic'
14472 lt_prog_compiler_static_F77='-Bstatic'
14473 fi
14474 ;;
14475
14476 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14477 lt_prog_compiler_wl_F77='-Wl,'
14478 lt_prog_compiler_pic_F77='-KPIC'
14479 lt_prog_compiler_static_F77='-Bstatic'
14480 ;;
14481
14482 unicos*)
14483 lt_prog_compiler_wl_F77='-Wl,'
14484 lt_prog_compiler_can_build_shared_F77=no
14485 ;;
14486
14487 uts4*)
14488 lt_prog_compiler_pic_F77='-pic'
14489 lt_prog_compiler_static_F77='-Bstatic'
14490 ;;
14491
14492 *)
14493 lt_prog_compiler_can_build_shared_F77=no
14494 ;;
14495 esac
14496 fi
14497
14498 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14499 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14500
14501 #
14502 # Check to make sure the PIC flag actually works.
14503 #
14504 if test -n "$lt_prog_compiler_pic_F77"; then
14505
14506 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14507 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14508 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14509 $as_echo_n "(cached) " >&6
14510 else
14511 lt_cv_prog_compiler_pic_works_F77=no
14512 ac_outfile=conftest.$ac_objext
14513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14514 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14515 # Insert the option either (1) after the last *FLAGS variable, or
14516 # (2) before a word containing "conftest.", or (3) at the end.
14517 # Note that $ac_compile itself does not contain backslashes and begins
14518 # with a dollar sign (not a hyphen), so the echo should work correctly.
14519 # The option is referenced via a variable to avoid confusing sed.
14520 lt_compile=`echo "$ac_compile" | $SED \
14521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14523 -e 's:$: $lt_compiler_flag:'`
14524 (eval echo "\"\$as_me:14524: $lt_compile\"" >&5)
14525 (eval "$lt_compile" 2>conftest.err)
14526 ac_status=$?
14527 cat conftest.err >&5
14528 echo "$as_me:14528: \$? = $ac_status" >&5
14529 if (exit $ac_status) && test -s "$ac_outfile"; then
14530 # The compiler can only warn and ignore the option if not recognized
14531 # So say no if there are warnings other than the usual output.
14532 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14534 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14535 lt_cv_prog_compiler_pic_works_F77=yes
14536 fi
14537 fi
14538 $rm conftest*
14539
14540 fi
14541 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14542 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14543
14544 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14545 case $lt_prog_compiler_pic_F77 in
14546 "" | " "*) ;;
14547 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14548 esac
14549 else
14550 lt_prog_compiler_pic_F77=
14551 lt_prog_compiler_can_build_shared_F77=no
14552 fi
14553
14554 fi
14555 case $host_os in
14556 # For platforms which do not support PIC, -DPIC is meaningless:
14557 *djgpp*)
14558 lt_prog_compiler_pic_F77=
14559 ;;
14560 *)
14561 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14562 ;;
14563 esac
14564
14565 #
14566 # Check to make sure the static flag actually works.
14567 #
14568 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14569 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14570 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14571 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14572 $as_echo_n "(cached) " >&6
14573 else
14574 lt_cv_prog_compiler_static_works_F77=no
14575 save_LDFLAGS="$LDFLAGS"
14576 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14577 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14578 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14579 # The linker can only warn and ignore the option if not recognized
14580 # So say no if there are warnings
14581 if test -s conftest.err; then
14582 # Append any errors to the config.log.
14583 cat conftest.err 1>&5
14584 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14585 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14586 if diff conftest.exp conftest.er2 >/dev/null; then
14587 lt_cv_prog_compiler_static_works_F77=yes
14588 fi
14589 else
14590 lt_cv_prog_compiler_static_works_F77=yes
14591 fi
14592 fi
14593 $rm -r conftest*
14594 LDFLAGS="$save_LDFLAGS"
14595
14596 fi
14597 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14598 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14599
14600 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14601 :
14602 else
14603 lt_prog_compiler_static_F77=
14604 fi
14605
14606
14607 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14608 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14609 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14610 $as_echo_n "(cached) " >&6
14611 else
14612 lt_cv_prog_compiler_c_o_F77=no
14613 $rm -r conftest 2>/dev/null
14614 mkdir conftest
14615 cd conftest
14616 mkdir out
14617 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14618
14619 lt_compiler_flag="-o out/conftest2.$ac_objext"
14620 # Insert the option either (1) after the last *FLAGS variable, or
14621 # (2) before a word containing "conftest.", or (3) at the end.
14622 # Note that $ac_compile itself does not contain backslashes and begins
14623 # with a dollar sign (not a hyphen), so the echo should work correctly.
14624 lt_compile=`echo "$ac_compile" | $SED \
14625 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14627 -e 's:$: $lt_compiler_flag:'`
14628 (eval echo "\"\$as_me:14628: $lt_compile\"" >&5)
14629 (eval "$lt_compile" 2>out/conftest.err)
14630 ac_status=$?
14631 cat out/conftest.err >&5
14632 echo "$as_me:14632: \$? = $ac_status" >&5
14633 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14634 then
14635 # The compiler can only warn and ignore the option if not recognized
14636 # So say no if there are warnings
14637 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14638 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14639 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14640 lt_cv_prog_compiler_c_o_F77=yes
14641 fi
14642 fi
14643 chmod u+w . 2>&5
14644 $rm conftest*
14645 # SGI C++ compiler will create directory out/ii_files/ for
14646 # template instantiation
14647 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14648 $rm out/* && rmdir out
14649 cd ..
14650 rmdir conftest
14651 $rm conftest*
14652
14653 fi
14654 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14655 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14656
14657
14658 hard_links="nottested"
14659 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14660 # do not overwrite the value of need_locks provided by the user
14661 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14662 $as_echo_n "checking if we can lock with hard links... " >&6; }
14663 hard_links=yes
14664 $rm conftest*
14665 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14666 touch conftest.a
14667 ln conftest.a conftest.b 2>&5 || hard_links=no
14668 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14669 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14670 $as_echo "$hard_links" >&6; }
14671 if test "$hard_links" = no; then
14672 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14673 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14674 need_locks=warn
14675 fi
14676 else
14677 need_locks=no
14678 fi
14679
14680 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14681 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14682
14683 runpath_var=
14684 allow_undefined_flag_F77=
14685 enable_shared_with_static_runtimes_F77=no
14686 archive_cmds_F77=
14687 archive_expsym_cmds_F77=
14688 old_archive_From_new_cmds_F77=
14689 old_archive_from_expsyms_cmds_F77=
14690 export_dynamic_flag_spec_F77=
14691 whole_archive_flag_spec_F77=
14692 thread_safe_flag_spec_F77=
14693 hardcode_libdir_flag_spec_F77=
14694 hardcode_libdir_flag_spec_ld_F77=
14695 hardcode_libdir_separator_F77=
14696 hardcode_direct_F77=no
14697 hardcode_minus_L_F77=no
14698 hardcode_shlibpath_var_F77=unsupported
14699 link_all_deplibs_F77=unknown
14700 hardcode_automatic_F77=no
14701 module_cmds_F77=
14702 module_expsym_cmds_F77=
14703 always_export_symbols_F77=no
14704 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14705 # include_expsyms should be a list of space-separated symbols to be *always*
14706 # included in the symbol list
14707 include_expsyms_F77=
14708 # exclude_expsyms can be an extended regexp of symbols to exclude
14709 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14710 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14711 # as well as any symbol that contains `d'.
14712 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14713 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14714 # platforms (ab)use it in PIC code, but their linkers get confused if
14715 # the symbol is explicitly referenced. Since portable code cannot
14716 # rely on this symbol name, it's probably fine to never include it in
14717 # preloaded symbol tables.
14718 # Exclude shared library initialization/finalization symbols.
14719 extract_expsyms_cmds=
14720 # Just being paranoid about ensuring that cc_basename is set.
14721 for cc_temp in $compiler""; do
14722 case $cc_temp in
14723 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14724 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14725 \-*) ;;
14726 *) break;;
14727 esac
14728 done
14729 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14730
14731 case $host_os in
14732 cygwin* | mingw* | pw32*)
14733 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14734 # When not using gcc, we currently assume that we are using
14735 # Microsoft Visual C++.
14736 if test "$GCC" != yes; then
14737 with_gnu_ld=no
14738 fi
14739 ;;
14740 interix*)
14741 # we just hope/assume this is gcc and not c89 (= MSVC++)
14742 with_gnu_ld=yes
14743 ;;
14744 openbsd*)
14745 with_gnu_ld=no
14746 ;;
14747 esac
14748
14749 ld_shlibs_F77=yes
14750 if test "$with_gnu_ld" = yes; then
14751 # If archive_cmds runs LD, not CC, wlarc should be empty
14752 wlarc='${wl}'
14753
14754 # Set some defaults for GNU ld with shared library support. These
14755 # are reset later if shared libraries are not supported. Putting them
14756 # here allows them to be overridden if necessary.
14757 runpath_var=LD_RUN_PATH
14758 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14759 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14760 # ancient GNU ld didn't support --whole-archive et. al.
14761 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14762 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14763 else
14764 whole_archive_flag_spec_F77=
14765 fi
14766 supports_anon_versioning=no
14767 case `$LD -v 2>/dev/null` in
14768 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14769 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14770 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14771 *\ 2.11.*) ;; # other 2.11 versions
14772 *) supports_anon_versioning=yes ;;
14773 esac
14774
14775 # See if GNU ld supports shared libraries.
14776 case $host_os in
14777 aix[3-9]*)
14778 # On AIX/PPC, the GNU linker is very broken
14779 if test "$host_cpu" != ia64; then
14780 ld_shlibs_F77=no
14781 cat <<EOF 1>&2
14782
14783 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14784 *** to be unable to reliably create shared libraries on AIX.
14785 *** Therefore, libtool is disabling shared libraries support. If you
14786 *** really care for shared libraries, you may want to modify your PATH
14787 *** so that a non-GNU linker is found, and then restart.
14788
14789 EOF
14790 fi
14791 ;;
14792
14793 amigaos*)
14794 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)'
14795 hardcode_libdir_flag_spec_F77='-L$libdir'
14796 hardcode_minus_L_F77=yes
14797
14798 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14799 # that the semantics of dynamic libraries on AmigaOS, at least up
14800 # to version 4, is to share data among multiple programs linked
14801 # with the same dynamic library. Since this doesn't match the
14802 # behavior of shared libraries on other platforms, we can't use
14803 # them.
14804 ld_shlibs_F77=no
14805 ;;
14806
14807 beos*)
14808 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14809 allow_undefined_flag_F77=unsupported
14810 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14811 # support --undefined. This deserves some investigation. FIXME
14812 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14813 else
14814 ld_shlibs_F77=no
14815 fi
14816 ;;
14817
14818 cygwin* | mingw* | pw32*)
14819 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14820 # as there is no search path for DLLs.
14821 hardcode_libdir_flag_spec_F77='-L$libdir'
14822 allow_undefined_flag_F77=unsupported
14823 always_export_symbols_F77=no
14824 enable_shared_with_static_runtimes_F77=yes
14825 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14826
14827 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14828 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14829 # If the export-symbols file already is a .def file (1st line
14830 # is EXPORTS), use it as is; otherwise, prepend...
14831 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14832 cp $export_symbols $output_objdir/$soname.def;
14833 else
14834 echo EXPORTS > $output_objdir/$soname.def;
14835 cat $export_symbols >> $output_objdir/$soname.def;
14836 fi~
14837 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14838 else
14839 ld_shlibs_F77=no
14840 fi
14841 ;;
14842
14843 interix[3-9]*)
14844 hardcode_direct_F77=no
14845 hardcode_shlibpath_var_F77=no
14846 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14847 export_dynamic_flag_spec_F77='${wl}-E'
14848 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14849 # Instead, shared libraries are loaded at an image base (0x10000000 by
14850 # default) and relocated if they conflict, which is a slow very memory
14851 # consuming and fragmenting process. To avoid this, we pick a random,
14852 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14853 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14854 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'
14855 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'
14856 ;;
14857
14858 gnu* | linux* | k*bsd*-gnu)
14859 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14860 tmp_addflag=
14861 case $cc_basename,$host_cpu in
14862 pgcc*) # Portland Group C compiler
14863 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'
14864 tmp_addflag=' $pic_flag'
14865 ;;
14866 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14867 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'
14868 tmp_addflag=' $pic_flag -Mnomain' ;;
14869 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14870 tmp_addflag=' -i_dynamic' ;;
14871 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14872 tmp_addflag=' -i_dynamic -nofor_main' ;;
14873 ifc* | ifort*) # Intel Fortran compiler
14874 tmp_addflag=' -nofor_main' ;;
14875 esac
14876 case `$CC -V 2>&1 | sed 5q` in
14877 *Sun\ C*) # Sun C 5.9
14878 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'
14879 tmp_sharedflag='-G' ;;
14880 *Sun\ F*) # Sun Fortran 8.3
14881 tmp_sharedflag='-G' ;;
14882 *)
14883 tmp_sharedflag='-shared' ;;
14884 esac
14885 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14886
14887 if test $supports_anon_versioning = yes; then
14888 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14889 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14890 $echo "local: *; };" >> $output_objdir/$libname.ver~
14891 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14892 fi
14893 else
14894 ld_shlibs_F77=no
14895 fi
14896 ;;
14897
14898 netbsd*)
14899 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14900 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14901 wlarc=
14902 else
14903 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14904 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14905 fi
14906 ;;
14907
14908 solaris*)
14909 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14910 ld_shlibs_F77=no
14911 cat <<EOF 1>&2
14912
14913 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14914 *** create shared libraries on Solaris systems. Therefore, libtool
14915 *** is disabling shared libraries support. We urge you to upgrade GNU
14916 *** binutils to release 2.9.1 or newer. Another option is to modify
14917 *** your PATH or compiler configuration so that the native linker is
14918 *** used, and then restart.
14919
14920 EOF
14921 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14922 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14923 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14924 else
14925 ld_shlibs_F77=no
14926 fi
14927 ;;
14928
14929 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14930 case `$LD -v 2>&1` in
14931 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14932 ld_shlibs_F77=no
14933 cat <<_LT_EOF 1>&2
14934
14935 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14936 *** reliably create shared libraries on SCO systems. Therefore, libtool
14937 *** is disabling shared libraries support. We urge you to upgrade GNU
14938 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14939 *** your PATH or compiler configuration so that the native linker is
14940 *** used, and then restart.
14941
14942 _LT_EOF
14943 ;;
14944 *)
14945 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14946 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14947 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14948 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14949 else
14950 ld_shlibs_F77=no
14951 fi
14952 ;;
14953 esac
14954 ;;
14955
14956 sunos4*)
14957 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14958 wlarc=
14959 hardcode_direct_F77=yes
14960 hardcode_shlibpath_var_F77=no
14961 ;;
14962
14963 *)
14964 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14965 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14966 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14967 else
14968 ld_shlibs_F77=no
14969 fi
14970 ;;
14971 esac
14972
14973 if test "$ld_shlibs_F77" = no; then
14974 runpath_var=
14975 hardcode_libdir_flag_spec_F77=
14976 export_dynamic_flag_spec_F77=
14977 whole_archive_flag_spec_F77=
14978 fi
14979 else
14980 # PORTME fill in a description of your system's linker (not GNU ld)
14981 case $host_os in
14982 aix3*)
14983 allow_undefined_flag_F77=unsupported
14984 always_export_symbols_F77=yes
14985 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'
14986 # Note: this linker hardcodes the directories in LIBPATH if there
14987 # are no directories specified by -L.
14988 hardcode_minus_L_F77=yes
14989 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14990 # Neither direct hardcoding nor static linking is supported with a
14991 # broken collect2.
14992 hardcode_direct_F77=unsupported
14993 fi
14994 ;;
14995
14996 aix[4-9]*)
14997 if test "$host_cpu" = ia64; then
14998 # On IA64, the linker does run time linking by default, so we don't
14999 # have to do anything special.
15000 aix_use_runtimelinking=no
15001 exp_sym_flag='-Bexport'
15002 no_entry_flag=""
15003 else
15004 # If we're using GNU nm, then we don't want the "-C" option.
15005 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15006 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15007 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'
15008 else
15009 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'
15010 fi
15011 aix_use_runtimelinking=no
15012
15013 # Test if we are trying to use run time linking or normal
15014 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15015 # need to do runtime linking.
15016 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15017 for ld_flag in $LDFLAGS; do
15018 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15019 aix_use_runtimelinking=yes
15020 break
15021 fi
15022 done
15023 ;;
15024 esac
15025
15026 exp_sym_flag='-bexport'
15027 no_entry_flag='-bnoentry'
15028 fi
15029
15030 # When large executables or shared objects are built, AIX ld can
15031 # have problems creating the table of contents. If linking a library
15032 # or program results in "error TOC overflow" add -mminimal-toc to
15033 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15034 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15035
15036 archive_cmds_F77=''
15037 hardcode_direct_F77=yes
15038 hardcode_libdir_separator_F77=':'
15039 link_all_deplibs_F77=yes
15040
15041 if test "$GCC" = yes; then
15042 case $host_os in aix4.[012]|aix4.[012].*)
15043 # We only want to do this on AIX 4.2 and lower, the check
15044 # below for broken collect2 doesn't work under 4.3+
15045 collect2name=`${CC} -print-prog-name=collect2`
15046 if test -f "$collect2name" && \
15047 strings "$collect2name" | grep resolve_lib_name >/dev/null
15048 then
15049 # We have reworked collect2
15050 :
15051 else
15052 # We have old collect2
15053 hardcode_direct_F77=unsupported
15054 # It fails to find uninstalled libraries when the uninstalled
15055 # path is not listed in the libpath. Setting hardcode_minus_L
15056 # to unsupported forces relinking
15057 hardcode_minus_L_F77=yes
15058 hardcode_libdir_flag_spec_F77='-L$libdir'
15059 hardcode_libdir_separator_F77=
15060 fi
15061 ;;
15062 esac
15063 shared_flag='-shared'
15064 if test "$aix_use_runtimelinking" = yes; then
15065 shared_flag="$shared_flag "'${wl}-G'
15066 fi
15067 else
15068 # not using gcc
15069 if test "$host_cpu" = ia64; then
15070 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15071 # chokes on -Wl,-G. The following line is correct:
15072 shared_flag='-G'
15073 else
15074 if test "$aix_use_runtimelinking" = yes; then
15075 shared_flag='${wl}-G'
15076 else
15077 shared_flag='${wl}-bM:SRE'
15078 fi
15079 fi
15080 fi
15081
15082 # It seems that -bexpall does not export symbols beginning with
15083 # underscore (_), so it is better to generate a list of symbols to export.
15084 always_export_symbols_F77=yes
15085 if test "$aix_use_runtimelinking" = yes; then
15086 # Warning - without using the other runtime loading flags (-brtl),
15087 # -berok will link without error, but may produce a broken library.
15088 allow_undefined_flag_F77='-berok'
15089 # Determine the default libpath from the value encoded in an empty executable.
15090 cat >conftest.$ac_ext <<_ACEOF
15091 program main
15092
15093 end
15094 _ACEOF
15095 rm -f conftest.$ac_objext conftest$ac_exeext
15096 if { (ac_try="$ac_link"
15097 case "(($ac_try" in
15098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099 *) ac_try_echo=$ac_try;;
15100 esac
15101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15102 $as_echo "$ac_try_echo") >&5
15103 (eval "$ac_link") 2>conftest.er1
15104 ac_status=$?
15105 grep -v '^ *+' conftest.er1 >conftest.err
15106 rm -f conftest.er1
15107 cat conftest.err >&5
15108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); } && {
15110 test -z "$ac_f77_werror_flag" ||
15111 test ! -s conftest.err
15112 } && test -s conftest$ac_exeext && {
15113 test "$cross_compiling" = yes ||
15114 $as_test_x conftest$ac_exeext
15115 }; then
15116
15117 lt_aix_libpath_sed='
15118 /Import File Strings/,/^$/ {
15119 /^0/ {
15120 s/^0 *\(.*\)$/\1/
15121 p
15122 }
15123 }'
15124 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15125 # Check for a 64-bit object if we didn't find anything.
15126 if test -z "$aix_libpath"; then
15127 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15128 fi
15129 else
15130 $as_echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15132
15133
15134 fi
15135
15136 rm -rf conftest.dSYM
15137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15138 conftest$ac_exeext conftest.$ac_ext
15139 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15140
15141 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15142 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"
15143 else
15144 if test "$host_cpu" = ia64; then
15145 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15146 allow_undefined_flag_F77="-z nodefs"
15147 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"
15148 else
15149 # Determine the default libpath from the value encoded in an empty executable.
15150 cat >conftest.$ac_ext <<_ACEOF
15151 program main
15152
15153 end
15154 _ACEOF
15155 rm -f conftest.$ac_objext conftest$ac_exeext
15156 if { (ac_try="$ac_link"
15157 case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15160 esac
15161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15162 $as_echo "$ac_try_echo") >&5
15163 (eval "$ac_link") 2>conftest.er1
15164 ac_status=$?
15165 grep -v '^ *+' conftest.er1 >conftest.err
15166 rm -f conftest.er1
15167 cat conftest.err >&5
15168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); } && {
15170 test -z "$ac_f77_werror_flag" ||
15171 test ! -s conftest.err
15172 } && test -s conftest$ac_exeext && {
15173 test "$cross_compiling" = yes ||
15174 $as_test_x conftest$ac_exeext
15175 }; then
15176
15177 lt_aix_libpath_sed='
15178 /Import File Strings/,/^$/ {
15179 /^0/ {
15180 s/^0 *\(.*\)$/\1/
15181 p
15182 }
15183 }'
15184 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15185 # Check for a 64-bit object if we didn't find anything.
15186 if test -z "$aix_libpath"; then
15187 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15188 fi
15189 else
15190 $as_echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.$ac_ext >&5
15192
15193
15194 fi
15195
15196 rm -rf conftest.dSYM
15197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15198 conftest$ac_exeext conftest.$ac_ext
15199 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15200
15201 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15202 # Warning - without using the other run time loading flags,
15203 # -berok will link without error, but may produce a broken library.
15204 no_undefined_flag_F77=' ${wl}-bernotok'
15205 allow_undefined_flag_F77=' ${wl}-berok'
15206 # Exported symbols can be pulled into shared objects from archives
15207 whole_archive_flag_spec_F77='$convenience'
15208 archive_cmds_need_lc_F77=yes
15209 # This is similar to how AIX traditionally builds its shared libraries.
15210 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'
15211 fi
15212 fi
15213 ;;
15214
15215 amigaos*)
15216 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)'
15217 hardcode_libdir_flag_spec_F77='-L$libdir'
15218 hardcode_minus_L_F77=yes
15219 # see comment about different semantics on the GNU ld section
15220 ld_shlibs_F77=no
15221 ;;
15222
15223 bsdi[45]*)
15224 export_dynamic_flag_spec_F77=-rdynamic
15225 ;;
15226
15227 cygwin* | mingw* | pw32*)
15228 # When not using gcc, we currently assume that we are using
15229 # Microsoft Visual C++.
15230 # hardcode_libdir_flag_spec is actually meaningless, as there is
15231 # no search path for DLLs.
15232 hardcode_libdir_flag_spec_F77=' '
15233 allow_undefined_flag_F77=unsupported
15234 # Tell ltmain to make .lib files, not .a files.
15235 libext=lib
15236 # Tell ltmain to make .dll files, not .so files.
15237 shrext_cmds=".dll"
15238 # FIXME: Setting linknames here is a bad hack.
15239 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15240 # The linker will automatically build a .lib file if we build a DLL.
15241 old_archive_From_new_cmds_F77='true'
15242 # FIXME: Should let the user specify the lib program.
15243 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15244 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15245 enable_shared_with_static_runtimes_F77=yes
15246 ;;
15247
15248 darwin* | rhapsody*)
15249 case $host_os in
15250 rhapsody* | darwin1.[012])
15251 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15252 ;;
15253 *) # Darwin 1.3 on
15254 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15255 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15256 else
15257 case ${MACOSX_DEPLOYMENT_TARGET} in
15258 10.[012])
15259 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15260 ;;
15261 10.*)
15262 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15263 ;;
15264 esac
15265 fi
15266 ;;
15267 esac
15268 archive_cmds_need_lc_F77=no
15269 hardcode_direct_F77=no
15270 hardcode_automatic_F77=yes
15271 hardcode_shlibpath_var_F77=unsupported
15272 whole_archive_flag_spec_F77=''
15273 link_all_deplibs_F77=yes
15274 if test "$GCC" = yes ; then
15275 output_verbose_link_cmd='echo'
15276 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}"
15277 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15278 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}"
15279 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}"
15280 else
15281 case $cc_basename in
15282 xlc*)
15283 output_verbose_link_cmd='echo'
15284 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15285 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15286 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15287 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}'
15288 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}'
15289 ;;
15290 *)
15291 ld_shlibs_F77=no
15292 ;;
15293 esac
15294 fi
15295 ;;
15296
15297 dgux*)
15298 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15299 hardcode_libdir_flag_spec_F77='-L$libdir'
15300 hardcode_shlibpath_var_F77=no
15301 ;;
15302
15303 freebsd1*)
15304 ld_shlibs_F77=no
15305 ;;
15306
15307 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15308 # support. Future versions do this automatically, but an explicit c++rt0.o
15309 # does not break anything, and helps significantly (at the cost of a little
15310 # extra space).
15311 freebsd2.2*)
15312 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15313 hardcode_libdir_flag_spec_F77='-R$libdir'
15314 hardcode_direct_F77=yes
15315 hardcode_shlibpath_var_F77=no
15316 ;;
15317
15318 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15319 freebsd2*)
15320 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15321 hardcode_direct_F77=yes
15322 hardcode_minus_L_F77=yes
15323 hardcode_shlibpath_var_F77=no
15324 ;;
15325
15326 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15327 freebsd* | dragonfly*)
15328 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15329 hardcode_libdir_flag_spec_F77='-R$libdir'
15330 hardcode_direct_F77=yes
15331 hardcode_shlibpath_var_F77=no
15332 ;;
15333
15334 hpux9*)
15335 if test "$GCC" = yes; then
15336 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'
15337 else
15338 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'
15339 fi
15340 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15341 hardcode_libdir_separator_F77=:
15342 hardcode_direct_F77=yes
15343
15344 # hardcode_minus_L: Not really in the search PATH,
15345 # but as the default location of the library.
15346 hardcode_minus_L_F77=yes
15347 export_dynamic_flag_spec_F77='${wl}-E'
15348 ;;
15349
15350 hpux10*)
15351 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15352 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15353 else
15354 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15355 fi
15356 if test "$with_gnu_ld" = no; then
15357 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15358 hardcode_libdir_separator_F77=:
15359
15360 hardcode_direct_F77=yes
15361 export_dynamic_flag_spec_F77='${wl}-E'
15362
15363 # hardcode_minus_L: Not really in the search PATH,
15364 # but as the default location of the library.
15365 hardcode_minus_L_F77=yes
15366 fi
15367 ;;
15368
15369 hpux11*)
15370 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15371 case $host_cpu in
15372 hppa*64*)
15373 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15374 ;;
15375 ia64*)
15376 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15377 ;;
15378 *)
15379 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15380 ;;
15381 esac
15382 else
15383 case $host_cpu in
15384 hppa*64*)
15385 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15386 ;;
15387 ia64*)
15388 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15389 ;;
15390 *)
15391 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15392 ;;
15393 esac
15394 fi
15395 if test "$with_gnu_ld" = no; then
15396 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15397 hardcode_libdir_separator_F77=:
15398
15399 case $host_cpu in
15400 hppa*64*|ia64*)
15401 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15402 hardcode_direct_F77=no
15403 hardcode_shlibpath_var_F77=no
15404 ;;
15405 *)
15406 hardcode_direct_F77=yes
15407 export_dynamic_flag_spec_F77='${wl}-E'
15408
15409 # hardcode_minus_L: Not really in the search PATH,
15410 # but as the default location of the library.
15411 hardcode_minus_L_F77=yes
15412 ;;
15413 esac
15414 fi
15415 ;;
15416
15417 irix5* | irix6* | nonstopux*)
15418 if test "$GCC" = yes; then
15419 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'
15420 else
15421 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'
15422 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15423 fi
15424 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15425 hardcode_libdir_separator_F77=:
15426 link_all_deplibs_F77=yes
15427 ;;
15428
15429 netbsd*)
15430 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15431 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15432 else
15433 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15434 fi
15435 hardcode_libdir_flag_spec_F77='-R$libdir'
15436 hardcode_direct_F77=yes
15437 hardcode_shlibpath_var_F77=no
15438 ;;
15439
15440 newsos6)
15441 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15442 hardcode_direct_F77=yes
15443 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15444 hardcode_libdir_separator_F77=:
15445 hardcode_shlibpath_var_F77=no
15446 ;;
15447
15448 openbsd*)
15449 if test -f /usr/libexec/ld.so; then
15450 hardcode_direct_F77=yes
15451 hardcode_shlibpath_var_F77=no
15452 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15453 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15454 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15455 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15456 export_dynamic_flag_spec_F77='${wl}-E'
15457 else
15458 case $host_os in
15459 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15460 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15461 hardcode_libdir_flag_spec_F77='-R$libdir'
15462 ;;
15463 *)
15464 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15465 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15466 ;;
15467 esac
15468 fi
15469 else
15470 ld_shlibs_F77=no
15471 fi
15472 ;;
15473
15474 os2*)
15475 hardcode_libdir_flag_spec_F77='-L$libdir'
15476 hardcode_minus_L_F77=yes
15477 allow_undefined_flag_F77=unsupported
15478 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'
15479 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15480 ;;
15481
15482 osf3*)
15483 if test "$GCC" = yes; then
15484 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15485 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'
15486 else
15487 allow_undefined_flag_F77=' -expect_unresolved \*'
15488 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'
15489 fi
15490 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15491 hardcode_libdir_separator_F77=:
15492 ;;
15493
15494 osf4* | osf5*) # as osf3* with the addition of -msym flag
15495 if test "$GCC" = yes; then
15496 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15497 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'
15498 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15499 else
15500 allow_undefined_flag_F77=' -expect_unresolved \*'
15501 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'
15502 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~
15503 $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'
15504
15505 # Both c and cxx compiler support -rpath directly
15506 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15507 fi
15508 hardcode_libdir_separator_F77=:
15509 ;;
15510
15511 solaris*)
15512 no_undefined_flag_F77=' -z text'
15513 if test "$GCC" = yes; then
15514 wlarc='${wl}'
15515 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15516 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15517 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15518 else
15519 wlarc=''
15520 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15521 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15522 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15523 fi
15524 hardcode_libdir_flag_spec_F77='-R$libdir'
15525 hardcode_shlibpath_var_F77=no
15526 case $host_os in
15527 solaris2.[0-5] | solaris2.[0-5].*) ;;
15528 *)
15529 # The compiler driver will combine and reorder linker options,
15530 # but understands `-z linker_flag'. GCC discards it without `$wl',
15531 # but is careful enough not to reorder.
15532 # Supported since Solaris 2.6 (maybe 2.5.1?)
15533 if test "$GCC" = yes; then
15534 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15535 else
15536 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15537 fi
15538 ;;
15539 esac
15540 link_all_deplibs_F77=yes
15541 ;;
15542
15543 sunos4*)
15544 if test "x$host_vendor" = xsequent; then
15545 # Use $CC to link under sequent, because it throws in some extra .o
15546 # files that make .init and .fini sections work.
15547 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15548 else
15549 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15550 fi
15551 hardcode_libdir_flag_spec_F77='-L$libdir'
15552 hardcode_direct_F77=yes
15553 hardcode_minus_L_F77=yes
15554 hardcode_shlibpath_var_F77=no
15555 ;;
15556
15557 sysv4)
15558 case $host_vendor in
15559 sni)
15560 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15561 hardcode_direct_F77=yes # is this really true???
15562 ;;
15563 siemens)
15564 ## LD is ld it makes a PLAMLIB
15565 ## CC just makes a GrossModule.
15566 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15567 reload_cmds_F77='$CC -r -o $output$reload_objs'
15568 hardcode_direct_F77=no
15569 ;;
15570 motorola)
15571 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15572 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15573 ;;
15574 esac
15575 runpath_var='LD_RUN_PATH'
15576 hardcode_shlibpath_var_F77=no
15577 ;;
15578
15579 sysv4.3*)
15580 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15581 hardcode_shlibpath_var_F77=no
15582 export_dynamic_flag_spec_F77='-Bexport'
15583 ;;
15584
15585 sysv4*MP*)
15586 if test -d /usr/nec; then
15587 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15588 hardcode_shlibpath_var_F77=no
15589 runpath_var=LD_RUN_PATH
15590 hardcode_runpath_var=yes
15591 ld_shlibs_F77=yes
15592 fi
15593 ;;
15594
15595 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15596 no_undefined_flag_F77='${wl}-z,text'
15597 archive_cmds_need_lc_F77=no
15598 hardcode_shlibpath_var_F77=no
15599 runpath_var='LD_RUN_PATH'
15600
15601 if test "$GCC" = yes; then
15602 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15603 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15604 else
15605 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15606 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15607 fi
15608 ;;
15609
15610 sysv5* | sco3.2v5* | sco5v6*)
15611 # Note: We can NOT use -z defs as we might desire, because we do not
15612 # link with -lc, and that would cause any symbols used from libc to
15613 # always be unresolved, which means just about no library would
15614 # ever link correctly. If we're not using GNU ld we use -z text
15615 # though, which does catch some bad symbols but isn't as heavy-handed
15616 # as -z defs.
15617 no_undefined_flag_F77='${wl}-z,text'
15618 allow_undefined_flag_F77='${wl}-z,nodefs'
15619 archive_cmds_need_lc_F77=no
15620 hardcode_shlibpath_var_F77=no
15621 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15622 hardcode_libdir_separator_F77=':'
15623 link_all_deplibs_F77=yes
15624 export_dynamic_flag_spec_F77='${wl}-Bexport'
15625 runpath_var='LD_RUN_PATH'
15626
15627 if test "$GCC" = yes; then
15628 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15629 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15630 else
15631 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15632 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15633 fi
15634 ;;
15635
15636 uts4*)
15637 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15638 hardcode_libdir_flag_spec_F77='-L$libdir'
15639 hardcode_shlibpath_var_F77=no
15640 ;;
15641
15642 *)
15643 ld_shlibs_F77=no
15644 ;;
15645 esac
15646 fi
15647
15648 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15649 $as_echo "$ld_shlibs_F77" >&6; }
15650 test "$ld_shlibs_F77" = no && can_build_shared=no
15651
15652 #
15653 # Do we need to explicitly link libc?
15654 #
15655 case "x$archive_cmds_need_lc_F77" in
15656 x|xyes)
15657 # Assume -lc should be added
15658 archive_cmds_need_lc_F77=yes
15659
15660 if test "$enable_shared" = yes && test "$GCC" = yes; then
15661 case $archive_cmds_F77 in
15662 *'~'*)
15663 # FIXME: we may have to deal with multi-command sequences.
15664 ;;
15665 '$CC '*)
15666 # Test whether the compiler implicitly links with -lc since on some
15667 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15668 # to ld, don't add -lc before -lgcc.
15669 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15670 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15671 $rm conftest*
15672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15673
15674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15675 (eval $ac_compile) 2>&5
15676 ac_status=$?
15677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } 2>conftest.err; then
15679 soname=conftest
15680 lib=conftest
15681 libobjs=conftest.$ac_objext
15682 deplibs=
15683 wl=$lt_prog_compiler_wl_F77
15684 pic_flag=$lt_prog_compiler_pic_F77
15685 compiler_flags=-v
15686 linker_flags=-v
15687 verstring=
15688 output_objdir=.
15689 libname=conftest
15690 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15691 allow_undefined_flag_F77=
15692 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15693 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15694 ac_status=$?
15695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }
15697 then
15698 archive_cmds_need_lc_F77=no
15699 else
15700 archive_cmds_need_lc_F77=yes
15701 fi
15702 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15703 else
15704 cat conftest.err 1>&5
15705 fi
15706 $rm conftest*
15707 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15708 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15709 ;;
15710 esac
15711 fi
15712 ;;
15713 esac
15714
15715 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15716 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15717 library_names_spec=
15718 libname_spec='lib$name'
15719 soname_spec=
15720 shrext_cmds=".so"
15721 postinstall_cmds=
15722 postuninstall_cmds=
15723 finish_cmds=
15724 finish_eval=
15725 shlibpath_var=
15726 shlibpath_overrides_runpath=unknown
15727 version_type=none
15728 dynamic_linker="$host_os ld.so"
15729 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15730
15731 need_lib_prefix=unknown
15732 hardcode_into_libs=no
15733
15734 # when you set need_version to no, make sure it does not cause -set_version
15735 # flags to be left without arguments
15736 need_version=unknown
15737
15738 case $host_os in
15739 aix3*)
15740 version_type=linux
15741 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15742 shlibpath_var=LIBPATH
15743
15744 # AIX 3 has no versioning support, so we append a major version to the name.
15745 soname_spec='${libname}${release}${shared_ext}$major'
15746 ;;
15747
15748 aix[4-9]*)
15749 version_type=linux
15750 need_lib_prefix=no
15751 need_version=no
15752 hardcode_into_libs=yes
15753 if test "$host_cpu" = ia64; then
15754 # AIX 5 supports IA64
15755 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15756 shlibpath_var=LD_LIBRARY_PATH
15757 else
15758 # With GCC up to 2.95.x, collect2 would create an import file
15759 # for dependence libraries. The import file would start with
15760 # the line `#! .'. This would cause the generated library to
15761 # depend on `.', always an invalid library. This was fixed in
15762 # development snapshots of GCC prior to 3.0.
15763 case $host_os in
15764 aix4 | aix4.[01] | aix4.[01].*)
15765 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15766 echo ' yes '
15767 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15768 :
15769 else
15770 can_build_shared=no
15771 fi
15772 ;;
15773 esac
15774 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15775 # soname into executable. Probably we can add versioning support to
15776 # collect2, so additional links can be useful in future.
15777 if test "$aix_use_runtimelinking" = yes; then
15778 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15779 # instead of lib<name>.a to let people know that these are not
15780 # typical AIX shared libraries.
15781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15782 else
15783 # We preserve .a as extension for shared libraries through AIX4.2
15784 # and later when we are not doing run time linking.
15785 library_names_spec='${libname}${release}.a $libname.a'
15786 soname_spec='${libname}${release}${shared_ext}$major'
15787 fi
15788 shlibpath_var=LIBPATH
15789 fi
15790 ;;
15791
15792 amigaos*)
15793 library_names_spec='$libname.ixlibrary $libname.a'
15794 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15795 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'
15796 ;;
15797
15798 beos*)
15799 library_names_spec='${libname}${shared_ext}'
15800 dynamic_linker="$host_os ld.so"
15801 shlibpath_var=LIBRARY_PATH
15802 ;;
15803
15804 bsdi[45]*)
15805 version_type=linux
15806 need_version=no
15807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15808 soname_spec='${libname}${release}${shared_ext}$major'
15809 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15810 shlibpath_var=LD_LIBRARY_PATH
15811 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15812 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15813 # the default ld.so.conf also contains /usr/contrib/lib and
15814 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15815 # libtool to hard-code these into programs
15816 ;;
15817
15818 cygwin* | mingw* | pw32*)
15819 version_type=windows
15820 shrext_cmds=".dll"
15821 need_version=no
15822 need_lib_prefix=no
15823
15824 case $GCC,$host_os in
15825 yes,cygwin* | yes,mingw* | yes,pw32*)
15826 library_names_spec='$libname.dll.a'
15827 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15828 postinstall_cmds='base_file=`basename \${file}`~
15829 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15830 dldir=$destdir/`dirname \$dlpath`~
15831 test -d \$dldir || mkdir -p \$dldir~
15832 $install_prog $dir/$dlname \$dldir/$dlname~
15833 chmod a+x \$dldir/$dlname'
15834 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15835 dlpath=$dir/\$dldll~
15836 $rm \$dlpath'
15837 shlibpath_overrides_runpath=yes
15838
15839 case $host_os in
15840 cygwin*)
15841 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15842 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15843 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15844 ;;
15845 mingw*)
15846 # MinGW DLLs use traditional 'lib' prefix
15847 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15848 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15849 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15850 # It is most probably a Windows format PATH printed by
15851 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15852 # path with ; separators, and with drive letters. We can handle the
15853 # drive letters (cygwin fileutils understands them), so leave them,
15854 # especially as we might pass files found there to a mingw objdump,
15855 # which wouldn't understand a cygwinified path. Ahh.
15856 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15857 else
15858 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15859 fi
15860 ;;
15861 pw32*)
15862 # pw32 DLLs use 'pw' prefix rather than 'lib'
15863 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15864 ;;
15865 esac
15866 ;;
15867
15868 *)
15869 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15870 ;;
15871 esac
15872 dynamic_linker='Win32 ld.exe'
15873 # FIXME: first we should search . and the directory the executable is in
15874 shlibpath_var=PATH
15875 ;;
15876
15877 darwin* | rhapsody*)
15878 dynamic_linker="$host_os dyld"
15879 version_type=darwin
15880 need_lib_prefix=no
15881 need_version=no
15882 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15883 soname_spec='${libname}${release}${major}$shared_ext'
15884 shlibpath_overrides_runpath=yes
15885 shlibpath_var=DYLD_LIBRARY_PATH
15886 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15887
15888 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15889 ;;
15890
15891 dgux*)
15892 version_type=linux
15893 need_lib_prefix=no
15894 need_version=no
15895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15896 soname_spec='${libname}${release}${shared_ext}$major'
15897 shlibpath_var=LD_LIBRARY_PATH
15898 ;;
15899
15900 freebsd1*)
15901 dynamic_linker=no
15902 ;;
15903
15904 freebsd* | dragonfly*)
15905 # DragonFly does not have aout. When/if they implement a new
15906 # versioning mechanism, adjust this.
15907 if test -x /usr/bin/objformat; then
15908 objformat=`/usr/bin/objformat`
15909 else
15910 case $host_os in
15911 freebsd[123]*) objformat=aout ;;
15912 *) objformat=elf ;;
15913 esac
15914 fi
15915 version_type=freebsd-$objformat
15916 case $version_type in
15917 freebsd-elf*)
15918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15919 need_version=no
15920 need_lib_prefix=no
15921 ;;
15922 freebsd-*)
15923 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15924 need_version=yes
15925 ;;
15926 esac
15927 shlibpath_var=LD_LIBRARY_PATH
15928 case $host_os in
15929 freebsd2*)
15930 shlibpath_overrides_runpath=yes
15931 ;;
15932 freebsd3.[01]* | freebsdelf3.[01]*)
15933 shlibpath_overrides_runpath=yes
15934 hardcode_into_libs=yes
15935 ;;
15936 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15937 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15938 shlibpath_overrides_runpath=no
15939 hardcode_into_libs=yes
15940 ;;
15941 *) # from 4.6 on, and DragonFly
15942 shlibpath_overrides_runpath=yes
15943 hardcode_into_libs=yes
15944 ;;
15945 esac
15946 ;;
15947
15948 gnu*)
15949 version_type=linux
15950 need_lib_prefix=no
15951 need_version=no
15952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15953 soname_spec='${libname}${release}${shared_ext}$major'
15954 shlibpath_var=LD_LIBRARY_PATH
15955 hardcode_into_libs=yes
15956 ;;
15957
15958 hpux9* | hpux10* | hpux11*)
15959 # Give a soname corresponding to the major version so that dld.sl refuses to
15960 # link against other versions.
15961 version_type=sunos
15962 need_lib_prefix=no
15963 need_version=no
15964 case $host_cpu in
15965 ia64*)
15966 shrext_cmds='.so'
15967 hardcode_into_libs=yes
15968 dynamic_linker="$host_os dld.so"
15969 shlibpath_var=LD_LIBRARY_PATH
15970 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15972 soname_spec='${libname}${release}${shared_ext}$major'
15973 if test "X$HPUX_IA64_MODE" = X32; then
15974 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15975 else
15976 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15977 fi
15978 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15979 ;;
15980 hppa*64*)
15981 shrext_cmds='.sl'
15982 hardcode_into_libs=yes
15983 dynamic_linker="$host_os dld.sl"
15984 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15985 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15987 soname_spec='${libname}${release}${shared_ext}$major'
15988 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15989 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15990 ;;
15991 *)
15992 shrext_cmds='.sl'
15993 dynamic_linker="$host_os dld.sl"
15994 shlibpath_var=SHLIB_PATH
15995 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15997 soname_spec='${libname}${release}${shared_ext}$major'
15998 ;;
15999 esac
16000 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16001 postinstall_cmds='chmod 555 $lib'
16002 ;;
16003
16004 interix[3-9]*)
16005 version_type=linux
16006 need_lib_prefix=no
16007 need_version=no
16008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16009 soname_spec='${libname}${release}${shared_ext}$major'
16010 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16011 shlibpath_var=LD_LIBRARY_PATH
16012 shlibpath_overrides_runpath=no
16013 hardcode_into_libs=yes
16014 ;;
16015
16016 irix5* | irix6* | nonstopux*)
16017 case $host_os in
16018 nonstopux*) version_type=nonstopux ;;
16019 *)
16020 if test "$lt_cv_prog_gnu_ld" = yes; then
16021 version_type=linux
16022 else
16023 version_type=irix
16024 fi ;;
16025 esac
16026 need_lib_prefix=no
16027 need_version=no
16028 soname_spec='${libname}${release}${shared_ext}$major'
16029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16030 case $host_os in
16031 irix5* | nonstopux*)
16032 libsuff= shlibsuff=
16033 ;;
16034 *)
16035 case $LD in # libtool.m4 will add one of these switches to LD
16036 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16037 libsuff= shlibsuff= libmagic=32-bit;;
16038 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16039 libsuff=32 shlibsuff=N32 libmagic=N32;;
16040 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16041 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16042 *) libsuff= shlibsuff= libmagic=never-match;;
16043 esac
16044 ;;
16045 esac
16046 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16047 shlibpath_overrides_runpath=no
16048 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16049 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16050 hardcode_into_libs=yes
16051 ;;
16052
16053 # No shared lib support for Linux oldld, aout, or coff.
16054 linux*oldld* | linux*aout* | linux*coff*)
16055 dynamic_linker=no
16056 ;;
16057
16058 # This must be Linux ELF.
16059 linux* | k*bsd*-gnu)
16060 version_type=linux
16061 need_lib_prefix=no
16062 need_version=no
16063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16064 soname_spec='${libname}${release}${shared_ext}$major'
16065 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16066 shlibpath_var=LD_LIBRARY_PATH
16067 shlibpath_overrides_runpath=no
16068 # This implies no fast_install, which is unacceptable.
16069 # Some rework will be needed to allow for fast_install
16070 # before this can be enabled.
16071 hardcode_into_libs=yes
16072
16073 # Append ld.so.conf contents to the search path
16074 if test -f /etc/ld.so.conf; then
16075 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' ' '`
16076 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16077 fi
16078
16079 # We used to test for /lib/ld.so.1 and disable shared libraries on
16080 # powerpc, because MkLinux only supported shared libraries with the
16081 # GNU dynamic linker. Since this was broken with cross compilers,
16082 # most powerpc-linux boxes support dynamic linking these days and
16083 # people can always --disable-shared, the test was removed, and we
16084 # assume the GNU/Linux dynamic linker is in use.
16085 dynamic_linker='GNU/Linux ld.so'
16086 ;;
16087
16088 netbsd*)
16089 version_type=sunos
16090 need_lib_prefix=no
16091 need_version=no
16092 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16095 dynamic_linker='NetBSD (a.out) ld.so'
16096 else
16097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16098 soname_spec='${libname}${release}${shared_ext}$major'
16099 dynamic_linker='NetBSD ld.elf_so'
16100 fi
16101 shlibpath_var=LD_LIBRARY_PATH
16102 shlibpath_overrides_runpath=yes
16103 hardcode_into_libs=yes
16104 ;;
16105
16106 newsos6)
16107 version_type=linux
16108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16109 shlibpath_var=LD_LIBRARY_PATH
16110 shlibpath_overrides_runpath=yes
16111 ;;
16112
16113 nto-qnx*)
16114 version_type=linux
16115 need_lib_prefix=no
16116 need_version=no
16117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16118 soname_spec='${libname}${release}${shared_ext}$major'
16119 shlibpath_var=LD_LIBRARY_PATH
16120 shlibpath_overrides_runpath=yes
16121 ;;
16122
16123 openbsd*)
16124 version_type=sunos
16125 sys_lib_dlsearch_path_spec="/usr/lib"
16126 need_lib_prefix=no
16127 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16128 case $host_os in
16129 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16130 *) need_version=no ;;
16131 esac
16132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16134 shlibpath_var=LD_LIBRARY_PATH
16135 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16136 case $host_os in
16137 openbsd2.[89] | openbsd2.[89].*)
16138 shlibpath_overrides_runpath=no
16139 ;;
16140 *)
16141 shlibpath_overrides_runpath=yes
16142 ;;
16143 esac
16144 else
16145 shlibpath_overrides_runpath=yes
16146 fi
16147 ;;
16148
16149 os2*)
16150 libname_spec='$name'
16151 shrext_cmds=".dll"
16152 need_lib_prefix=no
16153 library_names_spec='$libname${shared_ext} $libname.a'
16154 dynamic_linker='OS/2 ld.exe'
16155 shlibpath_var=LIBPATH
16156 ;;
16157
16158 osf3* | osf4* | osf5*)
16159 version_type=osf
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${shared_ext}'
16164 shlibpath_var=LD_LIBRARY_PATH
16165 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16166 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16167 ;;
16168
16169 rdos*)
16170 dynamic_linker=no
16171 ;;
16172
16173 solaris*)
16174 version_type=linux
16175 need_lib_prefix=no
16176 need_version=no
16177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16178 soname_spec='${libname}${release}${shared_ext}$major'
16179 shlibpath_var=LD_LIBRARY_PATH
16180 shlibpath_overrides_runpath=yes
16181 hardcode_into_libs=yes
16182 # ldd complains unless libraries are executable
16183 postinstall_cmds='chmod +x $lib'
16184 ;;
16185
16186 sunos4*)
16187 version_type=sunos
16188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16189 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16190 shlibpath_var=LD_LIBRARY_PATH
16191 shlibpath_overrides_runpath=yes
16192 if test "$with_gnu_ld" = yes; then
16193 need_lib_prefix=no
16194 fi
16195 need_version=yes
16196 ;;
16197
16198 sysv4 | sysv4.3*)
16199 version_type=linux
16200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16201 soname_spec='${libname}${release}${shared_ext}$major'
16202 shlibpath_var=LD_LIBRARY_PATH
16203 case $host_vendor in
16204 sni)
16205 shlibpath_overrides_runpath=no
16206 need_lib_prefix=no
16207 export_dynamic_flag_spec='${wl}-Blargedynsym'
16208 runpath_var=LD_RUN_PATH
16209 ;;
16210 siemens)
16211 need_lib_prefix=no
16212 ;;
16213 motorola)
16214 need_lib_prefix=no
16215 need_version=no
16216 shlibpath_overrides_runpath=no
16217 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16218 ;;
16219 esac
16220 ;;
16221
16222 sysv4*MP*)
16223 if test -d /usr/nec ;then
16224 version_type=linux
16225 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16226 soname_spec='$libname${shared_ext}.$major'
16227 shlibpath_var=LD_LIBRARY_PATH
16228 fi
16229 ;;
16230
16231 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16232 version_type=freebsd-elf
16233 need_lib_prefix=no
16234 need_version=no
16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16236 soname_spec='${libname}${release}${shared_ext}$major'
16237 shlibpath_var=LD_LIBRARY_PATH
16238 hardcode_into_libs=yes
16239 if test "$with_gnu_ld" = yes; then
16240 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16241 shlibpath_overrides_runpath=no
16242 else
16243 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16244 shlibpath_overrides_runpath=yes
16245 case $host_os in
16246 sco3.2v5*)
16247 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16248 ;;
16249 esac
16250 fi
16251 sys_lib_dlsearch_path_spec='/usr/lib'
16252 ;;
16253
16254 uts4*)
16255 version_type=linux
16256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16257 soname_spec='${libname}${release}${shared_ext}$major'
16258 shlibpath_var=LD_LIBRARY_PATH
16259 ;;
16260
16261 *)
16262 dynamic_linker=no
16263 ;;
16264 esac
16265 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16266 $as_echo "$dynamic_linker" >&6; }
16267 test "$dynamic_linker" = no && can_build_shared=no
16268
16269 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16270 $as_echo_n "(cached) " >&6
16271 else
16272 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16273 fi
16274
16275 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16276 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16277 $as_echo_n "(cached) " >&6
16278 else
16279 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16280 fi
16281
16282 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16283
16284 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16285 if test "$GCC" = yes; then
16286 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16287 fi
16288
16289 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16290 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16291 hardcode_action_F77=
16292 if test -n "$hardcode_libdir_flag_spec_F77" || \
16293 test -n "$runpath_var_F77" || \
16294 test "X$hardcode_automatic_F77" = "Xyes" ; then
16295
16296 # We can hardcode non-existant directories.
16297 if test "$hardcode_direct_F77" != no &&
16298 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16299 # have to relink, otherwise we might link with an installed library
16300 # when we should be linking with a yet-to-be-installed one
16301 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16302 test "$hardcode_minus_L_F77" != no; then
16303 # Linking always hardcodes the temporary library directory.
16304 hardcode_action_F77=relink
16305 else
16306 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16307 hardcode_action_F77=immediate
16308 fi
16309 else
16310 # We cannot hardcode anything, or else we can only hardcode existing
16311 # directories.
16312 hardcode_action_F77=unsupported
16313 fi
16314 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16315 $as_echo "$hardcode_action_F77" >&6; }
16316
16317 if test "$hardcode_action_F77" = relink; then
16318 # Fast installation is not supported
16319 enable_fast_install=no
16320 elif test "$shlibpath_overrides_runpath" = yes ||
16321 test "$enable_shared" = no; then
16322 # Fast installation is not necessary
16323 enable_fast_install=needless
16324 fi
16325
16326
16327 # The else clause should only fire when bootstrapping the
16328 # libtool distribution, otherwise you forgot to ship ltmain.sh
16329 # with your package, and you will get complaints that there are
16330 # no rules to generate ltmain.sh.
16331 if test -f "$ltmain"; then
16332 # See if we are running on zsh, and set the options which allow our commands through
16333 # without removal of \ escapes.
16334 if test -n "${ZSH_VERSION+set}" ; then
16335 setopt NO_GLOB_SUBST
16336 fi
16337 # Now quote all the things that may contain metacharacters while being
16338 # careful not to overquote the AC_SUBSTed values. We take copies of the
16339 # variables and quote the copies for generation of the libtool script.
16340 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16341 SED SHELL STRIP \
16342 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16343 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16344 deplibs_check_method reload_flag reload_cmds need_locks \
16345 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16346 lt_cv_sys_global_symbol_to_c_name_address \
16347 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16348 old_postinstall_cmds old_postuninstall_cmds \
16349 compiler_F77 \
16350 CC_F77 \
16351 LD_F77 \
16352 lt_prog_compiler_wl_F77 \
16353 lt_prog_compiler_pic_F77 \
16354 lt_prog_compiler_static_F77 \
16355 lt_prog_compiler_no_builtin_flag_F77 \
16356 export_dynamic_flag_spec_F77 \
16357 thread_safe_flag_spec_F77 \
16358 whole_archive_flag_spec_F77 \
16359 enable_shared_with_static_runtimes_F77 \
16360 old_archive_cmds_F77 \
16361 old_archive_from_new_cmds_F77 \
16362 predep_objects_F77 \
16363 postdep_objects_F77 \
16364 predeps_F77 \
16365 postdeps_F77 \
16366 compiler_lib_search_path_F77 \
16367 compiler_lib_search_dirs_F77 \
16368 archive_cmds_F77 \
16369 archive_expsym_cmds_F77 \
16370 postinstall_cmds_F77 \
16371 postuninstall_cmds_F77 \
16372 old_archive_from_expsyms_cmds_F77 \
16373 allow_undefined_flag_F77 \
16374 no_undefined_flag_F77 \
16375 export_symbols_cmds_F77 \
16376 hardcode_libdir_flag_spec_F77 \
16377 hardcode_libdir_flag_spec_ld_F77 \
16378 hardcode_libdir_separator_F77 \
16379 hardcode_automatic_F77 \
16380 module_cmds_F77 \
16381 module_expsym_cmds_F77 \
16382 lt_cv_prog_compiler_c_o_F77 \
16383 fix_srcfile_path_F77 \
16384 exclude_expsyms_F77 \
16385 include_expsyms_F77; do
16386
16387 case $var in
16388 old_archive_cmds_F77 | \
16389 old_archive_from_new_cmds_F77 | \
16390 archive_cmds_F77 | \
16391 archive_expsym_cmds_F77 | \
16392 module_cmds_F77 | \
16393 module_expsym_cmds_F77 | \
16394 old_archive_from_expsyms_cmds_F77 | \
16395 export_symbols_cmds_F77 | \
16396 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16397 postinstall_cmds | postuninstall_cmds | \
16398 old_postinstall_cmds | old_postuninstall_cmds | \
16399 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16400 # Double-quote double-evaled strings.
16401 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16402 ;;
16403 *)
16404 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16405 ;;
16406 esac
16407 done
16408
16409 case $lt_echo in
16410 *'\$0 --fallback-echo"')
16411 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16412 ;;
16413 esac
16414
16415 cfgfile="$ofile"
16416
16417 cat <<__EOF__ >> "$cfgfile"
16418 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16419
16420 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16421
16422 # Shell to use when invoking shell scripts.
16423 SHELL=$lt_SHELL
16424
16425 # Whether or not to build shared libraries.
16426 build_libtool_libs=$enable_shared
16427
16428 # Whether or not to build static libraries.
16429 build_old_libs=$enable_static
16430
16431 # Whether or not to add -lc for building shared libraries.
16432 build_libtool_need_lc=$archive_cmds_need_lc_F77
16433
16434 # Whether or not to disallow shared libs when runtime libs are static
16435 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16436
16437 # Whether or not to optimize for fast installation.
16438 fast_install=$enable_fast_install
16439
16440 # The host system.
16441 host_alias=$host_alias
16442 host=$host
16443 host_os=$host_os
16444
16445 # The build system.
16446 build_alias=$build_alias
16447 build=$build
16448 build_os=$build_os
16449
16450 # An echo program that does not interpret backslashes.
16451 echo=$lt_echo
16452
16453 # The archiver.
16454 AR=$lt_AR
16455 AR_FLAGS=$lt_AR_FLAGS
16456
16457 # A C compiler.
16458 LTCC=$lt_LTCC
16459
16460 # LTCC compiler flags.
16461 LTCFLAGS=$lt_LTCFLAGS
16462
16463 # A language-specific compiler.
16464 CC=$lt_compiler_F77
16465
16466 # Is the compiler the GNU C compiler?
16467 with_gcc=$GCC_F77
16468
16469 # An ERE matcher.
16470 EGREP=$lt_EGREP
16471
16472 # The linker used to build libraries.
16473 LD=$lt_LD_F77
16474
16475 # Whether we need hard or soft links.
16476 LN_S=$lt_LN_S
16477
16478 # A BSD-compatible nm program.
16479 NM=$lt_NM
16480
16481 # A symbol stripping program
16482 STRIP=$lt_STRIP
16483
16484 # Used to examine libraries when file_magic_cmd begins "file"
16485 MAGIC_CMD=$MAGIC_CMD
16486
16487 # Used on cygwin: DLL creation program.
16488 DLLTOOL="$DLLTOOL"
16489
16490 # Used on cygwin: object dumper.
16491 OBJDUMP="$OBJDUMP"
16492
16493 # Used on cygwin: assembler.
16494 AS="$AS"
16495
16496 # The name of the directory that contains temporary libtool files.
16497 objdir=$objdir
16498
16499 # How to create reloadable object files.
16500 reload_flag=$lt_reload_flag
16501 reload_cmds=$lt_reload_cmds
16502
16503 # How to pass a linker flag through the compiler.
16504 wl=$lt_lt_prog_compiler_wl_F77
16505
16506 # Object file suffix (normally "o").
16507 objext="$ac_objext"
16508
16509 # Old archive suffix (normally "a").
16510 libext="$libext"
16511
16512 # Shared library suffix (normally ".so").
16513 shrext_cmds='$shrext_cmds'
16514
16515 # Executable file suffix (normally "").
16516 exeext="$exeext"
16517
16518 # Additional compiler flags for building library objects.
16519 pic_flag=$lt_lt_prog_compiler_pic_F77
16520 pic_mode=$pic_mode
16521
16522 # What is the maximum length of a command?
16523 max_cmd_len=$lt_cv_sys_max_cmd_len
16524
16525 # Does compiler simultaneously support -c and -o options?
16526 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16527
16528 # Must we lock files when doing compilation?
16529 need_locks=$lt_need_locks
16530
16531 # Do we need the lib prefix for modules?
16532 need_lib_prefix=$need_lib_prefix
16533
16534 # Do we need a version for libraries?
16535 need_version=$need_version
16536
16537 # Whether dlopen is supported.
16538 dlopen_support=$enable_dlopen
16539
16540 # Whether dlopen of programs is supported.
16541 dlopen_self=$enable_dlopen_self
16542
16543 # Whether dlopen of statically linked programs is supported.
16544 dlopen_self_static=$enable_dlopen_self_static
16545
16546 # Compiler flag to prevent dynamic linking.
16547 link_static_flag=$lt_lt_prog_compiler_static_F77
16548
16549 # Compiler flag to turn off builtin functions.
16550 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16551
16552 # Compiler flag to allow reflexive dlopens.
16553 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16554
16555 # Compiler flag to generate shared objects directly from archives.
16556 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16557
16558 # Compiler flag to generate thread-safe objects.
16559 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16560
16561 # Library versioning type.
16562 version_type=$version_type
16563
16564 # Format of library name prefix.
16565 libname_spec=$lt_libname_spec
16566
16567 # List of archive names. First name is the real one, the rest are links.
16568 # The last name is the one that the linker finds with -lNAME.
16569 library_names_spec=$lt_library_names_spec
16570
16571 # The coded name of the library, if different from the real name.
16572 soname_spec=$lt_soname_spec
16573
16574 # Commands used to build and install an old-style archive.
16575 RANLIB=$lt_RANLIB
16576 old_archive_cmds=$lt_old_archive_cmds_F77
16577 old_postinstall_cmds=$lt_old_postinstall_cmds
16578 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16579
16580 # Create an old-style archive from a shared archive.
16581 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16582
16583 # Create a temporary old-style archive to link instead of a shared archive.
16584 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16585
16586 # Commands used to build and install a shared archive.
16587 archive_cmds=$lt_archive_cmds_F77
16588 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16589 postinstall_cmds=$lt_postinstall_cmds
16590 postuninstall_cmds=$lt_postuninstall_cmds
16591
16592 # Commands used to build a loadable module (assumed same as above if empty)
16593 module_cmds=$lt_module_cmds_F77
16594 module_expsym_cmds=$lt_module_expsym_cmds_F77
16595
16596 # Commands to strip libraries.
16597 old_striplib=$lt_old_striplib
16598 striplib=$lt_striplib
16599
16600 # Dependencies to place before the objects being linked to create a
16601 # shared library.
16602 predep_objects=$lt_predep_objects_F77
16603
16604 # Dependencies to place after the objects being linked to create a
16605 # shared library.
16606 postdep_objects=$lt_postdep_objects_F77
16607
16608 # Dependencies to place before the objects being linked to create a
16609 # shared library.
16610 predeps=$lt_predeps_F77
16611
16612 # Dependencies to place after the objects being linked to create a
16613 # shared library.
16614 postdeps=$lt_postdeps_F77
16615
16616 # The directories searched by this compiler when creating a shared
16617 # library
16618 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16619
16620 # The library search path used internally by the compiler when linking
16621 # a shared library.
16622 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16623
16624 # Method to check whether dependent libraries are shared objects.
16625 deplibs_check_method=$lt_deplibs_check_method
16626
16627 # Command to use when deplibs_check_method == file_magic.
16628 file_magic_cmd=$lt_file_magic_cmd
16629
16630 # Flag that allows shared libraries with undefined symbols to be built.
16631 allow_undefined_flag=$lt_allow_undefined_flag_F77
16632
16633 # Flag that forces no undefined symbols.
16634 no_undefined_flag=$lt_no_undefined_flag_F77
16635
16636 # Commands used to finish a libtool library installation in a directory.
16637 finish_cmds=$lt_finish_cmds
16638
16639 # Same as above, but a single script fragment to be evaled but not shown.
16640 finish_eval=$lt_finish_eval
16641
16642 # Take the output of nm and produce a listing of raw symbols and C names.
16643 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16644
16645 # Transform the output of nm in a proper C declaration
16646 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16647
16648 # Transform the output of nm in a C name address pair
16649 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16650
16651 # This is the shared library runtime path variable.
16652 runpath_var=$runpath_var
16653
16654 # This is the shared library path variable.
16655 shlibpath_var=$shlibpath_var
16656
16657 # Is shlibpath searched before the hard-coded library search path?
16658 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16659
16660 # How to hardcode a shared library path into an executable.
16661 hardcode_action=$hardcode_action_F77
16662
16663 # Whether we should hardcode library paths into libraries.
16664 hardcode_into_libs=$hardcode_into_libs
16665
16666 # Flag to hardcode \$libdir into a binary during linking.
16667 # This must work even if \$libdir does not exist.
16668 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16669
16670 # If ld is used when linking, flag to hardcode \$libdir into
16671 # a binary during linking. This must work even if \$libdir does
16672 # not exist.
16673 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16674
16675 # Whether we need a single -rpath flag with a separated argument.
16676 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16677
16678 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16679 # resulting binary.
16680 hardcode_direct=$hardcode_direct_F77
16681
16682 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16683 # resulting binary.
16684 hardcode_minus_L=$hardcode_minus_L_F77
16685
16686 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16687 # the resulting binary.
16688 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16689
16690 # Set to yes if building a shared library automatically hardcodes DIR into the library
16691 # and all subsequent libraries and executables linked against it.
16692 hardcode_automatic=$hardcode_automatic_F77
16693
16694 # Variables whose values should be saved in libtool wrapper scripts and
16695 # restored at relink time.
16696 variables_saved_for_relink="$variables_saved_for_relink"
16697
16698 # Whether libtool must link a program against all its dependency libraries.
16699 link_all_deplibs=$link_all_deplibs_F77
16700
16701 # Compile-time system search path for libraries
16702 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16703
16704 # Run-time system search path for libraries
16705 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16706
16707 # Fix the shell variable \$srcfile for the compiler.
16708 fix_srcfile_path=$lt_fix_srcfile_path
16709
16710 # Set to yes if exported symbols are required.
16711 always_export_symbols=$always_export_symbols_F77
16712
16713 # The commands to list exported symbols.
16714 export_symbols_cmds=$lt_export_symbols_cmds_F77
16715
16716 # The commands to extract the exported symbol list from a shared archive.
16717 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16718
16719 # Symbols that should not be listed in the preloaded symbols.
16720 exclude_expsyms=$lt_exclude_expsyms_F77
16721
16722 # Symbols that must always be exported.
16723 include_expsyms=$lt_include_expsyms_F77
16724
16725 # ### END LIBTOOL TAG CONFIG: $tagname
16726
16727 __EOF__
16728
16729
16730 else
16731 # If there is no Makefile yet, we rely on a make rule to execute
16732 # `config.status --recheck' to rerun these tests and create the
16733 # libtool script then.
16734 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16735 if test -f "$ltmain_in"; then
16736 test -f Makefile && make "$ltmain"
16737 fi
16738 fi
16739
16740
16741 ac_ext=c
16742 ac_cpp='$CPP $CPPFLAGS'
16743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16746
16747 CC="$lt_save_CC"
16748
16749 else
16750 tagname=""
16751 fi
16752 ;;
16753
16754 GCJ)
16755 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16756
16757
16758 # Source file extension for Java test sources.
16759 ac_ext=java
16760
16761 # Object file extension for compiled Java test sources.
16762 objext=o
16763 objext_GCJ=$objext
16764
16765 # Code to be used in simple compile tests
16766 lt_simple_compile_test_code="class foo {}"
16767
16768 # Code to be used in simple link tests
16769 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16770
16771 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16772
16773 # If no C compiler was specified, use CC.
16774 LTCC=${LTCC-"$CC"}
16775
16776 # If no C compiler flags were specified, use CFLAGS.
16777 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16778
16779 # Allow CC to be a program name with arguments.
16780 compiler=$CC
16781
16782
16783 # save warnings/boilerplate of simple test code
16784 ac_outfile=conftest.$ac_objext
16785 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16786 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16787 _lt_compiler_boilerplate=`cat conftest.err`
16788 $rm conftest*
16789
16790 ac_outfile=conftest.$ac_objext
16791 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16792 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16793 _lt_linker_boilerplate=`cat conftest.err`
16794 $rm -r conftest*
16795
16796
16797 # Allow CC to be a program name with arguments.
16798 lt_save_CC="$CC"
16799 CC=${GCJ-"gcj"}
16800 compiler=$CC
16801 compiler_GCJ=$CC
16802 for cc_temp in $compiler""; do
16803 case $cc_temp in
16804 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16805 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16806 \-*) ;;
16807 *) break;;
16808 esac
16809 done
16810 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16811
16812
16813 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16814 archive_cmds_need_lc_GCJ=no
16815
16816 old_archive_cmds_GCJ=$old_archive_cmds
16817
16818
16819 lt_prog_compiler_no_builtin_flag_GCJ=
16820
16821 if test "$GCC" = yes; then
16822 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16823
16824
16825 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16826 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16827 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16828 $as_echo_n "(cached) " >&6
16829 else
16830 lt_cv_prog_compiler_rtti_exceptions=no
16831 ac_outfile=conftest.$ac_objext
16832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16833 lt_compiler_flag="-fno-rtti -fno-exceptions"
16834 # Insert the option either (1) after the last *FLAGS variable, or
16835 # (2) before a word containing "conftest.", or (3) at the end.
16836 # Note that $ac_compile itself does not contain backslashes and begins
16837 # with a dollar sign (not a hyphen), so the echo should work correctly.
16838 # The option is referenced via a variable to avoid confusing sed.
16839 lt_compile=`echo "$ac_compile" | $SED \
16840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16842 -e 's:$: $lt_compiler_flag:'`
16843 (eval echo "\"\$as_me:16843: $lt_compile\"" >&5)
16844 (eval "$lt_compile" 2>conftest.err)
16845 ac_status=$?
16846 cat conftest.err >&5
16847 echo "$as_me:16847: \$? = $ac_status" >&5
16848 if (exit $ac_status) && test -s "$ac_outfile"; then
16849 # The compiler can only warn and ignore the option if not recognized
16850 # So say no if there are warnings other than the usual output.
16851 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16853 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16854 lt_cv_prog_compiler_rtti_exceptions=yes
16855 fi
16856 fi
16857 $rm conftest*
16858
16859 fi
16860 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16861 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16862
16863 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16864 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16865 else
16866 :
16867 fi
16868
16869 fi
16870
16871 lt_prog_compiler_wl_GCJ=
16872 lt_prog_compiler_pic_GCJ=
16873 lt_prog_compiler_static_GCJ=
16874
16875 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16876 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16877
16878 if test "$GCC" = yes; then
16879 lt_prog_compiler_wl_GCJ='-Wl,'
16880 lt_prog_compiler_static_GCJ='-static'
16881
16882 case $host_os in
16883 aix*)
16884 # All AIX code is PIC.
16885 if test "$host_cpu" = ia64; then
16886 # AIX 5 now supports IA64 processor
16887 lt_prog_compiler_static_GCJ='-Bstatic'
16888 fi
16889 ;;
16890
16891 amigaos*)
16892 # FIXME: we need at least 68020 code to build shared libraries, but
16893 # adding the `-m68020' flag to GCC prevents building anything better,
16894 # like `-m68040'.
16895 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16896 ;;
16897
16898 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16899 # PIC is the default for these OSes.
16900 ;;
16901
16902 mingw* | cygwin* | pw32* | os2*)
16903 # This hack is so that the source file can tell whether it is being
16904 # built for inclusion in a dll (and should export symbols for example).
16905 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16906 # (--disable-auto-import) libraries
16907
16908 ;;
16909
16910 darwin* | rhapsody*)
16911 # PIC is the default on this platform
16912 # Common symbols not allowed in MH_DYLIB files
16913 lt_prog_compiler_pic_GCJ='-fno-common'
16914 ;;
16915
16916 interix[3-9]*)
16917 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16918 # Instead, we relocate shared libraries at runtime.
16919 ;;
16920
16921 msdosdjgpp*)
16922 # Just because we use GCC doesn't mean we suddenly get shared libraries
16923 # on systems that don't support them.
16924 lt_prog_compiler_can_build_shared_GCJ=no
16925 enable_shared=no
16926 ;;
16927
16928 sysv4*MP*)
16929 if test -d /usr/nec; then
16930 lt_prog_compiler_pic_GCJ=-Kconform_pic
16931 fi
16932 ;;
16933
16934 hpux*)
16935 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16936 # not for PA HP-UX.
16937 case $host_cpu in
16938 hppa*64*|ia64*)
16939 # +Z the default
16940 ;;
16941 *)
16942 lt_prog_compiler_pic_GCJ='-fPIC'
16943 ;;
16944 esac
16945 ;;
16946
16947 *)
16948 lt_prog_compiler_pic_GCJ='-fPIC'
16949 ;;
16950 esac
16951 else
16952 # PORTME Check for flag to pass linker flags through the system compiler.
16953 case $host_os in
16954 aix*)
16955 lt_prog_compiler_wl_GCJ='-Wl,'
16956 if test "$host_cpu" = ia64; then
16957 # AIX 5 now supports IA64 processor
16958 lt_prog_compiler_static_GCJ='-Bstatic'
16959 else
16960 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16961 fi
16962 ;;
16963 darwin*)
16964 # PIC is the default on this platform
16965 # Common symbols not allowed in MH_DYLIB files
16966 case $cc_basename in
16967 xlc*)
16968 lt_prog_compiler_pic_GCJ='-qnocommon'
16969 lt_prog_compiler_wl_GCJ='-Wl,'
16970 ;;
16971 esac
16972 ;;
16973
16974 mingw* | cygwin* | pw32* | os2*)
16975 # This hack is so that the source file can tell whether it is being
16976 # built for inclusion in a dll (and should export symbols for example).
16977
16978 ;;
16979
16980 hpux9* | hpux10* | hpux11*)
16981 lt_prog_compiler_wl_GCJ='-Wl,'
16982 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16983 # not for PA HP-UX.
16984 case $host_cpu in
16985 hppa*64*|ia64*)
16986 # +Z the default
16987 ;;
16988 *)
16989 lt_prog_compiler_pic_GCJ='+Z'
16990 ;;
16991 esac
16992 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16993 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16994 ;;
16995
16996 irix5* | irix6* | nonstopux*)
16997 lt_prog_compiler_wl_GCJ='-Wl,'
16998 # PIC (with -KPIC) is the default.
16999 lt_prog_compiler_static_GCJ='-non_shared'
17000 ;;
17001
17002 newsos6)
17003 lt_prog_compiler_pic_GCJ='-KPIC'
17004 lt_prog_compiler_static_GCJ='-Bstatic'
17005 ;;
17006
17007 linux* | k*bsd*-gnu)
17008 case $cc_basename in
17009 icc* | ecc*)
17010 lt_prog_compiler_wl_GCJ='-Wl,'
17011 lt_prog_compiler_pic_GCJ='-KPIC'
17012 lt_prog_compiler_static_GCJ='-static'
17013 ;;
17014 pgcc* | pgf77* | pgf90* | pgf95*)
17015 # Portland Group compilers (*not* the Pentium gcc compiler,
17016 # which looks to be a dead project)
17017 lt_prog_compiler_wl_GCJ='-Wl,'
17018 lt_prog_compiler_pic_GCJ='-fpic'
17019 lt_prog_compiler_static_GCJ='-Bstatic'
17020 ;;
17021 ccc*)
17022 lt_prog_compiler_wl_GCJ='-Wl,'
17023 # All Alpha code is PIC.
17024 lt_prog_compiler_static_GCJ='-non_shared'
17025 ;;
17026 *)
17027 case `$CC -V 2>&1 | sed 5q` in
17028 *Sun\ C*)
17029 # Sun C 5.9
17030 lt_prog_compiler_pic_GCJ='-KPIC'
17031 lt_prog_compiler_static_GCJ='-Bstatic'
17032 lt_prog_compiler_wl_GCJ='-Wl,'
17033 ;;
17034 *Sun\ F*)
17035 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17036 lt_prog_compiler_pic_GCJ='-KPIC'
17037 lt_prog_compiler_static_GCJ='-Bstatic'
17038 lt_prog_compiler_wl_GCJ=''
17039 ;;
17040 esac
17041 ;;
17042 esac
17043 ;;
17044
17045 osf3* | osf4* | osf5*)
17046 lt_prog_compiler_wl_GCJ='-Wl,'
17047 # All OSF/1 code is PIC.
17048 lt_prog_compiler_static_GCJ='-non_shared'
17049 ;;
17050
17051 rdos*)
17052 lt_prog_compiler_static_GCJ='-non_shared'
17053 ;;
17054
17055 solaris*)
17056 lt_prog_compiler_pic_GCJ='-KPIC'
17057 lt_prog_compiler_static_GCJ='-Bstatic'
17058 case $cc_basename in
17059 f77* | f90* | f95*)
17060 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17061 *)
17062 lt_prog_compiler_wl_GCJ='-Wl,';;
17063 esac
17064 ;;
17065
17066 sunos4*)
17067 lt_prog_compiler_wl_GCJ='-Qoption ld '
17068 lt_prog_compiler_pic_GCJ='-PIC'
17069 lt_prog_compiler_static_GCJ='-Bstatic'
17070 ;;
17071
17072 sysv4 | sysv4.2uw2* | sysv4.3*)
17073 lt_prog_compiler_wl_GCJ='-Wl,'
17074 lt_prog_compiler_pic_GCJ='-KPIC'
17075 lt_prog_compiler_static_GCJ='-Bstatic'
17076 ;;
17077
17078 sysv4*MP*)
17079 if test -d /usr/nec ;then
17080 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17081 lt_prog_compiler_static_GCJ='-Bstatic'
17082 fi
17083 ;;
17084
17085 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17086 lt_prog_compiler_wl_GCJ='-Wl,'
17087 lt_prog_compiler_pic_GCJ='-KPIC'
17088 lt_prog_compiler_static_GCJ='-Bstatic'
17089 ;;
17090
17091 unicos*)
17092 lt_prog_compiler_wl_GCJ='-Wl,'
17093 lt_prog_compiler_can_build_shared_GCJ=no
17094 ;;
17095
17096 uts4*)
17097 lt_prog_compiler_pic_GCJ='-pic'
17098 lt_prog_compiler_static_GCJ='-Bstatic'
17099 ;;
17100
17101 *)
17102 lt_prog_compiler_can_build_shared_GCJ=no
17103 ;;
17104 esac
17105 fi
17106
17107 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17108 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17109
17110 #
17111 # Check to make sure the PIC flag actually works.
17112 #
17113 if test -n "$lt_prog_compiler_pic_GCJ"; then
17114
17115 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17116 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17117 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17118 $as_echo_n "(cached) " >&6
17119 else
17120 lt_cv_prog_compiler_pic_works_GCJ=no
17121 ac_outfile=conftest.$ac_objext
17122 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17123 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17124 # Insert the option either (1) after the last *FLAGS variable, or
17125 # (2) before a word containing "conftest.", or (3) at the end.
17126 # Note that $ac_compile itself does not contain backslashes and begins
17127 # with a dollar sign (not a hyphen), so the echo should work correctly.
17128 # The option is referenced via a variable to avoid confusing sed.
17129 lt_compile=`echo "$ac_compile" | $SED \
17130 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17131 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17132 -e 's:$: $lt_compiler_flag:'`
17133 (eval echo "\"\$as_me:17133: $lt_compile\"" >&5)
17134 (eval "$lt_compile" 2>conftest.err)
17135 ac_status=$?
17136 cat conftest.err >&5
17137 echo "$as_me:17137: \$? = $ac_status" >&5
17138 if (exit $ac_status) && test -s "$ac_outfile"; then
17139 # The compiler can only warn and ignore the option if not recognized
17140 # So say no if there are warnings other than the usual output.
17141 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17143 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17144 lt_cv_prog_compiler_pic_works_GCJ=yes
17145 fi
17146 fi
17147 $rm conftest*
17148
17149 fi
17150 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17151 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17152
17153 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17154 case $lt_prog_compiler_pic_GCJ in
17155 "" | " "*) ;;
17156 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17157 esac
17158 else
17159 lt_prog_compiler_pic_GCJ=
17160 lt_prog_compiler_can_build_shared_GCJ=no
17161 fi
17162
17163 fi
17164 case $host_os in
17165 # For platforms which do not support PIC, -DPIC is meaningless:
17166 *djgpp*)
17167 lt_prog_compiler_pic_GCJ=
17168 ;;
17169 *)
17170 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17171 ;;
17172 esac
17173
17174 #
17175 # Check to make sure the static flag actually works.
17176 #
17177 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17178 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17179 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17180 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17181 $as_echo_n "(cached) " >&6
17182 else
17183 lt_cv_prog_compiler_static_works_GCJ=no
17184 save_LDFLAGS="$LDFLAGS"
17185 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17186 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17187 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17188 # The linker can only warn and ignore the option if not recognized
17189 # So say no if there are warnings
17190 if test -s conftest.err; then
17191 # Append any errors to the config.log.
17192 cat conftest.err 1>&5
17193 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17195 if diff conftest.exp conftest.er2 >/dev/null; then
17196 lt_cv_prog_compiler_static_works_GCJ=yes
17197 fi
17198 else
17199 lt_cv_prog_compiler_static_works_GCJ=yes
17200 fi
17201 fi
17202 $rm -r conftest*
17203 LDFLAGS="$save_LDFLAGS"
17204
17205 fi
17206 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17207 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17208
17209 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17210 :
17211 else
17212 lt_prog_compiler_static_GCJ=
17213 fi
17214
17215
17216 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17217 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17218 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17219 $as_echo_n "(cached) " >&6
17220 else
17221 lt_cv_prog_compiler_c_o_GCJ=no
17222 $rm -r conftest 2>/dev/null
17223 mkdir conftest
17224 cd conftest
17225 mkdir out
17226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17227
17228 lt_compiler_flag="-o out/conftest2.$ac_objext"
17229 # Insert the option either (1) after the last *FLAGS variable, or
17230 # (2) before a word containing "conftest.", or (3) at the end.
17231 # Note that $ac_compile itself does not contain backslashes and begins
17232 # with a dollar sign (not a hyphen), so the echo should work correctly.
17233 lt_compile=`echo "$ac_compile" | $SED \
17234 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17236 -e 's:$: $lt_compiler_flag:'`
17237 (eval echo "\"\$as_me:17237: $lt_compile\"" >&5)
17238 (eval "$lt_compile" 2>out/conftest.err)
17239 ac_status=$?
17240 cat out/conftest.err >&5
17241 echo "$as_me:17241: \$? = $ac_status" >&5
17242 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17243 then
17244 # The compiler can only warn and ignore the option if not recognized
17245 # So say no if there are warnings
17246 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17247 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17248 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17249 lt_cv_prog_compiler_c_o_GCJ=yes
17250 fi
17251 fi
17252 chmod u+w . 2>&5
17253 $rm conftest*
17254 # SGI C++ compiler will create directory out/ii_files/ for
17255 # template instantiation
17256 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17257 $rm out/* && rmdir out
17258 cd ..
17259 rmdir conftest
17260 $rm conftest*
17261
17262 fi
17263 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17264 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17265
17266
17267 hard_links="nottested"
17268 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17269 # do not overwrite the value of need_locks provided by the user
17270 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17271 $as_echo_n "checking if we can lock with hard links... " >&6; }
17272 hard_links=yes
17273 $rm conftest*
17274 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17275 touch conftest.a
17276 ln conftest.a conftest.b 2>&5 || hard_links=no
17277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17278 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17279 $as_echo "$hard_links" >&6; }
17280 if test "$hard_links" = no; then
17281 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17282 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17283 need_locks=warn
17284 fi
17285 else
17286 need_locks=no
17287 fi
17288
17289 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17290 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17291
17292 runpath_var=
17293 allow_undefined_flag_GCJ=
17294 enable_shared_with_static_runtimes_GCJ=no
17295 archive_cmds_GCJ=
17296 archive_expsym_cmds_GCJ=
17297 old_archive_From_new_cmds_GCJ=
17298 old_archive_from_expsyms_cmds_GCJ=
17299 export_dynamic_flag_spec_GCJ=
17300 whole_archive_flag_spec_GCJ=
17301 thread_safe_flag_spec_GCJ=
17302 hardcode_libdir_flag_spec_GCJ=
17303 hardcode_libdir_flag_spec_ld_GCJ=
17304 hardcode_libdir_separator_GCJ=
17305 hardcode_direct_GCJ=no
17306 hardcode_minus_L_GCJ=no
17307 hardcode_shlibpath_var_GCJ=unsupported
17308 link_all_deplibs_GCJ=unknown
17309 hardcode_automatic_GCJ=no
17310 module_cmds_GCJ=
17311 module_expsym_cmds_GCJ=
17312 always_export_symbols_GCJ=no
17313 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17314 # include_expsyms should be a list of space-separated symbols to be *always*
17315 # included in the symbol list
17316 include_expsyms_GCJ=
17317 # exclude_expsyms can be an extended regexp of symbols to exclude
17318 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17319 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17320 # as well as any symbol that contains `d'.
17321 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17322 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17323 # platforms (ab)use it in PIC code, but their linkers get confused if
17324 # the symbol is explicitly referenced. Since portable code cannot
17325 # rely on this symbol name, it's probably fine to never include it in
17326 # preloaded symbol tables.
17327 # Exclude shared library initialization/finalization symbols.
17328 extract_expsyms_cmds=
17329 # Just being paranoid about ensuring that cc_basename is set.
17330 for cc_temp in $compiler""; do
17331 case $cc_temp in
17332 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17333 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17334 \-*) ;;
17335 *) break;;
17336 esac
17337 done
17338 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17339
17340 case $host_os in
17341 cygwin* | mingw* | pw32*)
17342 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17343 # When not using gcc, we currently assume that we are using
17344 # Microsoft Visual C++.
17345 if test "$GCC" != yes; then
17346 with_gnu_ld=no
17347 fi
17348 ;;
17349 interix*)
17350 # we just hope/assume this is gcc and not c89 (= MSVC++)
17351 with_gnu_ld=yes
17352 ;;
17353 openbsd*)
17354 with_gnu_ld=no
17355 ;;
17356 esac
17357
17358 ld_shlibs_GCJ=yes
17359 if test "$with_gnu_ld" = yes; then
17360 # If archive_cmds runs LD, not CC, wlarc should be empty
17361 wlarc='${wl}'
17362
17363 # Set some defaults for GNU ld with shared library support. These
17364 # are reset later if shared libraries are not supported. Putting them
17365 # here allows them to be overridden if necessary.
17366 runpath_var=LD_RUN_PATH
17367 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17368 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17369 # ancient GNU ld didn't support --whole-archive et. al.
17370 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17371 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17372 else
17373 whole_archive_flag_spec_GCJ=
17374 fi
17375 supports_anon_versioning=no
17376 case `$LD -v 2>/dev/null` in
17377 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17378 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17379 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17380 *\ 2.11.*) ;; # other 2.11 versions
17381 *) supports_anon_versioning=yes ;;
17382 esac
17383
17384 # See if GNU ld supports shared libraries.
17385 case $host_os in
17386 aix[3-9]*)
17387 # On AIX/PPC, the GNU linker is very broken
17388 if test "$host_cpu" != ia64; then
17389 ld_shlibs_GCJ=no
17390 cat <<EOF 1>&2
17391
17392 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17393 *** to be unable to reliably create shared libraries on AIX.
17394 *** Therefore, libtool is disabling shared libraries support. If you
17395 *** really care for shared libraries, you may want to modify your PATH
17396 *** so that a non-GNU linker is found, and then restart.
17397
17398 EOF
17399 fi
17400 ;;
17401
17402 amigaos*)
17403 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)'
17404 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17405 hardcode_minus_L_GCJ=yes
17406
17407 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
17408 # that the semantics of dynamic libraries on AmigaOS, at least up
17409 # to version 4, is to share data among multiple programs linked
17410 # with the same dynamic library. Since this doesn't match the
17411 # behavior of shared libraries on other platforms, we can't use
17412 # them.
17413 ld_shlibs_GCJ=no
17414 ;;
17415
17416 beos*)
17417 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17418 allow_undefined_flag_GCJ=unsupported
17419 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
17420 # support --undefined. This deserves some investigation. FIXME
17421 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17422 else
17423 ld_shlibs_GCJ=no
17424 fi
17425 ;;
17426
17427 cygwin* | mingw* | pw32*)
17428 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17429 # as there is no search path for DLLs.
17430 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17431 allow_undefined_flag_GCJ=unsupported
17432 always_export_symbols_GCJ=no
17433 enable_shared_with_static_runtimes_GCJ=yes
17434 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17435
17436 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17437 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17438 # If the export-symbols file already is a .def file (1st line
17439 # is EXPORTS), use it as is; otherwise, prepend...
17440 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17441 cp $export_symbols $output_objdir/$soname.def;
17442 else
17443 echo EXPORTS > $output_objdir/$soname.def;
17444 cat $export_symbols >> $output_objdir/$soname.def;
17445 fi~
17446 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17447 else
17448 ld_shlibs_GCJ=no
17449 fi
17450 ;;
17451
17452 interix[3-9]*)
17453 hardcode_direct_GCJ=no
17454 hardcode_shlibpath_var_GCJ=no
17455 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17456 export_dynamic_flag_spec_GCJ='${wl}-E'
17457 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17458 # Instead, shared libraries are loaded at an image base (0x10000000 by
17459 # default) and relocated if they conflict, which is a slow very memory
17460 # consuming and fragmenting process. To avoid this, we pick a random,
17461 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17462 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17463 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'
17464 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'
17465 ;;
17466
17467 gnu* | linux* | k*bsd*-gnu)
17468 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17469 tmp_addflag=
17470 case $cc_basename,$host_cpu in
17471 pgcc*) # Portland Group C compiler
17472 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'
17473 tmp_addflag=' $pic_flag'
17474 ;;
17475 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17476 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'
17477 tmp_addflag=' $pic_flag -Mnomain' ;;
17478 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17479 tmp_addflag=' -i_dynamic' ;;
17480 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17481 tmp_addflag=' -i_dynamic -nofor_main' ;;
17482 ifc* | ifort*) # Intel Fortran compiler
17483 tmp_addflag=' -nofor_main' ;;
17484 esac
17485 case `$CC -V 2>&1 | sed 5q` in
17486 *Sun\ C*) # Sun C 5.9
17487 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'
17488 tmp_sharedflag='-G' ;;
17489 *Sun\ F*) # Sun Fortran 8.3
17490 tmp_sharedflag='-G' ;;
17491 *)
17492 tmp_sharedflag='-shared' ;;
17493 esac
17494 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17495
17496 if test $supports_anon_versioning = yes; then
17497 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17498 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17499 $echo "local: *; };" >> $output_objdir/$libname.ver~
17500 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17501 fi
17502 else
17503 ld_shlibs_GCJ=no
17504 fi
17505 ;;
17506
17507 netbsd*)
17508 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17509 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17510 wlarc=
17511 else
17512 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17513 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17514 fi
17515 ;;
17516
17517 solaris*)
17518 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17519 ld_shlibs_GCJ=no
17520 cat <<EOF 1>&2
17521
17522 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17523 *** create shared libraries on Solaris systems. Therefore, libtool
17524 *** is disabling shared libraries support. We urge you to upgrade GNU
17525 *** binutils to release 2.9.1 or newer. Another option is to modify
17526 *** your PATH or compiler configuration so that the native linker is
17527 *** used, and then restart.
17528
17529 EOF
17530 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17531 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17532 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17533 else
17534 ld_shlibs_GCJ=no
17535 fi
17536 ;;
17537
17538 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17539 case `$LD -v 2>&1` in
17540 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17541 ld_shlibs_GCJ=no
17542 cat <<_LT_EOF 1>&2
17543
17544 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17545 *** reliably create shared libraries on SCO systems. Therefore, libtool
17546 *** is disabling shared libraries support. We urge you to upgrade GNU
17547 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17548 *** your PATH or compiler configuration so that the native linker is
17549 *** used, and then restart.
17550
17551 _LT_EOF
17552 ;;
17553 *)
17554 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17555 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17556 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17557 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17558 else
17559 ld_shlibs_GCJ=no
17560 fi
17561 ;;
17562 esac
17563 ;;
17564
17565 sunos4*)
17566 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17567 wlarc=
17568 hardcode_direct_GCJ=yes
17569 hardcode_shlibpath_var_GCJ=no
17570 ;;
17571
17572 *)
17573 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17574 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17575 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17576 else
17577 ld_shlibs_GCJ=no
17578 fi
17579 ;;
17580 esac
17581
17582 if test "$ld_shlibs_GCJ" = no; then
17583 runpath_var=
17584 hardcode_libdir_flag_spec_GCJ=
17585 export_dynamic_flag_spec_GCJ=
17586 whole_archive_flag_spec_GCJ=
17587 fi
17588 else
17589 # PORTME fill in a description of your system's linker (not GNU ld)
17590 case $host_os in
17591 aix3*)
17592 allow_undefined_flag_GCJ=unsupported
17593 always_export_symbols_GCJ=yes
17594 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'
17595 # Note: this linker hardcodes the directories in LIBPATH if there
17596 # are no directories specified by -L.
17597 hardcode_minus_L_GCJ=yes
17598 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17599 # Neither direct hardcoding nor static linking is supported with a
17600 # broken collect2.
17601 hardcode_direct_GCJ=unsupported
17602 fi
17603 ;;
17604
17605 aix[4-9]*)
17606 if test "$host_cpu" = ia64; then
17607 # On IA64, the linker does run time linking by default, so we don't
17608 # have to do anything special.
17609 aix_use_runtimelinking=no
17610 exp_sym_flag='-Bexport'
17611 no_entry_flag=""
17612 else
17613 # If we're using GNU nm, then we don't want the "-C" option.
17614 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17615 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17616 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'
17617 else
17618 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'
17619 fi
17620 aix_use_runtimelinking=no
17621
17622 # Test if we are trying to use run time linking or normal
17623 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17624 # need to do runtime linking.
17625 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17626 for ld_flag in $LDFLAGS; do
17627 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17628 aix_use_runtimelinking=yes
17629 break
17630 fi
17631 done
17632 ;;
17633 esac
17634
17635 exp_sym_flag='-bexport'
17636 no_entry_flag='-bnoentry'
17637 fi
17638
17639 # When large executables or shared objects are built, AIX ld can
17640 # have problems creating the table of contents. If linking a library
17641 # or program results in "error TOC overflow" add -mminimal-toc to
17642 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17643 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17644
17645 archive_cmds_GCJ=''
17646 hardcode_direct_GCJ=yes
17647 hardcode_libdir_separator_GCJ=':'
17648 link_all_deplibs_GCJ=yes
17649
17650 if test "$GCC" = yes; then
17651 case $host_os in aix4.[012]|aix4.[012].*)
17652 # We only want to do this on AIX 4.2 and lower, the check
17653 # below for broken collect2 doesn't work under 4.3+
17654 collect2name=`${CC} -print-prog-name=collect2`
17655 if test -f "$collect2name" && \
17656 strings "$collect2name" | grep resolve_lib_name >/dev/null
17657 then
17658 # We have reworked collect2
17659 :
17660 else
17661 # We have old collect2
17662 hardcode_direct_GCJ=unsupported
17663 # It fails to find uninstalled libraries when the uninstalled
17664 # path is not listed in the libpath. Setting hardcode_minus_L
17665 # to unsupported forces relinking
17666 hardcode_minus_L_GCJ=yes
17667 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17668 hardcode_libdir_separator_GCJ=
17669 fi
17670 ;;
17671 esac
17672 shared_flag='-shared'
17673 if test "$aix_use_runtimelinking" = yes; then
17674 shared_flag="$shared_flag "'${wl}-G'
17675 fi
17676 else
17677 # not using gcc
17678 if test "$host_cpu" = ia64; then
17679 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17680 # chokes on -Wl,-G. The following line is correct:
17681 shared_flag='-G'
17682 else
17683 if test "$aix_use_runtimelinking" = yes; then
17684 shared_flag='${wl}-G'
17685 else
17686 shared_flag='${wl}-bM:SRE'
17687 fi
17688 fi
17689 fi
17690
17691 # It seems that -bexpall does not export symbols beginning with
17692 # underscore (_), so it is better to generate a list of symbols to export.
17693 always_export_symbols_GCJ=yes
17694 if test "$aix_use_runtimelinking" = yes; then
17695 # Warning - without using the other runtime loading flags (-brtl),
17696 # -berok will link without error, but may produce a broken library.
17697 allow_undefined_flag_GCJ='-berok'
17698 # Determine the default libpath from the value encoded in an empty executable.
17699 cat >conftest.$ac_ext <<_ACEOF
17700 /* confdefs.h. */
17701 _ACEOF
17702 cat confdefs.h >>conftest.$ac_ext
17703 cat >>conftest.$ac_ext <<_ACEOF
17704 /* end confdefs.h. */
17705
17706 int
17707 main ()
17708 {
17709
17710 ;
17711 return 0;
17712 }
17713 _ACEOF
17714 rm -f conftest.$ac_objext conftest$ac_exeext
17715 if { (ac_try="$ac_link"
17716 case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17719 esac
17720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17721 $as_echo "$ac_try_echo") >&5
17722 (eval "$ac_link") 2>conftest.er1
17723 ac_status=$?
17724 grep -v '^ *+' conftest.er1 >conftest.err
17725 rm -f conftest.er1
17726 cat conftest.err >&5
17727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); } && {
17729 test -z "$ac_c_werror_flag" ||
17730 test ! -s conftest.err
17731 } && test -s conftest$ac_exeext && {
17732 test "$cross_compiling" = yes ||
17733 $as_test_x conftest$ac_exeext
17734 }; then
17735
17736 lt_aix_libpath_sed='
17737 /Import File Strings/,/^$/ {
17738 /^0/ {
17739 s/^0 *\(.*\)$/\1/
17740 p
17741 }
17742 }'
17743 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17744 # Check for a 64-bit object if we didn't find anything.
17745 if test -z "$aix_libpath"; then
17746 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17747 fi
17748 else
17749 $as_echo "$as_me: failed program was:" >&5
17750 sed 's/^/| /' conftest.$ac_ext >&5
17751
17752
17753 fi
17754
17755 rm -rf conftest.dSYM
17756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17757 conftest$ac_exeext conftest.$ac_ext
17758 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17759
17760 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17761 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"
17762 else
17763 if test "$host_cpu" = ia64; then
17764 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17765 allow_undefined_flag_GCJ="-z nodefs"
17766 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"
17767 else
17768 # Determine the default libpath from the value encoded in an empty executable.
17769 cat >conftest.$ac_ext <<_ACEOF
17770 /* confdefs.h. */
17771 _ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h. */
17775
17776 int
17777 main ()
17778 {
17779
17780 ;
17781 return 0;
17782 }
17783 _ACEOF
17784 rm -f conftest.$ac_objext conftest$ac_exeext
17785 if { (ac_try="$ac_link"
17786 case "(($ac_try" in
17787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17788 *) ac_try_echo=$ac_try;;
17789 esac
17790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17791 $as_echo "$ac_try_echo") >&5
17792 (eval "$ac_link") 2>conftest.er1
17793 ac_status=$?
17794 grep -v '^ *+' conftest.er1 >conftest.err
17795 rm -f conftest.er1
17796 cat conftest.err >&5
17797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); } && {
17799 test -z "$ac_c_werror_flag" ||
17800 test ! -s conftest.err
17801 } && test -s conftest$ac_exeext && {
17802 test "$cross_compiling" = yes ||
17803 $as_test_x conftest$ac_exeext
17804 }; then
17805
17806 lt_aix_libpath_sed='
17807 /Import File Strings/,/^$/ {
17808 /^0/ {
17809 s/^0 *\(.*\)$/\1/
17810 p
17811 }
17812 }'
17813 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17814 # Check for a 64-bit object if we didn't find anything.
17815 if test -z "$aix_libpath"; then
17816 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17817 fi
17818 else
17819 $as_echo "$as_me: failed program was:" >&5
17820 sed 's/^/| /' conftest.$ac_ext >&5
17821
17822
17823 fi
17824
17825 rm -rf conftest.dSYM
17826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17827 conftest$ac_exeext conftest.$ac_ext
17828 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17829
17830 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17831 # Warning - without using the other run time loading flags,
17832 # -berok will link without error, but may produce a broken library.
17833 no_undefined_flag_GCJ=' ${wl}-bernotok'
17834 allow_undefined_flag_GCJ=' ${wl}-berok'
17835 # Exported symbols can be pulled into shared objects from archives
17836 whole_archive_flag_spec_GCJ='$convenience'
17837 archive_cmds_need_lc_GCJ=yes
17838 # This is similar to how AIX traditionally builds its shared libraries.
17839 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'
17840 fi
17841 fi
17842 ;;
17843
17844 amigaos*)
17845 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)'
17846 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17847 hardcode_minus_L_GCJ=yes
17848 # see comment about different semantics on the GNU ld section
17849 ld_shlibs_GCJ=no
17850 ;;
17851
17852 bsdi[45]*)
17853 export_dynamic_flag_spec_GCJ=-rdynamic
17854 ;;
17855
17856 cygwin* | mingw* | pw32*)
17857 # When not using gcc, we currently assume that we are using
17858 # Microsoft Visual C++.
17859 # hardcode_libdir_flag_spec is actually meaningless, as there is
17860 # no search path for DLLs.
17861 hardcode_libdir_flag_spec_GCJ=' '
17862 allow_undefined_flag_GCJ=unsupported
17863 # Tell ltmain to make .lib files, not .a files.
17864 libext=lib
17865 # Tell ltmain to make .dll files, not .so files.
17866 shrext_cmds=".dll"
17867 # FIXME: Setting linknames here is a bad hack.
17868 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17869 # The linker will automatically build a .lib file if we build a DLL.
17870 old_archive_From_new_cmds_GCJ='true'
17871 # FIXME: Should let the user specify the lib program.
17872 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17873 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17874 enable_shared_with_static_runtimes_GCJ=yes
17875 ;;
17876
17877 darwin* | rhapsody*)
17878 case $host_os in
17879 rhapsody* | darwin1.[012])
17880 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17881 ;;
17882 *) # Darwin 1.3 on
17883 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17884 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17885 else
17886 case ${MACOSX_DEPLOYMENT_TARGET} in
17887 10.[012])
17888 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17889 ;;
17890 10.*)
17891 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17892 ;;
17893 esac
17894 fi
17895 ;;
17896 esac
17897 archive_cmds_need_lc_GCJ=no
17898 hardcode_direct_GCJ=no
17899 hardcode_automatic_GCJ=yes
17900 hardcode_shlibpath_var_GCJ=unsupported
17901 whole_archive_flag_spec_GCJ=''
17902 link_all_deplibs_GCJ=yes
17903 if test "$GCC" = yes ; then
17904 output_verbose_link_cmd='echo'
17905 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}"
17906 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17907 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}"
17908 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}"
17909 else
17910 case $cc_basename in
17911 xlc*)
17912 output_verbose_link_cmd='echo'
17913 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17914 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17915 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17916 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}'
17917 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}'
17918 ;;
17919 *)
17920 ld_shlibs_GCJ=no
17921 ;;
17922 esac
17923 fi
17924 ;;
17925
17926 dgux*)
17927 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17928 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17929 hardcode_shlibpath_var_GCJ=no
17930 ;;
17931
17932 freebsd1*)
17933 ld_shlibs_GCJ=no
17934 ;;
17935
17936 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17937 # support. Future versions do this automatically, but an explicit c++rt0.o
17938 # does not break anything, and helps significantly (at the cost of a little
17939 # extra space).
17940 freebsd2.2*)
17941 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17942 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17943 hardcode_direct_GCJ=yes
17944 hardcode_shlibpath_var_GCJ=no
17945 ;;
17946
17947 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17948 freebsd2*)
17949 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17950 hardcode_direct_GCJ=yes
17951 hardcode_minus_L_GCJ=yes
17952 hardcode_shlibpath_var_GCJ=no
17953 ;;
17954
17955 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17956 freebsd* | dragonfly*)
17957 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17958 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17959 hardcode_direct_GCJ=yes
17960 hardcode_shlibpath_var_GCJ=no
17961 ;;
17962
17963 hpux9*)
17964 if test "$GCC" = yes; then
17965 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'
17966 else
17967 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'
17968 fi
17969 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17970 hardcode_libdir_separator_GCJ=:
17971 hardcode_direct_GCJ=yes
17972
17973 # hardcode_minus_L: Not really in the search PATH,
17974 # but as the default location of the library.
17975 hardcode_minus_L_GCJ=yes
17976 export_dynamic_flag_spec_GCJ='${wl}-E'
17977 ;;
17978
17979 hpux10*)
17980 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17981 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17982 else
17983 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17984 fi
17985 if test "$with_gnu_ld" = no; then
17986 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17987 hardcode_libdir_separator_GCJ=:
17988
17989 hardcode_direct_GCJ=yes
17990 export_dynamic_flag_spec_GCJ='${wl}-E'
17991
17992 # hardcode_minus_L: Not really in the search PATH,
17993 # but as the default location of the library.
17994 hardcode_minus_L_GCJ=yes
17995 fi
17996 ;;
17997
17998 hpux11*)
17999 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18000 case $host_cpu in
18001 hppa*64*)
18002 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18003 ;;
18004 ia64*)
18005 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18006 ;;
18007 *)
18008 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18009 ;;
18010 esac
18011 else
18012 case $host_cpu in
18013 hppa*64*)
18014 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18015 ;;
18016 ia64*)
18017 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18018 ;;
18019 *)
18020 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18021 ;;
18022 esac
18023 fi
18024 if test "$with_gnu_ld" = no; then
18025 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18026 hardcode_libdir_separator_GCJ=:
18027
18028 case $host_cpu in
18029 hppa*64*|ia64*)
18030 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18031 hardcode_direct_GCJ=no
18032 hardcode_shlibpath_var_GCJ=no
18033 ;;
18034 *)
18035 hardcode_direct_GCJ=yes
18036 export_dynamic_flag_spec_GCJ='${wl}-E'
18037
18038 # hardcode_minus_L: Not really in the search PATH,
18039 # but as the default location of the library.
18040 hardcode_minus_L_GCJ=yes
18041 ;;
18042 esac
18043 fi
18044 ;;
18045
18046 irix5* | irix6* | nonstopux*)
18047 if test "$GCC" = yes; then
18048 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'
18049 else
18050 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'
18051 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18052 fi
18053 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18054 hardcode_libdir_separator_GCJ=:
18055 link_all_deplibs_GCJ=yes
18056 ;;
18057
18058 netbsd*)
18059 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18060 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18061 else
18062 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18063 fi
18064 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18065 hardcode_direct_GCJ=yes
18066 hardcode_shlibpath_var_GCJ=no
18067 ;;
18068
18069 newsos6)
18070 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18071 hardcode_direct_GCJ=yes
18072 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18073 hardcode_libdir_separator_GCJ=:
18074 hardcode_shlibpath_var_GCJ=no
18075 ;;
18076
18077 openbsd*)
18078 if test -f /usr/libexec/ld.so; then
18079 hardcode_direct_GCJ=yes
18080 hardcode_shlibpath_var_GCJ=no
18081 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18082 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18083 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18084 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18085 export_dynamic_flag_spec_GCJ='${wl}-E'
18086 else
18087 case $host_os in
18088 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18089 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18090 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18091 ;;
18092 *)
18093 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18094 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18095 ;;
18096 esac
18097 fi
18098 else
18099 ld_shlibs_GCJ=no
18100 fi
18101 ;;
18102
18103 os2*)
18104 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18105 hardcode_minus_L_GCJ=yes
18106 allow_undefined_flag_GCJ=unsupported
18107 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'
18108 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18109 ;;
18110
18111 osf3*)
18112 if test "$GCC" = yes; then
18113 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18114 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'
18115 else
18116 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18117 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'
18118 fi
18119 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18120 hardcode_libdir_separator_GCJ=:
18121 ;;
18122
18123 osf4* | osf5*) # as osf3* with the addition of -msym flag
18124 if test "$GCC" = yes; then
18125 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18126 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'
18127 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18128 else
18129 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18130 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'
18131 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~
18132 $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'
18133
18134 # Both c and cxx compiler support -rpath directly
18135 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18136 fi
18137 hardcode_libdir_separator_GCJ=:
18138 ;;
18139
18140 solaris*)
18141 no_undefined_flag_GCJ=' -z text'
18142 if test "$GCC" = yes; then
18143 wlarc='${wl}'
18144 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18145 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18146 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18147 else
18148 wlarc=''
18149 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18150 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18151 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18152 fi
18153 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18154 hardcode_shlibpath_var_GCJ=no
18155 case $host_os in
18156 solaris2.[0-5] | solaris2.[0-5].*) ;;
18157 *)
18158 # The compiler driver will combine and reorder linker options,
18159 # but understands `-z linker_flag'. GCC discards it without `$wl',
18160 # but is careful enough not to reorder.
18161 # Supported since Solaris 2.6 (maybe 2.5.1?)
18162 if test "$GCC" = yes; then
18163 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18164 else
18165 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18166 fi
18167 ;;
18168 esac
18169 link_all_deplibs_GCJ=yes
18170 ;;
18171
18172 sunos4*)
18173 if test "x$host_vendor" = xsequent; then
18174 # Use $CC to link under sequent, because it throws in some extra .o
18175 # files that make .init and .fini sections work.
18176 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18177 else
18178 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18179 fi
18180 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18181 hardcode_direct_GCJ=yes
18182 hardcode_minus_L_GCJ=yes
18183 hardcode_shlibpath_var_GCJ=no
18184 ;;
18185
18186 sysv4)
18187 case $host_vendor in
18188 sni)
18189 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18190 hardcode_direct_GCJ=yes # is this really true???
18191 ;;
18192 siemens)
18193 ## LD is ld it makes a PLAMLIB
18194 ## CC just makes a GrossModule.
18195 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18196 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18197 hardcode_direct_GCJ=no
18198 ;;
18199 motorola)
18200 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18201 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18202 ;;
18203 esac
18204 runpath_var='LD_RUN_PATH'
18205 hardcode_shlibpath_var_GCJ=no
18206 ;;
18207
18208 sysv4.3*)
18209 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18210 hardcode_shlibpath_var_GCJ=no
18211 export_dynamic_flag_spec_GCJ='-Bexport'
18212 ;;
18213
18214 sysv4*MP*)
18215 if test -d /usr/nec; then
18216 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18217 hardcode_shlibpath_var_GCJ=no
18218 runpath_var=LD_RUN_PATH
18219 hardcode_runpath_var=yes
18220 ld_shlibs_GCJ=yes
18221 fi
18222 ;;
18223
18224 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18225 no_undefined_flag_GCJ='${wl}-z,text'
18226 archive_cmds_need_lc_GCJ=no
18227 hardcode_shlibpath_var_GCJ=no
18228 runpath_var='LD_RUN_PATH'
18229
18230 if test "$GCC" = yes; then
18231 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18232 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18233 else
18234 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18235 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18236 fi
18237 ;;
18238
18239 sysv5* | sco3.2v5* | sco5v6*)
18240 # Note: We can NOT use -z defs as we might desire, because we do not
18241 # link with -lc, and that would cause any symbols used from libc to
18242 # always be unresolved, which means just about no library would
18243 # ever link correctly. If we're not using GNU ld we use -z text
18244 # though, which does catch some bad symbols but isn't as heavy-handed
18245 # as -z defs.
18246 no_undefined_flag_GCJ='${wl}-z,text'
18247 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18248 archive_cmds_need_lc_GCJ=no
18249 hardcode_shlibpath_var_GCJ=no
18250 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18251 hardcode_libdir_separator_GCJ=':'
18252 link_all_deplibs_GCJ=yes
18253 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18254 runpath_var='LD_RUN_PATH'
18255
18256 if test "$GCC" = yes; then
18257 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18258 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18259 else
18260 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18261 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18262 fi
18263 ;;
18264
18265 uts4*)
18266 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18267 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18268 hardcode_shlibpath_var_GCJ=no
18269 ;;
18270
18271 *)
18272 ld_shlibs_GCJ=no
18273 ;;
18274 esac
18275 fi
18276
18277 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18278 $as_echo "$ld_shlibs_GCJ" >&6; }
18279 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18280
18281 #
18282 # Do we need to explicitly link libc?
18283 #
18284 case "x$archive_cmds_need_lc_GCJ" in
18285 x|xyes)
18286 # Assume -lc should be added
18287 archive_cmds_need_lc_GCJ=yes
18288
18289 if test "$enable_shared" = yes && test "$GCC" = yes; then
18290 case $archive_cmds_GCJ in
18291 *'~'*)
18292 # FIXME: we may have to deal with multi-command sequences.
18293 ;;
18294 '$CC '*)
18295 # Test whether the compiler implicitly links with -lc since on some
18296 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18297 # to ld, don't add -lc before -lgcc.
18298 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18299 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18300 $rm conftest*
18301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18302
18303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18304 (eval $ac_compile) 2>&5
18305 ac_status=$?
18306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); } 2>conftest.err; then
18308 soname=conftest
18309 lib=conftest
18310 libobjs=conftest.$ac_objext
18311 deplibs=
18312 wl=$lt_prog_compiler_wl_GCJ
18313 pic_flag=$lt_prog_compiler_pic_GCJ
18314 compiler_flags=-v
18315 linker_flags=-v
18316 verstring=
18317 output_objdir=.
18318 libname=conftest
18319 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18320 allow_undefined_flag_GCJ=
18321 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18322 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18323 ac_status=$?
18324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); }
18326 then
18327 archive_cmds_need_lc_GCJ=no
18328 else
18329 archive_cmds_need_lc_GCJ=yes
18330 fi
18331 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18332 else
18333 cat conftest.err 1>&5
18334 fi
18335 $rm conftest*
18336 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18337 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18338 ;;
18339 esac
18340 fi
18341 ;;
18342 esac
18343
18344 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18345 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18346 library_names_spec=
18347 libname_spec='lib$name'
18348 soname_spec=
18349 shrext_cmds=".so"
18350 postinstall_cmds=
18351 postuninstall_cmds=
18352 finish_cmds=
18353 finish_eval=
18354 shlibpath_var=
18355 shlibpath_overrides_runpath=unknown
18356 version_type=none
18357 dynamic_linker="$host_os ld.so"
18358 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18359
18360 need_lib_prefix=unknown
18361 hardcode_into_libs=no
18362
18363 # when you set need_version to no, make sure it does not cause -set_version
18364 # flags to be left without arguments
18365 need_version=unknown
18366
18367 case $host_os in
18368 aix3*)
18369 version_type=linux
18370 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18371 shlibpath_var=LIBPATH
18372
18373 # AIX 3 has no versioning support, so we append a major version to the name.
18374 soname_spec='${libname}${release}${shared_ext}$major'
18375 ;;
18376
18377 aix[4-9]*)
18378 version_type=linux
18379 need_lib_prefix=no
18380 need_version=no
18381 hardcode_into_libs=yes
18382 if test "$host_cpu" = ia64; then
18383 # AIX 5 supports IA64
18384 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18385 shlibpath_var=LD_LIBRARY_PATH
18386 else
18387 # With GCC up to 2.95.x, collect2 would create an import file
18388 # for dependence libraries. The import file would start with
18389 # the line `#! .'. This would cause the generated library to
18390 # depend on `.', always an invalid library. This was fixed in
18391 # development snapshots of GCC prior to 3.0.
18392 case $host_os in
18393 aix4 | aix4.[01] | aix4.[01].*)
18394 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18395 echo ' yes '
18396 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18397 :
18398 else
18399 can_build_shared=no
18400 fi
18401 ;;
18402 esac
18403 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18404 # soname into executable. Probably we can add versioning support to
18405 # collect2, so additional links can be useful in future.
18406 if test "$aix_use_runtimelinking" = yes; then
18407 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18408 # instead of lib<name>.a to let people know that these are not
18409 # typical AIX shared libraries.
18410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18411 else
18412 # We preserve .a as extension for shared libraries through AIX4.2
18413 # and later when we are not doing run time linking.
18414 library_names_spec='${libname}${release}.a $libname.a'
18415 soname_spec='${libname}${release}${shared_ext}$major'
18416 fi
18417 shlibpath_var=LIBPATH
18418 fi
18419 ;;
18420
18421 amigaos*)
18422 library_names_spec='$libname.ixlibrary $libname.a'
18423 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18424 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'
18425 ;;
18426
18427 beos*)
18428 library_names_spec='${libname}${shared_ext}'
18429 dynamic_linker="$host_os ld.so"
18430 shlibpath_var=LIBRARY_PATH
18431 ;;
18432
18433 bsdi[45]*)
18434 version_type=linux
18435 need_version=no
18436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18437 soname_spec='${libname}${release}${shared_ext}$major'
18438 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18439 shlibpath_var=LD_LIBRARY_PATH
18440 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18441 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18442 # the default ld.so.conf also contains /usr/contrib/lib and
18443 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18444 # libtool to hard-code these into programs
18445 ;;
18446
18447 cygwin* | mingw* | pw32*)
18448 version_type=windows
18449 shrext_cmds=".dll"
18450 need_version=no
18451 need_lib_prefix=no
18452
18453 case $GCC,$host_os in
18454 yes,cygwin* | yes,mingw* | yes,pw32*)
18455 library_names_spec='$libname.dll.a'
18456 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18457 postinstall_cmds='base_file=`basename \${file}`~
18458 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18459 dldir=$destdir/`dirname \$dlpath`~
18460 test -d \$dldir || mkdir -p \$dldir~
18461 $install_prog $dir/$dlname \$dldir/$dlname~
18462 chmod a+x \$dldir/$dlname'
18463 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18464 dlpath=$dir/\$dldll~
18465 $rm \$dlpath'
18466 shlibpath_overrides_runpath=yes
18467
18468 case $host_os in
18469 cygwin*)
18470 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18471 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18472 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18473 ;;
18474 mingw*)
18475 # MinGW DLLs use traditional 'lib' prefix
18476 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18477 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18478 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18479 # It is most probably a Windows format PATH printed by
18480 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18481 # path with ; separators, and with drive letters. We can handle the
18482 # drive letters (cygwin fileutils understands them), so leave them,
18483 # especially as we might pass files found there to a mingw objdump,
18484 # which wouldn't understand a cygwinified path. Ahh.
18485 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18486 else
18487 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18488 fi
18489 ;;
18490 pw32*)
18491 # pw32 DLLs use 'pw' prefix rather than 'lib'
18492 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18493 ;;
18494 esac
18495 ;;
18496
18497 *)
18498 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18499 ;;
18500 esac
18501 dynamic_linker='Win32 ld.exe'
18502 # FIXME: first we should search . and the directory the executable is in
18503 shlibpath_var=PATH
18504 ;;
18505
18506 darwin* | rhapsody*)
18507 dynamic_linker="$host_os dyld"
18508 version_type=darwin
18509 need_lib_prefix=no
18510 need_version=no
18511 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18512 soname_spec='${libname}${release}${major}$shared_ext'
18513 shlibpath_overrides_runpath=yes
18514 shlibpath_var=DYLD_LIBRARY_PATH
18515 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18516
18517 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18518 ;;
18519
18520 dgux*)
18521 version_type=linux
18522 need_lib_prefix=no
18523 need_version=no
18524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18525 soname_spec='${libname}${release}${shared_ext}$major'
18526 shlibpath_var=LD_LIBRARY_PATH
18527 ;;
18528
18529 freebsd1*)
18530 dynamic_linker=no
18531 ;;
18532
18533 freebsd* | dragonfly*)
18534 # DragonFly does not have aout. When/if they implement a new
18535 # versioning mechanism, adjust this.
18536 if test -x /usr/bin/objformat; then
18537 objformat=`/usr/bin/objformat`
18538 else
18539 case $host_os in
18540 freebsd[123]*) objformat=aout ;;
18541 *) objformat=elf ;;
18542 esac
18543 fi
18544 version_type=freebsd-$objformat
18545 case $version_type in
18546 freebsd-elf*)
18547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18548 need_version=no
18549 need_lib_prefix=no
18550 ;;
18551 freebsd-*)
18552 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18553 need_version=yes
18554 ;;
18555 esac
18556 shlibpath_var=LD_LIBRARY_PATH
18557 case $host_os in
18558 freebsd2*)
18559 shlibpath_overrides_runpath=yes
18560 ;;
18561 freebsd3.[01]* | freebsdelf3.[01]*)
18562 shlibpath_overrides_runpath=yes
18563 hardcode_into_libs=yes
18564 ;;
18565 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18566 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18567 shlibpath_overrides_runpath=no
18568 hardcode_into_libs=yes
18569 ;;
18570 *) # from 4.6 on, and DragonFly
18571 shlibpath_overrides_runpath=yes
18572 hardcode_into_libs=yes
18573 ;;
18574 esac
18575 ;;
18576
18577 gnu*)
18578 version_type=linux
18579 need_lib_prefix=no
18580 need_version=no
18581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18582 soname_spec='${libname}${release}${shared_ext}$major'
18583 shlibpath_var=LD_LIBRARY_PATH
18584 hardcode_into_libs=yes
18585 ;;
18586
18587 hpux9* | hpux10* | hpux11*)
18588 # Give a soname corresponding to the major version so that dld.sl refuses to
18589 # link against other versions.
18590 version_type=sunos
18591 need_lib_prefix=no
18592 need_version=no
18593 case $host_cpu in
18594 ia64*)
18595 shrext_cmds='.so'
18596 hardcode_into_libs=yes
18597 dynamic_linker="$host_os dld.so"
18598 shlibpath_var=LD_LIBRARY_PATH
18599 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18601 soname_spec='${libname}${release}${shared_ext}$major'
18602 if test "X$HPUX_IA64_MODE" = X32; then
18603 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18604 else
18605 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18606 fi
18607 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18608 ;;
18609 hppa*64*)
18610 shrext_cmds='.sl'
18611 hardcode_into_libs=yes
18612 dynamic_linker="$host_os dld.sl"
18613 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18616 soname_spec='${libname}${release}${shared_ext}$major'
18617 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18618 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18619 ;;
18620 *)
18621 shrext_cmds='.sl'
18622 dynamic_linker="$host_os dld.sl"
18623 shlibpath_var=SHLIB_PATH
18624 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18626 soname_spec='${libname}${release}${shared_ext}$major'
18627 ;;
18628 esac
18629 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18630 postinstall_cmds='chmod 555 $lib'
18631 ;;
18632
18633 interix[3-9]*)
18634 version_type=linux
18635 need_lib_prefix=no
18636 need_version=no
18637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18638 soname_spec='${libname}${release}${shared_ext}$major'
18639 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18640 shlibpath_var=LD_LIBRARY_PATH
18641 shlibpath_overrides_runpath=no
18642 hardcode_into_libs=yes
18643 ;;
18644
18645 irix5* | irix6* | nonstopux*)
18646 case $host_os in
18647 nonstopux*) version_type=nonstopux ;;
18648 *)
18649 if test "$lt_cv_prog_gnu_ld" = yes; then
18650 version_type=linux
18651 else
18652 version_type=irix
18653 fi ;;
18654 esac
18655 need_lib_prefix=no
18656 need_version=no
18657 soname_spec='${libname}${release}${shared_ext}$major'
18658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18659 case $host_os in
18660 irix5* | nonstopux*)
18661 libsuff= shlibsuff=
18662 ;;
18663 *)
18664 case $LD in # libtool.m4 will add one of these switches to LD
18665 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18666 libsuff= shlibsuff= libmagic=32-bit;;
18667 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18668 libsuff=32 shlibsuff=N32 libmagic=N32;;
18669 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18670 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18671 *) libsuff= shlibsuff= libmagic=never-match;;
18672 esac
18673 ;;
18674 esac
18675 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18676 shlibpath_overrides_runpath=no
18677 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18678 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18679 hardcode_into_libs=yes
18680 ;;
18681
18682 # No shared lib support for Linux oldld, aout, or coff.
18683 linux*oldld* | linux*aout* | linux*coff*)
18684 dynamic_linker=no
18685 ;;
18686
18687 # This must be Linux ELF.
18688 linux* | k*bsd*-gnu)
18689 version_type=linux
18690 need_lib_prefix=no
18691 need_version=no
18692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18693 soname_spec='${libname}${release}${shared_ext}$major'
18694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18695 shlibpath_var=LD_LIBRARY_PATH
18696 shlibpath_overrides_runpath=no
18697 # This implies no fast_install, which is unacceptable.
18698 # Some rework will be needed to allow for fast_install
18699 # before this can be enabled.
18700 hardcode_into_libs=yes
18701
18702 # Append ld.so.conf contents to the search path
18703 if test -f /etc/ld.so.conf; then
18704 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' ' '`
18705 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18706 fi
18707
18708 # We used to test for /lib/ld.so.1 and disable shared libraries on
18709 # powerpc, because MkLinux only supported shared libraries with the
18710 # GNU dynamic linker. Since this was broken with cross compilers,
18711 # most powerpc-linux boxes support dynamic linking these days and
18712 # people can always --disable-shared, the test was removed, and we
18713 # assume the GNU/Linux dynamic linker is in use.
18714 dynamic_linker='GNU/Linux ld.so'
18715 ;;
18716
18717 netbsd*)
18718 version_type=sunos
18719 need_lib_prefix=no
18720 need_version=no
18721 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18724 dynamic_linker='NetBSD (a.out) ld.so'
18725 else
18726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18727 soname_spec='${libname}${release}${shared_ext}$major'
18728 dynamic_linker='NetBSD ld.elf_so'
18729 fi
18730 shlibpath_var=LD_LIBRARY_PATH
18731 shlibpath_overrides_runpath=yes
18732 hardcode_into_libs=yes
18733 ;;
18734
18735 newsos6)
18736 version_type=linux
18737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18738 shlibpath_var=LD_LIBRARY_PATH
18739 shlibpath_overrides_runpath=yes
18740 ;;
18741
18742 nto-qnx*)
18743 version_type=linux
18744 need_lib_prefix=no
18745 need_version=no
18746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18747 soname_spec='${libname}${release}${shared_ext}$major'
18748 shlibpath_var=LD_LIBRARY_PATH
18749 shlibpath_overrides_runpath=yes
18750 ;;
18751
18752 openbsd*)
18753 version_type=sunos
18754 sys_lib_dlsearch_path_spec="/usr/lib"
18755 need_lib_prefix=no
18756 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18757 case $host_os in
18758 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18759 *) need_version=no ;;
18760 esac
18761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18763 shlibpath_var=LD_LIBRARY_PATH
18764 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18765 case $host_os in
18766 openbsd2.[89] | openbsd2.[89].*)
18767 shlibpath_overrides_runpath=no
18768 ;;
18769 *)
18770 shlibpath_overrides_runpath=yes
18771 ;;
18772 esac
18773 else
18774 shlibpath_overrides_runpath=yes
18775 fi
18776 ;;
18777
18778 os2*)
18779 libname_spec='$name'
18780 shrext_cmds=".dll"
18781 need_lib_prefix=no
18782 library_names_spec='$libname${shared_ext} $libname.a'
18783 dynamic_linker='OS/2 ld.exe'
18784 shlibpath_var=LIBPATH
18785 ;;
18786
18787 osf3* | osf4* | osf5*)
18788 version_type=osf
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${shared_ext}'
18793 shlibpath_var=LD_LIBRARY_PATH
18794 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18795 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18796 ;;
18797
18798 rdos*)
18799 dynamic_linker=no
18800 ;;
18801
18802 solaris*)
18803 version_type=linux
18804 need_lib_prefix=no
18805 need_version=no
18806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18807 soname_spec='${libname}${release}${shared_ext}$major'
18808 shlibpath_var=LD_LIBRARY_PATH
18809 shlibpath_overrides_runpath=yes
18810 hardcode_into_libs=yes
18811 # ldd complains unless libraries are executable
18812 postinstall_cmds='chmod +x $lib'
18813 ;;
18814
18815 sunos4*)
18816 version_type=sunos
18817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18818 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18819 shlibpath_var=LD_LIBRARY_PATH
18820 shlibpath_overrides_runpath=yes
18821 if test "$with_gnu_ld" = yes; then
18822 need_lib_prefix=no
18823 fi
18824 need_version=yes
18825 ;;
18826
18827 sysv4 | sysv4.3*)
18828 version_type=linux
18829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18830 soname_spec='${libname}${release}${shared_ext}$major'
18831 shlibpath_var=LD_LIBRARY_PATH
18832 case $host_vendor in
18833 sni)
18834 shlibpath_overrides_runpath=no
18835 need_lib_prefix=no
18836 export_dynamic_flag_spec='${wl}-Blargedynsym'
18837 runpath_var=LD_RUN_PATH
18838 ;;
18839 siemens)
18840 need_lib_prefix=no
18841 ;;
18842 motorola)
18843 need_lib_prefix=no
18844 need_version=no
18845 shlibpath_overrides_runpath=no
18846 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18847 ;;
18848 esac
18849 ;;
18850
18851 sysv4*MP*)
18852 if test -d /usr/nec ;then
18853 version_type=linux
18854 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18855 soname_spec='$libname${shared_ext}.$major'
18856 shlibpath_var=LD_LIBRARY_PATH
18857 fi
18858 ;;
18859
18860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18861 version_type=freebsd-elf
18862 need_lib_prefix=no
18863 need_version=no
18864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18865 soname_spec='${libname}${release}${shared_ext}$major'
18866 shlibpath_var=LD_LIBRARY_PATH
18867 hardcode_into_libs=yes
18868 if test "$with_gnu_ld" = yes; then
18869 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18870 shlibpath_overrides_runpath=no
18871 else
18872 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18873 shlibpath_overrides_runpath=yes
18874 case $host_os in
18875 sco3.2v5*)
18876 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18877 ;;
18878 esac
18879 fi
18880 sys_lib_dlsearch_path_spec='/usr/lib'
18881 ;;
18882
18883 uts4*)
18884 version_type=linux
18885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18886 soname_spec='${libname}${release}${shared_ext}$major'
18887 shlibpath_var=LD_LIBRARY_PATH
18888 ;;
18889
18890 *)
18891 dynamic_linker=no
18892 ;;
18893 esac
18894 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18895 $as_echo "$dynamic_linker" >&6; }
18896 test "$dynamic_linker" = no && can_build_shared=no
18897
18898 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18899 $as_echo_n "(cached) " >&6
18900 else
18901 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18902 fi
18903
18904 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18905 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18906 $as_echo_n "(cached) " >&6
18907 else
18908 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18909 fi
18910
18911 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18912
18913 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18914 if test "$GCC" = yes; then
18915 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18916 fi
18917
18918 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18919 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18920 hardcode_action_GCJ=
18921 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18922 test -n "$runpath_var_GCJ" || \
18923 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18924
18925 # We can hardcode non-existant directories.
18926 if test "$hardcode_direct_GCJ" != no &&
18927 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18928 # have to relink, otherwise we might link with an installed library
18929 # when we should be linking with a yet-to-be-installed one
18930 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18931 test "$hardcode_minus_L_GCJ" != no; then
18932 # Linking always hardcodes the temporary library directory.
18933 hardcode_action_GCJ=relink
18934 else
18935 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18936 hardcode_action_GCJ=immediate
18937 fi
18938 else
18939 # We cannot hardcode anything, or else we can only hardcode existing
18940 # directories.
18941 hardcode_action_GCJ=unsupported
18942 fi
18943 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18944 $as_echo "$hardcode_action_GCJ" >&6; }
18945
18946 if test "$hardcode_action_GCJ" = relink; then
18947 # Fast installation is not supported
18948 enable_fast_install=no
18949 elif test "$shlibpath_overrides_runpath" = yes ||
18950 test "$enable_shared" = no; then
18951 # Fast installation is not necessary
18952 enable_fast_install=needless
18953 fi
18954
18955
18956 # The else clause should only fire when bootstrapping the
18957 # libtool distribution, otherwise you forgot to ship ltmain.sh
18958 # with your package, and you will get complaints that there are
18959 # no rules to generate ltmain.sh.
18960 if test -f "$ltmain"; then
18961 # See if we are running on zsh, and set the options which allow our commands through
18962 # without removal of \ escapes.
18963 if test -n "${ZSH_VERSION+set}" ; then
18964 setopt NO_GLOB_SUBST
18965 fi
18966 # Now quote all the things that may contain metacharacters while being
18967 # careful not to overquote the AC_SUBSTed values. We take copies of the
18968 # variables and quote the copies for generation of the libtool script.
18969 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18970 SED SHELL STRIP \
18971 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18972 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18973 deplibs_check_method reload_flag reload_cmds need_locks \
18974 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18975 lt_cv_sys_global_symbol_to_c_name_address \
18976 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18977 old_postinstall_cmds old_postuninstall_cmds \
18978 compiler_GCJ \
18979 CC_GCJ \
18980 LD_GCJ \
18981 lt_prog_compiler_wl_GCJ \
18982 lt_prog_compiler_pic_GCJ \
18983 lt_prog_compiler_static_GCJ \
18984 lt_prog_compiler_no_builtin_flag_GCJ \
18985 export_dynamic_flag_spec_GCJ \
18986 thread_safe_flag_spec_GCJ \
18987 whole_archive_flag_spec_GCJ \
18988 enable_shared_with_static_runtimes_GCJ \
18989 old_archive_cmds_GCJ \
18990 old_archive_from_new_cmds_GCJ \
18991 predep_objects_GCJ \
18992 postdep_objects_GCJ \
18993 predeps_GCJ \
18994 postdeps_GCJ \
18995 compiler_lib_search_path_GCJ \
18996 compiler_lib_search_dirs_GCJ \
18997 archive_cmds_GCJ \
18998 archive_expsym_cmds_GCJ \
18999 postinstall_cmds_GCJ \
19000 postuninstall_cmds_GCJ \
19001 old_archive_from_expsyms_cmds_GCJ \
19002 allow_undefined_flag_GCJ \
19003 no_undefined_flag_GCJ \
19004 export_symbols_cmds_GCJ \
19005 hardcode_libdir_flag_spec_GCJ \
19006 hardcode_libdir_flag_spec_ld_GCJ \
19007 hardcode_libdir_separator_GCJ \
19008 hardcode_automatic_GCJ \
19009 module_cmds_GCJ \
19010 module_expsym_cmds_GCJ \
19011 lt_cv_prog_compiler_c_o_GCJ \
19012 fix_srcfile_path_GCJ \
19013 exclude_expsyms_GCJ \
19014 include_expsyms_GCJ; do
19015
19016 case $var in
19017 old_archive_cmds_GCJ | \
19018 old_archive_from_new_cmds_GCJ | \
19019 archive_cmds_GCJ | \
19020 archive_expsym_cmds_GCJ | \
19021 module_cmds_GCJ | \
19022 module_expsym_cmds_GCJ | \
19023 old_archive_from_expsyms_cmds_GCJ | \
19024 export_symbols_cmds_GCJ | \
19025 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19026 postinstall_cmds | postuninstall_cmds | \
19027 old_postinstall_cmds | old_postuninstall_cmds | \
19028 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19029 # Double-quote double-evaled strings.
19030 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19031 ;;
19032 *)
19033 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19034 ;;
19035 esac
19036 done
19037
19038 case $lt_echo in
19039 *'\$0 --fallback-echo"')
19040 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19041 ;;
19042 esac
19043
19044 cfgfile="$ofile"
19045
19046 cat <<__EOF__ >> "$cfgfile"
19047 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19048
19049 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19050
19051 # Shell to use when invoking shell scripts.
19052 SHELL=$lt_SHELL
19053
19054 # Whether or not to build shared libraries.
19055 build_libtool_libs=$enable_shared
19056
19057 # Whether or not to build static libraries.
19058 build_old_libs=$enable_static
19059
19060 # Whether or not to add -lc for building shared libraries.
19061 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19062
19063 # Whether or not to disallow shared libs when runtime libs are static
19064 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19065
19066 # Whether or not to optimize for fast installation.
19067 fast_install=$enable_fast_install
19068
19069 # The host system.
19070 host_alias=$host_alias
19071 host=$host
19072 host_os=$host_os
19073
19074 # The build system.
19075 build_alias=$build_alias
19076 build=$build
19077 build_os=$build_os
19078
19079 # An echo program that does not interpret backslashes.
19080 echo=$lt_echo
19081
19082 # The archiver.
19083 AR=$lt_AR
19084 AR_FLAGS=$lt_AR_FLAGS
19085
19086 # A C compiler.
19087 LTCC=$lt_LTCC
19088
19089 # LTCC compiler flags.
19090 LTCFLAGS=$lt_LTCFLAGS
19091
19092 # A language-specific compiler.
19093 CC=$lt_compiler_GCJ
19094
19095 # Is the compiler the GNU C compiler?
19096 with_gcc=$GCC_GCJ
19097
19098 # An ERE matcher.
19099 EGREP=$lt_EGREP
19100
19101 # The linker used to build libraries.
19102 LD=$lt_LD_GCJ
19103
19104 # Whether we need hard or soft links.
19105 LN_S=$lt_LN_S
19106
19107 # A BSD-compatible nm program.
19108 NM=$lt_NM
19109
19110 # A symbol stripping program
19111 STRIP=$lt_STRIP
19112
19113 # Used to examine libraries when file_magic_cmd begins "file"
19114 MAGIC_CMD=$MAGIC_CMD
19115
19116 # Used on cygwin: DLL creation program.
19117 DLLTOOL="$DLLTOOL"
19118
19119 # Used on cygwin: object dumper.
19120 OBJDUMP="$OBJDUMP"
19121
19122 # Used on cygwin: assembler.
19123 AS="$AS"
19124
19125 # The name of the directory that contains temporary libtool files.
19126 objdir=$objdir
19127
19128 # How to create reloadable object files.
19129 reload_flag=$lt_reload_flag
19130 reload_cmds=$lt_reload_cmds
19131
19132 # How to pass a linker flag through the compiler.
19133 wl=$lt_lt_prog_compiler_wl_GCJ
19134
19135 # Object file suffix (normally "o").
19136 objext="$ac_objext"
19137
19138 # Old archive suffix (normally "a").
19139 libext="$libext"
19140
19141 # Shared library suffix (normally ".so").
19142 shrext_cmds='$shrext_cmds'
19143
19144 # Executable file suffix (normally "").
19145 exeext="$exeext"
19146
19147 # Additional compiler flags for building library objects.
19148 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19149 pic_mode=$pic_mode
19150
19151 # What is the maximum length of a command?
19152 max_cmd_len=$lt_cv_sys_max_cmd_len
19153
19154 # Does compiler simultaneously support -c and -o options?
19155 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19156
19157 # Must we lock files when doing compilation?
19158 need_locks=$lt_need_locks
19159
19160 # Do we need the lib prefix for modules?
19161 need_lib_prefix=$need_lib_prefix
19162
19163 # Do we need a version for libraries?
19164 need_version=$need_version
19165
19166 # Whether dlopen is supported.
19167 dlopen_support=$enable_dlopen
19168
19169 # Whether dlopen of programs is supported.
19170 dlopen_self=$enable_dlopen_self
19171
19172 # Whether dlopen of statically linked programs is supported.
19173 dlopen_self_static=$enable_dlopen_self_static
19174
19175 # Compiler flag to prevent dynamic linking.
19176 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19177
19178 # Compiler flag to turn off builtin functions.
19179 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19180
19181 # Compiler flag to allow reflexive dlopens.
19182 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19183
19184 # Compiler flag to generate shared objects directly from archives.
19185 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19186
19187 # Compiler flag to generate thread-safe objects.
19188 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19189
19190 # Library versioning type.
19191 version_type=$version_type
19192
19193 # Format of library name prefix.
19194 libname_spec=$lt_libname_spec
19195
19196 # List of archive names. First name is the real one, the rest are links.
19197 # The last name is the one that the linker finds with -lNAME.
19198 library_names_spec=$lt_library_names_spec
19199
19200 # The coded name of the library, if different from the real name.
19201 soname_spec=$lt_soname_spec
19202
19203 # Commands used to build and install an old-style archive.
19204 RANLIB=$lt_RANLIB
19205 old_archive_cmds=$lt_old_archive_cmds_GCJ
19206 old_postinstall_cmds=$lt_old_postinstall_cmds
19207 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19208
19209 # Create an old-style archive from a shared archive.
19210 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19211
19212 # Create a temporary old-style archive to link instead of a shared archive.
19213 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19214
19215 # Commands used to build and install a shared archive.
19216 archive_cmds=$lt_archive_cmds_GCJ
19217 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19218 postinstall_cmds=$lt_postinstall_cmds
19219 postuninstall_cmds=$lt_postuninstall_cmds
19220
19221 # Commands used to build a loadable module (assumed same as above if empty)
19222 module_cmds=$lt_module_cmds_GCJ
19223 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19224
19225 # Commands to strip libraries.
19226 old_striplib=$lt_old_striplib
19227 striplib=$lt_striplib
19228
19229 # Dependencies to place before the objects being linked to create a
19230 # shared library.
19231 predep_objects=$lt_predep_objects_GCJ
19232
19233 # Dependencies to place after the objects being linked to create a
19234 # shared library.
19235 postdep_objects=$lt_postdep_objects_GCJ
19236
19237 # Dependencies to place before the objects being linked to create a
19238 # shared library.
19239 predeps=$lt_predeps_GCJ
19240
19241 # Dependencies to place after the objects being linked to create a
19242 # shared library.
19243 postdeps=$lt_postdeps_GCJ
19244
19245 # The directories searched by this compiler when creating a shared
19246 # library
19247 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19248
19249 # The library search path used internally by the compiler when linking
19250 # a shared library.
19251 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19252
19253 # Method to check whether dependent libraries are shared objects.
19254 deplibs_check_method=$lt_deplibs_check_method
19255
19256 # Command to use when deplibs_check_method == file_magic.
19257 file_magic_cmd=$lt_file_magic_cmd
19258
19259 # Flag that allows shared libraries with undefined symbols to be built.
19260 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19261
19262 # Flag that forces no undefined symbols.
19263 no_undefined_flag=$lt_no_undefined_flag_GCJ
19264
19265 # Commands used to finish a libtool library installation in a directory.
19266 finish_cmds=$lt_finish_cmds
19267
19268 # Same as above, but a single script fragment to be evaled but not shown.
19269 finish_eval=$lt_finish_eval
19270
19271 # Take the output of nm and produce a listing of raw symbols and C names.
19272 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19273
19274 # Transform the output of nm in a proper C declaration
19275 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19276
19277 # Transform the output of nm in a C name address pair
19278 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19279
19280 # This is the shared library runtime path variable.
19281 runpath_var=$runpath_var
19282
19283 # This is the shared library path variable.
19284 shlibpath_var=$shlibpath_var
19285
19286 # Is shlibpath searched before the hard-coded library search path?
19287 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19288
19289 # How to hardcode a shared library path into an executable.
19290 hardcode_action=$hardcode_action_GCJ
19291
19292 # Whether we should hardcode library paths into libraries.
19293 hardcode_into_libs=$hardcode_into_libs
19294
19295 # Flag to hardcode \$libdir into a binary during linking.
19296 # This must work even if \$libdir does not exist.
19297 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19298
19299 # If ld is used when linking, flag to hardcode \$libdir into
19300 # a binary during linking. This must work even if \$libdir does
19301 # not exist.
19302 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19303
19304 # Whether we need a single -rpath flag with a separated argument.
19305 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19306
19307 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19308 # resulting binary.
19309 hardcode_direct=$hardcode_direct_GCJ
19310
19311 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19312 # resulting binary.
19313 hardcode_minus_L=$hardcode_minus_L_GCJ
19314
19315 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19316 # the resulting binary.
19317 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19318
19319 # Set to yes if building a shared library automatically hardcodes DIR into the library
19320 # and all subsequent libraries and executables linked against it.
19321 hardcode_automatic=$hardcode_automatic_GCJ
19322
19323 # Variables whose values should be saved in libtool wrapper scripts and
19324 # restored at relink time.
19325 variables_saved_for_relink="$variables_saved_for_relink"
19326
19327 # Whether libtool must link a program against all its dependency libraries.
19328 link_all_deplibs=$link_all_deplibs_GCJ
19329
19330 # Compile-time system search path for libraries
19331 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19332
19333 # Run-time system search path for libraries
19334 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19335
19336 # Fix the shell variable \$srcfile for the compiler.
19337 fix_srcfile_path=$lt_fix_srcfile_path
19338
19339 # Set to yes if exported symbols are required.
19340 always_export_symbols=$always_export_symbols_GCJ
19341
19342 # The commands to list exported symbols.
19343 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19344
19345 # The commands to extract the exported symbol list from a shared archive.
19346 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19347
19348 # Symbols that should not be listed in the preloaded symbols.
19349 exclude_expsyms=$lt_exclude_expsyms_GCJ
19350
19351 # Symbols that must always be exported.
19352 include_expsyms=$lt_include_expsyms_GCJ
19353
19354 # ### END LIBTOOL TAG CONFIG: $tagname
19355
19356 __EOF__
19357
19358
19359 else
19360 # If there is no Makefile yet, we rely on a make rule to execute
19361 # `config.status --recheck' to rerun these tests and create the
19362 # libtool script then.
19363 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19364 if test -f "$ltmain_in"; then
19365 test -f Makefile && make "$ltmain"
19366 fi
19367 fi
19368
19369
19370 ac_ext=c
19371 ac_cpp='$CPP $CPPFLAGS'
19372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19375
19376 CC="$lt_save_CC"
19377
19378 else
19379 tagname=""
19380 fi
19381 ;;
19382
19383 RC)
19384
19385
19386 # Source file extension for RC test sources.
19387 ac_ext=rc
19388
19389 # Object file extension for compiled RC test sources.
19390 objext=o
19391 objext_RC=$objext
19392
19393 # Code to be used in simple compile tests
19394 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19395
19396 # Code to be used in simple link tests
19397 lt_simple_link_test_code="$lt_simple_compile_test_code"
19398
19399 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19400
19401 # If no C compiler was specified, use CC.
19402 LTCC=${LTCC-"$CC"}
19403
19404 # If no C compiler flags were specified, use CFLAGS.
19405 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19406
19407 # Allow CC to be a program name with arguments.
19408 compiler=$CC
19409
19410
19411 # save warnings/boilerplate of simple test code
19412 ac_outfile=conftest.$ac_objext
19413 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19414 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19415 _lt_compiler_boilerplate=`cat conftest.err`
19416 $rm conftest*
19417
19418 ac_outfile=conftest.$ac_objext
19419 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19420 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19421 _lt_linker_boilerplate=`cat conftest.err`
19422 $rm -r conftest*
19423
19424
19425 # Allow CC to be a program name with arguments.
19426 lt_save_CC="$CC"
19427 CC=${RC-"windres"}
19428 compiler=$CC
19429 compiler_RC=$CC
19430 for cc_temp in $compiler""; do
19431 case $cc_temp in
19432 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19433 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19434 \-*) ;;
19435 *) break;;
19436 esac
19437 done
19438 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19439
19440 lt_cv_prog_compiler_c_o_RC=yes
19441
19442 # The else clause should only fire when bootstrapping the
19443 # libtool distribution, otherwise you forgot to ship ltmain.sh
19444 # with your package, and you will get complaints that there are
19445 # no rules to generate ltmain.sh.
19446 if test -f "$ltmain"; then
19447 # See if we are running on zsh, and set the options which allow our commands through
19448 # without removal of \ escapes.
19449 if test -n "${ZSH_VERSION+set}" ; then
19450 setopt NO_GLOB_SUBST
19451 fi
19452 # Now quote all the things that may contain metacharacters while being
19453 # careful not to overquote the AC_SUBSTed values. We take copies of the
19454 # variables and quote the copies for generation of the libtool script.
19455 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19456 SED SHELL STRIP \
19457 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19458 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19459 deplibs_check_method reload_flag reload_cmds need_locks \
19460 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19461 lt_cv_sys_global_symbol_to_c_name_address \
19462 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19463 old_postinstall_cmds old_postuninstall_cmds \
19464 compiler_RC \
19465 CC_RC \
19466 LD_RC \
19467 lt_prog_compiler_wl_RC \
19468 lt_prog_compiler_pic_RC \
19469 lt_prog_compiler_static_RC \
19470 lt_prog_compiler_no_builtin_flag_RC \
19471 export_dynamic_flag_spec_RC \
19472 thread_safe_flag_spec_RC \
19473 whole_archive_flag_spec_RC \
19474 enable_shared_with_static_runtimes_RC \
19475 old_archive_cmds_RC \
19476 old_archive_from_new_cmds_RC \
19477 predep_objects_RC \
19478 postdep_objects_RC \
19479 predeps_RC \
19480 postdeps_RC \
19481 compiler_lib_search_path_RC \
19482 compiler_lib_search_dirs_RC \
19483 archive_cmds_RC \
19484 archive_expsym_cmds_RC \
19485 postinstall_cmds_RC \
19486 postuninstall_cmds_RC \
19487 old_archive_from_expsyms_cmds_RC \
19488 allow_undefined_flag_RC \
19489 no_undefined_flag_RC \
19490 export_symbols_cmds_RC \
19491 hardcode_libdir_flag_spec_RC \
19492 hardcode_libdir_flag_spec_ld_RC \
19493 hardcode_libdir_separator_RC \
19494 hardcode_automatic_RC \
19495 module_cmds_RC \
19496 module_expsym_cmds_RC \
19497 lt_cv_prog_compiler_c_o_RC \
19498 fix_srcfile_path_RC \
19499 exclude_expsyms_RC \
19500 include_expsyms_RC; do
19501
19502 case $var in
19503 old_archive_cmds_RC | \
19504 old_archive_from_new_cmds_RC | \
19505 archive_cmds_RC | \
19506 archive_expsym_cmds_RC | \
19507 module_cmds_RC | \
19508 module_expsym_cmds_RC | \
19509 old_archive_from_expsyms_cmds_RC | \
19510 export_symbols_cmds_RC | \
19511 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19512 postinstall_cmds | postuninstall_cmds | \
19513 old_postinstall_cmds | old_postuninstall_cmds | \
19514 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19515 # Double-quote double-evaled strings.
19516 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19517 ;;
19518 *)
19519 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19520 ;;
19521 esac
19522 done
19523
19524 case $lt_echo in
19525 *'\$0 --fallback-echo"')
19526 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19527 ;;
19528 esac
19529
19530 cfgfile="$ofile"
19531
19532 cat <<__EOF__ >> "$cfgfile"
19533 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19534
19535 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19536
19537 # Shell to use when invoking shell scripts.
19538 SHELL=$lt_SHELL
19539
19540 # Whether or not to build shared libraries.
19541 build_libtool_libs=$enable_shared
19542
19543 # Whether or not to build static libraries.
19544 build_old_libs=$enable_static
19545
19546 # Whether or not to add -lc for building shared libraries.
19547 build_libtool_need_lc=$archive_cmds_need_lc_RC
19548
19549 # Whether or not to disallow shared libs when runtime libs are static
19550 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19551
19552 # Whether or not to optimize for fast installation.
19553 fast_install=$enable_fast_install
19554
19555 # The host system.
19556 host_alias=$host_alias
19557 host=$host
19558 host_os=$host_os
19559
19560 # The build system.
19561 build_alias=$build_alias
19562 build=$build
19563 build_os=$build_os
19564
19565 # An echo program that does not interpret backslashes.
19566 echo=$lt_echo
19567
19568 # The archiver.
19569 AR=$lt_AR
19570 AR_FLAGS=$lt_AR_FLAGS
19571
19572 # A C compiler.
19573 LTCC=$lt_LTCC
19574
19575 # LTCC compiler flags.
19576 LTCFLAGS=$lt_LTCFLAGS
19577
19578 # A language-specific compiler.
19579 CC=$lt_compiler_RC
19580
19581 # Is the compiler the GNU C compiler?
19582 with_gcc=$GCC_RC
19583
19584 # An ERE matcher.
19585 EGREP=$lt_EGREP
19586
19587 # The linker used to build libraries.
19588 LD=$lt_LD_RC
19589
19590 # Whether we need hard or soft links.
19591 LN_S=$lt_LN_S
19592
19593 # A BSD-compatible nm program.
19594 NM=$lt_NM
19595
19596 # A symbol stripping program
19597 STRIP=$lt_STRIP
19598
19599 # Used to examine libraries when file_magic_cmd begins "file"
19600 MAGIC_CMD=$MAGIC_CMD
19601
19602 # Used on cygwin: DLL creation program.
19603 DLLTOOL="$DLLTOOL"
19604
19605 # Used on cygwin: object dumper.
19606 OBJDUMP="$OBJDUMP"
19607
19608 # Used on cygwin: assembler.
19609 AS="$AS"
19610
19611 # The name of the directory that contains temporary libtool files.
19612 objdir=$objdir
19613
19614 # How to create reloadable object files.
19615 reload_flag=$lt_reload_flag
19616 reload_cmds=$lt_reload_cmds
19617
19618 # How to pass a linker flag through the compiler.
19619 wl=$lt_lt_prog_compiler_wl_RC
19620
19621 # Object file suffix (normally "o").
19622 objext="$ac_objext"
19623
19624 # Old archive suffix (normally "a").
19625 libext="$libext"
19626
19627 # Shared library suffix (normally ".so").
19628 shrext_cmds='$shrext_cmds'
19629
19630 # Executable file suffix (normally "").
19631 exeext="$exeext"
19632
19633 # Additional compiler flags for building library objects.
19634 pic_flag=$lt_lt_prog_compiler_pic_RC
19635 pic_mode=$pic_mode
19636
19637 # What is the maximum length of a command?
19638 max_cmd_len=$lt_cv_sys_max_cmd_len
19639
19640 # Does compiler simultaneously support -c and -o options?
19641 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19642
19643 # Must we lock files when doing compilation?
19644 need_locks=$lt_need_locks
19645
19646 # Do we need the lib prefix for modules?
19647 need_lib_prefix=$need_lib_prefix
19648
19649 # Do we need a version for libraries?
19650 need_version=$need_version
19651
19652 # Whether dlopen is supported.
19653 dlopen_support=$enable_dlopen
19654
19655 # Whether dlopen of programs is supported.
19656 dlopen_self=$enable_dlopen_self
19657
19658 # Whether dlopen of statically linked programs is supported.
19659 dlopen_self_static=$enable_dlopen_self_static
19660
19661 # Compiler flag to prevent dynamic linking.
19662 link_static_flag=$lt_lt_prog_compiler_static_RC
19663
19664 # Compiler flag to turn off builtin functions.
19665 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19666
19667 # Compiler flag to allow reflexive dlopens.
19668 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19669
19670 # Compiler flag to generate shared objects directly from archives.
19671 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19672
19673 # Compiler flag to generate thread-safe objects.
19674 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19675
19676 # Library versioning type.
19677 version_type=$version_type
19678
19679 # Format of library name prefix.
19680 libname_spec=$lt_libname_spec
19681
19682 # List of archive names. First name is the real one, the rest are links.
19683 # The last name is the one that the linker finds with -lNAME.
19684 library_names_spec=$lt_library_names_spec
19685
19686 # The coded name of the library, if different from the real name.
19687 soname_spec=$lt_soname_spec
19688
19689 # Commands used to build and install an old-style archive.
19690 RANLIB=$lt_RANLIB
19691 old_archive_cmds=$lt_old_archive_cmds_RC
19692 old_postinstall_cmds=$lt_old_postinstall_cmds
19693 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19694
19695 # Create an old-style archive from a shared archive.
19696 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19697
19698 # Create a temporary old-style archive to link instead of a shared archive.
19699 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19700
19701 # Commands used to build and install a shared archive.
19702 archive_cmds=$lt_archive_cmds_RC
19703 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19704 postinstall_cmds=$lt_postinstall_cmds
19705 postuninstall_cmds=$lt_postuninstall_cmds
19706
19707 # Commands used to build a loadable module (assumed same as above if empty)
19708 module_cmds=$lt_module_cmds_RC
19709 module_expsym_cmds=$lt_module_expsym_cmds_RC
19710
19711 # Commands to strip libraries.
19712 old_striplib=$lt_old_striplib
19713 striplib=$lt_striplib
19714
19715 # Dependencies to place before the objects being linked to create a
19716 # shared library.
19717 predep_objects=$lt_predep_objects_RC
19718
19719 # Dependencies to place after the objects being linked to create a
19720 # shared library.
19721 postdep_objects=$lt_postdep_objects_RC
19722
19723 # Dependencies to place before the objects being linked to create a
19724 # shared library.
19725 predeps=$lt_predeps_RC
19726
19727 # Dependencies to place after the objects being linked to create a
19728 # shared library.
19729 postdeps=$lt_postdeps_RC
19730
19731 # The directories searched by this compiler when creating a shared
19732 # library
19733 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19734
19735 # The library search path used internally by the compiler when linking
19736 # a shared library.
19737 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19738
19739 # Method to check whether dependent libraries are shared objects.
19740 deplibs_check_method=$lt_deplibs_check_method
19741
19742 # Command to use when deplibs_check_method == file_magic.
19743 file_magic_cmd=$lt_file_magic_cmd
19744
19745 # Flag that allows shared libraries with undefined symbols to be built.
19746 allow_undefined_flag=$lt_allow_undefined_flag_RC
19747
19748 # Flag that forces no undefined symbols.
19749 no_undefined_flag=$lt_no_undefined_flag_RC
19750
19751 # Commands used to finish a libtool library installation in a directory.
19752 finish_cmds=$lt_finish_cmds
19753
19754 # Same as above, but a single script fragment to be evaled but not shown.
19755 finish_eval=$lt_finish_eval
19756
19757 # Take the output of nm and produce a listing of raw symbols and C names.
19758 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19759
19760 # Transform the output of nm in a proper C declaration
19761 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19762
19763 # Transform the output of nm in a C name address pair
19764 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19765
19766 # This is the shared library runtime path variable.
19767 runpath_var=$runpath_var
19768
19769 # This is the shared library path variable.
19770 shlibpath_var=$shlibpath_var
19771
19772 # Is shlibpath searched before the hard-coded library search path?
19773 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19774
19775 # How to hardcode a shared library path into an executable.
19776 hardcode_action=$hardcode_action_RC
19777
19778 # Whether we should hardcode library paths into libraries.
19779 hardcode_into_libs=$hardcode_into_libs
19780
19781 # Flag to hardcode \$libdir into a binary during linking.
19782 # This must work even if \$libdir does not exist.
19783 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19784
19785 # If ld is used when linking, flag to hardcode \$libdir into
19786 # a binary during linking. This must work even if \$libdir does
19787 # not exist.
19788 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19789
19790 # Whether we need a single -rpath flag with a separated argument.
19791 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19792
19793 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19794 # resulting binary.
19795 hardcode_direct=$hardcode_direct_RC
19796
19797 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19798 # resulting binary.
19799 hardcode_minus_L=$hardcode_minus_L_RC
19800
19801 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19802 # the resulting binary.
19803 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19804
19805 # Set to yes if building a shared library automatically hardcodes DIR into the library
19806 # and all subsequent libraries and executables linked against it.
19807 hardcode_automatic=$hardcode_automatic_RC
19808
19809 # Variables whose values should be saved in libtool wrapper scripts and
19810 # restored at relink time.
19811 variables_saved_for_relink="$variables_saved_for_relink"
19812
19813 # Whether libtool must link a program against all its dependency libraries.
19814 link_all_deplibs=$link_all_deplibs_RC
19815
19816 # Compile-time system search path for libraries
19817 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19818
19819 # Run-time system search path for libraries
19820 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19821
19822 # Fix the shell variable \$srcfile for the compiler.
19823 fix_srcfile_path=$lt_fix_srcfile_path
19824
19825 # Set to yes if exported symbols are required.
19826 always_export_symbols=$always_export_symbols_RC
19827
19828 # The commands to list exported symbols.
19829 export_symbols_cmds=$lt_export_symbols_cmds_RC
19830
19831 # The commands to extract the exported symbol list from a shared archive.
19832 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19833
19834 # Symbols that should not be listed in the preloaded symbols.
19835 exclude_expsyms=$lt_exclude_expsyms_RC
19836
19837 # Symbols that must always be exported.
19838 include_expsyms=$lt_include_expsyms_RC
19839
19840 # ### END LIBTOOL TAG CONFIG: $tagname
19841
19842 __EOF__
19843
19844
19845 else
19846 # If there is no Makefile yet, we rely on a make rule to execute
19847 # `config.status --recheck' to rerun these tests and create the
19848 # libtool script then.
19849 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19850 if test -f "$ltmain_in"; then
19851 test -f Makefile && make "$ltmain"
19852 fi
19853 fi
19854
19855
19856 ac_ext=c
19857 ac_cpp='$CPP $CPPFLAGS'
19858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19861
19862 CC="$lt_save_CC"
19863
19864 ;;
19865
19866 *)
19867 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19868 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19869 { (exit 1); exit 1; }; }
19870 ;;
19871 esac
19872
19873 # Append the new tag name to the list of available tags.
19874 if test -n "$tagname" ; then
19875 available_tags="$available_tags $tagname"
19876 fi
19877 fi
19878 done
19879 IFS="$lt_save_ifs"
19880
19881 # Now substitute the updated list of available tags.
19882 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19883 mv "${ofile}T" "$ofile"
19884 chmod +x "$ofile"
19885 else
19886 rm -f "${ofile}T"
19887 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19888 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19889 { (exit 1); exit 1; }; }
19890 fi
19891 fi
19892
19893
19894
19895 # This can be used to rebuild libtool when needed
19896 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19897
19898 # Always use our own libtool.
19899 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19900
19901 # Prevent multiple expansion
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923 # Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by
19924 # XORG_MANPAGE_SECTIONS
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
19937 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
19938 if test "${ac_cv_prog_cc_c99+set}" = set; then
19939 $as_echo_n "(cached) " >&6
19940 else
19941 ac_cv_prog_cc_c99=no
19942 ac_save_CC=$CC
19943 cat >conftest.$ac_ext <<_ACEOF
19944 /* confdefs.h. */
19945 _ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h. */
19949 #include <stdarg.h>
19950 #include <stdbool.h>
19951 #include <stdlib.h>
19952 #include <wchar.h>
19953 #include <stdio.h>
19954
19955 // Check varargs macros. These examples are taken from C99 6.10.3.5.
19956 #define debug(...) fprintf (stderr, __VA_ARGS__)
19957 #define showlist(...) puts (#__VA_ARGS__)
19958 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
19959 static void
19960 test_varargs_macros (void)
19961 {
19962 int x = 1234;
19963 int y = 5678;
19964 debug ("Flag");
19965 debug ("X = %d\n", x);
19966 showlist (The first, second, and third items.);
19967 report (x>y, "x is %d but y is %d", x, y);
19968 }
19969
19970 // Check long long types.
19971 #define BIG64 18446744073709551615ull
19972 #define BIG32 4294967295ul
19973 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
19974 #if !BIG_OK
19975 your preprocessor is broken;
19976 #endif
19977 #if BIG_OK
19978 #else
19979 your preprocessor is broken;
19980 #endif
19981 static long long int bignum = -9223372036854775807LL;
19982 static unsigned long long int ubignum = BIG64;
19983
19984 struct incomplete_array
19985 {
19986 int datasize;
19987 double data[];
19988 };
19989
19990 struct named_init {
19991 int number;
19992 const wchar_t *name;
19993 double average;
19994 };
19995
19996 typedef const char *ccp;
19997
19998 static inline int
19999 test_restrict (ccp restrict text)
20000 {
20001 // See if C++-style comments work.
20002 // Iterate through items via the restricted pointer.
20003 // Also check for declarations in for loops.
20004 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
20005 continue;
20006 return 0;
20007 }
20008
20009 // Check varargs and va_copy.
20010 static void
20011 test_varargs (const char *format, ...)
20012 {
20013 va_list args;
20014 va_start (args, format);
20015 va_list args_copy;
20016 va_copy (args_copy, args);
20017
20018 const char *str;
20019 int number;
20020 float fnumber;
20021
20022 while (*format)
20023 {
20024 switch (*format++)
20025 {
20026 case 's': // string
20027 str = va_arg (args_copy, const char *);
20028 break;
20029 case 'd': // int
20030 number = va_arg (args_copy, int);
20031 break;
20032 case 'f': // float
20033 fnumber = va_arg (args_copy, double);
20034 break;
20035 default:
20036 break;
20037 }
20038 }
20039 va_end (args_copy);
20040 va_end (args);
20041 }
20042
20043 int
20044 main ()
20045 {
20046
20047 // Check bool.
20048 _Bool success = false;
20049
20050 // Check restrict.
20051 if (test_restrict ("String literal") == 0)
20052 success = true;
20053 char *restrict newvar = "Another string";
20054
20055 // Check varargs.
20056 test_varargs ("s, d' f .", "string", 65, 34.234);
20057 test_varargs_macros ();
20058
20059 // Check flexible array members.
20060 struct incomplete_array *ia =
20061 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
20062 ia->datasize = 10;
20063 for (int i = 0; i < ia->datasize; ++i)
20064 ia->data[i] = i * 1.234;
20065
20066 // Check named initializers.
20067 struct named_init ni = {
20068 .number = 34,
20069 .name = L"Test wide string",
20070 .average = 543.34343,
20071 };
20072
20073 ni.number = 58;
20074
20075 int dynamic_array[ni.number];
20076 dynamic_array[ni.number - 1] = 543;
20077
20078 // work around unused variable warnings
20079 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
20080 || dynamic_array[ni.number - 1] != 543);
20081
20082 ;
20083 return 0;
20084 }
20085 _ACEOF
20086 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
20087 do
20088 CC="$ac_save_CC $ac_arg"
20089 rm -f conftest.$ac_objext
20090 if { (ac_try="$ac_compile"
20091 case "(($ac_try" in
20092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20093 *) ac_try_echo=$ac_try;;
20094 esac
20095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20096 $as_echo "$ac_try_echo") >&5
20097 (eval "$ac_compile") 2>conftest.er1
20098 ac_status=$?
20099 grep -v '^ *+' conftest.er1 >conftest.err
20100 rm -f conftest.er1
20101 cat conftest.err >&5
20102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } && {
20104 test -z "$ac_c_werror_flag" ||
20105 test ! -s conftest.err
20106 } && test -s conftest.$ac_objext; then
20107 ac_cv_prog_cc_c99=$ac_arg
20108 else
20109 $as_echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.$ac_ext >&5
20111
20112
20113 fi
20114
20115 rm -f core conftest.err conftest.$ac_objext
20116 test "x$ac_cv_prog_cc_c99" != "xno" && break
20117 done
20118 rm -f conftest.$ac_ext
20119 CC=$ac_save_CC
20120
20121 fi
20122 # AC_CACHE_VAL
20123 case "x$ac_cv_prog_cc_c99" in
20124 x)
20125 { $as_echo "$as_me:$LINENO: result: none needed" >&5
20126 $as_echo "none needed" >&6; } ;;
20127 xno)
20128 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20129 $as_echo "unsupported" >&6; } ;;
20130 *)
20131 CC="$CC $ac_cv_prog_cc_c99"
20132 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
20133 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
20134 esac
20135
20136
20137
20138
20139
20140 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20141 if test -n "$ac_tool_prefix"; then
20142 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20143 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20144 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20145 $as_echo_n "checking for $ac_word... " >&6; }
20146 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20147 $as_echo_n "(cached) " >&6
20148 else
20149 case $PKG_CONFIG in
20150 [\\/]* | ?:[\\/]*)
20151 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20152 ;;
20153 *)
20154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20155 for as_dir in $PATH
20156 do
20157 IFS=$as_save_IFS
20158 test -z "$as_dir" && as_dir=.
20159 for ac_exec_ext in '' $ac_executable_extensions; do
20160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20161 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20162 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20163 break 2
20164 fi
20165 done
20166 done
20167 IFS=$as_save_IFS
20168
20169 ;;
20170 esac
20171 fi
20172 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20173 if test -n "$PKG_CONFIG"; then
20174 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20175 $as_echo "$PKG_CONFIG" >&6; }
20176 else
20177 { $as_echo "$as_me:$LINENO: result: no" >&5
20178 $as_echo "no" >&6; }
20179 fi
20180
20181
20182 fi
20183 if test -z "$ac_cv_path_PKG_CONFIG"; then
20184 ac_pt_PKG_CONFIG=$PKG_CONFIG
20185 # Extract the first word of "pkg-config", so it can be a program name with args.
20186 set dummy pkg-config; ac_word=$2
20187 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20188 $as_echo_n "checking for $ac_word... " >&6; }
20189 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20190 $as_echo_n "(cached) " >&6
20191 else
20192 case $ac_pt_PKG_CONFIG in
20193 [\\/]* | ?:[\\/]*)
20194 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20195 ;;
20196 *)
20197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20198 for as_dir in $PATH
20199 do
20200 IFS=$as_save_IFS
20201 test -z "$as_dir" && as_dir=.
20202 for ac_exec_ext in '' $ac_executable_extensions; do
20203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20204 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20205 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20206 break 2
20207 fi
20208 done
20209 done
20210 IFS=$as_save_IFS
20211
20212 ;;
20213 esac
20214 fi
20215 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20216 if test -n "$ac_pt_PKG_CONFIG"; then
20217 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20218 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
20219 else
20220 { $as_echo "$as_me:$LINENO: result: no" >&5
20221 $as_echo "no" >&6; }
20222 fi
20223
20224 if test "x$ac_pt_PKG_CONFIG" = x; then
20225 PKG_CONFIG=""
20226 else
20227 case $cross_compiling:$ac_tool_warned in
20228 yes:)
20229 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20230 whose name does not start with the host triplet. If you think this
20231 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
20232 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20233 whose name does not start with the host triplet. If you think this
20234 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
20235 ac_tool_warned=yes ;;
20236 esac
20237 PKG_CONFIG=$ac_pt_PKG_CONFIG
20238 fi
20239 else
20240 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20241 fi
20242
20243 fi
20244 if test -n "$PKG_CONFIG"; then
20245 _pkg_min_version=0.9.0
20246 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20247 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20248 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20249 { $as_echo "$as_me:$LINENO: result: yes" >&5
20250 $as_echo "yes" >&6; }
20251 else
20252 { $as_echo "$as_me:$LINENO: result: no" >&5
20253 $as_echo "no" >&6; }
20254 PKG_CONFIG=""
20255 fi
20256
20257 fi
20258 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
20259 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
20260 if test "${ac_cv_path_SED+set}" = set; then
20261 $as_echo_n "(cached) " >&6
20262 else
20263 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
20264 for ac_i in 1 2 3 4 5 6 7; do
20265 ac_script="$ac_script$as_nl$ac_script"
20266 done
20267 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
20268 $as_unset ac_script || ac_script=
20269 if test -z "$SED"; then
20270 ac_path_SED_found=false
20271 # Loop through the user's path and test for each of PROGNAME-LIST
20272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20273 for as_dir in $PATH
20274 do
20275 IFS=$as_save_IFS
20276 test -z "$as_dir" && as_dir=.
20277 for ac_prog in sed gsed; do
20278 for ac_exec_ext in '' $ac_executable_extensions; do
20279 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
20280 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
20281 # Check for GNU ac_path_SED and select it if it is found.
20282 # Check for GNU $ac_path_SED
20283 case `"$ac_path_SED" --version 2>&1` in
20284 *GNU*)
20285 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
20286 *)
20287 ac_count=0
20288 $as_echo_n 0123456789 >"conftest.in"
20289 while :
20290 do
20291 cat "conftest.in" "conftest.in" >"conftest.tmp"
20292 mv "conftest.tmp" "conftest.in"
20293 cp "conftest.in" "conftest.nl"
20294 $as_echo '' >> "conftest.nl"
20295 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
20296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
20297 ac_count=`expr $ac_count + 1`
20298 if test $ac_count -gt ${ac_path_SED_max-0}; then
20299 # Best one so far, save it but keep looking for a better one
20300 ac_cv_path_SED="$ac_path_SED"
20301 ac_path_SED_max=$ac_count
20302 fi
20303 # 10*(2^10) chars as input seems more than enough
20304 test $ac_count -gt 10 && break
20305 done
20306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
20307 esac
20308
20309 $ac_path_SED_found && break 3
20310 done
20311 done
20312 done
20313 IFS=$as_save_IFS
20314 if test -z "$ac_cv_path_SED"; then
20315 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
20316 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
20317 { (exit 1); exit 1; }; }
20318 fi
20319 else
20320 ac_cv_path_SED=$SED
20321 fi
20322
20323 fi
20324 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
20325 $as_echo "$ac_cv_path_SED" >&6; }
20326 SED="$ac_cv_path_SED"
20327 rm -f conftest.sed
20328
20329
20330
20331
20332
20333 if test "x$GCC" = xyes ; then
20334 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
20335 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
20336 -Wbad-function-cast -Wformat=2"
20337 case `$CC -dumpversion` in
20338 3.4.* | 4.*)
20339 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
20340 ;;
20341 esac
20342 else
20343 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
20344 $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
20345 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
20346 $as_echo_n "(cached) " >&6
20347 else
20348 cat >conftest.$ac_ext <<_ACEOF
20349 /* confdefs.h. */
20350 _ACEOF
20351 cat confdefs.h >>conftest.$ac_ext
20352 cat >>conftest.$ac_ext <<_ACEOF
20353 /* end confdefs.h. */
20354 $ac_includes_default
20355 int
20356 main ()
20357 {
20358 #ifndef __SUNPRO_C
20359 (void) __SUNPRO_C;
20360 #endif
20361
20362 ;
20363 return 0;
20364 }
20365 _ACEOF
20366 rm -f conftest.$ac_objext
20367 if { (ac_try="$ac_compile"
20368 case "(($ac_try" in
20369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20370 *) ac_try_echo=$ac_try;;
20371 esac
20372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20373 $as_echo "$ac_try_echo") >&5
20374 (eval "$ac_compile") 2>conftest.er1
20375 ac_status=$?
20376 grep -v '^ *+' conftest.er1 >conftest.err
20377 rm -f conftest.er1
20378 cat conftest.err >&5
20379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); } && {
20381 test -z "$ac_c_werror_flag" ||
20382 test ! -s conftest.err
20383 } && test -s conftest.$ac_objext; then
20384 ac_cv_have_decl___SUNPRO_C=yes
20385 else
20386 $as_echo "$as_me: failed program was:" >&5
20387 sed 's/^/| /' conftest.$ac_ext >&5
20388
20389 ac_cv_have_decl___SUNPRO_C=no
20390 fi
20391
20392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20393 fi
20394 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
20395 $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
20396 if test $ac_cv_have_decl___SUNPRO_C = yes; then
20397 SUNCC="yes"
20398 else
20399 SUNCC="no"
20400 fi
20401
20402 if test "x$SUNCC" = "xyes"; then
20403 CWARNFLAGS="-v"
20404 fi
20405 fi
20406
20407
20408
20409 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
20410
20411
20412
20413 # Check whether --enable-strict-compilation was given.
20414 if test "${enable_strict_compilation+set}" = set; then
20415 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
20416 else
20417 STRICT_COMPILE=no
20418 fi
20419
20420 if test "x$STRICT_COMPILE" = "xyes"; then
20421 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
20422 $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
20423 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
20424 $as_echo_n "(cached) " >&6
20425 else
20426 cat >conftest.$ac_ext <<_ACEOF
20427 /* confdefs.h. */
20428 _ACEOF
20429 cat confdefs.h >>conftest.$ac_ext
20430 cat >>conftest.$ac_ext <<_ACEOF
20431 /* end confdefs.h. */
20432 $ac_includes_default
20433 int
20434 main ()
20435 {
20436 #ifndef __SUNPRO_C
20437 (void) __SUNPRO_C;
20438 #endif
20439
20440 ;
20441 return 0;
20442 }
20443 _ACEOF
20444 rm -f conftest.$ac_objext
20445 if { (ac_try="$ac_compile"
20446 case "(($ac_try" in
20447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448 *) ac_try_echo=$ac_try;;
20449 esac
20450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20451 $as_echo "$ac_try_echo") >&5
20452 (eval "$ac_compile") 2>conftest.er1
20453 ac_status=$?
20454 grep -v '^ *+' conftest.er1 >conftest.err
20455 rm -f conftest.er1
20456 cat conftest.err >&5
20457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } && {
20459 test -z "$ac_c_werror_flag" ||
20460 test ! -s conftest.err
20461 } && test -s conftest.$ac_objext; then
20462 ac_cv_have_decl___SUNPRO_C=yes
20463 else
20464 $as_echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20466
20467 ac_cv_have_decl___SUNPRO_C=no
20468 fi
20469
20470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20471 fi
20472 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
20473 $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
20474 if test $ac_cv_have_decl___SUNPRO_C = yes; then
20475 SUNCC="yes"
20476 else
20477 SUNCC="no"
20478 fi
20479
20480 { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
20481 $as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
20482 if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
20483 $as_echo_n "(cached) " >&6
20484 else
20485 cat >conftest.$ac_ext <<_ACEOF
20486 /* confdefs.h. */
20487 _ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h. */
20491 $ac_includes_default
20492 int
20493 main ()
20494 {
20495 #ifndef __INTEL_COMPILER
20496 (void) __INTEL_COMPILER;
20497 #endif
20498
20499 ;
20500 return 0;
20501 }
20502 _ACEOF
20503 rm -f conftest.$ac_objext
20504 if { (ac_try="$ac_compile"
20505 case "(($ac_try" in
20506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20507 *) ac_try_echo=$ac_try;;
20508 esac
20509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20510 $as_echo "$ac_try_echo") >&5
20511 (eval "$ac_compile") 2>conftest.er1
20512 ac_status=$?
20513 grep -v '^ *+' conftest.er1 >conftest.err
20514 rm -f conftest.er1
20515 cat conftest.err >&5
20516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); } && {
20518 test -z "$ac_c_werror_flag" ||
20519 test ! -s conftest.err
20520 } && test -s conftest.$ac_objext; then
20521 ac_cv_have_decl___INTEL_COMPILER=yes
20522 else
20523 $as_echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20525
20526 ac_cv_have_decl___INTEL_COMPILER=no
20527 fi
20528
20529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20530 fi
20531 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
20532 $as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
20533 if test $ac_cv_have_decl___INTEL_COMPILER = yes; then
20534 INTELCC="yes"
20535 else
20536 INTELCC="no"
20537 fi
20538
20539 if test "x$GCC" = xyes ; then
20540 STRICT_CFLAGS="-pedantic -Werror"
20541 elif test "x$SUNCC" = "xyes"; then
20542 STRICT_CFLAGS="-errwarn"
20543 elif test "x$INTELCC" = "xyes"; then
20544 STRICT_CFLAGS="-Werror"
20545 fi
20546 fi
20547 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
20548
20549
20550
20551
20552 cat >>confdefs.h <<_ACEOF
20553 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20554 _ACEOF
20555
20556 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20557 if test "x$PVM" = "x"; then
20558 PVM="0"
20559 fi
20560
20561 cat >>confdefs.h <<_ACEOF
20562 #define PACKAGE_VERSION_MINOR $PVM
20563 _ACEOF
20564
20565 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20566 if test "x$PVP" = "x"; then
20567 PVP="0"
20568 fi
20569
20570 cat >>confdefs.h <<_ACEOF
20571 #define PACKAGE_VERSION_PATCHLEVEL $PVP
20572 _ACEOF
20573
20574
20575
20576 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
20577 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
20578 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
20579 echo 'git directory not found: installing possibly empty changelog.' >&2)"
20580
20581
20582
20583
20584 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
20585 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
20586 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
20587 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
20588 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
20589
20590
20591
20592
20593
20594
20595 if test x$APP_MAN_SUFFIX = x ; then
20596 APP_MAN_SUFFIX=1
20597 fi
20598 if test x$APP_MAN_DIR = x ; then
20599 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20600 fi
20601
20602 if test x$LIB_MAN_SUFFIX = x ; then
20603 LIB_MAN_SUFFIX=3
20604 fi
20605 if test x$LIB_MAN_DIR = x ; then
20606 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20607 fi
20608
20609 if test x$FILE_MAN_SUFFIX = x ; then
20610 case $host_os in
20611 solaris*) FILE_MAN_SUFFIX=4 ;;
20612 *) FILE_MAN_SUFFIX=5 ;;
20613 esac
20614 fi
20615 if test x$FILE_MAN_DIR = x ; then
20616 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20617 fi
20618
20619 if test x$MISC_MAN_SUFFIX = x ; then
20620 case $host_os in
20621 solaris*) MISC_MAN_SUFFIX=5 ;;
20622 *) MISC_MAN_SUFFIX=7 ;;
20623 esac
20624 fi
20625 if test x$MISC_MAN_DIR = x ; then
20626 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20627 fi
20628
20629 if test x$DRIVER_MAN_SUFFIX = x ; then
20630 case $host_os in
20631 solaris*) DRIVER_MAN_SUFFIX=7 ;;
20632 *) DRIVER_MAN_SUFFIX=4 ;;
20633 esac
20634 fi
20635 if test x$DRIVER_MAN_DIR = x ; then
20636 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20637 fi
20638
20639 if test x$ADMIN_MAN_SUFFIX = x ; then
20640 case $host_os in
20641 solaris*) ADMIN_MAN_SUFFIX=1m ;;
20642 *) ADMIN_MAN_SUFFIX=8 ;;
20643 esac
20644 fi
20645 if test x$ADMIN_MAN_DIR = x ; then
20646 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20647 fi
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663 XORG_MAN_PAGE="X Version 11"
20664
20665 MAN_SUBSTS="\
20666 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20667 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20668 -e 's|__xservername__|Xorg|g' \
20669 -e 's|__xconfigfile__|xorg.conf|g' \
20670 -e 's|__projectroot__|\$(prefix)|g' \
20671 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
20672 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
20673 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
20674 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
20675 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
20676 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
20677 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
20678
20679
20680
20681 AM_DEFAULT_VERBOSITY=1
20682
20683
20684
20685 # Obtain compiler/linker options from server and required extensions
20686
20687 pkg_failed=no
20688 { $as_echo "$as_me:$LINENO: checking for XORG" >&5
20689 $as_echo_n "checking for XORG... " >&6; }
20690
20691 if test -n "$PKG_CONFIG"; then
20692 if test -n "$XORG_CFLAGS"; then
20693 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
20694 else
20695 if test -n "$PKG_CONFIG" && \
20696 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto inputproto\"") >&5
20697 ($PKG_CONFIG --exists --print-errors "xorg-server xproto inputproto") 2>&5
20698 ac_status=$?
20699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); }; then
20701 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto inputproto" 2>/dev/null`
20702 else
20703 pkg_failed=yes
20704 fi
20705 fi
20706 else
20707 pkg_failed=untried
20708 fi
20709 if test -n "$PKG_CONFIG"; then
20710 if test -n "$XORG_LIBS"; then
20711 pkg_cv_XORG_LIBS="$XORG_LIBS"
20712 else
20713 if test -n "$PKG_CONFIG" && \
20714 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto inputproto\"") >&5
20715 ($PKG_CONFIG --exists --print-errors "xorg-server xproto inputproto") 2>&5
20716 ac_status=$?
20717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); }; then
20719 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto inputproto" 2>/dev/null`
20720 else
20721 pkg_failed=yes
20722 fi
20723 fi
20724 else
20725 pkg_failed=untried
20726 fi
20727
20728
20729
20730 if test $pkg_failed = yes; then
20731
20732 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20733 _pkg_short_errors_supported=yes
20734 else
20735 _pkg_short_errors_supported=no
20736 fi
20737 if test $_pkg_short_errors_supported = yes; then
20738 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server xproto inputproto"`
20739 else
20740 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server xproto inputproto"`
20741 fi
20742 # Put the nasty error message in config.log where it belongs
20743 echo "$XORG_PKG_ERRORS" >&5
20744
20745 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server xproto inputproto) were not met:
20746
20747 $XORG_PKG_ERRORS
20748
20749 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20750 installed software in a non-standard prefix.
20751
20752 Alternatively, you may set the environment variables XORG_CFLAGS
20753 and XORG_LIBS to avoid the need to call pkg-config.
20754 See the pkg-config man page for more details.
20755 " >&5
20756 $as_echo "$as_me: error: Package requirements (xorg-server xproto inputproto) were not met:
20757
20758 $XORG_PKG_ERRORS
20759
20760 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20761 installed software in a non-standard prefix.
20762
20763 Alternatively, you may set the environment variables XORG_CFLAGS
20764 and XORG_LIBS to avoid the need to call pkg-config.
20765 See the pkg-config man page for more details.
20766 " >&2;}
20767 { (exit 1); exit 1; }; }
20768 elif test $pkg_failed = untried; then
20769 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20770 is in your PATH or set the PKG_CONFIG environment variable to the full
20771 path to pkg-config.
20772
20773 Alternatively, you may set the environment variables XORG_CFLAGS
20774 and XORG_LIBS to avoid the need to call pkg-config.
20775 See the pkg-config man page for more details.
20776
20777 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20778 See \`config.log' for more details." >&5
20779 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20780 is in your PATH or set the PKG_CONFIG environment variable to the full
20781 path to pkg-config.
20782
20783 Alternatively, you may set the environment variables XORG_CFLAGS
20784 and XORG_LIBS to avoid the need to call pkg-config.
20785 See the pkg-config man page for more details.
20786
20787 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20788 See \`config.log' for more details." >&2;}
20789 { (exit 1); exit 1; }; }
20790 else
20791 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
20792 XORG_LIBS=$pkg_cv_XORG_LIBS
20793 { $as_echo "$as_me:$LINENO: result: yes" >&5
20794 $as_echo "yes" >&6; }
20795 :
20796 fi
20797
20798 # Define a configure option for an alternate input module directory
20799
20800 # Check whether --with-xorg-module-dir was given.
20801 if test "${with_xorg_module_dir+set}" = set; then
20802 withval=$with_xorg_module_dir; moduledir="$withval"
20803 else
20804 moduledir="$libdir/xorg/modules"
20805 fi
20806
20807 inputdir=${moduledir}/input
20808
20809
20810 # X Server SDK location is required to install evdev header files
20811 # This location is also relayed in the xorg-evdev.pc file
20812 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
20813
20814 # Workaround overriding sdkdir to be able to create a tarball when user has no
20815 # write permission in sdkdir. See DISTCHECK_CONFIGURE_FLAGS in Makefile.am
20816
20817 # Check whether --with-sdkdir was given.
20818 if test "${with_sdkdir+set}" = set; then
20819 withval=$with_sdkdir; sdkdir="$withval"
20820 fi
20821
20822
20823
20824 DRIVER_NAME=ws
20825
20826
20827 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile include/Makefile"
20828
20829
20830 cat >confcache <<\_ACEOF
20831 # This file is a shell script that caches the results of configure
20832 # tests run on this system so they can be shared between configure
20833 # scripts and configure runs, see configure's option --config-cache.
20834 # It is not useful on other systems. If it contains results you don't
20835 # want to keep, you may remove or edit it.
20836 #
20837 # config.status only pays attention to the cache file if you give it
20838 # the --recheck option to rerun configure.
20839 #
20840 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20841 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20842 # following values.
20843
20844 _ACEOF
20845
20846 # The following way of writing the cache mishandles newlines in values,
20847 # but we know of no workaround that is simple, portable, and efficient.
20848 # So, we kill variables containing newlines.
20849 # Ultrix sh set writes to stderr and can't be redirected directly,
20850 # and sets the high bit in the cache file unless we assign to the vars.
20851 (
20852 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20853 eval ac_val=\$$ac_var
20854 case $ac_val in #(
20855 *${as_nl}*)
20856 case $ac_var in #(
20857 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20858 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20859 esac
20860 case $ac_var in #(
20861 _ | IFS | as_nl) ;; #(
20862 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20863 *) $as_unset $ac_var ;;
20864 esac ;;
20865 esac
20866 done
20867
20868 (set) 2>&1 |
20869 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20870 *${as_nl}ac_space=\ *)
20871 # `set' does not quote correctly, so add quotes (double-quote
20872 # substitution turns \\\\ into \\, and sed turns \\ into \).
20873 sed -n \
20874 "s/'/'\\\\''/g;
20875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20876 ;; #(
20877 *)
20878 # `set' quotes correctly as required by POSIX, so do not add quotes.
20879 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20880 ;;
20881 esac |
20882 sort
20883 ) |
20884 sed '
20885 /^ac_cv_env_/b end
20886 t clear
20887 :clear
20888 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20889 t end
20890 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20891 :end' >>confcache
20892 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20893 if test -w "$cache_file"; then
20894 test "x$cache_file" != "x/dev/null" &&
20895 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20896 $as_echo "$as_me: updating cache $cache_file" >&6;}
20897 cat confcache >$cache_file
20898 else
20899 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20900 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20901 fi
20902 fi
20903 rm -f confcache
20904
20905 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20906 # Let make expand exec_prefix.
20907 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20908
20909 DEFS=-DHAVE_CONFIG_H
20910
20911 ac_libobjs=
20912 ac_ltlibobjs=
20913 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20914 # 1. Remove the extension, and $U if already installed.
20915 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20916 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20917 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20918 # will be set to the directory where LIBOBJS objects are built.
20919 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20920 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20921 done
20922 LIBOBJS=$ac_libobjs
20923
20924 LTLIBOBJS=$ac_ltlibobjs
20925
20926
20927 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20928 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20929 Usually this means the macro was only invoked conditionally." >&5
20930 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20931 Usually this means the macro was only invoked conditionally." >&2;}
20932 { (exit 1); exit 1; }; }
20933 fi
20934 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20935 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20936 Usually this means the macro was only invoked conditionally." >&5
20937 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20938 Usually this means the macro was only invoked conditionally." >&2;}
20939 { (exit 1); exit 1; }; }
20940 fi
20941 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20942 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20943 Usually this means the macro was only invoked conditionally." >&5
20944 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20945 Usually this means the macro was only invoked conditionally." >&2;}
20946 { (exit 1); exit 1; }; }
20947 fi
20948 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20949 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20950 Usually this means the macro was only invoked conditionally." >&5
20951 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20952 Usually this means the macro was only invoked conditionally." >&2;}
20953 { (exit 1); exit 1; }; }
20954 fi
20955
20956 : ${CONFIG_STATUS=./config.status}
20957 ac_write_fail=0
20958 ac_clean_files_save=$ac_clean_files
20959 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20960 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20961 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20962 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20963 #! $SHELL
20964 # Generated by $as_me.
20965 # Run this file to recreate the current configuration.
20966 # Compiler output produced by configure, useful for debugging
20967 # configure, is in config.log if it exists.
20968
20969 debug=false
20970 ac_cs_recheck=false
20971 ac_cs_silent=false
20972 SHELL=\${CONFIG_SHELL-$SHELL}
20973 _ACEOF
20974
20975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20976 ## --------------------- ##
20977 ## M4sh Initialization. ##
20978 ## --------------------- ##
20979
20980 # Be more Bourne compatible
20981 DUALCASE=1; export DUALCASE # for MKS sh
20982 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20983 emulate sh
20984 NULLCMD=:
20985 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20986 # is contrary to our usage. Disable this feature.
20987 alias -g '${1+"$@"}'='"$@"'
20988 setopt NO_GLOB_SUBST
20989 else
20990 case `(set -o) 2>/dev/null` in
20991 *posix*) set -o posix ;;
20992 esac
20993
20994 fi
20995
20996
20997
20998
20999 # PATH needs CR
21000 # Avoid depending upon Character Ranges.
21001 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21002 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21003 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21004 as_cr_digits='0123456789'
21005 as_cr_alnum=$as_cr_Letters$as_cr_digits
21006
21007 as_nl='
21008 '
21009 export as_nl
21010 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21011 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21012 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21013 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21014 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21015 as_echo='printf %s\n'
21016 as_echo_n='printf %s'
21017 else
21018 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21019 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21020 as_echo_n='/usr/ucb/echo -n'
21021 else
21022 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21023 as_echo_n_body='eval
21024 arg=$1;
21025 case $arg in
21026 *"$as_nl"*)
21027 expr "X$arg" : "X\\(.*\\)$as_nl";
21028 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21029 esac;
21030 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21031 '
21032 export as_echo_n_body
21033 as_echo_n='sh -c $as_echo_n_body as_echo'
21034 fi
21035 export as_echo_body
21036 as_echo='sh -c $as_echo_body as_echo'
21037 fi
21038
21039 # The user is always right.
21040 if test "${PATH_SEPARATOR+set}" != set; then
21041 PATH_SEPARATOR=:
21042 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21043 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21044 PATH_SEPARATOR=';'
21045 }
21046 fi
21047
21048 # Support unset when possible.
21049 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21050 as_unset=unset
21051 else
21052 as_unset=false
21053 fi
21054
21055
21056 # IFS
21057 # We need space, tab and new line, in precisely that order. Quoting is
21058 # there to prevent editors from complaining about space-tab.
21059 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21060 # splitting by setting IFS to empty value.)
21061 IFS=" "" $as_nl"
21062
21063 # Find who we are. Look in the path if we contain no directory separator.
21064 case $0 in
21065 *[\\/]* ) as_myself=$0 ;;
21066 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21067 for as_dir in $PATH
21068 do
21069 IFS=$as_save_IFS
21070 test -z "$as_dir" && as_dir=.
21071 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21072 done
21073 IFS=$as_save_IFS
21074
21075 ;;
21076 esac
21077 # We did not find ourselves, most probably we were run as `sh COMMAND'
21078 # in which case we are not to be found in the path.
21079 if test "x$as_myself" = x; then
21080 as_myself=$0
21081 fi
21082 if test ! -f "$as_myself"; then
21083 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21084 { (exit 1); exit 1; }
21085 fi
21086
21087 # Work around bugs in pre-3.0 UWIN ksh.
21088 for as_var in ENV MAIL MAILPATH
21089 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21090 done
21091 PS1='$ '
21092 PS2='> '
21093 PS4='+ '
21094
21095 # NLS nuisances.
21096 LC_ALL=C
21097 export LC_ALL
21098 LANGUAGE=C
21099 export LANGUAGE
21100
21101 # Required to use basename.
21102 if expr a : '\(a\)' >/dev/null 2>&1 &&
21103 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21104 as_expr=expr
21105 else
21106 as_expr=false
21107 fi
21108
21109 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21110 as_basename=basename
21111 else
21112 as_basename=false
21113 fi
21114
21115
21116 # Name of the executable.
21117 as_me=`$as_basename -- "$0" ||
21118 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21119 X"$0" : 'X\(//\)$' \| \
21120 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21121 $as_echo X/"$0" |
21122 sed '/^.*\/\([^/][^/]*\)\/*$/{
21123 s//\1/
21124 q
21125 }
21126 /^X\/\(\/\/\)$/{
21127 s//\1/
21128 q
21129 }
21130 /^X\/\(\/\).*/{
21131 s//\1/
21132 q
21133 }
21134 s/.*/./; q'`
21135
21136 # CDPATH.
21137 $as_unset CDPATH
21138
21139
21140
21141 as_lineno_1=$LINENO
21142 as_lineno_2=$LINENO
21143 test "x$as_lineno_1" != "x$as_lineno_2" &&
21144 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21145
21146 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21147 # uniformly replaced by the line number. The first 'sed' inserts a
21148 # line-number line after each line using $LINENO; the second 'sed'
21149 # does the real work. The second script uses 'N' to pair each
21150 # line-number line with the line containing $LINENO, and appends
21151 # trailing '-' during substitution so that $LINENO is not a special
21152 # case at line end.
21153 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21154 # scripts with optimization help from Paolo Bonzini. Blame Lee
21155 # E. McMahon (1931-1989) for sed's syntax. :-)
21156 sed -n '
21157 p
21158 /[$]LINENO/=
21159 ' <$as_myself |
21160 sed '
21161 s/[$]LINENO.*/&-/
21162 t lineno
21163 b
21164 :lineno
21165 N
21166 :loop
21167 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21168 t loop
21169 s/-\n.*//
21170 ' >$as_me.lineno &&
21171 chmod +x "$as_me.lineno" ||
21172 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21173 { (exit 1); exit 1; }; }
21174
21175 # Don't try to exec as it changes $[0], causing all sort of problems
21176 # (the dirname of $[0] is not the place where we might find the
21177 # original and so on. Autoconf is especially sensitive to this).
21178 . "./$as_me.lineno"
21179 # Exit status is that of the last command.
21180 exit
21181 }
21182
21183
21184 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21185 as_dirname=dirname
21186 else
21187 as_dirname=false
21188 fi
21189
21190 ECHO_C= ECHO_N= ECHO_T=
21191 case `echo -n x` in
21192 -n*)
21193 case `echo 'x\c'` in
21194 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21195 *) ECHO_C='\c';;
21196 esac;;
21197 *)
21198 ECHO_N='-n';;
21199 esac
21200 if expr a : '\(a\)' >/dev/null 2>&1 &&
21201 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21202 as_expr=expr
21203 else
21204 as_expr=false
21205 fi
21206
21207 rm -f conf$$ conf$$.exe conf$$.file
21208 if test -d conf$$.dir; then
21209 rm -f conf$$.dir/conf$$.file
21210 else
21211 rm -f conf$$.dir
21212 mkdir conf$$.dir 2>/dev/null
21213 fi
21214 if (echo >conf$$.file) 2>/dev/null; then
21215 if ln -s conf$$.file conf$$ 2>/dev/null; then
21216 as_ln_s='ln -s'
21217 # ... but there are two gotchas:
21218 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21219 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21220 # In both cases, we have to default to `cp -p'.
21221 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21222 as_ln_s='cp -p'
21223 elif ln conf$$.file conf$$ 2>/dev/null; then
21224 as_ln_s=ln
21225 else
21226 as_ln_s='cp -p'
21227 fi
21228 else
21229 as_ln_s='cp -p'
21230 fi
21231 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21232 rmdir conf$$.dir 2>/dev/null
21233
21234 if mkdir -p . 2>/dev/null; then
21235 as_mkdir_p=:
21236 else
21237 test -d ./-p && rmdir ./-p
21238 as_mkdir_p=false
21239 fi
21240
21241 if test -x / >/dev/null 2>&1; then
21242 as_test_x='test -x'
21243 else
21244 if ls -dL / >/dev/null 2>&1; then
21245 as_ls_L_option=L
21246 else
21247 as_ls_L_option=
21248 fi
21249 as_test_x='
21250 eval sh -c '\''
21251 if test -d "$1"; then
21252 test -d "$1/.";
21253 else
21254 case $1 in
21255 -*)set "./$1";;
21256 esac;
21257 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21258 ???[sx]*):;;*)false;;esac;fi
21259 '\'' sh
21260 '
21261 fi
21262 as_executable_p=$as_test_x
21263
21264 # Sed expression to map a string onto a valid CPP name.
21265 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21266
21267 # Sed expression to map a string onto a valid variable name.
21268 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21269
21270
21271 exec 6>&1
21272
21273 # Save the log message, to keep $[0] and so on meaningful, and to
21274 # report actual input values of CONFIG_FILES etc. instead of their
21275 # values after options handling.
21276 ac_log="
21277 This file was extended by xf86-input-ws $as_me 1.3.0, which was
21278 generated by GNU Autoconf 2.62. Invocation command line was
21279
21280 CONFIG_FILES = $CONFIG_FILES
21281 CONFIG_HEADERS = $CONFIG_HEADERS
21282 CONFIG_LINKS = $CONFIG_LINKS
21283 CONFIG_COMMANDS = $CONFIG_COMMANDS
21284 $ $0 $@
21285
21286 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21287 "
21288
21289 _ACEOF
21290
21291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21292 # Files that config.status was made for.
21293 config_files="$ac_config_files"
21294 config_headers="$ac_config_headers"
21295 config_commands="$ac_config_commands"
21296
21297 _ACEOF
21298
21299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21300 ac_cs_usage="\
21301 \`$as_me' instantiates files from templates according to the
21302 current configuration.
21303
21304 Usage: $0 [OPTIONS] [FILE]...
21305
21306 -h, --help print this help, then exit
21307 -V, --version print version number and configuration settings, then exit
21308 -q, --quiet do not print progress messages
21309 -d, --debug don't remove temporary files
21310 --recheck update $as_me by reconfiguring in the same conditions
21311 --file=FILE[:TEMPLATE]
21312 instantiate the configuration file FILE
21313 --header=FILE[:TEMPLATE]
21314 instantiate the configuration header FILE
21315
21316 Configuration files:
21317 $config_files
21318
21319 Configuration headers:
21320 $config_headers
21321
21322 Configuration commands:
21323 $config_commands
21324
21325 Report bugs to <bug-autoconf (at] gnu.org>."
21326
21327 _ACEOF
21328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21329 ac_cs_version="\\
21330 xf86-input-ws config.status 1.3.0
21331 configured by $0, generated by GNU Autoconf 2.62,
21332 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21333
21334 Copyright (C) 2008 Free Software Foundation, Inc.
21335 This config.status script is free software; the Free Software Foundation
21336 gives unlimited permission to copy, distribute and modify it."
21337
21338 ac_pwd='$ac_pwd'
21339 srcdir='$srcdir'
21340 INSTALL='$INSTALL'
21341 AWK='$AWK'
21342 test -n "\$AWK" || AWK=awk
21343 _ACEOF
21344
21345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21346 # The default lists apply if the user does not specify any file.
21347 ac_need_defaults=:
21348 while test $# != 0
21349 do
21350 case $1 in
21351 --*=*)
21352 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21353 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21354 ac_shift=:
21355 ;;
21356 *)
21357 ac_option=$1
21358 ac_optarg=$2
21359 ac_shift=shift
21360 ;;
21361 esac
21362
21363 case $ac_option in
21364 # Handling of the options.
21365 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21366 ac_cs_recheck=: ;;
21367 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21368 $as_echo "$ac_cs_version"; exit ;;
21369 --debug | --debu | --deb | --de | --d | -d )
21370 debug=: ;;
21371 --file | --fil | --fi | --f )
21372 $ac_shift
21373 case $ac_optarg in
21374 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21375 esac
21376 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21377 ac_need_defaults=false;;
21378 --header | --heade | --head | --hea )
21379 $ac_shift
21380 case $ac_optarg in
21381 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21382 esac
21383 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
21384 ac_need_defaults=false;;
21385 --he | --h)
21386 # Conflict between --help and --header
21387 { $as_echo "$as_me: error: ambiguous option: $1
21388 Try \`$0 --help' for more information." >&2
21389 { (exit 1); exit 1; }; };;
21390 --help | --hel | -h )
21391 $as_echo "$ac_cs_usage"; exit ;;
21392 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21393 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21394 ac_cs_silent=: ;;
21395
21396 # This is an error.
21397 -*) { $as_echo "$as_me: error: unrecognized option: $1
21398 Try \`$0 --help' for more information." >&2
21399 { (exit 1); exit 1; }; } ;;
21400
21401 *) ac_config_targets="$ac_config_targets $1"
21402 ac_need_defaults=false ;;
21403
21404 esac
21405 shift
21406 done
21407
21408 ac_configure_extra_args=
21409
21410 if $ac_cs_silent; then
21411 exec 6>/dev/null
21412 ac_configure_extra_args="$ac_configure_extra_args --silent"
21413 fi
21414
21415 _ACEOF
21416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21417 if \$ac_cs_recheck; then
21418 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21419 shift
21420 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21421 CONFIG_SHELL='$SHELL'
21422 export CONFIG_SHELL
21423 exec "\$@"
21424 fi
21425
21426 _ACEOF
21427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21428 exec 5>>config.log
21429 {
21430 echo
21431 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21432 ## Running $as_me. ##
21433 _ASBOX
21434 $as_echo "$ac_log"
21435 } >&5
21436
21437 _ACEOF
21438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21439 #
21440 # INIT-COMMANDS
21441 #
21442 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21443
21444 _ACEOF
21445
21446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21447
21448 # Handling of arguments.
21449 for ac_config_target in $ac_config_targets
21450 do
21451 case $ac_config_target in
21452 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21453 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21454 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21455 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21456 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21457 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21458
21459 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21460 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21461 { (exit 1); exit 1; }; };;
21462 esac
21463 done
21464
21465
21466 # If the user did not use the arguments to specify the items to instantiate,
21467 # then the envvar interface is used. Set only those that are not.
21468 # We use the long form for the default assignment because of an extremely
21469 # bizarre bug on SunOS 4.1.3.
21470 if $ac_need_defaults; then
21471 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21472 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21473 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21474 fi
21475
21476 # Have a temporary directory for convenience. Make it in the build tree
21477 # simply because there is no reason against having it here, and in addition,
21478 # creating and moving files from /tmp can sometimes cause problems.
21479 # Hook for its removal unless debugging.
21480 # Note that there is a small window in which the directory will not be cleaned:
21481 # after its creation but before its name has been assigned to `$tmp'.
21482 $debug ||
21483 {
21484 tmp=
21485 trap 'exit_status=$?
21486 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21487 ' 0
21488 trap '{ (exit 1); exit 1; }' 1 2 13 15
21489 }
21490 # Create a (secure) tmp directory for tmp files.
21491
21492 {
21493 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21494 test -n "$tmp" && test -d "$tmp"
21495 } ||
21496 {
21497 tmp=./conf$$-$RANDOM
21498 (umask 077 && mkdir "$tmp")
21499 } ||
21500 {
21501 $as_echo "$as_me: cannot create a temporary directory in ." >&2
21502 { (exit 1); exit 1; }
21503 }
21504
21505 # Set up the scripts for CONFIG_FILES section.
21506 # No need to generate them if there are no CONFIG_FILES.
21507 # This happens for instance with `./config.status config.h'.
21508 if test -n "$CONFIG_FILES"; then
21509
21510
21511 ac_cr='
'
21513 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21514 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21515 ac_cs_awk_cr='\\r'
21516 else
21517 ac_cs_awk_cr=$ac_cr
21518 fi
21519
21520 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21521 _ACEOF
21522
21523
21524 {
21525 echo "cat >conf$$subs.awk <<_ACEOF" &&
21526 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21527 echo "_ACEOF"
21528 } >conf$$subs.sh ||
21529 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21530 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21531 { (exit 1); exit 1; }; }
21532 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21533 ac_delim='%!_!# '
21534 for ac_last_try in false false false false false :; do
21535 . ./conf$$subs.sh ||
21536 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21537 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21538 { (exit 1); exit 1; }; }
21539
21540 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
21541 break
21542 elif $ac_last_try; then
21543 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21544 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21545 { (exit 1); exit 1; }; }
21546 else
21547 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21548 fi
21549 done
21550 rm -f conf$$subs.sh
21551
21552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21553 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21554 _ACEOF
21555 sed -n '
21556 h
21557 s/^/S["/; s/!.*/"]=/
21558 p
21559 g
21560 s/^[^!]*!//
21561 :repl
21562 t repl
21563 s/'"$ac_delim"'$//
21564 t delim
21565 :nl
21566 h
21567 s/\(.\{148\}\).*/\1/
21568 t more1
21569 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21570 p
21571 n
21572 b repl
21573 :more1
21574 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21575 p
21576 g
21577 s/.\{148\}//
21578 t nl
21579 :delim
21580 h
21581 s/\(.\{148\}\).*/\1/
21582 t more2
21583 s/["\\]/\\&/g; s/^/"/; s/$/"/
21584 p
21585 b
21586 :more2
21587 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21588 p
21589 g
21590 s/.\{148\}//
21591 t delim
21592 ' <conf$$subs.awk | sed '
21593 /^[^""]/{
21594 N
21595 s/\n//
21596 }
21597 ' >>$CONFIG_STATUS || ac_write_fail=1
21598 rm -f conf$$subs.awk
21599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21600 _ACAWK
21601 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21602 for (key in S) S_is_set[key] = 1
21603 FS = ""
21604
21605 }
21606 {
21607 line = $ 0
21608 nfields = split(line, field, "@")
21609 substed = 0
21610 len = length(field[1])
21611 for (i = 2; i < nfields; i++) {
21612 key = field[i]
21613 keylen = length(key)
21614 if (S_is_set[key]) {
21615 value = S[key]
21616 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21617 len += length(value) + length(field[++i])
21618 substed = 1
21619 } else
21620 len += 1 + keylen
21621 }
21622
21623 print line
21624 }
21625
21626 _ACAWK
21627 _ACEOF
21628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21629 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21630 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21631 else
21632 cat
21633 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21634 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21635 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
21636 { (exit 1); exit 1; }; }
21637 _ACEOF
21638
21639 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21640 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21641 # trailing colons and then remove the whole line if VPATH becomes empty
21642 # (actually we leave an empty line to preserve line numbers).
21643 if test "x$srcdir" = x.; then
21644 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21645 s/:*\$(srcdir):*/:/
21646 s/:*\${srcdir}:*/:/
21647 s/:*@srcdir@:*/:/
21648 s/^\([^=]*=[ ]*\):*/\1/
21649 s/:*$//
21650 s/^[^=]*=[ ]*$//
21651 }'
21652 fi
21653
21654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21655 fi # test -n "$CONFIG_FILES"
21656
21657 # Set up the scripts for CONFIG_HEADERS section.
21658 # No need to generate them if there are no CONFIG_HEADERS.
21659 # This happens for instance with `./config.status Makefile'.
21660 if test -n "$CONFIG_HEADERS"; then
21661 cat >"$tmp/defines.awk" <<\_ACAWK ||
21662 BEGIN {
21663 _ACEOF
21664
21665 # Transform confdefs.h into an awk script `defines.awk', embedded as
21666 # here-document in config.status, that substitutes the proper values into
21667 # config.h.in to produce config.h.
21668
21669 # Create a delimiter string that does not exist in confdefs.h, to ease
21670 # handling of long lines.
21671 ac_delim='%!_!# '
21672 for ac_last_try in false false :; do
21673 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21674 if test -z "$ac_t"; then
21675 break
21676 elif $ac_last_try; then
21677 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21678 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21679 { (exit 1); exit 1; }; }
21680 else
21681 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21682 fi
21683 done
21684
21685 # For the awk script, D is an array of macro values keyed by name,
21686 # likewise P contains macro parameters if any. Preserve backslash
21687 # newline sequences.
21688
21689 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21690 sed -n '
21691 s/.\{148\}/&'"$ac_delim"'/g
21692 t rset
21693 :rset
21694 s/^[ ]*#[ ]*define[ ][ ]*/ /
21695 t def
21696 d
21697 :def
21698 s/\\$//
21699 t bsnl
21700 s/["\\]/\\&/g
21701 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21702 D["\1"]=" \3"/p
21703 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21704 d
21705 :bsnl
21706 s/["\\]/\\&/g
21707 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21708 D["\1"]=" \3\\\\\\n"\\/p
21709 t cont
21710 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21711 t cont
21712 d
21713 :cont
21714 n
21715 s/.\{148\}/&'"$ac_delim"'/g
21716 t clear
21717 :clear
21718 s/\\$//
21719 t bsnlc
21720 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21721 d
21722 :bsnlc
21723 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21724 b cont
21725 ' <confdefs.h | sed '
21726 s/'"$ac_delim"'/"\\\
21727 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21728
21729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21730 for (key in D) D_is_set[key] = 1
21731 FS = ""
21732 }
21733 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21734 line = \$ 0
21735 split(line, arg, " ")
21736 if (arg[1] == "#") {
21737 defundef = arg[2]
21738 mac1 = arg[3]
21739 } else {
21740 defundef = substr(arg[1], 2)
21741 mac1 = arg[2]
21742 }
21743 split(mac1, mac2, "(") #)
21744 macro = mac2[1]
21745 if (D_is_set[macro]) {
21746 # Preserve the white space surrounding the "#".
21747 prefix = substr(line, 1, index(line, defundef) - 1)
21748 print prefix "define", macro P[macro] D[macro]
21749 next
21750 } else {
21751 # Replace #undef with comments. This is necessary, for example,
21752 # in the case of _POSIX_SOURCE, which is predefined and required
21753 # on some systems where configure will not decide to define it.
21754 if (defundef == "undef") {
21755 print "/*", line, "*/"
21756 next
21757 }
21758 }
21759 }
21760 { print }
21761 _ACAWK
21762 _ACEOF
21763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21764 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21765 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21766 { (exit 1); exit 1; }; }
21767 fi # test -n "$CONFIG_HEADERS"
21768
21769
21770 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21771 shift
21772 for ac_tag
21773 do
21774 case $ac_tag in
21775 :[FHLC]) ac_mode=$ac_tag; continue;;
21776 esac
21777 case $ac_mode$ac_tag in
21778 :[FHL]*:*);;
21779 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21780 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21781 { (exit 1); exit 1; }; };;
21782 :[FH]-) ac_tag=-:-;;
21783 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21784 esac
21785 ac_save_IFS=$IFS
21786 IFS=:
21787 set x $ac_tag
21788 IFS=$ac_save_IFS
21789 shift
21790 ac_file=$1
21791 shift
21792
21793 case $ac_mode in
21794 :L) ac_source=$1;;
21795 :[FH])
21796 ac_file_inputs=
21797 for ac_f
21798 do
21799 case $ac_f in
21800 -) ac_f="$tmp/stdin";;
21801 *) # Look for the file first in the build tree, then in the source tree
21802 # (if the path is not absolute). The absolute path cannot be DOS-style,
21803 # because $ac_f cannot contain `:'.
21804 test -f "$ac_f" ||
21805 case $ac_f in
21806 [\\/$]*) false;;
21807 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21808 esac ||
21809 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21810 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21811 { (exit 1); exit 1; }; };;
21812 esac
21813 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21814 ac_file_inputs="$ac_file_inputs '$ac_f'"
21815 done
21816
21817 # Let's still pretend it is `configure' which instantiates (i.e., don't
21818 # use $as_me), people would be surprised to read:
21819 # /* config.h. Generated by config.status. */
21820 configure_input='Generated from '`
21821 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21822 `' by configure.'
21823 if test x"$ac_file" != x-; then
21824 configure_input="$ac_file. $configure_input"
21825 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21826 $as_echo "$as_me: creating $ac_file" >&6;}
21827 fi
21828 # Neutralize special characters interpreted by sed in replacement strings.
21829 case $configure_input in #(
21830 *\&* | *\|* | *\\* )
21831 ac_sed_conf_input=`$as_echo "$configure_input" |
21832 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21833 *) ac_sed_conf_input=$configure_input;;
21834 esac
21835
21836 case $ac_tag in
21837 *:-:* | *:-) cat >"$tmp/stdin" \
21838 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21839 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21840 { (exit 1); exit 1; }; } ;;
21841 esac
21842 ;;
21843 esac
21844
21845 ac_dir=`$as_dirname -- "$ac_file" ||
21846 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21847 X"$ac_file" : 'X\(//\)[^/]' \| \
21848 X"$ac_file" : 'X\(//\)$' \| \
21849 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21850 $as_echo X"$ac_file" |
21851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21852 s//\1/
21853 q
21854 }
21855 /^X\(\/\/\)[^/].*/{
21856 s//\1/
21857 q
21858 }
21859 /^X\(\/\/\)$/{
21860 s//\1/
21861 q
21862 }
21863 /^X\(\/\).*/{
21864 s//\1/
21865 q
21866 }
21867 s/.*/./; q'`
21868 { as_dir="$ac_dir"
21869 case $as_dir in #(
21870 -*) as_dir=./$as_dir;;
21871 esac
21872 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21873 as_dirs=
21874 while :; do
21875 case $as_dir in #(
21876 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21877 *) as_qdir=$as_dir;;
21878 esac
21879 as_dirs="'$as_qdir' $as_dirs"
21880 as_dir=`$as_dirname -- "$as_dir" ||
21881 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21882 X"$as_dir" : 'X\(//\)[^/]' \| \
21883 X"$as_dir" : 'X\(//\)$' \| \
21884 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21885 $as_echo X"$as_dir" |
21886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21887 s//\1/
21888 q
21889 }
21890 /^X\(\/\/\)[^/].*/{
21891 s//\1/
21892 q
21893 }
21894 /^X\(\/\/\)$/{
21895 s//\1/
21896 q
21897 }
21898 /^X\(\/\).*/{
21899 s//\1/
21900 q
21901 }
21902 s/.*/./; q'`
21903 test -d "$as_dir" && break
21904 done
21905 test -z "$as_dirs" || eval "mkdir $as_dirs"
21906 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21907 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21908 { (exit 1); exit 1; }; }; }
21909 ac_builddir=.
21910
21911 case "$ac_dir" in
21912 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21913 *)
21914 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21915 # A ".." for each directory in $ac_dir_suffix.
21916 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21917 case $ac_top_builddir_sub in
21918 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21919 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21920 esac ;;
21921 esac
21922 ac_abs_top_builddir=$ac_pwd
21923 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21924 # for backward compatibility:
21925 ac_top_builddir=$ac_top_build_prefix
21926
21927 case $srcdir in
21928 .) # We are building in place.
21929 ac_srcdir=.
21930 ac_top_srcdir=$ac_top_builddir_sub
21931 ac_abs_top_srcdir=$ac_pwd ;;
21932 [\\/]* | ?:[\\/]* ) # Absolute name.
21933 ac_srcdir=$srcdir$ac_dir_suffix;
21934 ac_top_srcdir=$srcdir
21935 ac_abs_top_srcdir=$srcdir ;;
21936 *) # Relative name.
21937 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21938 ac_top_srcdir=$ac_top_build_prefix$srcdir
21939 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21940 esac
21941 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21942
21943
21944 case $ac_mode in
21945 :F)
21946 #
21947 # CONFIG_FILE
21948 #
21949
21950 case $INSTALL in
21951 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21952 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21953 esac
21954 _ACEOF
21955
21956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21957 # If the template does not know about datarootdir, expand it.
21958 # FIXME: This hack should be removed a few years after 2.60.
21959 ac_datarootdir_hack=; ac_datarootdir_seen=
21960
21961 ac_sed_dataroot='
21962 /datarootdir/ {
21963 p
21964 q
21965 }
21966 /@datadir@/p
21967 /@docdir@/p
21968 /@infodir@/p
21969 /@localedir@/p
21970 /@mandir@/p
21971 '
21972 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21973 *datarootdir*) ac_datarootdir_seen=yes;;
21974 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21975 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21976 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21977 _ACEOF
21978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21979 ac_datarootdir_hack='
21980 s&@datadir@&$datadir&g
21981 s&@docdir@&$docdir&g
21982 s&@infodir@&$infodir&g
21983 s&@localedir@&$localedir&g
21984 s&@mandir@&$mandir&g
21985 s&\\\${datarootdir}&$datarootdir&g' ;;
21986 esac
21987 _ACEOF
21988
21989 # Neutralize VPATH when `$srcdir' = `.'.
21990 # Shell code in configure.ac might set extrasub.
21991 # FIXME: do we really want to maintain this feature?
21992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21993 ac_sed_extra="$ac_vpsub
21994 $extrasub
21995 _ACEOF
21996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21997 :t
21998 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21999 s|@configure_input@|$ac_sed_conf_input|;t t
22000 s&@top_builddir@&$ac_top_builddir_sub&;t t
22001 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22002 s&@srcdir@&$ac_srcdir&;t t
22003 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22004 s&@top_srcdir@&$ac_top_srcdir&;t t
22005 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22006 s&@builddir@&$ac_builddir&;t t
22007 s&@abs_builddir@&$ac_abs_builddir&;t t
22008 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22009 s&@INSTALL@&$ac_INSTALL&;t t
22010 $ac_datarootdir_hack
22011 "
22012 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22013 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22014 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22015 { (exit 1); exit 1; }; }
22016
22017 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22018 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22019 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22020 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22021 which seems to be undefined. Please make sure it is defined." >&5
22022 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22023 which seems to be undefined. Please make sure it is defined." >&2;}
22024
22025 rm -f "$tmp/stdin"
22026 case $ac_file in
22027 -) cat "$tmp/out" && rm -f "$tmp/out";;
22028 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22029 esac \
22030 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22031 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22032 { (exit 1); exit 1; }; }
22033 ;;
22034 :H)
22035 #
22036 # CONFIG_HEADER
22037 #
22038 if test x"$ac_file" != x-; then
22039 {
22040 $as_echo "/* $configure_input */" \
22041 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22042 } >"$tmp/config.h" \
22043 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22044 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22045 { (exit 1); exit 1; }; }
22046 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22047 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22048 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22049 else
22050 rm -f "$ac_file"
22051 mv "$tmp/config.h" "$ac_file" \
22052 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22053 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22054 { (exit 1); exit 1; }; }
22055 fi
22056 else
22057 $as_echo "/* $configure_input */" \
22058 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22059 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22060 $as_echo "$as_me: error: could not create -" >&2;}
22061 { (exit 1); exit 1; }; }
22062 fi
22063 # Compute "$ac_file"'s index in $config_headers.
22064 _am_stamp_count=1
22065 for _am_header in $config_headers :; do
22066 case $_am_header in
22067 "$ac_file" | "$ac_file":* )
22068 break ;;
22069 * )
22070 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22071 esac
22072 done
22073 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
22074 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22075 X"$ac_file" : 'X\(//\)[^/]' \| \
22076 X"$ac_file" : 'X\(//\)$' \| \
22077 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22078 $as_echo X"$ac_file" |
22079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22080 s//\1/
22081 q
22082 }
22083 /^X\(\/\/\)[^/].*/{
22084 s//\1/
22085 q
22086 }
22087 /^X\(\/\/\)$/{
22088 s//\1/
22089 q
22090 }
22091 /^X\(\/\).*/{
22092 s//\1/
22093 q
22094 }
22095 s/.*/./; q'`/stamp-h$_am_stamp_count
22096 ;;
22097
22098 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22099 $as_echo "$as_me: executing $ac_file commands" >&6;}
22100 ;;
22101 esac
22102
22103
22104 case $ac_file$ac_mode in
22105 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22106 # Strip MF so we end up with the name of the file.
22107 mf=`echo "$mf" | sed -e 's/:.*$//'`
22108 # Check whether this is an Automake generated Makefile or not.
22109 # We used to match only the files named `Makefile.in', but
22110 # some people rename them; so instead we look at the file content.
22111 # Grep'ing the first line is not enough: some people post-process
22112 # each Makefile.in and add a new line on top of each file to say so.
22113 # So let's grep whole file.
22114 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22115 dirpart=`$as_dirname -- "$mf" ||
22116 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22117 X"$mf" : 'X\(//\)[^/]' \| \
22118 X"$mf" : 'X\(//\)$' \| \
22119 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22120 $as_echo X"$mf" |
22121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22122 s//\1/
22123 q
22124 }
22125 /^X\(\/\/\)[^/].*/{
22126 s//\1/
22127 q
22128 }
22129 /^X\(\/\/\)$/{
22130 s//\1/
22131 q
22132 }
22133 /^X\(\/\).*/{
22134 s//\1/
22135 q
22136 }
22137 s/.*/./; q'`
22138 else
22139 continue
22140 fi
22141 # Extract the definition of DEPDIR, am__include, and am__quote
22142 # from the Makefile without running `make'.
22143 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22144 test -z "$DEPDIR" && continue
22145 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22146 test -z "am__include" && continue
22147 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22148 # When using ansi2knr, U may be empty or an underscore; expand it
22149 U=`sed -n 's/^U = //p' < "$mf"`
22150 # Find all dependency output files, they are included files with
22151 # $(DEPDIR) in their names. We invoke sed twice because it is the
22152 # simplest approach to changing $(DEPDIR) to its actual value in the
22153 # expansion.
22154 for file in `sed -n "
22155 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22156 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22157 # Make sure the directory exists.
22158 test -f "$dirpart/$file" && continue
22159 fdir=`$as_dirname -- "$file" ||
22160 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22161 X"$file" : 'X\(//\)[^/]' \| \
22162 X"$file" : 'X\(//\)$' \| \
22163 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22164 $as_echo X"$file" |
22165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22166 s//\1/
22167 q
22168 }
22169 /^X\(\/\/\)[^/].*/{
22170 s//\1/
22171 q
22172 }
22173 /^X\(\/\/\)$/{
22174 s//\1/
22175 q
22176 }
22177 /^X\(\/\).*/{
22178 s//\1/
22179 q
22180 }
22181 s/.*/./; q'`
22182 { as_dir=$dirpart/$fdir
22183 case $as_dir in #(
22184 -*) as_dir=./$as_dir;;
22185 esac
22186 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22187 as_dirs=
22188 while :; do
22189 case $as_dir in #(
22190 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22191 *) as_qdir=$as_dir;;
22192 esac
22193 as_dirs="'$as_qdir' $as_dirs"
22194 as_dir=`$as_dirname -- "$as_dir" ||
22195 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22196 X"$as_dir" : 'X\(//\)[^/]' \| \
22197 X"$as_dir" : 'X\(//\)$' \| \
22198 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22199 $as_echo X"$as_dir" |
22200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22201 s//\1/
22202 q
22203 }
22204 /^X\(\/\/\)[^/].*/{
22205 s//\1/
22206 q
22207 }
22208 /^X\(\/\/\)$/{
22209 s//\1/
22210 q
22211 }
22212 /^X\(\/\).*/{
22213 s//\1/
22214 q
22215 }
22216 s/.*/./; q'`
22217 test -d "$as_dir" && break
22218 done
22219 test -z "$as_dirs" || eval "mkdir $as_dirs"
22220 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22221 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22222 { (exit 1); exit 1; }; }; }
22223 # echo "creating $dirpart/$file"
22224 echo '# dummy' > "$dirpart/$file"
22225 done
22226 done
22227 ;;
22228
22229 esac
22230 done # for ac_tag
22231
22232
22233 { (exit 0); exit 0; }
22234 _ACEOF
22235 chmod +x $CONFIG_STATUS
22236 ac_clean_files=$ac_clean_files_save
22237
22238 test $ac_write_fail = 0 ||
22239 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22240 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22241 { (exit 1); exit 1; }; }
22242
22243
22244 # configure is writing to config.log, and then calls config.status.
22245 # config.status does its own redirection, appending to config.log.
22246 # Unfortunately, on DOS this fails, as config.log is still kept open
22247 # by configure, so config.status won't be able to write to it; its
22248 # output is simply discarded. So we exec the FD to /dev/null,
22249 # effectively closing config.log, so it can be properly (re)opened and
22250 # appended to by config.status. When coming back to configure, we
22251 # need to make the FD available again.
22252 if test "$no_create" != yes; then
22253 ac_cs_success=:
22254 ac_config_status_args=
22255 test "$silent" = yes &&
22256 ac_config_status_args="$ac_config_status_args --quiet"
22257 exec 5>/dev/null
22258 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22259 exec 5>>config.log
22260 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22261 # would make configure fail if this is the last instruction.
22262 $ac_cs_success || { (exit 1); exit 1; }
22263 fi
22264 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22265 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
22266 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
22267 fi
22268
22269