Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for LinPac 0.28.
4 #
5 # Report bugs to <[email protected] >.
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 [email protected] 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$lt_ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585 esac
586
587 ECHO=${lt_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 <<_LT_EOF
606 $*
607 _LT_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 "$lt_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 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
627
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
638
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
650 IFS="$lt_save_ifs"
651
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
692
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
700
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
710 fi
711 fi
712 fi
713 fi
714
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 7<&0 </dev/null 6>&1
726
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='LinPac'
747 PACKAGE_TARNAME='linpac'
748 PACKAGE_VERSION='0.28'
749 PACKAGE_STRING='LinPac 0.28'
750 PACKAGE_BUGREPORT='[email protected] '
751
752 ac_unique_file="src/linpac.cc"
753 # Factoring default headers for most tests.
754 ac_includes_default="\
755 #include <stdio.h>
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
758 #endif
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
761 #endif
762 #ifdef STDC_HEADERS
763 # include <stdlib.h>
764 # include <stddef.h>
765 #else
766 # ifdef HAVE_STDLIB_H
767 # include <stdlib.h>
768 # endif
769 #endif
770 #ifdef HAVE_STRING_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772 # include <memory.h>
773 # endif
774 # include <string.h>
775 #endif
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
778 #endif
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
781 #endif
782 #ifdef HAVE_STDINT_H
783 # include <stdint.h>
784 #endif
785 #ifdef HAVE_UNISTD_H
786 # include <unistd.h>
787 #endif"
788
789 ac_default_prefix=/usr/local
790 ac_subst_vars='am__EXEEXT_FALSE
791 am__EXEEXT_TRUE
792 LTLIBOBJS
793 LIBOBJS
794 LINPACLINK
795 LISTEN
796 PERL
797 CXXCPP
798 am__fastdepCXX_FALSE
799 am__fastdepCXX_TRUE
800 CXXDEPMODE
801 ac_ct_CXX
802 CXXFLAGS
803 CXX
804 am__fastdepCC_FALSE
805 am__fastdepCC_TRUE
806 CCDEPMODE
807 AMDEPBACKSLASH
808 AMDEP_FALSE
809 AMDEP_TRUE
810 am__quote
811 am__include
812 DEPDIR
813 am__untar
814 am__tar
815 AMTAR
816 am__leading_dot
817 SET_MAKE
818 AWK
819 mkdir_p
820 MKDIR_P
821 INSTALL_STRIP_PROGRAM
822 install_sh
823 MAKEINFO
824 AUTOHEADER
825 AUTOMAKE
826 AUTOCONF
827 ACLOCAL
828 VERSION
829 PACKAGE
830 CYGPATH_W
831 am__isrc
832 INSTALL_DATA
833 INSTALL_SCRIPT
834 INSTALL_PROGRAM
835 CPP
836 OTOOL64
837 OTOOL
838 LIPO
839 NMEDIT
840 DSYMUTIL
841 lt_ECHO
842 RANLIB
843 STRIP
844 AR
845 OBJDUMP
846 LN_S
847 NM
848 ac_ct_DUMPBIN
849 DUMPBIN
850 LD
851 FGREP
852 EGREP
853 GREP
854 SED
855 OBJEXT
856 EXEEXT
857 ac_ct_CC
858 CPPFLAGS
859 LDFLAGS
860 CFLAGS
861 CC
862 host_os
863 host_vendor
864 host_cpu
865 host
866 build_os
867 build_vendor
868 build_cpu
869 build
870 LIBTOOL
871 target_alias
872 host_alias
873 build_alias
874 LIBS
875 ECHO_T
876 ECHO_N
877 ECHO_C
878 DEFS
879 mandir
880 localedir
881 libdir
882 psdir
883 pdfdir
884 dvidir
885 htmldir
886 infodir
887 docdir
888 oldincludedir
889 includedir
890 localstatedir
891 sharedstatedir
892 sysconfdir
893 datadir
894 datarootdir
895 libexecdir
896 sbindir
897 bindir
898 program_transform_name
899 prefix
900 exec_prefix
901 PACKAGE_BUGREPORT
902 PACKAGE_STRING
903 PACKAGE_VERSION
904 PACKAGE_TARNAME
905 PACKAGE_NAME
906 PATH_SEPARATOR
907 SHELL'
908 ac_subst_files=''
909 ac_user_opts='
910 enable_option_checking
911 enable_shared
912 enable_static
913 with_pic
914 enable_fast_install
915 with_gnu_ld
916 enable_libtool_lock
917 enable_dependency_tracking
918 enable_LINKSTATIC
919 '
920 ac_precious_vars='build_alias
921 host_alias
922 target_alias
923 CC
924 CFLAGS
925 LDFLAGS
926 LIBS
927 CPPFLAGS
928 CPP
929 CXX
930 CXXFLAGS
931 CCC
932 CXXCPP'
933
934
935 # Initialize some variables set by options.
936 ac_init_help=
937 ac_init_version=false
938 ac_unrecognized_opts=
939 ac_unrecognized_sep=
940 # The variables have the same names as the options, with
941 # dashes changed to underlines.
942 cache_file=/dev/null
943 exec_prefix=NONE
944 no_create=
945 no_recursion=
946 prefix=NONE
947 program_prefix=NONE
948 program_suffix=NONE
949 program_transform_name=s,x,x,
950 silent=
951 site=
952 srcdir=
953 verbose=
954 x_includes=NONE
955 x_libraries=NONE
956
957 # Installation directory options.
958 # These are left unexpanded so users can "make install exec_prefix=/foo"
959 # and all the variables that are supposed to be based on exec_prefix
960 # by default will actually change.
961 # Use braces instead of parens because sh, perl, etc. also accept them.
962 # (The list follows the same order as the GNU Coding Standards.)
963 bindir='${exec_prefix}/bin'
964 sbindir='${exec_prefix}/sbin'
965 libexecdir='${exec_prefix}/libexec'
966 datarootdir='${prefix}/share'
967 datadir='${datarootdir}'
968 sysconfdir='${prefix}/etc'
969 sharedstatedir='${prefix}/com'
970 localstatedir='${prefix}/var'
971 includedir='${prefix}/include'
972 oldincludedir='/usr/include'
973 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
974 infodir='${datarootdir}/info'
975 htmldir='${docdir}'
976 dvidir='${docdir}'
977 pdfdir='${docdir}'
978 psdir='${docdir}'
979 libdir='${exec_prefix}/lib'
980 localedir='${datarootdir}/locale'
981 mandir='${datarootdir}/man'
982
983 ac_prev=
984 ac_dashdash=
985 for ac_option
986 do
987 # If the previous option needs an argument, assign it.
988 if test -n "$ac_prev"; then
989 eval $ac_prev=\$ac_option
990 ac_prev=
991 continue
992 fi
993
994 case $ac_option in
995 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
996 *) ac_optarg=yes ;;
997 esac
998
999 # Accept the important Cygnus configure options, so we can diagnose typos.
1000
1001 case $ac_dashdash$ac_option in
1002 --)
1003 ac_dashdash=yes ;;
1004
1005 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1006 ac_prev=bindir ;;
1007 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1008 bindir=$ac_optarg ;;
1009
1010 -build | --build | --buil | --bui | --bu)
1011 ac_prev=build_alias ;;
1012 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1013 build_alias=$ac_optarg ;;
1014
1015 -cache-file | --cache-file | --cache-fil | --cache-fi \
1016 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1017 ac_prev=cache_file ;;
1018 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1019 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1020 cache_file=$ac_optarg ;;
1021
1022 --config-cache | -C)
1023 cache_file=config.cache ;;
1024
1025 -datadir | --datadir | --datadi | --datad)
1026 ac_prev=datadir ;;
1027 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1028 datadir=$ac_optarg ;;
1029
1030 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1031 | --dataroo | --dataro | --datar)
1032 ac_prev=datarootdir ;;
1033 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1034 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1035 datarootdir=$ac_optarg ;;
1036
1037 -disable-* | --disable-*)
1038 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1042 { (exit 1); exit 1; }; }
1043 ac_useropt_orig=$ac_useropt
1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045 case $ac_user_opts in
1046 *"
1047 "enable_$ac_useropt"
1048 "*) ;;
1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1050 ac_unrecognized_sep=', ';;
1051 esac
1052 eval enable_$ac_useropt=no ;;
1053
1054 -docdir | --docdir | --docdi | --doc | --do)
1055 ac_prev=docdir ;;
1056 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1057 docdir=$ac_optarg ;;
1058
1059 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1060 ac_prev=dvidir ;;
1061 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1062 dvidir=$ac_optarg ;;
1063
1064 -enable-* | --enable-*)
1065 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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--enable-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1078 esac
1079 eval enable_$ac_useropt=\$ac_optarg ;;
1080
1081 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083 | --exec | --exe | --ex)
1084 ac_prev=exec_prefix ;;
1085 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087 | --exec=* | --exe=* | --ex=*)
1088 exec_prefix=$ac_optarg ;;
1089
1090 -gas | --gas | --ga | --g)
1091 # Obsolete; use --with-gas.
1092 with_gas=yes ;;
1093
1094 -help | --help | --hel | --he | -h)
1095 ac_init_help=long ;;
1096 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097 ac_init_help=recursive ;;
1098 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099 ac_init_help=short ;;
1100
1101 -host | --host | --hos | --ho)
1102 ac_prev=host_alias ;;
1103 -host=* | --host=* | --hos=* | --ho=*)
1104 host_alias=$ac_optarg ;;
1105
1106 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107 ac_prev=htmldir ;;
1108 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109 | --ht=*)
1110 htmldir=$ac_optarg ;;
1111
1112 -includedir | --includedir | --includedi | --included | --include \
1113 | --includ | --inclu | --incl | --inc)
1114 ac_prev=includedir ;;
1115 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116 | --includ=* | --inclu=* | --incl=* | --inc=*)
1117 includedir=$ac_optarg ;;
1118
1119 -infodir | --infodir | --infodi | --infod | --info | --inf)
1120 ac_prev=infodir ;;
1121 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122 infodir=$ac_optarg ;;
1123
1124 -libdir | --libdir | --libdi | --libd)
1125 ac_prev=libdir ;;
1126 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127 libdir=$ac_optarg ;;
1128
1129 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130 | --libexe | --libex | --libe)
1131 ac_prev=libexecdir ;;
1132 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133 | --libexe=* | --libex=* | --libe=*)
1134 libexecdir=$ac_optarg ;;
1135
1136 -localedir | --localedir | --localedi | --localed | --locale)
1137 ac_prev=localedir ;;
1138 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139 localedir=$ac_optarg ;;
1140
1141 -localstatedir | --localstatedir | --localstatedi | --localstated \
1142 | --localstate | --localstat | --localsta | --localst | --locals)
1143 ac_prev=localstatedir ;;
1144 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146 localstatedir=$ac_optarg ;;
1147
1148 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149 ac_prev=mandir ;;
1150 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151 mandir=$ac_optarg ;;
1152
1153 -nfp | --nfp | --nf)
1154 # Obsolete; use --without-fp.
1155 with_fp=no ;;
1156
1157 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158 | --no-cr | --no-c | -n)
1159 no_create=yes ;;
1160
1161 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163 no_recursion=yes ;;
1164
1165 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167 | --oldin | --oldi | --old | --ol | --o)
1168 ac_prev=oldincludedir ;;
1169 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172 oldincludedir=$ac_optarg ;;
1173
1174 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175 ac_prev=prefix ;;
1176 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177 prefix=$ac_optarg ;;
1178
1179 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180 | --program-pre | --program-pr | --program-p)
1181 ac_prev=program_prefix ;;
1182 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184 program_prefix=$ac_optarg ;;
1185
1186 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187 | --program-suf | --program-su | --program-s)
1188 ac_prev=program_suffix ;;
1189 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191 program_suffix=$ac_optarg ;;
1192
1193 -program-transform-name | --program-transform-name \
1194 | --program-transform-nam | --program-transform-na \
1195 | --program-transform-n | --program-transform- \
1196 | --program-transform | --program-transfor \
1197 | --program-transfo | --program-transf \
1198 | --program-trans | --program-tran \
1199 | --progr-tra | --program-tr | --program-t)
1200 ac_prev=program_transform_name ;;
1201 -program-transform-name=* | --program-transform-name=* \
1202 | --program-transform-nam=* | --program-transform-na=* \
1203 | --program-transform-n=* | --program-transform-=* \
1204 | --program-transform=* | --program-transfor=* \
1205 | --program-transfo=* | --program-transf=* \
1206 | --program-trans=* | --program-tran=* \
1207 | --progr-tra=* | --program-tr=* | --program-t=*)
1208 program_transform_name=$ac_optarg ;;
1209
1210 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211 ac_prev=pdfdir ;;
1212 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213 pdfdir=$ac_optarg ;;
1214
1215 -psdir | --psdir | --psdi | --psd | --ps)
1216 ac_prev=psdir ;;
1217 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218 psdir=$ac_optarg ;;
1219
1220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221 | -silent | --silent | --silen | --sile | --sil)
1222 silent=yes ;;
1223
1224 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225 ac_prev=sbindir ;;
1226 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227 | --sbi=* | --sb=*)
1228 sbindir=$ac_optarg ;;
1229
1230 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232 | --sharedst | --shareds | --shared | --share | --shar \
1233 | --sha | --sh)
1234 ac_prev=sharedstatedir ;;
1235 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238 | --sha=* | --sh=*)
1239 sharedstatedir=$ac_optarg ;;
1240
1241 -site | --site | --sit)
1242 ac_prev=site ;;
1243 -site=* | --site=* | --sit=*)
1244 site=$ac_optarg ;;
1245
1246 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247 ac_prev=srcdir ;;
1248 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249 srcdir=$ac_optarg ;;
1250
1251 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252 | --syscon | --sysco | --sysc | --sys | --sy)
1253 ac_prev=sysconfdir ;;
1254 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256 sysconfdir=$ac_optarg ;;
1257
1258 -target | --target | --targe | --targ | --tar | --ta | --t)
1259 ac_prev=target_alias ;;
1260 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261 target_alias=$ac_optarg ;;
1262
1263 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264 verbose=yes ;;
1265
1266 -version | --version | --versio | --versi | --vers | -V)
1267 ac_init_version=: ;;
1268
1269 -with-* | --with-*)
1270 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1274 { (exit 1); exit 1; }; }
1275 ac_useropt_orig=$ac_useropt
1276 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277 case $ac_user_opts in
1278 *"
1279 "with_$ac_useropt"
1280 "*) ;;
1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1282 ac_unrecognized_sep=', ';;
1283 esac
1284 eval with_$ac_useropt=\$ac_optarg ;;
1285
1286 -without-* | --without-*)
1287 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1291 { (exit 1); exit 1; }; }
1292 ac_useropt_orig=$ac_useropt
1293 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294 case $ac_user_opts in
1295 *"
1296 "with_$ac_useropt"
1297 "*) ;;
1298 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1299 ac_unrecognized_sep=', ';;
1300 esac
1301 eval with_$ac_useropt=no ;;
1302
1303 --x)
1304 # Obsolete; use --with-x.
1305 with_x=yes ;;
1306
1307 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1308 | --x-incl | --x-inc | --x-in | --x-i)
1309 ac_prev=x_includes ;;
1310 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1311 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1312 x_includes=$ac_optarg ;;
1313
1314 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1315 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1316 ac_prev=x_libraries ;;
1317 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1318 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1319 x_libraries=$ac_optarg ;;
1320
1321 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1322 Try \`$0 --help' for more information." >&2
1323 { (exit 1); exit 1; }; }
1324 ;;
1325
1326 *=*)
1327 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1328 # Reject names that are not valid shell variable names.
1329 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1330 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1331 { (exit 1); exit 1; }; }
1332 eval $ac_envvar=\$ac_optarg
1333 export $ac_envvar ;;
1334
1335 *)
1336 # FIXME: should be removed in autoconf 3.0.
1337 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1338 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1339 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1340 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1341 ;;
1342
1343 esac
1344 done
1345
1346 if test -n "$ac_prev"; then
1347 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1348 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1349 { (exit 1); exit 1; }; }
1350 fi
1351
1352 if test -n "$ac_unrecognized_opts"; then
1353 case $enable_option_checking in
1354 no) ;;
1355 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1356 { (exit 1); exit 1; }; } ;;
1357 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1358 esac
1359 fi
1360
1361 # Check all directory arguments for consistency.
1362 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363 datadir sysconfdir sharedstatedir localstatedir includedir \
1364 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365 libdir localedir mandir
1366 do
1367 eval ac_val=\$$ac_var
1368 # Remove trailing slashes.
1369 case $ac_val in
1370 */ )
1371 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372 eval $ac_var=\$ac_val;;
1373 esac
1374 # Be sure to have absolute directory names.
1375 case $ac_val in
1376 [\\/$]* | ?:[\\/]* ) continue;;
1377 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378 esac
1379 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1380 { (exit 1); exit 1; }; }
1381 done
1382
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1386 build=$build_alias
1387 host=$host_alias
1388 target=$target_alias
1389
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x; then
1392 if test "x$build_alias" = x; then
1393 cross_compiling=maybe
1394 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1395 If a cross compiler is detected then cross compile mode will be used." >&2
1396 elif test "x$build_alias" != "x$host_alias"; then
1397 cross_compiling=yes
1398 fi
1399 fi
1400
1401 ac_tool_prefix=
1402 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403
1404 test "$silent" = yes && exec 6>/dev/null
1405
1406
1407 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di=`ls -di .` &&
1409 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1411 { (exit 1); exit 1; }; }
1412 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1413 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1414 { (exit 1); exit 1; }; }
1415
1416
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419 ac_srcdir_defaulted=yes
1420 # Try the directory containing this script, then the parent directory.
1421 ac_confdir=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423 X"$as_myself" : 'X\(//\)[^/]' \| \
1424 X"$as_myself" : 'X\(//\)$' \| \
1425 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1428 s//\1/
1429 q
1430 }
1431 /^X\(\/\/\)[^/].*/{
1432 s//\1/
1433 q
1434 }
1435 /^X\(\/\/\)$/{
1436 s//\1/
1437 q
1438 }
1439 /^X\(\/\).*/{
1440 s//\1/
1441 q
1442 }
1443 s/.*/./; q'`
1444 srcdir=$ac_confdir
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446 srcdir=..
1447 fi
1448 else
1449 ac_srcdir_defaulted=no
1450 fi
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1453 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1454 { (exit 1); exit 1; }; }
1455 fi
1456 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1457 ac_abs_confdir=`(
1458 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1459 { (exit 1); exit 1; }; }
1460 pwd)`
1461 # When building in place, set srcdir=.
1462 if test "$ac_abs_confdir" = "$ac_pwd"; then
1463 srcdir=.
1464 fi
1465 # Remove unnecessary trailing slashes from srcdir.
1466 # Double slashes in file names in object file debugging info
1467 # mess up M-x gdb in Emacs.
1468 case $srcdir in
1469 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1470 esac
1471 for ac_var in $ac_precious_vars; do
1472 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_env_${ac_var}_value=\$${ac_var}
1474 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1476 done
1477
1478 #
1479 # Report the --help message.
1480 #
1481 if test "$ac_init_help" = "long"; then
1482 # Omit some internal or obsolete options to make the list less imposing.
1483 # This message is too long to be a string in the A/UX 3.1 sh.
1484 cat <<_ACEOF
1485 \`configure' configures LinPac 0.28 to adapt to many kinds of systems.
1486
1487 Usage: $0 [OPTION]... [VAR=VALUE]...
1488
1489 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1490 VAR=VALUE. See below for descriptions of some of the useful variables.
1491
1492 Defaults for the options are specified in brackets.
1493
1494 Configuration:
1495 -h, --help display this help and exit
1496 --help=short display options specific to this package
1497 --help=recursive display the short help of all the included packages
1498 -V, --version display version information and exit
1499 -q, --quiet, --silent do not print \`checking...' messages
1500 --cache-file=FILE cache test results in FILE [disabled]
1501 -C, --config-cache alias for \`--cache-file=config.cache'
1502 -n, --no-create do not create output files
1503 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1504
1505 Installation directories:
1506 --prefix=PREFIX install architecture-independent files in PREFIX
1507 [$ac_default_prefix]
1508 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1509 [PREFIX]
1510
1511 By default, \`make install' will install all the files in
1512 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1513 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1514 for instance \`--prefix=\$HOME'.
1515
1516 For better control, use the options below.
1517
1518 Fine tuning of the installation directories:
1519 --bindir=DIR user executables [EPREFIX/bin]
1520 --sbindir=DIR system admin executables [EPREFIX/sbin]
1521 --libexecdir=DIR program executables [EPREFIX/libexec]
1522 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1523 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1524 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1525 --libdir=DIR object code libraries [EPREFIX/lib]
1526 --includedir=DIR C header files [PREFIX/include]
1527 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1528 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1529 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1530 --infodir=DIR info documentation [DATAROOTDIR/info]
1531 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1532 --mandir=DIR man documentation [DATAROOTDIR/man]
1533 --docdir=DIR documentation root [DATAROOTDIR/doc/linpac]
1534 --htmldir=DIR html documentation [DOCDIR]
1535 --dvidir=DIR dvi documentation [DOCDIR]
1536 --pdfdir=DIR pdf documentation [DOCDIR]
1537 --psdir=DIR ps documentation [DOCDIR]
1538 _ACEOF
1539
1540 cat <<\_ACEOF
1541
1542 Program names:
1543 --program-prefix=PREFIX prepend PREFIX to installed program names
1544 --program-suffix=SUFFIX append SUFFIX to installed program names
1545 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1546
1547 System types:
1548 --build=BUILD configure for building on BUILD [guessed]
1549 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1550 _ACEOF
1551 fi
1552
1553 if test -n "$ac_init_help"; then
1554 case $ac_init_help in
1555 short | recursive ) echo "Configuration of LinPac 0.28:";;
1556 esac
1557 cat <<\_ACEOF
1558
1559 Optional Features:
1560 --disable-option-checking ignore unrecognized --enable/--with options
1561 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1562 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1563 --enable-shared[=PKGS] build shared libraries [default=yes]
1564 --enable-static[=PKGS] build static libraries [default=yes]
1565 --enable-fast-install[=PKGS]
1566 optimize for fast installation [default=yes]
1567 --disable-libtool-lock avoid locking (might break parallel builds)
1568 --disable-dependency-tracking speeds up one-time build
1569 --enable-dependency-tracking do not reject slow dependency extractors
1570 Use --enable-LINKSTATIC for static linking
1571
1572 Optional Packages:
1573 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1574 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1575 --with-pic try to use only PIC/non-PIC objects [default=use
1576 both]
1577 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1578
1579 Some influential environment variables:
1580 CC C compiler command
1581 CFLAGS C compiler flags
1582 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1583 nonstandard directory <lib dir>
1584 LIBS libraries to pass to the linker, e.g. -l<library>
1585 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1586 you have headers in a nonstandard directory <include dir>
1587 CPP C preprocessor
1588 CXX C++ compiler command
1589 CXXFLAGS C++ compiler flags
1590 CXXCPP C++ preprocessor
1591
1592 Use these variables to override the choices made by `configure' or to help
1593 it to find libraries and programs with nonstandard names/locations.
1594
1595 Report bugs to <[email protected] >.
1596 _ACEOF
1597 ac_status=$?
1598 fi
1599
1600 if test "$ac_init_help" = "recursive"; then
1601 # If there are subdirs, report their specific --help.
1602 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1603 test -d "$ac_dir" ||
1604 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1605 continue
1606 ac_builddir=.
1607
1608 case "$ac_dir" in
1609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 *)
1611 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1612 # A ".." for each directory in $ac_dir_suffix.
1613 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1614 case $ac_top_builddir_sub in
1615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617 esac ;;
1618 esac
1619 ac_abs_top_builddir=$ac_pwd
1620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621 # for backward compatibility:
1622 ac_top_builddir=$ac_top_build_prefix
1623
1624 case $srcdir in
1625 .) # We are building in place.
1626 ac_srcdir=.
1627 ac_top_srcdir=$ac_top_builddir_sub
1628 ac_abs_top_srcdir=$ac_pwd ;;
1629 [\\/]* | ?:[\\/]* ) # Absolute name.
1630 ac_srcdir=$srcdir$ac_dir_suffix;
1631 ac_top_srcdir=$srcdir
1632 ac_abs_top_srcdir=$srcdir ;;
1633 *) # Relative name.
1634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635 ac_top_srcdir=$ac_top_build_prefix$srcdir
1636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637 esac
1638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639
1640 cd "$ac_dir" || { ac_status=$?; continue; }
1641 # Check for guested configure.
1642 if test -f "$ac_srcdir/configure.gnu"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645 elif test -f "$ac_srcdir/configure"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure" --help=recursive
1648 else
1649 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650 fi || ac_status=$?
1651 cd "$ac_pwd" || { ac_status=$?; break; }
1652 done
1653 fi
1654
1655 test -n "$ac_init_help" && exit $ac_status
1656 if $ac_init_version; then
1657 cat <<\_ACEOF
1658 LinPac configure 0.28
1659 generated by GNU Autoconf 2.63
1660
1661 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1662 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1663 This configure script is free software; the Free Software Foundation
1664 gives unlimited permission to copy, distribute and modify it.
1665 _ACEOF
1666 exit
1667 fi
1668 cat >config.log <<_ACEOF
1669 This file contains any messages produced by compilers while
1670 running configure, to aid debugging if configure makes a mistake.
1671
1672 It was created by LinPac $as_me 0.28, which was
1673 generated by GNU Autoconf 2.63. Invocation command line was
1674
1675 $ $0 $@
1676
1677 _ACEOF
1678 exec 5>>config.log
1679 {
1680 cat <<_ASUNAME
1681 ## --------- ##
1682 ## Platform. ##
1683 ## --------- ##
1684
1685 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1686 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1687 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1688 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1689 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1690
1691 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1692 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1693
1694 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1695 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1696 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1697 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1698 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1699 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1700 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1701
1702 _ASUNAME
1703
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1706 do
1707 IFS=$as_save_IFS
1708 test -z "$as_dir" && as_dir=.
1709 $as_echo "PATH: $as_dir"
1710 done
1711 IFS=$as_save_IFS
1712
1713 } >&5
1714
1715 cat >&5 <<_ACEOF
1716
1717
1718 ## ----------- ##
1719 ## Core tests. ##
1720 ## ----------- ##
1721
1722 _ACEOF
1723
1724
1725 # Keep a trace of the command line.
1726 # Strip out --no-create and --no-recursion so they do not pile up.
1727 # Strip out --silent because we don't want to record it for future runs.
1728 # Also quote any args containing shell meta-characters.
1729 # Make two passes to allow for proper duplicate-argument suppression.
1730 ac_configure_args=
1731 ac_configure_args0=
1732 ac_configure_args1=
1733 ac_must_keep_next=false
1734 for ac_pass in 1 2
1735 do
1736 for ac_arg
1737 do
1738 case $ac_arg in
1739 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1740 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1741 | -silent | --silent | --silen | --sile | --sil)
1742 continue ;;
1743 *\'*)
1744 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1745 esac
1746 case $ac_pass in
1747 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1748 2)
1749 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1750 if test $ac_must_keep_next = true; then
1751 ac_must_keep_next=false # Got value, back to normal.
1752 else
1753 case $ac_arg in
1754 *=* | --config-cache | -C | -disable-* | --disable-* \
1755 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1756 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1757 | -with-* | --with-* | -without-* | --without-* | --x)
1758 case "$ac_configure_args0 " in
1759 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1760 esac
1761 ;;
1762 -* ) ac_must_keep_next=true ;;
1763 esac
1764 fi
1765 ac_configure_args="$ac_configure_args '$ac_arg'"
1766 ;;
1767 esac
1768 done
1769 done
1770 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1771 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1772
1773 # When interrupted or exit'd, cleanup temporary files, and complete
1774 # config.log. We remove comments because anyway the quotes in there
1775 # would cause problems or look ugly.
1776 # WARNING: Use '\'' to represent an apostrophe within the trap.
1777 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1778 trap 'exit_status=$?
1779 # Save into config.log some information that might help in debugging.
1780 {
1781 echo
1782
1783 cat <<\_ASBOX
1784 ## ---------------- ##
1785 ## Cache variables. ##
1786 ## ---------------- ##
1787 _ASBOX
1788 echo
1789 # The following way of writing the cache mishandles newlines in values,
1790 (
1791 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1792 eval ac_val=\$$ac_var
1793 case $ac_val in #(
1794 *${as_nl}*)
1795 case $ac_var in #(
1796 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1797 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1798 esac
1799 case $ac_var in #(
1800 _ | IFS | as_nl) ;; #(
1801 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1802 *) $as_unset $ac_var ;;
1803 esac ;;
1804 esac
1805 done
1806 (set) 2>&1 |
1807 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1808 *${as_nl}ac_space=\ *)
1809 sed -n \
1810 "s/'\''/'\''\\\\'\'''\''/g;
1811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1812 ;; #(
1813 *)
1814 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1815 ;;
1816 esac |
1817 sort
1818 )
1819 echo
1820
1821 cat <<\_ASBOX
1822 ## ----------------- ##
1823 ## Output variables. ##
1824 ## ----------------- ##
1825 _ASBOX
1826 echo
1827 for ac_var in $ac_subst_vars
1828 do
1829 eval ac_val=\$$ac_var
1830 case $ac_val in
1831 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1832 esac
1833 $as_echo "$ac_var='\''$ac_val'\''"
1834 done | sort
1835 echo
1836
1837 if test -n "$ac_subst_files"; then
1838 cat <<\_ASBOX
1839 ## ------------------- ##
1840 ## File substitutions. ##
1841 ## ------------------- ##
1842 _ASBOX
1843 echo
1844 for ac_var in $ac_subst_files
1845 do
1846 eval ac_val=\$$ac_var
1847 case $ac_val in
1848 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1849 esac
1850 $as_echo "$ac_var='\''$ac_val'\''"
1851 done | sort
1852 echo
1853 fi
1854
1855 if test -s confdefs.h; then
1856 cat <<\_ASBOX
1857 ## ----------- ##
1858 ## confdefs.h. ##
1859 ## ----------- ##
1860 _ASBOX
1861 echo
1862 cat confdefs.h
1863 echo
1864 fi
1865 test "$ac_signal" != 0 &&
1866 $as_echo "$as_me: caught signal $ac_signal"
1867 $as_echo "$as_me: exit $exit_status"
1868 } >&5
1869 rm -f core *.core core.conftest.* &&
1870 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1871 exit $exit_status
1872 ' 0
1873 for ac_signal in 1 2 13 15; do
1874 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1875 done
1876 ac_signal=0
1877
1878 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1879 rm -f -r conftest* confdefs.h
1880
1881 # Predefined preprocessor variables.
1882
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_NAME "$PACKAGE_NAME"
1885 _ACEOF
1886
1887
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1890 _ACEOF
1891
1892
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1895 _ACEOF
1896
1897
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_STRING "$PACKAGE_STRING"
1900 _ACEOF
1901
1902
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1905 _ACEOF
1906
1907
1908 # Let the site file select an alternate cache file if it wants to.
1909 # Prefer an explicitly selected file to automatically selected ones.
1910 ac_site_file1=NONE
1911 ac_site_file2=NONE
1912 if test -n "$CONFIG_SITE"; then
1913 ac_site_file1=$CONFIG_SITE
1914 elif test "x$prefix" != xNONE; then
1915 ac_site_file1=$prefix/share/config.site
1916 ac_site_file2=$prefix/etc/config.site
1917 else
1918 ac_site_file1=$ac_default_prefix/share/config.site
1919 ac_site_file2=$ac_default_prefix/etc/config.site
1920 fi
1921 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1922 do
1923 test "x$ac_site_file" = xNONE && continue
1924 if test -r "$ac_site_file"; then
1925 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1926 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1927 sed 's/^/| /' "$ac_site_file" >&5
1928 . "$ac_site_file"
1929 fi
1930 done
1931
1932 if test -r "$cache_file"; then
1933 # Some versions of bash will fail to source /dev/null (special
1934 # files actually), so we avoid doing that.
1935 if test -f "$cache_file"; then
1936 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1937 $as_echo "$as_me: loading cache $cache_file" >&6;}
1938 case $cache_file in
1939 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1940 *) . "./$cache_file";;
1941 esac
1942 fi
1943 else
1944 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1945 $as_echo "$as_me: creating cache $cache_file" >&6;}
1946 >$cache_file
1947 fi
1948
1949 # Check that the precious variables saved in the cache have kept the same
1950 # value.
1951 ac_cache_corrupted=false
1952 for ac_var in $ac_precious_vars; do
1953 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1954 eval ac_new_set=\$ac_env_${ac_var}_set
1955 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1956 eval ac_new_val=\$ac_env_${ac_var}_value
1957 case $ac_old_set,$ac_new_set in
1958 set,)
1959 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1960 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1961 ac_cache_corrupted=: ;;
1962 ,set)
1963 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1964 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1965 ac_cache_corrupted=: ;;
1966 ,);;
1967 *)
1968 if test "x$ac_old_val" != "x$ac_new_val"; then
1969 # differences in whitespace do not lead to failure.
1970 ac_old_val_w=`echo x $ac_old_val`
1971 ac_new_val_w=`echo x $ac_new_val`
1972 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1973 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1974 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1975 ac_cache_corrupted=:
1976 else
1977 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1978 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1979 eval $ac_var=\$ac_old_val
1980 fi
1981 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1982 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1983 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1984 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1985 fi;;
1986 esac
1987 # Pass precious variables to config.status.
1988 if test "$ac_new_set" = set; then
1989 case $ac_new_val in
1990 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1991 *) ac_arg=$ac_var=$ac_new_val ;;
1992 esac
1993 case " $ac_configure_args " in
1994 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1995 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1996 esac
1997 fi
1998 done
1999 if $ac_cache_corrupted; then
2000 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2002 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2003 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2004 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2005 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2006 { (exit 1); exit 1; }; }
2007 fi
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033 ac_ext=c
2034 ac_cpp='$CPP $CPPFLAGS'
2035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2038
2039
2040
2041
2042 ac_aux_dir=
2043 for ac_dir in build-aux "$srcdir"/build-aux; do
2044 if test -f "$ac_dir/install-sh"; then
2045 ac_aux_dir=$ac_dir
2046 ac_install_sh="$ac_aux_dir/install-sh -c"
2047 break
2048 elif test -f "$ac_dir/install.sh"; then
2049 ac_aux_dir=$ac_dir
2050 ac_install_sh="$ac_aux_dir/install.sh -c"
2051 break
2052 elif test -f "$ac_dir/shtool"; then
2053 ac_aux_dir=$ac_dir
2054 ac_install_sh="$ac_aux_dir/shtool install -c"
2055 break
2056 fi
2057 done
2058 if test -z "$ac_aux_dir"; then
2059 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2060 $as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2061 { (exit 1); exit 1; }; }
2062 fi
2063
2064 # These three variables are undocumented and unsupported,
2065 # and are intended to be withdrawn in a future Autoconf release.
2066 # They can cause serious problems if a builder's source tree is in a directory
2067 # whose full name contains unusual characters.
2068 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2069 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2070 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2071
2072
2073 ## See https://bugzilla.redhat.com/show_bug.cgi?id=901333 for more
2074 ## information about the AC_CONFIG_MACRO_DIR
2075
2076
2077 ## Required to allow running on both autoconf 2.69 (ubuntu 14.04) as well as 2.63 (centos 6.5)
2078
2079 case `pwd` in
2080 *\ * | *\ *)
2081 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2082 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2083 esac
2084
2085
2086
2087 macro_version='2.2.6b'
2088 macro_revision='1.3017'
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102 ltmain="$ac_aux_dir/ltmain.sh"
2103
2104 # Make sure we can run config.sub.
2105 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2106 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2107 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2108 { (exit 1); exit 1; }; }
2109
2110 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2111 $as_echo_n "checking build system type... " >&6; }
2112 if test "${ac_cv_build+set}" = set; then
2113 $as_echo_n "(cached) " >&6
2114 else
2115 ac_build_alias=$build_alias
2116 test "x$ac_build_alias" = x &&
2117 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2118 test "x$ac_build_alias" = x &&
2119 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2120 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2121 { (exit 1); exit 1; }; }
2122 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2123 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2124 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2125 { (exit 1); exit 1; }; }
2126
2127 fi
2128 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2129 $as_echo "$ac_cv_build" >&6; }
2130 case $ac_cv_build in
2131 *-*-*) ;;
2132 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2133 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2134 { (exit 1); exit 1; }; };;
2135 esac
2136 build=$ac_cv_build
2137 ac_save_IFS=$IFS; IFS='-'
2138 set x $ac_cv_build
2139 shift
2140 build_cpu=$1
2141 build_vendor=$2
2142 shift; shift
2143 # Remember, the first character of IFS is used to create $*,
2144 # except with old shells:
2145 build_os=$*
2146 IFS=$ac_save_IFS
2147 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2148
2149
2150 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2151 $as_echo_n "checking host system type... " >&6; }
2152 if test "${ac_cv_host+set}" = set; then
2153 $as_echo_n "(cached) " >&6
2154 else
2155 if test "x$host_alias" = x; then
2156 ac_cv_host=$ac_cv_build
2157 else
2158 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2159 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2160 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2161 { (exit 1); exit 1; }; }
2162 fi
2163
2164 fi
2165 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2166 $as_echo "$ac_cv_host" >&6; }
2167 case $ac_cv_host in
2168 *-*-*) ;;
2169 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2170 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2171 { (exit 1); exit 1; }; };;
2172 esac
2173 host=$ac_cv_host
2174 ac_save_IFS=$IFS; IFS='-'
2175 set x $ac_cv_host
2176 shift
2177 host_cpu=$1
2178 host_vendor=$2
2179 shift; shift
2180 # Remember, the first character of IFS is used to create $*,
2181 # except with old shells:
2182 host_os=$*
2183 IFS=$ac_save_IFS
2184 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2185
2186
2187 ac_ext=c
2188 ac_cpp='$CPP $CPPFLAGS'
2189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2192 if test -n "$ac_tool_prefix"; then
2193 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2194 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2195 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2196 $as_echo_n "checking for $ac_word... " >&6; }
2197 if test "${ac_cv_prog_CC+set}" = set; then
2198 $as_echo_n "(cached) " >&6
2199 else
2200 if test -n "$CC"; then
2201 ac_cv_prog_CC="$CC" # Let the user override the test.
2202 else
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 for as_dir in $PATH
2205 do
2206 IFS=$as_save_IFS
2207 test -z "$as_dir" && as_dir=.
2208 for ac_exec_ext in '' $ac_executable_extensions; do
2209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2210 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2211 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212 break 2
2213 fi
2214 done
2215 done
2216 IFS=$as_save_IFS
2217
2218 fi
2219 fi
2220 CC=$ac_cv_prog_CC
2221 if test -n "$CC"; then
2222 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2223 $as_echo "$CC" >&6; }
2224 else
2225 { $as_echo "$as_me:$LINENO: result: no" >&5
2226 $as_echo "no" >&6; }
2227 fi
2228
2229
2230 fi
2231 if test -z "$ac_cv_prog_CC"; then
2232 ac_ct_CC=$CC
2233 # Extract the first word of "gcc", so it can be a program name with args.
2234 set dummy gcc; ac_word=$2
2235 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2236 $as_echo_n "checking for $ac_word... " >&6; }
2237 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2238 $as_echo_n "(cached) " >&6
2239 else
2240 if test -n "$ac_ct_CC"; then
2241 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2242 else
2243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 for as_dir in $PATH
2245 do
2246 IFS=$as_save_IFS
2247 test -z "$as_dir" && as_dir=.
2248 for ac_exec_ext in '' $ac_executable_extensions; do
2249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2250 ac_cv_prog_ac_ct_CC="gcc"
2251 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2252 break 2
2253 fi
2254 done
2255 done
2256 IFS=$as_save_IFS
2257
2258 fi
2259 fi
2260 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2261 if test -n "$ac_ct_CC"; then
2262 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2263 $as_echo "$ac_ct_CC" >&6; }
2264 else
2265 { $as_echo "$as_me:$LINENO: result: no" >&5
2266 $as_echo "no" >&6; }
2267 fi
2268
2269 if test "x$ac_ct_CC" = x; then
2270 CC=""
2271 else
2272 case $cross_compiling:$ac_tool_warned in
2273 yes:)
2274 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2276 ac_tool_warned=yes ;;
2277 esac
2278 CC=$ac_ct_CC
2279 fi
2280 else
2281 CC="$ac_cv_prog_CC"
2282 fi
2283
2284 if test -z "$CC"; then
2285 if test -n "$ac_tool_prefix"; then
2286 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2287 set dummy ${ac_tool_prefix}cc; ac_word=$2
2288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 $as_echo_n "checking for $ac_word... " >&6; }
2290 if test "${ac_cv_prog_CC+set}" = set; then
2291 $as_echo_n "(cached) " >&6
2292 else
2293 if test -n "$CC"; then
2294 ac_cv_prog_CC="$CC" # Let the user override the test.
2295 else
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 for as_dir in $PATH
2298 do
2299 IFS=$as_save_IFS
2300 test -z "$as_dir" && as_dir=.
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2303 ac_cv_prog_CC="${ac_tool_prefix}cc"
2304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 break 2
2306 fi
2307 done
2308 done
2309 IFS=$as_save_IFS
2310
2311 fi
2312 fi
2313 CC=$ac_cv_prog_CC
2314 if test -n "$CC"; then
2315 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2316 $as_echo "$CC" >&6; }
2317 else
2318 { $as_echo "$as_me:$LINENO: result: no" >&5
2319 $as_echo "no" >&6; }
2320 fi
2321
2322
2323 fi
2324 fi
2325 if test -z "$CC"; then
2326 # Extract the first word of "cc", so it can be a program name with args.
2327 set dummy cc; ac_word=$2
2328 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 $as_echo_n "checking for $ac_word... " >&6; }
2330 if test "${ac_cv_prog_CC+set}" = set; then
2331 $as_echo_n "(cached) " >&6
2332 else
2333 if test -n "$CC"; then
2334 ac_cv_prog_CC="$CC" # Let the user override the test.
2335 else
2336 ac_prog_rejected=no
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 for as_dir in $PATH
2339 do
2340 IFS=$as_save_IFS
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2344 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2345 ac_prog_rejected=yes
2346 continue
2347 fi
2348 ac_cv_prog_CC="cc"
2349 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350 break 2
2351 fi
2352 done
2353 done
2354 IFS=$as_save_IFS
2355
2356 if test $ac_prog_rejected = yes; then
2357 # We found a bogon in the path, so make sure we never use it.
2358 set dummy $ac_cv_prog_CC
2359 shift
2360 if test $# != 0; then
2361 # We chose a different compiler from the bogus one.
2362 # However, it has the same basename, so the bogon will be chosen
2363 # first if we set CC to just the basename; use the full file name.
2364 shift
2365 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2366 fi
2367 fi
2368 fi
2369 fi
2370 CC=$ac_cv_prog_CC
2371 if test -n "$CC"; then
2372 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2373 $as_echo "$CC" >&6; }
2374 else
2375 { $as_echo "$as_me:$LINENO: result: no" >&5
2376 $as_echo "no" >&6; }
2377 fi
2378
2379
2380 fi
2381 if test -z "$CC"; then
2382 if test -n "$ac_tool_prefix"; then
2383 for ac_prog in cl.exe
2384 do
2385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 $as_echo_n "checking for $ac_word... " >&6; }
2389 if test "${ac_cv_prog_CC+set}" = set; then
2390 $as_echo_n "(cached) " >&6
2391 else
2392 if test -n "$CC"; then
2393 ac_cv_prog_CC="$CC" # Let the user override the test.
2394 else
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2397 do
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2403 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 break 2
2405 fi
2406 done
2407 done
2408 IFS=$as_save_IFS
2409
2410 fi
2411 fi
2412 CC=$ac_cv_prog_CC
2413 if test -n "$CC"; then
2414 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2415 $as_echo "$CC" >&6; }
2416 else
2417 { $as_echo "$as_me:$LINENO: result: no" >&5
2418 $as_echo "no" >&6; }
2419 fi
2420
2421
2422 test -n "$CC" && break
2423 done
2424 fi
2425 if test -z "$CC"; then
2426 ac_ct_CC=$CC
2427 for ac_prog in cl.exe
2428 do
2429 # Extract the first word of "$ac_prog", so it can be a program name with args.
2430 set dummy $ac_prog; ac_word=$2
2431 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 $as_echo_n "checking for $ac_word... " >&6; }
2433 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2434 $as_echo_n "(cached) " >&6
2435 else
2436 if test -n "$ac_ct_CC"; then
2437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2438 else
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 for as_dir in $PATH
2441 do
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2446 ac_cv_prog_ac_ct_CC="$ac_prog"
2447 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 break 2
2449 fi
2450 done
2451 done
2452 IFS=$as_save_IFS
2453
2454 fi
2455 fi
2456 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2457 if test -n "$ac_ct_CC"; then
2458 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2459 $as_echo "$ac_ct_CC" >&6; }
2460 else
2461 { $as_echo "$as_me:$LINENO: result: no" >&5
2462 $as_echo "no" >&6; }
2463 fi
2464
2465
2466 test -n "$ac_ct_CC" && break
2467 done
2468
2469 if test "x$ac_ct_CC" = x; then
2470 CC=""
2471 else
2472 case $cross_compiling:$ac_tool_warned in
2473 yes:)
2474 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2476 ac_tool_warned=yes ;;
2477 esac
2478 CC=$ac_ct_CC
2479 fi
2480 fi
2481
2482 fi
2483
2484
2485 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2487 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2488 See \`config.log' for more details." >&5
2489 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2490 See \`config.log' for more details." >&2;}
2491 { (exit 1); exit 1; }; }; }
2492
2493 # Provide some information about the compiler.
2494 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2495 set X $ac_compile
2496 ac_compiler=$2
2497 { (ac_try="$ac_compiler --version >&5"
2498 case "(($ac_try" in
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;;
2501 esac
2502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2503 $as_echo "$ac_try_echo") >&5
2504 (eval "$ac_compiler --version >&5") 2>&5
2505 ac_status=$?
2506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }
2508 { (ac_try="$ac_compiler -v >&5"
2509 case "(($ac_try" in
2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2512 esac
2513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2514 $as_echo "$ac_try_echo") >&5
2515 (eval "$ac_compiler -v >&5") 2>&5
2516 ac_status=$?
2517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }
2519 { (ac_try="$ac_compiler -V >&5"
2520 case "(($ac_try" in
2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522 *) ac_try_echo=$ac_try;;
2523 esac
2524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2525 $as_echo "$ac_try_echo") >&5
2526 (eval "$ac_compiler -V >&5") 2>&5
2527 ac_status=$?
2528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }
2530
2531 cat >conftest.$ac_ext <<_ACEOF
2532 /* confdefs.h. */
2533 _ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h. */
2537
2538 int
2539 main ()
2540 {
2541
2542 ;
2543 return 0;
2544 }
2545 _ACEOF
2546 ac_clean_files_save=$ac_clean_files
2547 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2548 # Try to create an executable without -o first, disregard a.out.
2549 # It will help us diagnose broken compilers, and finding out an intuition
2550 # of exeext.
2551 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2552 $as_echo_n "checking for C compiler default output file name... " >&6; }
2553 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2554
2555 # The possible output files:
2556 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2557
2558 ac_rmfiles=
2559 for ac_file in $ac_files
2560 do
2561 case $ac_file in
2562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2563 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2564 esac
2565 done
2566 rm -f $ac_rmfiles
2567
2568 if { (ac_try="$ac_link_default"
2569 case "(($ac_try" in
2570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571 *) ac_try_echo=$ac_try;;
2572 esac
2573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2574 $as_echo "$ac_try_echo") >&5
2575 (eval "$ac_link_default") 2>&5
2576 ac_status=$?
2577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; then
2579 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2580 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2581 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2582 # so that the user can short-circuit this test for compilers unknown to
2583 # Autoconf.
2584 for ac_file in $ac_files ''
2585 do
2586 test -f "$ac_file" || continue
2587 case $ac_file in
2588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2589 ;;
2590 [ab].out )
2591 # We found the default executable, but exeext='' is most
2592 # certainly right.
2593 break;;
2594 *.* )
2595 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2596 then :; else
2597 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2598 fi
2599 # We set ac_cv_exeext here because the later test for it is not
2600 # safe: cross compilers may not add the suffix if given an `-o'
2601 # argument, so we may need to know it at that point already.
2602 # Even if this section looks crufty: it has the advantage of
2603 # actually working.
2604 break;;
2605 * )
2606 break;;
2607 esac
2608 done
2609 test "$ac_cv_exeext" = no && ac_cv_exeext=
2610
2611 else
2612 ac_file=''
2613 fi
2614
2615 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2616 $as_echo "$ac_file" >&6; }
2617 if test -z "$ac_file"; then
2618 $as_echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2620
2621 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2623 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2624 See \`config.log' for more details." >&5
2625 $as_echo "$as_me: error: C compiler cannot create executables
2626 See \`config.log' for more details." >&2;}
2627 { (exit 77); exit 77; }; }; }
2628 fi
2629
2630 ac_exeext=$ac_cv_exeext
2631
2632 # Check that the compiler produces executables we can run. If not, either
2633 # the compiler is broken, or we cross compile.
2634 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2635 $as_echo_n "checking whether the C compiler works... " >&6; }
2636 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2637 # If not cross compiling, check that we can run a simple program.
2638 if test "$cross_compiling" != yes; then
2639 if { ac_try='./$ac_file'
2640 { (case "(($ac_try" in
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2643 esac
2644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2645 $as_echo "$ac_try_echo") >&5
2646 (eval "$ac_try") 2>&5
2647 ac_status=$?
2648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; }; then
2650 cross_compiling=no
2651 else
2652 if test "$cross_compiling" = maybe; then
2653 cross_compiling=yes
2654 else
2655 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2657 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2658 If you meant to cross compile, use \`--host'.
2659 See \`config.log' for more details." >&5
2660 $as_echo "$as_me: error: cannot run C compiled programs.
2661 If you meant to cross compile, use \`--host'.
2662 See \`config.log' for more details." >&2;}
2663 { (exit 1); exit 1; }; }; }
2664 fi
2665 fi
2666 fi
2667 { $as_echo "$as_me:$LINENO: result: yes" >&5
2668 $as_echo "yes" >&6; }
2669
2670 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2671 ac_clean_files=$ac_clean_files_save
2672 # Check that the compiler produces executables we can run. If not, either
2673 # the compiler is broken, or we cross compile.
2674 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2675 $as_echo_n "checking whether we are cross compiling... " >&6; }
2676 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2677 $as_echo "$cross_compiling" >&6; }
2678
2679 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2680 $as_echo_n "checking for suffix of executables... " >&6; }
2681 if { (ac_try="$ac_link"
2682 case "(($ac_try" in
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2685 esac
2686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2687 $as_echo "$ac_try_echo") >&5
2688 (eval "$ac_link") 2>&5
2689 ac_status=$?
2690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; then
2692 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2693 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2694 # work properly (i.e., refer to `conftest.exe'), while it won't with
2695 # `rm'.
2696 for ac_file in conftest.exe conftest conftest.*; do
2697 test -f "$ac_file" || continue
2698 case $ac_file in
2699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2700 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2701 break;;
2702 * ) break;;
2703 esac
2704 done
2705 else
2706 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2708 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2709 See \`config.log' for more details." >&5
2710 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2711 See \`config.log' for more details." >&2;}
2712 { (exit 1); exit 1; }; }; }
2713 fi
2714
2715 rm -f conftest$ac_cv_exeext
2716 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2717 $as_echo "$ac_cv_exeext" >&6; }
2718
2719 rm -f conftest.$ac_ext
2720 EXEEXT=$ac_cv_exeext
2721 ac_exeext=$EXEEXT
2722 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2723 $as_echo_n "checking for suffix of object files... " >&6; }
2724 if test "${ac_cv_objext+set}" = set; then
2725 $as_echo_n "(cached) " >&6
2726 else
2727 cat >conftest.$ac_ext <<_ACEOF
2728 /* confdefs.h. */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h. */
2733
2734 int
2735 main ()
2736 {
2737
2738 ;
2739 return 0;
2740 }
2741 _ACEOF
2742 rm -f conftest.o conftest.obj
2743 if { (ac_try="$ac_compile"
2744 case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2747 esac
2748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2749 $as_echo "$ac_try_echo") >&5
2750 (eval "$ac_compile") 2>&5
2751 ac_status=$?
2752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; then
2754 for ac_file in conftest.o conftest.obj conftest.*; do
2755 test -f "$ac_file" || continue;
2756 case $ac_file in
2757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2758 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2759 break;;
2760 esac
2761 done
2762 else
2763 $as_echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2765
2766 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2768 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2769 See \`config.log' for more details." >&5
2770 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2771 See \`config.log' for more details." >&2;}
2772 { (exit 1); exit 1; }; }; }
2773 fi
2774
2775 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2776 fi
2777 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2778 $as_echo "$ac_cv_objext" >&6; }
2779 OBJEXT=$ac_cv_objext
2780 ac_objext=$OBJEXT
2781 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2782 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2783 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2784 $as_echo_n "(cached) " >&6
2785 else
2786 cat >conftest.$ac_ext <<_ACEOF
2787 /* confdefs.h. */
2788 _ACEOF
2789 cat confdefs.h >>conftest.$ac_ext
2790 cat >>conftest.$ac_ext <<_ACEOF
2791 /* end confdefs.h. */
2792
2793 int
2794 main ()
2795 {
2796 #ifndef __GNUC__
2797 choke me
2798 #endif
2799
2800 ;
2801 return 0;
2802 }
2803 _ACEOF
2804 rm -f conftest.$ac_objext
2805 if { (ac_try="$ac_compile"
2806 case "(($ac_try" in
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2809 esac
2810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2811 $as_echo "$ac_try_echo") >&5
2812 (eval "$ac_compile") 2>conftest.er1
2813 ac_status=$?
2814 grep -v '^ *+' conftest.er1 >conftest.err
2815 rm -f conftest.er1
2816 cat conftest.err >&5
2817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } && {
2819 test -z "$ac_c_werror_flag" ||
2820 test ! -s conftest.err
2821 } && test -s conftest.$ac_objext; then
2822 ac_compiler_gnu=yes
2823 else
2824 $as_echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2826
2827 ac_compiler_gnu=no
2828 fi
2829
2830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2831 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2832
2833 fi
2834 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2835 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2836 if test $ac_compiler_gnu = yes; then
2837 GCC=yes
2838 else
2839 GCC=
2840 fi
2841 ac_test_CFLAGS=${CFLAGS+set}
2842 ac_save_CFLAGS=$CFLAGS
2843 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2844 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2845 if test "${ac_cv_prog_cc_g+set}" = set; then
2846 $as_echo_n "(cached) " >&6
2847 else
2848 ac_save_c_werror_flag=$ac_c_werror_flag
2849 ac_c_werror_flag=yes
2850 ac_cv_prog_cc_g=no
2851 CFLAGS="-g"
2852 cat >conftest.$ac_ext <<_ACEOF
2853 /* confdefs.h. */
2854 _ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h. */
2858
2859 int
2860 main ()
2861 {
2862
2863 ;
2864 return 0;
2865 }
2866 _ACEOF
2867 rm -f conftest.$ac_objext
2868 if { (ac_try="$ac_compile"
2869 case "(($ac_try" in
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2872 esac
2873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2874 $as_echo "$ac_try_echo") >&5
2875 (eval "$ac_compile") 2>conftest.er1
2876 ac_status=$?
2877 grep -v '^ *+' conftest.er1 >conftest.err
2878 rm -f conftest.er1
2879 cat conftest.err >&5
2880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } && {
2882 test -z "$ac_c_werror_flag" ||
2883 test ! -s conftest.err
2884 } && test -s conftest.$ac_objext; then
2885 ac_cv_prog_cc_g=yes
2886 else
2887 $as_echo "$as_me: failed program was:" >&5
2888 sed 's/^/| /' conftest.$ac_ext >&5
2889
2890 CFLAGS=""
2891 cat >conftest.$ac_ext <<_ACEOF
2892 /* confdefs.h. */
2893 _ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h. */
2897
2898 int
2899 main ()
2900 {
2901
2902 ;
2903 return 0;
2904 }
2905 _ACEOF
2906 rm -f conftest.$ac_objext
2907 if { (ac_try="$ac_compile"
2908 case "(($ac_try" in
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2911 esac
2912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2913 $as_echo "$ac_try_echo") >&5
2914 (eval "$ac_compile") 2>conftest.er1
2915 ac_status=$?
2916 grep -v '^ *+' conftest.er1 >conftest.err
2917 rm -f conftest.er1
2918 cat conftest.err >&5
2919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); } && {
2921 test -z "$ac_c_werror_flag" ||
2922 test ! -s conftest.err
2923 } && test -s conftest.$ac_objext; then
2924 :
2925 else
2926 $as_echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2928
2929 ac_c_werror_flag=$ac_save_c_werror_flag
2930 CFLAGS="-g"
2931 cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h. */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2937
2938 int
2939 main ()
2940 {
2941
2942 ;
2943 return 0;
2944 }
2945 _ACEOF
2946 rm -f conftest.$ac_objext
2947 if { (ac_try="$ac_compile"
2948 case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951 esac
2952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2953 $as_echo "$ac_try_echo") >&5
2954 (eval "$ac_compile") 2>conftest.er1
2955 ac_status=$?
2956 grep -v '^ *+' conftest.er1 >conftest.err
2957 rm -f conftest.er1
2958 cat conftest.err >&5
2959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } && {
2961 test -z "$ac_c_werror_flag" ||
2962 test ! -s conftest.err
2963 } && test -s conftest.$ac_objext; then
2964 ac_cv_prog_cc_g=yes
2965 else
2966 $as_echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2968
2969
2970 fi
2971
2972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 fi
2974
2975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976 fi
2977
2978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979 ac_c_werror_flag=$ac_save_c_werror_flag
2980 fi
2981 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2982 $as_echo "$ac_cv_prog_cc_g" >&6; }
2983 if test "$ac_test_CFLAGS" = set; then
2984 CFLAGS=$ac_save_CFLAGS
2985 elif test $ac_cv_prog_cc_g = yes; then
2986 if test "$GCC" = yes; then
2987 CFLAGS="-g -O2"
2988 else
2989 CFLAGS="-g"
2990 fi
2991 else
2992 if test "$GCC" = yes; then
2993 CFLAGS="-O2"
2994 else
2995 CFLAGS=
2996 fi
2997 fi
2998 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2999 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3000 if test "${ac_cv_prog_cc_c89+set}" = set; then
3001 $as_echo_n "(cached) " >&6
3002 else
3003 ac_cv_prog_cc_c89=no
3004 ac_save_CC=$CC
3005 cat >conftest.$ac_ext <<_ACEOF
3006 /* confdefs.h. */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3011 #include <stdarg.h>
3012 #include <stdio.h>
3013 #include <sys/types.h>
3014 #include <sys/stat.h>
3015 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3016 struct buf { int x; };
3017 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3018 static char *e (p, i)
3019 char **p;
3020 int i;
3021 {
3022 return p[i];
3023 }
3024 static char *f (char * (*g) (char **, int), char **p, ...)
3025 {
3026 char *s;
3027 va_list v;
3028 va_start (v,p);
3029 s = g (p, va_arg (v,int));
3030 va_end (v);
3031 return s;
3032 }
3033
3034 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3035 function prototypes and stuff, but not '\xHH' hex character constants.
3036 These don't provoke an error unfortunately, instead are silently treated
3037 as 'x'. The following induces an error, until -std is added to get
3038 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3039 array size at least. It's necessary to write '\x00'==0 to get something
3040 that's true only with -std. */
3041 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3042
3043 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3044 inside strings and character constants. */
3045 #define FOO(x) 'x'
3046 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3047
3048 int test (int i, double x);
3049 struct s1 {int (*f) (int a);};
3050 struct s2 {int (*f) (double a);};
3051 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3052 int argc;
3053 char **argv;
3054 int
3055 main ()
3056 {
3057 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3058 ;
3059 return 0;
3060 }
3061 _ACEOF
3062 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3063 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3064 do
3065 CC="$ac_save_CC $ac_arg"
3066 rm -f conftest.$ac_objext
3067 if { (ac_try="$ac_compile"
3068 case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071 esac
3072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3073 $as_echo "$ac_try_echo") >&5
3074 (eval "$ac_compile") 2>conftest.er1
3075 ac_status=$?
3076 grep -v '^ *+' conftest.er1 >conftest.err
3077 rm -f conftest.er1
3078 cat conftest.err >&5
3079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } && {
3081 test -z "$ac_c_werror_flag" ||
3082 test ! -s conftest.err
3083 } && test -s conftest.$ac_objext; then
3084 ac_cv_prog_cc_c89=$ac_arg
3085 else
3086 $as_echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3088
3089
3090 fi
3091
3092 rm -f core conftest.err conftest.$ac_objext
3093 test "x$ac_cv_prog_cc_c89" != "xno" && break
3094 done
3095 rm -f conftest.$ac_ext
3096 CC=$ac_save_CC
3097
3098 fi
3099 # AC_CACHE_VAL
3100 case "x$ac_cv_prog_cc_c89" in
3101 x)
3102 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3103 $as_echo "none needed" >&6; } ;;
3104 xno)
3105 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3106 $as_echo "unsupported" >&6; } ;;
3107 *)
3108 CC="$CC $ac_cv_prog_cc_c89"
3109 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3110 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3111 esac
3112
3113
3114 ac_ext=c
3115 ac_cpp='$CPP $CPPFLAGS'
3116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3119
3120 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3121 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3122 if test "${ac_cv_path_SED+set}" = set; then
3123 $as_echo_n "(cached) " >&6
3124 else
3125 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3126 for ac_i in 1 2 3 4 5 6 7; do
3127 ac_script="$ac_script$as_nl$ac_script"
3128 done
3129 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3130 $as_unset ac_script || ac_script=
3131 if test -z "$SED"; then
3132 ac_path_SED_found=false
3133 # Loop through the user's path and test for each of PROGNAME-LIST
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 for as_dir in $PATH
3136 do
3137 IFS=$as_save_IFS
3138 test -z "$as_dir" && as_dir=.
3139 for ac_prog in sed gsed; do
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3142 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3143 # Check for GNU ac_path_SED and select it if it is found.
3144 # Check for GNU $ac_path_SED
3145 case `"$ac_path_SED" --version 2>&1` in
3146 *GNU*)
3147 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3148 *)
3149 ac_count=0
3150 $as_echo_n 0123456789 >"conftest.in"
3151 while :
3152 do
3153 cat "conftest.in" "conftest.in" >"conftest.tmp"
3154 mv "conftest.tmp" "conftest.in"
3155 cp "conftest.in" "conftest.nl"
3156 $as_echo '' >> "conftest.nl"
3157 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3158 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3159 ac_count=`expr $ac_count + 1`
3160 if test $ac_count -gt ${ac_path_SED_max-0}; then
3161 # Best one so far, save it but keep looking for a better one
3162 ac_cv_path_SED="$ac_path_SED"
3163 ac_path_SED_max=$ac_count
3164 fi
3165 # 10*(2^10) chars as input seems more than enough
3166 test $ac_count -gt 10 && break
3167 done
3168 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3169 esac
3170
3171 $ac_path_SED_found && break 3
3172 done
3173 done
3174 done
3175 IFS=$as_save_IFS
3176 if test -z "$ac_cv_path_SED"; then
3177 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3178 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3179 { (exit 1); exit 1; }; }
3180 fi
3181 else
3182 ac_cv_path_SED=$SED
3183 fi
3184
3185 fi
3186 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3187 $as_echo "$ac_cv_path_SED" >&6; }
3188 SED="$ac_cv_path_SED"
3189 rm -f conftest.sed
3190
3191 test -z "$SED" && SED=sed
3192 Xsed="$SED -e 1s/^X//"
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3205 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3206 if test "${ac_cv_path_GREP+set}" = set; then
3207 $as_echo_n "(cached) " >&6
3208 else
3209 if test -z "$GREP"; then
3210 ac_path_GREP_found=false
3211 # Loop through the user's path and test for each of PROGNAME-LIST
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3214 do
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_prog in grep ggrep; do
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3220 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3221 # Check for GNU ac_path_GREP and select it if it is found.
3222 # Check for GNU $ac_path_GREP
3223 case `"$ac_path_GREP" --version 2>&1` in
3224 *GNU*)
3225 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3226 *)
3227 ac_count=0
3228 $as_echo_n 0123456789 >"conftest.in"
3229 while :
3230 do
3231 cat "conftest.in" "conftest.in" >"conftest.tmp"
3232 mv "conftest.tmp" "conftest.in"
3233 cp "conftest.in" "conftest.nl"
3234 $as_echo 'GREP' >> "conftest.nl"
3235 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3237 ac_count=`expr $ac_count + 1`
3238 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3239 # Best one so far, save it but keep looking for a better one
3240 ac_cv_path_GREP="$ac_path_GREP"
3241 ac_path_GREP_max=$ac_count
3242 fi
3243 # 10*(2^10) chars as input seems more than enough
3244 test $ac_count -gt 10 && break
3245 done
3246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3247 esac
3248
3249 $ac_path_GREP_found && break 3
3250 done
3251 done
3252 done
3253 IFS=$as_save_IFS
3254 if test -z "$ac_cv_path_GREP"; then
3255 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3256 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3257 { (exit 1); exit 1; }; }
3258 fi
3259 else
3260 ac_cv_path_GREP=$GREP
3261 fi
3262
3263 fi
3264 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3265 $as_echo "$ac_cv_path_GREP" >&6; }
3266 GREP="$ac_cv_path_GREP"
3267
3268
3269 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3270 $as_echo_n "checking for egrep... " >&6; }
3271 if test "${ac_cv_path_EGREP+set}" = set; then
3272 $as_echo_n "(cached) " >&6
3273 else
3274 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3275 then ac_cv_path_EGREP="$GREP -E"
3276 else
3277 if test -z "$EGREP"; then
3278 ac_path_EGREP_found=false
3279 # Loop through the user's path and test for each of PROGNAME-LIST
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3282 do
3283 IFS=$as_save_IFS
3284 test -z "$as_dir" && as_dir=.
3285 for ac_prog in egrep; do
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3288 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3289 # Check for GNU ac_path_EGREP and select it if it is found.
3290 # Check for GNU $ac_path_EGREP
3291 case `"$ac_path_EGREP" --version 2>&1` in
3292 *GNU*)
3293 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3294 *)
3295 ac_count=0
3296 $as_echo_n 0123456789 >"conftest.in"
3297 while :
3298 do
3299 cat "conftest.in" "conftest.in" >"conftest.tmp"
3300 mv "conftest.tmp" "conftest.in"
3301 cp "conftest.in" "conftest.nl"
3302 $as_echo 'EGREP' >> "conftest.nl"
3303 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3305 ac_count=`expr $ac_count + 1`
3306 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3307 # Best one so far, save it but keep looking for a better one
3308 ac_cv_path_EGREP="$ac_path_EGREP"
3309 ac_path_EGREP_max=$ac_count
3310 fi
3311 # 10*(2^10) chars as input seems more than enough
3312 test $ac_count -gt 10 && break
3313 done
3314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3315 esac
3316
3317 $ac_path_EGREP_found && break 3
3318 done
3319 done
3320 done
3321 IFS=$as_save_IFS
3322 if test -z "$ac_cv_path_EGREP"; then
3323 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3324 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3325 { (exit 1); exit 1; }; }
3326 fi
3327 else
3328 ac_cv_path_EGREP=$EGREP
3329 fi
3330
3331 fi
3332 fi
3333 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3334 $as_echo "$ac_cv_path_EGREP" >&6; }
3335 EGREP="$ac_cv_path_EGREP"
3336
3337
3338 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3339 $as_echo_n "checking for fgrep... " >&6; }
3340 if test "${ac_cv_path_FGREP+set}" = set; then
3341 $as_echo_n "(cached) " >&6
3342 else
3343 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3344 then ac_cv_path_FGREP="$GREP -F"
3345 else
3346 if test -z "$FGREP"; then
3347 ac_path_FGREP_found=false
3348 # Loop through the user's path and test for each of PROGNAME-LIST
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3351 do
3352 IFS=$as_save_IFS
3353 test -z "$as_dir" && as_dir=.
3354 for ac_prog in fgrep; do
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3357 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3358 # Check for GNU ac_path_FGREP and select it if it is found.
3359 # Check for GNU $ac_path_FGREP
3360 case `"$ac_path_FGREP" --version 2>&1` in
3361 *GNU*)
3362 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3363 *)
3364 ac_count=0
3365 $as_echo_n 0123456789 >"conftest.in"
3366 while :
3367 do
3368 cat "conftest.in" "conftest.in" >"conftest.tmp"
3369 mv "conftest.tmp" "conftest.in"
3370 cp "conftest.in" "conftest.nl"
3371 $as_echo 'FGREP' >> "conftest.nl"
3372 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3373 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3374 ac_count=`expr $ac_count + 1`
3375 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3376 # Best one so far, save it but keep looking for a better one
3377 ac_cv_path_FGREP="$ac_path_FGREP"
3378 ac_path_FGREP_max=$ac_count
3379 fi
3380 # 10*(2^10) chars as input seems more than enough
3381 test $ac_count -gt 10 && break
3382 done
3383 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3384 esac
3385
3386 $ac_path_FGREP_found && break 3
3387 done
3388 done
3389 done
3390 IFS=$as_save_IFS
3391 if test -z "$ac_cv_path_FGREP"; then
3392 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3393 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3394 { (exit 1); exit 1; }; }
3395 fi
3396 else
3397 ac_cv_path_FGREP=$FGREP
3398 fi
3399
3400 fi
3401 fi
3402 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3403 $as_echo "$ac_cv_path_FGREP" >&6; }
3404 FGREP="$ac_cv_path_FGREP"
3405
3406
3407 test -z "$GREP" && GREP=grep
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427 # Check whether --with-gnu-ld was given.
3428 if test "${with_gnu_ld+set}" = set; then
3429 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3430 else
3431 with_gnu_ld=no
3432 fi
3433
3434 ac_prog=ld
3435 if test "$GCC" = yes; then
3436 # Check if gcc -print-prog-name=ld gives a path.
3437 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3438 $as_echo_n "checking for ld used by $CC... " >&6; }
3439 case $host in
3440 *-*-mingw*)
3441 # gcc leaves a trailing carriage return which upsets mingw
3442 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3443 *)
3444 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3445 esac
3446 case $ac_prog in
3447 # Accept absolute paths.
3448 [\\/]* | ?:[\\/]*)
3449 re_direlt='/[^/][^/]*/\.\./'
3450 # Canonicalize the pathname of ld
3451 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3452 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3453 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3454 done
3455 test -z "$LD" && LD="$ac_prog"
3456 ;;
3457 "")
3458 # If it fails, then pretend we aren't using GCC.
3459 ac_prog=ld
3460 ;;
3461 *)
3462 # If it is relative, then search for the first ld in PATH.
3463 with_gnu_ld=unknown
3464 ;;
3465 esac
3466 elif test "$with_gnu_ld" = yes; then
3467 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3468 $as_echo_n "checking for GNU ld... " >&6; }
3469 else
3470 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3471 $as_echo_n "checking for non-GNU ld... " >&6; }
3472 fi
3473 if test "${lt_cv_path_LD+set}" = set; then
3474 $as_echo_n "(cached) " >&6
3475 else
3476 if test -z "$LD"; then
3477 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3478 for ac_dir in $PATH; do
3479 IFS="$lt_save_ifs"
3480 test -z "$ac_dir" && ac_dir=.
3481 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3482 lt_cv_path_LD="$ac_dir/$ac_prog"
3483 # Check to see if the program is GNU ld. I'd rather use --version,
3484 # but apparently some variants of GNU ld only accept -v.
3485 # Break only if it was the GNU/non-GNU ld that we prefer.
3486 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3487 *GNU* | *'with BFD'*)
3488 test "$with_gnu_ld" != no && break
3489 ;;
3490 *)
3491 test "$with_gnu_ld" != yes && break
3492 ;;
3493 esac
3494 fi
3495 done
3496 IFS="$lt_save_ifs"
3497 else
3498 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3499 fi
3500 fi
3501
3502 LD="$lt_cv_path_LD"
3503 if test -n "$LD"; then
3504 { $as_echo "$as_me:$LINENO: result: $LD" >&5
3505 $as_echo "$LD" >&6; }
3506 else
3507 { $as_echo "$as_me:$LINENO: result: no" >&5
3508 $as_echo "no" >&6; }
3509 fi
3510 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3511 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3512 { (exit 1); exit 1; }; }
3513 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3514 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3515 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3516 $as_echo_n "(cached) " >&6
3517 else
3518 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3519 case `$LD -v 2>&1 </dev/null` in
3520 *GNU* | *'with BFD'*)
3521 lt_cv_prog_gnu_ld=yes
3522 ;;
3523 *)
3524 lt_cv_prog_gnu_ld=no
3525 ;;
3526 esac
3527 fi
3528 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3529 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3530 with_gnu_ld=$lt_cv_prog_gnu_ld
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3541 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3542 if test "${lt_cv_path_NM+set}" = set; then
3543 $as_echo_n "(cached) " >&6
3544 else
3545 if test -n "$NM"; then
3546 # Let the user override the test.
3547 lt_cv_path_NM="$NM"
3548 else
3549 lt_nm_to_check="${ac_tool_prefix}nm"
3550 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3551 lt_nm_to_check="$lt_nm_to_check nm"
3552 fi
3553 for lt_tmp_nm in $lt_nm_to_check; do
3554 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3555 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3556 IFS="$lt_save_ifs"
3557 test -z "$ac_dir" && ac_dir=.
3558 tmp_nm="$ac_dir/$lt_tmp_nm"
3559 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3560 # Check to see if the nm accepts a BSD-compat flag.
3561 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3562 # nm: unknown option "B" ignored
3563 # Tru64's nm complains that /dev/null is an invalid object file
3564 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3565 */dev/null* | *'Invalid file or object type'*)
3566 lt_cv_path_NM="$tmp_nm -B"
3567 break
3568 ;;
3569 *)
3570 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3571 */dev/null*)
3572 lt_cv_path_NM="$tmp_nm -p"
3573 break
3574 ;;
3575 *)
3576 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3577 continue # so that we can try to find one that supports BSD flags
3578 ;;
3579 esac
3580 ;;
3581 esac
3582 fi
3583 done
3584 IFS="$lt_save_ifs"
3585 done
3586 : ${lt_cv_path_NM=no}
3587 fi
3588 fi
3589 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3590 $as_echo "$lt_cv_path_NM" >&6; }
3591 if test "$lt_cv_path_NM" != "no"; then
3592 NM="$lt_cv_path_NM"
3593 else
3594 # Didn't find any BSD compatible name lister, look for dumpbin.
3595 if test -n "$ac_tool_prefix"; then
3596 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3597 do
3598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3601 $as_echo_n "checking for $ac_word... " >&6; }
3602 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3603 $as_echo_n "(cached) " >&6
3604 else
3605 if test -n "$DUMPBIN"; then
3606 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3607 else
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH
3610 do
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
3613 for ac_exec_ext in '' $ac_executable_extensions; do
3614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3615 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 break 2
3618 fi
3619 done
3620 done
3621 IFS=$as_save_IFS
3622
3623 fi
3624 fi
3625 DUMPBIN=$ac_cv_prog_DUMPBIN
3626 if test -n "$DUMPBIN"; then
3627 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3628 $as_echo "$DUMPBIN" >&6; }
3629 else
3630 { $as_echo "$as_me:$LINENO: result: no" >&5
3631 $as_echo "no" >&6; }
3632 fi
3633
3634
3635 test -n "$DUMPBIN" && break
3636 done
3637 fi
3638 if test -z "$DUMPBIN"; then
3639 ac_ct_DUMPBIN=$DUMPBIN
3640 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3641 do
3642 # Extract the first word of "$ac_prog", so it can be a program name with args.
3643 set dummy $ac_prog; ac_word=$2
3644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3647 $as_echo_n "(cached) " >&6
3648 else
3649 if test -n "$ac_ct_DUMPBIN"; then
3650 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3651 else
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3654 do
3655 IFS=$as_save_IFS
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3659 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3660 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 break 2
3662 fi
3663 done
3664 done
3665 IFS=$as_save_IFS
3666
3667 fi
3668 fi
3669 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3670 if test -n "$ac_ct_DUMPBIN"; then
3671 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3672 $as_echo "$ac_ct_DUMPBIN" >&6; }
3673 else
3674 { $as_echo "$as_me:$LINENO: result: no" >&5
3675 $as_echo "no" >&6; }
3676 fi
3677
3678
3679 test -n "$ac_ct_DUMPBIN" && break
3680 done
3681
3682 if test "x$ac_ct_DUMPBIN" = x; then
3683 DUMPBIN=":"
3684 else
3685 case $cross_compiling:$ac_tool_warned in
3686 yes:)
3687 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3689 ac_tool_warned=yes ;;
3690 esac
3691 DUMPBIN=$ac_ct_DUMPBIN
3692 fi
3693 fi
3694
3695
3696 if test "$DUMPBIN" != ":"; then
3697 NM="$DUMPBIN"
3698 fi
3699 fi
3700 test -z "$NM" && NM=nm
3701
3702
3703
3704
3705
3706
3707 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3708 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3709 if test "${lt_cv_nm_interface+set}" = set; then
3710 $as_echo_n "(cached) " >&6
3711 else
3712 lt_cv_nm_interface="BSD nm"
3713 echo "int some_variable = 0;" > conftest.$ac_ext
3714 (eval echo "\"\$as_me:3714: $ac_compile\"" >&5)
3715 (eval "$ac_compile" 2>conftest.err)
3716 cat conftest.err >&5
3717 (eval echo "\"\$as_me:3717: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3718 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3719 cat conftest.err >&5
3720 (eval echo "\"\$as_me:3720: output\"" >&5)
3721 cat conftest.out >&5
3722 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3723 lt_cv_nm_interface="MS dumpbin"
3724 fi
3725 rm -f conftest*
3726 fi
3727 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3728 $as_echo "$lt_cv_nm_interface" >&6; }
3729
3730 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3731 $as_echo_n "checking whether ln -s works... " >&6; }
3732 LN_S=$as_ln_s
3733 if test "$LN_S" = "ln -s"; then
3734 { $as_echo "$as_me:$LINENO: result: yes" >&5
3735 $as_echo "yes" >&6; }
3736 else
3737 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3738 $as_echo "no, using $LN_S" >&6; }
3739 fi
3740
3741 # find the maximum length of command line arguments
3742 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3743 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3744 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3745 $as_echo_n "(cached) " >&6
3746 else
3747 i=0
3748 teststring="ABCD"
3749
3750 case $build_os in
3751 msdosdjgpp*)
3752 # On DJGPP, this test can blow up pretty badly due to problems in libc
3753 # (any single argument exceeding 2000 bytes causes a buffer overrun
3754 # during glob expansion). Even if it were fixed, the result of this
3755 # check would be larger than it should be.
3756 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3757 ;;
3758
3759 gnu*)
3760 # Under GNU Hurd, this test is not required because there is
3761 # no limit to the length of command line arguments.
3762 # Libtool will interpret -1 as no limit whatsoever
3763 lt_cv_sys_max_cmd_len=-1;
3764 ;;
3765
3766 cygwin* | mingw* | cegcc*)
3767 # On Win9x/ME, this test blows up -- it succeeds, but takes
3768 # about 5 minutes as the teststring grows exponentially.
3769 # Worse, since 9x/ME are not pre-emptively multitasking,
3770 # you end up with a "frozen" computer, even though with patience
3771 # the test eventually succeeds (with a max line length of 256k).
3772 # Instead, let's just punt: use the minimum linelength reported by
3773 # all of the supported platforms: 8192 (on NT/2K/XP).
3774 lt_cv_sys_max_cmd_len=8192;
3775 ;;
3776
3777 amigaos*)
3778 # On AmigaOS with pdksh, this test takes hours, literally.
3779 # So we just punt and use a minimum line length of 8192.
3780 lt_cv_sys_max_cmd_len=8192;
3781 ;;
3782
3783 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3784 # This has been around since 386BSD, at least. Likely further.
3785 if test -x /sbin/sysctl; then
3786 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3787 elif test -x /usr/sbin/sysctl; then
3788 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3789 else
3790 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3791 fi
3792 # And add a safety zone
3793 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3794 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3795 ;;
3796
3797 interix*)
3798 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3799 lt_cv_sys_max_cmd_len=196608
3800 ;;
3801
3802 osf*)
3803 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3804 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3805 # nice to cause kernel panics so lets avoid the loop below.
3806 # First set a reasonable default.
3807 lt_cv_sys_max_cmd_len=16384
3808 #
3809 if test -x /sbin/sysconfig; then
3810 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3811 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3812 esac
3813 fi
3814 ;;
3815 sco3.2v5*)
3816 lt_cv_sys_max_cmd_len=102400
3817 ;;
3818 sysv5* | sco5v6* | sysv4.2uw2*)
3819 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3820 if test -n "$kargmax"; then
3821 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3822 else
3823 lt_cv_sys_max_cmd_len=32768
3824 fi
3825 ;;
3826 *)
3827 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3828 if test -n "$lt_cv_sys_max_cmd_len"; then
3829 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3830 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3831 else
3832 # Make teststring a little bigger before we do anything with it.
3833 # a 1K string should be a reasonable start.
3834 for i in 1 2 3 4 5 6 7 8 ; do
3835 teststring=$teststring$teststring
3836 done
3837 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3838 # If test is not a shell built-in, we'll probably end up computing a
3839 # maximum length that is only half of the actual maximum length, but
3840 # we can't tell.
3841 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3842 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3843 test $i != 17 # 1/2 MB should be enough
3844 do
3845 i=`expr $i + 1`
3846 teststring=$teststring$teststring
3847 done
3848 # Only check the string length outside the loop.
3849 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3850 teststring=
3851 # Add a significant safety factor because C++ compilers can tack on
3852 # massive amounts of additional arguments before passing them to the
3853 # linker. It appears as though 1/2 is a usable value.
3854 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3855 fi
3856 ;;
3857 esac
3858
3859 fi
3860
3861 if test -n $lt_cv_sys_max_cmd_len ; then
3862 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3863 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3864 else
3865 { $as_echo "$as_me:$LINENO: result: none" >&5
3866 $as_echo "none" >&6; }
3867 fi
3868 max_cmd_len=$lt_cv_sys_max_cmd_len
3869
3870
3871
3872
3873
3874
3875 : ${CP="cp -f"}
3876 : ${MV="mv -f"}
3877 : ${RM="rm -f"}
3878
3879 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3880 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
3881 # Try some XSI features
3882 xsi_shell=no
3883 ( _lt_dummy="a/b/c"
3884 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3885 = c,a/b,, \
3886 && eval 'test $(( 1 + 1 )) -eq 2 \
3887 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3888 && xsi_shell=yes
3889 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
3890 $as_echo "$xsi_shell" >&6; }
3891
3892
3893 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3894 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
3895 lt_shell_append=no
3896 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3897 >/dev/null 2>&1 \
3898 && lt_shell_append=yes
3899 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3900 $as_echo "$lt_shell_append" >&6; }
3901
3902
3903 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3904 lt_unset=unset
3905 else
3906 lt_unset=false
3907 fi
3908
3909
3910
3911
3912
3913 # test EBCDIC or ASCII
3914 case `echo X|tr X '\101'` in
3915 A) # ASCII based system
3916 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3917 lt_SP2NL='tr \040 \012'
3918 lt_NL2SP='tr \015\012 \040\040'
3919 ;;
3920 *) # EBCDIC based system
3921 lt_SP2NL='tr \100 \n'
3922 lt_NL2SP='tr \r\n \100\100'
3923 ;;
3924 esac
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3935 $as_echo_n "checking for $LD option to reload object files... " >&6; }
3936 if test "${lt_cv_ld_reload_flag+set}" = set; then
3937 $as_echo_n "(cached) " >&6
3938 else
3939 lt_cv_ld_reload_flag='-r'
3940 fi
3941 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3942 $as_echo "$lt_cv_ld_reload_flag" >&6; }
3943 reload_flag=$lt_cv_ld_reload_flag
3944 case $reload_flag in
3945 "" | " "*) ;;
3946 *) reload_flag=" $reload_flag" ;;
3947 esac
3948 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3949 case $host_os in
3950 darwin*)
3951 if test "$GCC" = yes; then
3952 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3953 else
3954 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3955 fi
3956 ;;
3957 esac
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967 if test -n "$ac_tool_prefix"; then
3968 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3969 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3970 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3971 $as_echo_n "checking for $ac_word... " >&6; }
3972 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3973 $as_echo_n "(cached) " >&6
3974 else
3975 if test -n "$OBJDUMP"; then
3976 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3977 else
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH
3980 do
3981 IFS=$as_save_IFS
3982 test -z "$as_dir" && as_dir=.
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3985 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3986 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 break 2
3988 fi
3989 done
3990 done
3991 IFS=$as_save_IFS
3992
3993 fi
3994 fi
3995 OBJDUMP=$ac_cv_prog_OBJDUMP
3996 if test -n "$OBJDUMP"; then
3997 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3998 $as_echo "$OBJDUMP" >&6; }
3999 else
4000 { $as_echo "$as_me:$LINENO: result: no" >&5
4001 $as_echo "no" >&6; }
4002 fi
4003
4004
4005 fi
4006 if test -z "$ac_cv_prog_OBJDUMP"; then
4007 ac_ct_OBJDUMP=$OBJDUMP
4008 # Extract the first word of "objdump", so it can be a program name with args.
4009 set dummy objdump; ac_word=$2
4010 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4011 $as_echo_n "checking for $ac_word... " >&6; }
4012 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4013 $as_echo_n "(cached) " >&6
4014 else
4015 if test -n "$ac_ct_OBJDUMP"; then
4016 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4017 else
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH
4020 do
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4025 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4026 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 break 2
4028 fi
4029 done
4030 done
4031 IFS=$as_save_IFS
4032
4033 fi
4034 fi
4035 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4036 if test -n "$ac_ct_OBJDUMP"; then
4037 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4038 $as_echo "$ac_ct_OBJDUMP" >&6; }
4039 else
4040 { $as_echo "$as_me:$LINENO: result: no" >&5
4041 $as_echo "no" >&6; }
4042 fi
4043
4044 if test "x$ac_ct_OBJDUMP" = x; then
4045 OBJDUMP="false"
4046 else
4047 case $cross_compiling:$ac_tool_warned in
4048 yes:)
4049 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4051 ac_tool_warned=yes ;;
4052 esac
4053 OBJDUMP=$ac_ct_OBJDUMP
4054 fi
4055 else
4056 OBJDUMP="$ac_cv_prog_OBJDUMP"
4057 fi
4058
4059 test -z "$OBJDUMP" && OBJDUMP=objdump
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4070 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4071 if test "${lt_cv_deplibs_check_method+set}" = set; then
4072 $as_echo_n "(cached) " >&6
4073 else
4074 lt_cv_file_magic_cmd='$MAGIC_CMD'
4075 lt_cv_file_magic_test_file=
4076 lt_cv_deplibs_check_method='unknown'
4077 # Need to set the preceding variable on all platforms that support
4078 # interlibrary dependencies.
4079 # 'none' -- dependencies not supported.
4080 # `unknown' -- same as none, but documents that we really don't know.
4081 # 'pass_all' -- all dependencies passed with no checks.
4082 # 'test_compile' -- check by making test program.
4083 # 'file_magic [[regex]]' -- check by looking for files in library path
4084 # which responds to the $file_magic_cmd with a given extended regex.
4085 # If you have `file' or equivalent on your system and you're not sure
4086 # whether `pass_all' will *always* work, you probably want this one.
4087
4088 case $host_os in
4089 aix[4-9]*)
4090 lt_cv_deplibs_check_method=pass_all
4091 ;;
4092
4093 beos*)
4094 lt_cv_deplibs_check_method=pass_all
4095 ;;
4096
4097 bsdi[45]*)
4098 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4099 lt_cv_file_magic_cmd='/usr/bin/file -L'
4100 lt_cv_file_magic_test_file=/shlib/libc.so
4101 ;;
4102
4103 cygwin*)
4104 # func_win32_libid is a shell function defined in ltmain.sh
4105 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4106 lt_cv_file_magic_cmd='func_win32_libid'
4107 ;;
4108
4109 mingw* | pw32*)
4110 # Base MSYS/MinGW do not provide the 'file' command needed by
4111 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4112 # unless we find 'file', for example because we are cross-compiling.
4113 if ( file / ) >/dev/null 2>&1; then
4114 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4115 lt_cv_file_magic_cmd='func_win32_libid'
4116 else
4117 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4118 lt_cv_file_magic_cmd='$OBJDUMP -f'
4119 fi
4120 ;;
4121
4122 cegcc)
4123 # use the weaker test based on 'objdump'. See mingw*.
4124 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4125 lt_cv_file_magic_cmd='$OBJDUMP -f'
4126 ;;
4127
4128 darwin* | rhapsody*)
4129 lt_cv_deplibs_check_method=pass_all
4130 ;;
4131
4132 freebsd* | dragonfly*)
4133 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4134 case $host_cpu in
4135 i*86 )
4136 # Not sure whether the presence of OpenBSD here was a mistake.
4137 # Let's accept both of them until this is cleared up.
4138 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4139 lt_cv_file_magic_cmd=/usr/bin/file
4140 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4141 ;;
4142 esac
4143 else
4144 lt_cv_deplibs_check_method=pass_all
4145 fi
4146 ;;
4147
4148 gnu*)
4149 lt_cv_deplibs_check_method=pass_all
4150 ;;
4151
4152 hpux10.20* | hpux11*)
4153 lt_cv_file_magic_cmd=/usr/bin/file
4154 case $host_cpu in
4155 ia64*)
4156 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4157 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4158 ;;
4159 hppa*64*)
4160 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]'
4161 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4162 ;;
4163 *)
4164 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4165 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4166 ;;
4167 esac
4168 ;;
4169
4170 interix[3-9]*)
4171 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4173 ;;
4174
4175 irix5* | irix6* | nonstopux*)
4176 case $LD in
4177 *-32|*"-32 ") libmagic=32-bit;;
4178 *-n32|*"-n32 ") libmagic=N32;;
4179 *-64|*"-64 ") libmagic=64-bit;;
4180 *) libmagic=never-match;;
4181 esac
4182 lt_cv_deplibs_check_method=pass_all
4183 ;;
4184
4185 # This must be Linux ELF.
4186 linux* | k*bsd*-gnu)
4187 lt_cv_deplibs_check_method=pass_all
4188 ;;
4189
4190 netbsd*)
4191 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4192 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4193 else
4194 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4195 fi
4196 ;;
4197
4198 newos6*)
4199 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4200 lt_cv_file_magic_cmd=/usr/bin/file
4201 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4202 ;;
4203
4204 *nto* | *qnx*)
4205 lt_cv_deplibs_check_method=pass_all
4206 ;;
4207
4208 openbsd*)
4209 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4210 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4211 else
4212 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4213 fi
4214 ;;
4215
4216 osf3* | osf4* | osf5*)
4217 lt_cv_deplibs_check_method=pass_all
4218 ;;
4219
4220 rdos*)
4221 lt_cv_deplibs_check_method=pass_all
4222 ;;
4223
4224 solaris*)
4225 lt_cv_deplibs_check_method=pass_all
4226 ;;
4227
4228 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4229 lt_cv_deplibs_check_method=pass_all
4230 ;;
4231
4232 sysv4 | sysv4.3*)
4233 case $host_vendor in
4234 motorola)
4235 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]'
4236 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4237 ;;
4238 ncr)
4239 lt_cv_deplibs_check_method=pass_all
4240 ;;
4241 sequent)
4242 lt_cv_file_magic_cmd='/bin/file'
4243 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4244 ;;
4245 sni)
4246 lt_cv_file_magic_cmd='/bin/file'
4247 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4248 lt_cv_file_magic_test_file=/lib/libc.so
4249 ;;
4250 siemens)
4251 lt_cv_deplibs_check_method=pass_all
4252 ;;
4253 pc)
4254 lt_cv_deplibs_check_method=pass_all
4255 ;;
4256 esac
4257 ;;
4258
4259 tpf*)
4260 lt_cv_deplibs_check_method=pass_all
4261 ;;
4262 esac
4263
4264 fi
4265 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4266 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4267 file_magic_cmd=$lt_cv_file_magic_cmd
4268 deplibs_check_method=$lt_cv_deplibs_check_method
4269 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282 if test -n "$ac_tool_prefix"; then
4283 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4284 set dummy ${ac_tool_prefix}ar; ac_word=$2
4285 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 $as_echo_n "checking for $ac_word... " >&6; }
4287 if test "${ac_cv_prog_AR+set}" = set; then
4288 $as_echo_n "(cached) " >&6
4289 else
4290 if test -n "$AR"; then
4291 ac_cv_prog_AR="$AR" # Let the user override the test.
4292 else
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4295 do
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4300 ac_cv_prog_AR="${ac_tool_prefix}ar"
4301 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 break 2
4303 fi
4304 done
4305 done
4306 IFS=$as_save_IFS
4307
4308 fi
4309 fi
4310 AR=$ac_cv_prog_AR
4311 if test -n "$AR"; then
4312 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4313 $as_echo "$AR" >&6; }
4314 else
4315 { $as_echo "$as_me:$LINENO: result: no" >&5
4316 $as_echo "no" >&6; }
4317 fi
4318
4319
4320 fi
4321 if test -z "$ac_cv_prog_AR"; then
4322 ac_ct_AR=$AR
4323 # Extract the first word of "ar", so it can be a program name with args.
4324 set dummy ar; ac_word=$2
4325 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4326 $as_echo_n "checking for $ac_word... " >&6; }
4327 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4328 $as_echo_n "(cached) " >&6
4329 else
4330 if test -n "$ac_ct_AR"; then
4331 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4332 else
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH
4335 do
4336 IFS=$as_save_IFS
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4340 ac_cv_prog_ac_ct_AR="ar"
4341 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4342 break 2
4343 fi
4344 done
4345 done
4346 IFS=$as_save_IFS
4347
4348 fi
4349 fi
4350 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4351 if test -n "$ac_ct_AR"; then
4352 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4353 $as_echo "$ac_ct_AR" >&6; }
4354 else
4355 { $as_echo "$as_me:$LINENO: result: no" >&5
4356 $as_echo "no" >&6; }
4357 fi
4358
4359 if test "x$ac_ct_AR" = x; then
4360 AR="false"
4361 else
4362 case $cross_compiling:$ac_tool_warned in
4363 yes:)
4364 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4366 ac_tool_warned=yes ;;
4367 esac
4368 AR=$ac_ct_AR
4369 fi
4370 else
4371 AR="$ac_cv_prog_AR"
4372 fi
4373
4374 test -z "$AR" && AR=ar
4375 test -z "$AR_FLAGS" && AR_FLAGS=cru
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387 if test -n "$ac_tool_prefix"; then
4388 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4389 set dummy ${ac_tool_prefix}strip; ac_word=$2
4390 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4391 $as_echo_n "checking for $ac_word... " >&6; }
4392 if test "${ac_cv_prog_STRIP+set}" = set; then
4393 $as_echo_n "(cached) " >&6
4394 else
4395 if test -n "$STRIP"; then
4396 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4397 else
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH
4400 do
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4405 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4406 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 break 2
4408 fi
4409 done
4410 done
4411 IFS=$as_save_IFS
4412
4413 fi
4414 fi
4415 STRIP=$ac_cv_prog_STRIP
4416 if test -n "$STRIP"; then
4417 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4418 $as_echo "$STRIP" >&6; }
4419 else
4420 { $as_echo "$as_me:$LINENO: result: no" >&5
4421 $as_echo "no" >&6; }
4422 fi
4423
4424
4425 fi
4426 if test -z "$ac_cv_prog_STRIP"; then
4427 ac_ct_STRIP=$STRIP
4428 # Extract the first word of "strip", so it can be a program name with args.
4429 set dummy strip; ac_word=$2
4430 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 $as_echo_n "checking for $ac_word... " >&6; }
4432 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4433 $as_echo_n "(cached) " >&6
4434 else
4435 if test -n "$ac_ct_STRIP"; then
4436 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4440 do
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_ac_ct_STRIP="strip"
4446 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4448 fi
4449 done
4450 done
4451 IFS=$as_save_IFS
4452
4453 fi
4454 fi
4455 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4456 if test -n "$ac_ct_STRIP"; then
4457 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4458 $as_echo "$ac_ct_STRIP" >&6; }
4459 else
4460 { $as_echo "$as_me:$LINENO: result: no" >&5
4461 $as_echo "no" >&6; }
4462 fi
4463
4464 if test "x$ac_ct_STRIP" = x; then
4465 STRIP=":"
4466 else
4467 case $cross_compiling:$ac_tool_warned in
4468 yes:)
4469 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4471 ac_tool_warned=yes ;;
4472 esac
4473 STRIP=$ac_ct_STRIP
4474 fi
4475 else
4476 STRIP="$ac_cv_prog_STRIP"
4477 fi
4478
4479 test -z "$STRIP" && STRIP=:
4480
4481
4482
4483
4484
4485
4486 if test -n "$ac_tool_prefix"; then
4487 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4488 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4489 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4490 $as_echo_n "checking for $ac_word... " >&6; }
4491 if test "${ac_cv_prog_RANLIB+set}" = set; then
4492 $as_echo_n "(cached) " >&6
4493 else
4494 if test -n "$RANLIB"; then
4495 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4496 else
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH
4499 do
4500 IFS=$as_save_IFS
4501 test -z "$as_dir" && as_dir=.
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4504 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4505 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4506 break 2
4507 fi
4508 done
4509 done
4510 IFS=$as_save_IFS
4511
4512 fi
4513 fi
4514 RANLIB=$ac_cv_prog_RANLIB
4515 if test -n "$RANLIB"; then
4516 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4517 $as_echo "$RANLIB" >&6; }
4518 else
4519 { $as_echo "$as_me:$LINENO: result: no" >&5
4520 $as_echo "no" >&6; }
4521 fi
4522
4523
4524 fi
4525 if test -z "$ac_cv_prog_RANLIB"; then
4526 ac_ct_RANLIB=$RANLIB
4527 # Extract the first word of "ranlib", so it can be a program name with args.
4528 set dummy ranlib; ac_word=$2
4529 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4530 $as_echo_n "checking for $ac_word... " >&6; }
4531 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4532 $as_echo_n "(cached) " >&6
4533 else
4534 if test -n "$ac_ct_RANLIB"; then
4535 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4536 else
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4539 do
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4544 ac_cv_prog_ac_ct_RANLIB="ranlib"
4545 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 break 2
4547 fi
4548 done
4549 done
4550 IFS=$as_save_IFS
4551
4552 fi
4553 fi
4554 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4555 if test -n "$ac_ct_RANLIB"; then
4556 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4557 $as_echo "$ac_ct_RANLIB" >&6; }
4558 else
4559 { $as_echo "$as_me:$LINENO: result: no" >&5
4560 $as_echo "no" >&6; }
4561 fi
4562
4563 if test "x$ac_ct_RANLIB" = x; then
4564 RANLIB=":"
4565 else
4566 case $cross_compiling:$ac_tool_warned in
4567 yes:)
4568 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4570 ac_tool_warned=yes ;;
4571 esac
4572 RANLIB=$ac_ct_RANLIB
4573 fi
4574 else
4575 RANLIB="$ac_cv_prog_RANLIB"
4576 fi
4577
4578 test -z "$RANLIB" && RANLIB=:
4579
4580
4581
4582
4583
4584
4585 # Determine commands to create old-style static archives.
4586 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4587 old_postinstall_cmds='chmod 644 $oldlib'
4588 old_postuninstall_cmds=
4589
4590 if test -n "$RANLIB"; then
4591 case $host_os in
4592 openbsd*)
4593 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4594 ;;
4595 *)
4596 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4597 ;;
4598 esac
4599 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4600 fi
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635 # If no C compiler was specified, use CC.
4636 LTCC=${LTCC-"$CC"}
4637
4638 # If no C compiler flags were specified, use CFLAGS.
4639 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4640
4641 # Allow CC to be a program name with arguments.
4642 compiler=$CC
4643
4644
4645 # Check for command to grab the raw symbol name followed by C symbol from nm.
4646 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4647 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4648 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4649 $as_echo_n "(cached) " >&6
4650 else
4651
4652 # These are sane defaults that work on at least a few old systems.
4653 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4654
4655 # Character class describing NM global symbol codes.
4656 symcode='[BCDEGRST]'
4657
4658 # Regexp to match symbols that can be accessed directly from C.
4659 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4660
4661 # Define system-specific variables.
4662 case $host_os in
4663 aix*)
4664 symcode='[BCDT]'
4665 ;;
4666 cygwin* | mingw* | pw32* | cegcc*)
4667 symcode='[ABCDGISTW]'
4668 ;;
4669 hpux*)
4670 if test "$host_cpu" = ia64; then
4671 symcode='[ABCDEGRST]'
4672 fi
4673 ;;
4674 irix* | nonstopux*)
4675 symcode='[BCDEGRST]'
4676 ;;
4677 osf*)
4678 symcode='[BCDEGQRST]'
4679 ;;
4680 solaris*)
4681 symcode='[BDRT]'
4682 ;;
4683 sco3.2v5*)
4684 symcode='[DT]'
4685 ;;
4686 sysv4.2uw2*)
4687 symcode='[DT]'
4688 ;;
4689 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4690 symcode='[ABDT]'
4691 ;;
4692 sysv4)
4693 symcode='[DFNSTU]'
4694 ;;
4695 esac
4696
4697 # If we're using GNU nm, then use its standard symbol codes.
4698 case `$NM -V 2>&1` in
4699 *GNU* | *'with BFD'*)
4700 symcode='[ABCDGIRSTW]' ;;
4701 esac
4702
4703 # Transform an extracted symbol line into a proper C declaration.
4704 # Some systems (esp. on ia64) link data and code symbols differently,
4705 # so use this general approach.
4706 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4707
4708 # Transform an extracted symbol line into symbol name and symbol address
4709 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4710 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
4711
4712 # Handle CRLF in mingw tool chain
4713 opt_cr=
4714 case $build_os in
4715 mingw*)
4716 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4717 ;;
4718 esac
4719
4720 # Try without a prefix underscore, then with it.
4721 for ac_symprfx in "" "_"; do
4722
4723 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4724 symxfrm="\\1 $ac_symprfx\\2 \\2"
4725
4726 # Write the raw and C identifiers.
4727 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4728 # Fake it for dumpbin and say T for any non-static function
4729 # and D for any global variable.
4730 # Also find C++ and __fastcall symbols from MSVC++,
4731 # which start with @ or ?.
4732 lt_cv_sys_global_symbol_pipe="$AWK '"\
4733 " {last_section=section; section=\$ 3};"\
4734 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4735 " \$ 0!~/External *\|/{next};"\
4736 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4737 " {if(hide[section]) next};"\
4738 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4739 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4740 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4741 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4742 " ' prfx=^$ac_symprfx"
4743 else
4744 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4745 fi
4746
4747 # Check to see that the pipe works correctly.
4748 pipe_works=no
4749
4750 rm -f conftest*
4751 cat > conftest.$ac_ext <<_LT_EOF
4752 #ifdef __cplusplus
4753 extern "C" {
4754 #endif
4755 char nm_test_var;
4756 void nm_test_func(void);
4757 void nm_test_func(void){}
4758 #ifdef __cplusplus
4759 }
4760 #endif
4761 int main(){nm_test_var='a';nm_test_func();return(0);}
4762 _LT_EOF
4763
4764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4765 (eval $ac_compile) 2>&5
4766 ac_status=$?
4767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; then
4769 # Now try to grab the symbols.
4770 nlist=conftest.nm
4771 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4772 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4773 ac_status=$?
4774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } && test -s "$nlist"; then
4776 # Try sorting and uniquifying the output.
4777 if sort "$nlist" | uniq > "$nlist"T; then
4778 mv -f "$nlist"T "$nlist"
4779 else
4780 rm -f "$nlist"T
4781 fi
4782
4783 # Make sure that we snagged all the symbols we need.
4784 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4785 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4786 cat <<_LT_EOF > conftest.$ac_ext
4787 #ifdef __cplusplus
4788 extern "C" {
4789 #endif
4790
4791 _LT_EOF
4792 # Now generate the symbol file.
4793 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4794
4795 cat <<_LT_EOF >> conftest.$ac_ext
4796
4797 /* The mapping between symbol names and symbols. */
4798 const struct {
4799 const char *name;
4800 void *address;
4801 }
4802 lt__PROGRAM__LTX_preloaded_symbols[] =
4803 {
4804 { "@PROGRAM@", (void *) 0 },
4805 _LT_EOF
4806 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4807 cat <<\_LT_EOF >> conftest.$ac_ext
4808 {0, (void *) 0}
4809 };
4810
4811 /* This works around a problem in FreeBSD linker */
4812 #ifdef FREEBSD_WORKAROUND
4813 static const void *lt_preloaded_setup() {
4814 return lt__PROGRAM__LTX_preloaded_symbols;
4815 }
4816 #endif
4817
4818 #ifdef __cplusplus
4819 }
4820 #endif
4821 _LT_EOF
4822 # Now try linking the two files.
4823 mv conftest.$ac_objext conftstm.$ac_objext
4824 lt_save_LIBS="$LIBS"
4825 lt_save_CFLAGS="$CFLAGS"
4826 LIBS="conftstm.$ac_objext"
4827 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4829 (eval $ac_link) 2>&5
4830 ac_status=$?
4831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4833 pipe_works=yes
4834 fi
4835 LIBS="$lt_save_LIBS"
4836 CFLAGS="$lt_save_CFLAGS"
4837 else
4838 echo "cannot find nm_test_func in $nlist" >&5
4839 fi
4840 else
4841 echo "cannot find nm_test_var in $nlist" >&5
4842 fi
4843 else
4844 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4845 fi
4846 else
4847 echo "$progname: failed program was:" >&5
4848 cat conftest.$ac_ext >&5
4849 fi
4850 rm -rf conftest* conftst*
4851
4852 # Do not use the global_symbol_pipe unless it works.
4853 if test "$pipe_works" = yes; then
4854 break
4855 else
4856 lt_cv_sys_global_symbol_pipe=
4857 fi
4858 done
4859
4860 fi
4861
4862 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4863 lt_cv_sys_global_symbol_to_cdecl=
4864 fi
4865 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4866 { $as_echo "$as_me:$LINENO: result: failed" >&5
4867 $as_echo "failed" >&6; }
4868 else
4869 { $as_echo "$as_me:$LINENO: result: ok" >&5
4870 $as_echo "ok" >&6; }
4871 fi
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895 # Check whether --enable-libtool-lock was given.
4896 if test "${enable_libtool_lock+set}" = set; then
4897 enableval=$enable_libtool_lock;
4898 fi
4899
4900 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4901
4902 # Some flags need to be propagated to the compiler or linker for good
4903 # libtool support.
4904 case $host in
4905 ia64-*-hpux*)
4906 # Find out which ABI we are using.
4907 echo 'int i;' > conftest.$ac_ext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4909 (eval $ac_compile) 2>&5
4910 ac_status=$?
4911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; then
4913 case `/usr/bin/file conftest.$ac_objext` in
4914 *ELF-32*)
4915 HPUX_IA64_MODE="32"
4916 ;;
4917 *ELF-64*)
4918 HPUX_IA64_MODE="64"
4919 ;;
4920 esac
4921 fi
4922 rm -rf conftest*
4923 ;;
4924 *-*-irix6*)
4925 # Find out which ABI we are using.
4926 echo '#line 4926 "configure"' > conftest.$ac_ext
4927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4928 (eval $ac_compile) 2>&5
4929 ac_status=$?
4930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); }; then
4932 if test "$lt_cv_prog_gnu_ld" = yes; then
4933 case `/usr/bin/file conftest.$ac_objext` in
4934 *32-bit*)
4935 LD="${LD-ld} -melf32bsmip"
4936 ;;
4937 *N32*)
4938 LD="${LD-ld} -melf32bmipn32"
4939 ;;
4940 *64-bit*)
4941 LD="${LD-ld} -melf64bmip"
4942 ;;
4943 esac
4944 else
4945 case `/usr/bin/file conftest.$ac_objext` in
4946 *32-bit*)
4947 LD="${LD-ld} -32"
4948 ;;
4949 *N32*)
4950 LD="${LD-ld} -n32"
4951 ;;
4952 *64-bit*)
4953 LD="${LD-ld} -64"
4954 ;;
4955 esac
4956 fi
4957 fi
4958 rm -rf conftest*
4959 ;;
4960
4961 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4962 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4963 # Find out which ABI we are using.
4964 echo 'int i;' > conftest.$ac_ext
4965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4966 (eval $ac_compile) 2>&5
4967 ac_status=$?
4968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; then
4970 case `/usr/bin/file conftest.o` in
4971 *32-bit*)
4972 case $host in
4973 x86_64-*kfreebsd*-gnu)
4974 LD="${LD-ld} -m elf_i386_fbsd"
4975 ;;
4976 x86_64-*linux*)
4977 LD="${LD-ld} -m elf_i386"
4978 ;;
4979 ppc64-*linux*|powerpc64-*linux*)
4980 LD="${LD-ld} -m elf32ppclinux"
4981 ;;
4982 s390x-*linux*)
4983 LD="${LD-ld} -m elf_s390"
4984 ;;
4985 sparc64-*linux*)
4986 LD="${LD-ld} -m elf32_sparc"
4987 ;;
4988 esac
4989 ;;
4990 *64-bit*)
4991 case $host in
4992 x86_64-*kfreebsd*-gnu)
4993 LD="${LD-ld} -m elf_x86_64_fbsd"
4994 ;;
4995 x86_64-*linux*)
4996 LD="${LD-ld} -m elf_x86_64"
4997 ;;
4998 ppc*-*linux*|powerpc*-*linux*)
4999 LD="${LD-ld} -m elf64ppc"
5000 ;;
5001 s390*-*linux*|s390*-*tpf*)
5002 LD="${LD-ld} -m elf64_s390"
5003 ;;
5004 sparc*-*linux*)
5005 LD="${LD-ld} -m elf64_sparc"
5006 ;;
5007 esac
5008 ;;
5009 esac
5010 fi
5011 rm -rf conftest*
5012 ;;
5013
5014 *-*-sco3.2v5*)
5015 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5016 SAVE_CFLAGS="$CFLAGS"
5017 CFLAGS="$CFLAGS -belf"
5018 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5019 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5020 if test "${lt_cv_cc_needs_belf+set}" = set; then
5021 $as_echo_n "(cached) " >&6
5022 else
5023 ac_ext=c
5024 ac_cpp='$CPP $CPPFLAGS'
5025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5028
5029 cat >conftest.$ac_ext <<_ACEOF
5030 /* confdefs.h. */
5031 _ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5035
5036 int
5037 main ()
5038 {
5039
5040 ;
5041 return 0;
5042 }
5043 _ACEOF
5044 rm -f conftest.$ac_objext conftest$ac_exeext
5045 if { (ac_try="$ac_link"
5046 case "(($ac_try" in
5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048 *) ac_try_echo=$ac_try;;
5049 esac
5050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5051 $as_echo "$ac_try_echo") >&5
5052 (eval "$ac_link") 2>conftest.er1
5053 ac_status=$?
5054 grep -v '^ *+' conftest.er1 >conftest.err
5055 rm -f conftest.er1
5056 cat conftest.err >&5
5057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } && {
5059 test -z "$ac_c_werror_flag" ||
5060 test ! -s conftest.err
5061 } && test -s conftest$ac_exeext && {
5062 test "$cross_compiling" = yes ||
5063 $as_test_x conftest$ac_exeext
5064 }; then
5065 lt_cv_cc_needs_belf=yes
5066 else
5067 $as_echo "$as_me: failed program was:" >&5
5068 sed 's/^/| /' conftest.$ac_ext >&5
5069
5070 lt_cv_cc_needs_belf=no
5071 fi
5072
5073 rm -rf conftest.dSYM
5074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5075 conftest$ac_exeext conftest.$ac_ext
5076 ac_ext=c
5077 ac_cpp='$CPP $CPPFLAGS'
5078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5081
5082 fi
5083 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5084 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5085 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5086 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5087 CFLAGS="$SAVE_CFLAGS"
5088 fi
5089 ;;
5090 sparc*-*solaris*)
5091 # Find out which ABI we are using.
5092 echo 'int i;' > conftest.$ac_ext
5093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5094 (eval $ac_compile) 2>&5
5095 ac_status=$?
5096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); }; then
5098 case `/usr/bin/file conftest.o` in
5099 *64-bit*)
5100 case $lt_cv_prog_gnu_ld in
5101 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5102 *)
5103 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5104 LD="${LD-ld} -64"
5105 fi
5106 ;;
5107 esac
5108 ;;
5109 esac
5110 fi
5111 rm -rf conftest*
5112 ;;
5113 esac
5114
5115 need_locks="$enable_libtool_lock"
5116
5117
5118 case $host_os in
5119 rhapsody* | darwin*)
5120 if test -n "$ac_tool_prefix"; then
5121 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5122 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5123 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5124 $as_echo_n "checking for $ac_word... " >&6; }
5125 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5126 $as_echo_n "(cached) " >&6
5127 else
5128 if test -n "$DSYMUTIL"; then
5129 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5130 else
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 for as_dir in $PATH
5133 do
5134 IFS=$as_save_IFS
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5139 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 break 2
5141 fi
5142 done
5143 done
5144 IFS=$as_save_IFS
5145
5146 fi
5147 fi
5148 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5149 if test -n "$DSYMUTIL"; then
5150 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5151 $as_echo "$DSYMUTIL" >&6; }
5152 else
5153 { $as_echo "$as_me:$LINENO: result: no" >&5
5154 $as_echo "no" >&6; }
5155 fi
5156
5157
5158 fi
5159 if test -z "$ac_cv_prog_DSYMUTIL"; then
5160 ac_ct_DSYMUTIL=$DSYMUTIL
5161 # Extract the first word of "dsymutil", so it can be a program name with args.
5162 set dummy dsymutil; ac_word=$2
5163 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5164 $as_echo_n "checking for $ac_word... " >&6; }
5165 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5166 $as_echo_n "(cached) " >&6
5167 else
5168 if test -n "$ac_ct_DSYMUTIL"; then
5169 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5170 else
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5173 do
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5178 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5179 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 break 2
5181 fi
5182 done
5183 done
5184 IFS=$as_save_IFS
5185
5186 fi
5187 fi
5188 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5189 if test -n "$ac_ct_DSYMUTIL"; then
5190 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5191 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5192 else
5193 { $as_echo "$as_me:$LINENO: result: no" >&5
5194 $as_echo "no" >&6; }
5195 fi
5196
5197 if test "x$ac_ct_DSYMUTIL" = x; then
5198 DSYMUTIL=":"
5199 else
5200 case $cross_compiling:$ac_tool_warned in
5201 yes:)
5202 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5204 ac_tool_warned=yes ;;
5205 esac
5206 DSYMUTIL=$ac_ct_DSYMUTIL
5207 fi
5208 else
5209 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5210 fi
5211
5212 if test -n "$ac_tool_prefix"; then
5213 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5214 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5215 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5216 $as_echo_n "checking for $ac_word... " >&6; }
5217 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5218 $as_echo_n "(cached) " >&6
5219 else
5220 if test -n "$NMEDIT"; then
5221 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5222 else
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 for as_dir in $PATH
5225 do
5226 IFS=$as_save_IFS
5227 test -z "$as_dir" && as_dir=.
5228 for ac_exec_ext in '' $ac_executable_extensions; do
5229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5230 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5231 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 break 2
5233 fi
5234 done
5235 done
5236 IFS=$as_save_IFS
5237
5238 fi
5239 fi
5240 NMEDIT=$ac_cv_prog_NMEDIT
5241 if test -n "$NMEDIT"; then
5242 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5243 $as_echo "$NMEDIT" >&6; }
5244 else
5245 { $as_echo "$as_me:$LINENO: result: no" >&5
5246 $as_echo "no" >&6; }
5247 fi
5248
5249
5250 fi
5251 if test -z "$ac_cv_prog_NMEDIT"; then
5252 ac_ct_NMEDIT=$NMEDIT
5253 # Extract the first word of "nmedit", so it can be a program name with args.
5254 set dummy nmedit; ac_word=$2
5255 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5256 $as_echo_n "checking for $ac_word... " >&6; }
5257 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5258 $as_echo_n "(cached) " >&6
5259 else
5260 if test -n "$ac_ct_NMEDIT"; then
5261 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5262 else
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH
5265 do
5266 IFS=$as_save_IFS
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5270 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 break 2
5273 fi
5274 done
5275 done
5276 IFS=$as_save_IFS
5277
5278 fi
5279 fi
5280 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5281 if test -n "$ac_ct_NMEDIT"; then
5282 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5283 $as_echo "$ac_ct_NMEDIT" >&6; }
5284 else
5285 { $as_echo "$as_me:$LINENO: result: no" >&5
5286 $as_echo "no" >&6; }
5287 fi
5288
5289 if test "x$ac_ct_NMEDIT" = x; then
5290 NMEDIT=":"
5291 else
5292 case $cross_compiling:$ac_tool_warned in
5293 yes:)
5294 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5296 ac_tool_warned=yes ;;
5297 esac
5298 NMEDIT=$ac_ct_NMEDIT
5299 fi
5300 else
5301 NMEDIT="$ac_cv_prog_NMEDIT"
5302 fi
5303
5304 if test -n "$ac_tool_prefix"; then
5305 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5306 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5307 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5308 $as_echo_n "checking for $ac_word... " >&6; }
5309 if test "${ac_cv_prog_LIPO+set}" = set; then
5310 $as_echo_n "(cached) " >&6
5311 else
5312 if test -n "$LIPO"; then
5313 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5314 else
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH
5317 do
5318 IFS=$as_save_IFS
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5323 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 break 2
5325 fi
5326 done
5327 done
5328 IFS=$as_save_IFS
5329
5330 fi
5331 fi
5332 LIPO=$ac_cv_prog_LIPO
5333 if test -n "$LIPO"; then
5334 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5335 $as_echo "$LIPO" >&6; }
5336 else
5337 { $as_echo "$as_me:$LINENO: result: no" >&5
5338 $as_echo "no" >&6; }
5339 fi
5340
5341
5342 fi
5343 if test -z "$ac_cv_prog_LIPO"; then
5344 ac_ct_LIPO=$LIPO
5345 # Extract the first word of "lipo", so it can be a program name with args.
5346 set dummy lipo; ac_word=$2
5347 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5348 $as_echo_n "checking for $ac_word... " >&6; }
5349 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5350 $as_echo_n "(cached) " >&6
5351 else
5352 if test -n "$ac_ct_LIPO"; then
5353 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5354 else
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5357 do
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362 ac_cv_prog_ac_ct_LIPO="lipo"
5363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 break 2
5365 fi
5366 done
5367 done
5368 IFS=$as_save_IFS
5369
5370 fi
5371 fi
5372 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5373 if test -n "$ac_ct_LIPO"; then
5374 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5375 $as_echo "$ac_ct_LIPO" >&6; }
5376 else
5377 { $as_echo "$as_me:$LINENO: result: no" >&5
5378 $as_echo "no" >&6; }
5379 fi
5380
5381 if test "x$ac_ct_LIPO" = x; then
5382 LIPO=":"
5383 else
5384 case $cross_compiling:$ac_tool_warned in
5385 yes:)
5386 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5388 ac_tool_warned=yes ;;
5389 esac
5390 LIPO=$ac_ct_LIPO
5391 fi
5392 else
5393 LIPO="$ac_cv_prog_LIPO"
5394 fi
5395
5396 if test -n "$ac_tool_prefix"; then
5397 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5398 set dummy ${ac_tool_prefix}otool; ac_word=$2
5399 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if test "${ac_cv_prog_OTOOL+set}" = set; then
5402 $as_echo_n "(cached) " >&6
5403 else
5404 if test -n "$OTOOL"; then
5405 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5406 else
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5409 do
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5414 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 break 2
5417 fi
5418 done
5419 done
5420 IFS=$as_save_IFS
5421
5422 fi
5423 fi
5424 OTOOL=$ac_cv_prog_OTOOL
5425 if test -n "$OTOOL"; then
5426 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
5427 $as_echo "$OTOOL" >&6; }
5428 else
5429 { $as_echo "$as_me:$LINENO: result: no" >&5
5430 $as_echo "no" >&6; }
5431 fi
5432
5433
5434 fi
5435 if test -z "$ac_cv_prog_OTOOL"; then
5436 ac_ct_OTOOL=$OTOOL
5437 # Extract the first word of "otool", so it can be a program name with args.
5438 set dummy otool; ac_word=$2
5439 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5440 $as_echo_n "checking for $ac_word... " >&6; }
5441 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5442 $as_echo_n "(cached) " >&6
5443 else
5444 if test -n "$ac_ct_OTOOL"; then
5445 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5446 else
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH
5449 do
5450 IFS=$as_save_IFS
5451 test -z "$as_dir" && as_dir=.
5452 for ac_exec_ext in '' $ac_executable_extensions; do
5453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5454 ac_cv_prog_ac_ct_OTOOL="otool"
5455 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5456 break 2
5457 fi
5458 done
5459 done
5460 IFS=$as_save_IFS
5461
5462 fi
5463 fi
5464 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5465 if test -n "$ac_ct_OTOOL"; then
5466 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5467 $as_echo "$ac_ct_OTOOL" >&6; }
5468 else
5469 { $as_echo "$as_me:$LINENO: result: no" >&5
5470 $as_echo "no" >&6; }
5471 fi
5472
5473 if test "x$ac_ct_OTOOL" = x; then
5474 OTOOL=":"
5475 else
5476 case $cross_compiling:$ac_tool_warned in
5477 yes:)
5478 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5480 ac_tool_warned=yes ;;
5481 esac
5482 OTOOL=$ac_ct_OTOOL
5483 fi
5484 else
5485 OTOOL="$ac_cv_prog_OTOOL"
5486 fi
5487
5488 if test -n "$ac_tool_prefix"; then
5489 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5490 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5491 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5492 $as_echo_n "checking for $ac_word... " >&6; }
5493 if test "${ac_cv_prog_OTOOL64+set}" = set; then
5494 $as_echo_n "(cached) " >&6
5495 else
5496 if test -n "$OTOOL64"; then
5497 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5498 else
5499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500 for as_dir in $PATH
5501 do
5502 IFS=$as_save_IFS
5503 test -z "$as_dir" && as_dir=.
5504 for ac_exec_ext in '' $ac_executable_extensions; do
5505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5506 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5507 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5508 break 2
5509 fi
5510 done
5511 done
5512 IFS=$as_save_IFS
5513
5514 fi
5515 fi
5516 OTOOL64=$ac_cv_prog_OTOOL64
5517 if test -n "$OTOOL64"; then
5518 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
5519 $as_echo "$OTOOL64" >&6; }
5520 else
5521 { $as_echo "$as_me:$LINENO: result: no" >&5
5522 $as_echo "no" >&6; }
5523 fi
5524
5525
5526 fi
5527 if test -z "$ac_cv_prog_OTOOL64"; then
5528 ac_ct_OTOOL64=$OTOOL64
5529 # Extract the first word of "otool64", so it can be a program name with args.
5530 set dummy otool64; ac_word=$2
5531 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5532 $as_echo_n "checking for $ac_word... " >&6; }
5533 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5534 $as_echo_n "(cached) " >&6
5535 else
5536 if test -n "$ac_ct_OTOOL64"; then
5537 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5538 else
5539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 for as_dir in $PATH
5541 do
5542 IFS=$as_save_IFS
5543 test -z "$as_dir" && as_dir=.
5544 for ac_exec_ext in '' $ac_executable_extensions; do
5545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5546 ac_cv_prog_ac_ct_OTOOL64="otool64"
5547 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5548 break 2
5549 fi
5550 done
5551 done
5552 IFS=$as_save_IFS
5553
5554 fi
5555 fi
5556 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5557 if test -n "$ac_ct_OTOOL64"; then
5558 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5559 $as_echo "$ac_ct_OTOOL64" >&6; }
5560 else
5561 { $as_echo "$as_me:$LINENO: result: no" >&5
5562 $as_echo "no" >&6; }
5563 fi
5564
5565 if test "x$ac_ct_OTOOL64" = x; then
5566 OTOOL64=":"
5567 else
5568 case $cross_compiling:$ac_tool_warned in
5569 yes:)
5570 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5572 ac_tool_warned=yes ;;
5573 esac
5574 OTOOL64=$ac_ct_OTOOL64
5575 fi
5576 else
5577 OTOOL64="$ac_cv_prog_OTOOL64"
5578 fi
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5607 $as_echo_n "checking for -single_module linker flag... " >&6; }
5608 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5609 $as_echo_n "(cached) " >&6
5610 else
5611 lt_cv_apple_cc_single_mod=no
5612 if test -z "${LT_MULTI_MODULE}"; then
5613 # By default we will add the -single_module flag. You can override
5614 # by either setting the environment variable LT_MULTI_MODULE
5615 # non-empty at configure time, or by adding -multi_module to the
5616 # link flags.
5617 rm -rf libconftest.dylib*
5618 echo "int foo(void){return 1;}" > conftest.c
5619 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5620 -dynamiclib -Wl,-single_module conftest.c" >&5
5621 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5622 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5623 _lt_result=$?
5624 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5625 lt_cv_apple_cc_single_mod=yes
5626 else
5627 cat conftest.err >&5
5628 fi
5629 rm -rf libconftest.dylib*
5630 rm -f conftest.*
5631 fi
5632 fi
5633 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5634 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5635 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5636 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5637 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5638 $as_echo_n "(cached) " >&6
5639 else
5640 lt_cv_ld_exported_symbols_list=no
5641 save_LDFLAGS=$LDFLAGS
5642 echo "_main" > conftest.sym
5643 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5644 cat >conftest.$ac_ext <<_ACEOF
5645 /* confdefs.h. */
5646 _ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5650
5651 int
5652 main ()
5653 {
5654
5655 ;
5656 return 0;
5657 }
5658 _ACEOF
5659 rm -f conftest.$ac_objext conftest$ac_exeext
5660 if { (ac_try="$ac_link"
5661 case "(($ac_try" in
5662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663 *) ac_try_echo=$ac_try;;
5664 esac
5665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5666 $as_echo "$ac_try_echo") >&5
5667 (eval "$ac_link") 2>conftest.er1
5668 ac_status=$?
5669 grep -v '^ *+' conftest.er1 >conftest.err
5670 rm -f conftest.er1
5671 cat conftest.err >&5
5672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } && {
5674 test -z "$ac_c_werror_flag" ||
5675 test ! -s conftest.err
5676 } && test -s conftest$ac_exeext && {
5677 test "$cross_compiling" = yes ||
5678 $as_test_x conftest$ac_exeext
5679 }; then
5680 lt_cv_ld_exported_symbols_list=yes
5681 else
5682 $as_echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5684
5685 lt_cv_ld_exported_symbols_list=no
5686 fi
5687
5688 rm -rf conftest.dSYM
5689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5690 conftest$ac_exeext conftest.$ac_ext
5691 LDFLAGS="$save_LDFLAGS"
5692
5693 fi
5694 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5695 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5696 case $host_os in
5697 rhapsody* | darwin1.[012])
5698 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5699 darwin1.*)
5700 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5701 darwin*) # darwin 5.x on
5702 # if running on 10.5 or later, the deployment target defaults
5703 # to the OS version, if on x86, and 10.4, the deployment
5704 # target defaults to 10.4. Don't you love it?
5705 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5706 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5707 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5708 10.[012]*)
5709 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5710 10.*)
5711 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5712 esac
5713 ;;
5714 esac
5715 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5716 _lt_dar_single_mod='$single_module'
5717 fi
5718 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5719 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5720 else
5721 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5722 fi
5723 if test "$DSYMUTIL" != ":"; then
5724 _lt_dsymutil='~$DSYMUTIL $lib || :'
5725 else
5726 _lt_dsymutil=
5727 fi
5728 ;;
5729 esac
5730
5731 ac_ext=c
5732 ac_cpp='$CPP $CPPFLAGS'
5733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5736 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5737 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5738 # On Suns, sometimes $CPP names a directory.
5739 if test -n "$CPP" && test -d "$CPP"; then
5740 CPP=
5741 fi
5742 if test -z "$CPP"; then
5743 if test "${ac_cv_prog_CPP+set}" = set; then
5744 $as_echo_n "(cached) " >&6
5745 else
5746 # Double quotes because CPP needs to be expanded
5747 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5748 do
5749 ac_preproc_ok=false
5750 for ac_c_preproc_warn_flag in '' yes
5751 do
5752 # Use a header file that comes with gcc, so configuring glibc
5753 # with a fresh cross-compiler works.
5754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5755 # <limits.h> exists even on freestanding compilers.
5756 # On the NeXT, cc -E runs the code through the compiler's parser,
5757 # not just through cpp. "Syntax error" is here to catch this case.
5758 cat >conftest.$ac_ext <<_ACEOF
5759 /* confdefs.h. */
5760 _ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5764 #ifdef __STDC__
5765 # include <limits.h>
5766 #else
5767 # include <assert.h>
5768 #endif
5769 Syntax error
5770 _ACEOF
5771 if { (ac_try="$ac_cpp conftest.$ac_ext"
5772 case "(($ac_try" in
5773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774 *) ac_try_echo=$ac_try;;
5775 esac
5776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5777 $as_echo "$ac_try_echo") >&5
5778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5779 ac_status=$?
5780 grep -v '^ *+' conftest.er1 >conftest.err
5781 rm -f conftest.er1
5782 cat conftest.err >&5
5783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } >/dev/null && {
5785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5786 test ! -s conftest.err
5787 }; then
5788 :
5789 else
5790 $as_echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5792
5793 # Broken: fails on valid input.
5794 continue
5795 fi
5796
5797 rm -f conftest.err conftest.$ac_ext
5798
5799 # OK, works on sane cases. Now check whether nonexistent headers
5800 # can be detected and how.
5801 cat >conftest.$ac_ext <<_ACEOF
5802 /* confdefs.h. */
5803 _ACEOF
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5807 #include <ac_nonexistent.h>
5808 _ACEOF
5809 if { (ac_try="$ac_cpp conftest.$ac_ext"
5810 case "(($ac_try" in
5811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5812 *) ac_try_echo=$ac_try;;
5813 esac
5814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5815 $as_echo "$ac_try_echo") >&5
5816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5817 ac_status=$?
5818 grep -v '^ *+' conftest.er1 >conftest.err
5819 rm -f conftest.er1
5820 cat conftest.err >&5
5821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } >/dev/null && {
5823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5824 test ! -s conftest.err
5825 }; then
5826 # Broken: success on invalid input.
5827 continue
5828 else
5829 $as_echo "$as_me: failed program was:" >&5
5830 sed 's/^/| /' conftest.$ac_ext >&5
5831
5832 # Passes both tests.
5833 ac_preproc_ok=:
5834 break
5835 fi
5836
5837 rm -f conftest.err conftest.$ac_ext
5838
5839 done
5840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5841 rm -f conftest.err conftest.$ac_ext
5842 if $ac_preproc_ok; then
5843 break
5844 fi
5845
5846 done
5847 ac_cv_prog_CPP=$CPP
5848
5849 fi
5850 CPP=$ac_cv_prog_CPP
5851 else
5852 ac_cv_prog_CPP=$CPP
5853 fi
5854 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5855 $as_echo "$CPP" >&6; }
5856 ac_preproc_ok=false
5857 for ac_c_preproc_warn_flag in '' yes
5858 do
5859 # Use a header file that comes with gcc, so configuring glibc
5860 # with a fresh cross-compiler works.
5861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5862 # <limits.h> exists even on freestanding compilers.
5863 # On the NeXT, cc -E runs the code through the compiler's parser,
5864 # not just through cpp. "Syntax error" is here to catch this case.
5865 cat >conftest.$ac_ext <<_ACEOF
5866 /* confdefs.h. */
5867 _ACEOF
5868 cat confdefs.h >>conftest.$ac_ext
5869 cat >>conftest.$ac_ext <<_ACEOF
5870 /* end confdefs.h. */
5871 #ifdef __STDC__
5872 # include <limits.h>
5873 #else
5874 # include <assert.h>
5875 #endif
5876 Syntax error
5877 _ACEOF
5878 if { (ac_try="$ac_cpp conftest.$ac_ext"
5879 case "(($ac_try" in
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5882 esac
5883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5884 $as_echo "$ac_try_echo") >&5
5885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5886 ac_status=$?
5887 grep -v '^ *+' conftest.er1 >conftest.err
5888 rm -f conftest.er1
5889 cat conftest.err >&5
5890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } >/dev/null && {
5892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5893 test ! -s conftest.err
5894 }; then
5895 :
5896 else
5897 $as_echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5899
5900 # Broken: fails on valid input.
5901 continue
5902 fi
5903
5904 rm -f conftest.err conftest.$ac_ext
5905
5906 # OK, works on sane cases. Now check whether nonexistent headers
5907 # can be detected and how.
5908 cat >conftest.$ac_ext <<_ACEOF
5909 /* confdefs.h. */
5910 _ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h. */
5914 #include <ac_nonexistent.h>
5915 _ACEOF
5916 if { (ac_try="$ac_cpp conftest.$ac_ext"
5917 case "(($ac_try" in
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5920 esac
5921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5922 $as_echo "$ac_try_echo") >&5
5923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5924 ac_status=$?
5925 grep -v '^ *+' conftest.er1 >conftest.err
5926 rm -f conftest.er1
5927 cat conftest.err >&5
5928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } >/dev/null && {
5930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5931 test ! -s conftest.err
5932 }; then
5933 # Broken: success on invalid input.
5934 continue
5935 else
5936 $as_echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5938
5939 # Passes both tests.
5940 ac_preproc_ok=:
5941 break
5942 fi
5943
5944 rm -f conftest.err conftest.$ac_ext
5945
5946 done
5947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5948 rm -f conftest.err conftest.$ac_ext
5949 if $ac_preproc_ok; then
5950 :
5951 else
5952 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5954 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5955 See \`config.log' for more details." >&5
5956 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5957 See \`config.log' for more details." >&2;}
5958 { (exit 1); exit 1; }; }; }
5959 fi
5960
5961 ac_ext=c
5962 ac_cpp='$CPP $CPPFLAGS'
5963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5966
5967
5968 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5969 $as_echo_n "checking for ANSI C header files... " >&6; }
5970 if test "${ac_cv_header_stdc+set}" = set; then
5971 $as_echo_n "(cached) " >&6
5972 else
5973 cat >conftest.$ac_ext <<_ACEOF
5974 /* confdefs.h. */
5975 _ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5979 #include <stdlib.h>
5980 #include <stdarg.h>
5981 #include <string.h>
5982 #include <float.h>
5983
5984 int
5985 main ()
5986 {
5987
5988 ;
5989 return 0;
5990 }
5991 _ACEOF
5992 rm -f conftest.$ac_objext
5993 if { (ac_try="$ac_compile"
5994 case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5997 esac
5998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5999 $as_echo "$ac_try_echo") >&5
6000 (eval "$ac_compile") 2>conftest.er1
6001 ac_status=$?
6002 grep -v '^ *+' conftest.er1 >conftest.err
6003 rm -f conftest.er1
6004 cat conftest.err >&5
6005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } && {
6007 test -z "$ac_c_werror_flag" ||
6008 test ! -s conftest.err
6009 } && test -s conftest.$ac_objext; then
6010 ac_cv_header_stdc=yes
6011 else
6012 $as_echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6014
6015 ac_cv_header_stdc=no
6016 fi
6017
6018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019
6020 if test $ac_cv_header_stdc = yes; then
6021 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6022 cat >conftest.$ac_ext <<_ACEOF
6023 /* confdefs.h. */
6024 _ACEOF
6025 cat confdefs.h >>conftest.$ac_ext
6026 cat >>conftest.$ac_ext <<_ACEOF
6027 /* end confdefs.h. */
6028 #include <string.h>
6029
6030 _ACEOF
6031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6032 $EGREP "memchr" >/dev/null 2>&1; then
6033 :
6034 else
6035 ac_cv_header_stdc=no
6036 fi
6037 rm -f conftest*
6038
6039 fi
6040
6041 if test $ac_cv_header_stdc = yes; then
6042 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6043 cat >conftest.$ac_ext <<_ACEOF
6044 /* confdefs.h. */
6045 _ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6049 #include <stdlib.h>
6050
6051 _ACEOF
6052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6053 $EGREP "free" >/dev/null 2>&1; then
6054 :
6055 else
6056 ac_cv_header_stdc=no
6057 fi
6058 rm -f conftest*
6059
6060 fi
6061
6062 if test $ac_cv_header_stdc = yes; then
6063 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6064 if test "$cross_compiling" = yes; then
6065 :
6066 else
6067 cat >conftest.$ac_ext <<_ACEOF
6068 /* confdefs.h. */
6069 _ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6073 #include <ctype.h>
6074 #include <stdlib.h>
6075 #if ((' ' & 0x0FF) == 0x020)
6076 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6077 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6078 #else
6079 # define ISLOWER(c) \
6080 (('a' <= (c) && (c) <= 'i') \
6081 || ('j' <= (c) && (c) <= 'r') \
6082 || ('s' <= (c) && (c) <= 'z'))
6083 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6084 #endif
6085
6086 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6087 int
6088 main ()
6089 {
6090 int i;
6091 for (i = 0; i < 256; i++)
6092 if (XOR (islower (i), ISLOWER (i))
6093 || toupper (i) != TOUPPER (i))
6094 return 2;
6095 return 0;
6096 }
6097 _ACEOF
6098 rm -f conftest$ac_exeext
6099 if { (ac_try="$ac_link"
6100 case "(($ac_try" in
6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102 *) ac_try_echo=$ac_try;;
6103 esac
6104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6105 $as_echo "$ac_try_echo") >&5
6106 (eval "$ac_link") 2>&5
6107 ac_status=$?
6108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6110 { (case "(($ac_try" in
6111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6112 *) ac_try_echo=$ac_try;;
6113 esac
6114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6115 $as_echo "$ac_try_echo") >&5
6116 (eval "$ac_try") 2>&5
6117 ac_status=$?
6118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 :
6121 else
6122 $as_echo "$as_me: program exited with status $ac_status" >&5
6123 $as_echo "$as_me: failed program was:" >&5
6124 sed 's/^/| /' conftest.$ac_ext >&5
6125
6126 ( exit $ac_status )
6127 ac_cv_header_stdc=no
6128 fi
6129 rm -rf conftest.dSYM
6130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6131 fi
6132
6133
6134 fi
6135 fi
6136 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6137 $as_echo "$ac_cv_header_stdc" >&6; }
6138 if test $ac_cv_header_stdc = yes; then
6139
6140 cat >>confdefs.h <<\_ACEOF
6141 #define STDC_HEADERS 1
6142 _ACEOF
6143
6144 fi
6145
6146 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6157 inttypes.h stdint.h unistd.h
6158 do
6159 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6160 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6161 $as_echo_n "checking for $ac_header... " >&6; }
6162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6163 $as_echo_n "(cached) " >&6
6164 else
6165 cat >conftest.$ac_ext <<_ACEOF
6166 /* confdefs.h. */
6167 _ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6171 $ac_includes_default
6172
6173 #include <$ac_header>
6174 _ACEOF
6175 rm -f conftest.$ac_objext
6176 if { (ac_try="$ac_compile"
6177 case "(($ac_try" in
6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6180 esac
6181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6182 $as_echo "$ac_try_echo") >&5
6183 (eval "$ac_compile") 2>conftest.er1
6184 ac_status=$?
6185 grep -v '^ *+' conftest.er1 >conftest.err
6186 rm -f conftest.er1
6187 cat conftest.err >&5
6188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); } && {
6190 test -z "$ac_c_werror_flag" ||
6191 test ! -s conftest.err
6192 } && test -s conftest.$ac_objext; then
6193 eval "$as_ac_Header=yes"
6194 else
6195 $as_echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6197
6198 eval "$as_ac_Header=no"
6199 fi
6200
6201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202 fi
6203 ac_res=`eval 'as_val=${'$as_ac_Header'}
6204 $as_echo "$as_val"'`
6205 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6206 $as_echo "$ac_res" >&6; }
6207 as_val=`eval 'as_val=${'$as_ac_Header'}
6208 $as_echo "$as_val"'`
6209 if test "x$as_val" = x""yes; then
6210 cat >>confdefs.h <<_ACEOF
6211 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6212 _ACEOF
6213
6214 fi
6215
6216 done
6217
6218
6219
6220 for ac_header in dlfcn.h
6221 do
6222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6223 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6224 $as_echo_n "checking for $ac_header... " >&6; }
6225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6226 $as_echo_n "(cached) " >&6
6227 else
6228 cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h. */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 $ac_includes_default
6235
6236 #include <$ac_header>
6237 _ACEOF
6238 rm -f conftest.$ac_objext
6239 if { (ac_try="$ac_compile"
6240 case "(($ac_try" in
6241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242 *) ac_try_echo=$ac_try;;
6243 esac
6244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6245 $as_echo "$ac_try_echo") >&5
6246 (eval "$ac_compile") 2>conftest.er1
6247 ac_status=$?
6248 grep -v '^ *+' conftest.er1 >conftest.err
6249 rm -f conftest.er1
6250 cat conftest.err >&5
6251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } && {
6253 test -z "$ac_c_werror_flag" ||
6254 test ! -s conftest.err
6255 } && test -s conftest.$ac_objext; then
6256 eval "$as_ac_Header=yes"
6257 else
6258 $as_echo "$as_me: failed program was:" >&5
6259 sed 's/^/| /' conftest.$ac_ext >&5
6260
6261 eval "$as_ac_Header=no"
6262 fi
6263
6264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265 fi
6266 ac_res=`eval 'as_val=${'$as_ac_Header'}
6267 $as_echo "$as_val"'`
6268 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6269 $as_echo "$ac_res" >&6; }
6270 as_val=`eval 'as_val=${'$as_ac_Header'}
6271 $as_echo "$as_val"'`
6272 if test "x$as_val" = x""yes; then
6273 cat >>confdefs.h <<_ACEOF
6274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6275 _ACEOF
6276
6277 fi
6278
6279 done
6280
6281
6282
6283 # Set options
6284
6285
6286
6287 enable_dlopen=no
6288
6289
6290 enable_win32_dll=no
6291
6292
6293 # Check whether --enable-shared was given.
6294 if test "${enable_shared+set}" = set; then
6295 enableval=$enable_shared; p=${PACKAGE-default}
6296 case $enableval in
6297 yes) enable_shared=yes ;;
6298 no) enable_shared=no ;;
6299 *)
6300 enable_shared=no
6301 # Look at the argument we got. We use all the common list separators.
6302 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6303 for pkg in $enableval; do
6304 IFS="$lt_save_ifs"
6305 if test "X$pkg" = "X$p"; then
6306 enable_shared=yes
6307 fi
6308 done
6309 IFS="$lt_save_ifs"
6310 ;;
6311 esac
6312 else
6313 enable_shared=yes
6314 fi
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324 # Check whether --enable-static was given.
6325 if test "${enable_static+set}" = set; then
6326 enableval=$enable_static; p=${PACKAGE-default}
6327 case $enableval in
6328 yes) enable_static=yes ;;
6329 no) enable_static=no ;;
6330 *)
6331 enable_static=no
6332 # Look at the argument we got. We use all the common list separators.
6333 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6334 for pkg in $enableval; do
6335 IFS="$lt_save_ifs"
6336 if test "X$pkg" = "X$p"; then
6337 enable_static=yes
6338 fi
6339 done
6340 IFS="$lt_save_ifs"
6341 ;;
6342 esac
6343 else
6344 enable_static=yes
6345 fi
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356 # Check whether --with-pic was given.
6357 if test "${with_pic+set}" = set; then
6358 withval=$with_pic; pic_mode="$withval"
6359 else
6360 pic_mode=default
6361 fi
6362
6363
6364 test -z "$pic_mode" && pic_mode=default
6365
6366
6367
6368
6369
6370
6371
6372 # Check whether --enable-fast-install was given.
6373 if test "${enable_fast_install+set}" = set; then
6374 enableval=$enable_fast_install; p=${PACKAGE-default}
6375 case $enableval in
6376 yes) enable_fast_install=yes ;;
6377 no) enable_fast_install=no ;;
6378 *)
6379 enable_fast_install=no
6380 # Look at the argument we got. We use all the common list separators.
6381 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6382 for pkg in $enableval; do
6383 IFS="$lt_save_ifs"
6384 if test "X$pkg" = "X$p"; then
6385 enable_fast_install=yes
6386 fi
6387 done
6388 IFS="$lt_save_ifs"
6389 ;;
6390 esac
6391 else
6392 enable_fast_install=yes
6393 fi
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405 # This can be used to rebuild libtool when needed
6406 LIBTOOL_DEPS="$ltmain"
6407
6408 # Always use our own libtool.
6409 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435 test -z "$LN_S" && LN_S="ln -s"
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450 if test -n "${ZSH_VERSION+set}" ; then
6451 setopt NO_GLOB_SUBST
6452 fi
6453
6454 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6455 $as_echo_n "checking for objdir... " >&6; }
6456 if test "${lt_cv_objdir+set}" = set; then
6457 $as_echo_n "(cached) " >&6
6458 else
6459 rm -f .libs 2>/dev/null
6460 mkdir .libs 2>/dev/null
6461 if test -d .libs; then
6462 lt_cv_objdir=.libs
6463 else
6464 # MS-DOS does not allow filenames that begin with a dot.
6465 lt_cv_objdir=_libs
6466 fi
6467 rmdir .libs 2>/dev/null
6468 fi
6469 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6470 $as_echo "$lt_cv_objdir" >&6; }
6471 objdir=$lt_cv_objdir
6472
6473
6474
6475
6476
6477 cat >>confdefs.h <<_ACEOF
6478 #define LT_OBJDIR "$lt_cv_objdir/"
6479 _ACEOF
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497 case $host_os in
6498 aix3*)
6499 # AIX sometimes has problems with the GCC collect2 program. For some
6500 # reason, if we set the COLLECT_NAMES environment variable, the problems
6501 # vanish in a puff of smoke.
6502 if test "X${COLLECT_NAMES+set}" != Xset; then
6503 COLLECT_NAMES=
6504 export COLLECT_NAMES
6505 fi
6506 ;;
6507 esac
6508
6509 # Sed substitution that helps us do robust quoting. It backslashifies
6510 # metacharacters that are still active within double-quoted strings.
6511 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6512
6513 # Same as above, but do not quote variable references.
6514 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6515
6516 # Sed substitution to delay expansion of an escaped shell variable in a
6517 # double_quote_subst'ed string.
6518 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6519
6520 # Sed substitution to delay expansion of an escaped single quote.
6521 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6522
6523 # Sed substitution to avoid accidental globbing in evaled expressions
6524 no_glob_subst='s/\*/\\\*/g'
6525
6526 # Global variables:
6527 ofile=libtool
6528 can_build_shared=yes
6529
6530 # All known linkers require a `.a' archive for static linking (except MSVC,
6531 # which needs '.lib').
6532 libext=a
6533
6534 with_gnu_ld="$lt_cv_prog_gnu_ld"
6535
6536 old_CC="$CC"
6537 old_CFLAGS="$CFLAGS"
6538
6539 # Set sane defaults for various variables
6540 test -z "$CC" && CC=cc
6541 test -z "$LTCC" && LTCC=$CC
6542 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6543 test -z "$LD" && LD=ld
6544 test -z "$ac_objext" && ac_objext=o
6545
6546 for cc_temp in $compiler""; do
6547 case $cc_temp in
6548 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6549 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6550 \-*) ;;
6551 *) break;;
6552 esac
6553 done
6554 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6555
6556
6557 # Only perform the check for file, if the check method requires it
6558 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6559 case $deplibs_check_method in
6560 file_magic*)
6561 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6562 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6563 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6564 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6565 $as_echo_n "(cached) " >&6
6566 else
6567 case $MAGIC_CMD in
6568 [\\/*] | ?:[\\/]*)
6569 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6570 ;;
6571 *)
6572 lt_save_MAGIC_CMD="$MAGIC_CMD"
6573 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6574 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6575 for ac_dir in $ac_dummy; do
6576 IFS="$lt_save_ifs"
6577 test -z "$ac_dir" && ac_dir=.
6578 if test -f $ac_dir/${ac_tool_prefix}file; then
6579 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6580 if test -n "$file_magic_test_file"; then
6581 case $deplibs_check_method in
6582 "file_magic "*)
6583 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6584 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6585 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6586 $EGREP "$file_magic_regex" > /dev/null; then
6587 :
6588 else
6589 cat <<_LT_EOF 1>&2
6590
6591 *** Warning: the command libtool uses to detect shared libraries,
6592 *** $file_magic_cmd, produces output that libtool cannot recognize.
6593 *** The result is that libtool may fail to recognize shared libraries
6594 *** as such. This will affect the creation of libtool libraries that
6595 *** depend on shared libraries, but programs linked with such libtool
6596 *** libraries will work regardless of this problem. Nevertheless, you
6597 *** may want to report the problem to your system manager and/or to
6598 *** [email protected]
6599
6600 _LT_EOF
6601 fi ;;
6602 esac
6603 fi
6604 break
6605 fi
6606 done
6607 IFS="$lt_save_ifs"
6608 MAGIC_CMD="$lt_save_MAGIC_CMD"
6609 ;;
6610 esac
6611 fi
6612
6613 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6614 if test -n "$MAGIC_CMD"; then
6615 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6616 $as_echo "$MAGIC_CMD" >&6; }
6617 else
6618 { $as_echo "$as_me:$LINENO: result: no" >&5
6619 $as_echo "no" >&6; }
6620 fi
6621
6622
6623
6624
6625
6626 if test -z "$lt_cv_path_MAGIC_CMD"; then
6627 if test -n "$ac_tool_prefix"; then
6628 { $as_echo "$as_me:$LINENO: checking for file" >&5
6629 $as_echo_n "checking for file... " >&6; }
6630 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6631 $as_echo_n "(cached) " >&6
6632 else
6633 case $MAGIC_CMD in
6634 [\\/*] | ?:[\\/]*)
6635 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6636 ;;
6637 *)
6638 lt_save_MAGIC_CMD="$MAGIC_CMD"
6639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6640 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6641 for ac_dir in $ac_dummy; do
6642 IFS="$lt_save_ifs"
6643 test -z "$ac_dir" && ac_dir=.
6644 if test -f $ac_dir/file; then
6645 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6646 if test -n "$file_magic_test_file"; then
6647 case $deplibs_check_method in
6648 "file_magic "*)
6649 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6650 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6651 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6652 $EGREP "$file_magic_regex" > /dev/null; then
6653 :
6654 else
6655 cat <<_LT_EOF 1>&2
6656
6657 *** Warning: the command libtool uses to detect shared libraries,
6658 *** $file_magic_cmd, produces output that libtool cannot recognize.
6659 *** The result is that libtool may fail to recognize shared libraries
6660 *** as such. This will affect the creation of libtool libraries that
6661 *** depend on shared libraries, but programs linked with such libtool
6662 *** libraries will work regardless of this problem. Nevertheless, you
6663 *** may want to report the problem to your system manager and/or to
6664 *** [email protected]
6665
6666 _LT_EOF
6667 fi ;;
6668 esac
6669 fi
6670 break
6671 fi
6672 done
6673 IFS="$lt_save_ifs"
6674 MAGIC_CMD="$lt_save_MAGIC_CMD"
6675 ;;
6676 esac
6677 fi
6678
6679 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6680 if test -n "$MAGIC_CMD"; then
6681 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6682 $as_echo "$MAGIC_CMD" >&6; }
6683 else
6684 { $as_echo "$as_me:$LINENO: result: no" >&5
6685 $as_echo "no" >&6; }
6686 fi
6687
6688
6689 else
6690 MAGIC_CMD=:
6691 fi
6692 fi
6693
6694 fi
6695 ;;
6696 esac
6697
6698 # Use C for the default configuration in the libtool script
6699
6700 lt_save_CC="$CC"
6701 ac_ext=c
6702 ac_cpp='$CPP $CPPFLAGS'
6703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6706
6707
6708 # Source file extension for C test sources.
6709 ac_ext=c
6710
6711 # Object file extension for compiled C test sources.
6712 objext=o
6713 objext=$objext
6714
6715 # Code to be used in simple compile tests
6716 lt_simple_compile_test_code="int some_variable = 0;"
6717
6718 # Code to be used in simple link tests
6719 lt_simple_link_test_code='int main(){return(0);}'
6720
6721
6722
6723
6724
6725
6726
6727 # If no C compiler was specified, use CC.
6728 LTCC=${LTCC-"$CC"}
6729
6730 # If no C compiler flags were specified, use CFLAGS.
6731 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6732
6733 # Allow CC to be a program name with arguments.
6734 compiler=$CC
6735
6736 # Save the default compiler, since it gets overwritten when the other
6737 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6738 compiler_DEFAULT=$CC
6739
6740 # save warnings/boilerplate of simple test code
6741 ac_outfile=conftest.$ac_objext
6742 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6743 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6744 _lt_compiler_boilerplate=`cat conftest.err`
6745 $RM conftest*
6746
6747 ac_outfile=conftest.$ac_objext
6748 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6749 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6750 _lt_linker_boilerplate=`cat conftest.err`
6751 $RM -r conftest*
6752
6753
6754 ## CAVEAT EMPTOR:
6755 ## There is no encapsulation within the following macros, do not change
6756 ## the running order or otherwise move them around unless you know exactly
6757 ## what you are doing...
6758 if test -n "$compiler"; then
6759
6760 lt_prog_compiler_no_builtin_flag=
6761
6762 if test "$GCC" = yes; then
6763 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6764
6765 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6766 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6767 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6768 $as_echo_n "(cached) " >&6
6769 else
6770 lt_cv_prog_compiler_rtti_exceptions=no
6771 ac_outfile=conftest.$ac_objext
6772 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6773 lt_compiler_flag="-fno-rtti -fno-exceptions"
6774 # Insert the option either (1) after the last *FLAGS variable, or
6775 # (2) before a word containing "conftest.", or (3) at the end.
6776 # Note that $ac_compile itself does not contain backslashes and begins
6777 # with a dollar sign (not a hyphen), so the echo should work correctly.
6778 # The option is referenced via a variable to avoid confusing sed.
6779 lt_compile=`echo "$ac_compile" | $SED \
6780 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6782 -e 's:$: $lt_compiler_flag:'`
6783 (eval echo "\"\$as_me:6783: $lt_compile\"" >&5)
6784 (eval "$lt_compile" 2>conftest.err)
6785 ac_status=$?
6786 cat conftest.err >&5
6787 echo "$as_me:6787: \$? = $ac_status" >&5
6788 if (exit $ac_status) && test -s "$ac_outfile"; then
6789 # The compiler can only warn and ignore the option if not recognized
6790 # So say no if there are warnings other than the usual output.
6791 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6793 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6794 lt_cv_prog_compiler_rtti_exceptions=yes
6795 fi
6796 fi
6797 $RM conftest*
6798
6799 fi
6800 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6801 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6802
6803 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6804 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6805 else
6806 :
6807 fi
6808
6809 fi
6810
6811
6812
6813
6814
6815
6816 lt_prog_compiler_wl=
6817 lt_prog_compiler_pic=
6818 lt_prog_compiler_static=
6819
6820 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6821 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6822
6823 if test "$GCC" = yes; then
6824 lt_prog_compiler_wl='-Wl,'
6825 lt_prog_compiler_static='-static'
6826
6827 case $host_os in
6828 aix*)
6829 # All AIX code is PIC.
6830 if test "$host_cpu" = ia64; then
6831 # AIX 5 now supports IA64 processor
6832 lt_prog_compiler_static='-Bstatic'
6833 fi
6834 ;;
6835
6836 amigaos*)
6837 case $host_cpu in
6838 powerpc)
6839 # see comment about AmigaOS4 .so support
6840 lt_prog_compiler_pic='-fPIC'
6841 ;;
6842 m68k)
6843 # FIXME: we need at least 68020 code to build shared libraries, but
6844 # adding the `-m68020' flag to GCC prevents building anything better,
6845 # like `-m68040'.
6846 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6847 ;;
6848 esac
6849 ;;
6850
6851 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6852 # PIC is the default for these OSes.
6853 ;;
6854
6855 mingw* | cygwin* | pw32* | os2* | cegcc*)
6856 # This hack is so that the source file can tell whether it is being
6857 # built for inclusion in a dll (and should export symbols for example).
6858 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6859 # (--disable-auto-import) libraries
6860 lt_prog_compiler_pic='-DDLL_EXPORT'
6861 ;;
6862
6863 darwin* | rhapsody*)
6864 # PIC is the default on this platform
6865 # Common symbols not allowed in MH_DYLIB files
6866 lt_prog_compiler_pic='-fno-common'
6867 ;;
6868
6869 hpux*)
6870 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6871 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6872 # sets the default TLS model and affects inlining.
6873 case $host_cpu in
6874 hppa*64*)
6875 # +Z the default
6876 ;;
6877 *)
6878 lt_prog_compiler_pic='-fPIC'
6879 ;;
6880 esac
6881 ;;
6882
6883 interix[3-9]*)
6884 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6885 # Instead, we relocate shared libraries at runtime.
6886 ;;
6887
6888 msdosdjgpp*)
6889 # Just because we use GCC doesn't mean we suddenly get shared libraries
6890 # on systems that don't support them.
6891 lt_prog_compiler_can_build_shared=no
6892 enable_shared=no
6893 ;;
6894
6895 *nto* | *qnx*)
6896 # QNX uses GNU C++, but need to define -shared option too, otherwise
6897 # it will coredump.
6898 lt_prog_compiler_pic='-fPIC -shared'
6899 ;;
6900
6901 sysv4*MP*)
6902 if test -d /usr/nec; then
6903 lt_prog_compiler_pic=-Kconform_pic
6904 fi
6905 ;;
6906
6907 *)
6908 lt_prog_compiler_pic='-fPIC'
6909 ;;
6910 esac
6911 else
6912 # PORTME Check for flag to pass linker flags through the system compiler.
6913 case $host_os in
6914 aix*)
6915 lt_prog_compiler_wl='-Wl,'
6916 if test "$host_cpu" = ia64; then
6917 # AIX 5 now supports IA64 processor
6918 lt_prog_compiler_static='-Bstatic'
6919 else
6920 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6921 fi
6922 ;;
6923
6924 mingw* | cygwin* | pw32* | os2* | cegcc*)
6925 # This hack is so that the source file can tell whether it is being
6926 # built for inclusion in a dll (and should export symbols for example).
6927 lt_prog_compiler_pic='-DDLL_EXPORT'
6928 ;;
6929
6930 hpux9* | hpux10* | hpux11*)
6931 lt_prog_compiler_wl='-Wl,'
6932 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6933 # not for PA HP-UX.
6934 case $host_cpu in
6935 hppa*64*|ia64*)
6936 # +Z the default
6937 ;;
6938 *)
6939 lt_prog_compiler_pic='+Z'
6940 ;;
6941 esac
6942 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6943 lt_prog_compiler_static='${wl}-a ${wl}archive'
6944 ;;
6945
6946 irix5* | irix6* | nonstopux*)
6947 lt_prog_compiler_wl='-Wl,'
6948 # PIC (with -KPIC) is the default.
6949 lt_prog_compiler_static='-non_shared'
6950 ;;
6951
6952 linux* | k*bsd*-gnu)
6953 case $cc_basename in
6954 # old Intel for x86_64 which still supported -KPIC.
6955 ecc*)
6956 lt_prog_compiler_wl='-Wl,'
6957 lt_prog_compiler_pic='-KPIC'
6958 lt_prog_compiler_static='-static'
6959 ;;
6960 # icc used to be incompatible with GCC.
6961 # ICC 10 doesn't accept -KPIC any more.
6962 icc* | ifort*)
6963 lt_prog_compiler_wl='-Wl,'
6964 lt_prog_compiler_pic='-fPIC'
6965 lt_prog_compiler_static='-static'
6966 ;;
6967 # Lahey Fortran 8.1.
6968 lf95*)
6969 lt_prog_compiler_wl='-Wl,'
6970 lt_prog_compiler_pic='--shared'
6971 lt_prog_compiler_static='--static'
6972 ;;
6973 pgcc* | pgf77* | pgf90* | pgf95*)
6974 # Portland Group compilers (*not* the Pentium gcc compiler,
6975 # which looks to be a dead project)
6976 lt_prog_compiler_wl='-Wl,'
6977 lt_prog_compiler_pic='-fpic'
6978 lt_prog_compiler_static='-Bstatic'
6979 ;;
6980 ccc*)
6981 lt_prog_compiler_wl='-Wl,'
6982 # All Alpha code is PIC.
6983 lt_prog_compiler_static='-non_shared'
6984 ;;
6985 xl*)
6986 # IBM XL C 8.0/Fortran 10.1 on PPC
6987 lt_prog_compiler_wl='-Wl,'
6988 lt_prog_compiler_pic='-qpic'
6989 lt_prog_compiler_static='-qstaticlink'
6990 ;;
6991 *)
6992 case `$CC -V 2>&1 | sed 5q` in
6993 *Sun\ C*)
6994 # Sun C 5.9
6995 lt_prog_compiler_pic='-KPIC'
6996 lt_prog_compiler_static='-Bstatic'
6997 lt_prog_compiler_wl='-Wl,'
6998 ;;
6999 *Sun\ F*)
7000 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7001 lt_prog_compiler_pic='-KPIC'
7002 lt_prog_compiler_static='-Bstatic'
7003 lt_prog_compiler_wl=''
7004 ;;
7005 esac
7006 ;;
7007 esac
7008 ;;
7009
7010 newsos6)
7011 lt_prog_compiler_pic='-KPIC'
7012 lt_prog_compiler_static='-Bstatic'
7013 ;;
7014
7015 *nto* | *qnx*)
7016 # QNX uses GNU C++, but need to define -shared option too, otherwise
7017 # it will coredump.
7018 lt_prog_compiler_pic='-fPIC -shared'
7019 ;;
7020
7021 osf3* | osf4* | osf5*)
7022 lt_prog_compiler_wl='-Wl,'
7023 # All OSF/1 code is PIC.
7024 lt_prog_compiler_static='-non_shared'
7025 ;;
7026
7027 rdos*)
7028 lt_prog_compiler_static='-non_shared'
7029 ;;
7030
7031 solaris*)
7032 lt_prog_compiler_pic='-KPIC'
7033 lt_prog_compiler_static='-Bstatic'
7034 case $cc_basename in
7035 f77* | f90* | f95*)
7036 lt_prog_compiler_wl='-Qoption ld ';;
7037 *)
7038 lt_prog_compiler_wl='-Wl,';;
7039 esac
7040 ;;
7041
7042 sunos4*)
7043 lt_prog_compiler_wl='-Qoption ld '
7044 lt_prog_compiler_pic='-PIC'
7045 lt_prog_compiler_static='-Bstatic'
7046 ;;
7047
7048 sysv4 | sysv4.2uw2* | sysv4.3*)
7049 lt_prog_compiler_wl='-Wl,'
7050 lt_prog_compiler_pic='-KPIC'
7051 lt_prog_compiler_static='-Bstatic'
7052 ;;
7053
7054 sysv4*MP*)
7055 if test -d /usr/nec ;then
7056 lt_prog_compiler_pic='-Kconform_pic'
7057 lt_prog_compiler_static='-Bstatic'
7058 fi
7059 ;;
7060
7061 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7062 lt_prog_compiler_wl='-Wl,'
7063 lt_prog_compiler_pic='-KPIC'
7064 lt_prog_compiler_static='-Bstatic'
7065 ;;
7066
7067 unicos*)
7068 lt_prog_compiler_wl='-Wl,'
7069 lt_prog_compiler_can_build_shared=no
7070 ;;
7071
7072 uts4*)
7073 lt_prog_compiler_pic='-pic'
7074 lt_prog_compiler_static='-Bstatic'
7075 ;;
7076
7077 *)
7078 lt_prog_compiler_can_build_shared=no
7079 ;;
7080 esac
7081 fi
7082
7083 case $host_os in
7084 # For platforms which do not support PIC, -DPIC is meaningless:
7085 *djgpp*)
7086 lt_prog_compiler_pic=
7087 ;;
7088 *)
7089 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7090 ;;
7091 esac
7092 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7093 $as_echo "$lt_prog_compiler_pic" >&6; }
7094
7095
7096
7097
7098
7099
7100 #
7101 # Check to make sure the PIC flag actually works.
7102 #
7103 if test -n "$lt_prog_compiler_pic"; then
7104 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7105 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7106 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7107 $as_echo_n "(cached) " >&6
7108 else
7109 lt_cv_prog_compiler_pic_works=no
7110 ac_outfile=conftest.$ac_objext
7111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7112 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7113 # Insert the option either (1) after the last *FLAGS variable, or
7114 # (2) before a word containing "conftest.", or (3) at the end.
7115 # Note that $ac_compile itself does not contain backslashes and begins
7116 # with a dollar sign (not a hyphen), so the echo should work correctly.
7117 # The option is referenced via a variable to avoid confusing sed.
7118 lt_compile=`echo "$ac_compile" | $SED \
7119 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7121 -e 's:$: $lt_compiler_flag:'`
7122 (eval echo "\"\$as_me:7122: $lt_compile\"" >&5)
7123 (eval "$lt_compile" 2>conftest.err)
7124 ac_status=$?
7125 cat conftest.err >&5
7126 echo "$as_me:7126: \$? = $ac_status" >&5
7127 if (exit $ac_status) && test -s "$ac_outfile"; then
7128 # The compiler can only warn and ignore the option if not recognized
7129 # So say no if there are warnings other than the usual output.
7130 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7132 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7133 lt_cv_prog_compiler_pic_works=yes
7134 fi
7135 fi
7136 $RM conftest*
7137
7138 fi
7139 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7140 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7141
7142 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7143 case $lt_prog_compiler_pic in
7144 "" | " "*) ;;
7145 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7146 esac
7147 else
7148 lt_prog_compiler_pic=
7149 lt_prog_compiler_can_build_shared=no
7150 fi
7151
7152 fi
7153
7154
7155
7156
7157
7158
7159 #
7160 # Check to make sure the static flag actually works.
7161 #
7162 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7163 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7164 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7165 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7166 $as_echo_n "(cached) " >&6
7167 else
7168 lt_cv_prog_compiler_static_works=no
7169 save_LDFLAGS="$LDFLAGS"
7170 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7171 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7172 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7173 # The linker can only warn and ignore the option if not recognized
7174 # So say no if there are warnings
7175 if test -s conftest.err; then
7176 # Append any errors to the config.log.
7177 cat conftest.err 1>&5
7178 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7179 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7180 if diff conftest.exp conftest.er2 >/dev/null; then
7181 lt_cv_prog_compiler_static_works=yes
7182 fi
7183 else
7184 lt_cv_prog_compiler_static_works=yes
7185 fi
7186 fi
7187 $RM -r conftest*
7188 LDFLAGS="$save_LDFLAGS"
7189
7190 fi
7191 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7192 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7193
7194 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7195 :
7196 else
7197 lt_prog_compiler_static=
7198 fi
7199
7200
7201
7202
7203
7204
7205
7206 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7207 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7208 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7209 $as_echo_n "(cached) " >&6
7210 else
7211 lt_cv_prog_compiler_c_o=no
7212 $RM -r conftest 2>/dev/null
7213 mkdir conftest
7214 cd conftest
7215 mkdir out
7216 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7217
7218 lt_compiler_flag="-o out/conftest2.$ac_objext"
7219 # Insert the option either (1) after the last *FLAGS variable, or
7220 # (2) before a word containing "conftest.", or (3) at the end.
7221 # Note that $ac_compile itself does not contain backslashes and begins
7222 # with a dollar sign (not a hyphen), so the echo should work correctly.
7223 lt_compile=`echo "$ac_compile" | $SED \
7224 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7226 -e 's:$: $lt_compiler_flag:'`
7227 (eval echo "\"\$as_me:7227: $lt_compile\"" >&5)
7228 (eval "$lt_compile" 2>out/conftest.err)
7229 ac_status=$?
7230 cat out/conftest.err >&5
7231 echo "$as_me:7231: \$? = $ac_status" >&5
7232 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7233 then
7234 # The compiler can only warn and ignore the option if not recognized
7235 # So say no if there are warnings
7236 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7237 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7238 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7239 lt_cv_prog_compiler_c_o=yes
7240 fi
7241 fi
7242 chmod u+w . 2>&5
7243 $RM conftest*
7244 # SGI C++ compiler will create directory out/ii_files/ for
7245 # template instantiation
7246 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7247 $RM out/* && rmdir out
7248 cd ..
7249 $RM -r conftest
7250 $RM conftest*
7251
7252 fi
7253 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7254 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7255
7256
7257
7258
7259
7260
7261 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7262 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7263 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7264 $as_echo_n "(cached) " >&6
7265 else
7266 lt_cv_prog_compiler_c_o=no
7267 $RM -r conftest 2>/dev/null
7268 mkdir conftest
7269 cd conftest
7270 mkdir out
7271 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7272
7273 lt_compiler_flag="-o out/conftest2.$ac_objext"
7274 # Insert the option either (1) after the last *FLAGS variable, or
7275 # (2) before a word containing "conftest.", or (3) at the end.
7276 # Note that $ac_compile itself does not contain backslashes and begins
7277 # with a dollar sign (not a hyphen), so the echo should work correctly.
7278 lt_compile=`echo "$ac_compile" | $SED \
7279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7281 -e 's:$: $lt_compiler_flag:'`
7282 (eval echo "\"\$as_me:7282: $lt_compile\"" >&5)
7283 (eval "$lt_compile" 2>out/conftest.err)
7284 ac_status=$?
7285 cat out/conftest.err >&5
7286 echo "$as_me:7286: \$? = $ac_status" >&5
7287 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7288 then
7289 # The compiler can only warn and ignore the option if not recognized
7290 # So say no if there are warnings
7291 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7292 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7293 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7294 lt_cv_prog_compiler_c_o=yes
7295 fi
7296 fi
7297 chmod u+w . 2>&5
7298 $RM conftest*
7299 # SGI C++ compiler will create directory out/ii_files/ for
7300 # template instantiation
7301 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7302 $RM out/* && rmdir out
7303 cd ..
7304 $RM -r conftest
7305 $RM conftest*
7306
7307 fi
7308 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7309 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7310
7311
7312
7313
7314 hard_links="nottested"
7315 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7316 # do not overwrite the value of need_locks provided by the user
7317 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7318 $as_echo_n "checking if we can lock with hard links... " >&6; }
7319 hard_links=yes
7320 $RM conftest*
7321 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7322 touch conftest.a
7323 ln conftest.a conftest.b 2>&5 || hard_links=no
7324 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7325 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7326 $as_echo "$hard_links" >&6; }
7327 if test "$hard_links" = no; then
7328 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7329 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7330 need_locks=warn
7331 fi
7332 else
7333 need_locks=no
7334 fi
7335
7336
7337
7338
7339
7340
7341 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7342 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7343
7344 runpath_var=
7345 allow_undefined_flag=
7346 always_export_symbols=no
7347 archive_cmds=
7348 archive_expsym_cmds=
7349 compiler_needs_object=no
7350 enable_shared_with_static_runtimes=no
7351 export_dynamic_flag_spec=
7352 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7353 hardcode_automatic=no
7354 hardcode_direct=no
7355 hardcode_direct_absolute=no
7356 hardcode_libdir_flag_spec=
7357 hardcode_libdir_flag_spec_ld=
7358 hardcode_libdir_separator=
7359 hardcode_minus_L=no
7360 hardcode_shlibpath_var=unsupported
7361 inherit_rpath=no
7362 link_all_deplibs=unknown
7363 module_cmds=
7364 module_expsym_cmds=
7365 old_archive_from_new_cmds=
7366 old_archive_from_expsyms_cmds=
7367 thread_safe_flag_spec=
7368 whole_archive_flag_spec=
7369 # include_expsyms should be a list of space-separated symbols to be *always*
7370 # included in the symbol list
7371 include_expsyms=
7372 # exclude_expsyms can be an extended regexp of symbols to exclude
7373 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7374 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7375 # as well as any symbol that contains `d'.
7376 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7377 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7378 # platforms (ab)use it in PIC code, but their linkers get confused if
7379 # the symbol is explicitly referenced. Since portable code cannot
7380 # rely on this symbol name, it's probably fine to never include it in
7381 # preloaded symbol tables.
7382 # Exclude shared library initialization/finalization symbols.
7383 extract_expsyms_cmds=
7384
7385 case $host_os in
7386 cygwin* | mingw* | pw32* | cegcc*)
7387 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7388 # When not using gcc, we currently assume that we are using
7389 # Microsoft Visual C++.
7390 if test "$GCC" != yes; then
7391 with_gnu_ld=no
7392 fi
7393 ;;
7394 interix*)
7395 # we just hope/assume this is gcc and not c89 (= MSVC++)
7396 with_gnu_ld=yes
7397 ;;
7398 openbsd*)
7399 with_gnu_ld=no
7400 ;;
7401 esac
7402
7403 ld_shlibs=yes
7404 if test "$with_gnu_ld" = yes; then
7405 # If archive_cmds runs LD, not CC, wlarc should be empty
7406 wlarc='${wl}'
7407
7408 # Set some defaults for GNU ld with shared library support. These
7409 # are reset later if shared libraries are not supported. Putting them
7410 # here allows them to be overridden if necessary.
7411 runpath_var=LD_RUN_PATH
7412 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7413 export_dynamic_flag_spec='${wl}--export-dynamic'
7414 # ancient GNU ld didn't support --whole-archive et. al.
7415 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7416 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7417 else
7418 whole_archive_flag_spec=
7419 fi
7420 supports_anon_versioning=no
7421 case `$LD -v 2>&1` in
7422 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7423 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7424 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7425 *\ 2.11.*) ;; # other 2.11 versions
7426 *) supports_anon_versioning=yes ;;
7427 esac
7428
7429 # See if GNU ld supports shared libraries.
7430 case $host_os in
7431 aix[3-9]*)
7432 # On AIX/PPC, the GNU linker is very broken
7433 if test "$host_cpu" != ia64; then
7434 ld_shlibs=no
7435 cat <<_LT_EOF 1>&2
7436
7437 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7438 *** to be unable to reliably create shared libraries on AIX.
7439 *** Therefore, libtool is disabling shared libraries support. If you
7440 *** really care for shared libraries, you may want to modify your PATH
7441 *** so that a non-GNU linker is found, and then restart.
7442
7443 _LT_EOF
7444 fi
7445 ;;
7446
7447 amigaos*)
7448 case $host_cpu in
7449 powerpc)
7450 # see comment about AmigaOS4 .so support
7451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7452 archive_expsym_cmds=''
7453 ;;
7454 m68k)
7455 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)'
7456 hardcode_libdir_flag_spec='-L$libdir'
7457 hardcode_minus_L=yes
7458 ;;
7459 esac
7460 ;;
7461
7462 beos*)
7463 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7464 allow_undefined_flag=unsupported
7465 # Joseph Beckenbach <[email protected]> says some releases of gcc
7466 # support --undefined. This deserves some investigation. FIXME
7467 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7468 else
7469 ld_shlibs=no
7470 fi
7471 ;;
7472
7473 cygwin* | mingw* | pw32* | cegcc*)
7474 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7475 # as there is no search path for DLLs.
7476 hardcode_libdir_flag_spec='-L$libdir'
7477 allow_undefined_flag=unsupported
7478 always_export_symbols=no
7479 enable_shared_with_static_runtimes=yes
7480 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7481
7482 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7484 # If the export-symbols file already is a .def file (1st line
7485 # is EXPORTS), use it as is; otherwise, prepend...
7486 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7487 cp $export_symbols $output_objdir/$soname.def;
7488 else
7489 echo EXPORTS > $output_objdir/$soname.def;
7490 cat $export_symbols >> $output_objdir/$soname.def;
7491 fi~
7492 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7493 else
7494 ld_shlibs=no
7495 fi
7496 ;;
7497
7498 interix[3-9]*)
7499 hardcode_direct=no
7500 hardcode_shlibpath_var=no
7501 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7502 export_dynamic_flag_spec='${wl}-E'
7503 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7504 # Instead, shared libraries are loaded at an image base (0x10000000 by
7505 # default) and relocated if they conflict, which is a slow very memory
7506 # consuming and fragmenting process. To avoid this, we pick a random,
7507 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7508 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7509 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7510 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'
7511 ;;
7512
7513 gnu* | linux* | tpf* | k*bsd*-gnu)
7514 tmp_diet=no
7515 if test "$host_os" = linux-dietlibc; then
7516 case $cc_basename in
7517 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7518 esac
7519 fi
7520 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7521 && test "$tmp_diet" = no
7522 then
7523 tmp_addflag=
7524 tmp_sharedflag='-shared'
7525 case $cc_basename,$host_cpu in
7526 pgcc*) # Portland Group C compiler
7527 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'
7528 tmp_addflag=' $pic_flag'
7529 ;;
7530 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7531 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'
7532 tmp_addflag=' $pic_flag -Mnomain' ;;
7533 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7534 tmp_addflag=' -i_dynamic' ;;
7535 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7536 tmp_addflag=' -i_dynamic -nofor_main' ;;
7537 ifc* | ifort*) # Intel Fortran compiler
7538 tmp_addflag=' -nofor_main' ;;
7539 lf95*) # Lahey Fortran 8.1
7540 whole_archive_flag_spec=
7541 tmp_sharedflag='--shared' ;;
7542 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7543 tmp_sharedflag='-qmkshrobj'
7544 tmp_addflag= ;;
7545 esac
7546 case `$CC -V 2>&1 | sed 5q` in
7547 *Sun\ C*) # Sun C 5.9
7548 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'
7549 compiler_needs_object=yes
7550 tmp_sharedflag='-G' ;;
7551 *Sun\ F*) # Sun Fortran 8.3
7552 tmp_sharedflag='-G' ;;
7553 esac
7554 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7555
7556 if test "x$supports_anon_versioning" = xyes; then
7557 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7558 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7559 echo "local: *; };" >> $output_objdir/$libname.ver~
7560 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7561 fi
7562
7563 case $cc_basename in
7564 xlf*)
7565 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7566 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7567 hardcode_libdir_flag_spec=
7568 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7569 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7570 if test "x$supports_anon_versioning" = xyes; then
7571 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7572 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7573 echo "local: *; };" >> $output_objdir/$libname.ver~
7574 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7575 fi
7576 ;;
7577 esac
7578 else
7579 ld_shlibs=no
7580 fi
7581 ;;
7582
7583 netbsd*)
7584 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7585 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7586 wlarc=
7587 else
7588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7589 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7590 fi
7591 ;;
7592
7593 solaris*)
7594 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7595 ld_shlibs=no
7596 cat <<_LT_EOF 1>&2
7597
7598 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7599 *** create shared libraries on Solaris systems. Therefore, libtool
7600 *** is disabling shared libraries support. We urge you to upgrade GNU
7601 *** binutils to release 2.9.1 or newer. Another option is to modify
7602 *** your PATH or compiler configuration so that the native linker is
7603 *** used, and then restart.
7604
7605 _LT_EOF
7606 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7608 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7609 else
7610 ld_shlibs=no
7611 fi
7612 ;;
7613
7614 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7615 case `$LD -v 2>&1` in
7616 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7617 ld_shlibs=no
7618 cat <<_LT_EOF 1>&2
7619
7620 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7621 *** reliably create shared libraries on SCO systems. Therefore, libtool
7622 *** is disabling shared libraries support. We urge you to upgrade GNU
7623 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7624 *** your PATH or compiler configuration so that the native linker is
7625 *** used, and then restart.
7626
7627 _LT_EOF
7628 ;;
7629 *)
7630 # For security reasons, it is highly recommended that you always
7631 # use absolute paths for naming shared libraries, and exclude the
7632 # DT_RUNPATH tag from executables and libraries. But doing so
7633 # requires that you compile everything twice, which is a pain.
7634 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7636 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7637 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7638 else
7639 ld_shlibs=no
7640 fi
7641 ;;
7642 esac
7643 ;;
7644
7645 sunos4*)
7646 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7647 wlarc=
7648 hardcode_direct=yes
7649 hardcode_shlibpath_var=no
7650 ;;
7651
7652 *)
7653 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7655 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7656 else
7657 ld_shlibs=no
7658 fi
7659 ;;
7660 esac
7661
7662 if test "$ld_shlibs" = no; then
7663 runpath_var=
7664 hardcode_libdir_flag_spec=
7665 export_dynamic_flag_spec=
7666 whole_archive_flag_spec=
7667 fi
7668 else
7669 # PORTME fill in a description of your system's linker (not GNU ld)
7670 case $host_os in
7671 aix3*)
7672 allow_undefined_flag=unsupported
7673 always_export_symbols=yes
7674 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'
7675 # Note: this linker hardcodes the directories in LIBPATH if there
7676 # are no directories specified by -L.
7677 hardcode_minus_L=yes
7678 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7679 # Neither direct hardcoding nor static linking is supported with a
7680 # broken collect2.
7681 hardcode_direct=unsupported
7682 fi
7683 ;;
7684
7685 aix[4-9]*)
7686 if test "$host_cpu" = ia64; then
7687 # On IA64, the linker does run time linking by default, so we don't
7688 # have to do anything special.
7689 aix_use_runtimelinking=no
7690 exp_sym_flag='-Bexport'
7691 no_entry_flag=""
7692 else
7693 # If we're using GNU nm, then we don't want the "-C" option.
7694 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7695 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7696 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'
7697 else
7698 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'
7699 fi
7700 aix_use_runtimelinking=no
7701
7702 # Test if we are trying to use run time linking or normal
7703 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7704 # need to do runtime linking.
7705 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7706 for ld_flag in $LDFLAGS; do
7707 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7708 aix_use_runtimelinking=yes
7709 break
7710 fi
7711 done
7712 ;;
7713 esac
7714
7715 exp_sym_flag='-bexport'
7716 no_entry_flag='-bnoentry'
7717 fi
7718
7719 # When large executables or shared objects are built, AIX ld can
7720 # have problems creating the table of contents. If linking a library
7721 # or program results in "error TOC overflow" add -mminimal-toc to
7722 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7723 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7724
7725 archive_cmds=''
7726 hardcode_direct=yes
7727 hardcode_direct_absolute=yes
7728 hardcode_libdir_separator=':'
7729 link_all_deplibs=yes
7730 file_list_spec='${wl}-f,'
7731
7732 if test "$GCC" = yes; then
7733 case $host_os in aix4.[012]|aix4.[012].*)
7734 # We only want to do this on AIX 4.2 and lower, the check
7735 # below for broken collect2 doesn't work under 4.3+
7736 collect2name=`${CC} -print-prog-name=collect2`
7737 if test -f "$collect2name" &&
7738 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7739 then
7740 # We have reworked collect2
7741 :
7742 else
7743 # We have old collect2
7744 hardcode_direct=unsupported
7745 # It fails to find uninstalled libraries when the uninstalled
7746 # path is not listed in the libpath. Setting hardcode_minus_L
7747 # to unsupported forces relinking
7748 hardcode_minus_L=yes
7749 hardcode_libdir_flag_spec='-L$libdir'
7750 hardcode_libdir_separator=
7751 fi
7752 ;;
7753 esac
7754 shared_flag='-shared'
7755 if test "$aix_use_runtimelinking" = yes; then
7756 shared_flag="$shared_flag "'${wl}-G'
7757 fi
7758 else
7759 # not using gcc
7760 if test "$host_cpu" = ia64; then
7761 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7762 # chokes on -Wl,-G. The following line is correct:
7763 shared_flag='-G'
7764 else
7765 if test "$aix_use_runtimelinking" = yes; then
7766 shared_flag='${wl}-G'
7767 else
7768 shared_flag='${wl}-bM:SRE'
7769 fi
7770 fi
7771 fi
7772
7773 export_dynamic_flag_spec='${wl}-bexpall'
7774 # It seems that -bexpall does not export symbols beginning with
7775 # underscore (_), so it is better to generate a list of symbols to export.
7776 always_export_symbols=yes
7777 if test "$aix_use_runtimelinking" = yes; then
7778 # Warning - without using the other runtime loading flags (-brtl),
7779 # -berok will link without error, but may produce a broken library.
7780 allow_undefined_flag='-berok'
7781 # Determine the default libpath from the value encoded in an
7782 # empty executable.
7783 cat >conftest.$ac_ext <<_ACEOF
7784 /* confdefs.h. */
7785 _ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7789
7790 int
7791 main ()
7792 {
7793
7794 ;
7795 return 0;
7796 }
7797 _ACEOF
7798 rm -f conftest.$ac_objext conftest$ac_exeext
7799 if { (ac_try="$ac_link"
7800 case "(($ac_try" in
7801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802 *) ac_try_echo=$ac_try;;
7803 esac
7804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7805 $as_echo "$ac_try_echo") >&5
7806 (eval "$ac_link") 2>conftest.er1
7807 ac_status=$?
7808 grep -v '^ *+' conftest.er1 >conftest.err
7809 rm -f conftest.er1
7810 cat conftest.err >&5
7811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } && {
7813 test -z "$ac_c_werror_flag" ||
7814 test ! -s conftest.err
7815 } && test -s conftest$ac_exeext && {
7816 test "$cross_compiling" = yes ||
7817 $as_test_x conftest$ac_exeext
7818 }; then
7819
7820 lt_aix_libpath_sed='
7821 /Import File Strings/,/^$/ {
7822 /^0/ {
7823 s/^0 *\(.*\)$/\1/
7824 p
7825 }
7826 }'
7827 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7828 # Check for a 64-bit object if we didn't find anything.
7829 if test -z "$aix_libpath"; then
7830 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7831 fi
7832 else
7833 $as_echo "$as_me: failed program was:" >&5
7834 sed 's/^/| /' conftest.$ac_ext >&5
7835
7836
7837 fi
7838
7839 rm -rf conftest.dSYM
7840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7841 conftest$ac_exeext conftest.$ac_ext
7842 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7843
7844 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7845 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7846 else
7847 if test "$host_cpu" = ia64; then
7848 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7849 allow_undefined_flag="-z nodefs"
7850 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"
7851 else
7852 # Determine the default libpath from the value encoded in an
7853 # empty executable.
7854 cat >conftest.$ac_ext <<_ACEOF
7855 /* confdefs.h. */
7856 _ACEOF
7857 cat confdefs.h >>conftest.$ac_ext
7858 cat >>conftest.$ac_ext <<_ACEOF
7859 /* end confdefs.h. */
7860
7861 int
7862 main ()
7863 {
7864
7865 ;
7866 return 0;
7867 }
7868 _ACEOF
7869 rm -f conftest.$ac_objext conftest$ac_exeext
7870 if { (ac_try="$ac_link"
7871 case "(($ac_try" in
7872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7873 *) ac_try_echo=$ac_try;;
7874 esac
7875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7876 $as_echo "$ac_try_echo") >&5
7877 (eval "$ac_link") 2>conftest.er1
7878 ac_status=$?
7879 grep -v '^ *+' conftest.er1 >conftest.err
7880 rm -f conftest.er1
7881 cat conftest.err >&5
7882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); } && {
7884 test -z "$ac_c_werror_flag" ||
7885 test ! -s conftest.err
7886 } && test -s conftest$ac_exeext && {
7887 test "$cross_compiling" = yes ||
7888 $as_test_x conftest$ac_exeext
7889 }; then
7890
7891 lt_aix_libpath_sed='
7892 /Import File Strings/,/^$/ {
7893 /^0/ {
7894 s/^0 *\(.*\)$/\1/
7895 p
7896 }
7897 }'
7898 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7899 # Check for a 64-bit object if we didn't find anything.
7900 if test -z "$aix_libpath"; then
7901 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7902 fi
7903 else
7904 $as_echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7906
7907
7908 fi
7909
7910 rm -rf conftest.dSYM
7911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7912 conftest$ac_exeext conftest.$ac_ext
7913 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7914
7915 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7916 # Warning - without using the other run time loading flags,
7917 # -berok will link without error, but may produce a broken library.
7918 no_undefined_flag=' ${wl}-bernotok'
7919 allow_undefined_flag=' ${wl}-berok'
7920 # Exported symbols can be pulled into shared objects from archives
7921 whole_archive_flag_spec='$convenience'
7922 archive_cmds_need_lc=yes
7923 # This is similar to how AIX traditionally builds its shared libraries.
7924 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'
7925 fi
7926 fi
7927 ;;
7928
7929 amigaos*)
7930 case $host_cpu in
7931 powerpc)
7932 # see comment about AmigaOS4 .so support
7933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7934 archive_expsym_cmds=''
7935 ;;
7936 m68k)
7937 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)'
7938 hardcode_libdir_flag_spec='-L$libdir'
7939 hardcode_minus_L=yes
7940 ;;
7941 esac
7942 ;;
7943
7944 bsdi[45]*)
7945 export_dynamic_flag_spec=-rdynamic
7946 ;;
7947
7948 cygwin* | mingw* | pw32* | cegcc*)
7949 # When not using gcc, we currently assume that we are using
7950 # Microsoft Visual C++.
7951 # hardcode_libdir_flag_spec is actually meaningless, as there is
7952 # no search path for DLLs.
7953 hardcode_libdir_flag_spec=' '
7954 allow_undefined_flag=unsupported
7955 # Tell ltmain to make .lib files, not .a files.
7956 libext=lib
7957 # Tell ltmain to make .dll files, not .so files.
7958 shrext_cmds=".dll"
7959 # FIXME: Setting linknames here is a bad hack.
7960 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7961 # The linker will automatically build a .lib file if we build a DLL.
7962 old_archive_from_new_cmds='true'
7963 # FIXME: Should let the user specify the lib program.
7964 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7965 fix_srcfile_path='`cygpath -w "$srcfile"`'
7966 enable_shared_with_static_runtimes=yes
7967 ;;
7968
7969 darwin* | rhapsody*)
7970
7971
7972 archive_cmds_need_lc=no
7973 hardcode_direct=no
7974 hardcode_automatic=yes
7975 hardcode_shlibpath_var=unsupported
7976 whole_archive_flag_spec=''
7977 link_all_deplibs=yes
7978 allow_undefined_flag="$_lt_dar_allow_undefined"
7979 case $cc_basename in
7980 ifort*) _lt_dar_can_shared=yes ;;
7981 *) _lt_dar_can_shared=$GCC ;;
7982 esac
7983 if test "$_lt_dar_can_shared" = "yes"; then
7984 output_verbose_link_cmd=echo
7985 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7986 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7987 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}"
7988 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}"
7989
7990 else
7991 ld_shlibs=no
7992 fi
7993
7994 ;;
7995
7996 dgux*)
7997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7998 hardcode_libdir_flag_spec='-L$libdir'
7999 hardcode_shlibpath_var=no
8000 ;;
8001
8002 freebsd1*)
8003 ld_shlibs=no
8004 ;;
8005
8006 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8007 # support. Future versions do this automatically, but an explicit c++rt0.o
8008 # does not break anything, and helps significantly (at the cost of a little
8009 # extra space).
8010 freebsd2.2*)
8011 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8012 hardcode_libdir_flag_spec='-R$libdir'
8013 hardcode_direct=yes
8014 hardcode_shlibpath_var=no
8015 ;;
8016
8017 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8018 freebsd2*)
8019 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8020 hardcode_direct=yes
8021 hardcode_minus_L=yes
8022 hardcode_shlibpath_var=no
8023 ;;
8024
8025 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8026 freebsd* | dragonfly*)
8027 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8028 hardcode_libdir_flag_spec='-R$libdir'
8029 hardcode_direct=yes
8030 hardcode_shlibpath_var=no
8031 ;;
8032
8033 hpux9*)
8034 if test "$GCC" = yes; then
8035 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'
8036 else
8037 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'
8038 fi
8039 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8040 hardcode_libdir_separator=:
8041 hardcode_direct=yes
8042
8043 # hardcode_minus_L: Not really in the search PATH,
8044 # but as the default location of the library.
8045 hardcode_minus_L=yes
8046 export_dynamic_flag_spec='${wl}-E'
8047 ;;
8048
8049 hpux10*)
8050 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8051 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8052 else
8053 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8054 fi
8055 if test "$with_gnu_ld" = no; then
8056 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8057 hardcode_libdir_flag_spec_ld='+b $libdir'
8058 hardcode_libdir_separator=:
8059 hardcode_direct=yes
8060 hardcode_direct_absolute=yes
8061 export_dynamic_flag_spec='${wl}-E'
8062 # hardcode_minus_L: Not really in the search PATH,
8063 # but as the default location of the library.
8064 hardcode_minus_L=yes
8065 fi
8066 ;;
8067
8068 hpux11*)
8069 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8070 case $host_cpu in
8071 hppa*64*)
8072 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8073 ;;
8074 ia64*)
8075 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8076 ;;
8077 *)
8078 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8079 ;;
8080 esac
8081 else
8082 case $host_cpu in
8083 hppa*64*)
8084 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8085 ;;
8086 ia64*)
8087 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8088 ;;
8089 *)
8090 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8091 ;;
8092 esac
8093 fi
8094 if test "$with_gnu_ld" = no; then
8095 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8096 hardcode_libdir_separator=:
8097
8098 case $host_cpu in
8099 hppa*64*|ia64*)
8100 hardcode_direct=no
8101 hardcode_shlibpath_var=no
8102 ;;
8103 *)
8104 hardcode_direct=yes
8105 hardcode_direct_absolute=yes
8106 export_dynamic_flag_spec='${wl}-E'
8107
8108 # hardcode_minus_L: Not really in the search PATH,
8109 # but as the default location of the library.
8110 hardcode_minus_L=yes
8111 ;;
8112 esac
8113 fi
8114 ;;
8115
8116 irix5* | irix6* | nonstopux*)
8117 if test "$GCC" = yes; then
8118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8119 # Try to use the -exported_symbol ld option, if it does not
8120 # work, assume that -exports_file does not work either and
8121 # implicitly export all symbols.
8122 save_LDFLAGS="$LDFLAGS"
8123 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8124 cat >conftest.$ac_ext <<_ACEOF
8125 int foo(void) {}
8126 _ACEOF
8127 rm -f conftest.$ac_objext conftest$ac_exeext
8128 if { (ac_try="$ac_link"
8129 case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8132 esac
8133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8134 $as_echo "$ac_try_echo") >&5
8135 (eval "$ac_link") 2>conftest.er1
8136 ac_status=$?
8137 grep -v '^ *+' conftest.er1 >conftest.err
8138 rm -f conftest.er1
8139 cat conftest.err >&5
8140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } && {
8142 test -z "$ac_c_werror_flag" ||
8143 test ! -s conftest.err
8144 } && test -s conftest$ac_exeext && {
8145 test "$cross_compiling" = yes ||
8146 $as_test_x conftest$ac_exeext
8147 }; then
8148 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8149
8150 else
8151 $as_echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8153
8154
8155 fi
8156
8157 rm -rf conftest.dSYM
8158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8159 conftest$ac_exeext conftest.$ac_ext
8160 LDFLAGS="$save_LDFLAGS"
8161 else
8162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8163 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8164 fi
8165 archive_cmds_need_lc='no'
8166 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8167 hardcode_libdir_separator=:
8168 inherit_rpath=yes
8169 link_all_deplibs=yes
8170 ;;
8171
8172 netbsd*)
8173 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8174 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8175 else
8176 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8177 fi
8178 hardcode_libdir_flag_spec='-R$libdir'
8179 hardcode_direct=yes
8180 hardcode_shlibpath_var=no
8181 ;;
8182
8183 newsos6)
8184 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8185 hardcode_direct=yes
8186 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8187 hardcode_libdir_separator=:
8188 hardcode_shlibpath_var=no
8189 ;;
8190
8191 *nto* | *qnx*)
8192 ;;
8193
8194 openbsd*)
8195 if test -f /usr/libexec/ld.so; then
8196 hardcode_direct=yes
8197 hardcode_shlibpath_var=no
8198 hardcode_direct_absolute=yes
8199 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8200 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8201 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8202 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8203 export_dynamic_flag_spec='${wl}-E'
8204 else
8205 case $host_os in
8206 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8207 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8208 hardcode_libdir_flag_spec='-R$libdir'
8209 ;;
8210 *)
8211 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8212 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8213 ;;
8214 esac
8215 fi
8216 else
8217 ld_shlibs=no
8218 fi
8219 ;;
8220
8221 os2*)
8222 hardcode_libdir_flag_spec='-L$libdir'
8223 hardcode_minus_L=yes
8224 allow_undefined_flag=unsupported
8225 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'
8226 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8227 ;;
8228
8229 osf3*)
8230 if test "$GCC" = yes; then
8231 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8232 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8233 else
8234 allow_undefined_flag=' -expect_unresolved \*'
8235 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8236 fi
8237 archive_cmds_need_lc='no'
8238 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8239 hardcode_libdir_separator=:
8240 ;;
8241
8242 osf4* | osf5*) # as osf3* with the addition of -msym flag
8243 if test "$GCC" = yes; then
8244 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8245 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8246 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8247 else
8248 allow_undefined_flag=' -expect_unresolved \*'
8249 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8250 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8251 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8252
8253 # Both c and cxx compiler support -rpath directly
8254 hardcode_libdir_flag_spec='-rpath $libdir'
8255 fi
8256 archive_cmds_need_lc='no'
8257 hardcode_libdir_separator=:
8258 ;;
8259
8260 solaris*)
8261 no_undefined_flag=' -z defs'
8262 if test "$GCC" = yes; then
8263 wlarc='${wl}'
8264 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8265 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8266 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8267 else
8268 case `$CC -V 2>&1` in
8269 *"Compilers 5.0"*)
8270 wlarc=''
8271 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8272 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8273 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8274 ;;
8275 *)
8276 wlarc='${wl}'
8277 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8278 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8279 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8280 ;;
8281 esac
8282 fi
8283 hardcode_libdir_flag_spec='-R$libdir'
8284 hardcode_shlibpath_var=no
8285 case $host_os in
8286 solaris2.[0-5] | solaris2.[0-5].*) ;;
8287 *)
8288 # The compiler driver will combine and reorder linker options,
8289 # but understands `-z linker_flag'. GCC discards it without `$wl',
8290 # but is careful enough not to reorder.
8291 # Supported since Solaris 2.6 (maybe 2.5.1?)
8292 if test "$GCC" = yes; then
8293 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8294 else
8295 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8296 fi
8297 ;;
8298 esac
8299 link_all_deplibs=yes
8300 ;;
8301
8302 sunos4*)
8303 if test "x$host_vendor" = xsequent; then
8304 # Use $CC to link under sequent, because it throws in some extra .o
8305 # files that make .init and .fini sections work.
8306 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8307 else
8308 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8309 fi
8310 hardcode_libdir_flag_spec='-L$libdir'
8311 hardcode_direct=yes
8312 hardcode_minus_L=yes
8313 hardcode_shlibpath_var=no
8314 ;;
8315
8316 sysv4)
8317 case $host_vendor in
8318 sni)
8319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8320 hardcode_direct=yes # is this really true???
8321 ;;
8322 siemens)
8323 ## LD is ld it makes a PLAMLIB
8324 ## CC just makes a GrossModule.
8325 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8326 reload_cmds='$CC -r -o $output$reload_objs'
8327 hardcode_direct=no
8328 ;;
8329 motorola)
8330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8331 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8332 ;;
8333 esac
8334 runpath_var='LD_RUN_PATH'
8335 hardcode_shlibpath_var=no
8336 ;;
8337
8338 sysv4.3*)
8339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8340 hardcode_shlibpath_var=no
8341 export_dynamic_flag_spec='-Bexport'
8342 ;;
8343
8344 sysv4*MP*)
8345 if test -d /usr/nec; then
8346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8347 hardcode_shlibpath_var=no
8348 runpath_var=LD_RUN_PATH
8349 hardcode_runpath_var=yes
8350 ld_shlibs=yes
8351 fi
8352 ;;
8353
8354 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8355 no_undefined_flag='${wl}-z,text'
8356 archive_cmds_need_lc=no
8357 hardcode_shlibpath_var=no
8358 runpath_var='LD_RUN_PATH'
8359
8360 if test "$GCC" = yes; then
8361 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8362 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8363 else
8364 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8365 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8366 fi
8367 ;;
8368
8369 sysv5* | sco3.2v5* | sco5v6*)
8370 # Note: We can NOT use -z defs as we might desire, because we do not
8371 # link with -lc, and that would cause any symbols used from libc to
8372 # always be unresolved, which means just about no library would
8373 # ever link correctly. If we're not using GNU ld we use -z text
8374 # though, which does catch some bad symbols but isn't as heavy-handed
8375 # as -z defs.
8376 no_undefined_flag='${wl}-z,text'
8377 allow_undefined_flag='${wl}-z,nodefs'
8378 archive_cmds_need_lc=no
8379 hardcode_shlibpath_var=no
8380 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8381 hardcode_libdir_separator=':'
8382 link_all_deplibs=yes
8383 export_dynamic_flag_spec='${wl}-Bexport'
8384 runpath_var='LD_RUN_PATH'
8385
8386 if test "$GCC" = yes; then
8387 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8388 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8389 else
8390 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8391 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8392 fi
8393 ;;
8394
8395 uts4*)
8396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8397 hardcode_libdir_flag_spec='-L$libdir'
8398 hardcode_shlibpath_var=no
8399 ;;
8400
8401 *)
8402 ld_shlibs=no
8403 ;;
8404 esac
8405
8406 if test x$host_vendor = xsni; then
8407 case $host in
8408 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8409 export_dynamic_flag_spec='${wl}-Blargedynsym'
8410 ;;
8411 esac
8412 fi
8413 fi
8414
8415 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8416 $as_echo "$ld_shlibs" >&6; }
8417 test "$ld_shlibs" = no && can_build_shared=no
8418
8419 with_gnu_ld=$with_gnu_ld
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435 #
8436 # Do we need to explicitly link libc?
8437 #
8438 case "x$archive_cmds_need_lc" in
8439 x|xyes)
8440 # Assume -lc should be added
8441 archive_cmds_need_lc=yes
8442
8443 if test "$enable_shared" = yes && test "$GCC" = yes; then
8444 case $archive_cmds in
8445 *'~'*)
8446 # FIXME: we may have to deal with multi-command sequences.
8447 ;;
8448 '$CC '*)
8449 # Test whether the compiler implicitly links with -lc since on some
8450 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8451 # to ld, don't add -lc before -lgcc.
8452 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8453 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8454 $RM conftest*
8455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8456
8457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8458 (eval $ac_compile) 2>&5
8459 ac_status=$?
8460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } 2>conftest.err; then
8462 soname=conftest
8463 lib=conftest
8464 libobjs=conftest.$ac_objext
8465 deplibs=
8466 wl=$lt_prog_compiler_wl
8467 pic_flag=$lt_prog_compiler_pic
8468 compiler_flags=-v
8469 linker_flags=-v
8470 verstring=
8471 output_objdir=.
8472 libname=conftest
8473 lt_save_allow_undefined_flag=$allow_undefined_flag
8474 allow_undefined_flag=
8475 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8476 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8477 ac_status=$?
8478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }
8480 then
8481 archive_cmds_need_lc=no
8482 else
8483 archive_cmds_need_lc=yes
8484 fi
8485 allow_undefined_flag=$lt_save_allow_undefined_flag
8486 else
8487 cat conftest.err 1>&5
8488 fi
8489 $RM conftest*
8490 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8491 $as_echo "$archive_cmds_need_lc" >&6; }
8492 ;;
8493 esac
8494 fi
8495 ;;
8496 esac
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8655 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8656
8657 if test "$GCC" = yes; then
8658 case $host_os in
8659 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8660 *) lt_awk_arg="/^libraries:/" ;;
8661 esac
8662 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8663 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8664 # if the path contains ";" then we assume it to be the separator
8665 # otherwise default to the standard path separator (i.e. ":") - it is
8666 # assumed that no part of a normal pathname contains ";" but that should
8667 # okay in the real world where ";" in dirpaths is itself problematic.
8668 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8669 else
8670 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8671 fi
8672 # Ok, now we have the path, separated by spaces, we can step through it
8673 # and add multilib dir if necessary.
8674 lt_tmp_lt_search_path_spec=
8675 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8676 for lt_sys_path in $lt_search_path_spec; do
8677 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8678 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8679 else
8680 test -d "$lt_sys_path" && \
8681 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8682 fi
8683 done
8684 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8685 BEGIN {RS=" "; FS="/|\n";} {
8686 lt_foo="";
8687 lt_count=0;
8688 for (lt_i = NF; lt_i > 0; lt_i--) {
8689 if ($lt_i != "" && $lt_i != ".") {
8690 if ($lt_i == "..") {
8691 lt_count++;
8692 } else {
8693 if (lt_count == 0) {
8694 lt_foo="/" $lt_i lt_foo;
8695 } else {
8696 lt_count--;
8697 }
8698 }
8699 }
8700 }
8701 if (lt_foo != "") { lt_freq[lt_foo]++; }
8702 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8703 }'`
8704 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8705 else
8706 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8707 fi
8708 library_names_spec=
8709 libname_spec='lib$name'
8710 soname_spec=
8711 shrext_cmds=".so"
8712 postinstall_cmds=
8713 postuninstall_cmds=
8714 finish_cmds=
8715 finish_eval=
8716 shlibpath_var=
8717 shlibpath_overrides_runpath=unknown
8718 version_type=none
8719 dynamic_linker="$host_os ld.so"
8720 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8721 need_lib_prefix=unknown
8722 hardcode_into_libs=no
8723
8724 # when you set need_version to no, make sure it does not cause -set_version
8725 # flags to be left without arguments
8726 need_version=unknown
8727
8728 case $host_os in
8729 aix3*)
8730 version_type=linux
8731 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8732 shlibpath_var=LIBPATH
8733
8734 # AIX 3 has no versioning support, so we append a major version to the name.
8735 soname_spec='${libname}${release}${shared_ext}$major'
8736 ;;
8737
8738 aix[4-9]*)
8739 version_type=linux
8740 need_lib_prefix=no
8741 need_version=no
8742 hardcode_into_libs=yes
8743 if test "$host_cpu" = ia64; then
8744 # AIX 5 supports IA64
8745 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8746 shlibpath_var=LD_LIBRARY_PATH
8747 else
8748 # With GCC up to 2.95.x, collect2 would create an import file
8749 # for dependence libraries. The import file would start with
8750 # the line `#! .'. This would cause the generated library to
8751 # depend on `.', always an invalid library. This was fixed in
8752 # development snapshots of GCC prior to 3.0.
8753 case $host_os in
8754 aix4 | aix4.[01] | aix4.[01].*)
8755 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8756 echo ' yes '
8757 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8758 :
8759 else
8760 can_build_shared=no
8761 fi
8762 ;;
8763 esac
8764 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8765 # soname into executable. Probably we can add versioning support to
8766 # collect2, so additional links can be useful in future.
8767 if test "$aix_use_runtimelinking" = yes; then
8768 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8769 # instead of lib<name>.a to let people know that these are not
8770 # typical AIX shared libraries.
8771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8772 else
8773 # We preserve .a as extension for shared libraries through AIX4.2
8774 # and later when we are not doing run time linking.
8775 library_names_spec='${libname}${release}.a $libname.a'
8776 soname_spec='${libname}${release}${shared_ext}$major'
8777 fi
8778 shlibpath_var=LIBPATH
8779 fi
8780 ;;
8781
8782 amigaos*)
8783 case $host_cpu in
8784 powerpc)
8785 # Since July 2007 AmigaOS4 officially supports .so libraries.
8786 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8788 ;;
8789 m68k)
8790 library_names_spec='$libname.ixlibrary $libname.a'
8791 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8792 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'
8793 ;;
8794 esac
8795 ;;
8796
8797 beos*)
8798 library_names_spec='${libname}${shared_ext}'
8799 dynamic_linker="$host_os ld.so"
8800 shlibpath_var=LIBRARY_PATH
8801 ;;
8802
8803 bsdi[45]*)
8804 version_type=linux
8805 need_version=no
8806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8807 soname_spec='${libname}${release}${shared_ext}$major'
8808 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8809 shlibpath_var=LD_LIBRARY_PATH
8810 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8811 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8812 # the default ld.so.conf also contains /usr/contrib/lib and
8813 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8814 # libtool to hard-code these into programs
8815 ;;
8816
8817 cygwin* | mingw* | pw32* | cegcc*)
8818 version_type=windows
8819 shrext_cmds=".dll"
8820 need_version=no
8821 need_lib_prefix=no
8822
8823 case $GCC,$host_os in
8824 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8825 library_names_spec='$libname.dll.a'
8826 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8827 postinstall_cmds='base_file=`basename \${file}`~
8828 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8829 dldir=$destdir/`dirname \$dlpath`~
8830 test -d \$dldir || mkdir -p \$dldir~
8831 $install_prog $dir/$dlname \$dldir/$dlname~
8832 chmod a+x \$dldir/$dlname~
8833 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8834 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8835 fi'
8836 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8837 dlpath=$dir/\$dldll~
8838 $RM \$dlpath'
8839 shlibpath_overrides_runpath=yes
8840
8841 case $host_os in
8842 cygwin*)
8843 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8844 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8845 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8846 ;;
8847 mingw* | cegcc*)
8848 # MinGW DLLs use traditional 'lib' prefix
8849 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8850 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8851 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8852 # It is most probably a Windows format PATH printed by
8853 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8854 # path with ; separators, and with drive letters. We can handle the
8855 # drive letters (cygwin fileutils understands them), so leave them,
8856 # especially as we might pass files found there to a mingw objdump,
8857 # which wouldn't understand a cygwinified path. Ahh.
8858 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8859 else
8860 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8861 fi
8862 ;;
8863 pw32*)
8864 # pw32 DLLs use 'pw' prefix rather than 'lib'
8865 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8866 ;;
8867 esac
8868 ;;
8869
8870 *)
8871 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8872 ;;
8873 esac
8874 dynamic_linker='Win32 ld.exe'
8875 # FIXME: first we should search . and the directory the executable is in
8876 shlibpath_var=PATH
8877 ;;
8878
8879 darwin* | rhapsody*)
8880 dynamic_linker="$host_os dyld"
8881 version_type=darwin
8882 need_lib_prefix=no
8883 need_version=no
8884 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8885 soname_spec='${libname}${release}${major}$shared_ext'
8886 shlibpath_overrides_runpath=yes
8887 shlibpath_var=DYLD_LIBRARY_PATH
8888 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8889
8890 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8891 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8892 ;;
8893
8894 dgux*)
8895 version_type=linux
8896 need_lib_prefix=no
8897 need_version=no
8898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8899 soname_spec='${libname}${release}${shared_ext}$major'
8900 shlibpath_var=LD_LIBRARY_PATH
8901 ;;
8902
8903 freebsd1*)
8904 dynamic_linker=no
8905 ;;
8906
8907 freebsd* | dragonfly*)
8908 # DragonFly does not have aout. When/if they implement a new
8909 # versioning mechanism, adjust this.
8910 if test -x /usr/bin/objformat; then
8911 objformat=`/usr/bin/objformat`
8912 else
8913 case $host_os in
8914 freebsd[123]*) objformat=aout ;;
8915 *) objformat=elf ;;
8916 esac
8917 fi
8918 version_type=freebsd-$objformat
8919 case $version_type in
8920 freebsd-elf*)
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8922 need_version=no
8923 need_lib_prefix=no
8924 ;;
8925 freebsd-*)
8926 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8927 need_version=yes
8928 ;;
8929 esac
8930 shlibpath_var=LD_LIBRARY_PATH
8931 case $host_os in
8932 freebsd2*)
8933 shlibpath_overrides_runpath=yes
8934 ;;
8935 freebsd3.[01]* | freebsdelf3.[01]*)
8936 shlibpath_overrides_runpath=yes
8937 hardcode_into_libs=yes
8938 ;;
8939 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8940 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8941 shlibpath_overrides_runpath=no
8942 hardcode_into_libs=yes
8943 ;;
8944 *) # from 4.6 on, and DragonFly
8945 shlibpath_overrides_runpath=yes
8946 hardcode_into_libs=yes
8947 ;;
8948 esac
8949 ;;
8950
8951 gnu*)
8952 version_type=linux
8953 need_lib_prefix=no
8954 need_version=no
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8956 soname_spec='${libname}${release}${shared_ext}$major'
8957 shlibpath_var=LD_LIBRARY_PATH
8958 hardcode_into_libs=yes
8959 ;;
8960
8961 hpux9* | hpux10* | hpux11*)
8962 # Give a soname corresponding to the major version so that dld.sl refuses to
8963 # link against other versions.
8964 version_type=sunos
8965 need_lib_prefix=no
8966 need_version=no
8967 case $host_cpu in
8968 ia64*)
8969 shrext_cmds='.so'
8970 hardcode_into_libs=yes
8971 dynamic_linker="$host_os dld.so"
8972 shlibpath_var=LD_LIBRARY_PATH
8973 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8975 soname_spec='${libname}${release}${shared_ext}$major'
8976 if test "X$HPUX_IA64_MODE" = X32; then
8977 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8978 else
8979 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8980 fi
8981 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8982 ;;
8983 hppa*64*)
8984 shrext_cmds='.sl'
8985 hardcode_into_libs=yes
8986 dynamic_linker="$host_os dld.sl"
8987 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8988 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8990 soname_spec='${libname}${release}${shared_ext}$major'
8991 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8992 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8993 ;;
8994 *)
8995 shrext_cmds='.sl'
8996 dynamic_linker="$host_os dld.sl"
8997 shlibpath_var=SHLIB_PATH
8998 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9000 soname_spec='${libname}${release}${shared_ext}$major'
9001 ;;
9002 esac
9003 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9004 postinstall_cmds='chmod 555 $lib'
9005 ;;
9006
9007 interix[3-9]*)
9008 version_type=linux
9009 need_lib_prefix=no
9010 need_version=no
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9012 soname_spec='${libname}${release}${shared_ext}$major'
9013 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9014 shlibpath_var=LD_LIBRARY_PATH
9015 shlibpath_overrides_runpath=no
9016 hardcode_into_libs=yes
9017 ;;
9018
9019 irix5* | irix6* | nonstopux*)
9020 case $host_os in
9021 nonstopux*) version_type=nonstopux ;;
9022 *)
9023 if test "$lt_cv_prog_gnu_ld" = yes; then
9024 version_type=linux
9025 else
9026 version_type=irix
9027 fi ;;
9028 esac
9029 need_lib_prefix=no
9030 need_version=no
9031 soname_spec='${libname}${release}${shared_ext}$major'
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9033 case $host_os in
9034 irix5* | nonstopux*)
9035 libsuff= shlibsuff=
9036 ;;
9037 *)
9038 case $LD in # libtool.m4 will add one of these switches to LD
9039 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9040 libsuff= shlibsuff= libmagic=32-bit;;
9041 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9042 libsuff=32 shlibsuff=N32 libmagic=N32;;
9043 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9044 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9045 *) libsuff= shlibsuff= libmagic=never-match;;
9046 esac
9047 ;;
9048 esac
9049 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9050 shlibpath_overrides_runpath=no
9051 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9052 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9053 hardcode_into_libs=yes
9054 ;;
9055
9056 # No shared lib support for Linux oldld, aout, or coff.
9057 linux*oldld* | linux*aout* | linux*coff*)
9058 dynamic_linker=no
9059 ;;
9060
9061 # This must be Linux ELF.
9062 linux* | k*bsd*-gnu)
9063 version_type=linux
9064 need_lib_prefix=no
9065 need_version=no
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9067 soname_spec='${libname}${release}${shared_ext}$major'
9068 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9069 shlibpath_var=LD_LIBRARY_PATH
9070 shlibpath_overrides_runpath=no
9071 # Some binutils ld are patched to set DT_RUNPATH
9072 save_LDFLAGS=$LDFLAGS
9073 save_libdir=$libdir
9074 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9075 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9076 cat >conftest.$ac_ext <<_ACEOF
9077 /* confdefs.h. */
9078 _ACEOF
9079 cat confdefs.h >>conftest.$ac_ext
9080 cat >>conftest.$ac_ext <<_ACEOF
9081 /* end confdefs.h. */
9082
9083 int
9084 main ()
9085 {
9086
9087 ;
9088 return 0;
9089 }
9090 _ACEOF
9091 rm -f conftest.$ac_objext conftest$ac_exeext
9092 if { (ac_try="$ac_link"
9093 case "(($ac_try" in
9094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9095 *) ac_try_echo=$ac_try;;
9096 esac
9097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9098 $as_echo "$ac_try_echo") >&5
9099 (eval "$ac_link") 2>conftest.er1
9100 ac_status=$?
9101 grep -v '^ *+' conftest.er1 >conftest.err
9102 rm -f conftest.er1
9103 cat conftest.err >&5
9104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); } && {
9106 test -z "$ac_c_werror_flag" ||
9107 test ! -s conftest.err
9108 } && test -s conftest$ac_exeext && {
9109 test "$cross_compiling" = yes ||
9110 $as_test_x conftest$ac_exeext
9111 }; then
9112 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9113 shlibpath_overrides_runpath=yes
9114 fi
9115
9116 else
9117 $as_echo "$as_me: failed program was:" >&5
9118 sed 's/^/| /' conftest.$ac_ext >&5
9119
9120
9121 fi
9122
9123 rm -rf conftest.dSYM
9124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9125 conftest$ac_exeext conftest.$ac_ext
9126 LDFLAGS=$save_LDFLAGS
9127 libdir=$save_libdir
9128
9129 # This implies no fast_install, which is unacceptable.
9130 # Some rework will be needed to allow for fast_install
9131 # before this can be enabled.
9132 hardcode_into_libs=yes
9133
9134 # Add ABI-specific directories to the system library path.
9135 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9136
9137 # Append ld.so.conf contents to the search path
9138 if test -f /etc/ld.so.conf; then
9139 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' ' '`
9140 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9141 fi
9142
9143 # We used to test for /lib/ld.so.1 and disable shared libraries on
9144 # powerpc, because MkLinux only supported shared libraries with the
9145 # GNU dynamic linker. Since this was broken with cross compilers,
9146 # most powerpc-linux boxes support dynamic linking these days and
9147 # people can always --disable-shared, the test was removed, and we
9148 # assume the GNU/Linux dynamic linker is in use.
9149 dynamic_linker='GNU/Linux ld.so'
9150 ;;
9151
9152 netbsd*)
9153 version_type=sunos
9154 need_lib_prefix=no
9155 need_version=no
9156 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9158 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9159 dynamic_linker='NetBSD (a.out) ld.so'
9160 else
9161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9162 soname_spec='${libname}${release}${shared_ext}$major'
9163 dynamic_linker='NetBSD ld.elf_so'
9164 fi
9165 shlibpath_var=LD_LIBRARY_PATH
9166 shlibpath_overrides_runpath=yes
9167 hardcode_into_libs=yes
9168 ;;
9169
9170 newsos6)
9171 version_type=linux
9172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9173 shlibpath_var=LD_LIBRARY_PATH
9174 shlibpath_overrides_runpath=yes
9175 ;;
9176
9177 *nto* | *qnx*)
9178 version_type=qnx
9179 need_lib_prefix=no
9180 need_version=no
9181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9182 soname_spec='${libname}${release}${shared_ext}$major'
9183 shlibpath_var=LD_LIBRARY_PATH
9184 shlibpath_overrides_runpath=no
9185 hardcode_into_libs=yes
9186 dynamic_linker='ldqnx.so'
9187 ;;
9188
9189 openbsd*)
9190 version_type=sunos
9191 sys_lib_dlsearch_path_spec="/usr/lib"
9192 need_lib_prefix=no
9193 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9194 case $host_os in
9195 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9196 *) need_version=no ;;
9197 esac
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9200 shlibpath_var=LD_LIBRARY_PATH
9201 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9202 case $host_os in
9203 openbsd2.[89] | openbsd2.[89].*)
9204 shlibpath_overrides_runpath=no
9205 ;;
9206 *)
9207 shlibpath_overrides_runpath=yes
9208 ;;
9209 esac
9210 else
9211 shlibpath_overrides_runpath=yes
9212 fi
9213 ;;
9214
9215 os2*)
9216 libname_spec='$name'
9217 shrext_cmds=".dll"
9218 need_lib_prefix=no
9219 library_names_spec='$libname${shared_ext} $libname.a'
9220 dynamic_linker='OS/2 ld.exe'
9221 shlibpath_var=LIBPATH
9222 ;;
9223
9224 osf3* | osf4* | osf5*)
9225 version_type=osf
9226 need_lib_prefix=no
9227 need_version=no
9228 soname_spec='${libname}${release}${shared_ext}$major'
9229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9230 shlibpath_var=LD_LIBRARY_PATH
9231 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9232 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9233 ;;
9234
9235 rdos*)
9236 dynamic_linker=no
9237 ;;
9238
9239 solaris*)
9240 version_type=linux
9241 need_lib_prefix=no
9242 need_version=no
9243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9244 soname_spec='${libname}${release}${shared_ext}$major'
9245 shlibpath_var=LD_LIBRARY_PATH
9246 shlibpath_overrides_runpath=yes
9247 hardcode_into_libs=yes
9248 # ldd complains unless libraries are executable
9249 postinstall_cmds='chmod +x $lib'
9250 ;;
9251
9252 sunos4*)
9253 version_type=sunos
9254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9255 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9256 shlibpath_var=LD_LIBRARY_PATH
9257 shlibpath_overrides_runpath=yes
9258 if test "$with_gnu_ld" = yes; then
9259 need_lib_prefix=no
9260 fi
9261 need_version=yes
9262 ;;
9263
9264 sysv4 | sysv4.3*)
9265 version_type=linux
9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9267 soname_spec='${libname}${release}${shared_ext}$major'
9268 shlibpath_var=LD_LIBRARY_PATH
9269 case $host_vendor in
9270 sni)
9271 shlibpath_overrides_runpath=no
9272 need_lib_prefix=no
9273 runpath_var=LD_RUN_PATH
9274 ;;
9275 siemens)
9276 need_lib_prefix=no
9277 ;;
9278 motorola)
9279 need_lib_prefix=no
9280 need_version=no
9281 shlibpath_overrides_runpath=no
9282 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9283 ;;
9284 esac
9285 ;;
9286
9287 sysv4*MP*)
9288 if test -d /usr/nec ;then
9289 version_type=linux
9290 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9291 soname_spec='$libname${shared_ext}.$major'
9292 shlibpath_var=LD_LIBRARY_PATH
9293 fi
9294 ;;
9295
9296 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9297 version_type=freebsd-elf
9298 need_lib_prefix=no
9299 need_version=no
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9301 soname_spec='${libname}${release}${shared_ext}$major'
9302 shlibpath_var=LD_LIBRARY_PATH
9303 shlibpath_overrides_runpath=yes
9304 hardcode_into_libs=yes
9305 if test "$with_gnu_ld" = yes; then
9306 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9307 else
9308 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9309 case $host_os in
9310 sco3.2v5*)
9311 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9312 ;;
9313 esac
9314 fi
9315 sys_lib_dlsearch_path_spec='/usr/lib'
9316 ;;
9317
9318 tpf*)
9319 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9320 version_type=linux
9321 need_lib_prefix=no
9322 need_version=no
9323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9324 shlibpath_var=LD_LIBRARY_PATH
9325 shlibpath_overrides_runpath=no
9326 hardcode_into_libs=yes
9327 ;;
9328
9329 uts4*)
9330 version_type=linux
9331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9332 soname_spec='${libname}${release}${shared_ext}$major'
9333 shlibpath_var=LD_LIBRARY_PATH
9334 ;;
9335
9336 *)
9337 dynamic_linker=no
9338 ;;
9339 esac
9340 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9341 $as_echo "$dynamic_linker" >&6; }
9342 test "$dynamic_linker" = no && can_build_shared=no
9343
9344 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9345 if test "$GCC" = yes; then
9346 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9347 fi
9348
9349 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9350 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9351 fi
9352 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9353 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9354 fi
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9443 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9444 hardcode_action=
9445 if test -n "$hardcode_libdir_flag_spec" ||
9446 test -n "$runpath_var" ||
9447 test "X$hardcode_automatic" = "Xyes" ; then
9448
9449 # We can hardcode non-existent directories.
9450 if test "$hardcode_direct" != no &&
9451 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9452 # have to relink, otherwise we might link with an installed library
9453 # when we should be linking with a yet-to-be-installed one
9454 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9455 test "$hardcode_minus_L" != no; then
9456 # Linking always hardcodes the temporary library directory.
9457 hardcode_action=relink
9458 else
9459 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9460 hardcode_action=immediate
9461 fi
9462 else
9463 # We cannot hardcode anything, or else we can only hardcode existing
9464 # directories.
9465 hardcode_action=unsupported
9466 fi
9467 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9468 $as_echo "$hardcode_action" >&6; }
9469
9470 if test "$hardcode_action" = relink ||
9471 test "$inherit_rpath" = yes; then
9472 # Fast installation is not supported
9473 enable_fast_install=no
9474 elif test "$shlibpath_overrides_runpath" = yes ||
9475 test "$enable_shared" = no; then
9476 # Fast installation is not necessary
9477 enable_fast_install=needless
9478 fi
9479
9480
9481
9482
9483
9484
9485 if test "x$enable_dlopen" != xyes; then
9486 enable_dlopen=unknown
9487 enable_dlopen_self=unknown
9488 enable_dlopen_self_static=unknown
9489 else
9490 lt_cv_dlopen=no
9491 lt_cv_dlopen_libs=
9492
9493 case $host_os in
9494 beos*)
9495 lt_cv_dlopen="load_add_on"
9496 lt_cv_dlopen_libs=
9497 lt_cv_dlopen_self=yes
9498 ;;
9499
9500 mingw* | pw32* | cegcc*)
9501 lt_cv_dlopen="LoadLibrary"
9502 lt_cv_dlopen_libs=
9503 ;;
9504
9505 cygwin*)
9506 lt_cv_dlopen="dlopen"
9507 lt_cv_dlopen_libs=
9508 ;;
9509
9510 darwin*)
9511 # if libdl is installed we need to link against it
9512 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9513 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9514 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9515 $as_echo_n "(cached) " >&6
9516 else
9517 ac_check_lib_save_LIBS=$LIBS
9518 LIBS="-ldl $LIBS"
9519 cat >conftest.$ac_ext <<_ACEOF
9520 /* confdefs.h. */
9521 _ACEOF
9522 cat confdefs.h >>conftest.$ac_ext
9523 cat >>conftest.$ac_ext <<_ACEOF
9524 /* end confdefs.h. */
9525
9526 /* Override any GCC internal prototype to avoid an error.
9527 Use char because int might match the return type of a GCC
9528 builtin and then its argument prototype would still apply. */
9529 #ifdef __cplusplus
9530 extern "C"
9531 #endif
9532 char dlopen ();
9533 int
9534 main ()
9535 {
9536 return dlopen ();
9537 ;
9538 return 0;
9539 }
9540 _ACEOF
9541 rm -f conftest.$ac_objext conftest$ac_exeext
9542 if { (ac_try="$ac_link"
9543 case "(($ac_try" in
9544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545 *) ac_try_echo=$ac_try;;
9546 esac
9547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9548 $as_echo "$ac_try_echo") >&5
9549 (eval "$ac_link") 2>conftest.er1
9550 ac_status=$?
9551 grep -v '^ *+' conftest.er1 >conftest.err
9552 rm -f conftest.er1
9553 cat conftest.err >&5
9554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } && {
9556 test -z "$ac_c_werror_flag" ||
9557 test ! -s conftest.err
9558 } && test -s conftest$ac_exeext && {
9559 test "$cross_compiling" = yes ||
9560 $as_test_x conftest$ac_exeext
9561 }; then
9562 ac_cv_lib_dl_dlopen=yes
9563 else
9564 $as_echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9566
9567 ac_cv_lib_dl_dlopen=no
9568 fi
9569
9570 rm -rf conftest.dSYM
9571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9572 conftest$ac_exeext conftest.$ac_ext
9573 LIBS=$ac_check_lib_save_LIBS
9574 fi
9575 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9576 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9577 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9578 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9579 else
9580
9581 lt_cv_dlopen="dyld"
9582 lt_cv_dlopen_libs=
9583 lt_cv_dlopen_self=yes
9584
9585 fi
9586
9587 ;;
9588
9589 *)
9590 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9591 $as_echo_n "checking for shl_load... " >&6; }
9592 if test "${ac_cv_func_shl_load+set}" = set; then
9593 $as_echo_n "(cached) " >&6
9594 else
9595 cat >conftest.$ac_ext <<_ACEOF
9596 /* confdefs.h. */
9597 _ACEOF
9598 cat confdefs.h >>conftest.$ac_ext
9599 cat >>conftest.$ac_ext <<_ACEOF
9600 /* end confdefs.h. */
9601 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9603 #define shl_load innocuous_shl_load
9604
9605 /* System header to define __stub macros and hopefully few prototypes,
9606 which can conflict with char shl_load (); below.
9607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9608 <limits.h> exists even on freestanding compilers. */
9609
9610 #ifdef __STDC__
9611 # include <limits.h>
9612 #else
9613 # include <assert.h>
9614 #endif
9615
9616 #undef shl_load
9617
9618 /* Override any GCC internal prototype to avoid an error.
9619 Use char because int might match the return type of a GCC
9620 builtin and then its argument prototype would still apply. */
9621 #ifdef __cplusplus
9622 extern "C"
9623 #endif
9624 char shl_load ();
9625 /* The GNU C library defines this for functions which it implements
9626 to always fail with ENOSYS. Some functions are actually named
9627 something starting with __ and the normal name is an alias. */
9628 #if defined __stub_shl_load || defined __stub___shl_load
9629 choke me
9630 #endif
9631
9632 int
9633 main ()
9634 {
9635 return shl_load ();
9636 ;
9637 return 0;
9638 }
9639 _ACEOF
9640 rm -f conftest.$ac_objext conftest$ac_exeext
9641 if { (ac_try="$ac_link"
9642 case "(($ac_try" in
9643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9644 *) ac_try_echo=$ac_try;;
9645 esac
9646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9647 $as_echo "$ac_try_echo") >&5
9648 (eval "$ac_link") 2>conftest.er1
9649 ac_status=$?
9650 grep -v '^ *+' conftest.er1 >conftest.err
9651 rm -f conftest.er1
9652 cat conftest.err >&5
9653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); } && {
9655 test -z "$ac_c_werror_flag" ||
9656 test ! -s conftest.err
9657 } && test -s conftest$ac_exeext && {
9658 test "$cross_compiling" = yes ||
9659 $as_test_x conftest$ac_exeext
9660 }; then
9661 ac_cv_func_shl_load=yes
9662 else
9663 $as_echo "$as_me: failed program was:" >&5
9664 sed 's/^/| /' conftest.$ac_ext >&5
9665
9666 ac_cv_func_shl_load=no
9667 fi
9668
9669 rm -rf conftest.dSYM
9670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9671 conftest$ac_exeext conftest.$ac_ext
9672 fi
9673 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9674 $as_echo "$ac_cv_func_shl_load" >&6; }
9675 if test "x$ac_cv_func_shl_load" = x""yes; then
9676 lt_cv_dlopen="shl_load"
9677 else
9678 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9679 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9680 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9681 $as_echo_n "(cached) " >&6
9682 else
9683 ac_check_lib_save_LIBS=$LIBS
9684 LIBS="-ldld $LIBS"
9685 cat >conftest.$ac_ext <<_ACEOF
9686 /* confdefs.h. */
9687 _ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h. */
9691
9692 /* Override any GCC internal prototype to avoid an error.
9693 Use char because int might match the return type of a GCC
9694 builtin and then its argument prototype would still apply. */
9695 #ifdef __cplusplus
9696 extern "C"
9697 #endif
9698 char shl_load ();
9699 int
9700 main ()
9701 {
9702 return shl_load ();
9703 ;
9704 return 0;
9705 }
9706 _ACEOF
9707 rm -f conftest.$ac_objext conftest$ac_exeext
9708 if { (ac_try="$ac_link"
9709 case "(($ac_try" in
9710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711 *) ac_try_echo=$ac_try;;
9712 esac
9713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9714 $as_echo "$ac_try_echo") >&5
9715 (eval "$ac_link") 2>conftest.er1
9716 ac_status=$?
9717 grep -v '^ *+' conftest.er1 >conftest.err
9718 rm -f conftest.er1
9719 cat conftest.err >&5
9720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } && {
9722 test -z "$ac_c_werror_flag" ||
9723 test ! -s conftest.err
9724 } && test -s conftest$ac_exeext && {
9725 test "$cross_compiling" = yes ||
9726 $as_test_x conftest$ac_exeext
9727 }; then
9728 ac_cv_lib_dld_shl_load=yes
9729 else
9730 $as_echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9732
9733 ac_cv_lib_dld_shl_load=no
9734 fi
9735
9736 rm -rf conftest.dSYM
9737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9738 conftest$ac_exeext conftest.$ac_ext
9739 LIBS=$ac_check_lib_save_LIBS
9740 fi
9741 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9742 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9743 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
9744 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9745 else
9746 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9747 $as_echo_n "checking for dlopen... " >&6; }
9748 if test "${ac_cv_func_dlopen+set}" = set; then
9749 $as_echo_n "(cached) " >&6
9750 else
9751 cat >conftest.$ac_ext <<_ACEOF
9752 /* confdefs.h. */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9757 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9759 #define dlopen innocuous_dlopen
9760
9761 /* System header to define __stub macros and hopefully few prototypes,
9762 which can conflict with char dlopen (); below.
9763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9764 <limits.h> exists even on freestanding compilers. */
9765
9766 #ifdef __STDC__
9767 # include <limits.h>
9768 #else
9769 # include <assert.h>
9770 #endif
9771
9772 #undef dlopen
9773
9774 /* Override any GCC internal prototype to avoid an error.
9775 Use char because int might match the return type of a GCC
9776 builtin and then its argument prototype would still apply. */
9777 #ifdef __cplusplus
9778 extern "C"
9779 #endif
9780 char dlopen ();
9781 /* The GNU C library defines this for functions which it implements
9782 to always fail with ENOSYS. Some functions are actually named
9783 something starting with __ and the normal name is an alias. */
9784 #if defined __stub_dlopen || defined __stub___dlopen
9785 choke me
9786 #endif
9787
9788 int
9789 main ()
9790 {
9791 return dlopen ();
9792 ;
9793 return 0;
9794 }
9795 _ACEOF
9796 rm -f conftest.$ac_objext conftest$ac_exeext
9797 if { (ac_try="$ac_link"
9798 case "(($ac_try" in
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9801 esac
9802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9803 $as_echo "$ac_try_echo") >&5
9804 (eval "$ac_link") 2>conftest.er1
9805 ac_status=$?
9806 grep -v '^ *+' conftest.er1 >conftest.err
9807 rm -f conftest.er1
9808 cat conftest.err >&5
9809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } && {
9811 test -z "$ac_c_werror_flag" ||
9812 test ! -s conftest.err
9813 } && test -s conftest$ac_exeext && {
9814 test "$cross_compiling" = yes ||
9815 $as_test_x conftest$ac_exeext
9816 }; then
9817 ac_cv_func_dlopen=yes
9818 else
9819 $as_echo "$as_me: failed program was:" >&5
9820 sed 's/^/| /' conftest.$ac_ext >&5
9821
9822 ac_cv_func_dlopen=no
9823 fi
9824
9825 rm -rf conftest.dSYM
9826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9827 conftest$ac_exeext conftest.$ac_ext
9828 fi
9829 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9830 $as_echo "$ac_cv_func_dlopen" >&6; }
9831 if test "x$ac_cv_func_dlopen" = x""yes; then
9832 lt_cv_dlopen="dlopen"
9833 else
9834 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9835 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9836 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9837 $as_echo_n "(cached) " >&6
9838 else
9839 ac_check_lib_save_LIBS=$LIBS
9840 LIBS="-ldl $LIBS"
9841 cat >conftest.$ac_ext <<_ACEOF
9842 /* confdefs.h. */
9843 _ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9847
9848 /* Override any GCC internal prototype to avoid an error.
9849 Use char because int might match the return type of a GCC
9850 builtin and then its argument prototype would still apply. */
9851 #ifdef __cplusplus
9852 extern "C"
9853 #endif
9854 char dlopen ();
9855 int
9856 main ()
9857 {
9858 return dlopen ();
9859 ;
9860 return 0;
9861 }
9862 _ACEOF
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (ac_try="$ac_link"
9865 case "(($ac_try" in
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9868 esac
9869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9870 $as_echo "$ac_try_echo") >&5
9871 (eval "$ac_link") 2>conftest.er1
9872 ac_status=$?
9873 grep -v '^ *+' conftest.er1 >conftest.err
9874 rm -f conftest.er1
9875 cat conftest.err >&5
9876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } && {
9878 test -z "$ac_c_werror_flag" ||
9879 test ! -s conftest.err
9880 } && test -s conftest$ac_exeext && {
9881 test "$cross_compiling" = yes ||
9882 $as_test_x conftest$ac_exeext
9883 }; then
9884 ac_cv_lib_dl_dlopen=yes
9885 else
9886 $as_echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9888
9889 ac_cv_lib_dl_dlopen=no
9890 fi
9891
9892 rm -rf conftest.dSYM
9893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9894 conftest$ac_exeext conftest.$ac_ext
9895 LIBS=$ac_check_lib_save_LIBS
9896 fi
9897 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9898 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9899 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9900 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9901 else
9902 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9903 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9904 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9905 $as_echo_n "(cached) " >&6
9906 else
9907 ac_check_lib_save_LIBS=$LIBS
9908 LIBS="-lsvld $LIBS"
9909 cat >conftest.$ac_ext <<_ACEOF
9910 /* confdefs.h. */
9911 _ACEOF
9912 cat confdefs.h >>conftest.$ac_ext
9913 cat >>conftest.$ac_ext <<_ACEOF
9914 /* end confdefs.h. */
9915
9916 /* Override any GCC internal prototype to avoid an error.
9917 Use char because int might match the return type of a GCC
9918 builtin and then its argument prototype would still apply. */
9919 #ifdef __cplusplus
9920 extern "C"
9921 #endif
9922 char dlopen ();
9923 int
9924 main ()
9925 {
9926 return dlopen ();
9927 ;
9928 return 0;
9929 }
9930 _ACEOF
9931 rm -f conftest.$ac_objext conftest$ac_exeext
9932 if { (ac_try="$ac_link"
9933 case "(($ac_try" in
9934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935 *) ac_try_echo=$ac_try;;
9936 esac
9937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9938 $as_echo "$ac_try_echo") >&5
9939 (eval "$ac_link") 2>conftest.er1
9940 ac_status=$?
9941 grep -v '^ *+' conftest.er1 >conftest.err
9942 rm -f conftest.er1
9943 cat conftest.err >&5
9944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } && {
9946 test -z "$ac_c_werror_flag" ||
9947 test ! -s conftest.err
9948 } && test -s conftest$ac_exeext && {
9949 test "$cross_compiling" = yes ||
9950 $as_test_x conftest$ac_exeext
9951 }; then
9952 ac_cv_lib_svld_dlopen=yes
9953 else
9954 $as_echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9956
9957 ac_cv_lib_svld_dlopen=no
9958 fi
9959
9960 rm -rf conftest.dSYM
9961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9962 conftest$ac_exeext conftest.$ac_ext
9963 LIBS=$ac_check_lib_save_LIBS
9964 fi
9965 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9966 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9967 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
9968 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9969 else
9970 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9971 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9972 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9973 $as_echo_n "(cached) " >&6
9974 else
9975 ac_check_lib_save_LIBS=$LIBS
9976 LIBS="-ldld $LIBS"
9977 cat >conftest.$ac_ext <<_ACEOF
9978 /* confdefs.h. */
9979 _ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h. */
9983
9984 /* Override any GCC internal prototype to avoid an error.
9985 Use char because int might match the return type of a GCC
9986 builtin and then its argument prototype would still apply. */
9987 #ifdef __cplusplus
9988 extern "C"
9989 #endif
9990 char dld_link ();
9991 int
9992 main ()
9993 {
9994 return dld_link ();
9995 ;
9996 return 0;
9997 }
9998 _ACEOF
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (ac_try="$ac_link"
10001 case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10004 esac
10005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10006 $as_echo "$ac_try_echo") >&5
10007 (eval "$ac_link") 2>conftest.er1
10008 ac_status=$?
10009 grep -v '^ *+' conftest.er1 >conftest.err
10010 rm -f conftest.er1
10011 cat conftest.err >&5
10012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } && {
10014 test -z "$ac_c_werror_flag" ||
10015 test ! -s conftest.err
10016 } && test -s conftest$ac_exeext && {
10017 test "$cross_compiling" = yes ||
10018 $as_test_x conftest$ac_exeext
10019 }; then
10020 ac_cv_lib_dld_dld_link=yes
10021 else
10022 $as_echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10024
10025 ac_cv_lib_dld_dld_link=no
10026 fi
10027
10028 rm -rf conftest.dSYM
10029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10030 conftest$ac_exeext conftest.$ac_ext
10031 LIBS=$ac_check_lib_save_LIBS
10032 fi
10033 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10034 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10035 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10036 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10037 fi
10038
10039
10040 fi
10041
10042
10043 fi
10044
10045
10046 fi
10047
10048
10049 fi
10050
10051
10052 fi
10053
10054 ;;
10055 esac
10056
10057 if test "x$lt_cv_dlopen" != xno; then
10058 enable_dlopen=yes
10059 else
10060 enable_dlopen=no
10061 fi
10062
10063 case $lt_cv_dlopen in
10064 dlopen)
10065 save_CPPFLAGS="$CPPFLAGS"
10066 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10067
10068 save_LDFLAGS="$LDFLAGS"
10069 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10070
10071 save_LIBS="$LIBS"
10072 LIBS="$lt_cv_dlopen_libs $LIBS"
10073
10074 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10075 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10076 if test "${lt_cv_dlopen_self+set}" = set; then
10077 $as_echo_n "(cached) " >&6
10078 else
10079 if test "$cross_compiling" = yes; then :
10080 lt_cv_dlopen_self=cross
10081 else
10082 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10083 lt_status=$lt_dlunknown
10084 cat > conftest.$ac_ext <<_LT_EOF
10085 #line 10085 "configure"
10086 #include "confdefs.h"
10087
10088 #if HAVE_DLFCN_H
10089 #include <dlfcn.h>
10090 #endif
10091
10092 #include <stdio.h>
10093
10094 #ifdef RTLD_GLOBAL
10095 # define LT_DLGLOBAL RTLD_GLOBAL
10096 #else
10097 # ifdef DL_GLOBAL
10098 # define LT_DLGLOBAL DL_GLOBAL
10099 # else
10100 # define LT_DLGLOBAL 0
10101 # endif
10102 #endif
10103
10104 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10105 find out it does not work in some platform. */
10106 #ifndef LT_DLLAZY_OR_NOW
10107 # ifdef RTLD_LAZY
10108 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10109 # else
10110 # ifdef DL_LAZY
10111 # define LT_DLLAZY_OR_NOW DL_LAZY
10112 # else
10113 # ifdef RTLD_NOW
10114 # define LT_DLLAZY_OR_NOW RTLD_NOW
10115 # else
10116 # ifdef DL_NOW
10117 # define LT_DLLAZY_OR_NOW DL_NOW
10118 # else
10119 # define LT_DLLAZY_OR_NOW 0
10120 # endif
10121 # endif
10122 # endif
10123 # endif
10124 #endif
10125
10126 void fnord() { int i=42;}
10127 int main ()
10128 {
10129 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10130 int status = $lt_dlunknown;
10131
10132 if (self)
10133 {
10134 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10135 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10136 /* dlclose (self); */
10137 }
10138 else
10139 puts (dlerror ());
10140
10141 return status;
10142 }
10143 _LT_EOF
10144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10145 (eval $ac_link) 2>&5
10146 ac_status=$?
10147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10149 (./conftest; exit; ) >&5 2>/dev/null
10150 lt_status=$?
10151 case x$lt_status in
10152 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10153 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10154 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10155 esac
10156 else :
10157 # compilation failed
10158 lt_cv_dlopen_self=no
10159 fi
10160 fi
10161 rm -fr conftest*
10162
10163
10164 fi
10165 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10166 $as_echo "$lt_cv_dlopen_self" >&6; }
10167
10168 if test "x$lt_cv_dlopen_self" = xyes; then
10169 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10170 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10171 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10172 if test "${lt_cv_dlopen_self_static+set}" = set; then
10173 $as_echo_n "(cached) " >&6
10174 else
10175 if test "$cross_compiling" = yes; then :
10176 lt_cv_dlopen_self_static=cross
10177 else
10178 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10179 lt_status=$lt_dlunknown
10180 cat > conftest.$ac_ext <<_LT_EOF
10181 #line 10181 "configure"
10182 #include "confdefs.h"
10183
10184 #if HAVE_DLFCN_H
10185 #include <dlfcn.h>
10186 #endif
10187
10188 #include <stdio.h>
10189
10190 #ifdef RTLD_GLOBAL
10191 # define LT_DLGLOBAL RTLD_GLOBAL
10192 #else
10193 # ifdef DL_GLOBAL
10194 # define LT_DLGLOBAL DL_GLOBAL
10195 # else
10196 # define LT_DLGLOBAL 0
10197 # endif
10198 #endif
10199
10200 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10201 find out it does not work in some platform. */
10202 #ifndef LT_DLLAZY_OR_NOW
10203 # ifdef RTLD_LAZY
10204 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10205 # else
10206 # ifdef DL_LAZY
10207 # define LT_DLLAZY_OR_NOW DL_LAZY
10208 # else
10209 # ifdef RTLD_NOW
10210 # define LT_DLLAZY_OR_NOW RTLD_NOW
10211 # else
10212 # ifdef DL_NOW
10213 # define LT_DLLAZY_OR_NOW DL_NOW
10214 # else
10215 # define LT_DLLAZY_OR_NOW 0
10216 # endif
10217 # endif
10218 # endif
10219 # endif
10220 #endif
10221
10222 void fnord() { int i=42;}
10223 int main ()
10224 {
10225 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10226 int status = $lt_dlunknown;
10227
10228 if (self)
10229 {
10230 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10231 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10232 /* dlclose (self); */
10233 }
10234 else
10235 puts (dlerror ());
10236
10237 return status;
10238 }
10239 _LT_EOF
10240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10241 (eval $ac_link) 2>&5
10242 ac_status=$?
10243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10245 (./conftest; exit; ) >&5 2>/dev/null
10246 lt_status=$?
10247 case x$lt_status in
10248 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10249 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10250 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10251 esac
10252 else :
10253 # compilation failed
10254 lt_cv_dlopen_self_static=no
10255 fi
10256 fi
10257 rm -fr conftest*
10258
10259
10260 fi
10261 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10262 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10263 fi
10264
10265 CPPFLAGS="$save_CPPFLAGS"
10266 LDFLAGS="$save_LDFLAGS"
10267 LIBS="$save_LIBS"
10268 ;;
10269 esac
10270
10271 case $lt_cv_dlopen_self in
10272 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10273 *) enable_dlopen_self=unknown ;;
10274 esac
10275
10276 case $lt_cv_dlopen_self_static in
10277 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10278 *) enable_dlopen_self_static=unknown ;;
10279 esac
10280 fi
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298 striplib=
10299 old_striplib=
10300 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10301 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10302 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10303 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10304 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10305 { $as_echo "$as_me:$LINENO: result: yes" >&5
10306 $as_echo "yes" >&6; }
10307 else
10308 # FIXME - insert some real tests, host_os isn't really good enough
10309 case $host_os in
10310 darwin*)
10311 if test -n "$STRIP" ; then
10312 striplib="$STRIP -x"
10313 old_striplib="$STRIP -S"
10314 { $as_echo "$as_me:$LINENO: result: yes" >&5
10315 $as_echo "yes" >&6; }
10316 else
10317 { $as_echo "$as_me:$LINENO: result: no" >&5
10318 $as_echo "no" >&6; }
10319 fi
10320 ;;
10321 *)
10322 { $as_echo "$as_me:$LINENO: result: no" >&5
10323 $as_echo "no" >&6; }
10324 ;;
10325 esac
10326 fi
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339 # Report which library types will actually be built
10340 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10341 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10342 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10343 $as_echo "$can_build_shared" >&6; }
10344
10345 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10346 $as_echo_n "checking whether to build shared libraries... " >&6; }
10347 test "$can_build_shared" = "no" && enable_shared=no
10348
10349 # On AIX, shared libraries and static libraries use the same namespace, and
10350 # are all built from PIC.
10351 case $host_os in
10352 aix3*)
10353 test "$enable_shared" = yes && enable_static=no
10354 if test -n "$RANLIB"; then
10355 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10356 postinstall_cmds='$RANLIB $lib'
10357 fi
10358 ;;
10359
10360 aix[4-9]*)
10361 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10362 test "$enable_shared" = yes && enable_static=no
10363 fi
10364 ;;
10365 esac
10366 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10367 $as_echo "$enable_shared" >&6; }
10368
10369 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10370 $as_echo_n "checking whether to build static libraries... " >&6; }
10371 # Make sure either enable_shared or enable_static is yes.
10372 test "$enable_shared" = yes || enable_static=yes
10373 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10374 $as_echo "$enable_static" >&6; }
10375
10376
10377
10378
10379 fi
10380 ac_ext=c
10381 ac_cpp='$CPP $CPPFLAGS'
10382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10385
10386 CC="$lt_save_CC"
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400 ac_config_commands="$ac_config_commands libtool"
10401
10402
10403
10404
10405 # Only expand once:
10406
10407
10408 am__api_version='1.11'
10409
10410 # Find a good install program. We prefer a C program (faster),
10411 # so one script is as good as another. But avoid the broken or
10412 # incompatible versions:
10413 # SysV /etc/install, /usr/sbin/install
10414 # SunOS /usr/etc/install
10415 # IRIX /sbin/install
10416 # AIX /bin/install
10417 # AmigaOS /C/install, which installs bootblocks on floppy discs
10418 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10419 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10420 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10421 # OS/2's system install, which has a completely different semantic
10422 # ./install, which can be erroneously created by make from ./install.sh.
10423 # Reject install programs that cannot install multiple files.
10424 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10425 $as_echo_n "checking for a BSD-compatible install... " >&6; }
10426 if test -z "$INSTALL"; then
10427 if test "${ac_cv_path_install+set}" = set; then
10428 $as_echo_n "(cached) " >&6
10429 else
10430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10431 for as_dir in $PATH
10432 do
10433 IFS=$as_save_IFS
10434 test -z "$as_dir" && as_dir=.
10435 # Account for people who put trailing slashes in PATH elements.
10436 case $as_dir/ in
10437 ./ | .// | /cC/* | \
10438 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10439 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10440 /usr/ucb/* ) ;;
10441 *)
10442 # OSF1 and SCO ODT 3.0 have their own names for install.
10443 # Don't use installbsd from OSF since it installs stuff as root
10444 # by default.
10445 for ac_prog in ginstall scoinst install; do
10446 for ac_exec_ext in '' $ac_executable_extensions; do
10447 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10448 if test $ac_prog = install &&
10449 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10450 # AIX install. It has an incompatible calling convention.
10451 :
10452 elif test $ac_prog = install &&
10453 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10454 # program-specific install script used by HP pwplus--don't use.
10455 :
10456 else
10457 rm -rf conftest.one conftest.two conftest.dir
10458 echo one > conftest.one
10459 echo two > conftest.two
10460 mkdir conftest.dir
10461 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10462 test -s conftest.one && test -s conftest.two &&
10463 test -s conftest.dir/conftest.one &&
10464 test -s conftest.dir/conftest.two
10465 then
10466 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10467 break 3
10468 fi
10469 fi
10470 fi
10471 done
10472 done
10473 ;;
10474 esac
10475
10476 done
10477 IFS=$as_save_IFS
10478
10479 rm -rf conftest.one conftest.two conftest.dir
10480
10481 fi
10482 if test "${ac_cv_path_install+set}" = set; then
10483 INSTALL=$ac_cv_path_install
10484 else
10485 # As a last resort, use the slow shell script. Don't cache a
10486 # value for INSTALL within a source directory, because that will
10487 # break other packages using the cache if that directory is
10488 # removed, or if the value is a relative name.
10489 INSTALL=$ac_install_sh
10490 fi
10491 fi
10492 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10493 $as_echo "$INSTALL" >&6; }
10494
10495 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10496 # It thinks the first close brace ends the variable substitution.
10497 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10498
10499 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10500
10501 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10502
10503 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
10504 $as_echo_n "checking whether build environment is sane... " >&6; }
10505 # Just in case
10506 sleep 1
10507 echo timestamp > conftest.file
10508 # Reject unsafe characters in $srcdir or the absolute working directory
10509 # name. Accept space and tab only in the latter.
10510 am_lf='
10511 '
10512 case `pwd` in
10513 *[\\\"\#\$\&\'\`$am_lf]*)
10514 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
10515 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
10516 { (exit 1); exit 1; }; };;
10517 esac
10518 case $srcdir in
10519 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
10520 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
10521 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
10522 { (exit 1); exit 1; }; };;
10523 esac
10524
10525 # Do `set' in a subshell so we don't clobber the current shell's
10526 # arguments. Must try -L first in case configure is actually a
10527 # symlink; some systems play weird games with the mod time of symlinks
10528 # (eg FreeBSD returns the mod time of the symlink's containing
10529 # directory).
10530 if (
10531 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10532 if test "$*" = "X"; then
10533 # -L didn't work.
10534 set X `ls -t "$srcdir/configure" conftest.file`
10535 fi
10536 rm -f conftest.file
10537 if test "$*" != "X $srcdir/configure conftest.file" \
10538 && test "$*" != "X conftest.file $srcdir/configure"; then
10539
10540 # If neither matched, then we have a broken ls. This can happen
10541 # if, for instance, CONFIG_SHELL is bash and it inherits a
10542 # broken ls alias from the environment. This has actually
10543 # happened. Such a system could not be considered "sane".
10544 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
10545 alias in your environment" >&5
10546 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
10547 alias in your environment" >&2;}
10548 { (exit 1); exit 1; }; }
10549 fi
10550
10551 test "$2" = conftest.file
10552 )
10553 then
10554 # Ok.
10555 :
10556 else
10557 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
10558 Check your system clock" >&5
10559 $as_echo "$as_me: error: newly created file is older than distributed files!
10560 Check your system clock" >&2;}
10561 { (exit 1); exit 1; }; }
10562 fi
10563 { $as_echo "$as_me:$LINENO: result: yes" >&5
10564 $as_echo "yes" >&6; }
10565 test "$program_prefix" != NONE &&
10566 program_transform_name="s&^&$program_prefix&;$program_transform_name"
10567 # Use a double $ so make ignores it.
10568 test "$program_suffix" != NONE &&
10569 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10570 # Double any \ or $.
10571 # By default was `s,x,x', remove it if useless.
10572 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10573 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10574
10575 # expand $ac_aux_dir to an absolute path
10576 am_aux_dir=`cd $ac_aux_dir && pwd`
10577
10578 if test x"${MISSING+set}" != xset; then
10579 case $am_aux_dir in
10580 *\ * | *\ *)
10581 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10582 *)
10583 MISSING="\${SHELL} $am_aux_dir/missing" ;;
10584 esac
10585 fi
10586 # Use eval to expand $SHELL
10587 if eval "$MISSING --run true"; then
10588 am_missing_run="$MISSING --run "
10589 else
10590 am_missing_run=
10591 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
10592 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10593 fi
10594
10595 if test x"${install_sh}" != xset; then
10596 case $am_aux_dir in
10597 *\ * | *\ *)
10598 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10599 *)
10600 install_sh="\${SHELL} $am_aux_dir/install-sh"
10601 esac
10602 fi
10603
10604 # Installed binaries are usually stripped using `strip' when the user
10605 # run `make install-strip'. However `strip' might not be the right
10606 # tool to use in cross-compilation environments, therefore Automake
10607 # will honor the `STRIP' environment variable to overrule this program.
10608 if test "$cross_compiling" != no; then
10609 if test -n "$ac_tool_prefix"; then
10610 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10611 set dummy ${ac_tool_prefix}strip; ac_word=$2
10612 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10613 $as_echo_n "checking for $ac_word... " >&6; }
10614 if test "${ac_cv_prog_STRIP+set}" = set; then
10615 $as_echo_n "(cached) " >&6
10616 else
10617 if test -n "$STRIP"; then
10618 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10619 else
10620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10621 for as_dir in $PATH
10622 do
10623 IFS=$as_save_IFS
10624 test -z "$as_dir" && as_dir=.
10625 for ac_exec_ext in '' $ac_executable_extensions; do
10626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10627 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10628 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10629 break 2
10630 fi
10631 done
10632 done
10633 IFS=$as_save_IFS
10634
10635 fi
10636 fi
10637 STRIP=$ac_cv_prog_STRIP
10638 if test -n "$STRIP"; then
10639 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
10640 $as_echo "$STRIP" >&6; }
10641 else
10642 { $as_echo "$as_me:$LINENO: result: no" >&5
10643 $as_echo "no" >&6; }
10644 fi
10645
10646
10647 fi
10648 if test -z "$ac_cv_prog_STRIP"; then
10649 ac_ct_STRIP=$STRIP
10650 # Extract the first word of "strip", so it can be a program name with args.
10651 set dummy strip; ac_word=$2
10652 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10653 $as_echo_n "checking for $ac_word... " >&6; }
10654 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10655 $as_echo_n "(cached) " >&6
10656 else
10657 if test -n "$ac_ct_STRIP"; then
10658 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10659 else
10660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10661 for as_dir in $PATH
10662 do
10663 IFS=$as_save_IFS
10664 test -z "$as_dir" && as_dir=.
10665 for ac_exec_ext in '' $ac_executable_extensions; do
10666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10667 ac_cv_prog_ac_ct_STRIP="strip"
10668 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10669 break 2
10670 fi
10671 done
10672 done
10673 IFS=$as_save_IFS
10674
10675 fi
10676 fi
10677 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10678 if test -n "$ac_ct_STRIP"; then
10679 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10680 $as_echo "$ac_ct_STRIP" >&6; }
10681 else
10682 { $as_echo "$as_me:$LINENO: result: no" >&5
10683 $as_echo "no" >&6; }
10684 fi
10685
10686 if test "x$ac_ct_STRIP" = x; then
10687 STRIP=":"
10688 else
10689 case $cross_compiling:$ac_tool_warned in
10690 yes:)
10691 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10693 ac_tool_warned=yes ;;
10694 esac
10695 STRIP=$ac_ct_STRIP
10696 fi
10697 else
10698 STRIP="$ac_cv_prog_STRIP"
10699 fi
10700
10701 fi
10702 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10703
10704 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
10705 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10706 if test -z "$MKDIR_P"; then
10707 if test "${ac_cv_path_mkdir+set}" = set; then
10708 $as_echo_n "(cached) " >&6
10709 else
10710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10711 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10712 do
10713 IFS=$as_save_IFS
10714 test -z "$as_dir" && as_dir=.
10715 for ac_prog in mkdir gmkdir; do
10716 for ac_exec_ext in '' $ac_executable_extensions; do
10717 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10718 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10719 'mkdir (GNU coreutils) '* | \
10720 'mkdir (coreutils) '* | \
10721 'mkdir (fileutils) '4.1*)
10722 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10723 break 3;;
10724 esac
10725 done
10726 done
10727 done
10728 IFS=$as_save_IFS
10729
10730 fi
10731
10732 if test "${ac_cv_path_mkdir+set}" = set; then
10733 MKDIR_P="$ac_cv_path_mkdir -p"
10734 else
10735 # As a last resort, use the slow shell script. Don't cache a
10736 # value for MKDIR_P within a source directory, because that will
10737 # break other packages using the cache if that directory is
10738 # removed, or if the value is a relative name.
10739 test -d ./--version && rmdir ./--version
10740 MKDIR_P="$ac_install_sh -d"
10741 fi
10742 fi
10743 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
10744 $as_echo "$MKDIR_P" >&6; }
10745
10746 mkdir_p="$MKDIR_P"
10747 case $mkdir_p in
10748 [\\/$]* | ?:[\\/]*) ;;
10749 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10750 esac
10751
10752 for ac_prog in gawk mawk nawk awk
10753 do
10754 # Extract the first word of "$ac_prog", so it can be a program name with args.
10755 set dummy $ac_prog; ac_word=$2
10756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10757 $as_echo_n "checking for $ac_word... " >&6; }
10758 if test "${ac_cv_prog_AWK+set}" = set; then
10759 $as_echo_n "(cached) " >&6
10760 else
10761 if test -n "$AWK"; then
10762 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10763 else
10764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10765 for as_dir in $PATH
10766 do
10767 IFS=$as_save_IFS
10768 test -z "$as_dir" && as_dir=.
10769 for ac_exec_ext in '' $ac_executable_extensions; do
10770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10771 ac_cv_prog_AWK="$ac_prog"
10772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10773 break 2
10774 fi
10775 done
10776 done
10777 IFS=$as_save_IFS
10778
10779 fi
10780 fi
10781 AWK=$ac_cv_prog_AWK
10782 if test -n "$AWK"; then
10783 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
10784 $as_echo "$AWK" >&6; }
10785 else
10786 { $as_echo "$as_me:$LINENO: result: no" >&5
10787 $as_echo "no" >&6; }
10788 fi
10789
10790
10791 test -n "$AWK" && break
10792 done
10793
10794 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10795 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10796 set x ${MAKE-make}
10797 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10798 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10799 $as_echo_n "(cached) " >&6
10800 else
10801 cat >conftest.make <<\_ACEOF
10802 SHELL = /bin/sh
10803 all:
10804 @echo '@@@%%%=$(MAKE)=@@@%%%'
10805 _ACEOF
10806 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10807 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10808 *@@@%%%=?*=@@@%%%*)
10809 eval ac_cv_prog_make_${ac_make}_set=yes;;
10810 *)
10811 eval ac_cv_prog_make_${ac_make}_set=no;;
10812 esac
10813 rm -f conftest.make
10814 fi
10815 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10816 { $as_echo "$as_me:$LINENO: result: yes" >&5
10817 $as_echo "yes" >&6; }
10818 SET_MAKE=
10819 else
10820 { $as_echo "$as_me:$LINENO: result: no" >&5
10821 $as_echo "no" >&6; }
10822 SET_MAKE="MAKE=${MAKE-make}"
10823 fi
10824
10825 rm -rf .tst 2>/dev/null
10826 mkdir .tst 2>/dev/null
10827 if test -d .tst; then
10828 am__leading_dot=.
10829 else
10830 am__leading_dot=_
10831 fi
10832 rmdir .tst 2>/dev/null
10833
10834 DEPDIR="${am__leading_dot}deps"
10835
10836 ac_config_commands="$ac_config_commands depfiles"
10837
10838
10839 am_make=${MAKE-make}
10840 cat > confinc << 'END'
10841 am__doit:
10842 @echo this is the am__doit target
10843 .PHONY: am__doit
10844 END
10845 # If we don't find an include directive, just comment out the code.
10846 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
10847 $as_echo_n "checking for style of include used by $am_make... " >&6; }
10848 am__include="#"
10849 am__quote=
10850 _am_result=none
10851 # First try GNU make style include.
10852 echo "include confinc" > confmf
10853 # Ignore all kinds of additional output from `make'.
10854 case `$am_make -s -f confmf 2> /dev/null` in #(
10855 *the\ am__doit\ target*)
10856 am__include=include
10857 am__quote=
10858 _am_result=GNU
10859 ;;
10860 esac
10861 # Now try BSD make style include.
10862 if test "$am__include" = "#"; then
10863 echo '.include "confinc"' > confmf
10864 case `$am_make -s -f confmf 2> /dev/null` in #(
10865 *the\ am__doit\ target*)
10866 am__include=.include
10867 am__quote="\""
10868 _am_result=BSD
10869 ;;
10870 esac
10871 fi
10872
10873
10874 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
10875 $as_echo "$_am_result" >&6; }
10876 rm -f confinc confmf
10877
10878 # Check whether --enable-dependency-tracking was given.
10879 if test "${enable_dependency_tracking+set}" = set; then
10880 enableval=$enable_dependency_tracking;
10881 fi
10882
10883 if test "x$enable_dependency_tracking" != xno; then
10884 am_depcomp="$ac_aux_dir/depcomp"
10885 AMDEPBACKSLASH='\'
10886 fi
10887 if test "x$enable_dependency_tracking" != xno; then
10888 AMDEP_TRUE=
10889 AMDEP_FALSE='#'
10890 else
10891 AMDEP_TRUE='#'
10892 AMDEP_FALSE=
10893 fi
10894
10895
10896 if test "`cd $srcdir && pwd`" != "`pwd`"; then
10897 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10898 # is not polluted with repeated "-I."
10899 am__isrc=' -I$(srcdir)'
10900 # test to see if srcdir already configured
10901 if test -f $srcdir/config.status; then
10902 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
10903 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
10904 { (exit 1); exit 1; }; }
10905 fi
10906 fi
10907
10908 # test whether we have cygpath
10909 if test -z "$CYGPATH_W"; then
10910 if (cygpath --version) >/dev/null 2>/dev/null; then
10911 CYGPATH_W='cygpath -w'
10912 else
10913 CYGPATH_W=echo
10914 fi
10915 fi
10916
10917
10918 # Define the identity of the package.
10919 PACKAGE='linpac'
10920 VERSION='0.28'
10921
10922
10923 cat >>confdefs.h <<_ACEOF
10924 #define PACKAGE "$PACKAGE"
10925 _ACEOF
10926
10927
10928 cat >>confdefs.h <<_ACEOF
10929 #define VERSION "$VERSION"
10930 _ACEOF
10931
10932 # Some tools Automake needs.
10933
10934 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10935
10936
10937 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10938
10939
10940 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10941
10942
10943 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10944
10945
10946 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10947
10948 # We need awk for the "check" target. The system "awk" is bad on
10949 # some platforms.
10950 # Always define AMTAR for backward compatibility.
10951
10952 AMTAR=${AMTAR-"${am_missing_run}tar"}
10953
10954 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
10955
10956
10957
10958
10959 depcc="$CC" am_compiler_list=
10960
10961 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
10962 $as_echo_n "checking dependency style of $depcc... " >&6; }
10963 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
10964 $as_echo_n "(cached) " >&6
10965 else
10966 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10967 # We make a subdir and do the tests there. Otherwise we can end up
10968 # making bogus files that we don't know about and never remove. For
10969 # instance it was reported that on HP-UX the gcc test will end up
10970 # making a dummy file named `D' -- because `-MD' means `put the output
10971 # in D'.
10972 mkdir conftest.dir
10973 # Copy depcomp to subdir because otherwise we won't find it if we're
10974 # using a relative directory.
10975 cp "$am_depcomp" conftest.dir
10976 cd conftest.dir
10977 # We will build objects and dependencies in a subdirectory because
10978 # it helps to detect inapplicable dependency modes. For instance
10979 # both Tru64's cc and ICC support -MD to output dependencies as a
10980 # side effect of compilation, but ICC will put the dependencies in
10981 # the current directory while Tru64 will put them in the object
10982 # directory.
10983 mkdir sub
10984
10985 am_cv_CC_dependencies_compiler_type=none
10986 if test "$am_compiler_list" = ""; then
10987 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10988 fi
10989 am__universal=false
10990 case " $depcc " in #(
10991 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10992 esac
10993
10994 for depmode in $am_compiler_list; do
10995 # Setup a source with many dependencies, because some compilers
10996 # like to wrap large dependency lists on column 80 (with \), and
10997 # we should not choose a depcomp mode which is confused by this.
10998 #
10999 # We need to recreate these files for each test, as the compiler may
11000 # overwrite some of them when testing with obscure command lines.
11001 # This happens at least with the AIX C compiler.
11002 : > sub/conftest.c
11003 for i in 1 2 3 4 5 6; do
11004 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11005 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11006 # Solaris 8's {/usr,}/bin/sh.
11007 touch sub/conftst$i.h
11008 done
11009 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11010
11011 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11012 # mode. It turns out that the SunPro C++ compiler does not properly
11013 # handle `-M -o', and we need to detect this. Also, some Intel
11014 # versions had trouble with output in subdirs
11015 am__obj=sub/conftest.${OBJEXT-o}
11016 am__minus_obj="-o $am__obj"
11017 case $depmode in
11018 gcc)
11019 # This depmode causes a compiler race in universal mode.
11020 test "$am__universal" = false || continue
11021 ;;
11022 nosideeffect)
11023 # after this tag, mechanisms are not by side-effect, so they'll
11024 # only be used when explicitly requested
11025 if test "x$enable_dependency_tracking" = xyes; then
11026 continue
11027 else
11028 break
11029 fi
11030 ;;
11031 msvisualcpp | msvcmsys)
11032 # This compiler won't grok `-c -o', but also, the minuso test has
11033 # not run yet. These depmodes are late enough in the game, and
11034 # so weak that their functioning should not be impacted.
11035 am__obj=conftest.${OBJEXT-o}
11036 am__minus_obj=
11037 ;;
11038 none) break ;;
11039 esac
11040 if depmode=$depmode \
11041 source=sub/conftest.c object=$am__obj \
11042 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11043 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11044 >/dev/null 2>conftest.err &&
11045 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11046 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11047 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11048 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11049 # icc doesn't choke on unknown options, it will just issue warnings
11050 # or remarks (even with -Werror). So we grep stderr for any message
11051 # that says an option was ignored or not supported.
11052 # When given -MP, icc 7.0 and 7.1 complain thusly:
11053 # icc: Command line warning: ignoring option '-M'; no argument required
11054 # The diagnosis changed in icc 8.0:
11055 # icc: Command line remark: option '-MP' not supported
11056 if (grep 'ignoring option' conftest.err ||
11057 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11058 am_cv_CC_dependencies_compiler_type=$depmode
11059 break
11060 fi
11061 fi
11062 done
11063
11064 cd ..
11065 rm -rf conftest.dir
11066 else
11067 am_cv_CC_dependencies_compiler_type=none
11068 fi
11069
11070 fi
11071 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11072 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11073 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11074
11075 if
11076 test "x$enable_dependency_tracking" != xno \
11077 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11078 am__fastdepCC_TRUE=
11079 am__fastdepCC_FALSE='#'
11080 else
11081 am__fastdepCC_TRUE='#'
11082 am__fastdepCC_FALSE=
11083 fi
11084
11085
11086
11087
11088 # Checks for programs
11089 ac_ext=cpp
11090 ac_cpp='$CXXCPP $CPPFLAGS'
11091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11094
11095 ac_ext=c
11096 ac_cpp='$CPP $CPPFLAGS'
11097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11100
11101 ac_ext=cpp
11102 ac_cpp='$CXXCPP $CPPFLAGS'
11103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11106 if test -z "$CXX"; then
11107 if test -n "$CCC"; then
11108 CXX=$CCC
11109 else
11110 if test -n "$ac_tool_prefix"; then
11111 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11112 do
11113 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11114 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11115 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11116 $as_echo_n "checking for $ac_word... " >&6; }
11117 if test "${ac_cv_prog_CXX+set}" = set; then
11118 $as_echo_n "(cached) " >&6
11119 else
11120 if test -n "$CXX"; then
11121 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11122 else
11123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124 for as_dir in $PATH
11125 do
11126 IFS=$as_save_IFS
11127 test -z "$as_dir" && as_dir=.
11128 for ac_exec_ext in '' $ac_executable_extensions; do
11129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11130 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11131 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11132 break 2
11133 fi
11134 done
11135 done
11136 IFS=$as_save_IFS
11137
11138 fi
11139 fi
11140 CXX=$ac_cv_prog_CXX
11141 if test -n "$CXX"; then
11142 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
11143 $as_echo "$CXX" >&6; }
11144 else
11145 { $as_echo "$as_me:$LINENO: result: no" >&5
11146 $as_echo "no" >&6; }
11147 fi
11148
11149
11150 test -n "$CXX" && break
11151 done
11152 fi
11153 if test -z "$CXX"; then
11154 ac_ct_CXX=$CXX
11155 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11156 do
11157 # Extract the first word of "$ac_prog", so it can be a program name with args.
11158 set dummy $ac_prog; ac_word=$2
11159 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11160 $as_echo_n "checking for $ac_word... " >&6; }
11161 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11162 $as_echo_n "(cached) " >&6
11163 else
11164 if test -n "$ac_ct_CXX"; then
11165 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11166 else
11167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168 for as_dir in $PATH
11169 do
11170 IFS=$as_save_IFS
11171 test -z "$as_dir" && as_dir=.
11172 for ac_exec_ext in '' $ac_executable_extensions; do
11173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11174 ac_cv_prog_ac_ct_CXX="$ac_prog"
11175 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11176 break 2
11177 fi
11178 done
11179 done
11180 IFS=$as_save_IFS
11181
11182 fi
11183 fi
11184 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11185 if test -n "$ac_ct_CXX"; then
11186 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11187 $as_echo "$ac_ct_CXX" >&6; }
11188 else
11189 { $as_echo "$as_me:$LINENO: result: no" >&5
11190 $as_echo "no" >&6; }
11191 fi
11192
11193
11194 test -n "$ac_ct_CXX" && break
11195 done
11196
11197 if test "x$ac_ct_CXX" = x; then
11198 CXX="g++"
11199 else
11200 case $cross_compiling:$ac_tool_warned in
11201 yes:)
11202 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11204 ac_tool_warned=yes ;;
11205 esac
11206 CXX=$ac_ct_CXX
11207 fi
11208 fi
11209
11210 fi
11211 fi
11212 # Provide some information about the compiler.
11213 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
11214 set X $ac_compile
11215 ac_compiler=$2
11216 { (ac_try="$ac_compiler --version >&5"
11217 case "(($ac_try" in
11218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11219 *) ac_try_echo=$ac_try;;
11220 esac
11221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11222 $as_echo "$ac_try_echo") >&5
11223 (eval "$ac_compiler --version >&5") 2>&5
11224 ac_status=$?
11225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); }
11227 { (ac_try="$ac_compiler -v >&5"
11228 case "(($ac_try" in
11229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230 *) ac_try_echo=$ac_try;;
11231 esac
11232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11233 $as_echo "$ac_try_echo") >&5
11234 (eval "$ac_compiler -v >&5") 2>&5
11235 ac_status=$?
11236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }
11238 { (ac_try="$ac_compiler -V >&5"
11239 case "(($ac_try" in
11240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11242 esac
11243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11244 $as_echo "$ac_try_echo") >&5
11245 (eval "$ac_compiler -V >&5") 2>&5
11246 ac_status=$?
11247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }
11249
11250 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11251 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11252 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11253 $as_echo_n "(cached) " >&6
11254 else
11255 cat >conftest.$ac_ext <<_ACEOF
11256 /* confdefs.h. */
11257 _ACEOF
11258 cat confdefs.h >>conftest.$ac_ext
11259 cat >>conftest.$ac_ext <<_ACEOF
11260 /* end confdefs.h. */
11261
11262 int
11263 main ()
11264 {
11265 #ifndef __GNUC__
11266 choke me
11267 #endif
11268
11269 ;
11270 return 0;
11271 }
11272 _ACEOF
11273 rm -f conftest.$ac_objext
11274 if { (ac_try="$ac_compile"
11275 case "(($ac_try" in
11276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277 *) ac_try_echo=$ac_try;;
11278 esac
11279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11280 $as_echo "$ac_try_echo") >&5
11281 (eval "$ac_compile") 2>conftest.er1
11282 ac_status=$?
11283 grep -v '^ *+' conftest.er1 >conftest.err
11284 rm -f conftest.er1
11285 cat conftest.err >&5
11286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); } && {
11288 test -z "$ac_cxx_werror_flag" ||
11289 test ! -s conftest.err
11290 } && test -s conftest.$ac_objext; then
11291 ac_compiler_gnu=yes
11292 else
11293 $as_echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11295
11296 ac_compiler_gnu=no
11297 fi
11298
11299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11300 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11301
11302 fi
11303 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11304 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11305 if test $ac_compiler_gnu = yes; then
11306 GXX=yes
11307 else
11308 GXX=
11309 fi
11310 ac_test_CXXFLAGS=${CXXFLAGS+set}
11311 ac_save_CXXFLAGS=$CXXFLAGS
11312 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11313 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11314 if test "${ac_cv_prog_cxx_g+set}" = set; then
11315 $as_echo_n "(cached) " >&6
11316 else
11317 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11318 ac_cxx_werror_flag=yes
11319 ac_cv_prog_cxx_g=no
11320 CXXFLAGS="-g"
11321 cat >conftest.$ac_ext <<_ACEOF
11322 /* confdefs.h. */
11323 _ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h. */
11327
11328 int
11329 main ()
11330 {
11331
11332 ;
11333 return 0;
11334 }
11335 _ACEOF
11336 rm -f conftest.$ac_objext
11337 if { (ac_try="$ac_compile"
11338 case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11341 esac
11342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11343 $as_echo "$ac_try_echo") >&5
11344 (eval "$ac_compile") 2>conftest.er1
11345 ac_status=$?
11346 grep -v '^ *+' conftest.er1 >conftest.err
11347 rm -f conftest.er1
11348 cat conftest.err >&5
11349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } && {
11351 test -z "$ac_cxx_werror_flag" ||
11352 test ! -s conftest.err
11353 } && test -s conftest.$ac_objext; then
11354 ac_cv_prog_cxx_g=yes
11355 else
11356 $as_echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.$ac_ext >&5
11358
11359 CXXFLAGS=""
11360 cat >conftest.$ac_ext <<_ACEOF
11361 /* confdefs.h. */
11362 _ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h. */
11366
11367 int
11368 main ()
11369 {
11370
11371 ;
11372 return 0;
11373 }
11374 _ACEOF
11375 rm -f conftest.$ac_objext
11376 if { (ac_try="$ac_compile"
11377 case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11380 esac
11381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11382 $as_echo "$ac_try_echo") >&5
11383 (eval "$ac_compile") 2>conftest.er1
11384 ac_status=$?
11385 grep -v '^ *+' conftest.er1 >conftest.err
11386 rm -f conftest.er1
11387 cat conftest.err >&5
11388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); } && {
11390 test -z "$ac_cxx_werror_flag" ||
11391 test ! -s conftest.err
11392 } && test -s conftest.$ac_objext; then
11393 :
11394 else
11395 $as_echo "$as_me: failed program was:" >&5
11396 sed 's/^/| /' conftest.$ac_ext >&5
11397
11398 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11399 CXXFLAGS="-g"
11400 cat >conftest.$ac_ext <<_ACEOF
11401 /* confdefs.h. */
11402 _ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h. */
11406
11407 int
11408 main ()
11409 {
11410
11411 ;
11412 return 0;
11413 }
11414 _ACEOF
11415 rm -f conftest.$ac_objext
11416 if { (ac_try="$ac_compile"
11417 case "(($ac_try" in
11418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11419 *) ac_try_echo=$ac_try;;
11420 esac
11421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11422 $as_echo "$ac_try_echo") >&5
11423 (eval "$ac_compile") 2>conftest.er1
11424 ac_status=$?
11425 grep -v '^ *+' conftest.er1 >conftest.err
11426 rm -f conftest.er1
11427 cat conftest.err >&5
11428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } && {
11430 test -z "$ac_cxx_werror_flag" ||
11431 test ! -s conftest.err
11432 } && test -s conftest.$ac_objext; then
11433 ac_cv_prog_cxx_g=yes
11434 else
11435 $as_echo "$as_me: failed program was:" >&5
11436 sed 's/^/| /' conftest.$ac_ext >&5
11437
11438
11439 fi
11440
11441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11442 fi
11443
11444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11445 fi
11446
11447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11448 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11449 fi
11450 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11451 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11452 if test "$ac_test_CXXFLAGS" = set; then
11453 CXXFLAGS=$ac_save_CXXFLAGS
11454 elif test $ac_cv_prog_cxx_g = yes; then
11455 if test "$GXX" = yes; then
11456 CXXFLAGS="-g -O2"
11457 else
11458 CXXFLAGS="-g"
11459 fi
11460 else
11461 if test "$GXX" = yes; then
11462 CXXFLAGS="-O2"
11463 else
11464 CXXFLAGS=
11465 fi
11466 fi
11467 ac_ext=c
11468 ac_cpp='$CPP $CPPFLAGS'
11469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11472
11473
11474 ac_ext=cpp
11475 ac_cpp='$CXXCPP $CPPFLAGS'
11476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11479 if test -z "$CXX"; then
11480 if test -n "$CCC"; then
11481 CXX=$CCC
11482 else
11483 if test -n "$ac_tool_prefix"; then
11484 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11485 do
11486 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11487 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11488 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11489 $as_echo_n "checking for $ac_word... " >&6; }
11490 if test "${ac_cv_prog_CXX+set}" = set; then
11491 $as_echo_n "(cached) " >&6
11492 else
11493 if test -n "$CXX"; then
11494 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11495 else
11496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11497 for as_dir in $PATH
11498 do
11499 IFS=$as_save_IFS
11500 test -z "$as_dir" && as_dir=.
11501 for ac_exec_ext in '' $ac_executable_extensions; do
11502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11503 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11504 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11505 break 2
11506 fi
11507 done
11508 done
11509 IFS=$as_save_IFS
11510
11511 fi
11512 fi
11513 CXX=$ac_cv_prog_CXX
11514 if test -n "$CXX"; then
11515 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
11516 $as_echo "$CXX" >&6; }
11517 else
11518 { $as_echo "$as_me:$LINENO: result: no" >&5
11519 $as_echo "no" >&6; }
11520 fi
11521
11522
11523 test -n "$CXX" && break
11524 done
11525 fi
11526 if test -z "$CXX"; then
11527 ac_ct_CXX=$CXX
11528 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11529 do
11530 # Extract the first word of "$ac_prog", so it can be a program name with args.
11531 set dummy $ac_prog; ac_word=$2
11532 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11533 $as_echo_n "checking for $ac_word... " >&6; }
11534 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11535 $as_echo_n "(cached) " >&6
11536 else
11537 if test -n "$ac_ct_CXX"; then
11538 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11539 else
11540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11541 for as_dir in $PATH
11542 do
11543 IFS=$as_save_IFS
11544 test -z "$as_dir" && as_dir=.
11545 for ac_exec_ext in '' $ac_executable_extensions; do
11546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11547 ac_cv_prog_ac_ct_CXX="$ac_prog"
11548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11549 break 2
11550 fi
11551 done
11552 done
11553 IFS=$as_save_IFS
11554
11555 fi
11556 fi
11557 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11558 if test -n "$ac_ct_CXX"; then
11559 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11560 $as_echo "$ac_ct_CXX" >&6; }
11561 else
11562 { $as_echo "$as_me:$LINENO: result: no" >&5
11563 $as_echo "no" >&6; }
11564 fi
11565
11566
11567 test -n "$ac_ct_CXX" && break
11568 done
11569
11570 if test "x$ac_ct_CXX" = x; then
11571 CXX="g++"
11572 else
11573 case $cross_compiling:$ac_tool_warned in
11574 yes:)
11575 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11577 ac_tool_warned=yes ;;
11578 esac
11579 CXX=$ac_ct_CXX
11580 fi
11581 fi
11582
11583 fi
11584 fi
11585 # Provide some information about the compiler.
11586 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
11587 set X $ac_compile
11588 ac_compiler=$2
11589 { (ac_try="$ac_compiler --version >&5"
11590 case "(($ac_try" in
11591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11592 *) ac_try_echo=$ac_try;;
11593 esac
11594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11595 $as_echo "$ac_try_echo") >&5
11596 (eval "$ac_compiler --version >&5") 2>&5
11597 ac_status=$?
11598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); }
11600 { (ac_try="$ac_compiler -v >&5"
11601 case "(($ac_try" in
11602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11603 *) ac_try_echo=$ac_try;;
11604 esac
11605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11606 $as_echo "$ac_try_echo") >&5
11607 (eval "$ac_compiler -v >&5") 2>&5
11608 ac_status=$?
11609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); }
11611 { (ac_try="$ac_compiler -V >&5"
11612 case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11615 esac
11616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11617 $as_echo "$ac_try_echo") >&5
11618 (eval "$ac_compiler -V >&5") 2>&5
11619 ac_status=$?
11620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }
11622
11623 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11624 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11625 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11626 $as_echo_n "(cached) " >&6
11627 else
11628 cat >conftest.$ac_ext <<_ACEOF
11629 /* confdefs.h. */
11630 _ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h. */
11634
11635 int
11636 main ()
11637 {
11638 #ifndef __GNUC__
11639 choke me
11640 #endif
11641
11642 ;
11643 return 0;
11644 }
11645 _ACEOF
11646 rm -f conftest.$ac_objext
11647 if { (ac_try="$ac_compile"
11648 case "(($ac_try" in
11649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650 *) ac_try_echo=$ac_try;;
11651 esac
11652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11653 $as_echo "$ac_try_echo") >&5
11654 (eval "$ac_compile") 2>conftest.er1
11655 ac_status=$?
11656 grep -v '^ *+' conftest.er1 >conftest.err
11657 rm -f conftest.er1
11658 cat conftest.err >&5
11659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } && {
11661 test -z "$ac_cxx_werror_flag" ||
11662 test ! -s conftest.err
11663 } && test -s conftest.$ac_objext; then
11664 ac_compiler_gnu=yes
11665 else
11666 $as_echo "$as_me: failed program was:" >&5
11667 sed 's/^/| /' conftest.$ac_ext >&5
11668
11669 ac_compiler_gnu=no
11670 fi
11671
11672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11673 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11674
11675 fi
11676 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11677 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11678 if test $ac_compiler_gnu = yes; then
11679 GXX=yes
11680 else
11681 GXX=
11682 fi
11683 ac_test_CXXFLAGS=${CXXFLAGS+set}
11684 ac_save_CXXFLAGS=$CXXFLAGS
11685 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11686 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11687 if test "${ac_cv_prog_cxx_g+set}" = set; then
11688 $as_echo_n "(cached) " >&6
11689 else
11690 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11691 ac_cxx_werror_flag=yes
11692 ac_cv_prog_cxx_g=no
11693 CXXFLAGS="-g"
11694 cat >conftest.$ac_ext <<_ACEOF
11695 /* confdefs.h. */
11696 _ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h. */
11700
11701 int
11702 main ()
11703 {
11704
11705 ;
11706 return 0;
11707 }
11708 _ACEOF
11709 rm -f conftest.$ac_objext
11710 if { (ac_try="$ac_compile"
11711 case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11714 esac
11715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11716 $as_echo "$ac_try_echo") >&5
11717 (eval "$ac_compile") 2>conftest.er1
11718 ac_status=$?
11719 grep -v '^ *+' conftest.er1 >conftest.err
11720 rm -f conftest.er1
11721 cat conftest.err >&5
11722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } && {
11724 test -z "$ac_cxx_werror_flag" ||
11725 test ! -s conftest.err
11726 } && test -s conftest.$ac_objext; then
11727 ac_cv_prog_cxx_g=yes
11728 else
11729 $as_echo "$as_me: failed program was:" >&5
11730 sed 's/^/| /' conftest.$ac_ext >&5
11731
11732 CXXFLAGS=""
11733 cat >conftest.$ac_ext <<_ACEOF
11734 /* confdefs.h. */
11735 _ACEOF
11736 cat confdefs.h >>conftest.$ac_ext
11737 cat >>conftest.$ac_ext <<_ACEOF
11738 /* end confdefs.h. */
11739
11740 int
11741 main ()
11742 {
11743
11744 ;
11745 return 0;
11746 }
11747 _ACEOF
11748 rm -f conftest.$ac_objext
11749 if { (ac_try="$ac_compile"
11750 case "(($ac_try" in
11751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752 *) ac_try_echo=$ac_try;;
11753 esac
11754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11755 $as_echo "$ac_try_echo") >&5
11756 (eval "$ac_compile") 2>conftest.er1
11757 ac_status=$?
11758 grep -v '^ *+' conftest.er1 >conftest.err
11759 rm -f conftest.er1
11760 cat conftest.err >&5
11761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); } && {
11763 test -z "$ac_cxx_werror_flag" ||
11764 test ! -s conftest.err
11765 } && test -s conftest.$ac_objext; then
11766 :
11767 else
11768 $as_echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11770
11771 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11772 CXXFLAGS="-g"
11773 cat >conftest.$ac_ext <<_ACEOF
11774 /* confdefs.h. */
11775 _ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h. */
11779
11780 int
11781 main ()
11782 {
11783
11784 ;
11785 return 0;
11786 }
11787 _ACEOF
11788 rm -f conftest.$ac_objext
11789 if { (ac_try="$ac_compile"
11790 case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11793 esac
11794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11795 $as_echo "$ac_try_echo") >&5
11796 (eval "$ac_compile") 2>conftest.er1
11797 ac_status=$?
11798 grep -v '^ *+' conftest.er1 >conftest.err
11799 rm -f conftest.er1
11800 cat conftest.err >&5
11801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); } && {
11803 test -z "$ac_cxx_werror_flag" ||
11804 test ! -s conftest.err
11805 } && test -s conftest.$ac_objext; then
11806 ac_cv_prog_cxx_g=yes
11807 else
11808 $as_echo "$as_me: failed program was:" >&5
11809 sed 's/^/| /' conftest.$ac_ext >&5
11810
11811
11812 fi
11813
11814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11815 fi
11816
11817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11818 fi
11819
11820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11821 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11822 fi
11823 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11824 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11825 if test "$ac_test_CXXFLAGS" = set; then
11826 CXXFLAGS=$ac_save_CXXFLAGS
11827 elif test $ac_cv_prog_cxx_g = yes; then
11828 if test "$GXX" = yes; then
11829 CXXFLAGS="-g -O2"
11830 else
11831 CXXFLAGS="-g"
11832 fi
11833 else
11834 if test "$GXX" = yes; then
11835 CXXFLAGS="-O2"
11836 else
11837 CXXFLAGS=
11838 fi
11839 fi
11840 ac_ext=c
11841 ac_cpp='$CPP $CPPFLAGS'
11842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11845
11846 depcc="$CXX" am_compiler_list=
11847
11848 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11849 $as_echo_n "checking dependency style of $depcc... " >&6; }
11850 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
11851 $as_echo_n "(cached) " >&6
11852 else
11853 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11854 # We make a subdir and do the tests there. Otherwise we can end up
11855 # making bogus files that we don't know about and never remove. For
11856 # instance it was reported that on HP-UX the gcc test will end up
11857 # making a dummy file named `D' -- because `-MD' means `put the output
11858 # in D'.
11859 mkdir conftest.dir
11860 # Copy depcomp to subdir because otherwise we won't find it if we're
11861 # using a relative directory.
11862 cp "$am_depcomp" conftest.dir
11863 cd conftest.dir
11864 # We will build objects and dependencies in a subdirectory because
11865 # it helps to detect inapplicable dependency modes. For instance
11866 # both Tru64's cc and ICC support -MD to output dependencies as a
11867 # side effect of compilation, but ICC will put the dependencies in
11868 # the current directory while Tru64 will put them in the object
11869 # directory.
11870 mkdir sub
11871
11872 am_cv_CXX_dependencies_compiler_type=none
11873 if test "$am_compiler_list" = ""; then
11874 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11875 fi
11876 am__universal=false
11877 case " $depcc " in #(
11878 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11879 esac
11880
11881 for depmode in $am_compiler_list; do
11882 # Setup a source with many dependencies, because some compilers
11883 # like to wrap large dependency lists on column 80 (with \), and
11884 # we should not choose a depcomp mode which is confused by this.
11885 #
11886 # We need to recreate these files for each test, as the compiler may
11887 # overwrite some of them when testing with obscure command lines.
11888 # This happens at least with the AIX C compiler.
11889 : > sub/conftest.c
11890 for i in 1 2 3 4 5 6; do
11891 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11892 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11893 # Solaris 8's {/usr,}/bin/sh.
11894 touch sub/conftst$i.h
11895 done
11896 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11897
11898 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11899 # mode. It turns out that the SunPro C++ compiler does not properly
11900 # handle `-M -o', and we need to detect this. Also, some Intel
11901 # versions had trouble with output in subdirs
11902 am__obj=sub/conftest.${OBJEXT-o}
11903 am__minus_obj="-o $am__obj"
11904 case $depmode in
11905 gcc)
11906 # This depmode causes a compiler race in universal mode.
11907 test "$am__universal" = false || continue
11908 ;;
11909 nosideeffect)
11910 # after this tag, mechanisms are not by side-effect, so they'll
11911 # only be used when explicitly requested
11912 if test "x$enable_dependency_tracking" = xyes; then
11913 continue
11914 else
11915 break
11916 fi
11917 ;;
11918 msvisualcpp | msvcmsys)
11919 # This compiler won't grok `-c -o', but also, the minuso test has
11920 # not run yet. These depmodes are late enough in the game, and
11921 # so weak that their functioning should not be impacted.
11922 am__obj=conftest.${OBJEXT-o}
11923 am__minus_obj=
11924 ;;
11925 none) break ;;
11926 esac
11927 if depmode=$depmode \
11928 source=sub/conftest.c object=$am__obj \
11929 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11930 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11931 >/dev/null 2>conftest.err &&
11932 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11933 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11934 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11935 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11936 # icc doesn't choke on unknown options, it will just issue warnings
11937 # or remarks (even with -Werror). So we grep stderr for any message
11938 # that says an option was ignored or not supported.
11939 # When given -MP, icc 7.0 and 7.1 complain thusly:
11940 # icc: Command line warning: ignoring option '-M'; no argument required
11941 # The diagnosis changed in icc 8.0:
11942 # icc: Command line remark: option '-MP' not supported
11943 if (grep 'ignoring option' conftest.err ||
11944 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11945 am_cv_CXX_dependencies_compiler_type=$depmode
11946 break
11947 fi
11948 fi
11949 done
11950
11951 cd ..
11952 rm -rf conftest.dir
11953 else
11954 am_cv_CXX_dependencies_compiler_type=none
11955 fi
11956
11957 fi
11958 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
11959 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11960 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11961
11962 if
11963 test "x$enable_dependency_tracking" != xno \
11964 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11965 am__fastdepCXX_TRUE=
11966 am__fastdepCXX_FALSE='#'
11967 else
11968 am__fastdepCXX_TRUE='#'
11969 am__fastdepCXX_FALSE=
11970 fi
11971
11972
11973 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11974 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11975 (test "X$CXX" != "Xg++"))) ; then
11976 ac_ext=cpp
11977 ac_cpp='$CXXCPP $CPPFLAGS'
11978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11981 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11982 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11983 if test -z "$CXXCPP"; then
11984 if test "${ac_cv_prog_CXXCPP+set}" = set; then
11985 $as_echo_n "(cached) " >&6
11986 else
11987 # Double quotes because CXXCPP needs to be expanded
11988 for CXXCPP in "$CXX -E" "/lib/cpp"
11989 do
11990 ac_preproc_ok=false
11991 for ac_cxx_preproc_warn_flag in '' yes
11992 do
11993 # Use a header file that comes with gcc, so configuring glibc
11994 # with a fresh cross-compiler works.
11995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11996 # <limits.h> exists even on freestanding compilers.
11997 # On the NeXT, cc -E runs the code through the compiler's parser,
11998 # not just through cpp. "Syntax error" is here to catch this case.
11999 cat >conftest.$ac_ext <<_ACEOF
12000 /* confdefs.h. */
12001 _ACEOF
12002 cat confdefs.h >>conftest.$ac_ext
12003 cat >>conftest.$ac_ext <<_ACEOF
12004 /* end confdefs.h. */
12005 #ifdef __STDC__
12006 # include <limits.h>
12007 #else
12008 # include <assert.h>
12009 #endif
12010 Syntax error
12011 _ACEOF
12012 if { (ac_try="$ac_cpp conftest.$ac_ext"
12013 case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12016 esac
12017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12018 $as_echo "$ac_try_echo") >&5
12019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12020 ac_status=$?
12021 grep -v '^ *+' conftest.er1 >conftest.err
12022 rm -f conftest.er1
12023 cat conftest.err >&5
12024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } >/dev/null && {
12026 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12027 test ! -s conftest.err
12028 }; then
12029 :
12030 else
12031 $as_echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12033
12034 # Broken: fails on valid input.
12035 continue
12036 fi
12037
12038 rm -f conftest.err conftest.$ac_ext
12039
12040 # OK, works on sane cases. Now check whether nonexistent headers
12041 # can be detected and how.
12042 cat >conftest.$ac_ext <<_ACEOF
12043 /* confdefs.h. */
12044 _ACEOF
12045 cat confdefs.h >>conftest.$ac_ext
12046 cat >>conftest.$ac_ext <<_ACEOF
12047 /* end confdefs.h. */
12048 #include <ac_nonexistent.h>
12049 _ACEOF
12050 if { (ac_try="$ac_cpp conftest.$ac_ext"
12051 case "(($ac_try" in
12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053 *) ac_try_echo=$ac_try;;
12054 esac
12055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12056 $as_echo "$ac_try_echo") >&5
12057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12058 ac_status=$?
12059 grep -v '^ *+' conftest.er1 >conftest.err
12060 rm -f conftest.er1
12061 cat conftest.err >&5
12062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } >/dev/null && {
12064 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12065 test ! -s conftest.err
12066 }; then
12067 # Broken: success on invalid input.
12068 continue
12069 else
12070 $as_echo "$as_me: failed program was:" >&5
12071 sed 's/^/| /' conftest.$ac_ext >&5
12072
12073 # Passes both tests.
12074 ac_preproc_ok=:
12075 break
12076 fi
12077
12078 rm -f conftest.err conftest.$ac_ext
12079
12080 done
12081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12082 rm -f conftest.err conftest.$ac_ext
12083 if $ac_preproc_ok; then
12084 break
12085 fi
12086
12087 done
12088 ac_cv_prog_CXXCPP=$CXXCPP
12089
12090 fi
12091 CXXCPP=$ac_cv_prog_CXXCPP
12092 else
12093 ac_cv_prog_CXXCPP=$CXXCPP
12094 fi
12095 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
12096 $as_echo "$CXXCPP" >&6; }
12097 ac_preproc_ok=false
12098 for ac_cxx_preproc_warn_flag in '' yes
12099 do
12100 # Use a header file that comes with gcc, so configuring glibc
12101 # with a fresh cross-compiler works.
12102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12103 # <limits.h> exists even on freestanding compilers.
12104 # On the NeXT, cc -E runs the code through the compiler's parser,
12105 # not just through cpp. "Syntax error" is here to catch this case.
12106 cat >conftest.$ac_ext <<_ACEOF
12107 /* confdefs.h. */
12108 _ACEOF
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h. */
12112 #ifdef __STDC__
12113 # include <limits.h>
12114 #else
12115 # include <assert.h>
12116 #endif
12117 Syntax error
12118 _ACEOF
12119 if { (ac_try="$ac_cpp conftest.$ac_ext"
12120 case "(($ac_try" in
12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122 *) ac_try_echo=$ac_try;;
12123 esac
12124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12125 $as_echo "$ac_try_echo") >&5
12126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12127 ac_status=$?
12128 grep -v '^ *+' conftest.er1 >conftest.err
12129 rm -f conftest.er1
12130 cat conftest.err >&5
12131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } >/dev/null && {
12133 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12134 test ! -s conftest.err
12135 }; then
12136 :
12137 else
12138 $as_echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.$ac_ext >&5
12140
12141 # Broken: fails on valid input.
12142 continue
12143 fi
12144
12145 rm -f conftest.err conftest.$ac_ext
12146
12147 # OK, works on sane cases. Now check whether nonexistent headers
12148 # can be detected and how.
12149 cat >conftest.$ac_ext <<_ACEOF
12150 /* confdefs.h. */
12151 _ACEOF
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h. */
12155 #include <ac_nonexistent.h>
12156 _ACEOF
12157 if { (ac_try="$ac_cpp conftest.$ac_ext"
12158 case "(($ac_try" in
12159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12160 *) ac_try_echo=$ac_try;;
12161 esac
12162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12163 $as_echo "$ac_try_echo") >&5
12164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12165 ac_status=$?
12166 grep -v '^ *+' conftest.er1 >conftest.err
12167 rm -f conftest.er1
12168 cat conftest.err >&5
12169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); } >/dev/null && {
12171 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12172 test ! -s conftest.err
12173 }; then
12174 # Broken: success on invalid input.
12175 continue
12176 else
12177 $as_echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12179
12180 # Passes both tests.
12181 ac_preproc_ok=:
12182 break
12183 fi
12184
12185 rm -f conftest.err conftest.$ac_ext
12186
12187 done
12188 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12189 rm -f conftest.err conftest.$ac_ext
12190 if $ac_preproc_ok; then
12191 :
12192 else
12193 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12195 _lt_caught_CXX_error=yes; }
12196 fi
12197
12198 ac_ext=c
12199 ac_cpp='$CPP $CPPFLAGS'
12200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12203
12204 else
12205 _lt_caught_CXX_error=yes
12206 fi
12207
12208
12209
12210
12211 ac_ext=cpp
12212 ac_cpp='$CXXCPP $CPPFLAGS'
12213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12216
12217 archive_cmds_need_lc_CXX=no
12218 allow_undefined_flag_CXX=
12219 always_export_symbols_CXX=no
12220 archive_expsym_cmds_CXX=
12221 compiler_needs_object_CXX=no
12222 export_dynamic_flag_spec_CXX=
12223 hardcode_direct_CXX=no
12224 hardcode_direct_absolute_CXX=no
12225 hardcode_libdir_flag_spec_CXX=
12226 hardcode_libdir_flag_spec_ld_CXX=
12227 hardcode_libdir_separator_CXX=
12228 hardcode_minus_L_CXX=no
12229 hardcode_shlibpath_var_CXX=unsupported
12230 hardcode_automatic_CXX=no
12231 inherit_rpath_CXX=no
12232 module_cmds_CXX=
12233 module_expsym_cmds_CXX=
12234 link_all_deplibs_CXX=unknown
12235 old_archive_cmds_CXX=$old_archive_cmds
12236 no_undefined_flag_CXX=
12237 whole_archive_flag_spec_CXX=
12238 enable_shared_with_static_runtimes_CXX=no
12239
12240 # Source file extension for C++ test sources.
12241 ac_ext=cpp
12242
12243 # Object file extension for compiled C++ test sources.
12244 objext=o
12245 objext_CXX=$objext
12246
12247 # No sense in running all these tests if we already determined that
12248 # the CXX compiler isn't working. Some variables (like enable_shared)
12249 # are currently assumed to apply to all compilers on this platform,
12250 # and will be corrupted by setting them based on a non-working compiler.
12251 if test "$_lt_caught_CXX_error" != yes; then
12252 # Code to be used in simple compile tests
12253 lt_simple_compile_test_code="int some_variable = 0;"
12254
12255 # Code to be used in simple link tests
12256 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12257
12258 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12259
12260
12261
12262
12263
12264
12265 # If no C compiler was specified, use CC.
12266 LTCC=${LTCC-"$CC"}
12267
12268 # If no C compiler flags were specified, use CFLAGS.
12269 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12270
12271 # Allow CC to be a program name with arguments.
12272 compiler=$CC
12273
12274
12275 # save warnings/boilerplate of simple test code
12276 ac_outfile=conftest.$ac_objext
12277 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12278 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12279 _lt_compiler_boilerplate=`cat conftest.err`
12280 $RM conftest*
12281
12282 ac_outfile=conftest.$ac_objext
12283 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12284 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12285 _lt_linker_boilerplate=`cat conftest.err`
12286 $RM -r conftest*
12287
12288
12289 # Allow CC to be a program name with arguments.
12290 lt_save_CC=$CC
12291 lt_save_LD=$LD
12292 lt_save_GCC=$GCC
12293 GCC=$GXX
12294 lt_save_with_gnu_ld=$with_gnu_ld
12295 lt_save_path_LD=$lt_cv_path_LD
12296 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12297 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12298 else
12299 $as_unset lt_cv_prog_gnu_ld
12300 fi
12301 if test -n "${lt_cv_path_LDCXX+set}"; then
12302 lt_cv_path_LD=$lt_cv_path_LDCXX
12303 else
12304 $as_unset lt_cv_path_LD
12305 fi
12306 test -z "${LDCXX+set}" || LD=$LDCXX
12307 CC=${CXX-"c++"}
12308 compiler=$CC
12309 compiler_CXX=$CC
12310 for cc_temp in $compiler""; do
12311 case $cc_temp in
12312 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12313 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12314 \-*) ;;
12315 *) break;;
12316 esac
12317 done
12318 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12319
12320
12321 if test -n "$compiler"; then
12322 # We don't want -fno-exception when compiling C++ code, so set the
12323 # no_builtin_flag separately
12324 if test "$GXX" = yes; then
12325 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12326 else
12327 lt_prog_compiler_no_builtin_flag_CXX=
12328 fi
12329
12330 if test "$GXX" = yes; then
12331 # Set up default GNU C++ configuration
12332
12333
12334
12335 # Check whether --with-gnu-ld was given.
12336 if test "${with_gnu_ld+set}" = set; then
12337 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12338 else
12339 with_gnu_ld=no
12340 fi
12341
12342 ac_prog=ld
12343 if test "$GCC" = yes; then
12344 # Check if gcc -print-prog-name=ld gives a path.
12345 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12346 $as_echo_n "checking for ld used by $CC... " >&6; }
12347 case $host in
12348 *-*-mingw*)
12349 # gcc leaves a trailing carriage return which upsets mingw
12350 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12351 *)
12352 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12353 esac
12354 case $ac_prog in
12355 # Accept absolute paths.
12356 [\\/]* | ?:[\\/]*)
12357 re_direlt='/[^/][^/]*/\.\./'
12358 # Canonicalize the pathname of ld
12359 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12360 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12361 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12362 done
12363 test -z "$LD" && LD="$ac_prog"
12364 ;;
12365 "")
12366 # If it fails, then pretend we aren't using GCC.
12367 ac_prog=ld
12368 ;;
12369 *)
12370 # If it is relative, then search for the first ld in PATH.
12371 with_gnu_ld=unknown
12372 ;;
12373 esac
12374 elif test "$with_gnu_ld" = yes; then
12375 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
12376 $as_echo_n "checking for GNU ld... " >&6; }
12377 else
12378 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12379 $as_echo_n "checking for non-GNU ld... " >&6; }
12380 fi
12381 if test "${lt_cv_path_LD+set}" = set; then
12382 $as_echo_n "(cached) " >&6
12383 else
12384 if test -z "$LD"; then
12385 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12386 for ac_dir in $PATH; do
12387 IFS="$lt_save_ifs"
12388 test -z "$ac_dir" && ac_dir=.
12389 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12390 lt_cv_path_LD="$ac_dir/$ac_prog"
12391 # Check to see if the program is GNU ld. I'd rather use --version,
12392 # but apparently some variants of GNU ld only accept -v.
12393 # Break only if it was the GNU/non-GNU ld that we prefer.
12394 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12395 *GNU* | *'with BFD'*)
12396 test "$with_gnu_ld" != no && break
12397 ;;
12398 *)
12399 test "$with_gnu_ld" != yes && break
12400 ;;
12401 esac
12402 fi
12403 done
12404 IFS="$lt_save_ifs"
12405 else
12406 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12407 fi
12408 fi
12409
12410 LD="$lt_cv_path_LD"
12411 if test -n "$LD"; then
12412 { $as_echo "$as_me:$LINENO: result: $LD" >&5
12413 $as_echo "$LD" >&6; }
12414 else
12415 { $as_echo "$as_me:$LINENO: result: no" >&5
12416 $as_echo "no" >&6; }
12417 fi
12418 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12419 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12420 { (exit 1); exit 1; }; }
12421 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12422 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12423 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12424 $as_echo_n "(cached) " >&6
12425 else
12426 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12427 case `$LD -v 2>&1 </dev/null` in
12428 *GNU* | *'with BFD'*)
12429 lt_cv_prog_gnu_ld=yes
12430 ;;
12431 *)
12432 lt_cv_prog_gnu_ld=no
12433 ;;
12434 esac
12435 fi
12436 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12437 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12438 with_gnu_ld=$lt_cv_prog_gnu_ld
12439
12440
12441
12442
12443
12444
12445
12446 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12447 # archiving commands below assume that GNU ld is being used.
12448 if test "$with_gnu_ld" = yes; then
12449 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12450 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'
12451
12452 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12453 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12454
12455 # If archive_cmds runs LD, not CC, wlarc should be empty
12456 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12457 # investigate it a little bit more. (MM)
12458 wlarc='${wl}'
12459
12460 # ancient GNU ld didn't support --whole-archive et. al.
12461 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12462 $GREP 'no-whole-archive' > /dev/null; then
12463 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12464 else
12465 whole_archive_flag_spec_CXX=
12466 fi
12467 else
12468 with_gnu_ld=no
12469 wlarc=
12470
12471 # A generic and very simple default shared library creation
12472 # command for GNU C++ for the case where it uses the native
12473 # linker, instead of GNU ld. If possible, this setting should
12474 # overridden to take advantage of the native linker features on
12475 # the platform it is being used on.
12476 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12477 fi
12478
12479 # Commands to make compiler produce verbose output that lists
12480 # what "hidden" libraries, object files and flags are used when
12481 # linking a shared library.
12482 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12483
12484 else
12485 GXX=no
12486 with_gnu_ld=no
12487 wlarc=
12488 fi
12489
12490 # PORTME: fill in a description of your system's C++ link characteristics
12491 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12492 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12493 ld_shlibs_CXX=yes
12494 case $host_os in
12495 aix3*)
12496 # FIXME: insert proper C++ library support
12497 ld_shlibs_CXX=no
12498 ;;
12499 aix[4-9]*)
12500 if test "$host_cpu" = ia64; then
12501 # On IA64, the linker does run time linking by default, so we don't
12502 # have to do anything special.
12503 aix_use_runtimelinking=no
12504 exp_sym_flag='-Bexport'
12505 no_entry_flag=""
12506 else
12507 aix_use_runtimelinking=no
12508
12509 # Test if we are trying to use run time linking or normal
12510 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12511 # need to do runtime linking.
12512 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12513 for ld_flag in $LDFLAGS; do
12514 case $ld_flag in
12515 *-brtl*)
12516 aix_use_runtimelinking=yes
12517 break
12518 ;;
12519 esac
12520 done
12521 ;;
12522 esac
12523
12524 exp_sym_flag='-bexport'
12525 no_entry_flag='-bnoentry'
12526 fi
12527
12528 # When large executables or shared objects are built, AIX ld can
12529 # have problems creating the table of contents. If linking a library
12530 # or program results in "error TOC overflow" add -mminimal-toc to
12531 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12532 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12533
12534 archive_cmds_CXX=''
12535 hardcode_direct_CXX=yes
12536 hardcode_direct_absolute_CXX=yes
12537 hardcode_libdir_separator_CXX=':'
12538 link_all_deplibs_CXX=yes
12539 file_list_spec_CXX='${wl}-f,'
12540
12541 if test "$GXX" = yes; then
12542 case $host_os in aix4.[012]|aix4.[012].*)
12543 # We only want to do this on AIX 4.2 and lower, the check
12544 # below for broken collect2 doesn't work under 4.3+
12545 collect2name=`${CC} -print-prog-name=collect2`
12546 if test -f "$collect2name" &&
12547 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12548 then
12549 # We have reworked collect2
12550 :
12551 else
12552 # We have old collect2
12553 hardcode_direct_CXX=unsupported
12554 # It fails to find uninstalled libraries when the uninstalled
12555 # path is not listed in the libpath. Setting hardcode_minus_L
12556 # to unsupported forces relinking
12557 hardcode_minus_L_CXX=yes
12558 hardcode_libdir_flag_spec_CXX='-L$libdir'
12559 hardcode_libdir_separator_CXX=
12560 fi
12561 esac
12562 shared_flag='-shared'
12563 if test "$aix_use_runtimelinking" = yes; then
12564 shared_flag="$shared_flag "'${wl}-G'
12565 fi
12566 else
12567 # not using gcc
12568 if test "$host_cpu" = ia64; then
12569 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12570 # chokes on -Wl,-G. The following line is correct:
12571 shared_flag='-G'
12572 else
12573 if test "$aix_use_runtimelinking" = yes; then
12574 shared_flag='${wl}-G'
12575 else
12576 shared_flag='${wl}-bM:SRE'
12577 fi
12578 fi
12579 fi
12580
12581 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12582 # It seems that -bexpall does not export symbols beginning with
12583 # underscore (_), so it is better to generate a list of symbols to
12584 # export.
12585 always_export_symbols_CXX=yes
12586 if test "$aix_use_runtimelinking" = yes; then
12587 # Warning - without using the other runtime loading flags (-brtl),
12588 # -berok will link without error, but may produce a broken library.
12589 allow_undefined_flag_CXX='-berok'
12590 # Determine the default libpath from the value encoded in an empty
12591 # executable.
12592 cat >conftest.$ac_ext <<_ACEOF
12593 /* confdefs.h. */
12594 _ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h. */
12598
12599 int
12600 main ()
12601 {
12602
12603 ;
12604 return 0;
12605 }
12606 _ACEOF
12607 rm -f conftest.$ac_objext conftest$ac_exeext
12608 if { (ac_try="$ac_link"
12609 case "(($ac_try" in
12610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611 *) ac_try_echo=$ac_try;;
12612 esac
12613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12614 $as_echo "$ac_try_echo") >&5
12615 (eval "$ac_link") 2>conftest.er1
12616 ac_status=$?
12617 grep -v '^ *+' conftest.er1 >conftest.err
12618 rm -f conftest.er1
12619 cat conftest.err >&5
12620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); } && {
12622 test -z "$ac_cxx_werror_flag" ||
12623 test ! -s conftest.err
12624 } && test -s conftest$ac_exeext && {
12625 test "$cross_compiling" = yes ||
12626 $as_test_x conftest$ac_exeext
12627 }; then
12628
12629 lt_aix_libpath_sed='
12630 /Import File Strings/,/^$/ {
12631 /^0/ {
12632 s/^0 *\(.*\)$/\1/
12633 p
12634 }
12635 }'
12636 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12637 # Check for a 64-bit object if we didn't find anything.
12638 if test -z "$aix_libpath"; then
12639 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12640 fi
12641 else
12642 $as_echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12644
12645
12646 fi
12647
12648 rm -rf conftest.dSYM
12649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12650 conftest$ac_exeext conftest.$ac_ext
12651 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12652
12653 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12654
12655 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12656 else
12657 if test "$host_cpu" = ia64; then
12658 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12659 allow_undefined_flag_CXX="-z nodefs"
12660 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"
12661 else
12662 # Determine the default libpath from the value encoded in an
12663 # empty executable.
12664 cat >conftest.$ac_ext <<_ACEOF
12665 /* confdefs.h. */
12666 _ACEOF
12667 cat confdefs.h >>conftest.$ac_ext
12668 cat >>conftest.$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12670
12671 int
12672 main ()
12673 {
12674
12675 ;
12676 return 0;
12677 }
12678 _ACEOF
12679 rm -f conftest.$ac_objext conftest$ac_exeext
12680 if { (ac_try="$ac_link"
12681 case "(($ac_try" in
12682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 *) ac_try_echo=$ac_try;;
12684 esac
12685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12686 $as_echo "$ac_try_echo") >&5
12687 (eval "$ac_link") 2>conftest.er1
12688 ac_status=$?
12689 grep -v '^ *+' conftest.er1 >conftest.err
12690 rm -f conftest.er1
12691 cat conftest.err >&5
12692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } && {
12694 test -z "$ac_cxx_werror_flag" ||
12695 test ! -s conftest.err
12696 } && test -s conftest$ac_exeext && {
12697 test "$cross_compiling" = yes ||
12698 $as_test_x conftest$ac_exeext
12699 }; then
12700
12701 lt_aix_libpath_sed='
12702 /Import File Strings/,/^$/ {
12703 /^0/ {
12704 s/^0 *\(.*\)$/\1/
12705 p
12706 }
12707 }'
12708 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12709 # Check for a 64-bit object if we didn't find anything.
12710 if test -z "$aix_libpath"; then
12711 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12712 fi
12713 else
12714 $as_echo "$as_me: failed program was:" >&5
12715 sed 's/^/| /' conftest.$ac_ext >&5
12716
12717
12718 fi
12719
12720 rm -rf conftest.dSYM
12721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12722 conftest$ac_exeext conftest.$ac_ext
12723 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12724
12725 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12726 # Warning - without using the other run time loading flags,
12727 # -berok will link without error, but may produce a broken library.
12728 no_undefined_flag_CXX=' ${wl}-bernotok'
12729 allow_undefined_flag_CXX=' ${wl}-berok'
12730 # Exported symbols can be pulled into shared objects from archives
12731 whole_archive_flag_spec_CXX='$convenience'
12732 archive_cmds_need_lc_CXX=yes
12733 # This is similar to how AIX traditionally builds its shared
12734 # libraries.
12735 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'
12736 fi
12737 fi
12738 ;;
12739
12740 beos*)
12741 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12742 allow_undefined_flag_CXX=unsupported
12743 # Joseph Beckenbach <[email protected]> says some releases of gcc
12744 # support --undefined. This deserves some investigation. FIXME
12745 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12746 else
12747 ld_shlibs_CXX=no
12748 fi
12749 ;;
12750
12751 chorus*)
12752 case $cc_basename in
12753 *)
12754 # FIXME: insert proper C++ library support
12755 ld_shlibs_CXX=no
12756 ;;
12757 esac
12758 ;;
12759
12760 cygwin* | mingw* | pw32* | cegcc*)
12761 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12762 # as there is no search path for DLLs.
12763 hardcode_libdir_flag_spec_CXX='-L$libdir'
12764 allow_undefined_flag_CXX=unsupported
12765 always_export_symbols_CXX=no
12766 enable_shared_with_static_runtimes_CXX=yes
12767
12768 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12769 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'
12770 # If the export-symbols file already is a .def file (1st line
12771 # is EXPORTS), use it as is; otherwise, prepend...
12772 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12773 cp $export_symbols $output_objdir/$soname.def;
12774 else
12775 echo EXPORTS > $output_objdir/$soname.def;
12776 cat $export_symbols >> $output_objdir/$soname.def;
12777 fi~
12778 $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'
12779 else
12780 ld_shlibs_CXX=no
12781 fi
12782 ;;
12783 darwin* | rhapsody*)
12784
12785
12786 archive_cmds_need_lc_CXX=no
12787 hardcode_direct_CXX=no
12788 hardcode_automatic_CXX=yes
12789 hardcode_shlibpath_var_CXX=unsupported
12790 whole_archive_flag_spec_CXX=''
12791 link_all_deplibs_CXX=yes
12792 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12793 case $cc_basename in
12794 ifort*) _lt_dar_can_shared=yes ;;
12795 *) _lt_dar_can_shared=$GCC ;;
12796 esac
12797 if test "$_lt_dar_can_shared" = "yes"; then
12798 output_verbose_link_cmd=echo
12799 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}"
12800 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12801 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}"
12802 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}"
12803 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12804 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}"
12805 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}"
12806 fi
12807
12808 else
12809 ld_shlibs_CXX=no
12810 fi
12811
12812 ;;
12813
12814 dgux*)
12815 case $cc_basename in
12816 ec++*)
12817 # FIXME: insert proper C++ library support
12818 ld_shlibs_CXX=no
12819 ;;
12820 ghcx*)
12821 # Green Hills C++ Compiler
12822 # FIXME: insert proper C++ library support
12823 ld_shlibs_CXX=no
12824 ;;
12825 *)
12826 # FIXME: insert proper C++ library support
12827 ld_shlibs_CXX=no
12828 ;;
12829 esac
12830 ;;
12831
12832 freebsd[12]*)
12833 # C++ shared libraries reported to be fairly broken before
12834 # switch to ELF
12835 ld_shlibs_CXX=no
12836 ;;
12837
12838 freebsd-elf*)
12839 archive_cmds_need_lc_CXX=no
12840 ;;
12841
12842 freebsd* | dragonfly*)
12843 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12844 # conventions
12845 ld_shlibs_CXX=yes
12846 ;;
12847
12848 gnu*)
12849 ;;
12850
12851 hpux9*)
12852 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12853 hardcode_libdir_separator_CXX=:
12854 export_dynamic_flag_spec_CXX='${wl}-E'
12855 hardcode_direct_CXX=yes
12856 hardcode_minus_L_CXX=yes # Not in the search PATH,
12857 # but as the default
12858 # location of the library.
12859
12860 case $cc_basename in
12861 CC*)
12862 # FIXME: insert proper C++ library support
12863 ld_shlibs_CXX=no
12864 ;;
12865 aCC*)
12866 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'
12867 # Commands to make compiler produce verbose output that lists
12868 # what "hidden" libraries, object files and flags are used when
12869 # linking a shared library.
12870 #
12871 # There doesn't appear to be a way to prevent this compiler from
12872 # explicitly linking system object files so we need to strip them
12873 # from the output so that they don't get included in the library
12874 # dependencies.
12875 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12876 ;;
12877 *)
12878 if test "$GXX" = yes; then
12879 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'
12880 else
12881 # FIXME: insert proper C++ library support
12882 ld_shlibs_CXX=no
12883 fi
12884 ;;
12885 esac
12886 ;;
12887
12888 hpux10*|hpux11*)
12889 if test $with_gnu_ld = no; then
12890 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12891 hardcode_libdir_separator_CXX=:
12892
12893 case $host_cpu in
12894 hppa*64*|ia64*)
12895 ;;
12896 *)
12897 export_dynamic_flag_spec_CXX='${wl}-E'
12898 ;;
12899 esac
12900 fi
12901 case $host_cpu in
12902 hppa*64*|ia64*)
12903 hardcode_direct_CXX=no
12904 hardcode_shlibpath_var_CXX=no
12905 ;;
12906 *)
12907 hardcode_direct_CXX=yes
12908 hardcode_direct_absolute_CXX=yes
12909 hardcode_minus_L_CXX=yes # Not in the search PATH,
12910 # but as the default
12911 # location of the library.
12912 ;;
12913 esac
12914
12915 case $cc_basename in
12916 CC*)
12917 # FIXME: insert proper C++ library support
12918 ld_shlibs_CXX=no
12919 ;;
12920 aCC*)
12921 case $host_cpu in
12922 hppa*64*)
12923 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12924 ;;
12925 ia64*)
12926 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12927 ;;
12928 *)
12929 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12930 ;;
12931 esac
12932 # Commands to make compiler produce verbose output that lists
12933 # what "hidden" libraries, object files and flags are used when
12934 # linking a shared library.
12935 #
12936 # There doesn't appear to be a way to prevent this compiler from
12937 # explicitly linking system object files so we need to strip them
12938 # from the output so that they don't get included in the library
12939 # dependencies.
12940 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 "X$list" | $Xsed'
12941 ;;
12942 *)
12943 if test "$GXX" = yes; then
12944 if test $with_gnu_ld = no; then
12945 case $host_cpu in
12946 hppa*64*)
12947 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12948 ;;
12949 ia64*)
12950 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12951 ;;
12952 *)
12953 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'
12954 ;;
12955 esac
12956 fi
12957 else
12958 # FIXME: insert proper C++ library support
12959 ld_shlibs_CXX=no
12960 fi
12961 ;;
12962 esac
12963 ;;
12964
12965 interix[3-9]*)
12966 hardcode_direct_CXX=no
12967 hardcode_shlibpath_var_CXX=no
12968 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12969 export_dynamic_flag_spec_CXX='${wl}-E'
12970 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12971 # Instead, shared libraries are loaded at an image base (0x10000000 by
12972 # default) and relocated if they conflict, which is a slow very memory
12973 # consuming and fragmenting process. To avoid this, we pick a random,
12974 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12975 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12976 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'
12977 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'
12978 ;;
12979 irix5* | irix6*)
12980 case $cc_basename in
12981 CC*)
12982 # SGI C++
12983 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12984
12985 # Archives containing C++ object files must be created using
12986 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12987 # necessary to make sure instantiated templates are included
12988 # in the archive.
12989 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12990 ;;
12991 *)
12992 if test "$GXX" = yes; then
12993 if test "$with_gnu_ld" = no; then
12994 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12995 else
12996 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12997 fi
12998 fi
12999 link_all_deplibs_CXX=yes
13000 ;;
13001 esac
13002 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13003 hardcode_libdir_separator_CXX=:
13004 inherit_rpath_CXX=yes
13005 ;;
13006
13007 linux* | k*bsd*-gnu)
13008 case $cc_basename in
13009 KCC*)
13010 # Kuck and Associates, Inc. (KAI) C++ Compiler
13011
13012 # KCC will only create a shared library if the output file
13013 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13014 # to its proper name (with version) after linking.
13015 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'
13016 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'
13017 # Commands to make compiler produce verbose output that lists
13018 # what "hidden" libraries, object files and flags are used when
13019 # linking a shared library.
13020 #
13021 # There doesn't appear to be a way to prevent this compiler from
13022 # explicitly linking system object files so we need to strip them
13023 # from the output so that they don't get included in the library
13024 # dependencies.
13025 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 "X$list" | $Xsed'
13026
13027 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13028 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13029
13030 # Archives containing C++ object files must be created using
13031 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13032 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13033 ;;
13034 icpc* | ecpc* )
13035 # Intel C++
13036 with_gnu_ld=yes
13037 # version 8.0 and above of icpc choke on multiply defined symbols
13038 # if we add $predep_objects and $postdep_objects, however 7.1 and
13039 # earlier do not add the objects themselves.
13040 case `$CC -V 2>&1` in
13041 *"Version 7."*)
13042 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13043 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'
13044 ;;
13045 *) # Version 8.0 or newer
13046 tmp_idyn=
13047 case $host_cpu in
13048 ia64*) tmp_idyn=' -i_dynamic';;
13049 esac
13050 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13051 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'
13052 ;;
13053 esac
13054 archive_cmds_need_lc_CXX=no
13055 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13056 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13057 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13058 ;;
13059 pgCC* | pgcpp*)
13060 # Portland Group C++ compiler
13061 case `$CC -V` in
13062 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13063 prelink_cmds_CXX='tpldir=Template.dir~
13064 rm -rf $tpldir~
13065 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13066 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13067 old_archive_cmds_CXX='tpldir=Template.dir~
13068 rm -rf $tpldir~
13069 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13070 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13071 $RANLIB $oldlib'
13072 archive_cmds_CXX='tpldir=Template.dir~
13073 rm -rf $tpldir~
13074 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13075 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13076 archive_expsym_cmds_CXX='tpldir=Template.dir~
13077 rm -rf $tpldir~
13078 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13079 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13080 ;;
13081 *) # Version 6 will use weak symbols
13082 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13083 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'
13084 ;;
13085 esac
13086
13087 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13088 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13089 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'
13090 ;;
13091 cxx*)
13092 # Compaq C++
13093 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13094 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'
13095
13096 runpath_var=LD_RUN_PATH
13097 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13098 hardcode_libdir_separator_CXX=:
13099
13100 # Commands to make compiler produce verbose output that lists
13101 # what "hidden" libraries, object files and flags are used when
13102 # linking a shared library.
13103 #
13104 # There doesn't appear to be a way to prevent this compiler from
13105 # explicitly linking system object files so we need to strip them
13106 # from the output so that they don't get included in the library
13107 # dependencies.
13108 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13109 ;;
13110 xl*)
13111 # IBM XL 8.0 on PPC, with GNU ld
13112 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13113 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13114 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13115 if test "x$supports_anon_versioning" = xyes; then
13116 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13117 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13118 echo "local: *; };" >> $output_objdir/$libname.ver~
13119 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13120 fi
13121 ;;
13122 *)
13123 case `$CC -V 2>&1 | sed 5q` in
13124 *Sun\ C*)
13125 # Sun C++ 5.9
13126 no_undefined_flag_CXX=' -zdefs'
13127 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13128 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'
13129 hardcode_libdir_flag_spec_CXX='-R$libdir'
13130 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'
13131 compiler_needs_object_CXX=yes
13132
13133 # Not sure whether something based on
13134 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13135 # would be better.
13136 output_verbose_link_cmd='echo'
13137
13138 # Archives containing C++ object files must be created using
13139 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13140 # necessary to make sure instantiated templates are included
13141 # in the archive.
13142 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13143 ;;
13144 esac
13145 ;;
13146 esac
13147 ;;
13148
13149 lynxos*)
13150 # FIXME: insert proper C++ library support
13151 ld_shlibs_CXX=no
13152 ;;
13153
13154 m88k*)
13155 # FIXME: insert proper C++ library support
13156 ld_shlibs_CXX=no
13157 ;;
13158
13159 mvs*)
13160 case $cc_basename in
13161 cxx*)
13162 # FIXME: insert proper C++ library support
13163 ld_shlibs_CXX=no
13164 ;;
13165 *)
13166 # FIXME: insert proper C++ library support
13167 ld_shlibs_CXX=no
13168 ;;
13169 esac
13170 ;;
13171
13172 netbsd*)
13173 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13174 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13175 wlarc=
13176 hardcode_libdir_flag_spec_CXX='-R$libdir'
13177 hardcode_direct_CXX=yes
13178 hardcode_shlibpath_var_CXX=no
13179 fi
13180 # Workaround some broken pre-1.5 toolchains
13181 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13182 ;;
13183
13184 *nto* | *qnx*)
13185 ld_shlibs_CXX=yes
13186 ;;
13187
13188 openbsd2*)
13189 # C++ shared libraries are fairly broken
13190 ld_shlibs_CXX=no
13191 ;;
13192
13193 openbsd*)
13194 if test -f /usr/libexec/ld.so; then
13195 hardcode_direct_CXX=yes
13196 hardcode_shlibpath_var_CXX=no
13197 hardcode_direct_absolute_CXX=yes
13198 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13199 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13200 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13201 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13202 export_dynamic_flag_spec_CXX='${wl}-E'
13203 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13204 fi
13205 output_verbose_link_cmd=echo
13206 else
13207 ld_shlibs_CXX=no
13208 fi
13209 ;;
13210
13211 osf3* | osf4* | osf5*)
13212 case $cc_basename in
13213 KCC*)
13214 # Kuck and Associates, Inc. (KAI) C++ Compiler
13215
13216 # KCC will only create a shared library if the output file
13217 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13218 # to its proper name (with version) after linking.
13219 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'
13220
13221 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13222 hardcode_libdir_separator_CXX=:
13223
13224 # Archives containing C++ object files must be created using
13225 # the KAI C++ compiler.
13226 case $host in
13227 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13228 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13229 esac
13230 ;;
13231 RCC*)
13232 # Rational C++ 2.4.1
13233 # FIXME: insert proper C++ library support
13234 ld_shlibs_CXX=no
13235 ;;
13236 cxx*)
13237 case $host in
13238 osf3*)
13239 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13240 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13241 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13242 ;;
13243 *)
13244 allow_undefined_flag_CXX=' -expect_unresolved \*'
13245 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13246 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13247 echo "-hidden">> $lib.exp~
13248 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13249 $RM $lib.exp'
13250 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13251 ;;
13252 esac
13253
13254 hardcode_libdir_separator_CXX=:
13255
13256 # Commands to make compiler produce verbose output that lists
13257 # what "hidden" libraries, object files and flags are used when
13258 # linking a shared library.
13259 #
13260 # There doesn't appear to be a way to prevent this compiler from
13261 # explicitly linking system object files so we need to strip them
13262 # from the output so that they don't get included in the library
13263 # dependencies.
13264 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13265 ;;
13266 *)
13267 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13268 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13269 case $host in
13270 osf3*)
13271 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13272 ;;
13273 *)
13274 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13275 ;;
13276 esac
13277
13278 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13279 hardcode_libdir_separator_CXX=:
13280
13281 # Commands to make compiler produce verbose output that lists
13282 # what "hidden" libraries, object files and flags are used when
13283 # linking a shared library.
13284 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13285
13286 else
13287 # FIXME: insert proper C++ library support
13288 ld_shlibs_CXX=no
13289 fi
13290 ;;
13291 esac
13292 ;;
13293
13294 psos*)
13295 # FIXME: insert proper C++ library support
13296 ld_shlibs_CXX=no
13297 ;;
13298
13299 sunos4*)
13300 case $cc_basename in
13301 CC*)
13302 # Sun C++ 4.x
13303 # FIXME: insert proper C++ library support
13304 ld_shlibs_CXX=no
13305 ;;
13306 lcc*)
13307 # Lucid
13308 # FIXME: insert proper C++ library support
13309 ld_shlibs_CXX=no
13310 ;;
13311 *)
13312 # FIXME: insert proper C++ library support
13313 ld_shlibs_CXX=no
13314 ;;
13315 esac
13316 ;;
13317
13318 solaris*)
13319 case $cc_basename in
13320 CC*)
13321 # Sun C++ 4.2, 5.x and Centerline C++
13322 archive_cmds_need_lc_CXX=yes
13323 no_undefined_flag_CXX=' -zdefs'
13324 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13325 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13326 $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'
13327
13328 hardcode_libdir_flag_spec_CXX='-R$libdir'
13329 hardcode_shlibpath_var_CXX=no
13330 case $host_os in
13331 solaris2.[0-5] | solaris2.[0-5].*) ;;
13332 *)
13333 # The compiler driver will combine and reorder linker options,
13334 # but understands `-z linker_flag'.
13335 # Supported since Solaris 2.6 (maybe 2.5.1?)
13336 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13337 ;;
13338 esac
13339 link_all_deplibs_CXX=yes
13340
13341 output_verbose_link_cmd='echo'
13342
13343 # Archives containing C++ object files must be created using
13344 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13345 # necessary to make sure instantiated templates are included
13346 # in the archive.
13347 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13348 ;;
13349 gcx*)
13350 # Green Hills C++ Compiler
13351 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13352
13353 # The C++ compiler must be used to create the archive.
13354 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13355 ;;
13356 *)
13357 # GNU C++ compiler with Solaris linker
13358 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13359 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13360 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13361 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13362 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13363 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13364
13365 # Commands to make compiler produce verbose output that lists
13366 # what "hidden" libraries, object files and flags are used when
13367 # linking a shared library.
13368 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13369 else
13370 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13371 # platform.
13372 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13373 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13374 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13375
13376 # Commands to make compiler produce verbose output that lists
13377 # what "hidden" libraries, object files and flags are used when
13378 # linking a shared library.
13379 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13380 fi
13381
13382 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13383 case $host_os in
13384 solaris2.[0-5] | solaris2.[0-5].*) ;;
13385 *)
13386 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13387 ;;
13388 esac
13389 fi
13390 ;;
13391 esac
13392 ;;
13393
13394 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13395 no_undefined_flag_CXX='${wl}-z,text'
13396 archive_cmds_need_lc_CXX=no
13397 hardcode_shlibpath_var_CXX=no
13398 runpath_var='LD_RUN_PATH'
13399
13400 case $cc_basename in
13401 CC*)
13402 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13403 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13404 ;;
13405 *)
13406 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13407 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13408 ;;
13409 esac
13410 ;;
13411
13412 sysv5* | sco3.2v5* | sco5v6*)
13413 # Note: We can NOT use -z defs as we might desire, because we do not
13414 # link with -lc, and that would cause any symbols used from libc to
13415 # always be unresolved, which means just about no library would
13416 # ever link correctly. If we're not using GNU ld we use -z text
13417 # though, which does catch some bad symbols but isn't as heavy-handed
13418 # as -z defs.
13419 no_undefined_flag_CXX='${wl}-z,text'
13420 allow_undefined_flag_CXX='${wl}-z,nodefs'
13421 archive_cmds_need_lc_CXX=no
13422 hardcode_shlibpath_var_CXX=no
13423 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13424 hardcode_libdir_separator_CXX=':'
13425 link_all_deplibs_CXX=yes
13426 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13427 runpath_var='LD_RUN_PATH'
13428
13429 case $cc_basename in
13430 CC*)
13431 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13432 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13433 ;;
13434 *)
13435 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13436 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13437 ;;
13438 esac
13439 ;;
13440
13441 tandem*)
13442 case $cc_basename in
13443 NCC*)
13444 # NonStop-UX NCC 3.20
13445 # FIXME: insert proper C++ library support
13446 ld_shlibs_CXX=no
13447 ;;
13448 *)
13449 # FIXME: insert proper C++ library support
13450 ld_shlibs_CXX=no
13451 ;;
13452 esac
13453 ;;
13454
13455 vxworks*)
13456 # FIXME: insert proper C++ library support
13457 ld_shlibs_CXX=no
13458 ;;
13459
13460 *)
13461 # FIXME: insert proper C++ library support
13462 ld_shlibs_CXX=no
13463 ;;
13464 esac
13465
13466 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13467 $as_echo "$ld_shlibs_CXX" >&6; }
13468 test "$ld_shlibs_CXX" = no && can_build_shared=no
13469
13470 GCC_CXX="$GXX"
13471 LD_CXX="$LD"
13472
13473 ## CAVEAT EMPTOR:
13474 ## There is no encapsulation within the following macros, do not change
13475 ## the running order or otherwise move them around unless you know exactly
13476 ## what you are doing...
13477 # Dependencies to place before and after the object being linked:
13478 predep_objects_CXX=
13479 postdep_objects_CXX=
13480 predeps_CXX=
13481 postdeps_CXX=
13482 compiler_lib_search_path_CXX=
13483
13484 cat > conftest.$ac_ext <<_LT_EOF
13485 class Foo
13486 {
13487 public:
13488 Foo (void) { a = 0; }
13489 private:
13490 int a;
13491 };
13492 _LT_EOF
13493
13494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13495 (eval $ac_compile) 2>&5
13496 ac_status=$?
13497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; then
13499 # Parse the compiler output and extract the necessary
13500 # objects, libraries and library flags.
13501
13502 # Sentinel used to keep track of whether or not we are before
13503 # the conftest object file.
13504 pre_test_object_deps_done=no
13505
13506 for p in `eval "$output_verbose_link_cmd"`; do
13507 case $p in
13508
13509 -L* | -R* | -l*)
13510 # Some compilers place space between "-{L,R}" and the path.
13511 # Remove the space.
13512 if test $p = "-L" ||
13513 test $p = "-R"; then
13514 prev=$p
13515 continue
13516 else
13517 prev=
13518 fi
13519
13520 if test "$pre_test_object_deps_done" = no; then
13521 case $p in
13522 -L* | -R*)
13523 # Internal compiler library paths should come after those
13524 # provided the user. The postdeps already come after the
13525 # user supplied libs so there is no need to process them.
13526 if test -z "$compiler_lib_search_path_CXX"; then
13527 compiler_lib_search_path_CXX="${prev}${p}"
13528 else
13529 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13530 fi
13531 ;;
13532 # The "-l" case would never come before the object being
13533 # linked, so don't bother handling this case.
13534 esac
13535 else
13536 if test -z "$postdeps_CXX"; then
13537 postdeps_CXX="${prev}${p}"
13538 else
13539 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13540 fi
13541 fi
13542 ;;
13543
13544 *.$objext)
13545 # This assumes that the test object file only shows up
13546 # once in the compiler output.
13547 if test "$p" = "conftest.$objext"; then
13548 pre_test_object_deps_done=yes
13549 continue
13550 fi
13551
13552 if test "$pre_test_object_deps_done" = no; then
13553 if test -z "$predep_objects_CXX"; then
13554 predep_objects_CXX="$p"
13555 else
13556 predep_objects_CXX="$predep_objects_CXX $p"
13557 fi
13558 else
13559 if test -z "$postdep_objects_CXX"; then
13560 postdep_objects_CXX="$p"
13561 else
13562 postdep_objects_CXX="$postdep_objects_CXX $p"
13563 fi
13564 fi
13565 ;;
13566
13567 *) ;; # Ignore the rest.
13568
13569 esac
13570 done
13571
13572 # Clean up.
13573 rm -f a.out a.exe
13574 else
13575 echo "libtool.m4: error: problem compiling CXX test program"
13576 fi
13577
13578 $RM -f confest.$objext
13579
13580 # PORTME: override above test on systems where it is broken
13581 case $host_os in
13582 interix[3-9]*)
13583 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13584 # hack all around it, let's just trust "g++" to DTRT.
13585 predep_objects_CXX=
13586 postdep_objects_CXX=
13587 postdeps_CXX=
13588 ;;
13589
13590 linux*)
13591 case `$CC -V 2>&1 | sed 5q` in
13592 *Sun\ C*)
13593 # Sun C++ 5.9
13594
13595 # The more standards-conforming stlport4 library is
13596 # incompatible with the Cstd library. Avoid specifying
13597 # it if it's in CXXFLAGS. Ignore libCrun as
13598 # -library=stlport4 depends on it.
13599 case " $CXX $CXXFLAGS " in
13600 *" -library=stlport4 "*)
13601 solaris_use_stlport4=yes
13602 ;;
13603 esac
13604
13605 if test "$solaris_use_stlport4" != yes; then
13606 postdeps_CXX='-library=Cstd -library=Crun'
13607 fi
13608 ;;
13609 esac
13610 ;;
13611
13612 solaris*)
13613 case $cc_basename in
13614 CC*)
13615 # The more standards-conforming stlport4 library is
13616 # incompatible with the Cstd library. Avoid specifying
13617 # it if it's in CXXFLAGS. Ignore libCrun as
13618 # -library=stlport4 depends on it.
13619 case " $CXX $CXXFLAGS " in
13620 *" -library=stlport4 "*)
13621 solaris_use_stlport4=yes
13622 ;;
13623 esac
13624
13625 # Adding this requires a known-good setup of shared libraries for
13626 # Sun compiler versions before 5.6, else PIC objects from an old
13627 # archive will be linked into the output, leading to subtle bugs.
13628 if test "$solaris_use_stlport4" != yes; then
13629 postdeps_CXX='-library=Cstd -library=Crun'
13630 fi
13631 ;;
13632 esac
13633 ;;
13634 esac
13635
13636
13637 case " $postdeps_CXX " in
13638 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13639 esac
13640 compiler_lib_search_dirs_CXX=
13641 if test -n "${compiler_lib_search_path_CXX}"; then
13642 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13643 fi
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675 lt_prog_compiler_wl_CXX=
13676 lt_prog_compiler_pic_CXX=
13677 lt_prog_compiler_static_CXX=
13678
13679 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13680 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13681
13682 # C++ specific cases for pic, static, wl, etc.
13683 if test "$GXX" = yes; then
13684 lt_prog_compiler_wl_CXX='-Wl,'
13685 lt_prog_compiler_static_CXX='-static'
13686
13687 case $host_os in
13688 aix*)
13689 # All AIX code is PIC.
13690 if test "$host_cpu" = ia64; then
13691 # AIX 5 now supports IA64 processor
13692 lt_prog_compiler_static_CXX='-Bstatic'
13693 fi
13694 ;;
13695
13696 amigaos*)
13697 case $host_cpu in
13698 powerpc)
13699 # see comment about AmigaOS4 .so support
13700 lt_prog_compiler_pic_CXX='-fPIC'
13701 ;;
13702 m68k)
13703 # FIXME: we need at least 68020 code to build shared libraries, but
13704 # adding the `-m68020' flag to GCC prevents building anything better,
13705 # like `-m68040'.
13706 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13707 ;;
13708 esac
13709 ;;
13710
13711 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13712 # PIC is the default for these OSes.
13713 ;;
13714 mingw* | cygwin* | os2* | pw32* | cegcc*)
13715 # This hack is so that the source file can tell whether it is being
13716 # built for inclusion in a dll (and should export symbols for example).
13717 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13718 # (--disable-auto-import) libraries
13719 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13720 ;;
13721 darwin* | rhapsody*)
13722 # PIC is the default on this platform
13723 # Common symbols not allowed in MH_DYLIB files
13724 lt_prog_compiler_pic_CXX='-fno-common'
13725 ;;
13726 *djgpp*)
13727 # DJGPP does not support shared libraries at all
13728 lt_prog_compiler_pic_CXX=
13729 ;;
13730 interix[3-9]*)
13731 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13732 # Instead, we relocate shared libraries at runtime.
13733 ;;
13734 sysv4*MP*)
13735 if test -d /usr/nec; then
13736 lt_prog_compiler_pic_CXX=-Kconform_pic
13737 fi
13738 ;;
13739 hpux*)
13740 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13741 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13742 # sets the default TLS model and affects inlining.
13743 case $host_cpu in
13744 hppa*64*)
13745 ;;
13746 *)
13747 lt_prog_compiler_pic_CXX='-fPIC'
13748 ;;
13749 esac
13750 ;;
13751 *qnx* | *nto*)
13752 # QNX uses GNU C++, but need to define -shared option too, otherwise
13753 # it will coredump.
13754 lt_prog_compiler_pic_CXX='-fPIC -shared'
13755 ;;
13756 *)
13757 lt_prog_compiler_pic_CXX='-fPIC'
13758 ;;
13759 esac
13760 else
13761 case $host_os in
13762 aix[4-9]*)
13763 # All AIX code is PIC.
13764 if test "$host_cpu" = ia64; then
13765 # AIX 5 now supports IA64 processor
13766 lt_prog_compiler_static_CXX='-Bstatic'
13767 else
13768 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13769 fi
13770 ;;
13771 chorus*)
13772 case $cc_basename in
13773 cxch68*)
13774 # Green Hills C++ Compiler
13775 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13776 ;;
13777 esac
13778 ;;
13779 dgux*)
13780 case $cc_basename in
13781 ec++*)
13782 lt_prog_compiler_pic_CXX='-KPIC'
13783 ;;
13784 ghcx*)
13785 # Green Hills C++ Compiler
13786 lt_prog_compiler_pic_CXX='-pic'
13787 ;;
13788 *)
13789 ;;
13790 esac
13791 ;;
13792 freebsd* | dragonfly*)
13793 # FreeBSD uses GNU C++
13794 ;;
13795 hpux9* | hpux10* | hpux11*)
13796 case $cc_basename in
13797 CC*)
13798 lt_prog_compiler_wl_CXX='-Wl,'
13799 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13800 if test "$host_cpu" != ia64; then
13801 lt_prog_compiler_pic_CXX='+Z'
13802 fi
13803 ;;
13804 aCC*)
13805 lt_prog_compiler_wl_CXX='-Wl,'
13806 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13807 case $host_cpu in
13808 hppa*64*|ia64*)
13809 # +Z the default
13810 ;;
13811 *)
13812 lt_prog_compiler_pic_CXX='+Z'
13813 ;;
13814 esac
13815 ;;
13816 *)
13817 ;;
13818 esac
13819 ;;
13820 interix*)
13821 # This is c89, which is MS Visual C++ (no shared libs)
13822 # Anyone wants to do a port?
13823 ;;
13824 irix5* | irix6* | nonstopux*)
13825 case $cc_basename in
13826 CC*)
13827 lt_prog_compiler_wl_CXX='-Wl,'
13828 lt_prog_compiler_static_CXX='-non_shared'
13829 # CC pic flag -KPIC is the default.
13830 ;;
13831 *)
13832 ;;
13833 esac
13834 ;;
13835 linux* | k*bsd*-gnu)
13836 case $cc_basename in
13837 KCC*)
13838 # KAI C++ Compiler
13839 lt_prog_compiler_wl_CXX='--backend -Wl,'
13840 lt_prog_compiler_pic_CXX='-fPIC'
13841 ;;
13842 ecpc* )
13843 # old Intel C++ for x86_64 which still supported -KPIC.
13844 lt_prog_compiler_wl_CXX='-Wl,'
13845 lt_prog_compiler_pic_CXX='-KPIC'
13846 lt_prog_compiler_static_CXX='-static'
13847 ;;
13848 icpc* )
13849 # Intel C++, used to be incompatible with GCC.
13850 # ICC 10 doesn't accept -KPIC any more.
13851 lt_prog_compiler_wl_CXX='-Wl,'
13852 lt_prog_compiler_pic_CXX='-fPIC'
13853 lt_prog_compiler_static_CXX='-static'
13854 ;;
13855 pgCC* | pgcpp*)
13856 # Portland Group C++ compiler
13857 lt_prog_compiler_wl_CXX='-Wl,'
13858 lt_prog_compiler_pic_CXX='-fpic'
13859 lt_prog_compiler_static_CXX='-Bstatic'
13860 ;;
13861 cxx*)
13862 # Compaq C++
13863 # Make sure the PIC flag is empty. It appears that all Alpha
13864 # Linux and Compaq Tru64 Unix objects are PIC.
13865 lt_prog_compiler_pic_CXX=
13866 lt_prog_compiler_static_CXX='-non_shared'
13867 ;;
13868 xlc* | xlC*)
13869 # IBM XL 8.0 on PPC
13870 lt_prog_compiler_wl_CXX='-Wl,'
13871 lt_prog_compiler_pic_CXX='-qpic'
13872 lt_prog_compiler_static_CXX='-qstaticlink'
13873 ;;
13874 *)
13875 case `$CC -V 2>&1 | sed 5q` in
13876 *Sun\ C*)
13877 # Sun C++ 5.9
13878 lt_prog_compiler_pic_CXX='-KPIC'
13879 lt_prog_compiler_static_CXX='-Bstatic'
13880 lt_prog_compiler_wl_CXX='-Qoption ld '
13881 ;;
13882 esac
13883 ;;
13884 esac
13885 ;;
13886 lynxos*)
13887 ;;
13888 m88k*)
13889 ;;
13890 mvs*)
13891 case $cc_basename in
13892 cxx*)
13893 lt_prog_compiler_pic_CXX='-W c,exportall'
13894 ;;
13895 *)
13896 ;;
13897 esac
13898 ;;
13899 netbsd*)
13900 ;;
13901 *qnx* | *nto*)
13902 # QNX uses GNU C++, but need to define -shared option too, otherwise
13903 # it will coredump.
13904 lt_prog_compiler_pic_CXX='-fPIC -shared'
13905 ;;
13906 osf3* | osf4* | osf5*)
13907 case $cc_basename in
13908 KCC*)
13909 lt_prog_compiler_wl_CXX='--backend -Wl,'
13910 ;;
13911 RCC*)
13912 # Rational C++ 2.4.1
13913 lt_prog_compiler_pic_CXX='-pic'
13914 ;;
13915 cxx*)
13916 # Digital/Compaq C++
13917 lt_prog_compiler_wl_CXX='-Wl,'
13918 # Make sure the PIC flag is empty. It appears that all Alpha
13919 # Linux and Compaq Tru64 Unix objects are PIC.
13920 lt_prog_compiler_pic_CXX=
13921 lt_prog_compiler_static_CXX='-non_shared'
13922 ;;
13923 *)
13924 ;;
13925 esac
13926 ;;
13927 psos*)
13928 ;;
13929 solaris*)
13930 case $cc_basename in
13931 CC*)
13932 # Sun C++ 4.2, 5.x and Centerline C++
13933 lt_prog_compiler_pic_CXX='-KPIC'
13934 lt_prog_compiler_static_CXX='-Bstatic'
13935 lt_prog_compiler_wl_CXX='-Qoption ld '
13936 ;;
13937 gcx*)
13938 # Green Hills C++ Compiler
13939 lt_prog_compiler_pic_CXX='-PIC'
13940 ;;
13941 *)
13942 ;;
13943 esac
13944 ;;
13945 sunos4*)
13946 case $cc_basename in
13947 CC*)
13948 # Sun C++ 4.x
13949 lt_prog_compiler_pic_CXX='-pic'
13950 lt_prog_compiler_static_CXX='-Bstatic'
13951 ;;
13952 lcc*)
13953 # Lucid
13954 lt_prog_compiler_pic_CXX='-pic'
13955 ;;
13956 *)
13957 ;;
13958 esac
13959 ;;
13960 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13961 case $cc_basename in
13962 CC*)
13963 lt_prog_compiler_wl_CXX='-Wl,'
13964 lt_prog_compiler_pic_CXX='-KPIC'
13965 lt_prog_compiler_static_CXX='-Bstatic'
13966 ;;
13967 esac
13968 ;;
13969 tandem*)
13970 case $cc_basename in
13971 NCC*)
13972 # NonStop-UX NCC 3.20
13973 lt_prog_compiler_pic_CXX='-KPIC'
13974 ;;
13975 *)
13976 ;;
13977 esac
13978 ;;
13979 vxworks*)
13980 ;;
13981 *)
13982 lt_prog_compiler_can_build_shared_CXX=no
13983 ;;
13984 esac
13985 fi
13986
13987 case $host_os in
13988 # For platforms which do not support PIC, -DPIC is meaningless:
13989 *djgpp*)
13990 lt_prog_compiler_pic_CXX=
13991 ;;
13992 *)
13993 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13994 ;;
13995 esac
13996 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13997 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13998
13999
14000
14001 #
14002 # Check to make sure the PIC flag actually works.
14003 #
14004 if test -n "$lt_prog_compiler_pic_CXX"; then
14005 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14006 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14007 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14008 $as_echo_n "(cached) " >&6
14009 else
14010 lt_cv_prog_compiler_pic_works_CXX=no
14011 ac_outfile=conftest.$ac_objext
14012 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14013 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14014 # Insert the option either (1) after the last *FLAGS variable, or
14015 # (2) before a word containing "conftest.", or (3) at the end.
14016 # Note that $ac_compile itself does not contain backslashes and begins
14017 # with a dollar sign (not a hyphen), so the echo should work correctly.
14018 # The option is referenced via a variable to avoid confusing sed.
14019 lt_compile=`echo "$ac_compile" | $SED \
14020 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14021 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14022 -e 's:$: $lt_compiler_flag:'`
14023 (eval echo "\"\$as_me:14023: $lt_compile\"" >&5)
14024 (eval "$lt_compile" 2>conftest.err)
14025 ac_status=$?
14026 cat conftest.err >&5
14027 echo "$as_me:14027: \$? = $ac_status" >&5
14028 if (exit $ac_status) && test -s "$ac_outfile"; then
14029 # The compiler can only warn and ignore the option if not recognized
14030 # So say no if there are warnings other than the usual output.
14031 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14032 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14033 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14034 lt_cv_prog_compiler_pic_works_CXX=yes
14035 fi
14036 fi
14037 $RM conftest*
14038
14039 fi
14040 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14041 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14042
14043 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14044 case $lt_prog_compiler_pic_CXX in
14045 "" | " "*) ;;
14046 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14047 esac
14048 else
14049 lt_prog_compiler_pic_CXX=
14050 lt_prog_compiler_can_build_shared_CXX=no
14051 fi
14052
14053 fi
14054
14055
14056
14057 #
14058 # Check to make sure the static flag actually works.
14059 #
14060 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14061 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14062 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14063 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14064 $as_echo_n "(cached) " >&6
14065 else
14066 lt_cv_prog_compiler_static_works_CXX=no
14067 save_LDFLAGS="$LDFLAGS"
14068 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14069 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14070 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14071 # The linker can only warn and ignore the option if not recognized
14072 # So say no if there are warnings
14073 if test -s conftest.err; then
14074 # Append any errors to the config.log.
14075 cat conftest.err 1>&5
14076 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14077 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14078 if diff conftest.exp conftest.er2 >/dev/null; then
14079 lt_cv_prog_compiler_static_works_CXX=yes
14080 fi
14081 else
14082 lt_cv_prog_compiler_static_works_CXX=yes
14083 fi
14084 fi
14085 $RM -r conftest*
14086 LDFLAGS="$save_LDFLAGS"
14087
14088 fi
14089 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14090 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14091
14092 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14093 :
14094 else
14095 lt_prog_compiler_static_CXX=
14096 fi
14097
14098
14099
14100
14101 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14102 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14103 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14104 $as_echo_n "(cached) " >&6
14105 else
14106 lt_cv_prog_compiler_c_o_CXX=no
14107 $RM -r conftest 2>/dev/null
14108 mkdir conftest
14109 cd conftest
14110 mkdir out
14111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14112
14113 lt_compiler_flag="-o out/conftest2.$ac_objext"
14114 # Insert the option either (1) after the last *FLAGS variable, or
14115 # (2) before a word containing "conftest.", or (3) at the end.
14116 # Note that $ac_compile itself does not contain backslashes and begins
14117 # with a dollar sign (not a hyphen), so the echo should work correctly.
14118 lt_compile=`echo "$ac_compile" | $SED \
14119 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14121 -e 's:$: $lt_compiler_flag:'`
14122 (eval echo "\"\$as_me:14122: $lt_compile\"" >&5)
14123 (eval "$lt_compile" 2>out/conftest.err)
14124 ac_status=$?
14125 cat out/conftest.err >&5
14126 echo "$as_me:14126: \$? = $ac_status" >&5
14127 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14128 then
14129 # The compiler can only warn and ignore the option if not recognized
14130 # So say no if there are warnings
14131 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14132 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14133 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14134 lt_cv_prog_compiler_c_o_CXX=yes
14135 fi
14136 fi
14137 chmod u+w . 2>&5
14138 $RM conftest*
14139 # SGI C++ compiler will create directory out/ii_files/ for
14140 # template instantiation
14141 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14142 $RM out/* && rmdir out
14143 cd ..
14144 $RM -r conftest
14145 $RM conftest*
14146
14147 fi
14148 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14149 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14150
14151
14152
14153 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14154 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14155 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14156 $as_echo_n "(cached) " >&6
14157 else
14158 lt_cv_prog_compiler_c_o_CXX=no
14159 $RM -r conftest 2>/dev/null
14160 mkdir conftest
14161 cd conftest
14162 mkdir out
14163 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14164
14165 lt_compiler_flag="-o out/conftest2.$ac_objext"
14166 # Insert the option either (1) after the last *FLAGS variable, or
14167 # (2) before a word containing "conftest.", or (3) at the end.
14168 # Note that $ac_compile itself does not contain backslashes and begins
14169 # with a dollar sign (not a hyphen), so the echo should work correctly.
14170 lt_compile=`echo "$ac_compile" | $SED \
14171 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14172 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14173 -e 's:$: $lt_compiler_flag:'`
14174 (eval echo "\"\$as_me:14174: $lt_compile\"" >&5)
14175 (eval "$lt_compile" 2>out/conftest.err)
14176 ac_status=$?
14177 cat out/conftest.err >&5
14178 echo "$as_me:14178: \$? = $ac_status" >&5
14179 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14180 then
14181 # The compiler can only warn and ignore the option if not recognized
14182 # So say no if there are warnings
14183 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14184 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14185 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14186 lt_cv_prog_compiler_c_o_CXX=yes
14187 fi
14188 fi
14189 chmod u+w . 2>&5
14190 $RM conftest*
14191 # SGI C++ compiler will create directory out/ii_files/ for
14192 # template instantiation
14193 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14194 $RM out/* && rmdir out
14195 cd ..
14196 $RM -r conftest
14197 $RM conftest*
14198
14199 fi
14200 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14201 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14202
14203
14204
14205
14206 hard_links="nottested"
14207 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14208 # do not overwrite the value of need_locks provided by the user
14209 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14210 $as_echo_n "checking if we can lock with hard links... " >&6; }
14211 hard_links=yes
14212 $RM conftest*
14213 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14214 touch conftest.a
14215 ln conftest.a conftest.b 2>&5 || hard_links=no
14216 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14217 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14218 $as_echo "$hard_links" >&6; }
14219 if test "$hard_links" = no; then
14220 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14221 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14222 need_locks=warn
14223 fi
14224 else
14225 need_locks=no
14226 fi
14227
14228
14229
14230 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14231 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14232
14233 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14234 case $host_os in
14235 aix[4-9]*)
14236 # If we're using GNU nm, then we don't want the "-C" option.
14237 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14238 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14239 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'
14240 else
14241 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'
14242 fi
14243 ;;
14244 pw32*)
14245 export_symbols_cmds_CXX="$ltdll_cmds"
14246 ;;
14247 cygwin* | mingw* | cegcc*)
14248 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'
14249 ;;
14250 *)
14251 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14252 ;;
14253 esac
14254 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14255
14256 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14257 $as_echo "$ld_shlibs_CXX" >&6; }
14258 test "$ld_shlibs_CXX" = no && can_build_shared=no
14259
14260 with_gnu_ld_CXX=$with_gnu_ld
14261
14262
14263
14264
14265
14266
14267 #
14268 # Do we need to explicitly link libc?
14269 #
14270 case "x$archive_cmds_need_lc_CXX" in
14271 x|xyes)
14272 # Assume -lc should be added
14273 archive_cmds_need_lc_CXX=yes
14274
14275 if test "$enable_shared" = yes && test "$GCC" = yes; then
14276 case $archive_cmds_CXX in
14277 *'~'*)
14278 # FIXME: we may have to deal with multi-command sequences.
14279 ;;
14280 '$CC '*)
14281 # Test whether the compiler implicitly links with -lc since on some
14282 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14283 # to ld, don't add -lc before -lgcc.
14284 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14285 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14286 $RM conftest*
14287 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14288
14289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14290 (eval $ac_compile) 2>&5
14291 ac_status=$?
14292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); } 2>conftest.err; then
14294 soname=conftest
14295 lib=conftest
14296 libobjs=conftest.$ac_objext
14297 deplibs=
14298 wl=$lt_prog_compiler_wl_CXX
14299 pic_flag=$lt_prog_compiler_pic_CXX
14300 compiler_flags=-v
14301 linker_flags=-v
14302 verstring=
14303 output_objdir=.
14304 libname=conftest
14305 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14306 allow_undefined_flag_CXX=
14307 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14308 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14309 ac_status=$?
14310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }
14312 then
14313 archive_cmds_need_lc_CXX=no
14314 else
14315 archive_cmds_need_lc_CXX=yes
14316 fi
14317 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14318 else
14319 cat conftest.err 1>&5
14320 fi
14321 $RM conftest*
14322 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14323 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14324 ;;
14325 esac
14326 fi
14327 ;;
14328 esac
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14394 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14395
14396 library_names_spec=
14397 libname_spec='lib$name'
14398 soname_spec=
14399 shrext_cmds=".so"
14400 postinstall_cmds=
14401 postuninstall_cmds=
14402 finish_cmds=
14403 finish_eval=
14404 shlibpath_var=
14405 shlibpath_overrides_runpath=unknown
14406 version_type=none
14407 dynamic_linker="$host_os ld.so"
14408 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14409 need_lib_prefix=unknown
14410 hardcode_into_libs=no
14411
14412 # when you set need_version to no, make sure it does not cause -set_version
14413 # flags to be left without arguments
14414 need_version=unknown
14415
14416 case $host_os in
14417 aix3*)
14418 version_type=linux
14419 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14420 shlibpath_var=LIBPATH
14421
14422 # AIX 3 has no versioning support, so we append a major version to the name.
14423 soname_spec='${libname}${release}${shared_ext}$major'
14424 ;;
14425
14426 aix[4-9]*)
14427 version_type=linux
14428 need_lib_prefix=no
14429 need_version=no
14430 hardcode_into_libs=yes
14431 if test "$host_cpu" = ia64; then
14432 # AIX 5 supports IA64
14433 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14434 shlibpath_var=LD_LIBRARY_PATH
14435 else
14436 # With GCC up to 2.95.x, collect2 would create an import file
14437 # for dependence libraries. The import file would start with
14438 # the line `#! .'. This would cause the generated library to
14439 # depend on `.', always an invalid library. This was fixed in
14440 # development snapshots of GCC prior to 3.0.
14441 case $host_os in
14442 aix4 | aix4.[01] | aix4.[01].*)
14443 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14444 echo ' yes '
14445 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14446 :
14447 else
14448 can_build_shared=no
14449 fi
14450 ;;
14451 esac
14452 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14453 # soname into executable. Probably we can add versioning support to
14454 # collect2, so additional links can be useful in future.
14455 if test "$aix_use_runtimelinking" = yes; then
14456 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14457 # instead of lib<name>.a to let people know that these are not
14458 # typical AIX shared libraries.
14459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14460 else
14461 # We preserve .a as extension for shared libraries through AIX4.2
14462 # and later when we are not doing run time linking.
14463 library_names_spec='${libname}${release}.a $libname.a'
14464 soname_spec='${libname}${release}${shared_ext}$major'
14465 fi
14466 shlibpath_var=LIBPATH
14467 fi
14468 ;;
14469
14470 amigaos*)
14471 case $host_cpu in
14472 powerpc)
14473 # Since July 2007 AmigaOS4 officially supports .so libraries.
14474 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14476 ;;
14477 m68k)
14478 library_names_spec='$libname.ixlibrary $libname.a'
14479 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14480 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'
14481 ;;
14482 esac
14483 ;;
14484
14485 beos*)
14486 library_names_spec='${libname}${shared_ext}'
14487 dynamic_linker="$host_os ld.so"
14488 shlibpath_var=LIBRARY_PATH
14489 ;;
14490
14491 bsdi[45]*)
14492 version_type=linux
14493 need_version=no
14494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14495 soname_spec='${libname}${release}${shared_ext}$major'
14496 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14497 shlibpath_var=LD_LIBRARY_PATH
14498 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14499 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14500 # the default ld.so.conf also contains /usr/contrib/lib and
14501 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14502 # libtool to hard-code these into programs
14503 ;;
14504
14505 cygwin* | mingw* | pw32* | cegcc*)
14506 version_type=windows
14507 shrext_cmds=".dll"
14508 need_version=no
14509 need_lib_prefix=no
14510
14511 case $GCC,$host_os in
14512 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14513 library_names_spec='$libname.dll.a'
14514 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14515 postinstall_cmds='base_file=`basename \${file}`~
14516 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14517 dldir=$destdir/`dirname \$dlpath`~
14518 test -d \$dldir || mkdir -p \$dldir~
14519 $install_prog $dir/$dlname \$dldir/$dlname~
14520 chmod a+x \$dldir/$dlname~
14521 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14522 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14523 fi'
14524 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14525 dlpath=$dir/\$dldll~
14526 $RM \$dlpath'
14527 shlibpath_overrides_runpath=yes
14528
14529 case $host_os in
14530 cygwin*)
14531 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14532 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14533 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14534 ;;
14535 mingw* | cegcc*)
14536 # MinGW DLLs use traditional 'lib' prefix
14537 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14538 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14539 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14540 # It is most probably a Windows format PATH printed by
14541 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14542 # path with ; separators, and with drive letters. We can handle the
14543 # drive letters (cygwin fileutils understands them), so leave them,
14544 # especially as we might pass files found there to a mingw objdump,
14545 # which wouldn't understand a cygwinified path. Ahh.
14546 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14547 else
14548 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14549 fi
14550 ;;
14551 pw32*)
14552 # pw32 DLLs use 'pw' prefix rather than 'lib'
14553 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14554 ;;
14555 esac
14556 ;;
14557
14558 *)
14559 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14560 ;;
14561 esac
14562 dynamic_linker='Win32 ld.exe'
14563 # FIXME: first we should search . and the directory the executable is in
14564 shlibpath_var=PATH
14565 ;;
14566
14567 darwin* | rhapsody*)
14568 dynamic_linker="$host_os dyld"
14569 version_type=darwin
14570 need_lib_prefix=no
14571 need_version=no
14572 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14573 soname_spec='${libname}${release}${major}$shared_ext'
14574 shlibpath_overrides_runpath=yes
14575 shlibpath_var=DYLD_LIBRARY_PATH
14576 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14577
14578 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14579 ;;
14580
14581 dgux*)
14582 version_type=linux
14583 need_lib_prefix=no
14584 need_version=no
14585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14586 soname_spec='${libname}${release}${shared_ext}$major'
14587 shlibpath_var=LD_LIBRARY_PATH
14588 ;;
14589
14590 freebsd1*)
14591 dynamic_linker=no
14592 ;;
14593
14594 freebsd* | dragonfly*)
14595 # DragonFly does not have aout. When/if they implement a new
14596 # versioning mechanism, adjust this.
14597 if test -x /usr/bin/objformat; then
14598 objformat=`/usr/bin/objformat`
14599 else
14600 case $host_os in
14601 freebsd[123]*) objformat=aout ;;
14602 *) objformat=elf ;;
14603 esac
14604 fi
14605 version_type=freebsd-$objformat
14606 case $version_type in
14607 freebsd-elf*)
14608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14609 need_version=no
14610 need_lib_prefix=no
14611 ;;
14612 freebsd-*)
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14614 need_version=yes
14615 ;;
14616 esac
14617 shlibpath_var=LD_LIBRARY_PATH
14618 case $host_os in
14619 freebsd2*)
14620 shlibpath_overrides_runpath=yes
14621 ;;
14622 freebsd3.[01]* | freebsdelf3.[01]*)
14623 shlibpath_overrides_runpath=yes
14624 hardcode_into_libs=yes
14625 ;;
14626 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14627 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14628 shlibpath_overrides_runpath=no
14629 hardcode_into_libs=yes
14630 ;;
14631 *) # from 4.6 on, and DragonFly
14632 shlibpath_overrides_runpath=yes
14633 hardcode_into_libs=yes
14634 ;;
14635 esac
14636 ;;
14637
14638 gnu*)
14639 version_type=linux
14640 need_lib_prefix=no
14641 need_version=no
14642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14643 soname_spec='${libname}${release}${shared_ext}$major'
14644 shlibpath_var=LD_LIBRARY_PATH
14645 hardcode_into_libs=yes
14646 ;;
14647
14648 hpux9* | hpux10* | hpux11*)
14649 # Give a soname corresponding to the major version so that dld.sl refuses to
14650 # link against other versions.
14651 version_type=sunos
14652 need_lib_prefix=no
14653 need_version=no
14654 case $host_cpu in
14655 ia64*)
14656 shrext_cmds='.so'
14657 hardcode_into_libs=yes
14658 dynamic_linker="$host_os dld.so"
14659 shlibpath_var=LD_LIBRARY_PATH
14660 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662 soname_spec='${libname}${release}${shared_ext}$major'
14663 if test "X$HPUX_IA64_MODE" = X32; then
14664 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14665 else
14666 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14667 fi
14668 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14669 ;;
14670 hppa*64*)
14671 shrext_cmds='.sl'
14672 hardcode_into_libs=yes
14673 dynamic_linker="$host_os dld.sl"
14674 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14675 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14677 soname_spec='${libname}${release}${shared_ext}$major'
14678 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14680 ;;
14681 *)
14682 shrext_cmds='.sl'
14683 dynamic_linker="$host_os dld.sl"
14684 shlibpath_var=SHLIB_PATH
14685 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14687 soname_spec='${libname}${release}${shared_ext}$major'
14688 ;;
14689 esac
14690 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14691 postinstall_cmds='chmod 555 $lib'
14692 ;;
14693
14694 interix[3-9]*)
14695 version_type=linux
14696 need_lib_prefix=no
14697 need_version=no
14698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14699 soname_spec='${libname}${release}${shared_ext}$major'
14700 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14701 shlibpath_var=LD_LIBRARY_PATH
14702 shlibpath_overrides_runpath=no
14703 hardcode_into_libs=yes
14704 ;;
14705
14706 irix5* | irix6* | nonstopux*)
14707 case $host_os in
14708 nonstopux*) version_type=nonstopux ;;
14709 *)
14710 if test "$lt_cv_prog_gnu_ld" = yes; then
14711 version_type=linux
14712 else
14713 version_type=irix
14714 fi ;;
14715 esac
14716 need_lib_prefix=no
14717 need_version=no
14718 soname_spec='${libname}${release}${shared_ext}$major'
14719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14720 case $host_os in
14721 irix5* | nonstopux*)
14722 libsuff= shlibsuff=
14723 ;;
14724 *)
14725 case $LD in # libtool.m4 will add one of these switches to LD
14726 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14727 libsuff= shlibsuff= libmagic=32-bit;;
14728 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14729 libsuff=32 shlibsuff=N32 libmagic=N32;;
14730 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14731 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14732 *) libsuff= shlibsuff= libmagic=never-match;;
14733 esac
14734 ;;
14735 esac
14736 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14737 shlibpath_overrides_runpath=no
14738 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14739 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14740 hardcode_into_libs=yes
14741 ;;
14742
14743 # No shared lib support for Linux oldld, aout, or coff.
14744 linux*oldld* | linux*aout* | linux*coff*)
14745 dynamic_linker=no
14746 ;;
14747
14748 # This must be Linux ELF.
14749 linux* | k*bsd*-gnu)
14750 version_type=linux
14751 need_lib_prefix=no
14752 need_version=no
14753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14754 soname_spec='${libname}${release}${shared_ext}$major'
14755 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14756 shlibpath_var=LD_LIBRARY_PATH
14757 shlibpath_overrides_runpath=no
14758 # Some binutils ld are patched to set DT_RUNPATH
14759 save_LDFLAGS=$LDFLAGS
14760 save_libdir=$libdir
14761 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14762 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14763 cat >conftest.$ac_ext <<_ACEOF
14764 /* confdefs.h. */
14765 _ACEOF
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h. */
14769
14770 int
14771 main ()
14772 {
14773
14774 ;
14775 return 0;
14776 }
14777 _ACEOF
14778 rm -f conftest.$ac_objext conftest$ac_exeext
14779 if { (ac_try="$ac_link"
14780 case "(($ac_try" in
14781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14782 *) ac_try_echo=$ac_try;;
14783 esac
14784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14785 $as_echo "$ac_try_echo") >&5
14786 (eval "$ac_link") 2>conftest.er1
14787 ac_status=$?
14788 grep -v '^ *+' conftest.er1 >conftest.err
14789 rm -f conftest.er1
14790 cat conftest.err >&5
14791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); } && {
14793 test -z "$ac_cxx_werror_flag" ||
14794 test ! -s conftest.err
14795 } && test -s conftest$ac_exeext && {
14796 test "$cross_compiling" = yes ||
14797 $as_test_x conftest$ac_exeext
14798 }; then
14799 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
14800 shlibpath_overrides_runpath=yes
14801 fi
14802
14803 else
14804 $as_echo "$as_me: failed program was:" >&5
14805 sed 's/^/| /' conftest.$ac_ext >&5
14806
14807
14808 fi
14809
14810 rm -rf conftest.dSYM
14811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14812 conftest$ac_exeext conftest.$ac_ext
14813 LDFLAGS=$save_LDFLAGS
14814 libdir=$save_libdir
14815
14816 # This implies no fast_install, which is unacceptable.
14817 # Some rework will be needed to allow for fast_install
14818 # before this can be enabled.
14819 hardcode_into_libs=yes
14820
14821 # Add ABI-specific directories to the system library path.
14822 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14823
14824 # Append ld.so.conf contents to the search path
14825 if test -f /etc/ld.so.conf; then
14826 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' ' '`
14827 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14828 fi
14829
14830 # We used to test for /lib/ld.so.1 and disable shared libraries on
14831 # powerpc, because MkLinux only supported shared libraries with the
14832 # GNU dynamic linker. Since this was broken with cross compilers,
14833 # most powerpc-linux boxes support dynamic linking these days and
14834 # people can always --disable-shared, the test was removed, and we
14835 # assume the GNU/Linux dynamic linker is in use.
14836 dynamic_linker='GNU/Linux ld.so'
14837 ;;
14838
14839 netbsd*)
14840 version_type=sunos
14841 need_lib_prefix=no
14842 need_version=no
14843 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14846 dynamic_linker='NetBSD (a.out) ld.so'
14847 else
14848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14849 soname_spec='${libname}${release}${shared_ext}$major'
14850 dynamic_linker='NetBSD ld.elf_so'
14851 fi
14852 shlibpath_var=LD_LIBRARY_PATH
14853 shlibpath_overrides_runpath=yes
14854 hardcode_into_libs=yes
14855 ;;
14856
14857 newsos6)
14858 version_type=linux
14859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14860 shlibpath_var=LD_LIBRARY_PATH
14861 shlibpath_overrides_runpath=yes
14862 ;;
14863
14864 *nto* | *qnx*)
14865 version_type=qnx
14866 need_lib_prefix=no
14867 need_version=no
14868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14869 soname_spec='${libname}${release}${shared_ext}$major'
14870 shlibpath_var=LD_LIBRARY_PATH
14871 shlibpath_overrides_runpath=no
14872 hardcode_into_libs=yes
14873 dynamic_linker='ldqnx.so'
14874 ;;
14875
14876 openbsd*)
14877 version_type=sunos
14878 sys_lib_dlsearch_path_spec="/usr/lib"
14879 need_lib_prefix=no
14880 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14881 case $host_os in
14882 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14883 *) need_version=no ;;
14884 esac
14885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14887 shlibpath_var=LD_LIBRARY_PATH
14888 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14889 case $host_os in
14890 openbsd2.[89] | openbsd2.[89].*)
14891 shlibpath_overrides_runpath=no
14892 ;;
14893 *)
14894 shlibpath_overrides_runpath=yes
14895 ;;
14896 esac
14897 else
14898 shlibpath_overrides_runpath=yes
14899 fi
14900 ;;
14901
14902 os2*)
14903 libname_spec='$name'
14904 shrext_cmds=".dll"
14905 need_lib_prefix=no
14906 library_names_spec='$libname${shared_ext} $libname.a'
14907 dynamic_linker='OS/2 ld.exe'
14908 shlibpath_var=LIBPATH
14909 ;;
14910
14911 osf3* | osf4* | osf5*)
14912 version_type=osf
14913 need_lib_prefix=no
14914 need_version=no
14915 soname_spec='${libname}${release}${shared_ext}$major'
14916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14917 shlibpath_var=LD_LIBRARY_PATH
14918 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14919 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14920 ;;
14921
14922 rdos*)
14923 dynamic_linker=no
14924 ;;
14925
14926 solaris*)
14927 version_type=linux
14928 need_lib_prefix=no
14929 need_version=no
14930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14931 soname_spec='${libname}${release}${shared_ext}$major'
14932 shlibpath_var=LD_LIBRARY_PATH
14933 shlibpath_overrides_runpath=yes
14934 hardcode_into_libs=yes
14935 # ldd complains unless libraries are executable
14936 postinstall_cmds='chmod +x $lib'
14937 ;;
14938
14939 sunos4*)
14940 version_type=sunos
14941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14942 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14943 shlibpath_var=LD_LIBRARY_PATH
14944 shlibpath_overrides_runpath=yes
14945 if test "$with_gnu_ld" = yes; then
14946 need_lib_prefix=no
14947 fi
14948 need_version=yes
14949 ;;
14950
14951 sysv4 | sysv4.3*)
14952 version_type=linux
14953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14954 soname_spec='${libname}${release}${shared_ext}$major'
14955 shlibpath_var=LD_LIBRARY_PATH
14956 case $host_vendor in
14957 sni)
14958 shlibpath_overrides_runpath=no
14959 need_lib_prefix=no
14960 runpath_var=LD_RUN_PATH
14961 ;;
14962 siemens)
14963 need_lib_prefix=no
14964 ;;
14965 motorola)
14966 need_lib_prefix=no
14967 need_version=no
14968 shlibpath_overrides_runpath=no
14969 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14970 ;;
14971 esac
14972 ;;
14973
14974 sysv4*MP*)
14975 if test -d /usr/nec ;then
14976 version_type=linux
14977 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14978 soname_spec='$libname${shared_ext}.$major'
14979 shlibpath_var=LD_LIBRARY_PATH
14980 fi
14981 ;;
14982
14983 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14984 version_type=freebsd-elf
14985 need_lib_prefix=no
14986 need_version=no
14987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14988 soname_spec='${libname}${release}${shared_ext}$major'
14989 shlibpath_var=LD_LIBRARY_PATH
14990 shlibpath_overrides_runpath=yes
14991 hardcode_into_libs=yes
14992 if test "$with_gnu_ld" = yes; then
14993 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14994 else
14995 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14996 case $host_os in
14997 sco3.2v5*)
14998 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14999 ;;
15000 esac
15001 fi
15002 sys_lib_dlsearch_path_spec='/usr/lib'
15003 ;;
15004
15005 tpf*)
15006 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15007 version_type=linux
15008 need_lib_prefix=no
15009 need_version=no
15010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15011 shlibpath_var=LD_LIBRARY_PATH
15012 shlibpath_overrides_runpath=no
15013 hardcode_into_libs=yes
15014 ;;
15015
15016 uts4*)
15017 version_type=linux
15018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15019 soname_spec='${libname}${release}${shared_ext}$major'
15020 shlibpath_var=LD_LIBRARY_PATH
15021 ;;
15022
15023 *)
15024 dynamic_linker=no
15025 ;;
15026 esac
15027 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15028 $as_echo "$dynamic_linker" >&6; }
15029 test "$dynamic_linker" = no && can_build_shared=no
15030
15031 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15032 if test "$GCC" = yes; then
15033 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15034 fi
15035
15036 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15037 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15038 fi
15039 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15040 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15041 fi
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15079 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15080 hardcode_action_CXX=
15081 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15082 test -n "$runpath_var_CXX" ||
15083 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15084
15085 # We can hardcode non-existent directories.
15086 if test "$hardcode_direct_CXX" != no &&
15087 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15088 # have to relink, otherwise we might link with an installed library
15089 # when we should be linking with a yet-to-be-installed one
15090 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15091 test "$hardcode_minus_L_CXX" != no; then
15092 # Linking always hardcodes the temporary library directory.
15093 hardcode_action_CXX=relink
15094 else
15095 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15096 hardcode_action_CXX=immediate
15097 fi
15098 else
15099 # We cannot hardcode anything, or else we can only hardcode existing
15100 # directories.
15101 hardcode_action_CXX=unsupported
15102 fi
15103 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15104 $as_echo "$hardcode_action_CXX" >&6; }
15105
15106 if test "$hardcode_action_CXX" = relink ||
15107 test "$inherit_rpath_CXX" = yes; then
15108 # Fast installation is not supported
15109 enable_fast_install=no
15110 elif test "$shlibpath_overrides_runpath" = yes ||
15111 test "$enable_shared" = no; then
15112 # Fast installation is not necessary
15113 enable_fast_install=needless
15114 fi
15115
15116
15117
15118
15119
15120
15121
15122 fi # test -n "$compiler"
15123
15124 CC=$lt_save_CC
15125 LDCXX=$LD
15126 LD=$lt_save_LD
15127 GCC=$lt_save_GCC
15128 with_gnu_ld=$lt_save_with_gnu_ld
15129 lt_cv_path_LDCXX=$lt_cv_path_LD
15130 lt_cv_path_LD=$lt_save_path_LD
15131 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15132 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15133 fi # test "$_lt_caught_CXX_error" != yes
15134
15135 ac_ext=c
15136 ac_cpp='$CPP $CPPFLAGS'
15137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15140
15141
15142 depcc="$CXX" am_compiler_list=
15143
15144 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15145 $as_echo_n "checking dependency style of $depcc... " >&6; }
15146 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
15147 $as_echo_n "(cached) " >&6
15148 else
15149 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15150 # We make a subdir and do the tests there. Otherwise we can end up
15151 # making bogus files that we don't know about and never remove. For
15152 # instance it was reported that on HP-UX the gcc test will end up
15153 # making a dummy file named `D' -- because `-MD' means `put the output
15154 # in D'.
15155 mkdir conftest.dir
15156 # Copy depcomp to subdir because otherwise we won't find it if we're
15157 # using a relative directory.
15158 cp "$am_depcomp" conftest.dir
15159 cd conftest.dir
15160 # We will build objects and dependencies in a subdirectory because
15161 # it helps to detect inapplicable dependency modes. For instance
15162 # both Tru64's cc and ICC support -MD to output dependencies as a
15163 # side effect of compilation, but ICC will put the dependencies in
15164 # the current directory while Tru64 will put them in the object
15165 # directory.
15166 mkdir sub
15167
15168 am_cv_CXX_dependencies_compiler_type=none
15169 if test "$am_compiler_list" = ""; then
15170 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15171 fi
15172 am__universal=false
15173 case " $depcc " in #(
15174 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15175 esac
15176
15177 for depmode in $am_compiler_list; do
15178 # Setup a source with many dependencies, because some compilers
15179 # like to wrap large dependency lists on column 80 (with \), and
15180 # we should not choose a depcomp mode which is confused by this.
15181 #
15182 # We need to recreate these files for each test, as the compiler may
15183 # overwrite some of them when testing with obscure command lines.
15184 # This happens at least with the AIX C compiler.
15185 : > sub/conftest.c
15186 for i in 1 2 3 4 5 6; do
15187 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15188 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15189 # Solaris 8's {/usr,}/bin/sh.
15190 touch sub/conftst$i.h
15191 done
15192 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15193
15194 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15195 # mode. It turns out that the SunPro C++ compiler does not properly
15196 # handle `-M -o', and we need to detect this. Also, some Intel
15197 # versions had trouble with output in subdirs
15198 am__obj=sub/conftest.${OBJEXT-o}
15199 am__minus_obj="-o $am__obj"
15200 case $depmode in
15201 gcc)
15202 # This depmode causes a compiler race in universal mode.
15203 test "$am__universal" = false || continue
15204 ;;
15205 nosideeffect)
15206 # after this tag, mechanisms are not by side-effect, so they'll
15207 # only be used when explicitly requested
15208 if test "x$enable_dependency_tracking" = xyes; then
15209 continue
15210 else
15211 break
15212 fi
15213 ;;
15214 msvisualcpp | msvcmsys)
15215 # This compiler won't grok `-c -o', but also, the minuso test has
15216 # not run yet. These depmodes are late enough in the game, and
15217 # so weak that their functioning should not be impacted.
15218 am__obj=conftest.${OBJEXT-o}
15219 am__minus_obj=
15220 ;;
15221 none) break ;;
15222 esac
15223 if depmode=$depmode \
15224 source=sub/conftest.c object=$am__obj \
15225 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15226 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15227 >/dev/null 2>conftest.err &&
15228 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15229 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15230 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15231 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15232 # icc doesn't choke on unknown options, it will just issue warnings
15233 # or remarks (even with -Werror). So we grep stderr for any message
15234 # that says an option was ignored or not supported.
15235 # When given -MP, icc 7.0 and 7.1 complain thusly:
15236 # icc: Command line warning: ignoring option '-M'; no argument required
15237 # The diagnosis changed in icc 8.0:
15238 # icc: Command line remark: option '-MP' not supported
15239 if (grep 'ignoring option' conftest.err ||
15240 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15241 am_cv_CXX_dependencies_compiler_type=$depmode
15242 break
15243 fi
15244 fi
15245 done
15246
15247 cd ..
15248 rm -rf conftest.dir
15249 else
15250 am_cv_CXX_dependencies_compiler_type=none
15251 fi
15252
15253 fi
15254 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
15255 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
15256 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15257
15258 if
15259 test "x$enable_dependency_tracking" != xno \
15260 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
15261 am__fastdepCXX_TRUE=
15262 am__fastdepCXX_FALSE='#'
15263 else
15264 am__fastdepCXX_TRUE='#'
15265 am__fastdepCXX_FALSE=
15266 fi
15267
15268
15269 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
15270 $as_echo_n "checking whether ln -s works... " >&6; }
15271 LN_S=$as_ln_s
15272 if test "$LN_S" = "ln -s"; then
15273 { $as_echo "$as_me:$LINENO: result: yes" >&5
15274 $as_echo "yes" >&6; }
15275 else
15276 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15277 $as_echo "no, using $LN_S" >&6; }
15278 fi
15279
15280 # Extract the first word of "perl", so it can be a program name with args.
15281 set dummy perl; ac_word=$2
15282 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15283 $as_echo_n "checking for $ac_word... " >&6; }
15284 if test "${ac_cv_path_PERL+set}" = set; then
15285 $as_echo_n "(cached) " >&6
15286 else
15287 case $PERL in
15288 [\\/]* | ?:[\\/]*)
15289 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15290 ;;
15291 *)
15292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15293 for as_dir in $PATH
15294 do
15295 IFS=$as_save_IFS
15296 test -z "$as_dir" && as_dir=.
15297 for ac_exec_ext in '' $ac_executable_extensions; do
15298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15299 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15300 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15301 break 2
15302 fi
15303 done
15304 done
15305 IFS=$as_save_IFS
15306
15307 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL=""none""
15308 ;;
15309 esac
15310 fi
15311 PERL=$ac_cv_path_PERL
15312 if test -n "$PERL"; then
15313 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
15314 $as_echo "$PERL" >&6; }
15315 else
15316 { $as_echo "$as_me:$LINENO: result: no" >&5
15317 $as_echo "no" >&6; }
15318 fi
15319
15320
15321 if test $PERL = "none"
15322 then
15323 echo "-------------------------------------------------------------------"
15324 echo " WARNING: Cannot find 'perl' installed. Some tools won't work !!!"
15325 echo "-------------------------------------------------------------------"
15326 set PERL="/usr/bin/perl"
15327 fi
15328
15329 for ac_prog in listen axlisten
15330 do
15331 # Extract the first word of "$ac_prog", so it can be a program name with args.
15332 set dummy $ac_prog; ac_word=$2
15333 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15334 $as_echo_n "checking for $ac_word... " >&6; }
15335 if test "${ac_cv_path_LISTEN+set}" = set; then
15336 $as_echo_n "(cached) " >&6
15337 else
15338 case $LISTEN in
15339 [\\/]* | ?:[\\/]*)
15340 ac_cv_path_LISTEN="$LISTEN" # Let the user override the test with a path.
15341 ;;
15342 *)
15343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15344 for as_dir in $PATH
15345 do
15346 IFS=$as_save_IFS
15347 test -z "$as_dir" && as_dir=.
15348 for ac_exec_ext in '' $ac_executable_extensions; do
15349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15350 ac_cv_path_LISTEN="$as_dir/$ac_word$ac_exec_ext"
15351 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15352 break 2
15353 fi
15354 done
15355 done
15356 IFS=$as_save_IFS
15357
15358 ;;
15359 esac
15360 fi
15361 LISTEN=$ac_cv_path_LISTEN
15362 if test -n "$LISTEN"; then
15363 { $as_echo "$as_me:$LINENO: result: $LISTEN" >&5
15364 $as_echo "$LISTEN" >&6; }
15365 else
15366 { $as_echo "$as_me:$LINENO: result: no" >&5
15367 $as_echo "no" >&6; }
15368 fi
15369
15370
15371 test -n "$LISTEN" && break
15372 done
15373 test -n "$LISTEN" || LISTEN=""none""
15374
15375 if test $LISTEN = "none"
15376 then
15377 { { $as_echo "$as_me:$LINENO: error: cannot find an AX.25 listen program" >&5
15378 $as_echo "$as_me: error: cannot find an AX.25 listen program" >&2;}
15379 { (exit 1); exit 1; }; }
15380 else
15381
15382 cat >>confdefs.h <<_ACEOF
15383 #define LISTEN "${LISTEN}"
15384 _ACEOF
15385
15386 fi
15387
15388 # Checks for libraries
15389
15390 # Checks for header files
15391 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15392 $as_echo_n "checking for ANSI C header files... " >&6; }
15393 if test "${ac_cv_header_stdc+set}" = set; then
15394 $as_echo_n "(cached) " >&6
15395 else
15396 cat >conftest.$ac_ext <<_ACEOF
15397 /* confdefs.h. */
15398 _ACEOF
15399 cat confdefs.h >>conftest.$ac_ext
15400 cat >>conftest.$ac_ext <<_ACEOF
15401 /* end confdefs.h. */
15402 #include <stdlib.h>
15403 #include <stdarg.h>
15404 #include <string.h>
15405 #include <float.h>
15406
15407 int
15408 main ()
15409 {
15410
15411 ;
15412 return 0;
15413 }
15414 _ACEOF
15415 rm -f conftest.$ac_objext
15416 if { (ac_try="$ac_compile"
15417 case "(($ac_try" in
15418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15419 *) ac_try_echo=$ac_try;;
15420 esac
15421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15422 $as_echo "$ac_try_echo") >&5
15423 (eval "$ac_compile") 2>conftest.er1
15424 ac_status=$?
15425 grep -v '^ *+' conftest.er1 >conftest.err
15426 rm -f conftest.er1
15427 cat conftest.err >&5
15428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } && {
15430 test -z "$ac_c_werror_flag" ||
15431 test ! -s conftest.err
15432 } && test -s conftest.$ac_objext; then
15433 ac_cv_header_stdc=yes
15434 else
15435 $as_echo "$as_me: failed program was:" >&5
15436 sed 's/^/| /' conftest.$ac_ext >&5
15437
15438 ac_cv_header_stdc=no
15439 fi
15440
15441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15442
15443 if test $ac_cv_header_stdc = yes; then
15444 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15445 cat >conftest.$ac_ext <<_ACEOF
15446 /* confdefs.h. */
15447 _ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h. */
15451 #include <string.h>
15452
15453 _ACEOF
15454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15455 $EGREP "memchr" >/dev/null 2>&1; then
15456 :
15457 else
15458 ac_cv_header_stdc=no
15459 fi
15460 rm -f conftest*
15461
15462 fi
15463
15464 if test $ac_cv_header_stdc = yes; then
15465 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15466 cat >conftest.$ac_ext <<_ACEOF
15467 /* confdefs.h. */
15468 _ACEOF
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h. */
15472 #include <stdlib.h>
15473
15474 _ACEOF
15475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15476 $EGREP "free" >/dev/null 2>&1; then
15477 :
15478 else
15479 ac_cv_header_stdc=no
15480 fi
15481 rm -f conftest*
15482
15483 fi
15484
15485 if test $ac_cv_header_stdc = yes; then
15486 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15487 if test "$cross_compiling" = yes; then
15488 :
15489 else
15490 cat >conftest.$ac_ext <<_ACEOF
15491 /* confdefs.h. */
15492 _ACEOF
15493 cat confdefs.h >>conftest.$ac_ext
15494 cat >>conftest.$ac_ext <<_ACEOF
15495 /* end confdefs.h. */
15496 #include <ctype.h>
15497 #include <stdlib.h>
15498 #if ((' ' & 0x0FF) == 0x020)
15499 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15500 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15501 #else
15502 # define ISLOWER(c) \
15503 (('a' <= (c) && (c) <= 'i') \
15504 || ('j' <= (c) && (c) <= 'r') \
15505 || ('s' <= (c) && (c) <= 'z'))
15506 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15507 #endif
15508
15509 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15510 int
15511 main ()
15512 {
15513 int i;
15514 for (i = 0; i < 256; i++)
15515 if (XOR (islower (i), ISLOWER (i))
15516 || toupper (i) != TOUPPER (i))
15517 return 2;
15518 return 0;
15519 }
15520 _ACEOF
15521 rm -f conftest$ac_exeext
15522 if { (ac_try="$ac_link"
15523 case "(($ac_try" in
15524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15525 *) ac_try_echo=$ac_try;;
15526 esac
15527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15528 $as_echo "$ac_try_echo") >&5
15529 (eval "$ac_link") 2>&5
15530 ac_status=$?
15531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15533 { (case "(($ac_try" in
15534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15535 *) ac_try_echo=$ac_try;;
15536 esac
15537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15538 $as_echo "$ac_try_echo") >&5
15539 (eval "$ac_try") 2>&5
15540 ac_status=$?
15541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; }; then
15543 :
15544 else
15545 $as_echo "$as_me: program exited with status $ac_status" >&5
15546 $as_echo "$as_me: failed program was:" >&5
15547 sed 's/^/| /' conftest.$ac_ext >&5
15548
15549 ( exit $ac_status )
15550 ac_cv_header_stdc=no
15551 fi
15552 rm -rf conftest.dSYM
15553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15554 fi
15555
15556
15557 fi
15558 fi
15559 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15560 $as_echo "$ac_cv_header_stdc" >&6; }
15561 if test $ac_cv_header_stdc = yes; then
15562
15563 cat >>confdefs.h <<\_ACEOF
15564 #define STDC_HEADERS 1
15565 _ACEOF
15566
15567 fi
15568
15569 if test "${ac_cv_header_linux_ax25_h+set}" = set; then
15570 { $as_echo "$as_me:$LINENO: checking for linux/ax25.h" >&5
15571 $as_echo_n "checking for linux/ax25.h... " >&6; }
15572 if test "${ac_cv_header_linux_ax25_h+set}" = set; then
15573 $as_echo_n "(cached) " >&6
15574 fi
15575 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_ax25_h" >&5
15576 $as_echo "$ac_cv_header_linux_ax25_h" >&6; }
15577 else
15578 # Is the header compilable?
15579 { $as_echo "$as_me:$LINENO: checking linux/ax25.h usability" >&5
15580 $as_echo_n "checking linux/ax25.h usability... " >&6; }
15581 cat >conftest.$ac_ext <<_ACEOF
15582 /* confdefs.h. */
15583 _ACEOF
15584 cat confdefs.h >>conftest.$ac_ext
15585 cat >>conftest.$ac_ext <<_ACEOF
15586 /* end confdefs.h. */
15587 $ac_includes_default
15588 #include <linux/ax25.h>
15589 _ACEOF
15590 rm -f conftest.$ac_objext
15591 if { (ac_try="$ac_compile"
15592 case "(($ac_try" in
15593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15594 *) ac_try_echo=$ac_try;;
15595 esac
15596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15597 $as_echo "$ac_try_echo") >&5
15598 (eval "$ac_compile") 2>conftest.er1
15599 ac_status=$?
15600 grep -v '^ *+' conftest.er1 >conftest.err
15601 rm -f conftest.er1
15602 cat conftest.err >&5
15603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); } && {
15605 test -z "$ac_c_werror_flag" ||
15606 test ! -s conftest.err
15607 } && test -s conftest.$ac_objext; then
15608 ac_header_compiler=yes
15609 else
15610 $as_echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15612
15613 ac_header_compiler=no
15614 fi
15615
15616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15617 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15618 $as_echo "$ac_header_compiler" >&6; }
15619
15620 # Is the header present?
15621 { $as_echo "$as_me:$LINENO: checking linux/ax25.h presence" >&5
15622 $as_echo_n "checking linux/ax25.h presence... " >&6; }
15623 cat >conftest.$ac_ext <<_ACEOF
15624 /* confdefs.h. */
15625 _ACEOF
15626 cat confdefs.h >>conftest.$ac_ext
15627 cat >>conftest.$ac_ext <<_ACEOF
15628 /* end confdefs.h. */
15629 #include <linux/ax25.h>
15630 _ACEOF
15631 if { (ac_try="$ac_cpp conftest.$ac_ext"
15632 case "(($ac_try" in
15633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634 *) ac_try_echo=$ac_try;;
15635 esac
15636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15637 $as_echo "$ac_try_echo") >&5
15638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15639 ac_status=$?
15640 grep -v '^ *+' conftest.er1 >conftest.err
15641 rm -f conftest.er1
15642 cat conftest.err >&5
15643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); } >/dev/null && {
15645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15646 test ! -s conftest.err
15647 }; then
15648 ac_header_preproc=yes
15649 else
15650 $as_echo "$as_me: failed program was:" >&5
15651 sed 's/^/| /' conftest.$ac_ext >&5
15652
15653 ac_header_preproc=no
15654 fi
15655
15656 rm -f conftest.err conftest.$ac_ext
15657 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15658 $as_echo "$ac_header_preproc" >&6; }
15659
15660 # So? What about this header?
15661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15662 yes:no: )
15663 { $as_echo "$as_me:$LINENO: WARNING: linux/ax25.h: accepted by the compiler, rejected by the preprocessor!" >&5
15664 $as_echo "$as_me: WARNING: linux/ax25.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15665 { $as_echo "$as_me:$LINENO: WARNING: linux/ax25.h: proceeding with the compiler's result" >&5
15666 $as_echo "$as_me: WARNING: linux/ax25.h: proceeding with the compiler's result" >&2;}
15667 ac_header_preproc=yes
15668 ;;
15669 no:yes:* )
15670 { $as_echo "$as_me:$LINENO: WARNING: linux/ax25.h: present but cannot be compiled" >&5
15671 $as_echo "$as_me: WARNING: linux/ax25.h: present but cannot be compiled" >&2;}
15672 { $as_echo "$as_me:$LINENO: WARNING: linux/ax25.h: check for missing prerequisite headers?" >&5
15673 $as_echo "$as_me: WARNING: linux/ax25.h: check for missing prerequisite headers?" >&2;}
15674 { $as_echo "$as_me:$LINENO: WARNING: linux/ax25.h: see the Autoconf documentation" >&5
15675 $as_echo "$as_me: WARNING: linux/ax25.h: see the Autoconf documentation" >&2;}
15676 { $as_echo "$as_me:$LINENO: WARNING: linux/ax25.h: section \"Present But Cannot Be Compiled\"" >&5
15677 $as_echo "$as_me: WARNING: linux/ax25.h: section \"Present But Cannot Be Compiled\"" >&2;}
15678 { $as_echo "$as_me:$LINENO: WARNING: linux/ax25.h: proceeding with the preprocessor's result" >&5
15679 $as_echo "$as_me: WARNING: linux/ax25.h: proceeding with the preprocessor's result" >&2;}
15680 { $as_echo "$as_me:$LINENO: WARNING: linux/ax25.h: in the future, the compiler will take precedence" >&5
15681 $as_echo "$as_me: WARNING: linux/ax25.h: in the future, the compiler will take precedence" >&2;}
15682 ( cat <<\_ASBOX
15683 ## ---------------------------------- ##
15684 ## Report this to [email protected] ##
15685 ## ---------------------------------- ##
15686 _ASBOX
15687 ) | sed "s/^/$as_me: WARNING: /" >&2
15688 ;;
15689 esac
15690 { $as_echo "$as_me:$LINENO: checking for linux/ax25.h" >&5
15691 $as_echo_n "checking for linux/ax25.h... " >&6; }
15692 if test "${ac_cv_header_linux_ax25_h+set}" = set; then
15693 $as_echo_n "(cached) " >&6
15694 else
15695 ac_cv_header_linux_ax25_h=$ac_header_preproc
15696 fi
15697 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_ax25_h" >&5
15698 $as_echo "$ac_cv_header_linux_ax25_h" >&6; }
15699
15700 fi
15701 if test "x$ac_cv_header_linux_ax25_h" = x""yes; then
15702 :
15703 else
15704 { { $as_echo "$as_me:$LINENO: error: linux/ax25.h not found !" >&5
15705 $as_echo "$as_me: error: linux/ax25.h not found !" >&2;}
15706 { (exit 1); exit 1; }; }
15707 fi
15708
15709
15710
15711 # Checks for typedefs, structures, and compiler characteristics
15712 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
15713 $as_echo_n "checking for socklen_t... " >&6; }
15714 cat >conftest.$ac_ext <<_ACEOF
15715 /* confdefs.h. */
15716 _ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h. */
15720 #include <sys/types.h>
15721 #include <sys/socket.h>
15722 int
15723 main ()
15724 {
15725 socklen_t a;
15726 ;
15727 return 0;
15728 }
15729 _ACEOF
15730 rm -f conftest.$ac_objext
15731 if { (ac_try="$ac_compile"
15732 case "(($ac_try" in
15733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734 *) ac_try_echo=$ac_try;;
15735 esac
15736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15737 $as_echo "$ac_try_echo") >&5
15738 (eval "$ac_compile") 2>conftest.er1
15739 ac_status=$?
15740 grep -v '^ *+' conftest.er1 >conftest.err
15741 rm -f conftest.er1
15742 cat conftest.err >&5
15743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); } && {
15745 test -z "$ac_c_werror_flag" ||
15746 test ! -s conftest.err
15747 } && test -s conftest.$ac_objext; then
15748 \
15749 { $as_echo "$as_me:$LINENO: result: present" >&5
15750 $as_echo "present" >&6; }
15751 else
15752 $as_echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15754
15755 { $as_echo "$as_me:$LINENO: result: not present" >&5
15756 $as_echo "not present" >&6; }
15757 cat >>confdefs.h <<\_ACEOF
15758 #define NO_SOCKLEN_T 1
15759 _ACEOF
15760
15761 fi
15762
15763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15764 { $as_echo "$as_me:$LINENO: checking the AX.25 implementation" >&5
15765 $as_echo_n "checking the AX.25 implementation... " >&6; }
15766 cat >conftest.$ac_ext <<_ACEOF
15767 /* confdefs.h. */
15768 _ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h. */
15772 #include <sys/socket.h>
15773 #include <sys/types.h>
15774 #include <linux/ax25.h>
15775 int
15776 main ()
15777 {
15778 ax25_info_struct i; unsigned short a = i.vs;
15779 ;
15780 return 0;
15781 }
15782 _ACEOF
15783 rm -f conftest.$ac_objext
15784 if { (ac_try="$ac_compile"
15785 case "(($ac_try" in
15786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15787 *) ac_try_echo=$ac_try;;
15788 esac
15789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15790 $as_echo "$ac_try_echo") >&5
15791 (eval "$ac_compile") 2>conftest.er1
15792 ac_status=$?
15793 grep -v '^ *+' conftest.er1 >conftest.err
15794 rm -f conftest.er1
15795 cat conftest.err >&5
15796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); } && {
15798 test -z "$ac_c_werror_flag" ||
15799 test ! -s conftest.err
15800 } && test -s conftest.$ac_objext; then
15801 \
15802 { $as_echo "$as_me:$LINENO: result: new AX.25" >&5
15803 $as_echo "new AX.25" >&6; }
15804 cat >>confdefs.h <<\_ACEOF
15805 #define NEW_AX25 1
15806 _ACEOF
15807
15808 else
15809 $as_echo "$as_me: failed program was:" >&5
15810 sed 's/^/| /' conftest.$ac_ext >&5
15811
15812 { $as_echo "$as_me:$LINENO: result: old AX.25" >&5
15813 $as_echo "old AX.25" >&6; }
15814 fi
15815
15816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15817
15818 # Checks for library functions
15819
15820 { $as_echo "$as_me:$LINENO: checking for main in -lncurses" >&5
15821 $as_echo_n "checking for main in -lncurses... " >&6; }
15822 if test "${ac_cv_lib_ncurses_main+set}" = set; then
15823 $as_echo_n "(cached) " >&6
15824 else
15825 ac_check_lib_save_LIBS=$LIBS
15826 LIBS="-lncurses $LIBS"
15827 cat >conftest.$ac_ext <<_ACEOF
15828 /* confdefs.h. */
15829 _ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h. */
15833
15834
15835 int
15836 main ()
15837 {
15838 return main ();
15839 ;
15840 return 0;
15841 }
15842 _ACEOF
15843 rm -f conftest.$ac_objext conftest$ac_exeext
15844 if { (ac_try="$ac_link"
15845 case "(($ac_try" in
15846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15847 *) ac_try_echo=$ac_try;;
15848 esac
15849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15850 $as_echo "$ac_try_echo") >&5
15851 (eval "$ac_link") 2>conftest.er1
15852 ac_status=$?
15853 grep -v '^ *+' conftest.er1 >conftest.err
15854 rm -f conftest.er1
15855 cat conftest.err >&5
15856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); } && {
15858 test -z "$ac_c_werror_flag" ||
15859 test ! -s conftest.err
15860 } && test -s conftest$ac_exeext && {
15861 test "$cross_compiling" = yes ||
15862 $as_test_x conftest$ac_exeext
15863 }; then
15864 ac_cv_lib_ncurses_main=yes
15865 else
15866 $as_echo "$as_me: failed program was:" >&5
15867 sed 's/^/| /' conftest.$ac_ext >&5
15868
15869 ac_cv_lib_ncurses_main=no
15870 fi
15871
15872 rm -rf conftest.dSYM
15873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15874 conftest$ac_exeext conftest.$ac_ext
15875 LIBS=$ac_check_lib_save_LIBS
15876 fi
15877 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
15878 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
15879 if test "x$ac_cv_lib_ncurses_main" = x""yes; then
15880 cat >>confdefs.h <<_ACEOF
15881 #define HAVE_LIBNCURSES 1
15882 _ACEOF
15883
15884 LIBS="-lncurses $LIBS"
15885
15886 else
15887 { { $as_echo "$as_me:$LINENO: error: ncurses library not found !" >&5
15888 $as_echo "$as_me: error: ncurses library not found !" >&2;}
15889 { (exit 1); exit 1; }; }
15890 fi
15891
15892
15893 #Add specific tinfo checks for distros that are missing pkgconfig files for Ncurses - PClinux (mandriva)
15894 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
15895 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
15896 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
15897 $as_echo_n "(cached) " >&6
15898 else
15899 ac_check_lib_save_LIBS=$LIBS
15900 LIBS="-ltinfo $LIBS"
15901 cat >conftest.$ac_ext <<_ACEOF
15902 /* confdefs.h. */
15903 _ACEOF
15904 cat confdefs.h >>conftest.$ac_ext
15905 cat >>conftest.$ac_ext <<_ACEOF
15906 /* end confdefs.h. */
15907
15908 /* Override any GCC internal prototype to avoid an error.
15909 Use char because int might match the return type of a GCC
15910 builtin and then its argument prototype would still apply. */
15911 #ifdef __cplusplus
15912 extern "C"
15913 #endif
15914 char tgetent ();
15915 int
15916 main ()
15917 {
15918 return tgetent ();
15919 ;
15920 return 0;
15921 }
15922 _ACEOF
15923 rm -f conftest.$ac_objext conftest$ac_exeext
15924 if { (ac_try="$ac_link"
15925 case "(($ac_try" in
15926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15927 *) ac_try_echo=$ac_try;;
15928 esac
15929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15930 $as_echo "$ac_try_echo") >&5
15931 (eval "$ac_link") 2>conftest.er1
15932 ac_status=$?
15933 grep -v '^ *+' conftest.er1 >conftest.err
15934 rm -f conftest.er1
15935 cat conftest.err >&5
15936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } && {
15938 test -z "$ac_c_werror_flag" ||
15939 test ! -s conftest.err
15940 } && test -s conftest$ac_exeext && {
15941 test "$cross_compiling" = yes ||
15942 $as_test_x conftest$ac_exeext
15943 }; then
15944 ac_cv_lib_tinfo_tgetent=yes
15945 else
15946 $as_echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15948
15949 ac_cv_lib_tinfo_tgetent=no
15950 fi
15951
15952 rm -rf conftest.dSYM
15953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15954 conftest$ac_exeext conftest.$ac_ext
15955 LIBS=$ac_check_lib_save_LIBS
15956 fi
15957 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
15958 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
15959 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
15960 USE_TERMCAP_LIB=-ltinfo
15961 else
15962 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
15963 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
15964 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
15965 $as_echo_n "(cached) " >&6
15966 else
15967 ac_check_lib_save_LIBS=$LIBS
15968 LIBS="-ltermcap $LIBS"
15969 cat >conftest.$ac_ext <<_ACEOF
15970 /* confdefs.h. */
15971 _ACEOF
15972 cat confdefs.h >>conftest.$ac_ext
15973 cat >>conftest.$ac_ext <<_ACEOF
15974 /* end confdefs.h. */
15975
15976 /* Override any GCC internal prototype to avoid an error.
15977 Use char because int might match the return type of a GCC
15978 builtin and then its argument prototype would still apply. */
15979 #ifdef __cplusplus
15980 extern "C"
15981 #endif
15982 char tgetent ();
15983 int
15984 main ()
15985 {
15986 return tgetent ();
15987 ;
15988 return 0;
15989 }
15990 _ACEOF
15991 rm -f conftest.$ac_objext conftest$ac_exeext
15992 if { (ac_try="$ac_link"
15993 case "(($ac_try" in
15994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15995 *) ac_try_echo=$ac_try;;
15996 esac
15997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15998 $as_echo "$ac_try_echo") >&5
15999 (eval "$ac_link") 2>conftest.er1
16000 ac_status=$?
16001 grep -v '^ *+' conftest.er1 >conftest.err
16002 rm -f conftest.er1
16003 cat conftest.err >&5
16004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } && {
16006 test -z "$ac_c_werror_flag" ||
16007 test ! -s conftest.err
16008 } && test -s conftest$ac_exeext && {
16009 test "$cross_compiling" = yes ||
16010 $as_test_x conftest$ac_exeext
16011 }; then
16012 ac_cv_lib_termcap_tgetent=yes
16013 else
16014 $as_echo "$as_me: failed program was:" >&5
16015 sed 's/^/| /' conftest.$ac_ext >&5
16016
16017 ac_cv_lib_termcap_tgetent=no
16018 fi
16019
16020 rm -rf conftest.dSYM
16021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16022 conftest$ac_exeext conftest.$ac_ext
16023 LIBS=$ac_check_lib_save_LIBS
16024 fi
16025 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
16026 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
16027 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
16028 USE_TERMCAP_LIB=-ltermcap
16029 else
16030 { { $as_echo "$as_me:$LINENO: error: Linpac requires ncurses library." >&5
16031 $as_echo "$as_me: error: Linpac requires ncurses library." >&2;}
16032 { (exit 1); exit 1; }; }
16033 fi
16034
16035 fi
16036
16037
16038
16039
16040 # Definitions
16041
16042
16043
16044
16045
16046
16047
16048
16049 # TODO: move VERINFO to a more prominate location or eliminated it
16050 cat >>confdefs.h <<\_ACEOF
16051 #define VERINFO "Development snapshot 020121-develop"
16052 _ACEOF
16053
16054
16055 # Package Options
16056 # TODO: make sure this is the up-to-date method and that it works right
16057 # with modern libtools
16058 # 2014/03/06 jdunmire - build fails if --enable-LINKSTATIC used
16059 LINPACLINK=""
16060 # Check whether --enable-LINKSTATIC was given.
16061 if test "${enable_LINKSTATIC+set}" = set; then
16062 enableval=$enable_LINKSTATIC; LINPACLINK="-all-static"
16063 fi
16064
16065
16066
16067 # Output files
16068
16069
16070
16071
16072 ac_config_headers="$ac_config_headers config.h"
16073
16074 ac_config_files="$ac_config_files Makefile contrib/Makefile ctt/Makefile data/Makefile doc/Makefile doc/czech/Makefile doc/charsets/Makefile macro/Makefile macro/cz/Makefile macro/en/Makefile macro/pl/Makefile macro/fr/Makefile macro/sk/Makefile macro/de/Makefile mail/Makefile mail/delmsg.pl mail/pack.pl src/Makefile src/applications/liblinpac/Makefile src/applications/lpapi/Makefile src/applications/libaxmail/Makefile src/applications/mailer/Makefile src/applications/mailmsg/Makefile src/applications/telnet/Makefile src/applications/Makefile inst/Makefile plugins/Makefile"
16075
16076 cat >confcache <<\_ACEOF
16077 # This file is a shell script that caches the results of configure
16078 # tests run on this system so they can be shared between configure
16079 # scripts and configure runs, see configure's option --config-cache.
16080 # It is not useful on other systems. If it contains results you don't
16081 # want to keep, you may remove or edit it.
16082 #
16083 # config.status only pays attention to the cache file if you give it
16084 # the --recheck option to rerun configure.
16085 #
16086 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16087 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16088 # following values.
16089
16090 _ACEOF
16091
16092 # The following way of writing the cache mishandles newlines in values,
16093 # but we know of no workaround that is simple, portable, and efficient.
16094 # So, we kill variables containing newlines.
16095 # Ultrix sh set writes to stderr and can't be redirected directly,
16096 # and sets the high bit in the cache file unless we assign to the vars.
16097 (
16098 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16099 eval ac_val=\$$ac_var
16100 case $ac_val in #(
16101 *${as_nl}*)
16102 case $ac_var in #(
16103 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
16104 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16105 esac
16106 case $ac_var in #(
16107 _ | IFS | as_nl) ;; #(
16108 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16109 *) $as_unset $ac_var ;;
16110 esac ;;
16111 esac
16112 done
16113
16114 (set) 2>&1 |
16115 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16116 *${as_nl}ac_space=\ *)
16117 # `set' does not quote correctly, so add quotes (double-quote
16118 # substitution turns \\\\ into \\, and sed turns \\ into \).
16119 sed -n \
16120 "s/'/'\\\\''/g;
16121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16122 ;; #(
16123 *)
16124 # `set' quotes correctly as required by POSIX, so do not add quotes.
16125 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16126 ;;
16127 esac |
16128 sort
16129 ) |
16130 sed '
16131 /^ac_cv_env_/b end
16132 t clear
16133 :clear
16134 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16135 t end
16136 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16137 :end' >>confcache
16138 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16139 if test -w "$cache_file"; then
16140 test "x$cache_file" != "x/dev/null" &&
16141 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
16142 $as_echo "$as_me: updating cache $cache_file" >&6;}
16143 cat confcache >$cache_file
16144 else
16145 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16146 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16147 fi
16148 fi
16149 rm -f confcache
16150
16151 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16152 # Let make expand exec_prefix.
16153 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16154
16155 DEFS=-DHAVE_CONFIG_H
16156
16157 ac_libobjs=
16158 ac_ltlibobjs=
16159 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16160 # 1. Remove the extension, and $U if already installed.
16161 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16162 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16163 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16164 # will be set to the directory where LIBOBJS objects are built.
16165 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16166 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16167 done
16168 LIBOBJS=$ac_libobjs
16169
16170 LTLIBOBJS=$ac_ltlibobjs
16171
16172
16173 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16174 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16175 Usually this means the macro was only invoked conditionally." >&5
16176 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
16177 Usually this means the macro was only invoked conditionally." >&2;}
16178 { (exit 1); exit 1; }; }
16179 fi
16180 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16181 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16182 Usually this means the macro was only invoked conditionally." >&5
16183 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16184 Usually this means the macro was only invoked conditionally." >&2;}
16185 { (exit 1); exit 1; }; }
16186 fi
16187 if test -n "$EXEEXT"; then
16188 am__EXEEXT_TRUE=
16189 am__EXEEXT_FALSE='#'
16190 else
16191 am__EXEEXT_TRUE='#'
16192 am__EXEEXT_FALSE=
16193 fi
16194
16195 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16196 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16197 Usually this means the macro was only invoked conditionally." >&5
16198 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16199 Usually this means the macro was only invoked conditionally." >&2;}
16200 { (exit 1); exit 1; }; }
16201 fi
16202 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16203 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16204 Usually this means the macro was only invoked conditionally." >&5
16205 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16206 Usually this means the macro was only invoked conditionally." >&2;}
16207 { (exit 1); exit 1; }; }
16208 fi
16209
16210 : ${CONFIG_STATUS=./config.status}
16211 ac_write_fail=0
16212 ac_clean_files_save=$ac_clean_files
16213 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16214 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16215 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16216 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16217 #! $SHELL
16218 # Generated by $as_me.
16219 # Run this file to recreate the current configuration.
16220 # Compiler output produced by configure, useful for debugging
16221 # configure, is in config.log if it exists.
16222
16223 debug=false
16224 ac_cs_recheck=false
16225 ac_cs_silent=false
16226 SHELL=\${CONFIG_SHELL-$SHELL}
16227 _ACEOF
16228
16229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16230 ## --------------------- ##
16231 ## M4sh Initialization. ##
16232 ## --------------------- ##
16233
16234 # Be more Bourne compatible
16235 DUALCASE=1; export DUALCASE # for MKS sh
16236 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16237 emulate sh
16238 NULLCMD=:
16239 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16240 # is contrary to our usage. Disable this feature.
16241 alias -g '${1+"$@"}'='"$@"'
16242 setopt NO_GLOB_SUBST
16243 else
16244 case `(set -o) 2>/dev/null` in
16245 *posix*) set -o posix ;;
16246 esac
16247
16248 fi
16249
16250
16251
16252
16253 # PATH needs CR
16254 # Avoid depending upon Character Ranges.
16255 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16256 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16257 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16258 as_cr_digits='0123456789'
16259 as_cr_alnum=$as_cr_Letters$as_cr_digits
16260
16261 as_nl='
16262 '
16263 export as_nl
16264 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16265 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16266 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16267 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16268 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16269 as_echo='printf %s\n'
16270 as_echo_n='printf %s'
16271 else
16272 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16273 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16274 as_echo_n='/usr/ucb/echo -n'
16275 else
16276 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16277 as_echo_n_body='eval
16278 arg=$1;
16279 case $arg in
16280 *"$as_nl"*)
16281 expr "X$arg" : "X\\(.*\\)$as_nl";
16282 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16283 esac;
16284 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16285 '
16286 export as_echo_n_body
16287 as_echo_n='sh -c $as_echo_n_body as_echo'
16288 fi
16289 export as_echo_body
16290 as_echo='sh -c $as_echo_body as_echo'
16291 fi
16292
16293 # The user is always right.
16294 if test "${PATH_SEPARATOR+set}" != set; then
16295 PATH_SEPARATOR=:
16296 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16297 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16298 PATH_SEPARATOR=';'
16299 }
16300 fi
16301
16302 # Support unset when possible.
16303 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16304 as_unset=unset
16305 else
16306 as_unset=false
16307 fi
16308
16309
16310 # IFS
16311 # We need space, tab and new line, in precisely that order. Quoting is
16312 # there to prevent editors from complaining about space-tab.
16313 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16314 # splitting by setting IFS to empty value.)
16315 IFS=" "" $as_nl"
16316
16317 # Find who we are. Look in the path if we contain no directory separator.
16318 case $0 in
16319 *[\\/]* ) as_myself=$0 ;;
16320 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16321 for as_dir in $PATH
16322 do
16323 IFS=$as_save_IFS
16324 test -z "$as_dir" && as_dir=.
16325 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16326 done
16327 IFS=$as_save_IFS
16328
16329 ;;
16330 esac
16331 # We did not find ourselves, most probably we were run as `sh COMMAND'
16332 # in which case we are not to be found in the path.
16333 if test "x$as_myself" = x; then
16334 as_myself=$0
16335 fi
16336 if test ! -f "$as_myself"; then
16337 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16338 { (exit 1); exit 1; }
16339 fi
16340
16341 # Work around bugs in pre-3.0 UWIN ksh.
16342 for as_var in ENV MAIL MAILPATH
16343 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16344 done
16345 PS1='$ '
16346 PS2='> '
16347 PS4='+ '
16348
16349 # NLS nuisances.
16350 LC_ALL=C
16351 export LC_ALL
16352 LANGUAGE=C
16353 export LANGUAGE
16354
16355 # Required to use basename.
16356 if expr a : '\(a\)' >/dev/null 2>&1 &&
16357 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16358 as_expr=expr
16359 else
16360 as_expr=false
16361 fi
16362
16363 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16364 as_basename=basename
16365 else
16366 as_basename=false
16367 fi
16368
16369
16370 # Name of the executable.
16371 as_me=`$as_basename -- "$0" ||
16372 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16373 X"$0" : 'X\(//\)$' \| \
16374 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16375 $as_echo X/"$0" |
16376 sed '/^.*\/\([^/][^/]*\)\/*$/{
16377 s//\1/
16378 q
16379 }
16380 /^X\/\(\/\/\)$/{
16381 s//\1/
16382 q
16383 }
16384 /^X\/\(\/\).*/{
16385 s//\1/
16386 q
16387 }
16388 s/.*/./; q'`
16389
16390 # CDPATH.
16391 $as_unset CDPATH
16392
16393
16394
16395 as_lineno_1=$LINENO
16396 as_lineno_2=$LINENO
16397 test "x$as_lineno_1" != "x$as_lineno_2" &&
16398 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16399
16400 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16401 # uniformly replaced by the line number. The first 'sed' inserts a
16402 # line-number line after each line using $LINENO; the second 'sed'
16403 # does the real work. The second script uses 'N' to pair each
16404 # line-number line with the line containing $LINENO, and appends
16405 # trailing '-' during substitution so that $LINENO is not a special
16406 # case at line end.
16407 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16408 # scripts with optimization help from Paolo Bonzini. Blame Lee
16409 # E. McMahon (1931-1989) for sed's syntax. :-)
16410 sed -n '
16411 p
16412 /[$]LINENO/=
16413 ' <$as_myself |
16414 sed '
16415 s/[$]LINENO.*/&-/
16416 t lineno
16417 b
16418 :lineno
16419 N
16420 :loop
16421 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16422 t loop
16423 s/-\n.*//
16424 ' >$as_me.lineno &&
16425 chmod +x "$as_me.lineno" ||
16426 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16427 { (exit 1); exit 1; }; }
16428
16429 # Don't try to exec as it changes $[0], causing all sort of problems
16430 # (the dirname of $[0] is not the place where we might find the
16431 # original and so on. Autoconf is especially sensitive to this).
16432 . "./$as_me.lineno"
16433 # Exit status is that of the last command.
16434 exit
16435 }
16436
16437
16438 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16439 as_dirname=dirname
16440 else
16441 as_dirname=false
16442 fi
16443
16444 ECHO_C= ECHO_N= ECHO_T=
16445 case `echo -n x` in
16446 -n*)
16447 case `echo 'x\c'` in
16448 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16449 *) ECHO_C='\c';;
16450 esac;;
16451 *)
16452 ECHO_N='-n';;
16453 esac
16454 if expr a : '\(a\)' >/dev/null 2>&1 &&
16455 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16456 as_expr=expr
16457 else
16458 as_expr=false
16459 fi
16460
16461 rm -f conf$$ conf$$.exe conf$$.file
16462 if test -d conf$$.dir; then
16463 rm -f conf$$.dir/conf$$.file
16464 else
16465 rm -f conf$$.dir
16466 mkdir conf$$.dir 2>/dev/null
16467 fi
16468 if (echo >conf$$.file) 2>/dev/null; then
16469 if ln -s conf$$.file conf$$ 2>/dev/null; then
16470 as_ln_s='ln -s'
16471 # ... but there are two gotchas:
16472 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16473 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16474 # In both cases, we have to default to `cp -p'.
16475 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16476 as_ln_s='cp -p'
16477 elif ln conf$$.file conf$$ 2>/dev/null; then
16478 as_ln_s=ln
16479 else
16480 as_ln_s='cp -p'
16481 fi
16482 else
16483 as_ln_s='cp -p'
16484 fi
16485 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16486 rmdir conf$$.dir 2>/dev/null
16487
16488 if mkdir -p . 2>/dev/null; then
16489 as_mkdir_p=:
16490 else
16491 test -d ./-p && rmdir ./-p
16492 as_mkdir_p=false
16493 fi
16494
16495 if test -x / >/dev/null 2>&1; then
16496 as_test_x='test -x'
16497 else
16498 if ls -dL / >/dev/null 2>&1; then
16499 as_ls_L_option=L
16500 else
16501 as_ls_L_option=
16502 fi
16503 as_test_x='
16504 eval sh -c '\''
16505 if test -d "$1"; then
16506 test -d "$1/.";
16507 else
16508 case $1 in
16509 -*)set "./$1";;
16510 esac;
16511 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16512 ???[sx]*):;;*)false;;esac;fi
16513 '\'' sh
16514 '
16515 fi
16516 as_executable_p=$as_test_x
16517
16518 # Sed expression to map a string onto a valid CPP name.
16519 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16520
16521 # Sed expression to map a string onto a valid variable name.
16522 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16523
16524
16525 exec 6>&1
16526
16527 # Save the log message, to keep $[0] and so on meaningful, and to
16528 # report actual input values of CONFIG_FILES etc. instead of their
16529 # values after options handling.
16530 ac_log="
16531 This file was extended by LinPac $as_me 0.28, which was
16532 generated by GNU Autoconf 2.63. Invocation command line was
16533
16534 CONFIG_FILES = $CONFIG_FILES
16535 CONFIG_HEADERS = $CONFIG_HEADERS
16536 CONFIG_LINKS = $CONFIG_LINKS
16537 CONFIG_COMMANDS = $CONFIG_COMMANDS
16538 $ $0 $@
16539
16540 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16541 "
16542
16543 _ACEOF
16544
16545 case $ac_config_files in *"
16546 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16547 esac
16548
16549 case $ac_config_headers in *"
16550 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16551 esac
16552
16553
16554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16555 # Files that config.status was made for.
16556 config_files="$ac_config_files"
16557 config_headers="$ac_config_headers"
16558 config_commands="$ac_config_commands"
16559
16560 _ACEOF
16561
16562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16563 ac_cs_usage="\
16564 \`$as_me' instantiates files from templates according to the
16565 current configuration.
16566
16567 Usage: $0 [OPTION]... [FILE]...
16568
16569 -h, --help print this help, then exit
16570 -V, --version print version number and configuration settings, then exit
16571 -q, --quiet, --silent
16572 do not print progress messages
16573 -d, --debug don't remove temporary files
16574 --recheck update $as_me by reconfiguring in the same conditions
16575 --file=FILE[:TEMPLATE]
16576 instantiate the configuration file FILE
16577 --header=FILE[:TEMPLATE]
16578 instantiate the configuration header FILE
16579
16580 Configuration files:
16581 $config_files
16582
16583 Configuration headers:
16584 $config_headers
16585
16586 Configuration commands:
16587 $config_commands
16588
16589 Report bugs to <[email protected]>."
16590
16591 _ACEOF
16592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16593 ac_cs_version="\\
16594 LinPac config.status 0.28
16595 configured by $0, generated by GNU Autoconf 2.63,
16596 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16597
16598 Copyright (C) 2008 Free Software Foundation, Inc.
16599 This config.status script is free software; the Free Software Foundation
16600 gives unlimited permission to copy, distribute and modify it."
16601
16602 ac_pwd='$ac_pwd'
16603 srcdir='$srcdir'
16604 INSTALL='$INSTALL'
16605 MKDIR_P='$MKDIR_P'
16606 AWK='$AWK'
16607 test -n "\$AWK" || AWK=awk
16608 _ACEOF
16609
16610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16611 # The default lists apply if the user does not specify any file.
16612 ac_need_defaults=:
16613 while test $# != 0
16614 do
16615 case $1 in
16616 --*=*)
16617 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16618 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16619 ac_shift=:
16620 ;;
16621 *)
16622 ac_option=$1
16623 ac_optarg=$2
16624 ac_shift=shift
16625 ;;
16626 esac
16627
16628 case $ac_option in
16629 # Handling of the options.
16630 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16631 ac_cs_recheck=: ;;
16632 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16633 $as_echo "$ac_cs_version"; exit ;;
16634 --debug | --debu | --deb | --de | --d | -d )
16635 debug=: ;;
16636 --file | --fil | --fi | --f )
16637 $ac_shift
16638 case $ac_optarg in
16639 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16640 esac
16641 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
16642 ac_need_defaults=false;;
16643 --header | --heade | --head | --hea )
16644 $ac_shift
16645 case $ac_optarg in
16646 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16647 esac
16648 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
16649 ac_need_defaults=false;;
16650 --he | --h)
16651 # Conflict between --help and --header
16652 { $as_echo "$as_me: error: ambiguous option: $1
16653 Try \`$0 --help' for more information." >&2
16654 { (exit 1); exit 1; }; };;
16655 --help | --hel | -h )
16656 $as_echo "$ac_cs_usage"; exit ;;
16657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16658 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16659 ac_cs_silent=: ;;
16660
16661 # This is an error.
16662 -*) { $as_echo "$as_me: error: unrecognized option: $1
16663 Try \`$0 --help' for more information." >&2
16664 { (exit 1); exit 1; }; } ;;
16665
16666 *) ac_config_targets="$ac_config_targets $1"
16667 ac_need_defaults=false ;;
16668
16669 esac
16670 shift
16671 done
16672
16673 ac_configure_extra_args=
16674
16675 if $ac_cs_silent; then
16676 exec 6>/dev/null
16677 ac_configure_extra_args="$ac_configure_extra_args --silent"
16678 fi
16679
16680 _ACEOF
16681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16682 if \$ac_cs_recheck; then
16683 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16684 shift
16685 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16686 CONFIG_SHELL='$SHELL'
16687 export CONFIG_SHELL
16688 exec "\$@"
16689 fi
16690
16691 _ACEOF
16692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16693 exec 5>>config.log
16694 {
16695 echo
16696 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16697 ## Running $as_me. ##
16698 _ASBOX
16699 $as_echo "$ac_log"
16700 } >&5
16701
16702 _ACEOF
16703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16704 #
16705 # INIT-COMMANDS
16706 #
16707
16708
16709 # The HP-UX ksh and POSIX shell print the target directory to stdout
16710 # if CDPATH is set.
16711 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16712
16713 sed_quote_subst='$sed_quote_subst'
16714 double_quote_subst='$double_quote_subst'
16715 delay_variable_subst='$delay_variable_subst'
16716 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16717 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16718 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16719 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16720 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16721 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16722 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16723 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16724 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16725 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16726 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16727 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16728 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16729 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16730 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16731 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16732 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16733 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16734 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16735 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16736 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16737 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16738 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16739 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16740 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16741 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16742 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16743 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16744 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16745 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16746 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16747 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16748 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16749 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16750 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16751 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16752 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16753 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16754 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16755 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16756 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16757 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16758 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16759 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16760 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16761 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16762 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16763 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16764 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16765 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16766 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16767 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16768 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16769 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16770 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16771 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16772 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16773 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16774 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16775 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16776 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16777 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16778 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16779 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16780 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16781 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16782 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16783 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16784 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16785 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16786 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16787 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16788 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16789 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16790 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16791 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16792 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16793 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16794 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16795 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16796 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16797 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16798 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16799 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16800 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16801 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16802 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16803 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16804 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16805 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16806 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16807 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16808 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16809 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16810 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16811 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16812 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16813 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16814 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16815 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16816 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16817 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16818 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16819 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16820 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16821 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16822 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16823 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16824 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16825 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16826 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16827 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16828 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16829 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16830 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16831 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16832 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16833 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16834 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16835 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16836 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16837 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16838 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16839 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16840 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16841 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16842 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16843 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16844 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16845 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16846 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16847 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16848 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16849 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16850 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16851 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16852 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16853 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16854 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16855 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16856 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16857 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16858 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16859 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16860 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16861 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16862 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16863 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16864 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16865 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16866 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16867 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16868 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16869 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16870 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16871 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16872 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16873 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16874 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16875 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16876 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16877 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16878 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16879 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16880 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16881 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16882 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16883 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16884 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16885 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16886 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16887
16888 LTCC='$LTCC'
16889 LTCFLAGS='$LTCFLAGS'
16890 compiler='$compiler_DEFAULT'
16891
16892 # Quote evaled strings.
16893 for var in SED \
16894 GREP \
16895 EGREP \
16896 FGREP \
16897 LD \
16898 NM \
16899 LN_S \
16900 lt_SP2NL \
16901 lt_NL2SP \
16902 reload_flag \
16903 OBJDUMP \
16904 deplibs_check_method \
16905 file_magic_cmd \
16906 AR \
16907 AR_FLAGS \
16908 STRIP \
16909 RANLIB \
16910 CC \
16911 CFLAGS \
16912 compiler \
16913 lt_cv_sys_global_symbol_pipe \
16914 lt_cv_sys_global_symbol_to_cdecl \
16915 lt_cv_sys_global_symbol_to_c_name_address \
16916 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16917 SHELL \
16918 ECHO \
16919 lt_prog_compiler_no_builtin_flag \
16920 lt_prog_compiler_wl \
16921 lt_prog_compiler_pic \
16922 lt_prog_compiler_static \
16923 lt_cv_prog_compiler_c_o \
16924 need_locks \
16925 DSYMUTIL \
16926 NMEDIT \
16927 LIPO \
16928 OTOOL \
16929 OTOOL64 \
16930 shrext_cmds \
16931 export_dynamic_flag_spec \
16932 whole_archive_flag_spec \
16933 compiler_needs_object \
16934 with_gnu_ld \
16935 allow_undefined_flag \
16936 no_undefined_flag \
16937 hardcode_libdir_flag_spec \
16938 hardcode_libdir_flag_spec_ld \
16939 hardcode_libdir_separator \
16940 fix_srcfile_path \
16941 exclude_expsyms \
16942 include_expsyms \
16943 file_list_spec \
16944 variables_saved_for_relink \
16945 libname_spec \
16946 library_names_spec \
16947 soname_spec \
16948 finish_eval \
16949 old_striplib \
16950 striplib \
16951 compiler_lib_search_dirs \
16952 predep_objects \
16953 postdep_objects \
16954 predeps \
16955 postdeps \
16956 compiler_lib_search_path \
16957 LD_CXX \
16958 compiler_CXX \
16959 lt_prog_compiler_no_builtin_flag_CXX \
16960 lt_prog_compiler_wl_CXX \
16961 lt_prog_compiler_pic_CXX \
16962 lt_prog_compiler_static_CXX \
16963 lt_cv_prog_compiler_c_o_CXX \
16964 export_dynamic_flag_spec_CXX \
16965 whole_archive_flag_spec_CXX \
16966 compiler_needs_object_CXX \
16967 with_gnu_ld_CXX \
16968 allow_undefined_flag_CXX \
16969 no_undefined_flag_CXX \
16970 hardcode_libdir_flag_spec_CXX \
16971 hardcode_libdir_flag_spec_ld_CXX \
16972 hardcode_libdir_separator_CXX \
16973 fix_srcfile_path_CXX \
16974 exclude_expsyms_CXX \
16975 include_expsyms_CXX \
16976 file_list_spec_CXX \
16977 compiler_lib_search_dirs_CXX \
16978 predep_objects_CXX \
16979 postdep_objects_CXX \
16980 predeps_CXX \
16981 postdeps_CXX \
16982 compiler_lib_search_path_CXX; do
16983 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16984 *[\\\\\\\`\\"\\\$]*)
16985 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16986 ;;
16987 *)
16988 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16989 ;;
16990 esac
16991 done
16992
16993 # Double-quote double-evaled strings.
16994 for var in reload_cmds \
16995 old_postinstall_cmds \
16996 old_postuninstall_cmds \
16997 old_archive_cmds \
16998 extract_expsyms_cmds \
16999 old_archive_from_new_cmds \
17000 old_archive_from_expsyms_cmds \
17001 archive_cmds \
17002 archive_expsym_cmds \
17003 module_cmds \
17004 module_expsym_cmds \
17005 export_symbols_cmds \
17006 prelink_cmds \
17007 postinstall_cmds \
17008 postuninstall_cmds \
17009 finish_cmds \
17010 sys_lib_search_path_spec \
17011 sys_lib_dlsearch_path_spec \
17012 old_archive_cmds_CXX \
17013 old_archive_from_new_cmds_CXX \
17014 old_archive_from_expsyms_cmds_CXX \
17015 archive_cmds_CXX \
17016 archive_expsym_cmds_CXX \
17017 module_cmds_CXX \
17018 module_expsym_cmds_CXX \
17019 export_symbols_cmds_CXX \
17020 prelink_cmds_CXX; do
17021 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17022 *[\\\\\\\`\\"\\\$]*)
17023 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17024 ;;
17025 *)
17026 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17027 ;;
17028 esac
17029 done
17030
17031 # Fix-up fallback echo if it was mangled by the above quoting rules.
17032 case \$lt_ECHO in
17033 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17034 ;;
17035 esac
17036
17037 ac_aux_dir='$ac_aux_dir'
17038 xsi_shell='$xsi_shell'
17039 lt_shell_append='$lt_shell_append'
17040
17041 # See if we are running on zsh, and set the options which allow our
17042 # commands through without removal of \ escapes INIT.
17043 if test -n "\${ZSH_VERSION+set}" ; then
17044 setopt NO_GLOB_SUBST
17045 fi
17046
17047
17048 PACKAGE='$PACKAGE'
17049 VERSION='$VERSION'
17050 TIMESTAMP='$TIMESTAMP'
17051 RM='$RM'
17052 ofile='$ofile'
17053
17054
17055
17056
17057
17058 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17059
17060 _ACEOF
17061
17062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17063
17064 # Handling of arguments.
17065 for ac_config_target in $ac_config_targets
17066 do
17067 case $ac_config_target in
17068 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17069 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17070 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17071 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17072 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
17073 "ctt/Makefile") CONFIG_FILES="$CONFIG_FILES ctt/Makefile" ;;
17074 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
17075 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17076 "doc/czech/Makefile") CONFIG_FILES="$CONFIG_FILES doc/czech/Makefile" ;;
17077 "doc/charsets/Makefile") CONFIG_FILES="$CONFIG_FILES doc/charsets/Makefile" ;;
17078 "macro/Makefile") CONFIG_FILES="$CONFIG_FILES macro/Makefile" ;;
17079 "macro/cz/Makefile") CONFIG_FILES="$CONFIG_FILES macro/cz/Makefile" ;;
17080 "macro/en/Makefile") CONFIG_FILES="$CONFIG_FILES macro/en/Makefile" ;;
17081 "macro/pl/Makefile") CONFIG_FILES="$CONFIG_FILES macro/pl/Makefile" ;;
17082 "macro/fr/Makefile") CONFIG_FILES="$CONFIG_FILES macro/fr/Makefile" ;;
17083 "macro/sk/Makefile") CONFIG_FILES="$CONFIG_FILES macro/sk/Makefile" ;;
17084 "macro/de/Makefile") CONFIG_FILES="$CONFIG_FILES macro/de/Makefile" ;;
17085 "mail/Makefile") CONFIG_FILES="$CONFIG_FILES mail/Makefile" ;;
17086 "mail/delmsg.pl") CONFIG_FILES="$CONFIG_FILES mail/delmsg.pl" ;;
17087 "mail/pack.pl") CONFIG_FILES="$CONFIG_FILES mail/pack.pl" ;;
17088 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17089 "src/applications/liblinpac/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/liblinpac/Makefile" ;;
17090 "src/applications/lpapi/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/lpapi/Makefile" ;;
17091 "src/applications/libaxmail/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/libaxmail/Makefile" ;;
17092 "src/applications/mailer/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/mailer/Makefile" ;;
17093 "src/applications/mailmsg/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/mailmsg/Makefile" ;;
17094 "src/applications/telnet/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/telnet/Makefile" ;;
17095 "src/applications/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/Makefile" ;;
17096 "inst/Makefile") CONFIG_FILES="$CONFIG_FILES inst/Makefile" ;;
17097 "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
17098
17099 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17100 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17101 { (exit 1); exit 1; }; };;
17102 esac
17103 done
17104
17105
17106 # If the user did not use the arguments to specify the items to instantiate,
17107 # then the envvar interface is used. Set only those that are not.
17108 # We use the long form for the default assignment because of an extremely
17109 # bizarre bug on SunOS 4.1.3.
17110 if $ac_need_defaults; then
17111 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17112 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17113 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17114 fi
17115
17116 # Have a temporary directory for convenience. Make it in the build tree
17117 # simply because there is no reason against having it here, and in addition,
17118 # creating and moving files from /tmp can sometimes cause problems.
17119 # Hook for its removal unless debugging.
17120 # Note that there is a small window in which the directory will not be cleaned:
17121 # after its creation but before its name has been assigned to `$tmp'.
17122 $debug ||
17123 {
17124 tmp=
17125 trap 'exit_status=$?
17126 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17127 ' 0
17128 trap '{ (exit 1); exit 1; }' 1 2 13 15
17129 }
17130 # Create a (secure) tmp directory for tmp files.
17131
17132 {
17133 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17134 test -n "$tmp" && test -d "$tmp"
17135 } ||
17136 {
17137 tmp=./conf$$-$RANDOM
17138 (umask 077 && mkdir "$tmp")
17139 } ||
17140 {
17141 $as_echo "$as_me: cannot create a temporary directory in ." >&2
17142 { (exit 1); exit 1; }
17143 }
17144
17145 # Set up the scripts for CONFIG_FILES section.
17146 # No need to generate them if there are no CONFIG_FILES.
17147 # This happens for instance with `./config.status config.h'.
17148 if test -n "$CONFIG_FILES"; then
17149
17150
17151 ac_cr=' '
17152 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17153 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17154 ac_cs_awk_cr='\\r'
17155 else
17156 ac_cs_awk_cr=$ac_cr
17157 fi
17158
17159 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17160 _ACEOF
17161
17162
17163 {
17164 echo "cat >conf$$subs.awk <<_ACEOF" &&
17165 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17166 echo "_ACEOF"
17167 } >conf$$subs.sh ||
17168 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17169 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17170 { (exit 1); exit 1; }; }
17171 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17172 ac_delim='%!_!# '
17173 for ac_last_try in false false false false false :; do
17174 . ./conf$$subs.sh ||
17175 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17176 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17177 { (exit 1); exit 1; }; }
17178
17179 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17180 if test $ac_delim_n = $ac_delim_num; then
17181 break
17182 elif $ac_last_try; then
17183 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17184 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17185 { (exit 1); exit 1; }; }
17186 else
17187 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17188 fi
17189 done
17190 rm -f conf$$subs.sh
17191
17192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17193 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17194 _ACEOF
17195 sed -n '
17196 h
17197 s/^/S["/; s/!.*/"]=/
17198 p
17199 g
17200 s/^[^!]*!//
17201 :repl
17202 t repl
17203 s/'"$ac_delim"'$//
17204 t delim
17205 :nl
17206 h
17207 s/\(.\{148\}\).*/\1/
17208 t more1
17209 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17210 p
17211 n
17212 b repl
17213 :more1
17214 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17215 p
17216 g
17217 s/.\{148\}//
17218 t nl
17219 :delim
17220 h
17221 s/\(.\{148\}\).*/\1/
17222 t more2
17223 s/["\\]/\\&/g; s/^/"/; s/$/"/
17224 p
17225 b
17226 :more2
17227 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17228 p
17229 g
17230 s/.\{148\}//
17231 t delim
17232 ' <conf$$subs.awk | sed '
17233 /^[^""]/{
17234 N
17235 s/\n//
17236 }
17237 ' >>$CONFIG_STATUS || ac_write_fail=1
17238 rm -f conf$$subs.awk
17239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17240 _ACAWK
17241 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17242 for (key in S) S_is_set[key] = 1
17243 FS = ""
17244
17245 }
17246 {
17247 line = $ 0
17248 nfields = split(line, field, "@")
17249 substed = 0
17250 len = length(field[1])
17251 for (i = 2; i < nfields; i++) {
17252 key = field[i]
17253 keylen = length(key)
17254 if (S_is_set[key]) {
17255 value = S[key]
17256 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17257 len += length(value) + length(field[++i])
17258 substed = 1
17259 } else
17260 len += 1 + keylen
17261 }
17262
17263 print line
17264 }
17265
17266 _ACAWK
17267 _ACEOF
17268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17269 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17270 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17271 else
17272 cat
17273 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17274 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17275 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
17276 { (exit 1); exit 1; }; }
17277 _ACEOF
17278
17279 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17280 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17281 # trailing colons and then remove the whole line if VPATH becomes empty
17282 # (actually we leave an empty line to preserve line numbers).
17283 if test "x$srcdir" = x.; then
17284 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17285 s/:*\$(srcdir):*/:/
17286 s/:*\${srcdir}:*/:/
17287 s/:*@srcdir@:*/:/
17288 s/^\([^=]*=[ ]*\):*/\1/
17289 s/:*$//
17290 s/^[^=]*=[ ]*$//
17291 }'
17292 fi
17293
17294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17295 fi # test -n "$CONFIG_FILES"
17296
17297 # Set up the scripts for CONFIG_HEADERS section.
17298 # No need to generate them if there are no CONFIG_HEADERS.
17299 # This happens for instance with `./config.status Makefile'.
17300 if test -n "$CONFIG_HEADERS"; then
17301 cat >"$tmp/defines.awk" <<\_ACAWK ||
17302 BEGIN {
17303 _ACEOF
17304
17305 # Transform confdefs.h into an awk script `defines.awk', embedded as
17306 # here-document in config.status, that substitutes the proper values into
17307 # config.h.in to produce config.h.
17308
17309 # Create a delimiter string that does not exist in confdefs.h, to ease
17310 # handling of long lines.
17311 ac_delim='%!_!# '
17312 for ac_last_try in false false :; do
17313 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17314 if test -z "$ac_t"; then
17315 break
17316 elif $ac_last_try; then
17317 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
17318 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
17319 { (exit 1); exit 1; }; }
17320 else
17321 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17322 fi
17323 done
17324
17325 # For the awk script, D is an array of macro values keyed by name,
17326 # likewise P contains macro parameters if any. Preserve backslash
17327 # newline sequences.
17328
17329 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17330 sed -n '
17331 s/.\{148\}/&'"$ac_delim"'/g
17332 t rset
17333 :rset
17334 s/^[ ]*#[ ]*define[ ][ ]*/ /
17335 t def
17336 d
17337 :def
17338 s/\\$//
17339 t bsnl
17340 s/["\\]/\\&/g
17341 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17342 D["\1"]=" \3"/p
17343 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17344 d
17345 :bsnl
17346 s/["\\]/\\&/g
17347 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17348 D["\1"]=" \3\\\\\\n"\\/p
17349 t cont
17350 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17351 t cont
17352 d
17353 :cont
17354 n
17355 s/.\{148\}/&'"$ac_delim"'/g
17356 t clear
17357 :clear
17358 s/\\$//
17359 t bsnlc
17360 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17361 d
17362 :bsnlc
17363 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17364 b cont
17365 ' <confdefs.h | sed '
17366 s/'"$ac_delim"'/"\\\
17367 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17368
17369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17370 for (key in D) D_is_set[key] = 1
17371 FS = ""
17372 }
17373 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17374 line = \$ 0
17375 split(line, arg, " ")
17376 if (arg[1] == "#") {
17377 defundef = arg[2]
17378 mac1 = arg[3]
17379 } else {
17380 defundef = substr(arg[1], 2)
17381 mac1 = arg[2]
17382 }
17383 split(mac1, mac2, "(") #)
17384 macro = mac2[1]
17385 prefix = substr(line, 1, index(line, defundef) - 1)
17386 if (D_is_set[macro]) {
17387 # Preserve the white space surrounding the "#".
17388 print prefix "define", macro P[macro] D[macro]
17389 next
17390 } else {
17391 # Replace #undef with comments. This is necessary, for example,
17392 # in the case of _POSIX_SOURCE, which is predefined and required
17393 # on some systems where configure will not decide to define it.
17394 if (defundef == "undef") {
17395 print "/*", prefix defundef, macro, "*/"
17396 next
17397 }
17398 }
17399 }
17400 { print }
17401 _ACAWK
17402 _ACEOF
17403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17404 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
17405 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
17406 { (exit 1); exit 1; }; }
17407 fi # test -n "$CONFIG_HEADERS"
17408
17409
17410 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17411 shift
17412 for ac_tag
17413 do
17414 case $ac_tag in
17415 :[FHLC]) ac_mode=$ac_tag; continue;;
17416 esac
17417 case $ac_mode$ac_tag in
17418 :[FHL]*:*);;
17419 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
17420 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
17421 { (exit 1); exit 1; }; };;
17422 :[FH]-) ac_tag=-:-;;
17423 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17424 esac
17425 ac_save_IFS=$IFS
17426 IFS=:
17427 set x $ac_tag
17428 IFS=$ac_save_IFS
17429 shift
17430 ac_file=$1
17431 shift
17432
17433 case $ac_mode in
17434 :L) ac_source=$1;;
17435 :[FH])
17436 ac_file_inputs=
17437 for ac_f
17438 do
17439 case $ac_f in
17440 -) ac_f="$tmp/stdin";;
17441 *) # Look for the file first in the build tree, then in the source tree
17442 # (if the path is not absolute). The absolute path cannot be DOS-style,
17443 # because $ac_f cannot contain `:'.
17444 test -f "$ac_f" ||
17445 case $ac_f in
17446 [\\/$]*) false;;
17447 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17448 esac ||
17449 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17450 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17451 { (exit 1); exit 1; }; };;
17452 esac
17453 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17454 ac_file_inputs="$ac_file_inputs '$ac_f'"
17455 done
17456
17457 # Let's still pretend it is `configure' which instantiates (i.e., don't
17458 # use $as_me), people would be surprised to read:
17459 # /* config.h. Generated by config.status. */
17460 configure_input='Generated from '`
17461 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17462 `' by configure.'
17463 if test x"$ac_file" != x-; then
17464 configure_input="$ac_file. $configure_input"
17465 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
17466 $as_echo "$as_me: creating $ac_file" >&6;}
17467 fi
17468 # Neutralize special characters interpreted by sed in replacement strings.
17469 case $configure_input in #(
17470 *\&* | *\|* | *\\* )
17471 ac_sed_conf_input=`$as_echo "$configure_input" |
17472 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17473 *) ac_sed_conf_input=$configure_input;;
17474 esac
17475
17476 case $ac_tag in
17477 *:-:* | *:-) cat >"$tmp/stdin" \
17478 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17479 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17480 { (exit 1); exit 1; }; } ;;
17481 esac
17482 ;;
17483 esac
17484
17485 ac_dir=`$as_dirname -- "$ac_file" ||
17486 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17487 X"$ac_file" : 'X\(//\)[^/]' \| \
17488 X"$ac_file" : 'X\(//\)$' \| \
17489 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17490 $as_echo X"$ac_file" |
17491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17492 s//\1/
17493 q
17494 }
17495 /^X\(\/\/\)[^/].*/{
17496 s//\1/
17497 q
17498 }
17499 /^X\(\/\/\)$/{
17500 s//\1/
17501 q
17502 }
17503 /^X\(\/\).*/{
17504 s//\1/
17505 q
17506 }
17507 s/.*/./; q'`
17508 { as_dir="$ac_dir"
17509 case $as_dir in #(
17510 -*) as_dir=./$as_dir;;
17511 esac
17512 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17513 as_dirs=
17514 while :; do
17515 case $as_dir in #(
17516 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17517 *) as_qdir=$as_dir;;
17518 esac
17519 as_dirs="'$as_qdir' $as_dirs"
17520 as_dir=`$as_dirname -- "$as_dir" ||
17521 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17522 X"$as_dir" : 'X\(//\)[^/]' \| \
17523 X"$as_dir" : 'X\(//\)$' \| \
17524 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17525 $as_echo X"$as_dir" |
17526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17527 s//\1/
17528 q
17529 }
17530 /^X\(\/\/\)[^/].*/{
17531 s//\1/
17532 q
17533 }
17534 /^X\(\/\/\)$/{
17535 s//\1/
17536 q
17537 }
17538 /^X\(\/\).*/{
17539 s//\1/
17540 q
17541 }
17542 s/.*/./; q'`
17543 test -d "$as_dir" && break
17544 done
17545 test -z "$as_dirs" || eval "mkdir $as_dirs"
17546 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17547 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17548 { (exit 1); exit 1; }; }; }
17549 ac_builddir=.
17550
17551 case "$ac_dir" in
17552 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17553 *)
17554 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17555 # A ".." for each directory in $ac_dir_suffix.
17556 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17557 case $ac_top_builddir_sub in
17558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17560 esac ;;
17561 esac
17562 ac_abs_top_builddir=$ac_pwd
17563 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17564 # for backward compatibility:
17565 ac_top_builddir=$ac_top_build_prefix
17566
17567 case $srcdir in
17568 .) # We are building in place.
17569 ac_srcdir=.
17570 ac_top_srcdir=$ac_top_builddir_sub
17571 ac_abs_top_srcdir=$ac_pwd ;;
17572 [\\/]* | ?:[\\/]* ) # Absolute name.
17573 ac_srcdir=$srcdir$ac_dir_suffix;
17574 ac_top_srcdir=$srcdir
17575 ac_abs_top_srcdir=$srcdir ;;
17576 *) # Relative name.
17577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17578 ac_top_srcdir=$ac_top_build_prefix$srcdir
17579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17580 esac
17581 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17582
17583
17584 case $ac_mode in
17585 :F)
17586 #
17587 # CONFIG_FILE
17588 #
17589
17590 case $INSTALL in
17591 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17592 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17593 esac
17594 ac_MKDIR_P=$MKDIR_P
17595 case $MKDIR_P in
17596 [\\/$]* | ?:[\\/]* ) ;;
17597 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17598 esac
17599 _ACEOF
17600
17601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17602 # If the template does not know about datarootdir, expand it.
17603 # FIXME: This hack should be removed a few years after 2.60.
17604 ac_datarootdir_hack=; ac_datarootdir_seen=
17605
17606 ac_sed_dataroot='
17607 /datarootdir/ {
17608 p
17609 q
17610 }
17611 /@datadir@/p
17612 /@docdir@/p
17613 /@infodir@/p
17614 /@localedir@/p
17615 /@mandir@/p
17616 '
17617 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17618 *datarootdir*) ac_datarootdir_seen=yes;;
17619 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17620 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17621 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17622 _ACEOF
17623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17624 ac_datarootdir_hack='
17625 s&@datadir@&$datadir&g
17626 s&@docdir@&$docdir&g
17627 s&@infodir@&$infodir&g
17628 s&@localedir@&$localedir&g
17629 s&@mandir@&$mandir&g
17630 s&\\\${datarootdir}&$datarootdir&g' ;;
17631 esac
17632 _ACEOF
17633
17634 # Neutralize VPATH when `$srcdir' = `.'.
17635 # Shell code in configure.ac might set extrasub.
17636 # FIXME: do we really want to maintain this feature?
17637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17638 ac_sed_extra="$ac_vpsub
17639 $extrasub
17640 _ACEOF
17641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17642 :t
17643 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17644 s|@configure_input@|$ac_sed_conf_input|;t t
17645 s&@top_builddir@&$ac_top_builddir_sub&;t t
17646 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17647 s&@srcdir@&$ac_srcdir&;t t
17648 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17649 s&@top_srcdir@&$ac_top_srcdir&;t t
17650 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17651 s&@builddir@&$ac_builddir&;t t
17652 s&@abs_builddir@&$ac_abs_builddir&;t t
17653 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17654 s&@INSTALL@&$ac_INSTALL&;t t
17655 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17656 $ac_datarootdir_hack
17657 "
17658 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17659 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17660 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17661 { (exit 1); exit 1; }; }
17662
17663 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17664 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17665 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17666 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17667 which seems to be undefined. Please make sure it is defined." >&5
17668 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17669 which seems to be undefined. Please make sure it is defined." >&2;}
17670
17671 rm -f "$tmp/stdin"
17672 case $ac_file in
17673 -) cat "$tmp/out" && rm -f "$tmp/out";;
17674 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17675 esac \
17676 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17677 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17678 { (exit 1); exit 1; }; }
17679 ;;
17680 :H)
17681 #
17682 # CONFIG_HEADER
17683 #
17684 if test x"$ac_file" != x-; then
17685 {
17686 $as_echo "/* $configure_input */" \
17687 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17688 } >"$tmp/config.h" \
17689 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17690 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17691 { (exit 1); exit 1; }; }
17692 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17693 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17694 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17695 else
17696 rm -f "$ac_file"
17697 mv "$tmp/config.h" "$ac_file" \
17698 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17699 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17700 { (exit 1); exit 1; }; }
17701 fi
17702 else
17703 $as_echo "/* $configure_input */" \
17704 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17705 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
17706 $as_echo "$as_me: error: could not create -" >&2;}
17707 { (exit 1); exit 1; }; }
17708 fi
17709 # Compute "$ac_file"'s index in $config_headers.
17710 _am_arg="$ac_file"
17711 _am_stamp_count=1
17712 for _am_header in $config_headers :; do
17713 case $_am_header in
17714 $_am_arg | $_am_arg:* )
17715 break ;;
17716 * )
17717 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17718 esac
17719 done
17720 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17721 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17722 X"$_am_arg" : 'X\(//\)[^/]' \| \
17723 X"$_am_arg" : 'X\(//\)$' \| \
17724 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17725 $as_echo X"$_am_arg" |
17726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17727 s//\1/
17728 q
17729 }
17730 /^X\(\/\/\)[^/].*/{
17731 s//\1/
17732 q
17733 }
17734 /^X\(\/\/\)$/{
17735 s//\1/
17736 q
17737 }
17738 /^X\(\/\).*/{
17739 s//\1/
17740 q
17741 }
17742 s/.*/./; q'`/stamp-h$_am_stamp_count
17743 ;;
17744
17745 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
17746 $as_echo "$as_me: executing $ac_file commands" >&6;}
17747 ;;
17748 esac
17749
17750
17751 case $ac_file$ac_mode in
17752 "libtool":C)
17753
17754 # See if we are running on zsh, and set the options which allow our
17755 # commands through without removal of \ escapes.
17756 if test -n "${ZSH_VERSION+set}" ; then
17757 setopt NO_GLOB_SUBST
17758 fi
17759
17760 cfgfile="${ofile}T"
17761 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17762 $RM "$cfgfile"
17763
17764 cat <<_LT_EOF >> "$cfgfile"
17765 #! $SHELL
17766
17767 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17768 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17769 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17770 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17771 #
17772 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17773 # 2006, 2007, 2008 Free Software Foundation, Inc.
17774 # Written by Gordon Matzigkeit, 1996
17775 #
17776 # This file is part of GNU Libtool.
17777 #
17778 # GNU Libtool is free software; you can redistribute it and/or
17779 # modify it under the terms of the GNU General Public License as
17780 # published by the Free Software Foundation; either version 2 of
17781 # the License, or (at your option) any later version.
17782 #
17783 # As a special exception to the GNU General Public License,
17784 # if you distribute this file as part of a program or library that
17785 # is built using GNU Libtool, you may include this file under the
17786 # same distribution terms that you use for the rest of that program.
17787 #
17788 # GNU Libtool is distributed in the hope that it will be useful,
17789 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17790 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17791 # GNU General Public License for more details.
17792 #
17793 # You should have received a copy of the GNU General Public License
17794 # along with GNU Libtool; see the file COPYING. If not, a copy
17795 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17796 # obtained by writing to the Free Software Foundation, Inc.,
17797 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17798
17799
17800 # The names of the tagged configurations supported by this script.
17801 available_tags="CXX "
17802
17803 # ### BEGIN LIBTOOL CONFIG
17804
17805 # Which release of libtool.m4 was used?
17806 macro_version=$macro_version
17807 macro_revision=$macro_revision
17808
17809 # Whether or not to build shared libraries.
17810 build_libtool_libs=$enable_shared
17811
17812 # Whether or not to build static libraries.
17813 build_old_libs=$enable_static
17814
17815 # What type of objects to build.
17816 pic_mode=$pic_mode
17817
17818 # Whether or not to optimize for fast installation.
17819 fast_install=$enable_fast_install
17820
17821 # The host system.
17822 host_alias=$host_alias
17823 host=$host
17824 host_os=$host_os
17825
17826 # The build system.
17827 build_alias=$build_alias
17828 build=$build
17829 build_os=$build_os
17830
17831 # A sed program that does not truncate output.
17832 SED=$lt_SED
17833
17834 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17835 Xsed="\$SED -e 1s/^X//"
17836
17837 # A grep program that handles long lines.
17838 GREP=$lt_GREP
17839
17840 # An ERE matcher.
17841 EGREP=$lt_EGREP
17842
17843 # A literal string matcher.
17844 FGREP=$lt_FGREP
17845
17846 # A BSD- or MS-compatible name lister.
17847 NM=$lt_NM
17848
17849 # Whether we need soft or hard links.
17850 LN_S=$lt_LN_S
17851
17852 # What is the maximum length of a command?
17853 max_cmd_len=$max_cmd_len
17854
17855 # Object file suffix (normally "o").
17856 objext=$ac_objext
17857
17858 # Executable file suffix (normally "").
17859 exeext=$exeext
17860
17861 # whether the shell understands "unset".
17862 lt_unset=$lt_unset
17863
17864 # turn spaces into newlines.
17865 SP2NL=$lt_lt_SP2NL
17866
17867 # turn newlines into spaces.
17868 NL2SP=$lt_lt_NL2SP
17869
17870 # How to create reloadable object files.
17871 reload_flag=$lt_reload_flag
17872 reload_cmds=$lt_reload_cmds
17873
17874 # An object symbol dumper.
17875 OBJDUMP=$lt_OBJDUMP
17876
17877 # Method to check whether dependent libraries are shared objects.
17878 deplibs_check_method=$lt_deplibs_check_method
17879
17880 # Command to use when deplibs_check_method == "file_magic".
17881 file_magic_cmd=$lt_file_magic_cmd
17882
17883 # The archiver.
17884 AR=$lt_AR
17885 AR_FLAGS=$lt_AR_FLAGS
17886
17887 # A symbol stripping program.
17888 STRIP=$lt_STRIP
17889
17890 # Commands used to install an old-style archive.
17891 RANLIB=$lt_RANLIB
17892 old_postinstall_cmds=$lt_old_postinstall_cmds
17893 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17894
17895 # A C compiler.
17896 LTCC=$lt_CC
17897
17898 # LTCC compiler flags.
17899 LTCFLAGS=$lt_CFLAGS
17900
17901 # Take the output of nm and produce a listing of raw symbols and C names.
17902 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17903
17904 # Transform the output of nm in a proper C declaration.
17905 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17906
17907 # Transform the output of nm in a C name address pair.
17908 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17909
17910 # Transform the output of nm in a C name address pair when lib prefix is needed.
17911 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17912
17913 # The name of the directory that contains temporary libtool files.
17914 objdir=$objdir
17915
17916 # Shell to use when invoking shell scripts.
17917 SHELL=$lt_SHELL
17918
17919 # An echo program that does not interpret backslashes.
17920 ECHO=$lt_ECHO
17921
17922 # Used to examine libraries when file_magic_cmd begins with "file".
17923 MAGIC_CMD=$MAGIC_CMD
17924
17925 # Must we lock files when doing compilation?
17926 need_locks=$lt_need_locks
17927
17928 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17929 DSYMUTIL=$lt_DSYMUTIL
17930
17931 # Tool to change global to local symbols on Mac OS X.
17932 NMEDIT=$lt_NMEDIT
17933
17934 # Tool to manipulate fat objects and archives on Mac OS X.
17935 LIPO=$lt_LIPO
17936
17937 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17938 OTOOL=$lt_OTOOL
17939
17940 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17941 OTOOL64=$lt_OTOOL64
17942
17943 # Old archive suffix (normally "a").
17944 libext=$libext
17945
17946 # Shared library suffix (normally ".so").
17947 shrext_cmds=$lt_shrext_cmds
17948
17949 # The commands to extract the exported symbol list from a shared archive.
17950 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17951
17952 # Variables whose values should be saved in libtool wrapper scripts and
17953 # restored at link time.
17954 variables_saved_for_relink=$lt_variables_saved_for_relink
17955
17956 # Do we need the "lib" prefix for modules?
17957 need_lib_prefix=$need_lib_prefix
17958
17959 # Do we need a version for libraries?
17960 need_version=$need_version
17961
17962 # Library versioning type.
17963 version_type=$version_type
17964
17965 # Shared library runtime path variable.
17966 runpath_var=$runpath_var
17967
17968 # Shared library path variable.
17969 shlibpath_var=$shlibpath_var
17970
17971 # Is shlibpath searched before the hard-coded library search path?
17972 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17973
17974 # Format of library name prefix.
17975 libname_spec=$lt_libname_spec
17976
17977 # List of archive names. First name is the real one, the rest are links.
17978 # The last name is the one that the linker finds with -lNAME
17979 library_names_spec=$lt_library_names_spec
17980
17981 # The coded name of the library, if different from the real name.
17982 soname_spec=$lt_soname_spec
17983
17984 # Command to use after installation of a shared archive.
17985 postinstall_cmds=$lt_postinstall_cmds
17986
17987 # Command to use after uninstallation of a shared archive.
17988 postuninstall_cmds=$lt_postuninstall_cmds
17989
17990 # Commands used to finish a libtool library installation in a directory.
17991 finish_cmds=$lt_finish_cmds
17992
17993 # As "finish_cmds", except a single script fragment to be evaled but
17994 # not shown.
17995 finish_eval=$lt_finish_eval
17996
17997 # Whether we should hardcode library paths into libraries.
17998 hardcode_into_libs=$hardcode_into_libs
17999
18000 # Compile-time system search path for libraries.
18001 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18002
18003 # Run-time system search path for libraries.
18004 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18005
18006 # Whether dlopen is supported.
18007 dlopen_support=$enable_dlopen
18008
18009 # Whether dlopen of programs is supported.
18010 dlopen_self=$enable_dlopen_self
18011
18012 # Whether dlopen of statically linked programs is supported.
18013 dlopen_self_static=$enable_dlopen_self_static
18014
18015 # Commands to strip libraries.
18016 old_striplib=$lt_old_striplib
18017 striplib=$lt_striplib
18018
18019
18020 # The linker used to build libraries.
18021 LD=$lt_LD
18022
18023 # Commands used to build an old-style archive.
18024 old_archive_cmds=$lt_old_archive_cmds
18025
18026 # A language specific compiler.
18027 CC=$lt_compiler
18028
18029 # Is the compiler the GNU compiler?
18030 with_gcc=$GCC
18031
18032 # Compiler flag to turn off builtin functions.
18033 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18034
18035 # How to pass a linker flag through the compiler.
18036 wl=$lt_lt_prog_compiler_wl
18037
18038 # Additional compiler flags for building library objects.
18039 pic_flag=$lt_lt_prog_compiler_pic
18040
18041 # Compiler flag to prevent dynamic linking.
18042 link_static_flag=$lt_lt_prog_compiler_static
18043
18044 # Does compiler simultaneously support -c and -o options?
18045 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18046
18047 # Whether or not to add -lc for building shared libraries.
18048 build_libtool_need_lc=$archive_cmds_need_lc
18049
18050 # Whether or not to disallow shared libs when runtime libs are static.
18051 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18052
18053 # Compiler flag to allow reflexive dlopens.
18054 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18055
18056 # Compiler flag to generate shared objects directly from archives.
18057 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18058
18059 # Whether the compiler copes with passing no objects directly.
18060 compiler_needs_object=$lt_compiler_needs_object
18061
18062 # Create an old-style archive from a shared archive.
18063 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18064
18065 # Create a temporary old-style archive to link instead of a shared archive.
18066 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18067
18068 # Commands used to build a shared archive.
18069 archive_cmds=$lt_archive_cmds
18070 archive_expsym_cmds=$lt_archive_expsym_cmds
18071
18072 # Commands used to build a loadable module if different from building
18073 # a shared archive.
18074 module_cmds=$lt_module_cmds
18075 module_expsym_cmds=$lt_module_expsym_cmds
18076
18077 # Whether we are building with GNU ld or not.
18078 with_gnu_ld=$lt_with_gnu_ld
18079
18080 # Flag that allows shared libraries with undefined symbols to be built.
18081 allow_undefined_flag=$lt_allow_undefined_flag
18082
18083 # Flag that enforces no undefined symbols.
18084 no_undefined_flag=$lt_no_undefined_flag
18085
18086 # Flag to hardcode \$libdir into a binary during linking.
18087 # This must work even if \$libdir does not exist
18088 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18089
18090 # If ld is used when linking, flag to hardcode \$libdir into a binary
18091 # during linking. This must work even if \$libdir does not exist.
18092 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18093
18094 # Whether we need a single "-rpath" flag with a separated argument.
18095 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18096
18097 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18098 # DIR into the resulting binary.
18099 hardcode_direct=$hardcode_direct
18100
18101 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18102 # DIR into the resulting binary and the resulting library dependency is
18103 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18104 # library is relocated.
18105 hardcode_direct_absolute=$hardcode_direct_absolute
18106
18107 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18108 # into the resulting binary.
18109 hardcode_minus_L=$hardcode_minus_L
18110
18111 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18112 # into the resulting binary.
18113 hardcode_shlibpath_var=$hardcode_shlibpath_var
18114
18115 # Set to "yes" if building a shared library automatically hardcodes DIR
18116 # into the library and all subsequent libraries and executables linked
18117 # against it.
18118 hardcode_automatic=$hardcode_automatic
18119
18120 # Set to yes if linker adds runtime paths of dependent libraries
18121 # to runtime path list.
18122 inherit_rpath=$inherit_rpath
18123
18124 # Whether libtool must link a program against all its dependency libraries.
18125 link_all_deplibs=$link_all_deplibs
18126
18127 # Fix the shell variable \$srcfile for the compiler.
18128 fix_srcfile_path=$lt_fix_srcfile_path
18129
18130 # Set to "yes" if exported symbols are required.
18131 always_export_symbols=$always_export_symbols
18132
18133 # The commands to list exported symbols.
18134 export_symbols_cmds=$lt_export_symbols_cmds
18135
18136 # Symbols that should not be listed in the preloaded symbols.
18137 exclude_expsyms=$lt_exclude_expsyms
18138
18139 # Symbols that must always be exported.
18140 include_expsyms=$lt_include_expsyms
18141
18142 # Commands necessary for linking programs (against libraries) with templates.
18143 prelink_cmds=$lt_prelink_cmds
18144
18145 # Specify filename containing input files.
18146 file_list_spec=$lt_file_list_spec
18147
18148 # How to hardcode a shared library path into an executable.
18149 hardcode_action=$hardcode_action
18150
18151 # The directories searched by this compiler when creating a shared library.
18152 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18153
18154 # Dependencies to place before and after the objects being linked to
18155 # create a shared library.
18156 predep_objects=$lt_predep_objects
18157 postdep_objects=$lt_postdep_objects
18158 predeps=$lt_predeps
18159 postdeps=$lt_postdeps
18160
18161 # The library search path used internally by the compiler when linking
18162 # a shared library.
18163 compiler_lib_search_path=$lt_compiler_lib_search_path
18164
18165 # ### END LIBTOOL CONFIG
18166
18167 _LT_EOF
18168
18169 case $host_os in
18170 aix3*)
18171 cat <<\_LT_EOF >> "$cfgfile"
18172 # AIX sometimes has problems with the GCC collect2 program. For some
18173 # reason, if we set the COLLECT_NAMES environment variable, the problems
18174 # vanish in a puff of smoke.
18175 if test "X${COLLECT_NAMES+set}" != Xset; then
18176 COLLECT_NAMES=
18177 export COLLECT_NAMES
18178 fi
18179 _LT_EOF
18180 ;;
18181 esac
18182
18183
18184 ltmain="$ac_aux_dir/ltmain.sh"
18185
18186
18187 # We use sed instead of cat because bash on DJGPP gets confused if
18188 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18189 # text mode, it properly converts lines to CR/LF. This bash problem
18190 # is reportedly fixed, but why not run on old versions too?
18191 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18192 || (rm -f "$cfgfile"; exit 1)
18193
18194 case $xsi_shell in
18195 yes)
18196 cat << \_LT_EOF >> "$cfgfile"
18197
18198 # func_dirname file append nondir_replacement
18199 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18200 # otherwise set result to NONDIR_REPLACEMENT.
18201 func_dirname ()
18202 {
18203 case ${1} in
18204 */*) func_dirname_result="${1%/*}${2}" ;;
18205 * ) func_dirname_result="${3}" ;;
18206 esac
18207 }
18208
18209 # func_basename file
18210 func_basename ()
18211 {
18212 func_basename_result="${1##*/}"
18213 }
18214
18215 # func_dirname_and_basename file append nondir_replacement
18216 # perform func_basename and func_dirname in a single function
18217 # call:
18218 # dirname: Compute the dirname of FILE. If nonempty,
18219 # add APPEND to the result, otherwise set result
18220 # to NONDIR_REPLACEMENT.
18221 # value returned in "$func_dirname_result"
18222 # basename: Compute filename of FILE.
18223 # value retuned in "$func_basename_result"
18224 # Implementation must be kept synchronized with func_dirname
18225 # and func_basename. For efficiency, we do not delegate to
18226 # those functions but instead duplicate the functionality here.
18227 func_dirname_and_basename ()
18228 {
18229 case ${1} in
18230 */*) func_dirname_result="${1%/*}${2}" ;;
18231 * ) func_dirname_result="${3}" ;;
18232 esac
18233 func_basename_result="${1##*/}"
18234 }
18235
18236 # func_stripname prefix suffix name
18237 # strip PREFIX and SUFFIX off of NAME.
18238 # PREFIX and SUFFIX must not contain globbing or regex special
18239 # characters, hashes, percent signs, but SUFFIX may contain a leading
18240 # dot (in which case that matches only a dot).
18241 func_stripname ()
18242 {
18243 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18244 # positional parameters, so assign one to ordinary parameter first.
18245 func_stripname_result=${3}
18246 func_stripname_result=${func_stripname_result#"${1}"}
18247 func_stripname_result=${func_stripname_result%"${2}"}
18248 }
18249
18250 # func_opt_split
18251 func_opt_split ()
18252 {
18253 func_opt_split_opt=${1%%=*}
18254 func_opt_split_arg=${1#*=}
18255 }
18256
18257 # func_lo2o object
18258 func_lo2o ()
18259 {
18260 case ${1} in
18261 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18262 *) func_lo2o_result=${1} ;;
18263 esac
18264 }
18265
18266 # func_xform libobj-or-source
18267 func_xform ()
18268 {
18269 func_xform_result=${1%.*}.lo
18270 }
18271
18272 # func_arith arithmetic-term...
18273 func_arith ()
18274 {
18275 func_arith_result=$(( $* ))
18276 }
18277
18278 # func_len string
18279 # STRING may not start with a hyphen.
18280 func_len ()
18281 {
18282 func_len_result=${#1}
18283 }
18284
18285 _LT_EOF
18286 ;;
18287 *) # Bourne compatible functions.
18288 cat << \_LT_EOF >> "$cfgfile"
18289
18290 # func_dirname file append nondir_replacement
18291 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18292 # otherwise set result to NONDIR_REPLACEMENT.
18293 func_dirname ()
18294 {
18295 # Extract subdirectory from the argument.
18296 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18297 if test "X$func_dirname_result" = "X${1}"; then
18298 func_dirname_result="${3}"
18299 else
18300 func_dirname_result="$func_dirname_result${2}"
18301 fi
18302 }
18303
18304 # func_basename file
18305 func_basename ()
18306 {
18307 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18308 }
18309
18310
18311 # func_stripname prefix suffix name
18312 # strip PREFIX and SUFFIX off of NAME.
18313 # PREFIX and SUFFIX must not contain globbing or regex special
18314 # characters, hashes, percent signs, but SUFFIX may contain a leading
18315 # dot (in which case that matches only a dot).
18316 # func_strip_suffix prefix name
18317 func_stripname ()
18318 {
18319 case ${2} in
18320 .*) func_stripname_result=`$ECHO "X${3}" \
18321 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18322 *) func_stripname_result=`$ECHO "X${3}" \
18323 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18324 esac
18325 }
18326
18327 # sed scripts:
18328 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18329 my_sed_long_arg='1s/^-[^=]*=//'
18330
18331 # func_opt_split
18332 func_opt_split ()
18333 {
18334 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18335 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18336 }
18337
18338 # func_lo2o object
18339 func_lo2o ()
18340 {
18341 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18342 }
18343
18344 # func_xform libobj-or-source
18345 func_xform ()
18346 {
18347 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18348 }
18349
18350 # func_arith arithmetic-term...
18351 func_arith ()
18352 {
18353 func_arith_result=`expr "$@"`
18354 }
18355
18356 # func_len string
18357 # STRING may not start with a hyphen.
18358 func_len ()
18359 {
18360 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18361 }
18362
18363 _LT_EOF
18364 esac
18365
18366 case $lt_shell_append in
18367 yes)
18368 cat << \_LT_EOF >> "$cfgfile"
18369
18370 # func_append var value
18371 # Append VALUE to the end of shell variable VAR.
18372 func_append ()
18373 {
18374 eval "$1+=\$2"
18375 }
18376 _LT_EOF
18377 ;;
18378 *)
18379 cat << \_LT_EOF >> "$cfgfile"
18380
18381 # func_append var value
18382 # Append VALUE to the end of shell variable VAR.
18383 func_append ()
18384 {
18385 eval "$1=\$$1\$2"
18386 }
18387
18388 _LT_EOF
18389 ;;
18390 esac
18391
18392
18393 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18394 || (rm -f "$cfgfile"; exit 1)
18395
18396 mv -f "$cfgfile" "$ofile" ||
18397 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18398 chmod +x "$ofile"
18399
18400
18401 cat <<_LT_EOF >> "$ofile"
18402
18403 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18404
18405 # The linker used to build libraries.
18406 LD=$lt_LD_CXX
18407
18408 # Commands used to build an old-style archive.
18409 old_archive_cmds=$lt_old_archive_cmds_CXX
18410
18411 # A language specific compiler.
18412 CC=$lt_compiler_CXX
18413
18414 # Is the compiler the GNU compiler?
18415 with_gcc=$GCC_CXX
18416
18417 # Compiler flag to turn off builtin functions.
18418 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18419
18420 # How to pass a linker flag through the compiler.
18421 wl=$lt_lt_prog_compiler_wl_CXX
18422
18423 # Additional compiler flags for building library objects.
18424 pic_flag=$lt_lt_prog_compiler_pic_CXX
18425
18426 # Compiler flag to prevent dynamic linking.
18427 link_static_flag=$lt_lt_prog_compiler_static_CXX
18428
18429 # Does compiler simultaneously support -c and -o options?
18430 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18431
18432 # Whether or not to add -lc for building shared libraries.
18433 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18434
18435 # Whether or not to disallow shared libs when runtime libs are static.
18436 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18437
18438 # Compiler flag to allow reflexive dlopens.
18439 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18440
18441 # Compiler flag to generate shared objects directly from archives.
18442 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18443
18444 # Whether the compiler copes with passing no objects directly.
18445 compiler_needs_object=$lt_compiler_needs_object_CXX
18446
18447 # Create an old-style archive from a shared archive.
18448 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18449
18450 # Create a temporary old-style archive to link instead of a shared archive.
18451 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18452
18453 # Commands used to build a shared archive.
18454 archive_cmds=$lt_archive_cmds_CXX
18455 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18456
18457 # Commands used to build a loadable module if different from building
18458 # a shared archive.
18459 module_cmds=$lt_module_cmds_CXX
18460 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18461
18462 # Whether we are building with GNU ld or not.
18463 with_gnu_ld=$lt_with_gnu_ld_CXX
18464
18465 # Flag that allows shared libraries with undefined symbols to be built.
18466 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18467
18468 # Flag that enforces no undefined symbols.
18469 no_undefined_flag=$lt_no_undefined_flag_CXX
18470
18471 # Flag to hardcode \$libdir into a binary during linking.
18472 # This must work even if \$libdir does not exist
18473 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18474
18475 # If ld is used when linking, flag to hardcode \$libdir into a binary
18476 # during linking. This must work even if \$libdir does not exist.
18477 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18478
18479 # Whether we need a single "-rpath" flag with a separated argument.
18480 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18481
18482 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18483 # DIR into the resulting binary.
18484 hardcode_direct=$hardcode_direct_CXX
18485
18486 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18487 # DIR into the resulting binary and the resulting library dependency is
18488 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18489 # library is relocated.
18490 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18491
18492 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18493 # into the resulting binary.
18494 hardcode_minus_L=$hardcode_minus_L_CXX
18495
18496 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18497 # into the resulting binary.
18498 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18499
18500 # Set to "yes" if building a shared library automatically hardcodes DIR
18501 # into the library and all subsequent libraries and executables linked
18502 # against it.
18503 hardcode_automatic=$hardcode_automatic_CXX
18504
18505 # Set to yes if linker adds runtime paths of dependent libraries
18506 # to runtime path list.
18507 inherit_rpath=$inherit_rpath_CXX
18508
18509 # Whether libtool must link a program against all its dependency libraries.
18510 link_all_deplibs=$link_all_deplibs_CXX
18511
18512 # Fix the shell variable \$srcfile for the compiler.
18513 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18514
18515 # Set to "yes" if exported symbols are required.
18516 always_export_symbols=$always_export_symbols_CXX
18517
18518 # The commands to list exported symbols.
18519 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18520
18521 # Symbols that should not be listed in the preloaded symbols.
18522 exclude_expsyms=$lt_exclude_expsyms_CXX
18523
18524 # Symbols that must always be exported.
18525 include_expsyms=$lt_include_expsyms_CXX
18526
18527 # Commands necessary for linking programs (against libraries) with templates.
18528 prelink_cmds=$lt_prelink_cmds_CXX
18529
18530 # Specify filename containing input files.
18531 file_list_spec=$lt_file_list_spec_CXX
18532
18533 # How to hardcode a shared library path into an executable.
18534 hardcode_action=$hardcode_action_CXX
18535
18536 # The directories searched by this compiler when creating a shared library.
18537 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18538
18539 # Dependencies to place before and after the objects being linked to
18540 # create a shared library.
18541 predep_objects=$lt_predep_objects_CXX
18542 postdep_objects=$lt_postdep_objects_CXX
18543 predeps=$lt_predeps_CXX
18544 postdeps=$lt_postdeps_CXX
18545
18546 # The library search path used internally by the compiler when linking
18547 # a shared library.
18548 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18549
18550 # ### END LIBTOOL TAG CONFIG: CXX
18551 _LT_EOF
18552
18553 ;;
18554 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18555 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18556 # are listed without --file. Let's play safe and only enable the eval
18557 # if we detect the quoting.
18558 case $CONFIG_FILES in
18559 *\'*) eval set x "$CONFIG_FILES" ;;
18560 *) set x $CONFIG_FILES ;;
18561 esac
18562 shift
18563 for mf
18564 do
18565 # Strip MF so we end up with the name of the file.
18566 mf=`echo "$mf" | sed -e 's/:.*$//'`
18567 # Check whether this is an Automake generated Makefile or not.
18568 # We used to match only the files named `Makefile.in', but
18569 # some people rename them; so instead we look at the file content.
18570 # Grep'ing the first line is not enough: some people post-process
18571 # each Makefile.in and add a new line on top of each file to say so.
18572 # Grep'ing the whole file is not good either: AIX grep has a line
18573 # limit of 2048, but all sed's we know have understand at least 4000.
18574 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18575 dirpart=`$as_dirname -- "$mf" ||
18576 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18577 X"$mf" : 'X\(//\)[^/]' \| \
18578 X"$mf" : 'X\(//\)$' \| \
18579 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18580 $as_echo X"$mf" |
18581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18582 s//\1/
18583 q
18584 }
18585 /^X\(\/\/\)[^/].*/{
18586 s//\1/
18587 q
18588 }
18589 /^X\(\/\/\)$/{
18590 s//\1/
18591 q
18592 }
18593 /^X\(\/\).*/{
18594 s//\1/
18595 q
18596 }
18597 s/.*/./; q'`
18598 else
18599 continue
18600 fi
18601 # Extract the definition of DEPDIR, am__include, and am__quote
18602 # from the Makefile without running `make'.
18603 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18604 test -z "$DEPDIR" && continue
18605 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18606 test -z "am__include" && continue
18607 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18608 # When using ansi2knr, U may be empty or an underscore; expand it
18609 U=`sed -n 's/^U = //p' < "$mf"`
18610 # Find all dependency output files, they are included files with
18611 # $(DEPDIR) in their names. We invoke sed twice because it is the
18612 # simplest approach to changing $(DEPDIR) to its actual value in the
18613 # expansion.
18614 for file in `sed -n "
18615 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18616 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18617 # Make sure the directory exists.
18618 test -f "$dirpart/$file" && continue
18619 fdir=`$as_dirname -- "$file" ||
18620 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18621 X"$file" : 'X\(//\)[^/]' \| \
18622 X"$file" : 'X\(//\)$' \| \
18623 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18624 $as_echo X"$file" |
18625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18626 s//\1/
18627 q
18628 }
18629 /^X\(\/\/\)[^/].*/{
18630 s//\1/
18631 q
18632 }
18633 /^X\(\/\/\)$/{
18634 s//\1/
18635 q
18636 }
18637 /^X\(\/\).*/{
18638 s//\1/
18639 q
18640 }
18641 s/.*/./; q'`
18642 { as_dir=$dirpart/$fdir
18643 case $as_dir in #(
18644 -*) as_dir=./$as_dir;;
18645 esac
18646 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18647 as_dirs=
18648 while :; do
18649 case $as_dir in #(
18650 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18651 *) as_qdir=$as_dir;;
18652 esac
18653 as_dirs="'$as_qdir' $as_dirs"
18654 as_dir=`$as_dirname -- "$as_dir" ||
18655 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18656 X"$as_dir" : 'X\(//\)[^/]' \| \
18657 X"$as_dir" : 'X\(//\)$' \| \
18658 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18659 $as_echo X"$as_dir" |
18660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18661 s//\1/
18662 q
18663 }
18664 /^X\(\/\/\)[^/].*/{
18665 s//\1/
18666 q
18667 }
18668 /^X\(\/\/\)$/{
18669 s//\1/
18670 q
18671 }
18672 /^X\(\/\).*/{
18673 s//\1/
18674 q
18675 }
18676 s/.*/./; q'`
18677 test -d "$as_dir" && break
18678 done
18679 test -z "$as_dirs" || eval "mkdir $as_dirs"
18680 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18681 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18682 { (exit 1); exit 1; }; }; }
18683 # echo "creating $dirpart/$file"
18684 echo '# dummy' > "$dirpart/$file"
18685 done
18686 done
18687 }
18688 ;;
18689
18690 esac
18691 done # for ac_tag
18692
18693
18694 { (exit 0); exit 0; }
18695 _ACEOF
18696 chmod +x $CONFIG_STATUS
18697 ac_clean_files=$ac_clean_files_save
18698
18699 test $ac_write_fail = 0 ||
18700 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18701 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18702 { (exit 1); exit 1; }; }
18703
18704
18705 # configure is writing to config.log, and then calls config.status.
18706 # config.status does its own redirection, appending to config.log.
18707 # Unfortunately, on DOS this fails, as config.log is still kept open
18708 # by configure, so config.status won't be able to write to it; its
18709 # output is simply discarded. So we exec the FD to /dev/null,
18710 # effectively closing config.log, so it can be properly (re)opened and
18711 # appended to by config.status. When coming back to configure, we
18712 # need to make the FD available again.
18713 if test "$no_create" != yes; then
18714 ac_cs_success=:
18715 ac_config_status_args=
18716 test "$silent" = yes &&
18717 ac_config_status_args="$ac_config_status_args --quiet"
18718 exec 5>/dev/null
18719 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18720 exec 5>>config.log
18721 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18722 # would make configure fail if this is the last instruction.
18723 $ac_cs_success || { (exit 1); exit 1; }
18724 fi
18725 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18726 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18727 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18728 fi
18729