blob: 7143684ed144b9458d19f29fa9745715bf8a89f4 [file] [log] [blame]
brynercb91a2f2006-08-25 21:14:45 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
mmentovaie5dc6082007-02-14 19:51:05 +00003# Generated by GNU Autoconf 2.60 for breakpad 0.1.
brynercb91a2f2006-08-25 21:14:45 +00004#
5# Report bugs to <opensource@google.com>.
6#
mmentovai8c2a4de2006-09-20 16:20:15 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +00009# 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 Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +000022 setopt NO_GLOB_SUBST
23else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
brynercb91a2f2006-08-25 21:14:45 +000025fi
mmentovai8c2a4de2006-09-20 16:20:15 +000026BIN_SH=xpg4; export BIN_SH # for Tru64
brynercb91a2f2006-08-25 21:14:45 +000027DUALCASE=1; export DUALCASE # for MKS sh
28
brynercb91a2f2006-08-25 21:14:45 +000029
mmentovai8c2a4de2006-09-20 16:20:15 +000030# PATH needs CR
brynercb91a2f2006-08-25 21:14:45 +000031# Avoid depending upon Character Ranges.
32as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35as_cr_digits='0123456789'
36as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38# The user is always right.
39if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
47 fi
48 rm -f conf$$.sh
49fi
50
mmentovai8c2a4de2006-09-20 16:20:15 +000051# Support unset when possible.
52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54else
55 as_unset=false
56fi
brynercb91a2f2006-08-25 21:14:45 +000057
mmentovai8c2a4de2006-09-20 16:20:15 +000058
59# IFS
60# We need space, tab and new line, in precisely that order. Quoting is
61# there to prevent editors from complaining about space-tab.
62# (If _AS_PATH_WALK were called with IFS unset, it would disable word
63# splitting by setting IFS to empty value.)
64as_nl='
65'
66IFS=" "" $as_nl"
67
68# Find who we are. Look in the path if we contain no directory separator.
69case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +000072for as_dir in $PATH
73do
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77done
mmentovai8c2a4de2006-09-20 16:20:15 +000078IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +000079
mmentovai8c2a4de2006-09-20 16:20:15 +000080 ;;
81esac
82# We did not find ourselves, most probably we were run as `sh COMMAND'
83# in which case we are not to be found in the path.
84if test "x$as_myself" = x; then
85 as_myself=$0
86fi
87if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
90fi
91
92# Work around bugs in pre-3.0 UWIN ksh.
93for as_var in ENV MAIL MAILPATH
94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95done
96PS1='$ '
97PS2='> '
98PS4='+ '
99
100# NLS nuisances.
101for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
105do
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
brynercb91a2f2006-08-25 21:14:45 +0000110 fi
mmentovai8c2a4de2006-09-20 16:20:15 +0000111done
112
113# Required to use basename.
114if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117else
118 as_expr=false
119fi
120
121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123else
124 as_basename=false
125fi
126
127
128# Name of the executable.
129as_me=`$as_basename -- "$0" ||
130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
136 q
137 }
138 /^X\/\(\/\/\)$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\).*/{
143 s//\1/
144 q
145 }
146 s/.*/./; q'`
147
148# CDPATH.
149$as_unset CDPATH
150
151
152if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155else
156 as_have_required=no
157fi
158
159 if test $as_have_required = yes && (eval ":
160(as_func_return () {
161 (exit \$1)
162}
163as_func_success () {
164 as_func_return 0
165}
166as_func_failure () {
167 as_func_return 1
168}
169as_func_ret_success () {
170 return 0
171}
172as_func_ret_failure () {
173 return 1
174}
175
176exitcode=0
177if as_func_success; then
178 :
179else
180 exitcode=1
181 echo as_func_success failed.
182fi
183
184if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
187fi
188
189if as_func_ret_success; then
190 :
191else
192 exitcode=1
193 echo as_func_ret_success failed.
194fi
195
196if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
199fi
200
201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202 :
203else
204 exitcode=1
205 echo positional parameters were not saved.
206fi
207
208test \$exitcode = 0) || { (exit 1); exit 1; }
209
210(
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215") 2> /dev/null; then
216 :
217else
218 as_candidate_shells=
brynercb91a2f2006-08-25 21:14:45 +0000219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +0000220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
brynercb91a2f2006-08-25 21:14:45 +0000221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
mmentovai8c2a4de2006-09-20 16:20:15 +0000224 case $as_dir in
brynercb91a2f2006-08-25 21:14:45 +0000225 /*)
mmentovai8c2a4de2006-09-20 16:20:15 +0000226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230done
231IFS=$as_save_IFS
232
233
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238# Be Bourne compatible
239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248fi
249BIN_SH=xpg4; export BIN_SH # for Tru64
250DUALCASE=1; export DUALCASE # for MKS sh
251
252:
253_ASEOF
254}; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258# Be Bourne compatible
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268fi
269BIN_SH=xpg4; export BIN_SH # for Tru64
270DUALCASE=1; export DUALCASE # for MKS sh
271
272:
273(as_func_return () {
274 (exit $1)
275}
276as_func_success () {
277 as_func_return 0
278}
279as_func_failure () {
280 as_func_return 1
281}
282as_func_ret_success () {
283 return 0
284}
285as_func_ret_failure () {
286 return 1
287}
288
289exitcode=0
290if as_func_success; then
291 :
292else
293 exitcode=1
294 echo as_func_success failed.
295fi
296
297if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
300fi
301
302if as_func_ret_success; then
303 :
304else
305 exitcode=1
306 echo as_func_ret_success failed.
307fi
308
309if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
312fi
313
314if ( set x; as_func_ret_success y && test x = "$1" ); then
315 :
316else
317 exitcode=1
318 echo positional parameters were not saved.
319fi
320
321test $exitcode = 0) || { (exit 1); exit 1; }
322
323(
brynercb91a2f2006-08-25 21:14:45 +0000324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
brynercb91a2f2006-08-25 21:14:45 +0000326 test "x$as_lineno_1" != "x$as_lineno_2" &&
mmentovai8c2a4de2006-09-20 16:20:15 +0000327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329_ASEOF
330}; then
331 break
332fi
333
334fi
335
336 done
337
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344fi
345
346
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
353fi
354
355
356fi
357
358fi
359
360
361
362(eval "as_func_return () {
363 (exit \$1)
364}
365as_func_success () {
366 as_func_return 0
367}
368as_func_failure () {
369 as_func_return 1
370}
371as_func_ret_success () {
372 return 0
373}
374as_func_ret_failure () {
375 return 1
376}
377
378exitcode=0
379if as_func_success; then
380 :
381else
382 exitcode=1
383 echo as_func_success failed.
384fi
385
386if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
389fi
390
391if as_func_ret_success; then
392 :
393else
394 exitcode=1
395 echo as_func_ret_success failed.
396fi
397
398if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
401fi
402
403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404 :
405else
406 exitcode=1
407 echo positional parameters were not saved.
408fi
409
410test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
415}
416
417
418
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
brynercb91a2f2006-08-25 21:14:45 +0000423
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
mmentovai8c2a4de2006-09-20 16:20:15 +0000426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
brynercb91a2f2006-08-25 21:14:45 +0000431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
mmentovai8c2a4de2006-09-20 16:20:15 +0000432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
brynercb91a2f2006-08-25 21:14:45 +0000438 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +0000439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
brynercb91a2f2006-08-25 21:14:45 +0000443 N
mmentovai8c2a4de2006-09-20 16:20:15 +0000444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
brynercb91a2f2006-08-25 21:14:45 +0000446 t loop
mmentovai8c2a4de2006-09-20 16:20:15 +0000447 s/-\n.*//
brynercb91a2f2006-08-25 21:14:45 +0000448 ' >$as_me.lineno &&
mmentovai8c2a4de2006-09-20 16:20:15 +0000449 chmod +x "$as_me.lineno" ||
brynercb91a2f2006-08-25 21:14:45 +0000450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
mmentovai8c2a4de2006-09-20 16:20:15 +0000455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
brynercb91a2f2006-08-25 21:14:45 +0000457 # Exit status is that of the last command.
458 exit
459}
460
461
mmentovai8c2a4de2006-09-20 16:20:15 +0000462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464else
465 as_dirname=false
466fi
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in
470-n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
475*)
476 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +0000477esac
478
mmentovai8c2a4de2006-09-20 16:20:15 +0000479if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
brynercb91a2f2006-08-25 21:14:45 +0000481 as_expr=expr
482else
483 as_expr=false
484fi
485
486rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +0000487if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
492fi
brynercb91a2f2006-08-25 21:14:45 +0000493echo >conf$$.file
494if ln -s conf$$.file conf$$ 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +0000495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
brynercb91a2f2006-08-25 21:14:45 +0000501 as_ln_s='cp -p'
brynercb91a2f2006-08-25 21:14:45 +0000502elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504else
505 as_ln_s='cp -p'
506fi
mmentovai8c2a4de2006-09-20 16:20:15 +0000507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +0000509
510if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512else
513 test -d ./-p && rmdir ./-p
514 as_mkdir_p=false
515fi
516
mmentovai8c2a4de2006-09-20 16:20:15 +0000517# Find out whether ``test -x'' works. Don't use a zero-byte file, as
518# systems may use methods other than mode bits to determine executability.
519cat >conf$$.file <<_ASEOF
520#! /bin/sh
521exit 0
522_ASEOF
523chmod +x conf$$.file
524if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526else
527 as_executable_p=:
528fi
529rm -f conf$$.file
brynercb91a2f2006-08-25 21:14:45 +0000530
531# Sed expression to map a string onto a valid CPP name.
532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534# Sed expression to map a string onto a valid variable name.
535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
brynercb91a2f2006-08-25 21:14:45 +0000538
539
540# Check that we are running under the correct shell.
541SHELL=${CONFIG_SHELL-/bin/sh}
542
543case X$ECHO in
544X*--fallback-echo)
545 # Remove one level of quotation (which was required for Make).
546 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
547 ;;
548esac
549
550echo=${ECHO-echo}
551if test "X$1" = X--no-reexec; then
552 # Discard the --no-reexec flag, and continue.
553 shift
554elif test "X$1" = X--fallback-echo; then
555 # Avoid inline document here, it may be left over
556 :
557elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
558 # Yippee, $echo works!
559 :
560else
561 # Restart under the correct shell.
562 exec $SHELL "$0" --no-reexec ${1+"$@"}
563fi
564
565if test "X$1" = X--fallback-echo; then
566 # used as fallback echo
567 shift
568 cat <<EOF
569$*
570EOF
571 exit 0
572fi
573
574# The HP-UX ksh and POSIX shell print the target directory to stdout
575# if CDPATH is set.
mmentovai8c2a4de2006-09-20 16:20:15 +0000576(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
brynercb91a2f2006-08-25 21:14:45 +0000577
578if test -z "$ECHO"; then
579if test "X${echo_test_string+set}" != Xset; then
580# find a string as large as possible, as long as the shell can cope with it
581 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
582 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
mmentovai8c2a4de2006-09-20 16:20:15 +0000583 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
584 echo_test_string=`eval $cmd` &&
brynercb91a2f2006-08-25 21:14:45 +0000585 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
586 then
587 break
588 fi
589 done
590fi
591
592if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
593 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
594 test "X$echo_testing_string" = "X$echo_test_string"; then
595 :
596else
597 # The Solaris, AIX, and Digital Unix default echo programs unquote
598 # backslashes. This makes it impossible to quote backslashes using
599 # echo "$something" | sed 's/\\/\\\\/g'
600 #
601 # So, first we look for a working echo in the user's PATH.
602
603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604 for dir in $PATH /usr/ucb; do
605 IFS="$lt_save_ifs"
606 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 echo="$dir/echo"
611 break
612 fi
613 done
614 IFS="$lt_save_ifs"
615
616 if test "X$echo" = Xecho; then
617 # We didn't find a better echo, so look for alternatives.
618 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
619 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
620 test "X$echo_testing_string" = "X$echo_test_string"; then
621 # This shell has a builtin print -r that does the trick.
622 echo='print -r'
623 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
624 test "X$CONFIG_SHELL" != X/bin/ksh; then
625 # If we have ksh, try running configure again with it.
626 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627 export ORIGINAL_CONFIG_SHELL
628 CONFIG_SHELL=/bin/ksh
629 export CONFIG_SHELL
630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631 else
632 # Try using printf.
633 echo='printf %s\n'
634 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
637 # Cool, printf works
638 :
639 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644 export CONFIG_SHELL
645 SHELL="$CONFIG_SHELL"
646 export SHELL
647 echo="$CONFIG_SHELL $0 --fallback-echo"
648 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649 test "X$echo_testing_string" = 'X\t' &&
650 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 echo="$CONFIG_SHELL $0 --fallback-echo"
653 else
654 # maybe with a smaller string...
655 prev=:
656
657 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
659 then
660 break
661 fi
662 prev="$cmd"
663 done
664
665 if test "$prev" != 'sed 50q "$0"'; then
666 echo_test_string=`eval $prev`
667 export echo_test_string
668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669 else
670 # Oops. We lost completely, so just stick with echo.
671 echo=echo
672 fi
673 fi
674 fi
675 fi
676fi
677fi
678
679# Copy echo and quote the copy suitably for passing to libtool from
680# the Makefile, instead of quoting the original, which is used later.
681ECHO=$echo
682if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684fi
685
686
687
688
689tagnames=${tagnames+${tagnames},}CXX
690
691tagnames=${tagnames+${tagnames},}F77
692
mmentovai8c2a4de2006-09-20 16:20:15 +0000693exec 7<&0 </dev/null 6>&1
694
brynercb91a2f2006-08-25 21:14:45 +0000695# Name of the host.
696# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
697# so uname gets run too.
698ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
699
brynercb91a2f2006-08-25 21:14:45 +0000700#
701# Initializations.
702#
703ac_default_prefix=/usr/local
mmentovai8c2a4de2006-09-20 16:20:15 +0000704ac_clean_files=
brynercb91a2f2006-08-25 21:14:45 +0000705ac_config_libobj_dir=.
mmentovai8c2a4de2006-09-20 16:20:15 +0000706LIBOBJS=
brynercb91a2f2006-08-25 21:14:45 +0000707cross_compiling=no
708subdirs=
709MFLAGS=
710MAKEFLAGS=
711SHELL=${CONFIG_SHELL-/bin/sh}
712
brynercb91a2f2006-08-25 21:14:45 +0000713# Identity of this package.
mmentovaie5dc6082007-02-14 19:51:05 +0000714PACKAGE_NAME='breakpad'
715PACKAGE_TARNAME='breakpad'
brynercb91a2f2006-08-25 21:14:45 +0000716PACKAGE_VERSION='0.1'
mmentovaie5dc6082007-02-14 19:51:05 +0000717PACKAGE_STRING='breakpad 0.1'
brynercb91a2f2006-08-25 21:14:45 +0000718PACKAGE_BUGREPORT='opensource@google.com'
719
720ac_unique_file="README"
721# Factoring default headers for most tests.
722ac_includes_default="\
723#include <stdio.h>
724#if HAVE_SYS_TYPES_H
725# include <sys/types.h>
726#endif
727#if HAVE_SYS_STAT_H
728# include <sys/stat.h>
729#endif
730#if STDC_HEADERS
731# include <stdlib.h>
732# include <stddef.h>
733#else
734# if HAVE_STDLIB_H
735# include <stdlib.h>
736# endif
737#endif
738#if HAVE_STRING_H
739# if !STDC_HEADERS && HAVE_MEMORY_H
740# include <memory.h>
741# endif
742# include <string.h>
743#endif
744#if HAVE_STRINGS_H
745# include <strings.h>
746#endif
747#if HAVE_INTTYPES_H
748# include <inttypes.h>
mmentovai8c2a4de2006-09-20 16:20:15 +0000749#endif
750#if HAVE_STDINT_H
751# include <stdint.h>
brynercb91a2f2006-08-25 21:14:45 +0000752#endif
753#if HAVE_UNISTD_H
754# include <unistd.h>
755#endif"
756
mmentovai8c2a4de2006-09-20 16:20:15 +0000757ac_subst_vars='SHELL
758PATH_SEPARATOR
759PACKAGE_NAME
760PACKAGE_TARNAME
761PACKAGE_VERSION
762PACKAGE_STRING
763PACKAGE_BUGREPORT
764exec_prefix
765prefix
766program_transform_name
767bindir
768sbindir
769libexecdir
770datarootdir
771datadir
772sysconfdir
773sharedstatedir
774localstatedir
775includedir
776oldincludedir
777docdir
778infodir
779htmldir
780dvidir
781pdfdir
782psdir
783libdir
784localedir
785mandir
786DEFS
787ECHO_C
788ECHO_N
789ECHO_T
790LIBS
791build_alias
792host_alias
793target_alias
794INSTALL_PROGRAM
795INSTALL_SCRIPT
796INSTALL_DATA
797CYGPATH_W
798PACKAGE
799VERSION
800ACLOCAL
801AUTOCONF
802AUTOMAKE
803AUTOHEADER
804MAKEINFO
805install_sh
806STRIP
807INSTALL_STRIP_PROGRAM
808mkdir_p
809AWK
810SET_MAKE
811am__leading_dot
812AMTAR
813am__tar
814am__untar
815CC
816CFLAGS
817LDFLAGS
818CPPFLAGS
819ac_ct_CC
820EXEEXT
821OBJEXT
822DEPDIR
823am__include
824am__quote
825AMDEP_TRUE
826AMDEP_FALSE
827AMDEPBACKSLASH
828CCDEPMODE
829am__fastdepCC_TRUE
830am__fastdepCC_FALSE
831CPP
832CXX
833CXXFLAGS
834ac_ct_CXX
835CXXDEPMODE
836am__fastdepCXX_TRUE
837am__fastdepCXX_FALSE
838build
839build_cpu
840build_vendor
841build_os
842host
843host_cpu
844host_vendor
845host_os
846GREP
847EGREP
848LN_S
849ECHO
850AR
851RANLIB
852CXXCPP
853F77
854FFLAGS
855ac_ct_F77
856LIBTOOL
857LIBTOOL_DEPS
mmentovai0dbedc92006-09-25 21:16:15 +0000858SELFTEST_TRUE
859SELFTEST_FALSE
mmentovai8c2a4de2006-09-20 16:20:15 +0000860LIBOBJS
861LTLIBOBJS'
brynercb91a2f2006-08-25 21:14:45 +0000862ac_subst_files=''
mmentovai8c2a4de2006-09-20 16:20:15 +0000863 ac_precious_vars='build_alias
864host_alias
865target_alias
866CC
867CFLAGS
868LDFLAGS
869CPPFLAGS
870CPP
871CXX
872CXXFLAGS
873CCC
874CXXCPP
875F77
876FFLAGS'
877
brynercb91a2f2006-08-25 21:14:45 +0000878
879# Initialize some variables set by options.
880ac_init_help=
881ac_init_version=false
882# The variables have the same names as the options, with
883# dashes changed to underlines.
884cache_file=/dev/null
885exec_prefix=NONE
886no_create=
887no_recursion=
888prefix=NONE
889program_prefix=NONE
890program_suffix=NONE
891program_transform_name=s,x,x,
892silent=
893site=
894srcdir=
895verbose=
896x_includes=NONE
897x_libraries=NONE
898
899# Installation directory options.
900# These are left unexpanded so users can "make install exec_prefix=/foo"
901# and all the variables that are supposed to be based on exec_prefix
902# by default will actually change.
903# Use braces instead of parens because sh, perl, etc. also accept them.
mmentovai8c2a4de2006-09-20 16:20:15 +0000904# (The list follows the same order as the GNU Coding Standards.)
brynercb91a2f2006-08-25 21:14:45 +0000905bindir='${exec_prefix}/bin'
906sbindir='${exec_prefix}/sbin'
907libexecdir='${exec_prefix}/libexec'
mmentovai8c2a4de2006-09-20 16:20:15 +0000908datarootdir='${prefix}/share'
909datadir='${datarootdir}'
brynercb91a2f2006-08-25 21:14:45 +0000910sysconfdir='${prefix}/etc'
911sharedstatedir='${prefix}/com'
912localstatedir='${prefix}/var'
brynercb91a2f2006-08-25 21:14:45 +0000913includedir='${prefix}/include'
914oldincludedir='/usr/include'
mmentovai8c2a4de2006-09-20 16:20:15 +0000915docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
916infodir='${datarootdir}/info'
917htmldir='${docdir}'
918dvidir='${docdir}'
919pdfdir='${docdir}'
920psdir='${docdir}'
921libdir='${exec_prefix}/lib'
922localedir='${datarootdir}/locale'
923mandir='${datarootdir}/man'
brynercb91a2f2006-08-25 21:14:45 +0000924
925ac_prev=
mmentovai8c2a4de2006-09-20 16:20:15 +0000926ac_dashdash=
brynercb91a2f2006-08-25 21:14:45 +0000927for ac_option
928do
929 # If the previous option needs an argument, assign it.
930 if test -n "$ac_prev"; then
mmentovai8c2a4de2006-09-20 16:20:15 +0000931 eval $ac_prev=\$ac_option
brynercb91a2f2006-08-25 21:14:45 +0000932 ac_prev=
933 continue
934 fi
935
mmentovai8c2a4de2006-09-20 16:20:15 +0000936 case $ac_option in
937 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
938 *) ac_optarg=yes ;;
939 esac
brynercb91a2f2006-08-25 21:14:45 +0000940
941 # Accept the important Cygnus configure options, so we can diagnose typos.
942
mmentovai8c2a4de2006-09-20 16:20:15 +0000943 case $ac_dashdash$ac_option in
944 --)
945 ac_dashdash=yes ;;
brynercb91a2f2006-08-25 21:14:45 +0000946
947 -bindir | --bindir | --bindi | --bind | --bin | --bi)
948 ac_prev=bindir ;;
949 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
950 bindir=$ac_optarg ;;
951
952 -build | --build | --buil | --bui | --bu)
953 ac_prev=build_alias ;;
954 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
955 build_alias=$ac_optarg ;;
956
957 -cache-file | --cache-file | --cache-fil | --cache-fi \
958 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
959 ac_prev=cache_file ;;
960 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
961 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
962 cache_file=$ac_optarg ;;
963
964 --config-cache | -C)
965 cache_file=config.cache ;;
966
mmentovai8c2a4de2006-09-20 16:20:15 +0000967 -datadir | --datadir | --datadi | --datad)
brynercb91a2f2006-08-25 21:14:45 +0000968 ac_prev=datadir ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000969 -datadir=* | --datadir=* | --datadi=* | --datad=*)
brynercb91a2f2006-08-25 21:14:45 +0000970 datadir=$ac_optarg ;;
971
mmentovai8c2a4de2006-09-20 16:20:15 +0000972 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
973 | --dataroo | --dataro | --datar)
974 ac_prev=datarootdir ;;
975 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
976 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
977 datarootdir=$ac_optarg ;;
978
brynercb91a2f2006-08-25 21:14:45 +0000979 -disable-* | --disable-*)
980 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
983 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
984 { (exit 1); exit 1; }; }
985 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
mmentovai8c2a4de2006-09-20 16:20:15 +0000986 eval enable_$ac_feature=no ;;
987
988 -docdir | --docdir | --docdi | --doc | --do)
989 ac_prev=docdir ;;
990 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
991 docdir=$ac_optarg ;;
992
993 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994 ac_prev=dvidir ;;
995 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
996 dvidir=$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +0000997
998 -enable-* | --enable-*)
999 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1002 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1003 { (exit 1); exit 1; }; }
1004 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001005 eval enable_$ac_feature=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001006
1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009 | --exec | --exe | --ex)
1010 ac_prev=exec_prefix ;;
1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013 | --exec=* | --exe=* | --ex=*)
1014 exec_prefix=$ac_optarg ;;
1015
1016 -gas | --gas | --ga | --g)
1017 # Obsolete; use --with-gas.
1018 with_gas=yes ;;
1019
1020 -help | --help | --hel | --he | -h)
1021 ac_init_help=long ;;
1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023 ac_init_help=recursive ;;
1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025 ac_init_help=short ;;
1026
1027 -host | --host | --hos | --ho)
1028 ac_prev=host_alias ;;
1029 -host=* | --host=* | --hos=* | --ho=*)
1030 host_alias=$ac_optarg ;;
1031
mmentovai8c2a4de2006-09-20 16:20:15 +00001032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033 ac_prev=htmldir ;;
1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035 | --ht=*)
1036 htmldir=$ac_optarg ;;
1037
brynercb91a2f2006-08-25 21:14:45 +00001038 -includedir | --includedir | --includedi | --included | --include \
1039 | --includ | --inclu | --incl | --inc)
1040 ac_prev=includedir ;;
1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042 | --includ=* | --inclu=* | --incl=* | --inc=*)
1043 includedir=$ac_optarg ;;
1044
1045 -infodir | --infodir | --infodi | --infod | --info | --inf)
1046 ac_prev=infodir ;;
1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048 infodir=$ac_optarg ;;
1049
1050 -libdir | --libdir | --libdi | --libd)
1051 ac_prev=libdir ;;
1052 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053 libdir=$ac_optarg ;;
1054
1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056 | --libexe | --libex | --libe)
1057 ac_prev=libexecdir ;;
1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059 | --libexe=* | --libex=* | --libe=*)
1060 libexecdir=$ac_optarg ;;
1061
mmentovai8c2a4de2006-09-20 16:20:15 +00001062 -localedir | --localedir | --localedi | --localed | --locale)
1063 ac_prev=localedir ;;
1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065 localedir=$ac_optarg ;;
1066
brynercb91a2f2006-08-25 21:14:45 +00001067 -localstatedir | --localstatedir | --localstatedi | --localstated \
mmentovai8c2a4de2006-09-20 16:20:15 +00001068 | --localstate | --localstat | --localsta | --localst | --locals)
brynercb91a2f2006-08-25 21:14:45 +00001069 ac_prev=localstatedir ;;
1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
mmentovai8c2a4de2006-09-20 16:20:15 +00001071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
brynercb91a2f2006-08-25 21:14:45 +00001072 localstatedir=$ac_optarg ;;
1073
1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075 ac_prev=mandir ;;
1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077 mandir=$ac_optarg ;;
1078
1079 -nfp | --nfp | --nf)
1080 # Obsolete; use --without-fp.
1081 with_fp=no ;;
1082
1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084 | --no-cr | --no-c | -n)
1085 no_create=yes ;;
1086
1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089 no_recursion=yes ;;
1090
1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093 | --oldin | --oldi | --old | --ol | --o)
1094 ac_prev=oldincludedir ;;
1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098 oldincludedir=$ac_optarg ;;
1099
1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101 ac_prev=prefix ;;
1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103 prefix=$ac_optarg ;;
1104
1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106 | --program-pre | --program-pr | --program-p)
1107 ac_prev=program_prefix ;;
1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110 program_prefix=$ac_optarg ;;
1111
1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113 | --program-suf | --program-su | --program-s)
1114 ac_prev=program_suffix ;;
1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117 program_suffix=$ac_optarg ;;
1118
1119 -program-transform-name | --program-transform-name \
1120 | --program-transform-nam | --program-transform-na \
1121 | --program-transform-n | --program-transform- \
1122 | --program-transform | --program-transfor \
1123 | --program-transfo | --program-transf \
1124 | --program-trans | --program-tran \
1125 | --progr-tra | --program-tr | --program-t)
1126 ac_prev=program_transform_name ;;
1127 -program-transform-name=* | --program-transform-name=* \
1128 | --program-transform-nam=* | --program-transform-na=* \
1129 | --program-transform-n=* | --program-transform-=* \
1130 | --program-transform=* | --program-transfor=* \
1131 | --program-transfo=* | --program-transf=* \
1132 | --program-trans=* | --program-tran=* \
1133 | --progr-tra=* | --program-tr=* | --program-t=*)
1134 program_transform_name=$ac_optarg ;;
1135
mmentovai8c2a4de2006-09-20 16:20:15 +00001136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137 ac_prev=pdfdir ;;
1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139 pdfdir=$ac_optarg ;;
1140
1141 -psdir | --psdir | --psdi | --psd | --ps)
1142 ac_prev=psdir ;;
1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144 psdir=$ac_optarg ;;
1145
brynercb91a2f2006-08-25 21:14:45 +00001146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1148 silent=yes ;;
1149
1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151 ac_prev=sbindir ;;
1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153 | --sbi=* | --sb=*)
1154 sbindir=$ac_optarg ;;
1155
1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158 | --sharedst | --shareds | --shared | --share | --shar \
1159 | --sha | --sh)
1160 ac_prev=sharedstatedir ;;
1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164 | --sha=* | --sh=*)
1165 sharedstatedir=$ac_optarg ;;
1166
1167 -site | --site | --sit)
1168 ac_prev=site ;;
1169 -site=* | --site=* | --sit=*)
1170 site=$ac_optarg ;;
1171
1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173 ac_prev=srcdir ;;
1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175 srcdir=$ac_optarg ;;
1176
1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178 | --syscon | --sysco | --sysc | --sys | --sy)
1179 ac_prev=sysconfdir ;;
1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182 sysconfdir=$ac_optarg ;;
1183
1184 -target | --target | --targe | --targ | --tar | --ta | --t)
1185 ac_prev=target_alias ;;
1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187 target_alias=$ac_optarg ;;
1188
1189 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190 verbose=yes ;;
1191
1192 -version | --version | --versio | --versi | --vers | -V)
1193 ac_init_version=: ;;
1194
1195 -with-* | --with-*)
1196 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1199 { echo "$as_me: error: invalid package name: $ac_package" >&2
1200 { (exit 1); exit 1; }; }
1201 ac_package=`echo $ac_package| sed 's/-/_/g'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001202 eval with_$ac_package=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001203
1204 -without-* | --without-*)
1205 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1208 { echo "$as_me: error: invalid package name: $ac_package" >&2
1209 { (exit 1); exit 1; }; }
1210 ac_package=`echo $ac_package | sed 's/-/_/g'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001211 eval with_$ac_package=no ;;
brynercb91a2f2006-08-25 21:14:45 +00001212
1213 --x)
1214 # Obsolete; use --with-x.
1215 with_x=yes ;;
1216
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222 x_includes=$ac_optarg ;;
1223
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229 x_libraries=$ac_optarg ;;
1230
1231 -*) { echo "$as_me: error: unrecognized option: $ac_option
1232Try \`$0 --help' for more information." >&2
1233 { (exit 1); exit 1; }; }
1234 ;;
1235
1236 *=*)
1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1240 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1241 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +00001242 eval $ac_envvar=\$ac_optarg
brynercb91a2f2006-08-25 21:14:45 +00001243 export $ac_envvar ;;
1244
1245 *)
1246 # FIXME: should be removed in autoconf 3.0.
1247 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1250 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1251 ;;
1252
1253 esac
1254done
1255
1256if test -n "$ac_prev"; then
1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258 { echo "$as_me: error: missing argument to $ac_option" >&2
1259 { (exit 1); exit 1; }; }
1260fi
1261
mmentovai8c2a4de2006-09-20 16:20:15 +00001262# Be sure to have absolute directory names.
1263for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
brynercb91a2f2006-08-25 21:14:45 +00001267do
mmentovai8c2a4de2006-09-20 16:20:15 +00001268 eval ac_val=\$$ac_var
brynercb91a2f2006-08-25 21:14:45 +00001269 case $ac_val in
mmentovai8c2a4de2006-09-20 16:20:15 +00001270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
brynercb91a2f2006-08-25 21:14:45 +00001272 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001273 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1274 { (exit 1); exit 1; }; }
brynercb91a2f2006-08-25 21:14:45 +00001275done
1276
1277# There might be people who depend on the old broken behavior: `$host'
1278# used to hold the argument of --host etc.
1279# FIXME: To remove some day.
1280build=$build_alias
1281host=$host_alias
1282target=$target_alias
1283
1284# FIXME: To remove some day.
1285if test "x$host_alias" != x; then
1286 if test "x$build_alias" = x; then
1287 cross_compiling=maybe
1288 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1289 If a cross compiler is detected then cross compile mode will be used." >&2
1290 elif test "x$build_alias" != "x$host_alias"; then
1291 cross_compiling=yes
1292 fi
1293fi
1294
1295ac_tool_prefix=
1296test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298test "$silent" = yes && exec 6>/dev/null
1299
1300
mmentovai8c2a4de2006-09-20 16:20:15 +00001301ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302ac_ls_di=`ls -di .` &&
1303ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 { echo "$as_me: error: Working directory cannot be determined" >&2
1305 { (exit 1); exit 1; }; }
1306test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 { echo "$as_me: error: pwd does not report name of working directory" >&2
1308 { (exit 1); exit 1; }; }
1309
1310
brynercb91a2f2006-08-25 21:14:45 +00001311# Find the source files, if location was not specified.
1312if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00001314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$0" ||
brynercb91a2f2006-08-25 21:14:45 +00001316$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$0" : 'X\(//\)[^/]' \| \
1318 X"$0" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +00001319 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +00001320echo X"$0" |
mmentovai8c2a4de2006-09-20 16:20:15 +00001321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)[^/].*/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\).*/{
1334 s//\1/
1335 q
1336 }
1337 s/.*/./; q'`
brynercb91a2f2006-08-25 21:14:45 +00001338 srcdir=$ac_confdir
mmentovai8c2a4de2006-09-20 16:20:15 +00001339 if test ! -r "$srcdir/$ac_unique_file"; then
brynercb91a2f2006-08-25 21:14:45 +00001340 srcdir=..
1341 fi
1342else
1343 ac_srcdir_defaulted=no
1344fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001345if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
brynercb91a2f2006-08-25 21:14:45 +00001348 { (exit 1); exit 1; }; }
brynercb91a2f2006-08-25 21:14:45 +00001349fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001350ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351ac_abs_confdir=`(
1352 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
brynercb91a2f2006-08-25 21:14:45 +00001353 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +00001354 pwd)`
1355# When building in place, set srcdir=.
1356if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 srcdir=.
1358fi
1359# Remove unnecessary trailing slashes from srcdir.
1360# Double slashes in file names in object file debugging info
1361# mess up M-x gdb in Emacs.
1362case $srcdir in
1363*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364esac
1365for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370done
brynercb91a2f2006-08-25 21:14:45 +00001371
1372#
1373# Report the --help message.
1374#
1375if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1378 cat <<_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001379\`configure' configures breakpad 0.1 to adapt to many kinds of systems.
brynercb91a2f2006-08-25 21:14:45 +00001380
1381Usage: $0 [OPTION]... [VAR=VALUE]...
1382
1383To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384VAR=VALUE. See below for descriptions of some of the useful variables.
1385
1386Defaults for the options are specified in brackets.
1387
1388Configuration:
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398
brynercb91a2f2006-08-25 21:14:45 +00001399Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
1401 [$ac_default_prefix]
1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1403 [PREFIX]
1404
1405By default, \`make install' will install all the files in
1406\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408for instance \`--prefix=\$HOME'.
1409
1410For better control, use the options below.
1411
1412Fine tuning of the installation directories:
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
brynercb91a2f2006-08-25 21:14:45 +00001416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
mmentovai8c2a4de2006-09-20 16:20:15 +00001422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
mmentovaie5dc6082007-02-14 19:51:05 +00001427 --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad]
mmentovai8c2a4de2006-09-20 16:20:15 +00001428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
brynercb91a2f2006-08-25 21:14:45 +00001432_ACEOF
1433
1434 cat <<\_ACEOF
1435
1436Program names:
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1440
1441System types:
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444_ACEOF
1445fi
1446
1447if test -n "$ac_init_help"; then
1448 case $ac_init_help in
mmentovaie5dc6082007-02-14 19:51:05 +00001449 short | recursive ) echo "Configuration of breakpad 0.1:";;
brynercb91a2f2006-08-25 21:14:45 +00001450 esac
1451 cat <<\_ACEOF
1452
1453Optional Features:
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1456 --disable-dependency-tracking speeds up one-time build
1457 --enable-dependency-tracking do not reject slow dependency extractors
mmentovai8c2a4de2006-09-20 16:20:15 +00001458 --enable-shared[=PKGS] build shared libraries [default=yes]
1459 --enable-static[=PKGS] build static libraries [default=yes]
brynercb91a2f2006-08-25 21:14:45 +00001460 --enable-fast-install[=PKGS]
1461 optimize for fast installation [default=yes]
1462 --disable-libtool-lock avoid locking (might break parallel builds)
mmentovai0dbedc92006-09-25 21:16:15 +00001463 --enable-selftest Run extra tests with "make check" (may conflict with
1464 optimizations) (default is no)
brynercb91a2f2006-08-25 21:14:45 +00001465
1466Optional Packages:
1467 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1468 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1469 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1470 --with-pic try to use only PIC/non-PIC objects [default=use
1471 both]
mmentovai8c2a4de2006-09-20 16:20:15 +00001472 --with-tags[=TAGS] include additional configurations [automatic]
brynercb91a2f2006-08-25 21:14:45 +00001473
1474Some influential environment variables:
1475 CC C compiler command
1476 CFLAGS C compiler flags
1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 nonstandard directory <lib dir>
mmentovai8c2a4de2006-09-20 16:20:15 +00001479 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1480 you have headers in a nonstandard directory <include dir>
brynercb91a2f2006-08-25 21:14:45 +00001481 CPP C preprocessor
1482 CXX C++ compiler command
1483 CXXFLAGS C++ compiler flags
1484 CXXCPP C++ preprocessor
mmentovai8c2a4de2006-09-20 16:20:15 +00001485 F77 Fortran 77 compiler command
1486 FFLAGS Fortran 77 compiler flags
brynercb91a2f2006-08-25 21:14:45 +00001487
1488Use these variables to override the choices made by `configure' or to help
1489it to find libraries and programs with nonstandard names/locations.
1490
1491Report bugs to <opensource@google.com>.
1492_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001493ac_status=$?
brynercb91a2f2006-08-25 21:14:45 +00001494fi
1495
1496if test "$ac_init_help" = "recursive"; then
1497 # If there are subdirs, report their specific --help.
brynercb91a2f2006-08-25 21:14:45 +00001498 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
mmentovai8c2a4de2006-09-20 16:20:15 +00001499 test -d "$ac_dir" || continue
brynercb91a2f2006-08-25 21:14:45 +00001500 ac_builddir=.
1501
mmentovai8c2a4de2006-09-20 16:20:15 +00001502case "$ac_dir" in
1503.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504*)
brynercb91a2f2006-08-25 21:14:45 +00001505 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001506 # A ".." for each directory in $ac_dir_suffix.
1507 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1508 case $ac_top_builddir_sub in
1509 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1511 esac ;;
1512esac
1513ac_abs_top_builddir=$ac_pwd
1514ac_abs_builddir=$ac_pwd$ac_dir_suffix
1515# for backward compatibility:
1516ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +00001517
1518case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +00001519 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +00001520 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +00001521 ac_top_srcdir=$ac_top_builddir_sub
1522 ac_abs_top_srcdir=$ac_pwd ;;
1523 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +00001524 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +00001525 ac_top_srcdir=$srcdir
1526 ac_abs_top_srcdir=$srcdir ;;
1527 *) # Relative name.
1528 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1529 ac_top_srcdir=$ac_top_build_prefix$srcdir
1530 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +00001531esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001532ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +00001533
mmentovai8c2a4de2006-09-20 16:20:15 +00001534 cd "$ac_dir" || { ac_status=$?; continue; }
1535 # Check for guested configure.
1536 if test -f "$ac_srcdir/configure.gnu"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1539 elif test -f "$ac_srcdir/configure"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure" --help=recursive
brynercb91a2f2006-08-25 21:14:45 +00001542 else
1543 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
mmentovai8c2a4de2006-09-20 16:20:15 +00001544 fi || ac_status=$?
1545 cd "$ac_pwd" || { ac_status=$?; break; }
brynercb91a2f2006-08-25 21:14:45 +00001546 done
1547fi
1548
mmentovai8c2a4de2006-09-20 16:20:15 +00001549test -n "$ac_init_help" && exit $ac_status
brynercb91a2f2006-08-25 21:14:45 +00001550if $ac_init_version; then
1551 cat <<\_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001552breakpad configure 0.1
mmentovai8c2a4de2006-09-20 16:20:15 +00001553generated by GNU Autoconf 2.60
brynercb91a2f2006-08-25 21:14:45 +00001554
mmentovai8c2a4de2006-09-20 16:20:15 +00001555Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15562002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +00001557This configure script is free software; the Free Software Foundation
1558gives unlimited permission to copy, distribute and modify it.
1559_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001560 exit
brynercb91a2f2006-08-25 21:14:45 +00001561fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001562cat >config.log <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00001563This file contains any messages produced by compilers while
1564running configure, to aid debugging if configure makes a mistake.
1565
mmentovaie5dc6082007-02-14 19:51:05 +00001566It was created by breakpad $as_me 0.1, which was
mmentovai8c2a4de2006-09-20 16:20:15 +00001567generated by GNU Autoconf 2.60. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +00001568
1569 $ $0 $@
1570
1571_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001572exec 5>>config.log
brynercb91a2f2006-08-25 21:14:45 +00001573{
1574cat <<_ASUNAME
1575## --------- ##
1576## Platform. ##
1577## --------- ##
1578
1579hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1580uname -m = `(uname -m) 2>/dev/null || echo unknown`
1581uname -r = `(uname -r) 2>/dev/null || echo unknown`
1582uname -s = `(uname -s) 2>/dev/null || echo unknown`
1583uname -v = `(uname -v) 2>/dev/null || echo unknown`
1584
1585/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1586/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1587
1588/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1589/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1590/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
mmentovai8c2a4de2006-09-20 16:20:15 +00001591/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
brynercb91a2f2006-08-25 21:14:45 +00001592/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1593/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1594/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1595
1596_ASUNAME
1597
1598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599for as_dir in $PATH
1600do
1601 IFS=$as_save_IFS
1602 test -z "$as_dir" && as_dir=.
1603 echo "PATH: $as_dir"
1604done
mmentovai8c2a4de2006-09-20 16:20:15 +00001605IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00001606
1607} >&5
1608
1609cat >&5 <<_ACEOF
1610
1611
1612## ----------- ##
1613## Core tests. ##
1614## ----------- ##
1615
1616_ACEOF
1617
1618
1619# Keep a trace of the command line.
1620# Strip out --no-create and --no-recursion so they do not pile up.
1621# Strip out --silent because we don't want to record it for future runs.
1622# Also quote any args containing shell meta-characters.
1623# Make two passes to allow for proper duplicate-argument suppression.
1624ac_configure_args=
1625ac_configure_args0=
1626ac_configure_args1=
brynercb91a2f2006-08-25 21:14:45 +00001627ac_must_keep_next=false
1628for ac_pass in 1 2
1629do
1630 for ac_arg
1631 do
1632 case $ac_arg in
1633 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1634 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1635 | -silent | --silent | --silen | --sile | --sil)
1636 continue ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001637 *\'*)
brynercb91a2f2006-08-25 21:14:45 +00001638 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1639 esac
1640 case $ac_pass in
1641 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1642 2)
1643 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1644 if test $ac_must_keep_next = true; then
1645 ac_must_keep_next=false # Got value, back to normal.
1646 else
1647 case $ac_arg in
1648 *=* | --config-cache | -C | -disable-* | --disable-* \
1649 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1650 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1651 | -with-* | --with-* | -without-* | --without-* | --x)
1652 case "$ac_configure_args0 " in
1653 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1654 esac
1655 ;;
1656 -* ) ac_must_keep_next=true ;;
1657 esac
1658 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001659 ac_configure_args="$ac_configure_args '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00001660 ;;
1661 esac
1662 done
1663done
1664$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1665$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1666
1667# When interrupted or exit'd, cleanup temporary files, and complete
1668# config.log. We remove comments because anyway the quotes in there
1669# would cause problems or look ugly.
mmentovai8c2a4de2006-09-20 16:20:15 +00001670# WARNING: Use '\'' to represent an apostrophe within the trap.
1671# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
brynercb91a2f2006-08-25 21:14:45 +00001672trap 'exit_status=$?
1673 # Save into config.log some information that might help in debugging.
1674 {
1675 echo
1676
1677 cat <<\_ASBOX
1678## ---------------- ##
1679## Cache variables. ##
1680## ---------------- ##
1681_ASBOX
1682 echo
1683 # The following way of writing the cache mishandles newlines in values,
mmentovai8c2a4de2006-09-20 16:20:15 +00001684(
1685 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1686 eval ac_val=\$$ac_var
1687 case $ac_val in #(
1688 *${as_nl}*)
1689 case $ac_var in #(
1690 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1691echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1692 esac
1693 case $ac_var in #(
1694 _ | IFS | as_nl) ;; #(
1695 *) $as_unset $ac_var ;;
1696 esac ;;
1697 esac
1698 done
brynercb91a2f2006-08-25 21:14:45 +00001699 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +00001700 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1701 *${as_nl}ac_space=\ *)
brynercb91a2f2006-08-25 21:14:45 +00001702 sed -n \
mmentovai8c2a4de2006-09-20 16:20:15 +00001703 "s/'\''/'\''\\\\'\'''\''/g;
1704 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1705 ;; #(
brynercb91a2f2006-08-25 21:14:45 +00001706 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00001707 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +00001708 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001709 esac |
1710 sort
1711)
brynercb91a2f2006-08-25 21:14:45 +00001712 echo
1713
1714 cat <<\_ASBOX
1715## ----------------- ##
1716## Output variables. ##
1717## ----------------- ##
1718_ASBOX
1719 echo
1720 for ac_var in $ac_subst_vars
1721 do
mmentovai8c2a4de2006-09-20 16:20:15 +00001722 eval ac_val=\$$ac_var
1723 case $ac_val in
1724 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1725 esac
1726 echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00001727 done | sort
1728 echo
1729
1730 if test -n "$ac_subst_files"; then
1731 cat <<\_ASBOX
mmentovai8c2a4de2006-09-20 16:20:15 +00001732## ------------------- ##
1733## File substitutions. ##
1734## ------------------- ##
brynercb91a2f2006-08-25 21:14:45 +00001735_ASBOX
1736 echo
1737 for ac_var in $ac_subst_files
1738 do
mmentovai8c2a4de2006-09-20 16:20:15 +00001739 eval ac_val=\$$ac_var
1740 case $ac_val in
1741 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742 esac
1743 echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00001744 done | sort
1745 echo
1746 fi
1747
1748 if test -s confdefs.h; then
1749 cat <<\_ASBOX
1750## ----------- ##
1751## confdefs.h. ##
1752## ----------- ##
1753_ASBOX
1754 echo
mmentovai8c2a4de2006-09-20 16:20:15 +00001755 cat confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00001756 echo
1757 fi
1758 test "$ac_signal" != 0 &&
1759 echo "$as_me: caught signal $ac_signal"
1760 echo "$as_me: exit $exit_status"
1761 } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00001762 rm -f core *.core core.conftest.* &&
1763 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
brynercb91a2f2006-08-25 21:14:45 +00001764 exit $exit_status
mmentovai8c2a4de2006-09-20 16:20:15 +00001765' 0
brynercb91a2f2006-08-25 21:14:45 +00001766for ac_signal in 1 2 13 15; do
1767 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1768done
1769ac_signal=0
1770
1771# confdefs.h avoids OS command line length limits that DEFS can exceed.
mmentovai8c2a4de2006-09-20 16:20:15 +00001772rm -f -r conftest* confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00001773
1774# Predefined preprocessor variables.
1775
1776cat >>confdefs.h <<_ACEOF
1777#define PACKAGE_NAME "$PACKAGE_NAME"
1778_ACEOF
1779
1780
1781cat >>confdefs.h <<_ACEOF
1782#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1783_ACEOF
1784
1785
1786cat >>confdefs.h <<_ACEOF
1787#define PACKAGE_VERSION "$PACKAGE_VERSION"
1788_ACEOF
1789
1790
1791cat >>confdefs.h <<_ACEOF
1792#define PACKAGE_STRING "$PACKAGE_STRING"
1793_ACEOF
1794
1795
1796cat >>confdefs.h <<_ACEOF
1797#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1798_ACEOF
1799
1800
1801# Let the site file select an alternate cache file if it wants to.
1802# Prefer explicitly selected file to automatically selected ones.
mmentovai8c2a4de2006-09-20 16:20:15 +00001803if test -n "$CONFIG_SITE"; then
1804 set x "$CONFIG_SITE"
1805elif test "x$prefix" != xNONE; then
1806 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1807else
1808 set x "$ac_default_prefix/share/config.site" \
1809 "$ac_default_prefix/etc/config.site"
brynercb91a2f2006-08-25 21:14:45 +00001810fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001811shift
1812for ac_site_file
1813do
brynercb91a2f2006-08-25 21:14:45 +00001814 if test -r "$ac_site_file"; then
1815 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1816echo "$as_me: loading site script $ac_site_file" >&6;}
1817 sed 's/^/| /' "$ac_site_file" >&5
1818 . "$ac_site_file"
1819 fi
1820done
1821
1822if test -r "$cache_file"; then
1823 # Some versions of bash will fail to source /dev/null (special
1824 # files actually), so we avoid doing that.
1825 if test -f "$cache_file"; then
1826 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1827echo "$as_me: loading cache $cache_file" >&6;}
1828 case $cache_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00001829 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1830 *) . "./$cache_file";;
brynercb91a2f2006-08-25 21:14:45 +00001831 esac
1832 fi
1833else
1834 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1835echo "$as_me: creating cache $cache_file" >&6;}
1836 >$cache_file
1837fi
1838
1839# Check that the precious variables saved in the cache have kept the same
1840# value.
1841ac_cache_corrupted=false
mmentovai8c2a4de2006-09-20 16:20:15 +00001842for ac_var in $ac_precious_vars; do
brynercb91a2f2006-08-25 21:14:45 +00001843 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1844 eval ac_new_set=\$ac_env_${ac_var}_set
mmentovai8c2a4de2006-09-20 16:20:15 +00001845 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1846 eval ac_new_val=\$ac_env_${ac_var}_value
brynercb91a2f2006-08-25 21:14:45 +00001847 case $ac_old_set,$ac_new_set in
1848 set,)
1849 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1850echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1851 ac_cache_corrupted=: ;;
1852 ,set)
1853 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1854echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1855 ac_cache_corrupted=: ;;
1856 ,);;
1857 *)
1858 if test "x$ac_old_val" != "x$ac_new_val"; then
1859 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1860echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1861 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1862echo "$as_me: former value: $ac_old_val" >&2;}
1863 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1864echo "$as_me: current value: $ac_new_val" >&2;}
1865 ac_cache_corrupted=:
1866 fi;;
1867 esac
1868 # Pass precious variables to config.status.
1869 if test "$ac_new_set" = set; then
1870 case $ac_new_val in
mmentovai8c2a4de2006-09-20 16:20:15 +00001871 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00001872 *) ac_arg=$ac_var=$ac_new_val ;;
1873 esac
1874 case " $ac_configure_args " in
1875 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1876 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1877 esac
1878 fi
1879done
1880if $ac_cache_corrupted; then
1881 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1882echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1883 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1884echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1885 { (exit 1); exit 1; }; }
1886fi
1887
mmentovai8c2a4de2006-09-20 16:20:15 +00001888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
brynercb91a2f2006-08-25 21:14:45 +00001912ac_ext=c
1913ac_cpp='$CPP $CPPFLAGS'
1914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1916ac_compiler_gnu=$ac_cv_c_compiler_gnu
1917
1918
1919
brynercb91a2f2006-08-25 21:14:45 +00001920ac_aux_dir=
mmentovai8c2a4de2006-09-20 16:20:15 +00001921for ac_dir in autotools "$srcdir"/autotools; do
1922 if test -f "$ac_dir/install-sh"; then
brynercb91a2f2006-08-25 21:14:45 +00001923 ac_aux_dir=$ac_dir
1924 ac_install_sh="$ac_aux_dir/install-sh -c"
1925 break
mmentovai8c2a4de2006-09-20 16:20:15 +00001926 elif test -f "$ac_dir/install.sh"; then
brynercb91a2f2006-08-25 21:14:45 +00001927 ac_aux_dir=$ac_dir
1928 ac_install_sh="$ac_aux_dir/install.sh -c"
1929 break
mmentovai8c2a4de2006-09-20 16:20:15 +00001930 elif test -f "$ac_dir/shtool"; then
brynercb91a2f2006-08-25 21:14:45 +00001931 ac_aux_dir=$ac_dir
1932 ac_install_sh="$ac_aux_dir/shtool install -c"
1933 break
1934 fi
1935done
1936if test -z "$ac_aux_dir"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00001937 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&5
1938echo "$as_me: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00001939 { (exit 1); exit 1; }; }
1940fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001941
1942# These three variables are undocumented and unsupported,
1943# and are intended to be withdrawn in a future Autoconf release.
1944# They can cause serious problems if a builder's source tree is in a directory
1945# whose full name contains unusual characters.
1946ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1947ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1948ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1949
brynercb91a2f2006-08-25 21:14:45 +00001950
mmentovai425d2562006-08-30 20:05:05 +00001951
1952am__api_version="1.9"
brynercb91a2f2006-08-25 21:14:45 +00001953# Find a good install program. We prefer a C program (faster),
1954# so one script is as good as another. But avoid the broken or
1955# incompatible versions:
1956# SysV /etc/install, /usr/sbin/install
1957# SunOS /usr/etc/install
1958# IRIX /sbin/install
1959# AIX /bin/install
1960# AmigaOS /C/install, which installs bootblocks on floppy discs
1961# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1962# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1963# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1964# OS/2's system install, which has a completely different semantic
1965# ./install, which can be erroneously created by make from ./install.sh.
mmentovai8c2a4de2006-09-20 16:20:15 +00001966{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1967echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00001968if test -z "$INSTALL"; then
1969if test "${ac_cv_path_install+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971else
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973for as_dir in $PATH
1974do
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
1977 # Account for people who put trailing slashes in PATH elements.
1978case $as_dir/ in
1979 ./ | .// | /cC/* | \
1980 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1981 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1982 /usr/ucb/* ) ;;
1983 *)
1984 # OSF1 and SCO ODT 3.0 have their own names for install.
1985 # Don't use installbsd from OSF since it installs stuff as root
1986 # by default.
1987 for ac_prog in ginstall scoinst install; do
1988 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00001989 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00001990 if test $ac_prog = install &&
1991 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1992 # AIX install. It has an incompatible calling convention.
1993 :
1994 elif test $ac_prog = install &&
1995 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1996 # program-specific install script used by HP pwplus--don't use.
1997 :
1998 else
1999 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2000 break 3
2001 fi
2002 fi
2003 done
2004 done
2005 ;;
2006esac
2007done
mmentovai8c2a4de2006-09-20 16:20:15 +00002008IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002009
2010
2011fi
2012 if test "${ac_cv_path_install+set}" = set; then
2013 INSTALL=$ac_cv_path_install
2014 else
mmentovai8c2a4de2006-09-20 16:20:15 +00002015 # As a last resort, use the slow shell script. Don't cache a
2016 # value for INSTALL within a source directory, because that will
brynercb91a2f2006-08-25 21:14:45 +00002017 # break other packages using the cache if that directory is
mmentovai8c2a4de2006-09-20 16:20:15 +00002018 # removed, or if the value is a relative name.
brynercb91a2f2006-08-25 21:14:45 +00002019 INSTALL=$ac_install_sh
2020 fi
2021fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002022{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2023echo "${ECHO_T}$INSTALL" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002024
2025# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2026# It thinks the first close brace ends the variable substitution.
2027test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2028
2029test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2030
2031test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2032
mmentovai8c2a4de2006-09-20 16:20:15 +00002033{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2034echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002035# Just in case
2036sleep 1
2037echo timestamp > conftest.file
2038# Do `set' in a subshell so we don't clobber the current shell's
2039# arguments. Must try -L first in case configure is actually a
2040# symlink; some systems play weird games with the mod time of symlinks
2041# (eg FreeBSD returns the mod time of the symlink's containing
2042# directory).
2043if (
2044 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2045 if test "$*" = "X"; then
2046 # -L didn't work.
2047 set X `ls -t $srcdir/configure conftest.file`
2048 fi
2049 rm -f conftest.file
2050 if test "$*" != "X $srcdir/configure conftest.file" \
2051 && test "$*" != "X conftest.file $srcdir/configure"; then
2052
2053 # If neither matched, then we have a broken ls. This can happen
2054 # if, for instance, CONFIG_SHELL is bash and it inherits a
2055 # broken ls alias from the environment. This has actually
2056 # happened. Such a system could not be considered "sane".
2057 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2058alias in your environment" >&5
2059echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2060alias in your environment" >&2;}
2061 { (exit 1); exit 1; }; }
2062 fi
2063
2064 test "$2" = conftest.file
2065 )
2066then
2067 # Ok.
2068 :
2069else
2070 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2071Check your system clock" >&5
2072echo "$as_me: error: newly created file is older than distributed files!
2073Check your system clock" >&2;}
2074 { (exit 1); exit 1; }; }
2075fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002076{ echo "$as_me:$LINENO: result: yes" >&5
2077echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002078test "$program_prefix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002079 program_transform_name="s&^&$program_prefix&;$program_transform_name"
brynercb91a2f2006-08-25 21:14:45 +00002080# Use a double $ so make ignores it.
2081test "$program_suffix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002082 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
brynercb91a2f2006-08-25 21:14:45 +00002083# Double any \ or $. echo might interpret backslashes.
2084# By default was `s,x,x', remove it if useless.
2085cat <<\_ACEOF >conftest.sed
2086s/[\\$]/&&/g;s/;s,x,x,$//
2087_ACEOF
2088program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
mmentovai8c2a4de2006-09-20 16:20:15 +00002089rm -f conftest.sed
brynercb91a2f2006-08-25 21:14:45 +00002090
2091# expand $ac_aux_dir to an absolute path
2092am_aux_dir=`cd $ac_aux_dir && pwd`
2093
2094test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2095# Use eval to expand $SHELL
2096if eval "$MISSING --run true"; then
2097 am_missing_run="$MISSING --run "
2098else
2099 am_missing_run=
2100 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2101echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2102fi
2103
2104if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2105 # We used to keeping the `.' as first argument, in order to
2106 # allow $(mkdir_p) to be used without argument. As in
2107 # $(mkdir_p) $(somedir)
2108 # where $(somedir) is conditionally defined. However this is wrong
2109 # for two reasons:
2110 # 1. if the package is installed by a user who cannot write `.'
2111 # make install will fail,
2112 # 2. the above comment should most certainly read
2113 # $(mkdir_p) $(DESTDIR)$(somedir)
2114 # so it does not work when $(somedir) is undefined and
2115 # $(DESTDIR) is not.
2116 # To support the latter case, we have to write
2117 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2118 # so the `.' trick is pointless.
2119 mkdir_p='mkdir -p --'
2120else
2121 # On NextStep and OpenStep, the `mkdir' command does not
2122 # recognize any option. It will interpret all options as
2123 # directories to create, and then abort because `.' already
2124 # exists.
2125 for d in ./-p ./--version;
2126 do
2127 test -d $d && rmdir $d
2128 done
2129 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2130 if test -f "$ac_aux_dir/mkinstalldirs"; then
2131 mkdir_p='$(mkinstalldirs)'
2132 else
2133 mkdir_p='$(install_sh) -d'
2134 fi
2135fi
2136
2137for ac_prog in gawk mawk nawk awk
2138do
2139 # Extract the first word of "$ac_prog", so it can be a program name with args.
2140set dummy $ac_prog; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002141{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002143if test "${ac_cv_prog_AWK+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2145else
2146 if test -n "$AWK"; then
2147 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2148else
2149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150for as_dir in $PATH
2151do
2152 IFS=$as_save_IFS
2153 test -z "$as_dir" && as_dir=.
2154 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002156 ac_cv_prog_AWK="$ac_prog"
2157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158 break 2
2159 fi
2160done
2161done
mmentovai8c2a4de2006-09-20 16:20:15 +00002162IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002163
2164fi
2165fi
2166AWK=$ac_cv_prog_AWK
2167if test -n "$AWK"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002168 { echo "$as_me:$LINENO: result: $AWK" >&5
2169echo "${ECHO_T}$AWK" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002170else
mmentovai8c2a4de2006-09-20 16:20:15 +00002171 { echo "$as_me:$LINENO: result: no" >&5
2172echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002173fi
2174
mmentovai8c2a4de2006-09-20 16:20:15 +00002175
brynercb91a2f2006-08-25 21:14:45 +00002176 test -n "$AWK" && break
2177done
2178
mmentovai8c2a4de2006-09-20 16:20:15 +00002179{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2180echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2181set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2182if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184else
2185 cat >conftest.make <<\_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00002186SHELL = /bin/sh
brynercb91a2f2006-08-25 21:14:45 +00002187all:
mmentovai8c2a4de2006-09-20 16:20:15 +00002188 @echo '@@@%%%=$(MAKE)=@@@%%%'
brynercb91a2f2006-08-25 21:14:45 +00002189_ACEOF
2190# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
mmentovai8c2a4de2006-09-20 16:20:15 +00002191case `${MAKE-make} -f conftest.make 2>/dev/null` in
2192 *@@@%%%=?*=@@@%%%*)
2193 eval ac_cv_prog_make_${ac_make}_set=yes;;
2194 *)
2195 eval ac_cv_prog_make_${ac_make}_set=no;;
2196esac
brynercb91a2f2006-08-25 21:14:45 +00002197rm -f conftest.make
2198fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002199if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2200 { echo "$as_me:$LINENO: result: yes" >&5
2201echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002202 SET_MAKE=
2203else
mmentovai8c2a4de2006-09-20 16:20:15 +00002204 { echo "$as_me:$LINENO: result: no" >&5
2205echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002206 SET_MAKE="MAKE=${MAKE-make}"
2207fi
2208
2209rm -rf .tst 2>/dev/null
2210mkdir .tst 2>/dev/null
2211if test -d .tst; then
2212 am__leading_dot=.
2213else
2214 am__leading_dot=_
2215fi
2216rmdir .tst 2>/dev/null
2217
2218# test to see if srcdir already configured
2219if test "`cd $srcdir && pwd`" != "`pwd`" &&
2220 test -f $srcdir/config.status; then
2221 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2222echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2223 { (exit 1); exit 1; }; }
2224fi
2225
2226# test whether we have cygpath
2227if test -z "$CYGPATH_W"; then
2228 if (cygpath --version) >/dev/null 2>/dev/null; then
2229 CYGPATH_W='cygpath -w'
2230 else
2231 CYGPATH_W=echo
2232 fi
2233fi
2234
2235
2236# Define the identity of the package.
mmentovaie5dc6082007-02-14 19:51:05 +00002237 PACKAGE='breakpad'
brynercb91a2f2006-08-25 21:14:45 +00002238 VERSION='0.1'
2239
2240
2241cat >>confdefs.h <<_ACEOF
2242#define PACKAGE "$PACKAGE"
2243_ACEOF
2244
2245
2246cat >>confdefs.h <<_ACEOF
2247#define VERSION "$VERSION"
2248_ACEOF
2249
2250# Some tools Automake needs.
2251
2252ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2253
2254
2255AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2256
2257
2258AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2259
2260
2261AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2262
2263
2264MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2265
2266install_sh=${install_sh-"$am_aux_dir/install-sh"}
2267
2268# Installed binaries are usually stripped using `strip' when the user
2269# run `make install-strip'. However `strip' might not be the right
2270# tool to use in cross-compilation environments, therefore Automake
2271# will honor the `STRIP' environment variable to overrule this program.
2272if test "$cross_compiling" != no; then
2273 if test -n "$ac_tool_prefix"; then
2274 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2275set dummy ${ac_tool_prefix}strip; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002276{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002278if test "${ac_cv_prog_STRIP+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2280else
2281 if test -n "$STRIP"; then
2282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2283else
2284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285for as_dir in $PATH
2286do
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002291 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 break 2
2294 fi
2295done
2296done
mmentovai8c2a4de2006-09-20 16:20:15 +00002297IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002298
2299fi
2300fi
2301STRIP=$ac_cv_prog_STRIP
2302if test -n "$STRIP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002303 { echo "$as_me:$LINENO: result: $STRIP" >&5
2304echo "${ECHO_T}$STRIP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002305else
mmentovai8c2a4de2006-09-20 16:20:15 +00002306 { echo "$as_me:$LINENO: result: no" >&5
2307echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002308fi
2309
mmentovai8c2a4de2006-09-20 16:20:15 +00002310
brynercb91a2f2006-08-25 21:14:45 +00002311fi
2312if test -z "$ac_cv_prog_STRIP"; then
2313 ac_ct_STRIP=$STRIP
2314 # Extract the first word of "strip", so it can be a program name with args.
2315set dummy strip; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002316{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002318if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320else
2321 if test -n "$ac_ct_STRIP"; then
2322 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2323else
2324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325for as_dir in $PATH
2326do
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002331 ac_cv_prog_ac_ct_STRIP="strip"
2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 break 2
2334 fi
2335done
2336done
mmentovai8c2a4de2006-09-20 16:20:15 +00002337IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002338
brynercb91a2f2006-08-25 21:14:45 +00002339fi
2340fi
2341ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2342if test -n "$ac_ct_STRIP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002343 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2344echo "${ECHO_T}$ac_ct_STRIP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002345else
mmentovai8c2a4de2006-09-20 16:20:15 +00002346 { echo "$as_me:$LINENO: result: no" >&5
2347echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002348fi
2349
mmentovai8c2a4de2006-09-20 16:20:15 +00002350 if test "x$ac_ct_STRIP" = x; then
2351 STRIP=":"
2352 else
2353 case $cross_compiling:$ac_tool_warned in
2354yes:)
2355{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2356whose name does not start with the host triplet. If you think this
2357configuration is useful to you, please write to autoconf@gnu.org." >&5
2358echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2359whose name does not start with the host triplet. If you think this
2360configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2361ac_tool_warned=yes ;;
2362esac
2363 STRIP=$ac_ct_STRIP
2364 fi
brynercb91a2f2006-08-25 21:14:45 +00002365else
2366 STRIP="$ac_cv_prog_STRIP"
2367fi
2368
2369fi
2370INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2371
2372# We need awk for the "check" target. The system "awk" is bad on
2373# some platforms.
2374# Always define AMTAR for backward compatibility.
2375
2376AMTAR=${AMTAR-"${am_missing_run}tar"}
2377
mmentovaidb3342a2006-12-05 22:52:28 +00002378
2379{ echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2380echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; }
2381# Loop over all known methods to create a tar archive until one works.
2382_am_tools='gnutar plaintar pax cpio none'
2383_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2384# Do not fold the above two line into one, because Tru64 sh and
2385# Solaris sh will not grok spaces in the rhs of `-'.
2386for _am_tool in $_am_tools
2387do
2388 case $_am_tool in
2389 gnutar)
2390 for _am_tar in tar gnutar gtar;
2391 do
2392 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2393 ($_am_tar --version) >&5 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); } && break
2397 done
2398 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2399 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2400 am__untar="$_am_tar -xf -"
2401 ;;
2402 plaintar)
2403 # Must skip GNU tar: if it does not support --format= it doesn't create
2404 # ustar tarball either.
2405 (tar --version) >/dev/null 2>&1 && continue
2406 am__tar='tar chf - "$$tardir"'
2407 am__tar_='tar chf - "$tardir"'
2408 am__untar='tar xf -'
2409 ;;
2410 pax)
2411 am__tar='pax -L -x ustar -w "$$tardir"'
2412 am__tar_='pax -L -x ustar -w "$tardir"'
2413 am__untar='pax -r'
2414 ;;
2415 cpio)
2416 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2417 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2418 am__untar='cpio -i -H ustar -d'
2419 ;;
2420 none)
2421 am__tar=false
2422 am__tar_=false
2423 am__untar=false
2424 ;;
2425 esac
2426
2427 # If the value was cached, stop now. We just wanted to have am__tar
2428 # and am__untar set.
2429 test -n "${am_cv_prog_tar_ustar}" && break
2430
2431 # tar/untar a dummy directory, and stop if the command works
2432 rm -rf conftest.dir
2433 mkdir conftest.dir
2434 echo GrepMe > conftest.dir/file
2435 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2436 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2437 ac_status=$?
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }
2440 rm -rf conftest.dir
2441 if test -s conftest.tar; then
2442 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2443 ($am__untar <conftest.tar) >&5 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }
2447 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2448 fi
2449done
2450rm -rf conftest.dir
2451
2452if test "${am_cv_prog_tar_ustar+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
2454else
2455 am_cv_prog_tar_ustar=$_am_tool
2456fi
2457
2458{ echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2459echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002460
2461
2462
2463
2464
mmentovai8c2a4de2006-09-20 16:20:15 +00002465ac_config_headers="$ac_config_headers src/config.h"
brynercb91a2f2006-08-25 21:14:45 +00002466
2467
brynercb91a2f2006-08-25 21:14:45 +00002468ac_ext=c
2469ac_cpp='$CPP $CPPFLAGS'
2470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2472ac_compiler_gnu=$ac_cv_c_compiler_gnu
2473if test -n "$ac_tool_prefix"; then
2474 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2475set dummy ${ac_tool_prefix}gcc; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002476{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002478if test "${ac_cv_prog_CC+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2480else
2481 if test -n "$CC"; then
2482 ac_cv_prog_CC="$CC" # Let the user override the test.
2483else
2484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485for as_dir in $PATH
2486do
2487 IFS=$as_save_IFS
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002491 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 break 2
2494 fi
2495done
2496done
mmentovai8c2a4de2006-09-20 16:20:15 +00002497IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002498
2499fi
2500fi
2501CC=$ac_cv_prog_CC
2502if test -n "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002503 { echo "$as_me:$LINENO: result: $CC" >&5
2504echo "${ECHO_T}$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002505else
mmentovai8c2a4de2006-09-20 16:20:15 +00002506 { echo "$as_me:$LINENO: result: no" >&5
2507echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002508fi
2509
mmentovai8c2a4de2006-09-20 16:20:15 +00002510
brynercb91a2f2006-08-25 21:14:45 +00002511fi
2512if test -z "$ac_cv_prog_CC"; then
2513 ac_ct_CC=$CC
2514 # Extract the first word of "gcc", so it can be a program name with args.
2515set dummy gcc; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002516{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002518if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2520else
2521 if test -n "$ac_ct_CC"; then
2522 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2523else
2524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525for as_dir in $PATH
2526do
2527 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002531 ac_cv_prog_ac_ct_CC="gcc"
2532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 break 2
2534 fi
2535done
2536done
mmentovai8c2a4de2006-09-20 16:20:15 +00002537IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002538
2539fi
2540fi
2541ac_ct_CC=$ac_cv_prog_ac_ct_CC
2542if test -n "$ac_ct_CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002543 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2544echo "${ECHO_T}$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002545else
mmentovai8c2a4de2006-09-20 16:20:15 +00002546 { echo "$as_me:$LINENO: result: no" >&5
2547echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002548fi
2549
mmentovai8c2a4de2006-09-20 16:20:15 +00002550 if test "x$ac_ct_CC" = x; then
2551 CC=""
2552 else
2553 case $cross_compiling:$ac_tool_warned in
2554yes:)
2555{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2556whose name does not start with the host triplet. If you think this
2557configuration is useful to you, please write to autoconf@gnu.org." >&5
2558echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2559whose name does not start with the host triplet. If you think this
2560configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2561ac_tool_warned=yes ;;
2562esac
2563 CC=$ac_ct_CC
2564 fi
brynercb91a2f2006-08-25 21:14:45 +00002565else
2566 CC="$ac_cv_prog_CC"
2567fi
2568
2569if test -z "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002570 if test -n "$ac_tool_prefix"; then
2571 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
brynercb91a2f2006-08-25 21:14:45 +00002572set dummy ${ac_tool_prefix}cc; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002575if test "${ac_cv_prog_CC+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2577else
2578 if test -n "$CC"; then
2579 ac_cv_prog_CC="$CC" # Let the user override the test.
2580else
2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002588 ac_cv_prog_CC="${ac_tool_prefix}cc"
2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 break 2
2591 fi
2592done
2593done
mmentovai8c2a4de2006-09-20 16:20:15 +00002594IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002595
2596fi
2597fi
2598CC=$ac_cv_prog_CC
2599if test -n "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002600 { echo "$as_me:$LINENO: result: $CC" >&5
2601echo "${ECHO_T}$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002602else
mmentovai8c2a4de2006-09-20 16:20:15 +00002603 { echo "$as_me:$LINENO: result: no" >&5
2604echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002605fi
2606
mmentovai8c2a4de2006-09-20 16:20:15 +00002607
brynercb91a2f2006-08-25 21:14:45 +00002608 fi
brynercb91a2f2006-08-25 21:14:45 +00002609fi
2610if test -z "$CC"; then
2611 # Extract the first word of "cc", so it can be a program name with args.
2612set dummy cc; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002613{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002615if test "${ac_cv_prog_CC+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2617else
2618 if test -n "$CC"; then
2619 ac_cv_prog_CC="$CC" # Let the user override the test.
2620else
2621 ac_prog_rejected=no
2622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623for as_dir in $PATH
2624do
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
2627 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002629 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2630 ac_prog_rejected=yes
2631 continue
2632 fi
2633 ac_cv_prog_CC="cc"
2634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 break 2
2636 fi
2637done
2638done
mmentovai8c2a4de2006-09-20 16:20:15 +00002639IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002640
2641if test $ac_prog_rejected = yes; then
2642 # We found a bogon in the path, so make sure we never use it.
2643 set dummy $ac_cv_prog_CC
2644 shift
2645 if test $# != 0; then
2646 # We chose a different compiler from the bogus one.
2647 # However, it has the same basename, so the bogon will be chosen
2648 # first if we set CC to just the basename; use the full file name.
2649 shift
2650 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2651 fi
2652fi
2653fi
2654fi
2655CC=$ac_cv_prog_CC
2656if test -n "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002657 { echo "$as_me:$LINENO: result: $CC" >&5
2658echo "${ECHO_T}$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002659else
mmentovai8c2a4de2006-09-20 16:20:15 +00002660 { echo "$as_me:$LINENO: result: no" >&5
2661echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002662fi
2663
mmentovai8c2a4de2006-09-20 16:20:15 +00002664
brynercb91a2f2006-08-25 21:14:45 +00002665fi
2666if test -z "$CC"; then
2667 if test -n "$ac_tool_prefix"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002668 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00002669 do
2670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2671set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002672{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002674if test "${ac_cv_prog_CC+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2676else
2677 if test -n "$CC"; then
2678 ac_cv_prog_CC="$CC" # Let the user override the test.
2679else
2680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681for as_dir in $PATH
2682do
2683 IFS=$as_save_IFS
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002687 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 break 2
2690 fi
2691done
2692done
mmentovai8c2a4de2006-09-20 16:20:15 +00002693IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002694
2695fi
2696fi
2697CC=$ac_cv_prog_CC
2698if test -n "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002699 { echo "$as_me:$LINENO: result: $CC" >&5
2700echo "${ECHO_T}$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002701else
mmentovai8c2a4de2006-09-20 16:20:15 +00002702 { echo "$as_me:$LINENO: result: no" >&5
2703echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002704fi
2705
mmentovai8c2a4de2006-09-20 16:20:15 +00002706
brynercb91a2f2006-08-25 21:14:45 +00002707 test -n "$CC" && break
2708 done
2709fi
2710if test -z "$CC"; then
2711 ac_ct_CC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00002712 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00002713do
2714 # Extract the first word of "$ac_prog", so it can be a program name with args.
2715set dummy $ac_prog; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00002716{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002718if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2720else
2721 if test -n "$ac_ct_CC"; then
2722 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2723else
2724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725for as_dir in $PATH
2726do
2727 IFS=$as_save_IFS
2728 test -z "$as_dir" && as_dir=.
2729 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00002730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002731 ac_cv_prog_ac_ct_CC="$ac_prog"
2732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 break 2
2734 fi
2735done
2736done
mmentovai8c2a4de2006-09-20 16:20:15 +00002737IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002738
2739fi
2740fi
2741ac_ct_CC=$ac_cv_prog_ac_ct_CC
2742if test -n "$ac_ct_CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002743 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2744echo "${ECHO_T}$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002745else
mmentovai8c2a4de2006-09-20 16:20:15 +00002746 { echo "$as_me:$LINENO: result: no" >&5
2747echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002748fi
2749
mmentovai8c2a4de2006-09-20 16:20:15 +00002750
brynercb91a2f2006-08-25 21:14:45 +00002751 test -n "$ac_ct_CC" && break
2752done
2753
mmentovai8c2a4de2006-09-20 16:20:15 +00002754 if test "x$ac_ct_CC" = x; then
2755 CC=""
2756 else
2757 case $cross_compiling:$ac_tool_warned in
2758yes:)
2759{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2760whose name does not start with the host triplet. If you think this
2761configuration is useful to you, please write to autoconf@gnu.org." >&5
2762echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2763whose name does not start with the host triplet. If you think this
2764configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2765ac_tool_warned=yes ;;
2766esac
2767 CC=$ac_ct_CC
2768 fi
brynercb91a2f2006-08-25 21:14:45 +00002769fi
2770
2771fi
2772
2773
2774test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2775See \`config.log' for more details." >&5
2776echo "$as_me: error: no acceptable C compiler found in \$PATH
2777See \`config.log' for more details." >&2;}
2778 { (exit 1); exit 1; }; }
2779
2780# Provide some information about the compiler.
mmentovai8c2a4de2006-09-20 16:20:15 +00002781echo "$as_me:$LINENO: checking for C compiler version" >&5
brynercb91a2f2006-08-25 21:14:45 +00002782ac_compiler=`set X $ac_compile; echo $2`
mmentovai8c2a4de2006-09-20 16:20:15 +00002783{ (ac_try="$ac_compiler --version >&5"
2784case "(($ac_try" in
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2787esac
2788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789 (eval "$ac_compiler --version >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }
mmentovai8c2a4de2006-09-20 16:20:15 +00002793{ (ac_try="$ac_compiler -v >&5"
2794case "(($ac_try" in
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2797esac
2798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799 (eval "$ac_compiler -v >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }
mmentovai8c2a4de2006-09-20 16:20:15 +00002803{ (ac_try="$ac_compiler -V >&5"
2804case "(($ac_try" in
2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2807esac
2808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809 (eval "$ac_compiler -V >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002810 ac_status=$?
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }
2813
2814cat >conftest.$ac_ext <<_ACEOF
2815/* confdefs.h. */
2816_ACEOF
2817cat confdefs.h >>conftest.$ac_ext
2818cat >>conftest.$ac_ext <<_ACEOF
2819/* end confdefs.h. */
2820
2821int
2822main ()
2823{
2824
2825 ;
2826 return 0;
2827}
2828_ACEOF
2829ac_clean_files_save=$ac_clean_files
2830ac_clean_files="$ac_clean_files a.out a.exe b.out"
2831# Try to create an executable without -o first, disregard a.out.
2832# It will help us diagnose broken compilers, and finding out an intuition
2833# of exeext.
mmentovai8c2a4de2006-09-20 16:20:15 +00002834{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2835echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002836ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
mmentovai8c2a4de2006-09-20 16:20:15 +00002837#
2838# List of possible output files, starting from the most likely.
2839# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2840# only as a last resort. b.out is created by i960 compilers.
2841ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2842#
2843# The IRIX 6 linker writes into existing files which may not be
2844# executable, retaining their permissions. Remove them first so a
2845# subsequent execution test works.
2846ac_rmfiles=
2847for ac_file in $ac_files
2848do
2849 case $ac_file in
2850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2851 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2852 esac
2853done
2854rm -f $ac_rmfiles
2855
2856if { (ac_try="$ac_link_default"
2857case "(($ac_try" in
2858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2859 *) ac_try_echo=$ac_try;;
2860esac
2861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2862 (eval "$ac_link_default") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002863 ac_status=$?
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }; then
mmentovai8c2a4de2006-09-20 16:20:15 +00002866 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2867# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2868# in a Makefile. We should not override ac_cv_exeext if it was cached,
2869# so that the user can short-circuit this test for compilers unknown to
2870# Autoconf.
2871for ac_file in $ac_files
brynercb91a2f2006-08-25 21:14:45 +00002872do
2873 test -f "$ac_file" || continue
2874 case $ac_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00002875 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
brynercb91a2f2006-08-25 21:14:45 +00002876 ;;
2877 [ab].out )
2878 # We found the default executable, but exeext='' is most
2879 # certainly right.
2880 break;;
2881 *.* )
mmentovai8c2a4de2006-09-20 16:20:15 +00002882 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2883 then :; else
2884 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2885 fi
2886 # We set ac_cv_exeext here because the later test for it is not
2887 # safe: cross compilers may not add the suffix if given an `-o'
2888 # argument, so we may need to know it at that point already.
2889 # Even if this section looks crufty: it has the advantage of
2890 # actually working.
brynercb91a2f2006-08-25 21:14:45 +00002891 break;;
2892 * )
2893 break;;
2894 esac
2895done
mmentovai8c2a4de2006-09-20 16:20:15 +00002896test "$ac_cv_exeext" = no && ac_cv_exeext=
2897
brynercb91a2f2006-08-25 21:14:45 +00002898else
2899 echo "$as_me: failed program was:" >&5
2900sed 's/^/| /' conftest.$ac_ext >&5
2901
2902{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2903See \`config.log' for more details." >&5
2904echo "$as_me: error: C compiler cannot create executables
2905See \`config.log' for more details." >&2;}
2906 { (exit 77); exit 77; }; }
2907fi
2908
2909ac_exeext=$ac_cv_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00002910{ echo "$as_me:$LINENO: result: $ac_file" >&5
2911echo "${ECHO_T}$ac_file" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002912
mmentovai8c2a4de2006-09-20 16:20:15 +00002913# Check that the compiler produces executables we can run. If not, either
brynercb91a2f2006-08-25 21:14:45 +00002914# the compiler is broken, or we cross compile.
mmentovai8c2a4de2006-09-20 16:20:15 +00002915{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2916echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002917# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2918# If not cross compiling, check that we can run a simple program.
2919if test "$cross_compiling" != yes; then
2920 if { ac_try='./$ac_file'
mmentovai8c2a4de2006-09-20 16:20:15 +00002921 { (case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2924esac
2925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; }; then
2930 cross_compiling=no
2931 else
2932 if test "$cross_compiling" = maybe; then
2933 cross_compiling=yes
2934 else
2935 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2936If you meant to cross compile, use \`--host'.
2937See \`config.log' for more details." >&5
2938echo "$as_me: error: cannot run C compiled programs.
2939If you meant to cross compile, use \`--host'.
2940See \`config.log' for more details." >&2;}
2941 { (exit 1); exit 1; }; }
2942 fi
2943 fi
2944fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002945{ echo "$as_me:$LINENO: result: yes" >&5
2946echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002947
2948rm -f a.out a.exe conftest$ac_cv_exeext b.out
2949ac_clean_files=$ac_clean_files_save
mmentovai8c2a4de2006-09-20 16:20:15 +00002950# Check that the compiler produces executables we can run. If not, either
brynercb91a2f2006-08-25 21:14:45 +00002951# the compiler is broken, or we cross compile.
mmentovai8c2a4de2006-09-20 16:20:15 +00002952{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2953echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2954{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2955echo "${ECHO_T}$cross_compiling" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002956
mmentovai8c2a4de2006-09-20 16:20:15 +00002957{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2958echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2959if { (ac_try="$ac_link"
2960case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963esac
2964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00002966 ac_status=$?
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; then
2969 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2970# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2971# work properly (i.e., refer to `conftest.exe'), while it won't with
2972# `rm'.
2973for ac_file in conftest.exe conftest conftest.*; do
2974 test -f "$ac_file" || continue
2975 case $ac_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00002976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
brynercb91a2f2006-08-25 21:14:45 +00002977 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
brynercb91a2f2006-08-25 21:14:45 +00002978 break;;
2979 * ) break;;
2980 esac
2981done
2982else
2983 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2984See \`config.log' for more details." >&5
2985echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2986See \`config.log' for more details." >&2;}
2987 { (exit 1); exit 1; }; }
2988fi
2989
2990rm -f conftest$ac_cv_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00002991{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2992echo "${ECHO_T}$ac_cv_exeext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002993
2994rm -f conftest.$ac_ext
2995EXEEXT=$ac_cv_exeext
2996ac_exeext=$EXEEXT
mmentovai8c2a4de2006-09-20 16:20:15 +00002997{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2998echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002999if test "${ac_cv_objext+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001else
3002 cat >conftest.$ac_ext <<_ACEOF
3003/* confdefs.h. */
3004_ACEOF
3005cat confdefs.h >>conftest.$ac_ext
3006cat >>conftest.$ac_ext <<_ACEOF
3007/* end confdefs.h. */
3008
3009int
3010main ()
3011{
3012
3013 ;
3014 return 0;
3015}
3016_ACEOF
3017rm -f conftest.o conftest.obj
mmentovai8c2a4de2006-09-20 16:20:15 +00003018if { (ac_try="$ac_compile"
3019case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022esac
3023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compile") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003028 for ac_file in conftest.o conftest.obj conftest.*; do
3029 test -f "$ac_file" || continue;
brynercb91a2f2006-08-25 21:14:45 +00003030 case $ac_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00003031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003032 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3033 break;;
3034 esac
3035done
3036else
3037 echo "$as_me: failed program was:" >&5
3038sed 's/^/| /' conftest.$ac_ext >&5
3039
3040{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3041See \`config.log' for more details." >&5
3042echo "$as_me: error: cannot compute suffix of object files: cannot compile
3043See \`config.log' for more details." >&2;}
3044 { (exit 1); exit 1; }; }
3045fi
3046
3047rm -f conftest.$ac_cv_objext conftest.$ac_ext
3048fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003049{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3050echo "${ECHO_T}$ac_cv_objext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003051OBJEXT=$ac_cv_objext
3052ac_objext=$OBJEXT
mmentovai8c2a4de2006-09-20 16:20:15 +00003053{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3054echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003055if test "${ac_cv_c_compiler_gnu+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3057else
3058 cat >conftest.$ac_ext <<_ACEOF
3059/* confdefs.h. */
3060_ACEOF
3061cat confdefs.h >>conftest.$ac_ext
3062cat >>conftest.$ac_ext <<_ACEOF
3063/* end confdefs.h. */
3064
3065int
3066main ()
3067{
3068#ifndef __GNUC__
3069 choke me
3070#endif
3071
3072 ;
3073 return 0;
3074}
3075_ACEOF
3076rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00003077if { (ac_try="$ac_compile"
3078case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081esac
3082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003084 ac_status=$?
3085 grep -v '^ *+' conftest.er1 >conftest.err
3086 rm -f conftest.er1
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00003090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3091 { (case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094esac
3095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; } &&
3100 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +00003101 { (case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104esac
3105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3110 ac_compiler_gnu=yes
3111else
3112 echo "$as_me: failed program was:" >&5
3113sed 's/^/| /' conftest.$ac_ext >&5
3114
mmentovai8c2a4de2006-09-20 16:20:15 +00003115 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00003116fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003117
3118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003119ac_cv_c_compiler_gnu=$ac_compiler_gnu
3120
3121fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003122{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3123echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003124GCC=`test $ac_compiler_gnu = yes && echo yes`
3125ac_test_CFLAGS=${CFLAGS+set}
3126ac_save_CFLAGS=$CFLAGS
mmentovai8c2a4de2006-09-20 16:20:15 +00003127{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3128echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003129if test "${ac_cv_prog_cc_g+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3131else
mmentovai8c2a4de2006-09-20 16:20:15 +00003132 ac_save_c_werror_flag=$ac_c_werror_flag
3133 ac_c_werror_flag=yes
3134 ac_cv_prog_cc_g=no
3135 CFLAGS="-g"
3136 cat >conftest.$ac_ext <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00003137/* confdefs.h. */
3138_ACEOF
3139cat confdefs.h >>conftest.$ac_ext
3140cat >>conftest.$ac_ext <<_ACEOF
3141/* end confdefs.h. */
3142
3143int
3144main ()
3145{
3146
3147 ;
3148 return 0;
3149}
3150_ACEOF
3151rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00003152if { (ac_try="$ac_compile"
3153case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156esac
3157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003159 ac_status=$?
3160 grep -v '^ *+' conftest.er1 >conftest.err
3161 rm -f conftest.er1
3162 cat conftest.err >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00003165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3166 { (case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169esac
3170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; } &&
3175 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +00003176 { (case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179esac
3180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; }; then
3185 ac_cv_prog_cc_g=yes
3186else
3187 echo "$as_me: failed program was:" >&5
3188sed 's/^/| /' conftest.$ac_ext >&5
3189
mmentovai8c2a4de2006-09-20 16:20:15 +00003190 CFLAGS=""
3191 cat >conftest.$ac_ext <<_ACEOF
3192/* confdefs.h. */
3193_ACEOF
3194cat confdefs.h >>conftest.$ac_ext
3195cat >>conftest.$ac_ext <<_ACEOF
3196/* end confdefs.h. */
3197
3198int
3199main ()
3200{
3201
3202 ;
3203 return 0;
3204}
3205_ACEOF
3206rm -f conftest.$ac_objext
3207if { (ac_try="$ac_compile"
3208case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211esac
3212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213 (eval "$ac_compile") 2>conftest.er1
3214 ac_status=$?
3215 grep -v '^ *+' conftest.er1 >conftest.err
3216 rm -f conftest.er1
3217 cat conftest.err >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); } &&
3220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3221 { (case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3224esac
3225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226 (eval "$ac_try") 2>&5
3227 ac_status=$?
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; } &&
3230 { ac_try='test -s conftest.$ac_objext'
3231 { (case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234esac
3235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_try") 2>&5
3237 ac_status=$?
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; }; then
3240 :
3241else
3242 echo "$as_me: failed program was:" >&5
3243sed 's/^/| /' conftest.$ac_ext >&5
3244
3245 ac_c_werror_flag=$ac_save_c_werror_flag
3246 CFLAGS="-g"
3247 cat >conftest.$ac_ext <<_ACEOF
3248/* confdefs.h. */
3249_ACEOF
3250cat confdefs.h >>conftest.$ac_ext
3251cat >>conftest.$ac_ext <<_ACEOF
3252/* end confdefs.h. */
3253
3254int
3255main ()
3256{
3257
3258 ;
3259 return 0;
3260}
3261_ACEOF
3262rm -f conftest.$ac_objext
3263if { (ac_try="$ac_compile"
3264case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267esac
3268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3269 (eval "$ac_compile") 2>conftest.er1
3270 ac_status=$?
3271 grep -v '^ *+' conftest.er1 >conftest.err
3272 rm -f conftest.er1
3273 cat conftest.err >&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } &&
3276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3277 { (case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280esac
3281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_try") 2>&5
3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; } &&
3286 { ac_try='test -s conftest.$ac_objext'
3287 { (case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290esac
3291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_try") 2>&5
3293 ac_status=$?
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }; }; then
3296 ac_cv_prog_cc_g=yes
3297else
3298 echo "$as_me: failed program was:" >&5
3299sed 's/^/| /' conftest.$ac_ext >&5
3300
3301
brynercb91a2f2006-08-25 21:14:45 +00003302fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003303
3304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003305fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003306
3307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308fi
3309
3310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 ac_c_werror_flag=$ac_save_c_werror_flag
3312fi
3313{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3314echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003315if test "$ac_test_CFLAGS" = set; then
3316 CFLAGS=$ac_save_CFLAGS
3317elif test $ac_cv_prog_cc_g = yes; then
3318 if test "$GCC" = yes; then
3319 CFLAGS="-g -O2"
3320 else
3321 CFLAGS="-g"
3322 fi
3323else
3324 if test "$GCC" = yes; then
3325 CFLAGS="-O2"
3326 else
3327 CFLAGS=
3328 fi
3329fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003330{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3331echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3332if test "${ac_cv_prog_cc_c89+set}" = set; then
brynercb91a2f2006-08-25 21:14:45 +00003333 echo $ECHO_N "(cached) $ECHO_C" >&6
3334else
mmentovai8c2a4de2006-09-20 16:20:15 +00003335 ac_cv_prog_cc_c89=no
brynercb91a2f2006-08-25 21:14:45 +00003336ac_save_CC=$CC
3337cat >conftest.$ac_ext <<_ACEOF
3338/* confdefs.h. */
3339_ACEOF
3340cat confdefs.h >>conftest.$ac_ext
3341cat >>conftest.$ac_ext <<_ACEOF
3342/* end confdefs.h. */
3343#include <stdarg.h>
3344#include <stdio.h>
3345#include <sys/types.h>
3346#include <sys/stat.h>
3347/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3348struct buf { int x; };
3349FILE * (*rcsopen) (struct buf *, struct stat *, int);
3350static char *e (p, i)
3351 char **p;
3352 int i;
3353{
3354 return p[i];
3355}
3356static char *f (char * (*g) (char **, int), char **p, ...)
3357{
3358 char *s;
3359 va_list v;
3360 va_start (v,p);
3361 s = g (p, va_arg (v,int));
3362 va_end (v);
3363 return s;
3364}
3365
3366/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3367 function prototypes and stuff, but not '\xHH' hex character constants.
3368 These don't provoke an error unfortunately, instead are silently treated
mmentovai8c2a4de2006-09-20 16:20:15 +00003369 as 'x'. The following induces an error, until -std is added to get
brynercb91a2f2006-08-25 21:14:45 +00003370 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3371 array size at least. It's necessary to write '\x00'==0 to get something
mmentovai8c2a4de2006-09-20 16:20:15 +00003372 that's true only with -std. */
brynercb91a2f2006-08-25 21:14:45 +00003373int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3374
mmentovai8c2a4de2006-09-20 16:20:15 +00003375/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3376 inside strings and character constants. */
3377#define FOO(x) 'x'
3378int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3379
brynercb91a2f2006-08-25 21:14:45 +00003380int test (int i, double x);
3381struct s1 {int (*f) (int a);};
3382struct s2 {int (*f) (double a);};
3383int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3384int argc;
3385char **argv;
3386int
3387main ()
3388{
3389return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3390 ;
3391 return 0;
3392}
3393_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003394for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3395 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
brynercb91a2f2006-08-25 21:14:45 +00003396do
3397 CC="$ac_save_CC $ac_arg"
3398 rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00003399if { (ac_try="$ac_compile"
3400case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403esac
3404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3405 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003406 ac_status=$?
3407 grep -v '^ *+' conftest.er1 >conftest.err
3408 rm -f conftest.er1
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00003412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3413 { (case "(($ac_try" in
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3416esac
3417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003419 ac_status=$?
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; } &&
3422 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +00003423 { (case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3426esac
3427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003429 ac_status=$?
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; }; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003432 ac_cv_prog_cc_c89=$ac_arg
brynercb91a2f2006-08-25 21:14:45 +00003433else
3434 echo "$as_me: failed program was:" >&5
3435sed 's/^/| /' conftest.$ac_ext >&5
3436
mmentovai8c2a4de2006-09-20 16:20:15 +00003437
brynercb91a2f2006-08-25 21:14:45 +00003438fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003439
3440rm -f core conftest.err conftest.$ac_objext
3441 test "x$ac_cv_prog_cc_c89" != "xno" && break
brynercb91a2f2006-08-25 21:14:45 +00003442done
mmentovai8c2a4de2006-09-20 16:20:15 +00003443rm -f conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003444CC=$ac_save_CC
3445
3446fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003447# AC_CACHE_VAL
3448case "x$ac_cv_prog_cc_c89" in
3449 x)
3450 { echo "$as_me:$LINENO: result: none needed" >&5
3451echo "${ECHO_T}none needed" >&6; } ;;
3452 xno)
3453 { echo "$as_me:$LINENO: result: unsupported" >&5
3454echo "${ECHO_T}unsupported" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003455 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00003456 CC="$CC $ac_cv_prog_cc_c89"
3457 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3458echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003459esac
3460
brynercb91a2f2006-08-25 21:14:45 +00003461
brynercb91a2f2006-08-25 21:14:45 +00003462ac_ext=c
3463ac_cpp='$CPP $CPPFLAGS'
3464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467DEPDIR="${am__leading_dot}deps"
3468
mmentovai8c2a4de2006-09-20 16:20:15 +00003469ac_config_commands="$ac_config_commands depfiles"
brynercb91a2f2006-08-25 21:14:45 +00003470
3471
3472am_make=${MAKE-make}
3473cat > confinc << 'END'
3474am__doit:
3475 @echo done
3476.PHONY: am__doit
3477END
3478# If we don't find an include directive, just comment out the code.
mmentovai8c2a4de2006-09-20 16:20:15 +00003479{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3480echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003481am__include="#"
3482am__quote=
3483_am_result=none
3484# First try GNU make style include.
3485echo "include confinc" > confmf
3486# We grep out `Entering directory' and `Leaving directory'
3487# messages which can occur if `w' ends up in MAKEFLAGS.
3488# In particular we don't look at `^make:' because GNU make might
3489# be invoked under some other name (usually "gmake"), in which
3490# case it prints its new name instead of `make'.
3491if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3492 am__include=include
3493 am__quote=
3494 _am_result=GNU
3495fi
3496# Now try BSD make style include.
3497if test "$am__include" = "#"; then
3498 echo '.include "confinc"' > confmf
3499 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3500 am__include=.include
3501 am__quote="\""
3502 _am_result=BSD
3503 fi
3504fi
3505
3506
mmentovai8c2a4de2006-09-20 16:20:15 +00003507{ echo "$as_me:$LINENO: result: $_am_result" >&5
3508echo "${ECHO_T}$_am_result" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003509rm -f confinc confmf
3510
mmentovai8c2a4de2006-09-20 16:20:15 +00003511# Check whether --enable-dependency-tracking was given.
brynercb91a2f2006-08-25 21:14:45 +00003512if test "${enable_dependency_tracking+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003513 enableval=$enable_dependency_tracking;
3514fi
brynercb91a2f2006-08-25 21:14:45 +00003515
brynercb91a2f2006-08-25 21:14:45 +00003516if test "x$enable_dependency_tracking" != xno; then
3517 am_depcomp="$ac_aux_dir/depcomp"
3518 AMDEPBACKSLASH='\'
3519fi
3520
3521
3522if test "x$enable_dependency_tracking" != xno; then
3523 AMDEP_TRUE=
3524 AMDEP_FALSE='#'
3525else
3526 AMDEP_TRUE='#'
3527 AMDEP_FALSE=
3528fi
3529
3530
3531
3532
3533depcc="$CC" am_compiler_list=
3534
mmentovai8c2a4de2006-09-20 16:20:15 +00003535{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3536echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003537if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539else
3540 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3541 # We make a subdir and do the tests there. Otherwise we can end up
3542 # making bogus files that we don't know about and never remove. For
3543 # instance it was reported that on HP-UX the gcc test will end up
3544 # making a dummy file named `D' -- because `-MD' means `put the output
3545 # in D'.
3546 mkdir conftest.dir
3547 # Copy depcomp to subdir because otherwise we won't find it if we're
3548 # using a relative directory.
3549 cp "$am_depcomp" conftest.dir
3550 cd conftest.dir
3551 # We will build objects and dependencies in a subdirectory because
3552 # it helps to detect inapplicable dependency modes. For instance
3553 # both Tru64's cc and ICC support -MD to output dependencies as a
3554 # side effect of compilation, but ICC will put the dependencies in
3555 # the current directory while Tru64 will put them in the object
3556 # directory.
3557 mkdir sub
3558
3559 am_cv_CC_dependencies_compiler_type=none
3560 if test "$am_compiler_list" = ""; then
3561 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3562 fi
3563 for depmode in $am_compiler_list; do
3564 # Setup a source with many dependencies, because some compilers
3565 # like to wrap large dependency lists on column 80 (with \), and
3566 # we should not choose a depcomp mode which is confused by this.
3567 #
3568 # We need to recreate these files for each test, as the compiler may
3569 # overwrite some of them when testing with obscure command lines.
3570 # This happens at least with the AIX C compiler.
3571 : > sub/conftest.c
3572 for i in 1 2 3 4 5 6; do
3573 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3574 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3575 # Solaris 8's {/usr,}/bin/sh.
3576 touch sub/conftst$i.h
3577 done
3578 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3579
3580 case $depmode in
3581 nosideeffect)
3582 # after this tag, mechanisms are not by side-effect, so they'll
3583 # only be used when explicitly requested
3584 if test "x$enable_dependency_tracking" = xyes; then
3585 continue
3586 else
3587 break
3588 fi
3589 ;;
3590 none) break ;;
3591 esac
3592 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3593 # mode. It turns out that the SunPro C++ compiler does not properly
3594 # handle `-M -o', and we need to detect this.
3595 if depmode=$depmode \
3596 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3597 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3598 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3599 >/dev/null 2>conftest.err &&
3600 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3601 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3602 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3603 # icc doesn't choke on unknown options, it will just issue warnings
3604 # or remarks (even with -Werror). So we grep stderr for any message
3605 # that says an option was ignored or not supported.
3606 # When given -MP, icc 7.0 and 7.1 complain thusly:
3607 # icc: Command line warning: ignoring option '-M'; no argument required
3608 # The diagnosis changed in icc 8.0:
3609 # icc: Command line remark: option '-MP' not supported
3610 if (grep 'ignoring option' conftest.err ||
3611 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3612 am_cv_CC_dependencies_compiler_type=$depmode
3613 break
3614 fi
3615 fi
3616 done
3617
3618 cd ..
3619 rm -rf conftest.dir
3620else
3621 am_cv_CC_dependencies_compiler_type=none
3622fi
3623
3624fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003625{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3626echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003627CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3628
3629
3630
3631if
3632 test "x$enable_dependency_tracking" != xno \
3633 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3634 am__fastdepCC_TRUE=
3635 am__fastdepCC_FALSE='#'
3636else
3637 am__fastdepCC_TRUE='#'
3638 am__fastdepCC_FALSE=
3639fi
3640
3641
3642ac_ext=c
3643ac_cpp='$CPP $CPPFLAGS'
3644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646ac_compiler_gnu=$ac_cv_c_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00003647{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3648echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003649# On Suns, sometimes $CPP names a directory.
3650if test -n "$CPP" && test -d "$CPP"; then
3651 CPP=
3652fi
3653if test -z "$CPP"; then
3654 if test "${ac_cv_prog_CPP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656else
3657 # Double quotes because CPP needs to be expanded
3658 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3659 do
3660 ac_preproc_ok=false
3661for ac_c_preproc_warn_flag in '' yes
3662do
3663 # Use a header file that comes with gcc, so configuring glibc
3664 # with a fresh cross-compiler works.
3665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3666 # <limits.h> exists even on freestanding compilers.
3667 # On the NeXT, cc -E runs the code through the compiler's parser,
3668 # not just through cpp. "Syntax error" is here to catch this case.
3669 cat >conftest.$ac_ext <<_ACEOF
3670/* confdefs.h. */
3671_ACEOF
3672cat confdefs.h >>conftest.$ac_ext
3673cat >>conftest.$ac_ext <<_ACEOF
3674/* end confdefs.h. */
3675#ifdef __STDC__
3676# include <limits.h>
3677#else
3678# include <assert.h>
3679#endif
3680 Syntax error
3681_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003682if { (ac_try="$ac_cpp conftest.$ac_ext"
3683case "(($ac_try" in
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3686esac
3687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003689 ac_status=$?
3690 grep -v '^ *+' conftest.er1 >conftest.err
3691 rm -f conftest.er1
3692 cat conftest.err >&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); } >/dev/null; then
3695 if test -s conftest.err; then
3696 ac_cpp_err=$ac_c_preproc_warn_flag
3697 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3698 else
3699 ac_cpp_err=
3700 fi
3701else
3702 ac_cpp_err=yes
3703fi
3704if test -z "$ac_cpp_err"; then
3705 :
3706else
3707 echo "$as_me: failed program was:" >&5
3708sed 's/^/| /' conftest.$ac_ext >&5
3709
3710 # Broken: fails on valid input.
3711continue
3712fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003713
brynercb91a2f2006-08-25 21:14:45 +00003714rm -f conftest.err conftest.$ac_ext
3715
mmentovai8c2a4de2006-09-20 16:20:15 +00003716 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00003717 # can be detected and how.
3718 cat >conftest.$ac_ext <<_ACEOF
3719/* confdefs.h. */
3720_ACEOF
3721cat confdefs.h >>conftest.$ac_ext
3722cat >>conftest.$ac_ext <<_ACEOF
3723/* end confdefs.h. */
3724#include <ac_nonexistent.h>
3725_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003726if { (ac_try="$ac_cpp conftest.$ac_ext"
3727case "(($ac_try" in
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3730esac
3731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003733 ac_status=$?
3734 grep -v '^ *+' conftest.er1 >conftest.err
3735 rm -f conftest.er1
3736 cat conftest.err >&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); } >/dev/null; then
3739 if test -s conftest.err; then
3740 ac_cpp_err=$ac_c_preproc_warn_flag
3741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3742 else
3743 ac_cpp_err=
3744 fi
3745else
3746 ac_cpp_err=yes
3747fi
3748if test -z "$ac_cpp_err"; then
3749 # Broken: success on invalid input.
3750continue
3751else
3752 echo "$as_me: failed program was:" >&5
3753sed 's/^/| /' conftest.$ac_ext >&5
3754
3755 # Passes both tests.
3756ac_preproc_ok=:
3757break
3758fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003759
brynercb91a2f2006-08-25 21:14:45 +00003760rm -f conftest.err conftest.$ac_ext
3761
3762done
3763# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3764rm -f conftest.err conftest.$ac_ext
3765if $ac_preproc_ok; then
3766 break
3767fi
3768
3769 done
3770 ac_cv_prog_CPP=$CPP
3771
3772fi
3773 CPP=$ac_cv_prog_CPP
3774else
3775 ac_cv_prog_CPP=$CPP
3776fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003777{ echo "$as_me:$LINENO: result: $CPP" >&5
3778echo "${ECHO_T}$CPP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003779ac_preproc_ok=false
3780for ac_c_preproc_warn_flag in '' yes
3781do
3782 # Use a header file that comes with gcc, so configuring glibc
3783 # with a fresh cross-compiler works.
3784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3785 # <limits.h> exists even on freestanding compilers.
3786 # On the NeXT, cc -E runs the code through the compiler's parser,
3787 # not just through cpp. "Syntax error" is here to catch this case.
3788 cat >conftest.$ac_ext <<_ACEOF
3789/* confdefs.h. */
3790_ACEOF
3791cat confdefs.h >>conftest.$ac_ext
3792cat >>conftest.$ac_ext <<_ACEOF
3793/* end confdefs.h. */
3794#ifdef __STDC__
3795# include <limits.h>
3796#else
3797# include <assert.h>
3798#endif
3799 Syntax error
3800_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003801if { (ac_try="$ac_cpp conftest.$ac_ext"
3802case "(($ac_try" in
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3805esac
3806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003808 ac_status=$?
3809 grep -v '^ *+' conftest.er1 >conftest.err
3810 rm -f conftest.er1
3811 cat conftest.err >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } >/dev/null; then
3814 if test -s conftest.err; then
3815 ac_cpp_err=$ac_c_preproc_warn_flag
3816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3817 else
3818 ac_cpp_err=
3819 fi
3820else
3821 ac_cpp_err=yes
3822fi
3823if test -z "$ac_cpp_err"; then
3824 :
3825else
3826 echo "$as_me: failed program was:" >&5
3827sed 's/^/| /' conftest.$ac_ext >&5
3828
3829 # Broken: fails on valid input.
3830continue
3831fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003832
brynercb91a2f2006-08-25 21:14:45 +00003833rm -f conftest.err conftest.$ac_ext
3834
mmentovai8c2a4de2006-09-20 16:20:15 +00003835 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00003836 # can be detected and how.
3837 cat >conftest.$ac_ext <<_ACEOF
3838/* confdefs.h. */
3839_ACEOF
3840cat confdefs.h >>conftest.$ac_ext
3841cat >>conftest.$ac_ext <<_ACEOF
3842/* end confdefs.h. */
3843#include <ac_nonexistent.h>
3844_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003845if { (ac_try="$ac_cpp conftest.$ac_ext"
3846case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849esac
3850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00003852 ac_status=$?
3853 grep -v '^ *+' conftest.er1 >conftest.err
3854 rm -f conftest.er1
3855 cat conftest.err >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } >/dev/null; then
3858 if test -s conftest.err; then
3859 ac_cpp_err=$ac_c_preproc_warn_flag
3860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3861 else
3862 ac_cpp_err=
3863 fi
3864else
3865 ac_cpp_err=yes
3866fi
3867if test -z "$ac_cpp_err"; then
3868 # Broken: success on invalid input.
3869continue
3870else
3871 echo "$as_me: failed program was:" >&5
3872sed 's/^/| /' conftest.$ac_ext >&5
3873
3874 # Passes both tests.
3875ac_preproc_ok=:
3876break
3877fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003878
brynercb91a2f2006-08-25 21:14:45 +00003879rm -f conftest.err conftest.$ac_ext
3880
3881done
3882# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3883rm -f conftest.err conftest.$ac_ext
3884if $ac_preproc_ok; then
3885 :
3886else
3887 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3888See \`config.log' for more details." >&5
3889echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3890See \`config.log' for more details." >&2;}
3891 { (exit 1); exit 1; }; }
3892fi
3893
3894ac_ext=c
3895ac_cpp='$CPP $CPPFLAGS'
3896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899
mmentovai8c2a4de2006-09-20 16:20:15 +00003900ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00003901ac_cpp='$CXXCPP $CPPFLAGS'
3902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00003905if test -z "$CXX"; then
3906 if test -n "$CCC"; then
3907 CXX=$CCC
3908 else
3909 if test -n "$ac_tool_prefix"; then
3910 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
brynercb91a2f2006-08-25 21:14:45 +00003911 do
3912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3913set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00003914{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003916if test "${ac_cv_prog_CXX+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918else
3919 if test -n "$CXX"; then
3920 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3921else
3922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923for as_dir in $PATH
3924do
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00003928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00003929 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 break 2
3932 fi
3933done
3934done
mmentovai8c2a4de2006-09-20 16:20:15 +00003935IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003936
3937fi
3938fi
3939CXX=$ac_cv_prog_CXX
3940if test -n "$CXX"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003941 { echo "$as_me:$LINENO: result: $CXX" >&5
3942echo "${ECHO_T}$CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003943else
mmentovai8c2a4de2006-09-20 16:20:15 +00003944 { echo "$as_me:$LINENO: result: no" >&5
3945echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003946fi
3947
mmentovai8c2a4de2006-09-20 16:20:15 +00003948
brynercb91a2f2006-08-25 21:14:45 +00003949 test -n "$CXX" && break
3950 done
3951fi
3952if test -z "$CXX"; then
3953 ac_ct_CXX=$CXX
mmentovai8c2a4de2006-09-20 16:20:15 +00003954 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
brynercb91a2f2006-08-25 21:14:45 +00003955do
3956 # Extract the first word of "$ac_prog", so it can be a program name with args.
3957set dummy $ac_prog; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00003958{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003960if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3962else
3963 if test -n "$ac_ct_CXX"; then
3964 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3965else
3966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967for as_dir in $PATH
3968do
3969 IFS=$as_save_IFS
3970 test -z "$as_dir" && as_dir=.
3971 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00003972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00003973 ac_cv_prog_ac_ct_CXX="$ac_prog"
3974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 break 2
3976 fi
3977done
3978done
mmentovai8c2a4de2006-09-20 16:20:15 +00003979IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003980
3981fi
3982fi
3983ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3984if test -n "$ac_ct_CXX"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003985 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3986echo "${ECHO_T}$ac_ct_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003987else
mmentovai8c2a4de2006-09-20 16:20:15 +00003988 { echo "$as_me:$LINENO: result: no" >&5
3989echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003990fi
3991
mmentovai8c2a4de2006-09-20 16:20:15 +00003992
brynercb91a2f2006-08-25 21:14:45 +00003993 test -n "$ac_ct_CXX" && break
3994done
brynercb91a2f2006-08-25 21:14:45 +00003995
mmentovai8c2a4de2006-09-20 16:20:15 +00003996 if test "x$ac_ct_CXX" = x; then
3997 CXX="g++"
3998 else
3999 case $cross_compiling:$ac_tool_warned in
4000yes:)
4001{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4002whose name does not start with the host triplet. If you think this
4003configuration is useful to you, please write to autoconf@gnu.org." >&5
4004echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4005whose name does not start with the host triplet. If you think this
4006configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4007ac_tool_warned=yes ;;
4008esac
4009 CXX=$ac_ct_CXX
4010 fi
brynercb91a2f2006-08-25 21:14:45 +00004011fi
4012
mmentovai8c2a4de2006-09-20 16:20:15 +00004013 fi
4014fi
brynercb91a2f2006-08-25 21:14:45 +00004015# Provide some information about the compiler.
mmentovai8c2a4de2006-09-20 16:20:15 +00004016echo "$as_me:$LINENO: checking for C++ compiler version" >&5
brynercb91a2f2006-08-25 21:14:45 +00004017ac_compiler=`set X $ac_compile; echo $2`
mmentovai8c2a4de2006-09-20 16:20:15 +00004018{ (ac_try="$ac_compiler --version >&5"
4019case "(($ac_try" in
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4022esac
4023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4024 (eval "$ac_compiler --version >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00004025 ac_status=$?
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }
mmentovai8c2a4de2006-09-20 16:20:15 +00004028{ (ac_try="$ac_compiler -v >&5"
4029case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4032esac
4033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4034 (eval "$ac_compiler -v >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00004035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }
mmentovai8c2a4de2006-09-20 16:20:15 +00004038{ (ac_try="$ac_compiler -V >&5"
4039case "(($ac_try" in
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4042esac
4043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044 (eval "$ac_compiler -V >&5") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00004045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }
4048
mmentovai8c2a4de2006-09-20 16:20:15 +00004049{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4050echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004051if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4053else
4054 cat >conftest.$ac_ext <<_ACEOF
4055/* confdefs.h. */
4056_ACEOF
4057cat confdefs.h >>conftest.$ac_ext
4058cat >>conftest.$ac_ext <<_ACEOF
4059/* end confdefs.h. */
4060
4061int
4062main ()
4063{
4064#ifndef __GNUC__
4065 choke me
4066#endif
4067
4068 ;
4069 return 0;
4070}
4071_ACEOF
4072rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00004073if { (ac_try="$ac_compile"
4074case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077esac
4078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00004080 ac_status=$?
4081 grep -v '^ *+' conftest.er1 >conftest.err
4082 rm -f conftest.er1
4083 cat conftest.err >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00004086 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4087 { (case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090esac
4091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00004093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +00004097 { (case "(($ac_try" in
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4100esac
4101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00004103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4106 ac_compiler_gnu=yes
4107else
4108 echo "$as_me: failed program was:" >&5
4109sed 's/^/| /' conftest.$ac_ext >&5
4110
mmentovai8c2a4de2006-09-20 16:20:15 +00004111 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00004112fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004113
4114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004115ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4116
4117fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004118{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4119echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004120GXX=`test $ac_compiler_gnu = yes && echo yes`
4121ac_test_CXXFLAGS=${CXXFLAGS+set}
4122ac_save_CXXFLAGS=$CXXFLAGS
mmentovai8c2a4de2006-09-20 16:20:15 +00004123{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4124echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004125if test "${ac_cv_prog_cxx_g+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127else
mmentovai8c2a4de2006-09-20 16:20:15 +00004128 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4129 ac_cxx_werror_flag=yes
4130 ac_cv_prog_cxx_g=no
4131 CXXFLAGS="-g"
4132 cat >conftest.$ac_ext <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00004133/* confdefs.h. */
4134_ACEOF
4135cat confdefs.h >>conftest.$ac_ext
4136cat >>conftest.$ac_ext <<_ACEOF
4137/* end confdefs.h. */
4138
4139int
4140main ()
4141{
4142
4143 ;
4144 return 0;
4145}
4146_ACEOF
4147rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00004148if { (ac_try="$ac_compile"
4149case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4152esac
4153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00004155 ac_status=$?
4156 grep -v '^ *+' conftest.er1 >conftest.err
4157 rm -f conftest.er1
4158 cat conftest.err >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00004161 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4162 { (case "(($ac_try" in
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4165esac
4166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00004168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; } &&
4171 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +00004172 { (case "(($ac_try" in
4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174 *) ac_try_echo=$ac_try;;
4175esac
4176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4177 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00004178 ac_status=$?
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; }; then
4181 ac_cv_prog_cxx_g=yes
4182else
4183 echo "$as_me: failed program was:" >&5
4184sed 's/^/| /' conftest.$ac_ext >&5
4185
mmentovai8c2a4de2006-09-20 16:20:15 +00004186 CXXFLAGS=""
4187 cat >conftest.$ac_ext <<_ACEOF
4188/* confdefs.h. */
4189_ACEOF
4190cat confdefs.h >>conftest.$ac_ext
4191cat >>conftest.$ac_ext <<_ACEOF
4192/* end confdefs.h. */
4193
4194int
4195main ()
4196{
4197
4198 ;
4199 return 0;
4200}
4201_ACEOF
4202rm -f conftest.$ac_objext
4203if { (ac_try="$ac_compile"
4204case "(($ac_try" in
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4207esac
4208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209 (eval "$ac_compile") 2>conftest.er1
4210 ac_status=$?
4211 grep -v '^ *+' conftest.er1 >conftest.err
4212 rm -f conftest.er1
4213 cat conftest.err >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } &&
4216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4217 { (case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220esac
4221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222 (eval "$ac_try") 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; } &&
4226 { ac_try='test -s conftest.$ac_objext'
4227 { (case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230esac
4231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4236 :
4237else
4238 echo "$as_me: failed program was:" >&5
4239sed 's/^/| /' conftest.$ac_ext >&5
4240
4241 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4242 CXXFLAGS="-g"
4243 cat >conftest.$ac_ext <<_ACEOF
4244/* confdefs.h. */
4245_ACEOF
4246cat confdefs.h >>conftest.$ac_ext
4247cat >>conftest.$ac_ext <<_ACEOF
4248/* end confdefs.h. */
4249
4250int
4251main ()
4252{
4253
4254 ;
4255 return 0;
4256}
4257_ACEOF
4258rm -f conftest.$ac_objext
4259if { (ac_try="$ac_compile"
4260case "(($ac_try" in
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4263esac
4264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_compile") 2>conftest.er1
4266 ac_status=$?
4267 grep -v '^ *+' conftest.er1 >conftest.err
4268 rm -f conftest.er1
4269 cat conftest.err >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } &&
4272 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4273 { (case "(($ac_try" in
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4276esac
4277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_try") 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; } &&
4282 { ac_try='test -s conftest.$ac_objext'
4283 { (case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4286esac
4287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_try") 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4292 ac_cv_prog_cxx_g=yes
4293else
4294 echo "$as_me: failed program was:" >&5
4295sed 's/^/| /' conftest.$ac_ext >&5
4296
4297
brynercb91a2f2006-08-25 21:14:45 +00004298fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004299
4300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004301fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004302
4303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304fi
4305
4306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4308fi
4309{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4310echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004311if test "$ac_test_CXXFLAGS" = set; then
4312 CXXFLAGS=$ac_save_CXXFLAGS
4313elif test $ac_cv_prog_cxx_g = yes; then
4314 if test "$GXX" = yes; then
4315 CXXFLAGS="-g -O2"
4316 else
4317 CXXFLAGS="-g"
4318 fi
4319else
4320 if test "$GXX" = yes; then
4321 CXXFLAGS="-O2"
4322 else
4323 CXXFLAGS=
4324 fi
4325fi
brynercb91a2f2006-08-25 21:14:45 +00004326ac_ext=c
4327ac_cpp='$CPP $CPPFLAGS'
4328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331
4332depcc="$CXX" am_compiler_list=
4333
mmentovai8c2a4de2006-09-20 16:20:15 +00004334{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4335echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004336if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4338else
4339 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4340 # We make a subdir and do the tests there. Otherwise we can end up
4341 # making bogus files that we don't know about and never remove. For
4342 # instance it was reported that on HP-UX the gcc test will end up
4343 # making a dummy file named `D' -- because `-MD' means `put the output
4344 # in D'.
4345 mkdir conftest.dir
4346 # Copy depcomp to subdir because otherwise we won't find it if we're
4347 # using a relative directory.
4348 cp "$am_depcomp" conftest.dir
4349 cd conftest.dir
4350 # We will build objects and dependencies in a subdirectory because
4351 # it helps to detect inapplicable dependency modes. For instance
4352 # both Tru64's cc and ICC support -MD to output dependencies as a
4353 # side effect of compilation, but ICC will put the dependencies in
4354 # the current directory while Tru64 will put them in the object
4355 # directory.
4356 mkdir sub
4357
4358 am_cv_CXX_dependencies_compiler_type=none
4359 if test "$am_compiler_list" = ""; then
4360 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4361 fi
4362 for depmode in $am_compiler_list; do
4363 # Setup a source with many dependencies, because some compilers
4364 # like to wrap large dependency lists on column 80 (with \), and
4365 # we should not choose a depcomp mode which is confused by this.
4366 #
4367 # We need to recreate these files for each test, as the compiler may
4368 # overwrite some of them when testing with obscure command lines.
4369 # This happens at least with the AIX C compiler.
4370 : > sub/conftest.c
4371 for i in 1 2 3 4 5 6; do
4372 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4373 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4374 # Solaris 8's {/usr,}/bin/sh.
4375 touch sub/conftst$i.h
4376 done
4377 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4378
4379 case $depmode in
4380 nosideeffect)
4381 # after this tag, mechanisms are not by side-effect, so they'll
4382 # only be used when explicitly requested
4383 if test "x$enable_dependency_tracking" = xyes; then
4384 continue
4385 else
4386 break
4387 fi
4388 ;;
4389 none) break ;;
4390 esac
4391 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4392 # mode. It turns out that the SunPro C++ compiler does not properly
4393 # handle `-M -o', and we need to detect this.
4394 if depmode=$depmode \
4395 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4396 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4397 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4398 >/dev/null 2>conftest.err &&
4399 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4400 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4401 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4402 # icc doesn't choke on unknown options, it will just issue warnings
4403 # or remarks (even with -Werror). So we grep stderr for any message
4404 # that says an option was ignored or not supported.
4405 # When given -MP, icc 7.0 and 7.1 complain thusly:
4406 # icc: Command line warning: ignoring option '-M'; no argument required
4407 # The diagnosis changed in icc 8.0:
4408 # icc: Command line remark: option '-MP' not supported
4409 if (grep 'ignoring option' conftest.err ||
4410 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4411 am_cv_CXX_dependencies_compiler_type=$depmode
4412 break
4413 fi
4414 fi
4415 done
4416
4417 cd ..
4418 rm -rf conftest.dir
4419else
4420 am_cv_CXX_dependencies_compiler_type=none
4421fi
4422
4423fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004424{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4425echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004426CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4427
4428
4429
4430if
4431 test "x$enable_dependency_tracking" != xno \
4432 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4433 am__fastdepCXX_TRUE=
4434 am__fastdepCXX_FALSE='#'
4435else
4436 am__fastdepCXX_TRUE='#'
4437 am__fastdepCXX_FALSE=
4438fi
4439
4440
4441
mmentovai8c2a4de2006-09-20 16:20:15 +00004442# Check whether --enable-shared was given.
brynercb91a2f2006-08-25 21:14:45 +00004443if test "${enable_shared+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004444 enableval=$enable_shared; p=${PACKAGE-default}
brynercb91a2f2006-08-25 21:14:45 +00004445 case $enableval in
4446 yes) enable_shared=yes ;;
4447 no) enable_shared=no ;;
4448 *)
4449 enable_shared=no
4450 # Look at the argument we got. We use all the common list separators.
4451 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4452 for pkg in $enableval; do
4453 IFS="$lt_save_ifs"
4454 if test "X$pkg" = "X$p"; then
4455 enable_shared=yes
4456 fi
4457 done
4458 IFS="$lt_save_ifs"
4459 ;;
4460 esac
4461else
4462 enable_shared=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00004463fi
brynercb91a2f2006-08-25 21:14:45 +00004464
mmentovai8c2a4de2006-09-20 16:20:15 +00004465
4466# Check whether --enable-static was given.
brynercb91a2f2006-08-25 21:14:45 +00004467if test "${enable_static+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004468 enableval=$enable_static; p=${PACKAGE-default}
brynercb91a2f2006-08-25 21:14:45 +00004469 case $enableval in
4470 yes) enable_static=yes ;;
4471 no) enable_static=no ;;
4472 *)
4473 enable_static=no
4474 # Look at the argument we got. We use all the common list separators.
4475 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4476 for pkg in $enableval; do
4477 IFS="$lt_save_ifs"
4478 if test "X$pkg" = "X$p"; then
4479 enable_static=yes
4480 fi
4481 done
4482 IFS="$lt_save_ifs"
4483 ;;
4484 esac
4485else
4486 enable_static=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00004487fi
brynercb91a2f2006-08-25 21:14:45 +00004488
mmentovai8c2a4de2006-09-20 16:20:15 +00004489
4490# Check whether --enable-fast-install was given.
brynercb91a2f2006-08-25 21:14:45 +00004491if test "${enable_fast_install+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004492 enableval=$enable_fast_install; p=${PACKAGE-default}
brynercb91a2f2006-08-25 21:14:45 +00004493 case $enableval in
4494 yes) enable_fast_install=yes ;;
4495 no) enable_fast_install=no ;;
4496 *)
4497 enable_fast_install=no
4498 # Look at the argument we got. We use all the common list separators.
4499 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4500 for pkg in $enableval; do
4501 IFS="$lt_save_ifs"
4502 if test "X$pkg" = "X$p"; then
4503 enable_fast_install=yes
4504 fi
4505 done
4506 IFS="$lt_save_ifs"
4507 ;;
4508 esac
4509else
4510 enable_fast_install=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00004511fi
4512
brynercb91a2f2006-08-25 21:14:45 +00004513
4514# Make sure we can run config.sub.
mmentovai8c2a4de2006-09-20 16:20:15 +00004515$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4516 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4517echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00004518 { (exit 1); exit 1; }; }
4519
mmentovai8c2a4de2006-09-20 16:20:15 +00004520{ echo "$as_me:$LINENO: checking build system type" >&5
4521echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004522if test "${ac_cv_build+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524else
mmentovai8c2a4de2006-09-20 16:20:15 +00004525 ac_build_alias=$build_alias
4526test "x$ac_build_alias" = x &&
4527 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4528test "x$ac_build_alias" = x &&
brynercb91a2f2006-08-25 21:14:45 +00004529 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4530echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4531 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004532ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4533 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4534echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00004535 { (exit 1); exit 1; }; }
4536
4537fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004538{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4539echo "${ECHO_T}$ac_cv_build" >&6; }
4540case $ac_cv_build in
4541*-*-*) ;;
4542*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4543echo "$as_me: error: invalid value of canonical build" >&2;}
4544 { (exit 1); exit 1; }; };;
4545esac
brynercb91a2f2006-08-25 21:14:45 +00004546build=$ac_cv_build
mmentovai8c2a4de2006-09-20 16:20:15 +00004547ac_save_IFS=$IFS; IFS='-'
4548set x $ac_cv_build
4549shift
4550build_cpu=$1
4551build_vendor=$2
4552shift; shift
4553# Remember, the first character of IFS is used to create $*,
4554# except with old shells:
4555build_os=$*
4556IFS=$ac_save_IFS
4557case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
brynercb91a2f2006-08-25 21:14:45 +00004558
4559
mmentovai8c2a4de2006-09-20 16:20:15 +00004560{ echo "$as_me:$LINENO: checking host system type" >&5
4561echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004562if test "${ac_cv_host+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564else
mmentovai8c2a4de2006-09-20 16:20:15 +00004565 if test "x$host_alias" = x; then
4566 ac_cv_host=$ac_cv_build
4567else
4568 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4569 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4570echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00004571 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004572fi
brynercb91a2f2006-08-25 21:14:45 +00004573
4574fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004575{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4576echo "${ECHO_T}$ac_cv_host" >&6; }
4577case $ac_cv_host in
4578*-*-*) ;;
4579*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4580echo "$as_me: error: invalid value of canonical host" >&2;}
4581 { (exit 1); exit 1; }; };;
4582esac
brynercb91a2f2006-08-25 21:14:45 +00004583host=$ac_cv_host
mmentovai8c2a4de2006-09-20 16:20:15 +00004584ac_save_IFS=$IFS; IFS='-'
4585set x $ac_cv_host
4586shift
4587host_cpu=$1
4588host_vendor=$2
4589shift; shift
4590# Remember, the first character of IFS is used to create $*,
4591# except with old shells:
4592host_os=$*
4593IFS=$ac_save_IFS
4594case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
brynercb91a2f2006-08-25 21:14:45 +00004595
4596
mmentovai8c2a4de2006-09-20 16:20:15 +00004597{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4598echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004599if test "${lt_cv_path_SED+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4601else
4602 # Loop through the user's path and test for sed and gsed.
4603# Then use that list of sed's as ones to test for truncation.
4604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605for as_dir in $PATH
4606do
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for lt_ac_prog in sed gsed; do
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4612 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4613 fi
4614 done
4615 done
4616done
4617lt_ac_max=0
4618lt_ac_count=0
4619# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4620# along with /bin/sed that truncates output.
4621for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
mmentovai8c2a4de2006-09-20 16:20:15 +00004622 test ! -f $lt_ac_sed && continue
brynercb91a2f2006-08-25 21:14:45 +00004623 cat /dev/null > conftest.in
4624 lt_ac_count=0
4625 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4626 # Check for GNU sed and select it if it is found.
4627 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4628 lt_cv_path_SED=$lt_ac_sed
4629 break
4630 fi
4631 while true; do
4632 cat conftest.in conftest.in >conftest.tmp
4633 mv conftest.tmp conftest.in
4634 cp conftest.in conftest.nl
4635 echo >>conftest.nl
4636 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4637 cmp -s conftest.out conftest.nl || break
4638 # 10000 chars as input seems more than enough
4639 test $lt_ac_count -gt 10 && break
4640 lt_ac_count=`expr $lt_ac_count + 1`
4641 if test $lt_ac_count -gt $lt_ac_max; then
4642 lt_ac_max=$lt_ac_count
4643 lt_cv_path_SED=$lt_ac_sed
4644 fi
4645 done
4646done
brynercb91a2f2006-08-25 21:14:45 +00004647
4648fi
4649
mmentovai8c2a4de2006-09-20 16:20:15 +00004650SED=$lt_cv_path_SED
4651{ echo "$as_me:$LINENO: result: $SED" >&5
4652echo "${ECHO_T}$SED" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004653
mmentovai8c2a4de2006-09-20 16:20:15 +00004654{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4655echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4656if test "${ac_cv_path_GREP+set}" = set; then
brynercb91a2f2006-08-25 21:14:45 +00004657 echo $ECHO_N "(cached) $ECHO_C" >&6
4658else
mmentovai8c2a4de2006-09-20 16:20:15 +00004659 # Extract the first word of "grep ggrep" to use in msg output
4660if test -z "$GREP"; then
4661set dummy grep ggrep; ac_prog_name=$2
4662if test "${ac_cv_path_GREP+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4664else
4665 ac_path_GREP_found=false
4666# Loop through the user's path and test for each of PROGNAME-LIST
4667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4669do
4670 IFS=$as_save_IFS
4671 test -z "$as_dir" && as_dir=.
4672 for ac_prog in grep ggrep; do
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4675 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4676 # Check for GNU ac_path_GREP and select it if it is found.
4677 # Check for GNU $ac_path_GREP
4678case `"$ac_path_GREP" --version 2>&1` in
4679*GNU*)
4680 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4681*)
4682 ac_count=0
4683 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4684 while :
4685 do
4686 cat "conftest.in" "conftest.in" >"conftest.tmp"
4687 mv "conftest.tmp" "conftest.in"
4688 cp "conftest.in" "conftest.nl"
4689 echo 'GREP' >> "conftest.nl"
4690 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4691 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4692 ac_count=`expr $ac_count + 1`
4693 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4694 # Best one so far, save it but keep looking for a better one
4695 ac_cv_path_GREP="$ac_path_GREP"
4696 ac_path_GREP_max=$ac_count
brynercb91a2f2006-08-25 21:14:45 +00004697 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004698 # 10*(2^10) chars as input seems more than enough
4699 test $ac_count -gt 10 && break
4700 done
4701 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4702esac
4703
4704
4705 $ac_path_GREP_found && break 3
4706 done
4707done
4708
4709done
4710IFS=$as_save_IFS
4711
4712
brynercb91a2f2006-08-25 21:14:45 +00004713fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004714
4715GREP="$ac_cv_path_GREP"
4716if test -z "$GREP"; then
4717 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4718echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4719 { (exit 1); exit 1; }; }
4720fi
4721
4722else
4723 ac_cv_path_GREP=$GREP
4724fi
4725
4726
4727fi
4728{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4729echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4730 GREP="$ac_cv_path_GREP"
4731
4732
4733{ echo "$as_me:$LINENO: checking for egrep" >&5
4734echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4735if test "${ac_cv_path_EGREP+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4737else
4738 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4739 then ac_cv_path_EGREP="$GREP -E"
4740 else
4741 # Extract the first word of "egrep" to use in msg output
4742if test -z "$EGREP"; then
4743set dummy egrep; ac_prog_name=$2
4744if test "${ac_cv_path_EGREP+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4746else
4747 ac_path_EGREP_found=false
4748# Loop through the user's path and test for each of PROGNAME-LIST
4749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4751do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_prog in egrep; do
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4757 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4758 # Check for GNU ac_path_EGREP and select it if it is found.
4759 # Check for GNU $ac_path_EGREP
4760case `"$ac_path_EGREP" --version 2>&1` in
4761*GNU*)
4762 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4763*)
4764 ac_count=0
4765 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4766 while :
4767 do
4768 cat "conftest.in" "conftest.in" >"conftest.tmp"
4769 mv "conftest.tmp" "conftest.in"
4770 cp "conftest.in" "conftest.nl"
4771 echo 'EGREP' >> "conftest.nl"
4772 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4773 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4774 ac_count=`expr $ac_count + 1`
4775 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4776 # Best one so far, save it but keep looking for a better one
4777 ac_cv_path_EGREP="$ac_path_EGREP"
4778 ac_path_EGREP_max=$ac_count
4779 fi
4780 # 10*(2^10) chars as input seems more than enough
4781 test $ac_count -gt 10 && break
4782 done
4783 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4784esac
4785
4786
4787 $ac_path_EGREP_found && break 3
4788 done
4789done
4790
4791done
4792IFS=$as_save_IFS
4793
4794
4795fi
4796
4797EGREP="$ac_cv_path_EGREP"
4798if test -z "$EGREP"; then
4799 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4800echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4801 { (exit 1); exit 1; }; }
4802fi
4803
4804else
4805 ac_cv_path_EGREP=$EGREP
4806fi
4807
4808
4809 fi
4810fi
4811{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4812echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4813 EGREP="$ac_cv_path_EGREP"
brynercb91a2f2006-08-25 21:14:45 +00004814
4815
4816
mmentovai8c2a4de2006-09-20 16:20:15 +00004817# Check whether --with-gnu-ld was given.
brynercb91a2f2006-08-25 21:14:45 +00004818if test "${with_gnu_ld+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004819 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
brynercb91a2f2006-08-25 21:14:45 +00004820else
4821 with_gnu_ld=no
mmentovai8c2a4de2006-09-20 16:20:15 +00004822fi
4823
brynercb91a2f2006-08-25 21:14:45 +00004824ac_prog=ld
4825if test "$GCC" = yes; then
4826 # Check if gcc -print-prog-name=ld gives a path.
mmentovai8c2a4de2006-09-20 16:20:15 +00004827 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4828echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004829 case $host in
4830 *-*-mingw*)
4831 # gcc leaves a trailing carriage return which upsets mingw
4832 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4833 *)
4834 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4835 esac
4836 case $ac_prog in
4837 # Accept absolute paths.
4838 [\\/]* | ?:[\\/]*)
4839 re_direlt='/[^/][^/]*/\.\./'
4840 # Canonicalize the pathname of ld
4841 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4842 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4843 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4844 done
4845 test -z "$LD" && LD="$ac_prog"
4846 ;;
4847 "")
4848 # If it fails, then pretend we aren't using GCC.
4849 ac_prog=ld
4850 ;;
4851 *)
4852 # If it is relative, then search for the first ld in PATH.
4853 with_gnu_ld=unknown
4854 ;;
4855 esac
4856elif test "$with_gnu_ld" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004857 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4858echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004859else
mmentovai8c2a4de2006-09-20 16:20:15 +00004860 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4861echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004862fi
4863if test "${lt_cv_path_LD+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4865else
4866 if test -z "$LD"; then
4867 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4868 for ac_dir in $PATH; do
4869 IFS="$lt_save_ifs"
4870 test -z "$ac_dir" && ac_dir=.
4871 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4872 lt_cv_path_LD="$ac_dir/$ac_prog"
4873 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai8c2a4de2006-09-20 16:20:15 +00004874 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004875 # Break only if it was the GNU/non-GNU ld that we prefer.
4876 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4877 *GNU* | *'with BFD'*)
4878 test "$with_gnu_ld" != no && break
4879 ;;
4880 *)
4881 test "$with_gnu_ld" != yes && break
4882 ;;
4883 esac
4884 fi
4885 done
4886 IFS="$lt_save_ifs"
4887else
4888 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4889fi
4890fi
4891
4892LD="$lt_cv_path_LD"
4893if test -n "$LD"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004894 { echo "$as_me:$LINENO: result: $LD" >&5
4895echo "${ECHO_T}$LD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004896else
mmentovai8c2a4de2006-09-20 16:20:15 +00004897 { echo "$as_me:$LINENO: result: no" >&5
4898echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004899fi
4900test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4901echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4902 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004903{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4904echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004905if test "${lt_cv_prog_gnu_ld+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907else
mmentovai8c2a4de2006-09-20 16:20:15 +00004908 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004909case `$LD -v 2>&1 </dev/null` in
4910*GNU* | *'with BFD'*)
4911 lt_cv_prog_gnu_ld=yes
4912 ;;
4913*)
4914 lt_cv_prog_gnu_ld=no
4915 ;;
4916esac
4917fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004918{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4919echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004920with_gnu_ld=$lt_cv_prog_gnu_ld
4921
4922
mmentovai8c2a4de2006-09-20 16:20:15 +00004923{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4924echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004925if test "${lt_cv_ld_reload_flag+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4927else
4928 lt_cv_ld_reload_flag='-r'
4929fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004930{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4931echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004932reload_flag=$lt_cv_ld_reload_flag
4933case $reload_flag in
4934"" | " "*) ;;
4935*) reload_flag=" $reload_flag" ;;
4936esac
4937reload_cmds='$LD$reload_flag -o $output$reload_objs'
mmentovai8c2a4de2006-09-20 16:20:15 +00004938case $host_os in
4939 darwin*)
4940 if test "$GCC" = yes; then
4941 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4942 else
4943 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4944 fi
4945 ;;
4946esac
brynercb91a2f2006-08-25 21:14:45 +00004947
mmentovai8c2a4de2006-09-20 16:20:15 +00004948{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4949echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004950if test "${lt_cv_path_NM+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4952else
4953 if test -n "$NM"; then
4954 # Let the user override the test.
4955 lt_cv_path_NM="$NM"
4956else
mmentovai8c2a4de2006-09-20 16:20:15 +00004957 lt_nm_to_check="${ac_tool_prefix}nm"
4958 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4959 lt_nm_to_check="$lt_nm_to_check nm"
4960 fi
4961 for lt_tmp_nm in $lt_nm_to_check; do
4962 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4963 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4964 IFS="$lt_save_ifs"
4965 test -z "$ac_dir" && ac_dir=.
4966 tmp_nm="$ac_dir/$lt_tmp_nm"
4967 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4968 # Check to see if the nm accepts a BSD-compat flag.
4969 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4970 # nm: unknown option "B" ignored
4971 # Tru64's nm complains that /dev/null is an invalid object file
4972 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4973 */dev/null* | *'Invalid file or object type'*)
4974 lt_cv_path_NM="$tmp_nm -B"
brynercb91a2f2006-08-25 21:14:45 +00004975 break
4976 ;;
4977 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00004978 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4979 */dev/null*)
4980 lt_cv_path_NM="$tmp_nm -p"
4981 break
4982 ;;
4983 *)
4984 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4985 continue # so that we can try to find one that supports BSD flags
4986 ;;
4987 esac
brynercb91a2f2006-08-25 21:14:45 +00004988 ;;
4989 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00004990 fi
4991 done
4992 IFS="$lt_save_ifs"
brynercb91a2f2006-08-25 21:14:45 +00004993 done
brynercb91a2f2006-08-25 21:14:45 +00004994 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4995fi
4996fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004997{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4998echo "${ECHO_T}$lt_cv_path_NM" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004999NM="$lt_cv_path_NM"
5000
mmentovai8c2a4de2006-09-20 16:20:15 +00005001{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5002echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005003LN_S=$as_ln_s
5004if test "$LN_S" = "ln -s"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005005 { echo "$as_me:$LINENO: result: yes" >&5
5006echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005007else
mmentovai8c2a4de2006-09-20 16:20:15 +00005008 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5009echo "${ECHO_T}no, using $LN_S" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005010fi
5011
mmentovai8c2a4de2006-09-20 16:20:15 +00005012{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5013echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005014if test "${lt_cv_deplibs_check_method+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5016else
5017 lt_cv_file_magic_cmd='$MAGIC_CMD'
5018lt_cv_file_magic_test_file=
5019lt_cv_deplibs_check_method='unknown'
5020# Need to set the preceding variable on all platforms that support
5021# interlibrary dependencies.
5022# 'none' -- dependencies not supported.
5023# `unknown' -- same as none, but documents that we really don't know.
5024# 'pass_all' -- all dependencies passed with no checks.
5025# 'test_compile' -- check by making test program.
5026# 'file_magic [[regex]]' -- check by looking for files in library path
5027# which responds to the $file_magic_cmd with a given extended regex.
5028# If you have `file' or equivalent on your system and you're not sure
5029# whether `pass_all' will *always* work, you probably want this one.
5030
5031case $host_os in
5032aix4* | aix5*)
5033 lt_cv_deplibs_check_method=pass_all
5034 ;;
5035
5036beos*)
5037 lt_cv_deplibs_check_method=pass_all
5038 ;;
5039
mmentovai8c2a4de2006-09-20 16:20:15 +00005040bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00005041 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5042 lt_cv_file_magic_cmd='/usr/bin/file -L'
5043 lt_cv_file_magic_test_file=/shlib/libc.so
5044 ;;
5045
5046cygwin*)
5047 # func_win32_libid is a shell function defined in ltmain.sh
5048 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5049 lt_cv_file_magic_cmd='func_win32_libid'
5050 ;;
5051
5052mingw* | pw32*)
5053 # Base MSYS/MinGW do not provide the 'file' command needed by
5054 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5055 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5056 lt_cv_file_magic_cmd='$OBJDUMP -f'
5057 ;;
5058
5059darwin* | rhapsody*)
5060 lt_cv_deplibs_check_method=pass_all
5061 ;;
5062
mmentovai8c2a4de2006-09-20 16:20:15 +00005063freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +00005064 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5065 case $host_cpu in
5066 i*86 )
5067 # Not sure whether the presence of OpenBSD here was a mistake.
5068 # Let's accept both of them until this is cleared up.
mmentovai8c2a4de2006-09-20 16:20:15 +00005069 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
brynercb91a2f2006-08-25 21:14:45 +00005070 lt_cv_file_magic_cmd=/usr/bin/file
5071 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5072 ;;
5073 esac
5074 else
5075 lt_cv_deplibs_check_method=pass_all
5076 fi
5077 ;;
5078
5079gnu*)
5080 lt_cv_deplibs_check_method=pass_all
5081 ;;
5082
5083hpux10.20* | hpux11*)
5084 lt_cv_file_magic_cmd=/usr/bin/file
mmentovai8c2a4de2006-09-20 16:20:15 +00005085 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00005086 ia64*)
5087 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5088 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5089 ;;
5090 hppa*64*)
5091 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]'
5092 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5093 ;;
5094 *)
5095 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5096 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5097 ;;
5098 esac
5099 ;;
5100
mmentovai8c2a4de2006-09-20 16:20:15 +00005101interix3*)
5102 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5104 ;;
5105
brynercb91a2f2006-08-25 21:14:45 +00005106irix5* | irix6* | nonstopux*)
5107 case $LD in
5108 *-32|*"-32 ") libmagic=32-bit;;
5109 *-n32|*"-n32 ") libmagic=N32;;
5110 *-64|*"-64 ") libmagic=64-bit;;
5111 *) libmagic=never-match;;
5112 esac
5113 lt_cv_deplibs_check_method=pass_all
5114 ;;
5115
5116# This must be Linux ELF.
5117linux*)
5118 lt_cv_deplibs_check_method=pass_all
5119 ;;
5120
mmentovai8c2a4de2006-09-20 16:20:15 +00005121netbsd*)
brynercb91a2f2006-08-25 21:14:45 +00005122 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5124 else
5125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5126 fi
5127 ;;
5128
5129newos6*)
5130 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5131 lt_cv_file_magic_cmd=/usr/bin/file
5132 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5133 ;;
5134
5135nto-qnx*)
5136 lt_cv_deplibs_check_method=unknown
5137 ;;
5138
5139openbsd*)
brynercb91a2f2006-08-25 21:14:45 +00005140 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005141 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00005142 else
mmentovai8c2a4de2006-09-20 16:20:15 +00005143 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00005144 fi
5145 ;;
5146
5147osf3* | osf4* | osf5*)
5148 lt_cv_deplibs_check_method=pass_all
5149 ;;
5150
brynercb91a2f2006-08-25 21:14:45 +00005151solaris*)
5152 lt_cv_deplibs_check_method=pass_all
5153 ;;
5154
mmentovai8c2a4de2006-09-20 16:20:15 +00005155sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00005156 case $host_vendor in
5157 motorola)
5158 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]'
5159 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5160 ;;
5161 ncr)
5162 lt_cv_deplibs_check_method=pass_all
5163 ;;
5164 sequent)
5165 lt_cv_file_magic_cmd='/bin/file'
5166 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5167 ;;
5168 sni)
5169 lt_cv_file_magic_cmd='/bin/file'
5170 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5171 lt_cv_file_magic_test_file=/lib/libc.so
5172 ;;
5173 siemens)
5174 lt_cv_deplibs_check_method=pass_all
5175 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005176 pc)
5177 lt_cv_deplibs_check_method=pass_all
5178 ;;
brynercb91a2f2006-08-25 21:14:45 +00005179 esac
5180 ;;
5181
mmentovai8c2a4de2006-09-20 16:20:15 +00005182sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
brynercb91a2f2006-08-25 21:14:45 +00005183 lt_cv_deplibs_check_method=pass_all
5184 ;;
5185esac
5186
5187fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005188{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5189echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005190file_magic_cmd=$lt_cv_file_magic_cmd
5191deplibs_check_method=$lt_cv_deplibs_check_method
5192test -z "$deplibs_check_method" && deplibs_check_method=unknown
5193
5194
5195
5196
5197# If no C compiler was specified, use CC.
5198LTCC=${LTCC-"$CC"}
5199
mmentovai8c2a4de2006-09-20 16:20:15 +00005200# If no C compiler flags were specified, use CFLAGS.
5201LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5202
brynercb91a2f2006-08-25 21:14:45 +00005203# Allow CC to be a program name with arguments.
5204compiler=$CC
5205
5206
mmentovai8c2a4de2006-09-20 16:20:15 +00005207# Check whether --enable-libtool-lock was given.
brynercb91a2f2006-08-25 21:14:45 +00005208if test "${enable_libtool_lock+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005209 enableval=$enable_libtool_lock;
5210fi
brynercb91a2f2006-08-25 21:14:45 +00005211
brynercb91a2f2006-08-25 21:14:45 +00005212test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5213
5214# Some flags need to be propagated to the compiler or linker for good
5215# libtool support.
5216case $host in
5217ia64-*-hpux*)
5218 # Find out which ABI we are using.
5219 echo 'int i;' > conftest.$ac_ext
5220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5221 (eval $ac_compile) 2>&5
5222 ac_status=$?
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; then
5225 case `/usr/bin/file conftest.$ac_objext` in
5226 *ELF-32*)
5227 HPUX_IA64_MODE="32"
5228 ;;
5229 *ELF-64*)
5230 HPUX_IA64_MODE="64"
5231 ;;
5232 esac
5233 fi
5234 rm -rf conftest*
5235 ;;
5236*-*-irix6*)
5237 # Find out which ABI we are using.
mmentovaidb3342a2006-12-05 22:52:28 +00005238 echo '#line 5238 "configure"' > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5240 (eval $ac_compile) 2>&5
5241 ac_status=$?
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; then
5244 if test "$lt_cv_prog_gnu_ld" = yes; then
5245 case `/usr/bin/file conftest.$ac_objext` in
5246 *32-bit*)
5247 LD="${LD-ld} -melf32bsmip"
5248 ;;
5249 *N32*)
5250 LD="${LD-ld} -melf32bmipn32"
5251 ;;
5252 *64-bit*)
5253 LD="${LD-ld} -melf64bmip"
5254 ;;
5255 esac
5256 else
5257 case `/usr/bin/file conftest.$ac_objext` in
5258 *32-bit*)
5259 LD="${LD-ld} -32"
5260 ;;
5261 *N32*)
5262 LD="${LD-ld} -n32"
5263 ;;
5264 *64-bit*)
5265 LD="${LD-ld} -64"
5266 ;;
5267 esac
5268 fi
5269 fi
5270 rm -rf conftest*
5271 ;;
5272
5273x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5274 # Find out which ABI we are using.
5275 echo 'int i;' > conftest.$ac_ext
5276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5277 (eval $ac_compile) 2>&5
5278 ac_status=$?
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005281 case `/usr/bin/file conftest.o` in
brynercb91a2f2006-08-25 21:14:45 +00005282 *32-bit*)
5283 case $host in
5284 x86_64-*linux*)
5285 LD="${LD-ld} -m elf_i386"
5286 ;;
5287 ppc64-*linux*|powerpc64-*linux*)
5288 LD="${LD-ld} -m elf32ppclinux"
5289 ;;
5290 s390x-*linux*)
5291 LD="${LD-ld} -m elf_s390"
5292 ;;
5293 sparc64-*linux*)
5294 LD="${LD-ld} -m elf32_sparc"
5295 ;;
5296 esac
5297 ;;
5298 *64-bit*)
5299 case $host in
5300 x86_64-*linux*)
5301 LD="${LD-ld} -m elf_x86_64"
5302 ;;
5303 ppc*-*linux*|powerpc*-*linux*)
5304 LD="${LD-ld} -m elf64ppc"
5305 ;;
5306 s390*-*linux*)
5307 LD="${LD-ld} -m elf64_s390"
5308 ;;
5309 sparc*-*linux*)
5310 LD="${LD-ld} -m elf64_sparc"
5311 ;;
5312 esac
5313 ;;
5314 esac
5315 fi
5316 rm -rf conftest*
5317 ;;
5318
5319*-*-sco3.2v5*)
5320 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5321 SAVE_CFLAGS="$CFLAGS"
5322 CFLAGS="$CFLAGS -belf"
mmentovai8c2a4de2006-09-20 16:20:15 +00005323 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5324echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005325if test "${lt_cv_cc_needs_belf+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5327else
5328 ac_ext=c
5329ac_cpp='$CPP $CPPFLAGS'
5330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5332ac_compiler_gnu=$ac_cv_c_compiler_gnu
5333
5334 cat >conftest.$ac_ext <<_ACEOF
5335/* confdefs.h. */
5336_ACEOF
5337cat confdefs.h >>conftest.$ac_ext
5338cat >>conftest.$ac_ext <<_ACEOF
5339/* end confdefs.h. */
5340
5341int
5342main ()
5343{
5344
5345 ;
5346 return 0;
5347}
5348_ACEOF
5349rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00005350if { (ac_try="$ac_link"
5351case "(($ac_try" in
5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5354esac
5355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005357 ac_status=$?
5358 grep -v '^ *+' conftest.er1 >conftest.err
5359 rm -f conftest.er1
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00005363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5364 { (case "(($ac_try" in
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5367esac
5368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5369 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; } &&
5373 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00005374 { (case "(($ac_try" in
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5377esac
5378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005380 ac_status=$?
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }; }; then
5383 lt_cv_cc_needs_belf=yes
5384else
5385 echo "$as_me: failed program was:" >&5
5386sed 's/^/| /' conftest.$ac_ext >&5
5387
mmentovai8c2a4de2006-09-20 16:20:15 +00005388 lt_cv_cc_needs_belf=no
brynercb91a2f2006-08-25 21:14:45 +00005389fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005390
5391rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +00005392 conftest$ac_exeext conftest.$ac_ext
5393 ac_ext=c
5394ac_cpp='$CPP $CPPFLAGS'
5395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5397ac_compiler_gnu=$ac_cv_c_compiler_gnu
5398
5399fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005400{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5401echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005402 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5403 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5404 CFLAGS="$SAVE_CFLAGS"
5405 fi
5406 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005407sparc*-*solaris*)
5408 # Find out which ABI we are using.
5409 echo 'int i;' > conftest.$ac_ext
5410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5411 (eval $ac_compile) 2>&5
5412 ac_status=$?
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; then
5415 case `/usr/bin/file conftest.o` in
5416 *64-bit*)
5417 case $lt_cv_prog_gnu_ld in
5418 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5419 *) LD="${LD-ld} -64" ;;
5420 esac
5421 ;;
5422 esac
5423 fi
5424 rm -rf conftest*
5425 ;;
5426
brynercb91a2f2006-08-25 21:14:45 +00005427
5428esac
5429
5430need_locks="$enable_libtool_lock"
5431
5432
5433
mmentovai8c2a4de2006-09-20 16:20:15 +00005434{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5435echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005436if test "${ac_cv_header_stdc+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5438else
5439 cat >conftest.$ac_ext <<_ACEOF
5440/* confdefs.h. */
5441_ACEOF
5442cat confdefs.h >>conftest.$ac_ext
5443cat >>conftest.$ac_ext <<_ACEOF
5444/* end confdefs.h. */
5445#include <stdlib.h>
5446#include <stdarg.h>
5447#include <string.h>
5448#include <float.h>
5449
5450int
5451main ()
5452{
5453
5454 ;
5455 return 0;
5456}
5457_ACEOF
5458rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00005459if { (ac_try="$ac_compile"
5460case "(($ac_try" in
5461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462 *) ac_try_echo=$ac_try;;
5463esac
5464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005466 ac_status=$?
5467 grep -v '^ *+' conftest.er1 >conftest.err
5468 rm -f conftest.er1
5469 cat conftest.err >&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00005472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5473 { (case "(($ac_try" in
5474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5476esac
5477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005479 ac_status=$?
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; } &&
5482 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +00005483 { (case "(($ac_try" in
5484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485 *) ac_try_echo=$ac_try;;
5486esac
5487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5488 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005489 ac_status=$?
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); }; }; then
5492 ac_cv_header_stdc=yes
5493else
5494 echo "$as_me: failed program was:" >&5
5495sed 's/^/| /' conftest.$ac_ext >&5
5496
mmentovai8c2a4de2006-09-20 16:20:15 +00005497 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +00005498fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005499
5500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005501
5502if test $ac_cv_header_stdc = yes; then
5503 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5504 cat >conftest.$ac_ext <<_ACEOF
5505/* confdefs.h. */
5506_ACEOF
5507cat confdefs.h >>conftest.$ac_ext
5508cat >>conftest.$ac_ext <<_ACEOF
5509/* end confdefs.h. */
5510#include <string.h>
5511
5512_ACEOF
5513if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5514 $EGREP "memchr" >/dev/null 2>&1; then
5515 :
5516else
5517 ac_cv_header_stdc=no
5518fi
5519rm -f conftest*
5520
5521fi
5522
5523if test $ac_cv_header_stdc = yes; then
5524 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5525 cat >conftest.$ac_ext <<_ACEOF
5526/* confdefs.h. */
5527_ACEOF
5528cat confdefs.h >>conftest.$ac_ext
5529cat >>conftest.$ac_ext <<_ACEOF
5530/* end confdefs.h. */
5531#include <stdlib.h>
5532
5533_ACEOF
5534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5535 $EGREP "free" >/dev/null 2>&1; then
5536 :
5537else
5538 ac_cv_header_stdc=no
5539fi
5540rm -f conftest*
5541
5542fi
5543
5544if test $ac_cv_header_stdc = yes; then
5545 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5546 if test "$cross_compiling" = yes; then
5547 :
5548else
5549 cat >conftest.$ac_ext <<_ACEOF
5550/* confdefs.h. */
5551_ACEOF
5552cat confdefs.h >>conftest.$ac_ext
5553cat >>conftest.$ac_ext <<_ACEOF
5554/* end confdefs.h. */
5555#include <ctype.h>
mmentovai8c2a4de2006-09-20 16:20:15 +00005556#include <stdlib.h>
brynercb91a2f2006-08-25 21:14:45 +00005557#if ((' ' & 0x0FF) == 0x020)
5558# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5559# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5560#else
5561# define ISLOWER(c) \
5562 (('a' <= (c) && (c) <= 'i') \
5563 || ('j' <= (c) && (c) <= 'r') \
5564 || ('s' <= (c) && (c) <= 'z'))
5565# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5566#endif
5567
5568#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5569int
5570main ()
5571{
5572 int i;
5573 for (i = 0; i < 256; i++)
5574 if (XOR (islower (i), ISLOWER (i))
5575 || toupper (i) != TOUPPER (i))
mmentovai8c2a4de2006-09-20 16:20:15 +00005576 return 2;
5577 return 0;
brynercb91a2f2006-08-25 21:14:45 +00005578}
5579_ACEOF
5580rm -f conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00005581if { (ac_try="$ac_link"
5582case "(($ac_try" in
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5585esac
5586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005588 ac_status=$?
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00005591 { (case "(($ac_try" in
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5594esac
5595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; }; then
5600 :
5601else
5602 echo "$as_me: program exited with status $ac_status" >&5
5603echo "$as_me: failed program was:" >&5
5604sed 's/^/| /' conftest.$ac_ext >&5
5605
5606( exit $ac_status )
5607ac_cv_header_stdc=no
5608fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005609rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5610fi
5611
5612
brynercb91a2f2006-08-25 21:14:45 +00005613fi
5614fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005615{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5616echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005617if test $ac_cv_header_stdc = yes; then
5618
5619cat >>confdefs.h <<\_ACEOF
5620#define STDC_HEADERS 1
5621_ACEOF
5622
5623fi
5624
5625# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5636 inttypes.h stdint.h unistd.h
5637do
5638as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
mmentovai8c2a4de2006-09-20 16:20:15 +00005639{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5641if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
brynercb91a2f2006-08-25 21:14:45 +00005642 echo $ECHO_N "(cached) $ECHO_C" >&6
5643else
5644 cat >conftest.$ac_ext <<_ACEOF
5645/* confdefs.h. */
5646_ACEOF
5647cat confdefs.h >>conftest.$ac_ext
5648cat >>conftest.$ac_ext <<_ACEOF
5649/* end confdefs.h. */
5650$ac_includes_default
5651
5652#include <$ac_header>
5653_ACEOF
5654rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00005655if { (ac_try="$ac_compile"
5656case "(($ac_try" in
5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658 *) ac_try_echo=$ac_try;;
5659esac
5660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005662 ac_status=$?
5663 grep -v '^ *+' conftest.er1 >conftest.err
5664 rm -f conftest.er1
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00005668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5669 { (case "(($ac_try" in
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5672esac
5673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; } &&
5678 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +00005679 { (case "(($ac_try" in
5680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681 *) ac_try_echo=$ac_try;;
5682esac
5683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005685 ac_status=$?
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; }; then
5688 eval "$as_ac_Header=yes"
5689else
5690 echo "$as_me: failed program was:" >&5
5691sed 's/^/| /' conftest.$ac_ext >&5
5692
mmentovai8c2a4de2006-09-20 16:20:15 +00005693 eval "$as_ac_Header=no"
brynercb91a2f2006-08-25 21:14:45 +00005694fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005695
5696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00005697fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005698ac_res=`eval echo '${'$as_ac_Header'}'`
5699 { echo "$as_me:$LINENO: result: $ac_res" >&5
5700echo "${ECHO_T}$ac_res" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005701if test `eval echo '${'$as_ac_Header'}'` = yes; then
5702 cat >>confdefs.h <<_ACEOF
5703#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5704_ACEOF
5705
5706fi
5707
5708done
5709
5710
5711
5712for ac_header in dlfcn.h
5713do
5714as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
mmentovai8c2a4de2006-09-20 16:20:15 +00005715if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5718if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
brynercb91a2f2006-08-25 21:14:45 +00005719 echo $ECHO_N "(cached) $ECHO_C" >&6
5720fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005721ac_res=`eval echo '${'$as_ac_Header'}'`
5722 { echo "$as_me:$LINENO: result: $ac_res" >&5
5723echo "${ECHO_T}$ac_res" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005724else
5725 # Is the header compilable?
mmentovai8c2a4de2006-09-20 16:20:15 +00005726{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5727echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005728cat >conftest.$ac_ext <<_ACEOF
5729/* confdefs.h. */
5730_ACEOF
5731cat confdefs.h >>conftest.$ac_ext
5732cat >>conftest.$ac_ext <<_ACEOF
5733/* end confdefs.h. */
5734$ac_includes_default
5735#include <$ac_header>
5736_ACEOF
5737rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +00005738if { (ac_try="$ac_compile"
5739case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742esac
5743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005745 ac_status=$?
5746 grep -v '^ *+' conftest.er1 >conftest.err
5747 rm -f conftest.er1
5748 cat conftest.err >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00005751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5752 { (case "(($ac_try" in
5753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5754 *) ac_try_echo=$ac_try;;
5755esac
5756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5757 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005758 ac_status=$?
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; } &&
5761 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +00005762 { (case "(($ac_try" in
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5765esac
5766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5767 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00005768 ac_status=$?
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }; }; then
5771 ac_header_compiler=yes
5772else
5773 echo "$as_me: failed program was:" >&5
5774sed 's/^/| /' conftest.$ac_ext >&5
5775
mmentovai8c2a4de2006-09-20 16:20:15 +00005776 ac_header_compiler=no
brynercb91a2f2006-08-25 21:14:45 +00005777fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005778
5779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5781echo "${ECHO_T}$ac_header_compiler" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005782
5783# Is the header present?
mmentovai8c2a4de2006-09-20 16:20:15 +00005784{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5785echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005786cat >conftest.$ac_ext <<_ACEOF
5787/* confdefs.h. */
5788_ACEOF
5789cat confdefs.h >>conftest.$ac_ext
5790cat >>conftest.$ac_ext <<_ACEOF
5791/* end confdefs.h. */
5792#include <$ac_header>
5793_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00005794if { (ac_try="$ac_cpp conftest.$ac_ext"
5795case "(($ac_try" in
5796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5797 *) ac_try_echo=$ac_try;;
5798esac
5799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005801 ac_status=$?
5802 grep -v '^ *+' conftest.er1 >conftest.err
5803 rm -f conftest.er1
5804 cat conftest.err >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } >/dev/null; then
5807 if test -s conftest.err; then
5808 ac_cpp_err=$ac_c_preproc_warn_flag
5809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5810 else
5811 ac_cpp_err=
5812 fi
5813else
5814 ac_cpp_err=yes
5815fi
5816if test -z "$ac_cpp_err"; then
5817 ac_header_preproc=yes
5818else
5819 echo "$as_me: failed program was:" >&5
5820sed 's/^/| /' conftest.$ac_ext >&5
5821
5822 ac_header_preproc=no
5823fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005824
brynercb91a2f2006-08-25 21:14:45 +00005825rm -f conftest.err conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00005826{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5827echo "${ECHO_T}$ac_header_preproc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005828
5829# So? What about this header?
5830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5831 yes:no: )
5832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5833echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5835echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5836 ac_header_preproc=yes
5837 ;;
5838 no:yes:* )
5839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5840echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5842echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5844echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5846echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5848echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5850echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00005851 ( cat <<\_ASBOX
brynercb91a2f2006-08-25 21:14:45 +00005852## ------------------------------------ ##
5853## Report this to opensource@google.com ##
5854## ------------------------------------ ##
5855_ASBOX
mmentovai8c2a4de2006-09-20 16:20:15 +00005856 ) | sed "s/^/$as_me: WARNING: /" >&2
brynercb91a2f2006-08-25 21:14:45 +00005857 ;;
5858esac
mmentovai8c2a4de2006-09-20 16:20:15 +00005859{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5861if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
brynercb91a2f2006-08-25 21:14:45 +00005862 echo $ECHO_N "(cached) $ECHO_C" >&6
5863else
5864 eval "$as_ac_Header=\$ac_header_preproc"
5865fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005866ac_res=`eval echo '${'$as_ac_Header'}'`
5867 { echo "$as_me:$LINENO: result: $ac_res" >&5
5868echo "${ECHO_T}$ac_res" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005869
5870fi
5871if test `eval echo '${'$as_ac_Header'}'` = yes; then
5872 cat >>confdefs.h <<_ACEOF
5873#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5874_ACEOF
5875
5876fi
5877
5878done
5879
mmentovai8c2a4de2006-09-20 16:20:15 +00005880
5881
5882if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5883 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5884 (test "X$CXX" != "Xg++"))) ; then
5885 ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00005886ac_cpp='$CXXCPP $CPPFLAGS'
5887ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5888ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5889ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00005890{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5891echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005892if test -z "$CXXCPP"; then
5893 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
5895else
5896 # Double quotes because CXXCPP needs to be expanded
5897 for CXXCPP in "$CXX -E" "/lib/cpp"
5898 do
5899 ac_preproc_ok=false
5900for ac_cxx_preproc_warn_flag in '' yes
5901do
5902 # Use a header file that comes with gcc, so configuring glibc
5903 # with a fresh cross-compiler works.
5904 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5905 # <limits.h> exists even on freestanding compilers.
5906 # On the NeXT, cc -E runs the code through the compiler's parser,
5907 # not just through cpp. "Syntax error" is here to catch this case.
5908 cat >conftest.$ac_ext <<_ACEOF
5909/* confdefs.h. */
5910_ACEOF
5911cat confdefs.h >>conftest.$ac_ext
5912cat >>conftest.$ac_ext <<_ACEOF
5913/* end confdefs.h. */
5914#ifdef __STDC__
5915# include <limits.h>
5916#else
5917# include <assert.h>
5918#endif
5919 Syntax error
5920_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00005921if { (ac_try="$ac_cpp conftest.$ac_ext"
5922case "(($ac_try" in
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5925esac
5926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005928 ac_status=$?
5929 grep -v '^ *+' conftest.er1 >conftest.err
5930 rm -f conftest.er1
5931 cat conftest.err >&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } >/dev/null; then
5934 if test -s conftest.err; then
5935 ac_cpp_err=$ac_cxx_preproc_warn_flag
5936 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5937 else
5938 ac_cpp_err=
5939 fi
5940else
5941 ac_cpp_err=yes
5942fi
5943if test -z "$ac_cpp_err"; then
5944 :
5945else
5946 echo "$as_me: failed program was:" >&5
5947sed 's/^/| /' conftest.$ac_ext >&5
5948
5949 # Broken: fails on valid input.
5950continue
5951fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005952
brynercb91a2f2006-08-25 21:14:45 +00005953rm -f conftest.err conftest.$ac_ext
5954
mmentovai8c2a4de2006-09-20 16:20:15 +00005955 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00005956 # can be detected and how.
5957 cat >conftest.$ac_ext <<_ACEOF
5958/* confdefs.h. */
5959_ACEOF
5960cat confdefs.h >>conftest.$ac_ext
5961cat >>conftest.$ac_ext <<_ACEOF
5962/* end confdefs.h. */
5963#include <ac_nonexistent.h>
5964_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00005965if { (ac_try="$ac_cpp conftest.$ac_ext"
5966case "(($ac_try" in
5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968 *) ac_try_echo=$ac_try;;
5969esac
5970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00005972 ac_status=$?
5973 grep -v '^ *+' conftest.er1 >conftest.err
5974 rm -f conftest.er1
5975 cat conftest.err >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } >/dev/null; then
5978 if test -s conftest.err; then
5979 ac_cpp_err=$ac_cxx_preproc_warn_flag
5980 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5981 else
5982 ac_cpp_err=
5983 fi
5984else
5985 ac_cpp_err=yes
5986fi
5987if test -z "$ac_cpp_err"; then
5988 # Broken: success on invalid input.
5989continue
5990else
5991 echo "$as_me: failed program was:" >&5
5992sed 's/^/| /' conftest.$ac_ext >&5
5993
5994 # Passes both tests.
5995ac_preproc_ok=:
5996break
5997fi
mmentovai8c2a4de2006-09-20 16:20:15 +00005998
brynercb91a2f2006-08-25 21:14:45 +00005999rm -f conftest.err conftest.$ac_ext
6000
6001done
6002# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6003rm -f conftest.err conftest.$ac_ext
6004if $ac_preproc_ok; then
6005 break
6006fi
6007
6008 done
6009 ac_cv_prog_CXXCPP=$CXXCPP
6010
6011fi
6012 CXXCPP=$ac_cv_prog_CXXCPP
6013else
6014 ac_cv_prog_CXXCPP=$CXXCPP
6015fi
mmentovai8c2a4de2006-09-20 16:20:15 +00006016{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6017echo "${ECHO_T}$CXXCPP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006018ac_preproc_ok=false
6019for ac_cxx_preproc_warn_flag in '' yes
6020do
6021 # Use a header file that comes with gcc, so configuring glibc
6022 # with a fresh cross-compiler works.
6023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6024 # <limits.h> exists even on freestanding compilers.
6025 # On the NeXT, cc -E runs the code through the compiler's parser,
6026 # not just through cpp. "Syntax error" is here to catch this case.
6027 cat >conftest.$ac_ext <<_ACEOF
6028/* confdefs.h. */
6029_ACEOF
6030cat confdefs.h >>conftest.$ac_ext
6031cat >>conftest.$ac_ext <<_ACEOF
6032/* end confdefs.h. */
6033#ifdef __STDC__
6034# include <limits.h>
6035#else
6036# include <assert.h>
6037#endif
6038 Syntax error
6039_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00006040if { (ac_try="$ac_cpp conftest.$ac_ext"
6041case "(($ac_try" in
6042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043 *) ac_try_echo=$ac_try;;
6044esac
6045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00006047 ac_status=$?
6048 grep -v '^ *+' conftest.er1 >conftest.err
6049 rm -f conftest.er1
6050 cat conftest.err >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } >/dev/null; then
6053 if test -s conftest.err; then
6054 ac_cpp_err=$ac_cxx_preproc_warn_flag
6055 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6056 else
6057 ac_cpp_err=
6058 fi
6059else
6060 ac_cpp_err=yes
6061fi
6062if test -z "$ac_cpp_err"; then
6063 :
6064else
6065 echo "$as_me: failed program was:" >&5
6066sed 's/^/| /' conftest.$ac_ext >&5
6067
6068 # Broken: fails on valid input.
6069continue
6070fi
mmentovai8c2a4de2006-09-20 16:20:15 +00006071
brynercb91a2f2006-08-25 21:14:45 +00006072rm -f conftest.err conftest.$ac_ext
6073
mmentovai8c2a4de2006-09-20 16:20:15 +00006074 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00006075 # can be detected and how.
6076 cat >conftest.$ac_ext <<_ACEOF
6077/* confdefs.h. */
6078_ACEOF
6079cat confdefs.h >>conftest.$ac_ext
6080cat >>conftest.$ac_ext <<_ACEOF
6081/* end confdefs.h. */
6082#include <ac_nonexistent.h>
6083_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00006084if { (ac_try="$ac_cpp conftest.$ac_ext"
6085case "(($ac_try" in
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6088esac
6089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00006091 ac_status=$?
6092 grep -v '^ *+' conftest.er1 >conftest.err
6093 rm -f conftest.er1
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } >/dev/null; then
6097 if test -s conftest.err; then
6098 ac_cpp_err=$ac_cxx_preproc_warn_flag
6099 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6100 else
6101 ac_cpp_err=
6102 fi
6103else
6104 ac_cpp_err=yes
6105fi
6106if test -z "$ac_cpp_err"; then
6107 # Broken: success on invalid input.
6108continue
6109else
6110 echo "$as_me: failed program was:" >&5
6111sed 's/^/| /' conftest.$ac_ext >&5
6112
6113 # Passes both tests.
6114ac_preproc_ok=:
6115break
6116fi
mmentovai8c2a4de2006-09-20 16:20:15 +00006117
brynercb91a2f2006-08-25 21:14:45 +00006118rm -f conftest.err conftest.$ac_ext
6119
6120done
6121# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6122rm -f conftest.err conftest.$ac_ext
6123if $ac_preproc_ok; then
6124 :
6125else
6126 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6127See \`config.log' for more details." >&5
6128echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6129See \`config.log' for more details." >&2;}
6130 { (exit 1); exit 1; }; }
6131fi
6132
mmentovai8c2a4de2006-09-20 16:20:15 +00006133ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00006134ac_cpp='$CXXCPP $CPPFLAGS'
6135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6138
mmentovai8c2a4de2006-09-20 16:20:15 +00006139fi
6140
6141
6142ac_ext=f
6143ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6144ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6145ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6146if test -n "$ac_tool_prefix"; then
6147 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6148 do
6149 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6150set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6151{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6153if test "${ac_cv_prog_F77+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6155else
6156 if test -n "$F77"; then
6157 ac_cv_prog_F77="$F77" # Let the user override the test.
6158else
6159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160for as_dir in $PATH
6161do
6162 IFS=$as_save_IFS
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6166 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 break 2
6169 fi
6170done
6171done
6172IFS=$as_save_IFS
6173
6174fi
6175fi
6176F77=$ac_cv_prog_F77
6177if test -n "$F77"; then
6178 { echo "$as_me:$LINENO: result: $F77" >&5
6179echo "${ECHO_T}$F77" >&6; }
6180else
6181 { echo "$as_me:$LINENO: result: no" >&5
6182echo "${ECHO_T}no" >&6; }
6183fi
6184
6185
6186 test -n "$F77" && break
6187 done
6188fi
6189if test -z "$F77"; then
6190 ac_ct_F77=$F77
6191 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6192do
6193 # Extract the first word of "$ac_prog", so it can be a program name with args.
6194set dummy $ac_prog; ac_word=$2
6195{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6197if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6199else
6200 if test -n "$ac_ct_F77"; then
6201 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6202else
6203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204for as_dir in $PATH
6205do
6206 IFS=$as_save_IFS
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6210 ac_cv_prog_ac_ct_F77="$ac_prog"
6211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 break 2
6213 fi
6214done
6215done
6216IFS=$as_save_IFS
6217
6218fi
6219fi
6220ac_ct_F77=$ac_cv_prog_ac_ct_F77
6221if test -n "$ac_ct_F77"; then
6222 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6223echo "${ECHO_T}$ac_ct_F77" >&6; }
6224else
6225 { echo "$as_me:$LINENO: result: no" >&5
6226echo "${ECHO_T}no" >&6; }
6227fi
6228
6229
6230 test -n "$ac_ct_F77" && break
6231done
6232
6233 if test "x$ac_ct_F77" = x; then
6234 F77=""
6235 else
6236 case $cross_compiling:$ac_tool_warned in
6237yes:)
6238{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6239whose name does not start with the host triplet. If you think this
6240configuration is useful to you, please write to autoconf@gnu.org." >&5
6241echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6242whose name does not start with the host triplet. If you think this
6243configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6244ac_tool_warned=yes ;;
6245esac
6246 F77=$ac_ct_F77
6247 fi
6248fi
6249
6250
6251# Provide some information about the compiler.
6252echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6253ac_compiler=`set X $ac_compile; echo $2`
6254{ (ac_try="$ac_compiler --version >&5"
6255case "(($ac_try" in
6256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257 *) ac_try_echo=$ac_try;;
6258esac
6259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6260 (eval "$ac_compiler --version >&5") 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }
6264{ (ac_try="$ac_compiler -v >&5"
6265case "(($ac_try" in
6266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267 *) ac_try_echo=$ac_try;;
6268esac
6269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6270 (eval "$ac_compiler -v >&5") 2>&5
6271 ac_status=$?
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }
6274{ (ac_try="$ac_compiler -V >&5"
6275case "(($ac_try" in
6276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6277 *) ac_try_echo=$ac_try;;
6278esac
6279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6280 (eval "$ac_compiler -V >&5") 2>&5
6281 ac_status=$?
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }
6284rm -f a.out
6285
6286# If we don't use `.F' as extension, the preprocessor is not run on the
6287# input file. (Note that this only needs to work for GNU compilers.)
6288ac_save_ext=$ac_ext
6289ac_ext=F
6290{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6291echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6292if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6294else
6295 cat >conftest.$ac_ext <<_ACEOF
6296 program main
6297#ifndef __GNUC__
6298 choke me
6299#endif
6300
6301 end
6302_ACEOF
6303rm -f conftest.$ac_objext
6304if { (ac_try="$ac_compile"
6305case "(($ac_try" in
6306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6307 *) ac_try_echo=$ac_try;;
6308esac
6309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6310 (eval "$ac_compile") 2>conftest.er1
6311 ac_status=$?
6312 grep -v '^ *+' conftest.er1 >conftest.err
6313 rm -f conftest.er1
6314 cat conftest.err >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } &&
6317 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6318 { (case "(($ac_try" in
6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6321esac
6322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_try") 2>&5
6324 ac_status=$?
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; } &&
6327 { ac_try='test -s conftest.$ac_objext'
6328 { (case "(($ac_try" in
6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330 *) ac_try_echo=$ac_try;;
6331esac
6332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333 (eval "$ac_try") 2>&5
6334 ac_status=$?
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; }; then
6337 ac_compiler_gnu=yes
6338else
6339 echo "$as_me: failed program was:" >&5
6340sed 's/^/| /' conftest.$ac_ext >&5
6341
6342 ac_compiler_gnu=no
6343fi
6344
6345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6346ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6347
6348fi
6349{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6350echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6351ac_ext=$ac_save_ext
6352ac_test_FFLAGS=${FFLAGS+set}
6353ac_save_FFLAGS=$FFLAGS
6354FFLAGS=
6355{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6356echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6357if test "${ac_cv_prog_f77_g+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6359else
6360 FFLAGS=-g
6361cat >conftest.$ac_ext <<_ACEOF
6362 program main
6363
6364 end
6365_ACEOF
6366rm -f conftest.$ac_objext
6367if { (ac_try="$ac_compile"
6368case "(($ac_try" in
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6371esac
6372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373 (eval "$ac_compile") 2>conftest.er1
6374 ac_status=$?
6375 grep -v '^ *+' conftest.er1 >conftest.err
6376 rm -f conftest.er1
6377 cat conftest.err >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
6380 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6381 { (case "(($ac_try" in
6382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6383 *) ac_try_echo=$ac_try;;
6384esac
6385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6386 (eval "$ac_try") 2>&5
6387 ac_status=$?
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; } &&
6390 { ac_try='test -s conftest.$ac_objext'
6391 { (case "(($ac_try" in
6392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393 *) ac_try_echo=$ac_try;;
6394esac
6395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6396 (eval "$ac_try") 2>&5
6397 ac_status=$?
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; }; then
6400 ac_cv_prog_f77_g=yes
6401else
6402 echo "$as_me: failed program was:" >&5
6403sed 's/^/| /' conftest.$ac_ext >&5
6404
6405 ac_cv_prog_f77_g=no
6406fi
6407
6408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6409
6410fi
6411{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6412echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6413if test "$ac_test_FFLAGS" = set; then
6414 FFLAGS=$ac_save_FFLAGS
6415elif test $ac_cv_prog_f77_g = yes; then
6416 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6417 FFLAGS="-g -O2"
6418 else
6419 FFLAGS="-g"
6420 fi
6421else
6422 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6423 FFLAGS="-O2"
6424 else
6425 FFLAGS=
6426 fi
6427fi
6428
6429G77=`test $ac_compiler_gnu = yes && echo yes`
6430ac_ext=c
6431ac_cpp='$CPP $CPPFLAGS'
6432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6434ac_compiler_gnu=$ac_cv_c_compiler_gnu
brynercb91a2f2006-08-25 21:14:45 +00006435
6436
6437
6438# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6439
6440# find the maximum length of command line arguments
mmentovai8c2a4de2006-09-20 16:20:15 +00006441{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6442echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006443if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6444 echo $ECHO_N "(cached) $ECHO_C" >&6
6445else
6446 i=0
6447 teststring="ABCD"
6448
6449 case $build_os in
6450 msdosdjgpp*)
6451 # On DJGPP, this test can blow up pretty badly due to problems in libc
6452 # (any single argument exceeding 2000 bytes causes a buffer overrun
6453 # during glob expansion). Even if it were fixed, the result of this
6454 # check would be larger than it should be.
6455 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6456 ;;
6457
6458 gnu*)
6459 # Under GNU Hurd, this test is not required because there is
6460 # no limit to the length of command line arguments.
6461 # Libtool will interpret -1 as no limit whatsoever
6462 lt_cv_sys_max_cmd_len=-1;
6463 ;;
6464
6465 cygwin* | mingw*)
6466 # On Win9x/ME, this test blows up -- it succeeds, but takes
6467 # about 5 minutes as the teststring grows exponentially.
6468 # Worse, since 9x/ME are not pre-emptively multitasking,
6469 # you end up with a "frozen" computer, even though with patience
6470 # the test eventually succeeds (with a max line length of 256k).
6471 # Instead, let's just punt: use the minimum linelength reported by
6472 # all of the supported platforms: 8192 (on NT/2K/XP).
6473 lt_cv_sys_max_cmd_len=8192;
6474 ;;
6475
6476 amigaos*)
6477 # On AmigaOS with pdksh, this test takes hours, literally.
6478 # So we just punt and use a minimum line length of 8192.
6479 lt_cv_sys_max_cmd_len=8192;
6480 ;;
6481
mmentovai8c2a4de2006-09-20 16:20:15 +00006482 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6483 # This has been around since 386BSD, at least. Likely further.
6484 if test -x /sbin/sysctl; then
6485 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6486 elif test -x /usr/sbin/sysctl; then
6487 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6488 else
6489 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6490 fi
6491 # And add a safety zone
6492 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6493 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6494 ;;
6495
6496 interix*)
6497 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6498 lt_cv_sys_max_cmd_len=196608
6499 ;;
6500
6501 osf*)
6502 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6503 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6504 # nice to cause kernel panics so lets avoid the loop below.
6505 # First set a reasonable default.
6506 lt_cv_sys_max_cmd_len=16384
6507 #
6508 if test -x /sbin/sysconfig; then
6509 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6510 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6511 esac
6512 fi
6513 ;;
6514 sco3.2v5*)
6515 lt_cv_sys_max_cmd_len=102400
6516 ;;
6517 sysv5* | sco5v6* | sysv4.2uw2*)
6518 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6519 if test -n "$kargmax"; then
6520 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6521 else
6522 lt_cv_sys_max_cmd_len=32768
6523 fi
6524 ;;
6525 *)
brynercb91a2f2006-08-25 21:14:45 +00006526 # If test is not a shell built-in, we'll probably end up computing a
6527 # maximum length that is only half of the actual maximum length, but
6528 # we can't tell.
mmentovai8c2a4de2006-09-20 16:20:15 +00006529 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6530 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
brynercb91a2f2006-08-25 21:14:45 +00006531 = "XX$teststring") >/dev/null 2>&1 &&
6532 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6533 lt_cv_sys_max_cmd_len=$new_result &&
6534 test $i != 17 # 1/2 MB should be enough
6535 do
6536 i=`expr $i + 1`
6537 teststring=$teststring$teststring
6538 done
6539 teststring=
6540 # Add a significant safety factor because C++ compilers can tack on massive
6541 # amounts of additional arguments before passing them to the linker.
6542 # It appears as though 1/2 is a usable value.
6543 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6544 ;;
6545 esac
6546
6547fi
6548
6549if test -n $lt_cv_sys_max_cmd_len ; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006550 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6551echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006552else
mmentovai8c2a4de2006-09-20 16:20:15 +00006553 { echo "$as_me:$LINENO: result: none" >&5
6554echo "${ECHO_T}none" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006555fi
6556
6557
6558
6559
6560# Check for command to grab the raw symbol name followed by C symbol from nm.
mmentovai8c2a4de2006-09-20 16:20:15 +00006561{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6562echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006563if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6565else
6566
6567# These are sane defaults that work on at least a few old systems.
6568# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6569
6570# Character class describing NM global symbol codes.
6571symcode='[BCDEGRST]'
6572
6573# Regexp to match symbols that can be accessed directly from C.
6574sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6575
brynercb91a2f2006-08-25 21:14:45 +00006576# Transform an extracted symbol line into a proper C declaration
6577lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6578
6579# Transform an extracted symbol line into symbol name and symbol address
6580lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6581
6582# Define system-specific variables.
6583case $host_os in
6584aix*)
6585 symcode='[BCDT]'
6586 ;;
6587cygwin* | mingw* | pw32*)
6588 symcode='[ABCDGISTW]'
6589 ;;
6590hpux*) # Its linker distinguishes data from code symbols
6591 if test "$host_cpu" = ia64; then
6592 symcode='[ABCDEGRST]'
6593 fi
6594 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6595 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6596 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006597linux*)
6598 if test "$host_cpu" = ia64; then
6599 symcode='[ABCDGIRSTW]'
6600 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6601 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6602 fi
6603 ;;
brynercb91a2f2006-08-25 21:14:45 +00006604irix* | nonstopux*)
6605 symcode='[BCDEGRST]'
6606 ;;
6607osf*)
6608 symcode='[BCDEGQRST]'
6609 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006610solaris*)
brynercb91a2f2006-08-25 21:14:45 +00006611 symcode='[BDRT]'
6612 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006613sco3.2v5*)
6614 symcode='[DT]'
6615 ;;
6616sysv4.2uw2*)
6617 symcode='[DT]'
6618 ;;
6619sysv5* | sco5v6* | unixware* | OpenUNIX*)
6620 symcode='[ABDT]'
6621 ;;
brynercb91a2f2006-08-25 21:14:45 +00006622sysv4)
6623 symcode='[DFNSTU]'
6624 ;;
6625esac
6626
6627# Handle CRLF in mingw tool chain
6628opt_cr=
6629case $build_os in
6630mingw*)
6631 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6632 ;;
6633esac
6634
6635# If we're using GNU nm, then use its standard symbol codes.
6636case `$NM -V 2>&1` in
6637*GNU* | *'with BFD'*)
6638 symcode='[ABCDGIRSTW]' ;;
6639esac
6640
6641# Try without a prefix undercore, then with it.
6642for ac_symprfx in "" "_"; do
6643
mmentovai8c2a4de2006-09-20 16:20:15 +00006644 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6645 symxfrm="\\1 $ac_symprfx\\2 \\2"
6646
brynercb91a2f2006-08-25 21:14:45 +00006647 # Write the raw and C identifiers.
mmentovai8c2a4de2006-09-20 16:20:15 +00006648 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
brynercb91a2f2006-08-25 21:14:45 +00006649
6650 # Check to see that the pipe works correctly.
6651 pipe_works=no
6652
6653 rm -f conftest*
6654 cat > conftest.$ac_ext <<EOF
6655#ifdef __cplusplus
6656extern "C" {
6657#endif
6658char nm_test_var;
6659void nm_test_func(){}
6660#ifdef __cplusplus
6661}
6662#endif
6663int main(){nm_test_var='a';nm_test_func();return(0);}
6664EOF
6665
6666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6667 (eval $ac_compile) 2>&5
6668 ac_status=$?
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); }; then
6671 # Now try to grab the symbols.
6672 nlist=conftest.nm
6673 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6674 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6675 ac_status=$?
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } && test -s "$nlist"; then
6678 # Try sorting and uniquifying the output.
6679 if sort "$nlist" | uniq > "$nlist"T; then
6680 mv -f "$nlist"T "$nlist"
6681 else
6682 rm -f "$nlist"T
6683 fi
6684
6685 # Make sure that we snagged all the symbols we need.
6686 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6687 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6688 cat <<EOF > conftest.$ac_ext
6689#ifdef __cplusplus
6690extern "C" {
6691#endif
6692
6693EOF
6694 # Now generate the symbol file.
6695 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6696
6697 cat <<EOF >> conftest.$ac_ext
6698#if defined (__STDC__) && __STDC__
6699# define lt_ptr_t void *
6700#else
6701# define lt_ptr_t char *
6702# define const
6703#endif
6704
6705/* The mapping between symbol names and symbols. */
6706const struct {
6707 const char *name;
6708 lt_ptr_t address;
6709}
6710lt_preloaded_symbols[] =
6711{
6712EOF
6713 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6714 cat <<\EOF >> conftest.$ac_ext
6715 {0, (lt_ptr_t) 0}
6716};
6717
6718#ifdef __cplusplus
6719}
6720#endif
6721EOF
6722 # Now try linking the two files.
6723 mv conftest.$ac_objext conftstm.$ac_objext
6724 lt_save_LIBS="$LIBS"
6725 lt_save_CFLAGS="$CFLAGS"
6726 LIBS="conftstm.$ac_objext"
6727 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6729 (eval $ac_link) 2>&5
6730 ac_status=$?
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6733 pipe_works=yes
6734 fi
6735 LIBS="$lt_save_LIBS"
6736 CFLAGS="$lt_save_CFLAGS"
6737 else
6738 echo "cannot find nm_test_func in $nlist" >&5
6739 fi
6740 else
6741 echo "cannot find nm_test_var in $nlist" >&5
6742 fi
6743 else
6744 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6745 fi
6746 else
6747 echo "$progname: failed program was:" >&5
6748 cat conftest.$ac_ext >&5
6749 fi
6750 rm -f conftest* conftst*
6751
6752 # Do not use the global_symbol_pipe unless it works.
6753 if test "$pipe_works" = yes; then
6754 break
6755 else
6756 lt_cv_sys_global_symbol_pipe=
6757 fi
6758done
6759
6760fi
6761
6762if test -z "$lt_cv_sys_global_symbol_pipe"; then
6763 lt_cv_sys_global_symbol_to_cdecl=
6764fi
6765if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006766 { echo "$as_me:$LINENO: result: failed" >&5
6767echo "${ECHO_T}failed" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006768else
mmentovai8c2a4de2006-09-20 16:20:15 +00006769 { echo "$as_me:$LINENO: result: ok" >&5
6770echo "${ECHO_T}ok" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006771fi
6772
mmentovai8c2a4de2006-09-20 16:20:15 +00006773{ echo "$as_me:$LINENO: checking for objdir" >&5
6774echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006775if test "${lt_cv_objdir+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6777else
6778 rm -f .libs 2>/dev/null
6779mkdir .libs 2>/dev/null
6780if test -d .libs; then
6781 lt_cv_objdir=.libs
6782else
6783 # MS-DOS does not allow filenames that begin with a dot.
6784 lt_cv_objdir=_libs
6785fi
6786rmdir .libs 2>/dev/null
6787fi
mmentovai8c2a4de2006-09-20 16:20:15 +00006788{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6789echo "${ECHO_T}$lt_cv_objdir" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006790objdir=$lt_cv_objdir
6791
6792
6793
6794
6795
6796case $host_os in
6797aix3*)
6798 # AIX sometimes has problems with the GCC collect2 program. For some
6799 # reason, if we set the COLLECT_NAMES environment variable, the problems
6800 # vanish in a puff of smoke.
6801 if test "X${COLLECT_NAMES+set}" != Xset; then
6802 COLLECT_NAMES=
6803 export COLLECT_NAMES
6804 fi
6805 ;;
6806esac
6807
6808# Sed substitution that helps us do robust quoting. It backslashifies
6809# metacharacters that are still active within double-quoted strings.
mmentovai8c2a4de2006-09-20 16:20:15 +00006810Xsed='sed -e 1s/^X//'
brynercb91a2f2006-08-25 21:14:45 +00006811sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6812
6813# Same as above, but do not quote variable references.
6814double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6815
6816# Sed substitution to delay expansion of an escaped shell variable in a
6817# double_quote_subst'ed string.
6818delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6819
6820# Sed substitution to avoid accidental globbing in evaled expressions
6821no_glob_subst='s/\*/\\\*/g'
6822
6823# Constants:
6824rm="rm -f"
6825
6826# Global variables:
6827default_ofile=libtool
6828can_build_shared=yes
6829
mmentovai8c2a4de2006-09-20 16:20:15 +00006830# All known linkers require a `.a' archive for static linking (except MSVC,
brynercb91a2f2006-08-25 21:14:45 +00006831# which needs '.lib').
6832libext=a
6833ltmain="$ac_aux_dir/ltmain.sh"
6834ofile="$default_ofile"
6835with_gnu_ld="$lt_cv_prog_gnu_ld"
6836
6837if test -n "$ac_tool_prefix"; then
6838 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6839set dummy ${ac_tool_prefix}ar; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006840{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006842if test "${ac_cv_prog_AR+set}" = set; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6844else
6845 if test -n "$AR"; then
6846 ac_cv_prog_AR="$AR" # Let the user override the test.
6847else
6848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849for as_dir in $PATH
6850do
6851 IFS=$as_save_IFS
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00006854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00006855 ac_cv_prog_AR="${ac_tool_prefix}ar"
6856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6857 break 2
6858 fi
6859done
6860done
mmentovai8c2a4de2006-09-20 16:20:15 +00006861IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006862
6863fi
6864fi
6865AR=$ac_cv_prog_AR
6866if test -n "$AR"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006867 { echo "$as_me:$LINENO: result: $AR" >&5
6868echo "${ECHO_T}$AR" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006869else
mmentovai8c2a4de2006-09-20 16:20:15 +00006870 { echo "$as_me:$LINENO: result: no" >&5
6871echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006872fi
6873
mmentovai8c2a4de2006-09-20 16:20:15 +00006874
brynercb91a2f2006-08-25 21:14:45 +00006875fi
6876if test -z "$ac_cv_prog_AR"; then
6877 ac_ct_AR=$AR
6878 # Extract the first word of "ar", so it can be a program name with args.
6879set dummy ar; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006880{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006882if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6884else
6885 if test -n "$ac_ct_AR"; then
6886 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6887else
6888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889for as_dir in $PATH
6890do
6891 IFS=$as_save_IFS
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00006894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00006895 ac_cv_prog_ac_ct_AR="ar"
6896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 break 2
6898 fi
6899done
6900done
mmentovai8c2a4de2006-09-20 16:20:15 +00006901IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006902
brynercb91a2f2006-08-25 21:14:45 +00006903fi
6904fi
6905ac_ct_AR=$ac_cv_prog_ac_ct_AR
6906if test -n "$ac_ct_AR"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006907 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6908echo "${ECHO_T}$ac_ct_AR" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006909else
mmentovai8c2a4de2006-09-20 16:20:15 +00006910 { echo "$as_me:$LINENO: result: no" >&5
6911echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006912fi
6913
mmentovai8c2a4de2006-09-20 16:20:15 +00006914 if test "x$ac_ct_AR" = x; then
6915 AR="false"
6916 else
6917 case $cross_compiling:$ac_tool_warned in
6918yes:)
6919{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6920whose name does not start with the host triplet. If you think this
6921configuration is useful to you, please write to autoconf@gnu.org." >&5
6922echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6923whose name does not start with the host triplet. If you think this
6924configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6925ac_tool_warned=yes ;;
6926esac
6927 AR=$ac_ct_AR
6928 fi
brynercb91a2f2006-08-25 21:14:45 +00006929else
6930 AR="$ac_cv_prog_AR"
6931fi
6932
6933if test -n "$ac_tool_prefix"; then
6934 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6935set dummy ${ac_tool_prefix}ranlib; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006936{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006938if test "${ac_cv_prog_RANLIB+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6940else
6941 if test -n "$RANLIB"; then
6942 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6943else
6944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945for as_dir in $PATH
6946do
6947 IFS=$as_save_IFS
6948 test -z "$as_dir" && as_dir=.
6949 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00006950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00006951 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6953 break 2
6954 fi
6955done
6956done
mmentovai8c2a4de2006-09-20 16:20:15 +00006957IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006958
6959fi
6960fi
6961RANLIB=$ac_cv_prog_RANLIB
6962if test -n "$RANLIB"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00006963 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6964echo "${ECHO_T}$RANLIB" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006965else
mmentovai8c2a4de2006-09-20 16:20:15 +00006966 { echo "$as_me:$LINENO: result: no" >&5
6967echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006968fi
6969
mmentovai8c2a4de2006-09-20 16:20:15 +00006970
brynercb91a2f2006-08-25 21:14:45 +00006971fi
6972if test -z "$ac_cv_prog_RANLIB"; then
6973 ac_ct_RANLIB=$RANLIB
6974 # Extract the first word of "ranlib", so it can be a program name with args.
6975set dummy ranlib; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00006976{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006978if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6980else
6981 if test -n "$ac_ct_RANLIB"; then
6982 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6983else
6984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985for as_dir in $PATH
6986do
6987 IFS=$as_save_IFS
6988 test -z "$as_dir" && as_dir=.
6989 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00006990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00006991 ac_cv_prog_ac_ct_RANLIB="ranlib"
6992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6993 break 2
6994 fi
6995done
6996done
mmentovai8c2a4de2006-09-20 16:20:15 +00006997IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00006998
brynercb91a2f2006-08-25 21:14:45 +00006999fi
7000fi
7001ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7002if test -n "$ac_ct_RANLIB"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007003 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7004echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007005else
mmentovai8c2a4de2006-09-20 16:20:15 +00007006 { echo "$as_me:$LINENO: result: no" >&5
7007echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007008fi
7009
mmentovai8c2a4de2006-09-20 16:20:15 +00007010 if test "x$ac_ct_RANLIB" = x; then
7011 RANLIB=":"
7012 else
7013 case $cross_compiling:$ac_tool_warned in
7014yes:)
7015{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7016whose name does not start with the host triplet. If you think this
7017configuration is useful to you, please write to autoconf@gnu.org." >&5
7018echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7019whose name does not start with the host triplet. If you think this
7020configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7021ac_tool_warned=yes ;;
7022esac
7023 RANLIB=$ac_ct_RANLIB
7024 fi
brynercb91a2f2006-08-25 21:14:45 +00007025else
7026 RANLIB="$ac_cv_prog_RANLIB"
7027fi
7028
7029if test -n "$ac_tool_prefix"; then
7030 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7031set dummy ${ac_tool_prefix}strip; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00007032{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007034if test "${ac_cv_prog_STRIP+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7036else
7037 if test -n "$STRIP"; then
7038 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7039else
7040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041for as_dir in $PATH
7042do
7043 IFS=$as_save_IFS
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00007046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00007047 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 break 2
7050 fi
7051done
7052done
mmentovai8c2a4de2006-09-20 16:20:15 +00007053IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00007054
7055fi
7056fi
7057STRIP=$ac_cv_prog_STRIP
7058if test -n "$STRIP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007059 { echo "$as_me:$LINENO: result: $STRIP" >&5
7060echo "${ECHO_T}$STRIP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007061else
mmentovai8c2a4de2006-09-20 16:20:15 +00007062 { echo "$as_me:$LINENO: result: no" >&5
7063echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007064fi
7065
mmentovai8c2a4de2006-09-20 16:20:15 +00007066
brynercb91a2f2006-08-25 21:14:45 +00007067fi
7068if test -z "$ac_cv_prog_STRIP"; then
7069 ac_ct_STRIP=$STRIP
7070 # Extract the first word of "strip", so it can be a program name with args.
7071set dummy strip; ac_word=$2
mmentovai8c2a4de2006-09-20 16:20:15 +00007072{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007074if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7075 echo $ECHO_N "(cached) $ECHO_C" >&6
7076else
7077 if test -n "$ac_ct_STRIP"; then
7078 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7079else
7080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081for as_dir in $PATH
7082do
7083 IFS=$as_save_IFS
7084 test -z "$as_dir" && as_dir=.
7085 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovai8c2a4de2006-09-20 16:20:15 +00007086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00007087 ac_cv_prog_ac_ct_STRIP="strip"
7088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7089 break 2
7090 fi
7091done
7092done
mmentovai8c2a4de2006-09-20 16:20:15 +00007093IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00007094
brynercb91a2f2006-08-25 21:14:45 +00007095fi
7096fi
7097ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7098if test -n "$ac_ct_STRIP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007099 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7100echo "${ECHO_T}$ac_ct_STRIP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007101else
mmentovai8c2a4de2006-09-20 16:20:15 +00007102 { echo "$as_me:$LINENO: result: no" >&5
7103echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007104fi
7105
mmentovai8c2a4de2006-09-20 16:20:15 +00007106 if test "x$ac_ct_STRIP" = x; then
7107 STRIP=":"
7108 else
7109 case $cross_compiling:$ac_tool_warned in
7110yes:)
7111{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7112whose name does not start with the host triplet. If you think this
7113configuration is useful to you, please write to autoconf@gnu.org." >&5
7114echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7115whose name does not start with the host triplet. If you think this
7116configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7117ac_tool_warned=yes ;;
7118esac
7119 STRIP=$ac_ct_STRIP
7120 fi
brynercb91a2f2006-08-25 21:14:45 +00007121else
7122 STRIP="$ac_cv_prog_STRIP"
7123fi
7124
7125
7126old_CC="$CC"
7127old_CFLAGS="$CFLAGS"
7128
7129# Set sane defaults for various variables
7130test -z "$AR" && AR=ar
7131test -z "$AR_FLAGS" && AR_FLAGS=cru
7132test -z "$AS" && AS=as
7133test -z "$CC" && CC=cc
7134test -z "$LTCC" && LTCC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00007135test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
brynercb91a2f2006-08-25 21:14:45 +00007136test -z "$DLLTOOL" && DLLTOOL=dlltool
7137test -z "$LD" && LD=ld
7138test -z "$LN_S" && LN_S="ln -s"
7139test -z "$MAGIC_CMD" && MAGIC_CMD=file
7140test -z "$NM" && NM=nm
7141test -z "$SED" && SED=sed
7142test -z "$OBJDUMP" && OBJDUMP=objdump
7143test -z "$RANLIB" && RANLIB=:
7144test -z "$STRIP" && STRIP=:
7145test -z "$ac_objext" && ac_objext=o
7146
7147# Determine commands to create old-style static archives.
7148old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7149old_postinstall_cmds='chmod 644 $oldlib'
7150old_postuninstall_cmds=
7151
7152if test -n "$RANLIB"; then
7153 case $host_os in
7154 openbsd*)
mmentovai8c2a4de2006-09-20 16:20:15 +00007155 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
brynercb91a2f2006-08-25 21:14:45 +00007156 ;;
7157 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00007158 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
brynercb91a2f2006-08-25 21:14:45 +00007159 ;;
7160 esac
7161 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7162fi
7163
mmentovai8c2a4de2006-09-20 16:20:15 +00007164for cc_temp in $compiler""; do
7165 case $cc_temp in
7166 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7167 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7168 \-*) ;;
7169 *) break;;
7170 esac
7171done
7172cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7173
7174
brynercb91a2f2006-08-25 21:14:45 +00007175# Only perform the check for file, if the check method requires it
7176case $deplibs_check_method in
7177file_magic*)
7178 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007179 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7180echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007181if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
7183else
7184 case $MAGIC_CMD in
7185[\\/*] | ?:[\\/]*)
7186 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7187 ;;
7188*)
7189 lt_save_MAGIC_CMD="$MAGIC_CMD"
7190 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7191 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7192 for ac_dir in $ac_dummy; do
7193 IFS="$lt_save_ifs"
7194 test -z "$ac_dir" && ac_dir=.
7195 if test -f $ac_dir/${ac_tool_prefix}file; then
7196 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7197 if test -n "$file_magic_test_file"; then
7198 case $deplibs_check_method in
7199 "file_magic "*)
mmentovai8c2a4de2006-09-20 16:20:15 +00007200 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
brynercb91a2f2006-08-25 21:14:45 +00007201 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7202 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7203 $EGREP "$file_magic_regex" > /dev/null; then
7204 :
7205 else
7206 cat <<EOF 1>&2
7207
7208*** Warning: the command libtool uses to detect shared libraries,
7209*** $file_magic_cmd, produces output that libtool cannot recognize.
7210*** The result is that libtool may fail to recognize shared libraries
7211*** as such. This will affect the creation of libtool libraries that
7212*** depend on shared libraries, but programs linked with such libtool
7213*** libraries will work regardless of this problem. Nevertheless, you
7214*** may want to report the problem to your system manager and/or to
7215*** bug-libtool@gnu.org
7216
7217EOF
7218 fi ;;
7219 esac
7220 fi
7221 break
7222 fi
7223 done
7224 IFS="$lt_save_ifs"
7225 MAGIC_CMD="$lt_save_MAGIC_CMD"
7226 ;;
7227esac
7228fi
7229
7230MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7231if test -n "$MAGIC_CMD"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007232 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7233echo "${ECHO_T}$MAGIC_CMD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007234else
mmentovai8c2a4de2006-09-20 16:20:15 +00007235 { echo "$as_me:$LINENO: result: no" >&5
7236echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007237fi
7238
7239if test -z "$lt_cv_path_MAGIC_CMD"; then
7240 if test -n "$ac_tool_prefix"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007241 { echo "$as_me:$LINENO: checking for file" >&5
7242echo $ECHO_N "checking for file... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007243if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7245else
7246 case $MAGIC_CMD in
7247[\\/*] | ?:[\\/]*)
7248 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7249 ;;
7250*)
7251 lt_save_MAGIC_CMD="$MAGIC_CMD"
7252 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7253 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7254 for ac_dir in $ac_dummy; do
7255 IFS="$lt_save_ifs"
7256 test -z "$ac_dir" && ac_dir=.
7257 if test -f $ac_dir/file; then
7258 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7259 if test -n "$file_magic_test_file"; then
7260 case $deplibs_check_method in
7261 "file_magic "*)
mmentovai8c2a4de2006-09-20 16:20:15 +00007262 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
brynercb91a2f2006-08-25 21:14:45 +00007263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7264 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7265 $EGREP "$file_magic_regex" > /dev/null; then
7266 :
7267 else
7268 cat <<EOF 1>&2
7269
7270*** Warning: the command libtool uses to detect shared libraries,
7271*** $file_magic_cmd, produces output that libtool cannot recognize.
7272*** The result is that libtool may fail to recognize shared libraries
7273*** as such. This will affect the creation of libtool libraries that
7274*** depend on shared libraries, but programs linked with such libtool
7275*** libraries will work regardless of this problem. Nevertheless, you
7276*** may want to report the problem to your system manager and/or to
7277*** bug-libtool@gnu.org
7278
7279EOF
7280 fi ;;
7281 esac
7282 fi
7283 break
7284 fi
7285 done
7286 IFS="$lt_save_ifs"
7287 MAGIC_CMD="$lt_save_MAGIC_CMD"
7288 ;;
7289esac
7290fi
7291
7292MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7293if test -n "$MAGIC_CMD"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007294 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7295echo "${ECHO_T}$MAGIC_CMD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007296else
mmentovai8c2a4de2006-09-20 16:20:15 +00007297 { echo "$as_me:$LINENO: result: no" >&5
7298echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007299fi
7300
7301 else
7302 MAGIC_CMD=:
7303 fi
7304fi
7305
7306 fi
7307 ;;
7308esac
7309
7310enable_dlopen=no
7311enable_win32_dll=no
7312
mmentovai8c2a4de2006-09-20 16:20:15 +00007313# Check whether --enable-libtool-lock was given.
brynercb91a2f2006-08-25 21:14:45 +00007314if test "${enable_libtool_lock+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007315 enableval=$enable_libtool_lock;
7316fi
brynercb91a2f2006-08-25 21:14:45 +00007317
brynercb91a2f2006-08-25 21:14:45 +00007318test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7319
7320
mmentovai8c2a4de2006-09-20 16:20:15 +00007321# Check whether --with-pic was given.
brynercb91a2f2006-08-25 21:14:45 +00007322if test "${with_pic+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007323 withval=$with_pic; pic_mode="$withval"
brynercb91a2f2006-08-25 21:14:45 +00007324else
7325 pic_mode=default
mmentovai8c2a4de2006-09-20 16:20:15 +00007326fi
7327
brynercb91a2f2006-08-25 21:14:45 +00007328test -z "$pic_mode" && pic_mode=default
7329
7330# Use C for the default configuration in the libtool script
7331tagname=
7332lt_save_CC="$CC"
7333ac_ext=c
7334ac_cpp='$CPP $CPPFLAGS'
7335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7337ac_compiler_gnu=$ac_cv_c_compiler_gnu
7338
7339
7340# Source file extension for C test sources.
7341ac_ext=c
7342
7343# Object file extension for compiled C test sources.
7344objext=o
7345objext=$objext
7346
7347# Code to be used in simple compile tests
7348lt_simple_compile_test_code="int some_variable = 0;\n"
7349
7350# Code to be used in simple link tests
7351lt_simple_link_test_code='int main(){return(0);}\n'
7352
7353
7354# If no C compiler was specified, use CC.
7355LTCC=${LTCC-"$CC"}
7356
mmentovai8c2a4de2006-09-20 16:20:15 +00007357# If no C compiler flags were specified, use CFLAGS.
7358LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7359
brynercb91a2f2006-08-25 21:14:45 +00007360# Allow CC to be a program name with arguments.
7361compiler=$CC
7362
7363
mmentovai8c2a4de2006-09-20 16:20:15 +00007364# save warnings/boilerplate of simple test code
7365ac_outfile=conftest.$ac_objext
7366printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7367eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7368_lt_compiler_boilerplate=`cat conftest.err`
7369$rm conftest*
brynercb91a2f2006-08-25 21:14:45 +00007370
mmentovai8c2a4de2006-09-20 16:20:15 +00007371ac_outfile=conftest.$ac_objext
7372printf "$lt_simple_link_test_code" >conftest.$ac_ext
7373eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7374_lt_linker_boilerplate=`cat conftest.err`
7375$rm conftest*
brynercb91a2f2006-08-25 21:14:45 +00007376
7377
7378
7379lt_prog_compiler_no_builtin_flag=
7380
7381if test "$GCC" = yes; then
7382 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7383
7384
mmentovai8c2a4de2006-09-20 16:20:15 +00007385{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7386echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007387if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7389else
7390 lt_cv_prog_compiler_rtti_exceptions=no
7391 ac_outfile=conftest.$ac_objext
7392 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7393 lt_compiler_flag="-fno-rtti -fno-exceptions"
7394 # Insert the option either (1) after the last *FLAGS variable, or
7395 # (2) before a word containing "conftest.", or (3) at the end.
7396 # Note that $ac_compile itself does not contain backslashes and begins
7397 # with a dollar sign (not a hyphen), so the echo should work correctly.
7398 # The option is referenced via a variable to avoid confusing sed.
7399 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00007400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00007401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7402 -e 's:$: $lt_compiler_flag:'`
mmentovaidb3342a2006-12-05 22:52:28 +00007403 (eval echo "\"\$as_me:7403: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00007404 (eval "$lt_compile" 2>conftest.err)
7405 ac_status=$?
7406 cat conftest.err >&5
mmentovaidb3342a2006-12-05 22:52:28 +00007407 echo "$as_me:7407: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00007408 if (exit $ac_status) && test -s "$ac_outfile"; then
7409 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +00007410 # So say no if there are warnings other than the usual output.
7411 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7412 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7413 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00007414 lt_cv_prog_compiler_rtti_exceptions=yes
7415 fi
7416 fi
7417 $rm conftest*
7418
7419fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007420{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7421echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007422
7423if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7424 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7425else
7426 :
7427fi
7428
7429fi
7430
7431lt_prog_compiler_wl=
7432lt_prog_compiler_pic=
7433lt_prog_compiler_static=
7434
mmentovai8c2a4de2006-09-20 16:20:15 +00007435{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7436echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007437
7438 if test "$GCC" = yes; then
7439 lt_prog_compiler_wl='-Wl,'
7440 lt_prog_compiler_static='-static'
7441
7442 case $host_os in
7443 aix*)
7444 # All AIX code is PIC.
7445 if test "$host_cpu" = ia64; then
7446 # AIX 5 now supports IA64 processor
7447 lt_prog_compiler_static='-Bstatic'
7448 fi
7449 ;;
7450
7451 amigaos*)
7452 # FIXME: we need at least 68020 code to build shared libraries, but
7453 # adding the `-m68020' flag to GCC prevents building anything better,
7454 # like `-m68040'.
7455 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7456 ;;
7457
7458 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7459 # PIC is the default for these OSes.
7460 ;;
7461
7462 mingw* | pw32* | os2*)
7463 # This hack is so that the source file can tell whether it is being
7464 # built for inclusion in a dll (and should export symbols for example).
7465 lt_prog_compiler_pic='-DDLL_EXPORT'
7466 ;;
7467
7468 darwin* | rhapsody*)
7469 # PIC is the default on this platform
7470 # Common symbols not allowed in MH_DYLIB files
7471 lt_prog_compiler_pic='-fno-common'
7472 ;;
7473
mmentovai8c2a4de2006-09-20 16:20:15 +00007474 interix3*)
7475 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7476 # Instead, we relocate shared libraries at runtime.
7477 ;;
7478
brynercb91a2f2006-08-25 21:14:45 +00007479 msdosdjgpp*)
7480 # Just because we use GCC doesn't mean we suddenly get shared libraries
7481 # on systems that don't support them.
7482 lt_prog_compiler_can_build_shared=no
7483 enable_shared=no
7484 ;;
7485
7486 sysv4*MP*)
7487 if test -d /usr/nec; then
7488 lt_prog_compiler_pic=-Kconform_pic
7489 fi
7490 ;;
7491
7492 hpux*)
7493 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7494 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +00007495 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00007496 hppa*64*|ia64*)
7497 # +Z the default
7498 ;;
7499 *)
7500 lt_prog_compiler_pic='-fPIC'
7501 ;;
7502 esac
7503 ;;
7504
7505 *)
7506 lt_prog_compiler_pic='-fPIC'
7507 ;;
7508 esac
7509 else
7510 # PORTME Check for flag to pass linker flags through the system compiler.
7511 case $host_os in
7512 aix*)
7513 lt_prog_compiler_wl='-Wl,'
7514 if test "$host_cpu" = ia64; then
7515 # AIX 5 now supports IA64 processor
7516 lt_prog_compiler_static='-Bstatic'
7517 else
7518 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7519 fi
7520 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007521 darwin*)
7522 # PIC is the default on this platform
7523 # Common symbols not allowed in MH_DYLIB files
7524 case $cc_basename in
7525 xlc*)
7526 lt_prog_compiler_pic='-qnocommon'
7527 lt_prog_compiler_wl='-Wl,'
7528 ;;
7529 esac
7530 ;;
brynercb91a2f2006-08-25 21:14:45 +00007531
7532 mingw* | pw32* | os2*)
7533 # This hack is so that the source file can tell whether it is being
7534 # built for inclusion in a dll (and should export symbols for example).
7535 lt_prog_compiler_pic='-DDLL_EXPORT'
7536 ;;
7537
7538 hpux9* | hpux10* | hpux11*)
7539 lt_prog_compiler_wl='-Wl,'
7540 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7541 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +00007542 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00007543 hppa*64*|ia64*)
7544 # +Z the default
7545 ;;
7546 *)
7547 lt_prog_compiler_pic='+Z'
7548 ;;
7549 esac
7550 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7551 lt_prog_compiler_static='${wl}-a ${wl}archive'
7552 ;;
7553
7554 irix5* | irix6* | nonstopux*)
7555 lt_prog_compiler_wl='-Wl,'
7556 # PIC (with -KPIC) is the default.
7557 lt_prog_compiler_static='-non_shared'
7558 ;;
7559
7560 newsos6)
7561 lt_prog_compiler_pic='-KPIC'
7562 lt_prog_compiler_static='-Bstatic'
7563 ;;
7564
7565 linux*)
mmentovai8c2a4de2006-09-20 16:20:15 +00007566 case $cc_basename in
brynercb91a2f2006-08-25 21:14:45 +00007567 icc* | ecc*)
7568 lt_prog_compiler_wl='-Wl,'
7569 lt_prog_compiler_pic='-KPIC'
7570 lt_prog_compiler_static='-static'
7571 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007572 pgcc* | pgf77* | pgf90* | pgf95*)
7573 # Portland Group compilers (*not* the Pentium gcc compiler,
7574 # which looks to be a dead project)
7575 lt_prog_compiler_wl='-Wl,'
7576 lt_prog_compiler_pic='-fpic'
7577 lt_prog_compiler_static='-Bstatic'
7578 ;;
brynercb91a2f2006-08-25 21:14:45 +00007579 ccc*)
7580 lt_prog_compiler_wl='-Wl,'
7581 # All Alpha code is PIC.
7582 lt_prog_compiler_static='-non_shared'
7583 ;;
7584 esac
7585 ;;
7586
7587 osf3* | osf4* | osf5*)
7588 lt_prog_compiler_wl='-Wl,'
7589 # All OSF/1 code is PIC.
7590 lt_prog_compiler_static='-non_shared'
7591 ;;
7592
brynercb91a2f2006-08-25 21:14:45 +00007593 solaris*)
brynercb91a2f2006-08-25 21:14:45 +00007594 lt_prog_compiler_pic='-KPIC'
7595 lt_prog_compiler_static='-Bstatic'
mmentovai8c2a4de2006-09-20 16:20:15 +00007596 case $cc_basename in
7597 f77* | f90* | f95*)
7598 lt_prog_compiler_wl='-Qoption ld ';;
7599 *)
7600 lt_prog_compiler_wl='-Wl,';;
7601 esac
brynercb91a2f2006-08-25 21:14:45 +00007602 ;;
7603
7604 sunos4*)
7605 lt_prog_compiler_wl='-Qoption ld '
7606 lt_prog_compiler_pic='-PIC'
7607 lt_prog_compiler_static='-Bstatic'
7608 ;;
7609
mmentovai8c2a4de2006-09-20 16:20:15 +00007610 sysv4 | sysv4.2uw2* | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00007611 lt_prog_compiler_wl='-Wl,'
7612 lt_prog_compiler_pic='-KPIC'
7613 lt_prog_compiler_static='-Bstatic'
7614 ;;
7615
7616 sysv4*MP*)
7617 if test -d /usr/nec ;then
7618 lt_prog_compiler_pic='-Kconform_pic'
7619 lt_prog_compiler_static='-Bstatic'
7620 fi
7621 ;;
7622
mmentovai8c2a4de2006-09-20 16:20:15 +00007623 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7624 lt_prog_compiler_wl='-Wl,'
7625 lt_prog_compiler_pic='-KPIC'
7626 lt_prog_compiler_static='-Bstatic'
7627 ;;
7628
7629 unicos*)
7630 lt_prog_compiler_wl='-Wl,'
7631 lt_prog_compiler_can_build_shared=no
7632 ;;
7633
brynercb91a2f2006-08-25 21:14:45 +00007634 uts4*)
7635 lt_prog_compiler_pic='-pic'
7636 lt_prog_compiler_static='-Bstatic'
7637 ;;
7638
7639 *)
7640 lt_prog_compiler_can_build_shared=no
7641 ;;
7642 esac
7643 fi
7644
mmentovai8c2a4de2006-09-20 16:20:15 +00007645{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7646echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007647
7648#
7649# Check to make sure the PIC flag actually works.
7650#
7651if test -n "$lt_prog_compiler_pic"; then
7652
mmentovai8c2a4de2006-09-20 16:20:15 +00007653{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7654echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007655if test "${lt_prog_compiler_pic_works+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7657else
7658 lt_prog_compiler_pic_works=no
7659 ac_outfile=conftest.$ac_objext
7660 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7661 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7662 # Insert the option either (1) after the last *FLAGS variable, or
7663 # (2) before a word containing "conftest.", or (3) at the end.
7664 # Note that $ac_compile itself does not contain backslashes and begins
7665 # with a dollar sign (not a hyphen), so the echo should work correctly.
7666 # The option is referenced via a variable to avoid confusing sed.
7667 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00007668 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00007669 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7670 -e 's:$: $lt_compiler_flag:'`
mmentovaidb3342a2006-12-05 22:52:28 +00007671 (eval echo "\"\$as_me:7671: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00007672 (eval "$lt_compile" 2>conftest.err)
7673 ac_status=$?
7674 cat conftest.err >&5
mmentovaidb3342a2006-12-05 22:52:28 +00007675 echo "$as_me:7675: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00007676 if (exit $ac_status) && test -s "$ac_outfile"; then
7677 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +00007678 # So say no if there are warnings other than the usual output.
7679 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7680 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7681 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00007682 lt_prog_compiler_pic_works=yes
7683 fi
7684 fi
7685 $rm conftest*
7686
7687fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007688{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7689echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007690
7691if test x"$lt_prog_compiler_pic_works" = xyes; then
7692 case $lt_prog_compiler_pic in
7693 "" | " "*) ;;
7694 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7695 esac
7696else
7697 lt_prog_compiler_pic=
7698 lt_prog_compiler_can_build_shared=no
7699fi
7700
7701fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007702case $host_os in
brynercb91a2f2006-08-25 21:14:45 +00007703 # For platforms which do not support PIC, -DPIC is meaningless:
7704 *djgpp*)
7705 lt_prog_compiler_pic=
7706 ;;
7707 *)
7708 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7709 ;;
7710esac
7711
mmentovai8c2a4de2006-09-20 16:20:15 +00007712#
7713# Check to make sure the static flag actually works.
7714#
7715wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7716{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7717echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7718if test "${lt_prog_compiler_static_works+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7720else
7721 lt_prog_compiler_static_works=no
7722 save_LDFLAGS="$LDFLAGS"
7723 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7724 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7725 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7726 # The linker can only warn and ignore the option if not recognized
7727 # So say no if there are warnings
7728 if test -s conftest.err; then
7729 # Append any errors to the config.log.
7730 cat conftest.err 1>&5
7731 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7732 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7733 if diff conftest.exp conftest.er2 >/dev/null; then
7734 lt_prog_compiler_static_works=yes
7735 fi
7736 else
7737 lt_prog_compiler_static_works=yes
7738 fi
7739 fi
7740 $rm conftest*
7741 LDFLAGS="$save_LDFLAGS"
7742
7743fi
7744{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7745echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7746
7747if test x"$lt_prog_compiler_static_works" = xyes; then
7748 :
7749else
7750 lt_prog_compiler_static=
7751fi
7752
7753
7754{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7755echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007756if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7758else
7759 lt_cv_prog_compiler_c_o=no
7760 $rm -r conftest 2>/dev/null
7761 mkdir conftest
7762 cd conftest
7763 mkdir out
7764 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7765
7766 lt_compiler_flag="-o out/conftest2.$ac_objext"
7767 # Insert the option either (1) after the last *FLAGS variable, or
7768 # (2) before a word containing "conftest.", or (3) at the end.
7769 # Note that $ac_compile itself does not contain backslashes and begins
7770 # with a dollar sign (not a hyphen), so the echo should work correctly.
7771 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00007772 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00007773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7774 -e 's:$: $lt_compiler_flag:'`
mmentovaidb3342a2006-12-05 22:52:28 +00007775 (eval echo "\"\$as_me:7775: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00007776 (eval "$lt_compile" 2>out/conftest.err)
7777 ac_status=$?
7778 cat out/conftest.err >&5
mmentovaidb3342a2006-12-05 22:52:28 +00007779 echo "$as_me:7779: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00007780 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7781 then
7782 # The compiler can only warn and ignore the option if not recognized
7783 # So say no if there are warnings
mmentovai8c2a4de2006-09-20 16:20:15 +00007784 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7785 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7786 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00007787 lt_cv_prog_compiler_c_o=yes
7788 fi
7789 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007790 chmod u+w . 2>&5
brynercb91a2f2006-08-25 21:14:45 +00007791 $rm conftest*
7792 # SGI C++ compiler will create directory out/ii_files/ for
7793 # template instantiation
7794 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7795 $rm out/* && rmdir out
7796 cd ..
7797 rmdir conftest
7798 $rm conftest*
7799
7800fi
mmentovai8c2a4de2006-09-20 16:20:15 +00007801{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7802echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007803
7804
7805hard_links="nottested"
7806if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7807 # do not overwrite the value of need_locks provided by the user
mmentovai8c2a4de2006-09-20 16:20:15 +00007808 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7809echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007810 hard_links=yes
7811 $rm conftest*
7812 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7813 touch conftest.a
7814 ln conftest.a conftest.b 2>&5 || hard_links=no
7815 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mmentovai8c2a4de2006-09-20 16:20:15 +00007816 { echo "$as_me:$LINENO: result: $hard_links" >&5
7817echo "${ECHO_T}$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007818 if test "$hard_links" = no; then
7819 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7820echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7821 need_locks=warn
7822 fi
7823else
7824 need_locks=no
7825fi
7826
mmentovai8c2a4de2006-09-20 16:20:15 +00007827{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7828echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007829
7830 runpath_var=
7831 allow_undefined_flag=
7832 enable_shared_with_static_runtimes=no
7833 archive_cmds=
7834 archive_expsym_cmds=
7835 old_archive_From_new_cmds=
7836 old_archive_from_expsyms_cmds=
7837 export_dynamic_flag_spec=
7838 whole_archive_flag_spec=
7839 thread_safe_flag_spec=
7840 hardcode_libdir_flag_spec=
7841 hardcode_libdir_flag_spec_ld=
7842 hardcode_libdir_separator=
7843 hardcode_direct=no
7844 hardcode_minus_L=no
7845 hardcode_shlibpath_var=unsupported
7846 link_all_deplibs=unknown
7847 hardcode_automatic=no
7848 module_cmds=
7849 module_expsym_cmds=
7850 always_export_symbols=no
7851 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7852 # include_expsyms should be a list of space-separated symbols to be *always*
7853 # included in the symbol list
7854 include_expsyms=
7855 # exclude_expsyms can be an extended regexp of symbols to exclude
7856 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7857 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7858 # as well as any symbol that contains `d'.
7859 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7860 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7861 # platforms (ab)use it in PIC code, but their linkers get confused if
7862 # the symbol is explicitly referenced. Since portable code cannot
7863 # rely on this symbol name, it's probably fine to never include it in
7864 # preloaded symbol tables.
7865 extract_expsyms_cmds=
mmentovai8c2a4de2006-09-20 16:20:15 +00007866 # Just being paranoid about ensuring that cc_basename is set.
7867 for cc_temp in $compiler""; do
7868 case $cc_temp in
7869 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7870 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7871 \-*) ;;
7872 *) break;;
7873 esac
7874done
7875cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
brynercb91a2f2006-08-25 21:14:45 +00007876
7877 case $host_os in
7878 cygwin* | mingw* | pw32*)
7879 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7880 # When not using gcc, we currently assume that we are using
7881 # Microsoft Visual C++.
7882 if test "$GCC" != yes; then
7883 with_gnu_ld=no
7884 fi
7885 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00007886 interix*)
7887 # we just hope/assume this is gcc and not c89 (= MSVC++)
7888 with_gnu_ld=yes
7889 ;;
brynercb91a2f2006-08-25 21:14:45 +00007890 openbsd*)
7891 with_gnu_ld=no
7892 ;;
7893 esac
7894
7895 ld_shlibs=yes
7896 if test "$with_gnu_ld" = yes; then
7897 # If archive_cmds runs LD, not CC, wlarc should be empty
7898 wlarc='${wl}'
7899
mmentovai8c2a4de2006-09-20 16:20:15 +00007900 # Set some defaults for GNU ld with shared library support. These
7901 # are reset later if shared libraries are not supported. Putting them
7902 # here allows them to be overridden if necessary.
7903 runpath_var=LD_RUN_PATH
7904 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7905 export_dynamic_flag_spec='${wl}--export-dynamic'
7906 # ancient GNU ld didn't support --whole-archive et. al.
7907 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7908 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7909 else
7910 whole_archive_flag_spec=
7911 fi
7912 supports_anon_versioning=no
7913 case `$LD -v 2>/dev/null` in
7914 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7915 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7916 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7917 *\ 2.11.*) ;; # other 2.11 versions
7918 *) supports_anon_versioning=yes ;;
7919 esac
7920
brynercb91a2f2006-08-25 21:14:45 +00007921 # See if GNU ld supports shared libraries.
7922 case $host_os in
7923 aix3* | aix4* | aix5*)
7924 # On AIX/PPC, the GNU linker is very broken
7925 if test "$host_cpu" != ia64; then
7926 ld_shlibs=no
7927 cat <<EOF 1>&2
7928
7929*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7930*** to be unable to reliably create shared libraries on AIX.
7931*** Therefore, libtool is disabling shared libraries support. If you
7932*** really care for shared libraries, you may want to modify your PATH
7933*** so that a non-GNU linker is found, and then restart.
7934
7935EOF
7936 fi
7937 ;;
7938
7939 amigaos*)
7940 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)'
7941 hardcode_libdir_flag_spec='-L$libdir'
7942 hardcode_minus_L=yes
7943
7944 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7945 # that the semantics of dynamic libraries on AmigaOS, at least up
7946 # to version 4, is to share data among multiple programs linked
7947 # with the same dynamic library. Since this doesn't match the
7948 # behavior of shared libraries on other platforms, we can't use
7949 # them.
7950 ld_shlibs=no
7951 ;;
7952
7953 beos*)
7954 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7955 allow_undefined_flag=unsupported
7956 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7957 # support --undefined. This deserves some investigation. FIXME
7958 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7959 else
7960 ld_shlibs=no
7961 fi
7962 ;;
7963
7964 cygwin* | mingw* | pw32*)
7965 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7966 # as there is no search path for DLLs.
7967 hardcode_libdir_flag_spec='-L$libdir'
7968 allow_undefined_flag=unsupported
7969 always_export_symbols=no
7970 enable_shared_with_static_runtimes=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00007971 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
brynercb91a2f2006-08-25 21:14:45 +00007972
7973 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +00007974 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
brynercb91a2f2006-08-25 21:14:45 +00007975 # If the export-symbols file already is a .def file (1st line
7976 # is EXPORTS), use it as is; otherwise, prepend...
7977 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7978 cp $export_symbols $output_objdir/$soname.def;
7979 else
7980 echo EXPORTS > $output_objdir/$soname.def;
7981 cat $export_symbols >> $output_objdir/$soname.def;
7982 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +00007983 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
brynercb91a2f2006-08-25 21:14:45 +00007984 else
7985 ld_shlibs=no
7986 fi
7987 ;;
7988
mmentovai8c2a4de2006-09-20 16:20:15 +00007989 interix3*)
7990 hardcode_direct=no
7991 hardcode_shlibpath_var=no
7992 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7993 export_dynamic_flag_spec='${wl}-E'
7994 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7995 # Instead, shared libraries are loaded at an image base (0x10000000 by
7996 # default) and relocated if they conflict, which is a slow very memory
7997 # consuming and fragmenting process. To avoid this, we pick a random,
7998 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7999 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8000 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8001 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'
8002 ;;
8003
8004 linux*)
8005 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8006 tmp_addflag=
8007 case $cc_basename,$host_cpu in
8008 pgcc*) # Portland Group C compiler
8009 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'
8010 tmp_addflag=' $pic_flag'
8011 ;;
8012 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8013 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'
8014 tmp_addflag=' $pic_flag -Mnomain' ;;
8015 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8016 tmp_addflag=' -i_dynamic' ;;
8017 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8018 tmp_addflag=' -i_dynamic -nofor_main' ;;
8019 ifc* | ifort*) # Intel Fortran compiler
8020 tmp_addflag=' -nofor_main' ;;
8021 esac
8022 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8023
8024 if test $supports_anon_versioning = yes; then
8025 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8026 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8027 $echo "local: *; };" >> $output_objdir/$libname.ver~
8028 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8029 fi
8030 else
8031 ld_shlibs=no
8032 fi
8033 ;;
8034
8035 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +00008036 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8037 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8038 wlarc=
8039 else
8040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8041 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8042 fi
8043 ;;
8044
mmentovai8c2a4de2006-09-20 16:20:15 +00008045 solaris*)
brynercb91a2f2006-08-25 21:14:45 +00008046 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8047 ld_shlibs=no
8048 cat <<EOF 1>&2
8049
8050*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8051*** create shared libraries on Solaris systems. Therefore, libtool
8052*** is disabling shared libraries support. We urge you to upgrade GNU
8053*** binutils to release 2.9.1 or newer. Another option is to modify
8054*** your PATH or compiler configuration so that the native linker is
8055*** used, and then restart.
8056
8057EOF
8058 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8060 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8061 else
8062 ld_shlibs=no
8063 fi
8064 ;;
8065
mmentovai8c2a4de2006-09-20 16:20:15 +00008066 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8067 case `$LD -v 2>&1` in
8068 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8069 ld_shlibs=no
8070 cat <<_LT_EOF 1>&2
8071
8072*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8073*** reliably create shared libraries on SCO systems. Therefore, libtool
8074*** is disabling shared libraries support. We urge you to upgrade GNU
8075*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8076*** your PATH or compiler configuration so that the native linker is
8077*** used, and then restart.
8078
8079_LT_EOF
8080 ;;
8081 *)
8082 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8083 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8084 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8085 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8086 else
8087 ld_shlibs=no
8088 fi
8089 ;;
8090 esac
8091 ;;
8092
brynercb91a2f2006-08-25 21:14:45 +00008093 sunos4*)
8094 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8095 wlarc=
8096 hardcode_direct=yes
8097 hardcode_shlibpath_var=no
8098 ;;
8099
brynercb91a2f2006-08-25 21:14:45 +00008100 *)
8101 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8102 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8103 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8104 else
8105 ld_shlibs=no
8106 fi
8107 ;;
8108 esac
8109
mmentovai8c2a4de2006-09-20 16:20:15 +00008110 if test "$ld_shlibs" = no; then
8111 runpath_var=
8112 hardcode_libdir_flag_spec=
8113 export_dynamic_flag_spec=
8114 whole_archive_flag_spec=
brynercb91a2f2006-08-25 21:14:45 +00008115 fi
8116 else
8117 # PORTME fill in a description of your system's linker (not GNU ld)
8118 case $host_os in
8119 aix3*)
8120 allow_undefined_flag=unsupported
8121 always_export_symbols=yes
8122 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'
8123 # Note: this linker hardcodes the directories in LIBPATH if there
8124 # are no directories specified by -L.
8125 hardcode_minus_L=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008126 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
brynercb91a2f2006-08-25 21:14:45 +00008127 # Neither direct hardcoding nor static linking is supported with a
8128 # broken collect2.
8129 hardcode_direct=unsupported
8130 fi
8131 ;;
8132
8133 aix4* | aix5*)
8134 if test "$host_cpu" = ia64; then
8135 # On IA64, the linker does run time linking by default, so we don't
8136 # have to do anything special.
8137 aix_use_runtimelinking=no
8138 exp_sym_flag='-Bexport'
8139 no_entry_flag=""
8140 else
8141 # If we're using GNU nm, then we don't want the "-C" option.
8142 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8143 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8144 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'
8145 else
8146 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'
8147 fi
8148 aix_use_runtimelinking=no
8149
8150 # Test if we are trying to use run time linking or normal
8151 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8152 # need to do runtime linking.
8153 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8154 for ld_flag in $LDFLAGS; do
8155 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8156 aix_use_runtimelinking=yes
8157 break
8158 fi
8159 done
mmentovai8c2a4de2006-09-20 16:20:15 +00008160 ;;
brynercb91a2f2006-08-25 21:14:45 +00008161 esac
8162
8163 exp_sym_flag='-bexport'
8164 no_entry_flag='-bnoentry'
8165 fi
8166
8167 # When large executables or shared objects are built, AIX ld can
8168 # have problems creating the table of contents. If linking a library
8169 # or program results in "error TOC overflow" add -mminimal-toc to
8170 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8171 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8172
8173 archive_cmds=''
8174 hardcode_direct=yes
8175 hardcode_libdir_separator=':'
8176 link_all_deplibs=yes
8177
8178 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008179 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +00008180 # We only want to do this on AIX 4.2 and lower, the check
8181 # below for broken collect2 doesn't work under 4.3+
8182 collect2name=`${CC} -print-prog-name=collect2`
8183 if test -f "$collect2name" && \
8184 strings "$collect2name" | grep resolve_lib_name >/dev/null
8185 then
8186 # We have reworked collect2
8187 hardcode_direct=yes
8188 else
8189 # We have old collect2
8190 hardcode_direct=unsupported
8191 # It fails to find uninstalled libraries when the uninstalled
8192 # path is not listed in the libpath. Setting hardcode_minus_L
8193 # to unsupported forces relinking
8194 hardcode_minus_L=yes
8195 hardcode_libdir_flag_spec='-L$libdir'
8196 hardcode_libdir_separator=
8197 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008198 ;;
brynercb91a2f2006-08-25 21:14:45 +00008199 esac
8200 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +00008201 if test "$aix_use_runtimelinking" = yes; then
8202 shared_flag="$shared_flag "'${wl}-G'
8203 fi
brynercb91a2f2006-08-25 21:14:45 +00008204 else
8205 # not using gcc
8206 if test "$host_cpu" = ia64; then
8207 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8208 # chokes on -Wl,-G. The following line is correct:
8209 shared_flag='-G'
8210 else
mmentovai8c2a4de2006-09-20 16:20:15 +00008211 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +00008212 shared_flag='${wl}-G'
8213 else
8214 shared_flag='${wl}-bM:SRE'
mmentovai8c2a4de2006-09-20 16:20:15 +00008215 fi
brynercb91a2f2006-08-25 21:14:45 +00008216 fi
8217 fi
8218
8219 # It seems that -bexpall does not export symbols beginning with
8220 # underscore (_), so it is better to generate a list of symbols to export.
8221 always_export_symbols=yes
8222 if test "$aix_use_runtimelinking" = yes; then
8223 # Warning - without using the other runtime loading flags (-brtl),
8224 # -berok will link without error, but may produce a broken library.
8225 allow_undefined_flag='-berok'
8226 # Determine the default libpath from the value encoded in an empty executable.
8227 cat >conftest.$ac_ext <<_ACEOF
8228/* confdefs.h. */
8229_ACEOF
8230cat confdefs.h >>conftest.$ac_ext
8231cat >>conftest.$ac_ext <<_ACEOF
8232/* end confdefs.h. */
8233
8234int
8235main ()
8236{
8237
8238 ;
8239 return 0;
8240}
8241_ACEOF
8242rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00008243if { (ac_try="$ac_link"
8244case "(($ac_try" in
8245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8246 *) ac_try_echo=$ac_try;;
8247esac
8248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8249 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00008250 ac_status=$?
8251 grep -v '^ *+' conftest.er1 >conftest.err
8252 rm -f conftest.er1
8253 cat conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00008256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8257 { (case "(($ac_try" in
8258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8259 *) ac_try_echo=$ac_try;;
8260esac
8261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8262 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00008263 ac_status=$?
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; } &&
8266 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00008267 { (case "(($ac_try" in
8268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8269 *) ac_try_echo=$ac_try;;
8270esac
8271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8272 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00008273 ac_status=$?
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; }; then
8276
8277aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8278}'`
8279# Check for a 64-bit object if we didn't find anything.
8280if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8281}'`; fi
8282else
8283 echo "$as_me: failed program was:" >&5
8284sed 's/^/| /' conftest.$ac_ext >&5
8285
mmentovai8c2a4de2006-09-20 16:20:15 +00008286
brynercb91a2f2006-08-25 21:14:45 +00008287fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008288
8289rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +00008290 conftest$ac_exeext conftest.$ac_ext
8291if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8292
8293 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
mmentovai8c2a4de2006-09-20 16:20:15 +00008294 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
brynercb91a2f2006-08-25 21:14:45 +00008295 else
8296 if test "$host_cpu" = ia64; then
8297 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8298 allow_undefined_flag="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +00008299 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"
brynercb91a2f2006-08-25 21:14:45 +00008300 else
8301 # Determine the default libpath from the value encoded in an empty executable.
8302 cat >conftest.$ac_ext <<_ACEOF
8303/* confdefs.h. */
8304_ACEOF
8305cat confdefs.h >>conftest.$ac_ext
8306cat >>conftest.$ac_ext <<_ACEOF
8307/* end confdefs.h. */
8308
8309int
8310main ()
8311{
8312
8313 ;
8314 return 0;
8315}
8316_ACEOF
8317rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00008318if { (ac_try="$ac_link"
8319case "(($ac_try" in
8320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8321 *) ac_try_echo=$ac_try;;
8322esac
8323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8324 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00008325 ac_status=$?
8326 grep -v '^ *+' conftest.er1 >conftest.err
8327 rm -f conftest.er1
8328 cat conftest.err >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00008331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8332 { (case "(($ac_try" in
8333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334 *) ac_try_echo=$ac_try;;
8335esac
8336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8337 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00008338 ac_status=$?
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; } &&
8341 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00008342 { (case "(($ac_try" in
8343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8344 *) ac_try_echo=$ac_try;;
8345esac
8346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8347 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00008348 ac_status=$?
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; }; then
8351
8352aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8353}'`
8354# Check for a 64-bit object if we didn't find anything.
8355if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8356}'`; fi
8357else
8358 echo "$as_me: failed program was:" >&5
8359sed 's/^/| /' conftest.$ac_ext >&5
8360
mmentovai8c2a4de2006-09-20 16:20:15 +00008361
brynercb91a2f2006-08-25 21:14:45 +00008362fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008363
8364rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +00008365 conftest$ac_exeext conftest.$ac_ext
8366if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8367
8368 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8369 # Warning - without using the other run time loading flags,
8370 # -berok will link without error, but may produce a broken library.
8371 no_undefined_flag=' ${wl}-bernotok'
8372 allow_undefined_flag=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +00008373 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +00008374 whole_archive_flag_spec='$convenience'
brynercb91a2f2006-08-25 21:14:45 +00008375 archive_cmds_need_lc=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008376 # This is similar to how AIX traditionally builds its shared libraries.
8377 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'
brynercb91a2f2006-08-25 21:14:45 +00008378 fi
8379 fi
8380 ;;
8381
8382 amigaos*)
8383 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)'
8384 hardcode_libdir_flag_spec='-L$libdir'
8385 hardcode_minus_L=yes
8386 # see comment about different semantics on the GNU ld section
8387 ld_shlibs=no
8388 ;;
8389
mmentovai8c2a4de2006-09-20 16:20:15 +00008390 bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00008391 export_dynamic_flag_spec=-rdynamic
8392 ;;
8393
8394 cygwin* | mingw* | pw32*)
8395 # When not using gcc, we currently assume that we are using
8396 # Microsoft Visual C++.
8397 # hardcode_libdir_flag_spec is actually meaningless, as there is
8398 # no search path for DLLs.
8399 hardcode_libdir_flag_spec=' '
8400 allow_undefined_flag=unsupported
8401 # Tell ltmain to make .lib files, not .a files.
8402 libext=lib
8403 # Tell ltmain to make .dll files, not .so files.
8404 shrext_cmds=".dll"
8405 # FIXME: Setting linknames here is a bad hack.
8406 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8407 # The linker will automatically build a .lib file if we build a DLL.
8408 old_archive_From_new_cmds='true'
8409 # FIXME: Should let the user specify the lib program.
8410 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8411 fix_srcfile_path='`cygpath -w "$srcfile"`'
8412 enable_shared_with_static_runtimes=yes
8413 ;;
8414
8415 darwin* | rhapsody*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008416 case $host_os in
8417 rhapsody* | darwin1.[012])
8418 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8419 ;;
8420 *) # Darwin 1.3 on
8421 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8422 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8423 else
8424 case ${MACOSX_DEPLOYMENT_TARGET} in
8425 10.[012])
8426 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8427 ;;
8428 10.*)
8429 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8430 ;;
8431 esac
8432 fi
8433 ;;
brynerd5e66382006-09-08 02:35:53 +00008434 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00008435 archive_cmds_need_lc=no
brynercb91a2f2006-08-25 21:14:45 +00008436 hardcode_direct=no
8437 hardcode_automatic=yes
8438 hardcode_shlibpath_var=unsupported
mmentovai8c2a4de2006-09-20 16:20:15 +00008439 whole_archive_flag_spec=''
brynercb91a2f2006-08-25 21:14:45 +00008440 link_all_deplibs=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008441 if test "$GCC" = yes ; then
8442 output_verbose_link_cmd='echo'
8443 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8444 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8445 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8446 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8447 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
brynercb91a2f2006-08-25 21:14:45 +00008448 else
mmentovai8c2a4de2006-09-20 16:20:15 +00008449 case $cc_basename in
8450 xlc*)
8451 output_verbose_link_cmd='echo'
8452 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8453 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8454 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8455 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8456 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8457 ;;
8458 *)
8459 ld_shlibs=no
8460 ;;
8461 esac
brynercb91a2f2006-08-25 21:14:45 +00008462 fi
8463 ;;
8464
8465 dgux*)
8466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8467 hardcode_libdir_flag_spec='-L$libdir'
8468 hardcode_shlibpath_var=no
8469 ;;
8470
8471 freebsd1*)
8472 ld_shlibs=no
8473 ;;
8474
8475 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8476 # support. Future versions do this automatically, but an explicit c++rt0.o
8477 # does not break anything, and helps significantly (at the cost of a little
8478 # extra space).
8479 freebsd2.2*)
8480 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8481 hardcode_libdir_flag_spec='-R$libdir'
8482 hardcode_direct=yes
8483 hardcode_shlibpath_var=no
8484 ;;
8485
8486 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8487 freebsd2*)
8488 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8489 hardcode_direct=yes
8490 hardcode_minus_L=yes
8491 hardcode_shlibpath_var=no
8492 ;;
8493
8494 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mmentovai8c2a4de2006-09-20 16:20:15 +00008495 freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +00008496 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8497 hardcode_libdir_flag_spec='-R$libdir'
8498 hardcode_direct=yes
8499 hardcode_shlibpath_var=no
8500 ;;
8501
8502 hpux9*)
8503 if test "$GCC" = yes; then
8504 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'
8505 else
8506 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'
8507 fi
8508 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8509 hardcode_libdir_separator=:
8510 hardcode_direct=yes
8511
8512 # hardcode_minus_L: Not really in the search PATH,
8513 # but as the default location of the library.
8514 hardcode_minus_L=yes
8515 export_dynamic_flag_spec='${wl}-E'
8516 ;;
8517
mmentovai8c2a4de2006-09-20 16:20:15 +00008518 hpux10*)
brynercb91a2f2006-08-25 21:14:45 +00008519 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008520 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8521 else
8522 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8523 fi
8524 if test "$with_gnu_ld" = no; then
8525 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8526 hardcode_libdir_separator=:
8527
8528 hardcode_direct=yes
8529 export_dynamic_flag_spec='${wl}-E'
8530
8531 # hardcode_minus_L: Not really in the search PATH,
8532 # but as the default location of the library.
8533 hardcode_minus_L=yes
8534 fi
8535 ;;
8536
8537 hpux11*)
8538 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8539 case $host_cpu in
8540 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +00008541 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8542 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008543 ia64*)
8544 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8545 ;;
brynercb91a2f2006-08-25 21:14:45 +00008546 *)
8547 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8548 ;;
8549 esac
8550 else
mmentovai8c2a4de2006-09-20 16:20:15 +00008551 case $host_cpu in
8552 hppa*64*)
8553 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8554 ;;
8555 ia64*)
8556 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +00008557 ;;
8558 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00008559 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +00008560 ;;
8561 esac
8562 fi
8563 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008564 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8565 hardcode_libdir_separator=:
brynerd5e66382006-09-08 02:35:53 +00008566
mmentovai8c2a4de2006-09-20 16:20:15 +00008567 case $host_cpu in
8568 hppa*64*|ia64*)
8569 hardcode_libdir_flag_spec_ld='+b $libdir'
8570 hardcode_direct=no
8571 hardcode_shlibpath_var=no
brynerd5e66382006-09-08 02:35:53 +00008572 ;;
brynercb91a2f2006-08-25 21:14:45 +00008573 *)
brynercb91a2f2006-08-25 21:14:45 +00008574 hardcode_direct=yes
8575 export_dynamic_flag_spec='${wl}-E'
8576
8577 # hardcode_minus_L: Not really in the search PATH,
8578 # but as the default location of the library.
8579 hardcode_minus_L=yes
8580 ;;
8581 esac
8582 fi
8583 ;;
8584
8585 irix5* | irix6* | nonstopux*)
8586 if test "$GCC" = yes; then
8587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8588 else
8589 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8590 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8591 fi
8592 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8593 hardcode_libdir_separator=:
8594 link_all_deplibs=yes
8595 ;;
8596
mmentovai8c2a4de2006-09-20 16:20:15 +00008597 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +00008598 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8599 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8600 else
8601 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8602 fi
8603 hardcode_libdir_flag_spec='-R$libdir'
8604 hardcode_direct=yes
8605 hardcode_shlibpath_var=no
8606 ;;
8607
8608 newsos6)
8609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8610 hardcode_direct=yes
8611 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8612 hardcode_libdir_separator=:
8613 hardcode_shlibpath_var=no
8614 ;;
8615
8616 openbsd*)
8617 hardcode_direct=yes
8618 hardcode_shlibpath_var=no
8619 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8620 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +00008621 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
brynercb91a2f2006-08-25 21:14:45 +00008622 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8623 export_dynamic_flag_spec='${wl}-E'
8624 else
8625 case $host_os in
8626 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8627 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8628 hardcode_libdir_flag_spec='-R$libdir'
8629 ;;
8630 *)
8631 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8632 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8633 ;;
8634 esac
8635 fi
8636 ;;
8637
8638 os2*)
8639 hardcode_libdir_flag_spec='-L$libdir'
8640 hardcode_minus_L=yes
8641 allow_undefined_flag=unsupported
8642 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'
8643 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8644 ;;
8645
8646 osf3*)
8647 if test "$GCC" = yes; then
8648 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8649 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8650 else
8651 allow_undefined_flag=' -expect_unresolved \*'
8652 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8653 fi
8654 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8655 hardcode_libdir_separator=:
8656 ;;
8657
8658 osf4* | osf5*) # as osf3* with the addition of -msym flag
8659 if test "$GCC" = yes; then
8660 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8661 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8662 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8663 else
8664 allow_undefined_flag=' -expect_unresolved \*'
8665 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8666 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
mmentovai8c2a4de2006-09-20 16:20:15 +00008667 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
brynercb91a2f2006-08-25 21:14:45 +00008668
8669 # Both c and cxx compiler support -rpath directly
8670 hardcode_libdir_flag_spec='-rpath $libdir'
8671 fi
8672 hardcode_libdir_separator=:
8673 ;;
8674
brynercb91a2f2006-08-25 21:14:45 +00008675 solaris*)
8676 no_undefined_flag=' -z text'
8677 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008678 wlarc='${wl}'
brynercb91a2f2006-08-25 21:14:45 +00008679 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8680 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8681 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8682 else
mmentovai8c2a4de2006-09-20 16:20:15 +00008683 wlarc=''
brynercb91a2f2006-08-25 21:14:45 +00008684 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8685 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8686 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8687 fi
8688 hardcode_libdir_flag_spec='-R$libdir'
8689 hardcode_shlibpath_var=no
8690 case $host_os in
8691 solaris2.[0-5] | solaris2.[0-5].*) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008692 *)
8693 # The compiler driver will combine linker options so we
8694 # cannot just pass the convience library names through
8695 # without $wl, iff we do not link with $LD.
8696 # Luckily, gcc supports the same syntax we need for Sun Studio.
8697 # Supported since Solaris 2.6 (maybe 2.5.1?)
8698 case $wlarc in
8699 '')
8700 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8701 *)
8702 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8703 esac ;;
brynercb91a2f2006-08-25 21:14:45 +00008704 esac
8705 link_all_deplibs=yes
8706 ;;
8707
8708 sunos4*)
8709 if test "x$host_vendor" = xsequent; then
8710 # Use $CC to link under sequent, because it throws in some extra .o
8711 # files that make .init and .fini sections work.
8712 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8713 else
8714 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8715 fi
8716 hardcode_libdir_flag_spec='-L$libdir'
8717 hardcode_direct=yes
8718 hardcode_minus_L=yes
8719 hardcode_shlibpath_var=no
8720 ;;
8721
8722 sysv4)
8723 case $host_vendor in
8724 sni)
8725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8726 hardcode_direct=yes # is this really true???
8727 ;;
8728 siemens)
8729 ## LD is ld it makes a PLAMLIB
8730 ## CC just makes a GrossModule.
8731 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8732 reload_cmds='$CC -r -o $output$reload_objs'
8733 hardcode_direct=no
8734 ;;
8735 motorola)
8736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8737 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8738 ;;
8739 esac
8740 runpath_var='LD_RUN_PATH'
8741 hardcode_shlibpath_var=no
8742 ;;
8743
8744 sysv4.3*)
8745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8746 hardcode_shlibpath_var=no
8747 export_dynamic_flag_spec='-Bexport'
8748 ;;
8749
8750 sysv4*MP*)
8751 if test -d /usr/nec; then
8752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8753 hardcode_shlibpath_var=no
8754 runpath_var=LD_RUN_PATH
8755 hardcode_runpath_var=yes
8756 ld_shlibs=yes
8757 fi
8758 ;;
8759
mmentovai8c2a4de2006-09-20 16:20:15 +00008760 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8761 no_undefined_flag='${wl}-z,text'
8762 archive_cmds_need_lc=no
brynercb91a2f2006-08-25 21:14:45 +00008763 hardcode_shlibpath_var=no
mmentovai8c2a4de2006-09-20 16:20:15 +00008764 runpath_var='LD_RUN_PATH'
bryner07f8ef52006-09-05 19:42:57 +00008765
mmentovai3261e8b2006-09-06 02:56:44 +00008766 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008767 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8768 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00008769 else
mmentovai8c2a4de2006-09-20 16:20:15 +00008770 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8771 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00008772 fi
brynerd5e66382006-09-08 02:35:53 +00008773 ;;
8774
mmentovai8c2a4de2006-09-20 16:20:15 +00008775 sysv5* | sco3.2v5* | sco5v6*)
8776 # Note: We can NOT use -z defs as we might desire, because we do not
8777 # link with -lc, and that would cause any symbols used from libc to
8778 # always be unresolved, which means just about no library would
8779 # ever link correctly. If we're not using GNU ld we use -z text
8780 # though, which does catch some bad symbols but isn't as heavy-handed
8781 # as -z defs.
8782 no_undefined_flag='${wl}-z,text'
8783 allow_undefined_flag='${wl}-z,nodefs'
8784 archive_cmds_need_lc=no
brynerd5e66382006-09-08 02:35:53 +00008785 hardcode_shlibpath_var=no
mmentovai8c2a4de2006-09-20 16:20:15 +00008786 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8787 hardcode_libdir_separator=':'
8788 link_all_deplibs=yes
8789 export_dynamic_flag_spec='${wl}-Bexport'
brynerd5e66382006-09-08 02:35:53 +00008790 runpath_var='LD_RUN_PATH'
mmentovai8c2a4de2006-09-20 16:20:15 +00008791
8792 if test "$GCC" = yes; then
8793 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8794 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8795 else
8796 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8797 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8798 fi
brynercb91a2f2006-08-25 21:14:45 +00008799 ;;
8800
8801 uts4*)
8802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8803 hardcode_libdir_flag_spec='-L$libdir'
8804 hardcode_shlibpath_var=no
8805 ;;
8806
8807 *)
8808 ld_shlibs=no
8809 ;;
8810 esac
8811 fi
8812
mmentovai8c2a4de2006-09-20 16:20:15 +00008813{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8814echo "${ECHO_T}$ld_shlibs" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008815test "$ld_shlibs" = no && can_build_shared=no
8816
brynercb91a2f2006-08-25 21:14:45 +00008817#
8818# Do we need to explicitly link libc?
8819#
8820case "x$archive_cmds_need_lc" in
8821x|xyes)
8822 # Assume -lc should be added
8823 archive_cmds_need_lc=yes
8824
8825 if test "$enable_shared" = yes && test "$GCC" = yes; then
8826 case $archive_cmds in
8827 *'~'*)
8828 # FIXME: we may have to deal with multi-command sequences.
8829 ;;
8830 '$CC '*)
8831 # Test whether the compiler implicitly links with -lc since on some
8832 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8833 # to ld, don't add -lc before -lgcc.
mmentovai8c2a4de2006-09-20 16:20:15 +00008834 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8835echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008836 $rm conftest*
8837 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8838
8839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8840 (eval $ac_compile) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } 2>conftest.err; then
8844 soname=conftest
8845 lib=conftest
8846 libobjs=conftest.$ac_objext
8847 deplibs=
8848 wl=$lt_prog_compiler_wl
mmentovai8c2a4de2006-09-20 16:20:15 +00008849 pic_flag=$lt_prog_compiler_pic
brynercb91a2f2006-08-25 21:14:45 +00008850 compiler_flags=-v
8851 linker_flags=-v
8852 verstring=
8853 output_objdir=.
8854 libname=conftest
8855 lt_save_allow_undefined_flag=$allow_undefined_flag
8856 allow_undefined_flag=
8857 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8858 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8859 ac_status=$?
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); }
8862 then
8863 archive_cmds_need_lc=no
8864 else
8865 archive_cmds_need_lc=yes
8866 fi
8867 allow_undefined_flag=$lt_save_allow_undefined_flag
8868 else
8869 cat conftest.err 1>&5
8870 fi
8871 $rm conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +00008872 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8873echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008874 ;;
8875 esac
8876 fi
8877 ;;
8878esac
8879
mmentovai8c2a4de2006-09-20 16:20:15 +00008880{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8881echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008882library_names_spec=
8883libname_spec='lib$name'
8884soname_spec=
8885shrext_cmds=".so"
8886postinstall_cmds=
8887postuninstall_cmds=
8888finish_cmds=
8889finish_eval=
8890shlibpath_var=
8891shlibpath_overrides_runpath=unknown
8892version_type=none
8893dynamic_linker="$host_os ld.so"
8894sys_lib_dlsearch_path_spec="/lib /usr/lib"
8895if test "$GCC" = yes; then
8896 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8897 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8898 # if the path contains ";" then we assume it to be the separator
8899 # otherwise default to the standard path separator (i.e. ":") - it is
8900 # assumed that no part of a normal pathname contains ";" but that should
8901 # okay in the real world where ";" in dirpaths is itself problematic.
8902 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8903 else
8904 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8905 fi
8906else
8907 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8908fi
8909need_lib_prefix=unknown
8910hardcode_into_libs=no
8911
8912# when you set need_version to no, make sure it does not cause -set_version
8913# flags to be left without arguments
8914need_version=unknown
8915
8916case $host_os in
8917aix3*)
8918 version_type=linux
8919 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8920 shlibpath_var=LIBPATH
8921
8922 # AIX 3 has no versioning support, so we append a major version to the name.
8923 soname_spec='${libname}${release}${shared_ext}$major'
8924 ;;
8925
8926aix4* | aix5*)
8927 version_type=linux
8928 need_lib_prefix=no
8929 need_version=no
8930 hardcode_into_libs=yes
8931 if test "$host_cpu" = ia64; then
8932 # AIX 5 supports IA64
8933 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8934 shlibpath_var=LD_LIBRARY_PATH
8935 else
8936 # With GCC up to 2.95.x, collect2 would create an import file
8937 # for dependence libraries. The import file would start with
8938 # the line `#! .'. This would cause the generated library to
8939 # depend on `.', always an invalid library. This was fixed in
8940 # development snapshots of GCC prior to 3.0.
8941 case $host_os in
8942 aix4 | aix4.[01] | aix4.[01].*)
8943 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8944 echo ' yes '
8945 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8946 :
8947 else
8948 can_build_shared=no
8949 fi
8950 ;;
8951 esac
8952 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8953 # soname into executable. Probably we can add versioning support to
8954 # collect2, so additional links can be useful in future.
8955 if test "$aix_use_runtimelinking" = yes; then
8956 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8957 # instead of lib<name>.a to let people know that these are not
8958 # typical AIX shared libraries.
8959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8960 else
8961 # We preserve .a as extension for shared libraries through AIX4.2
8962 # and later when we are not doing run time linking.
8963 library_names_spec='${libname}${release}.a $libname.a'
8964 soname_spec='${libname}${release}${shared_ext}$major'
8965 fi
8966 shlibpath_var=LIBPATH
8967 fi
8968 ;;
8969
8970amigaos*)
8971 library_names_spec='$libname.ixlibrary $libname.a'
8972 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8973 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'
8974 ;;
8975
8976beos*)
8977 library_names_spec='${libname}${shared_ext}'
8978 dynamic_linker="$host_os ld.so"
8979 shlibpath_var=LIBRARY_PATH
8980 ;;
8981
mmentovai8c2a4de2006-09-20 16:20:15 +00008982bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00008983 version_type=linux
8984 need_version=no
8985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8986 soname_spec='${libname}${release}${shared_ext}$major'
8987 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8988 shlibpath_var=LD_LIBRARY_PATH
8989 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8990 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8991 # the default ld.so.conf also contains /usr/contrib/lib and
8992 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8993 # libtool to hard-code these into programs
8994 ;;
8995
8996cygwin* | mingw* | pw32*)
8997 version_type=windows
8998 shrext_cmds=".dll"
8999 need_version=no
9000 need_lib_prefix=no
9001
9002 case $GCC,$host_os in
9003 yes,cygwin* | yes,mingw* | yes,pw32*)
9004 library_names_spec='$libname.dll.a'
9005 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9006 postinstall_cmds='base_file=`basename \${file}`~
9007 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9008 dldir=$destdir/`dirname \$dlpath`~
9009 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +00009010 $install_prog $dir/$dlname \$dldir/$dlname~
9011 chmod a+x \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +00009012 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9013 dlpath=$dir/\$dldll~
9014 $rm \$dlpath'
9015 shlibpath_overrides_runpath=yes
9016
9017 case $host_os in
9018 cygwin*)
9019 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9020 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9021 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9022 ;;
9023 mingw*)
9024 # MinGW DLLs use traditional 'lib' prefix
9025 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9026 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9027 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9028 # It is most probably a Windows format PATH printed by
9029 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9030 # path with ; separators, and with drive letters. We can handle the
9031 # drive letters (cygwin fileutils understands them), so leave them,
9032 # especially as we might pass files found there to a mingw objdump,
9033 # which wouldn't understand a cygwinified path. Ahh.
9034 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9035 else
9036 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9037 fi
9038 ;;
9039 pw32*)
9040 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +00009041 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
brynercb91a2f2006-08-25 21:14:45 +00009042 ;;
9043 esac
9044 ;;
9045
9046 *)
9047 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9048 ;;
9049 esac
9050 dynamic_linker='Win32 ld.exe'
9051 # FIXME: first we should search . and the directory the executable is in
9052 shlibpath_var=PATH
9053 ;;
9054
9055darwin* | rhapsody*)
9056 dynamic_linker="$host_os dyld"
9057 version_type=darwin
9058 need_lib_prefix=no
9059 need_version=no
9060 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9061 soname_spec='${libname}${release}${major}$shared_ext'
9062 shlibpath_overrides_runpath=yes
9063 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +00009064 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
brynercb91a2f2006-08-25 21:14:45 +00009065 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9066 if test "$GCC" = yes; then
9067 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9068 else
9069 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9070 fi
9071 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9072 ;;
9073
9074dgux*)
9075 version_type=linux
9076 need_lib_prefix=no
9077 need_version=no
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9079 soname_spec='${libname}${release}${shared_ext}$major'
9080 shlibpath_var=LD_LIBRARY_PATH
9081 ;;
9082
9083freebsd1*)
9084 dynamic_linker=no
9085 ;;
9086
9087kfreebsd*-gnu)
9088 version_type=linux
9089 need_lib_prefix=no
9090 need_version=no
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9092 soname_spec='${libname}${release}${shared_ext}$major'
9093 shlibpath_var=LD_LIBRARY_PATH
9094 shlibpath_overrides_runpath=no
9095 hardcode_into_libs=yes
9096 dynamic_linker='GNU ld.so'
9097 ;;
9098
mmentovai8c2a4de2006-09-20 16:20:15 +00009099freebsd* | dragonfly*)
9100 # DragonFly does not have aout. When/if they implement a new
9101 # versioning mechanism, adjust this.
9102 if test -x /usr/bin/objformat; then
9103 objformat=`/usr/bin/objformat`
9104 else
9105 case $host_os in
9106 freebsd[123]*) objformat=aout ;;
9107 *) objformat=elf ;;
9108 esac
9109 fi
brynercb91a2f2006-08-25 21:14:45 +00009110 version_type=freebsd-$objformat
9111 case $version_type in
9112 freebsd-elf*)
9113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9114 need_version=no
9115 need_lib_prefix=no
9116 ;;
9117 freebsd-*)
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9119 need_version=yes
9120 ;;
9121 esac
9122 shlibpath_var=LD_LIBRARY_PATH
9123 case $host_os in
9124 freebsd2*)
9125 shlibpath_overrides_runpath=yes
9126 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009127 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +00009128 shlibpath_overrides_runpath=yes
9129 hardcode_into_libs=yes
9130 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009131 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9132 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +00009133 shlibpath_overrides_runpath=no
9134 hardcode_into_libs=yes
9135 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009136 freebsd*) # from 4.6 on
9137 shlibpath_overrides_runpath=yes
9138 hardcode_into_libs=yes
9139 ;;
brynercb91a2f2006-08-25 21:14:45 +00009140 esac
9141 ;;
9142
9143gnu*)
9144 version_type=linux
9145 need_lib_prefix=no
9146 need_version=no
9147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9148 soname_spec='${libname}${release}${shared_ext}$major'
9149 shlibpath_var=LD_LIBRARY_PATH
9150 hardcode_into_libs=yes
9151 ;;
9152
9153hpux9* | hpux10* | hpux11*)
9154 # Give a soname corresponding to the major version so that dld.sl refuses to
9155 # link against other versions.
9156 version_type=sunos
9157 need_lib_prefix=no
9158 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +00009159 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00009160 ia64*)
9161 shrext_cmds='.so'
9162 hardcode_into_libs=yes
9163 dynamic_linker="$host_os dld.so"
9164 shlibpath_var=LD_LIBRARY_PATH
9165 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9167 soname_spec='${libname}${release}${shared_ext}$major'
9168 if test "X$HPUX_IA64_MODE" = X32; then
9169 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9170 else
9171 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9172 fi
9173 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9174 ;;
9175 hppa*64*)
9176 shrext_cmds='.sl'
9177 hardcode_into_libs=yes
9178 dynamic_linker="$host_os dld.sl"
9179 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9180 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9184 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9185 ;;
9186 *)
9187 shrext_cmds='.sl'
9188 dynamic_linker="$host_os dld.sl"
9189 shlibpath_var=SHLIB_PATH
9190 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9192 soname_spec='${libname}${release}${shared_ext}$major'
9193 ;;
9194 esac
9195 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9196 postinstall_cmds='chmod 555 $lib'
9197 ;;
9198
mmentovai8c2a4de2006-09-20 16:20:15 +00009199interix3*)
9200 version_type=linux
9201 need_lib_prefix=no
9202 need_version=no
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9204 soname_spec='${libname}${release}${shared_ext}$major'
9205 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9206 shlibpath_var=LD_LIBRARY_PATH
9207 shlibpath_overrides_runpath=no
9208 hardcode_into_libs=yes
9209 ;;
9210
brynercb91a2f2006-08-25 21:14:45 +00009211irix5* | irix6* | nonstopux*)
9212 case $host_os in
9213 nonstopux*) version_type=nonstopux ;;
9214 *)
9215 if test "$lt_cv_prog_gnu_ld" = yes; then
9216 version_type=linux
9217 else
9218 version_type=irix
9219 fi ;;
9220 esac
9221 need_lib_prefix=no
9222 need_version=no
9223 soname_spec='${libname}${release}${shared_ext}$major'
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9225 case $host_os in
9226 irix5* | nonstopux*)
9227 libsuff= shlibsuff=
9228 ;;
9229 *)
9230 case $LD in # libtool.m4 will add one of these switches to LD
9231 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9232 libsuff= shlibsuff= libmagic=32-bit;;
9233 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9234 libsuff=32 shlibsuff=N32 libmagic=N32;;
9235 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9236 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9237 *) libsuff= shlibsuff= libmagic=never-match;;
9238 esac
9239 ;;
9240 esac
9241 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9242 shlibpath_overrides_runpath=no
9243 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9244 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9245 hardcode_into_libs=yes
9246 ;;
9247
9248# No shared lib support for Linux oldld, aout, or coff.
9249linux*oldld* | linux*aout* | linux*coff*)
9250 dynamic_linker=no
9251 ;;
9252
9253# This must be Linux ELF.
9254linux*)
9255 version_type=linux
9256 need_lib_prefix=no
9257 need_version=no
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9259 soname_spec='${libname}${release}${shared_ext}$major'
9260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 shlibpath_overrides_runpath=no
9263 # This implies no fast_install, which is unacceptable.
9264 # Some rework will be needed to allow for fast_install
9265 # before this can be enabled.
9266 hardcode_into_libs=yes
9267
9268 # Append ld.so.conf contents to the search path
9269 if test -f /etc/ld.so.conf; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009270 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
brynercb91a2f2006-08-25 21:14:45 +00009271 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9272 fi
9273
9274 # We used to test for /lib/ld.so.1 and disable shared libraries on
9275 # powerpc, because MkLinux only supported shared libraries with the
9276 # GNU dynamic linker. Since this was broken with cross compilers,
9277 # most powerpc-linux boxes support dynamic linking these days and
9278 # people can always --disable-shared, the test was removed, and we
9279 # assume the GNU/Linux dynamic linker is in use.
9280 dynamic_linker='GNU/Linux ld.so'
9281 ;;
9282
brynercb91a2f2006-08-25 21:14:45 +00009283knetbsd*-gnu)
9284 version_type=linux
9285 need_lib_prefix=no
9286 need_version=no
9287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9288 soname_spec='${libname}${release}${shared_ext}$major'
9289 shlibpath_var=LD_LIBRARY_PATH
9290 shlibpath_overrides_runpath=no
9291 hardcode_into_libs=yes
9292 dynamic_linker='GNU ld.so'
9293 ;;
9294
9295netbsd*)
9296 version_type=sunos
9297 need_lib_prefix=no
9298 need_version=no
9299 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9302 dynamic_linker='NetBSD (a.out) ld.so'
9303 else
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9305 soname_spec='${libname}${release}${shared_ext}$major'
9306 dynamic_linker='NetBSD ld.elf_so'
9307 fi
9308 shlibpath_var=LD_LIBRARY_PATH
9309 shlibpath_overrides_runpath=yes
9310 hardcode_into_libs=yes
9311 ;;
9312
9313newsos6)
9314 version_type=linux
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9316 shlibpath_var=LD_LIBRARY_PATH
9317 shlibpath_overrides_runpath=yes
9318 ;;
9319
9320nto-qnx*)
9321 version_type=linux
9322 need_lib_prefix=no
9323 need_version=no
9324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9325 soname_spec='${libname}${release}${shared_ext}$major'
9326 shlibpath_var=LD_LIBRARY_PATH
9327 shlibpath_overrides_runpath=yes
9328 ;;
9329
9330openbsd*)
9331 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +00009332 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +00009333 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +00009334 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9335 case $host_os in
9336 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9337 *) need_version=no ;;
9338 esac
brynercb91a2f2006-08-25 21:14:45 +00009339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9340 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9341 shlibpath_var=LD_LIBRARY_PATH
9342 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9343 case $host_os in
9344 openbsd2.[89] | openbsd2.[89].*)
9345 shlibpath_overrides_runpath=no
9346 ;;
9347 *)
9348 shlibpath_overrides_runpath=yes
9349 ;;
9350 esac
9351 else
9352 shlibpath_overrides_runpath=yes
9353 fi
9354 ;;
9355
9356os2*)
9357 libname_spec='$name'
9358 shrext_cmds=".dll"
9359 need_lib_prefix=no
9360 library_names_spec='$libname${shared_ext} $libname.a'
9361 dynamic_linker='OS/2 ld.exe'
9362 shlibpath_var=LIBPATH
9363 ;;
9364
9365osf3* | osf4* | osf5*)
9366 version_type=osf
9367 need_lib_prefix=no
9368 need_version=no
9369 soname_spec='${libname}${release}${shared_ext}$major'
9370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9371 shlibpath_var=LD_LIBRARY_PATH
9372 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9373 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9374 ;;
9375
brynercb91a2f2006-08-25 21:14:45 +00009376solaris*)
9377 version_type=linux
9378 need_lib_prefix=no
9379 need_version=no
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 shlibpath_var=LD_LIBRARY_PATH
9383 shlibpath_overrides_runpath=yes
9384 hardcode_into_libs=yes
9385 # ldd complains unless libraries are executable
9386 postinstall_cmds='chmod +x $lib'
9387 ;;
9388
9389sunos4*)
9390 version_type=sunos
9391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9392 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9393 shlibpath_var=LD_LIBRARY_PATH
9394 shlibpath_overrides_runpath=yes
9395 if test "$with_gnu_ld" = yes; then
9396 need_lib_prefix=no
9397 fi
9398 need_version=yes
9399 ;;
9400
mmentovai8c2a4de2006-09-20 16:20:15 +00009401sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00009402 version_type=linux
9403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9404 soname_spec='${libname}${release}${shared_ext}$major'
9405 shlibpath_var=LD_LIBRARY_PATH
9406 case $host_vendor in
9407 sni)
9408 shlibpath_overrides_runpath=no
9409 need_lib_prefix=no
9410 export_dynamic_flag_spec='${wl}-Blargedynsym'
9411 runpath_var=LD_RUN_PATH
9412 ;;
9413 siemens)
9414 need_lib_prefix=no
9415 ;;
9416 motorola)
9417 need_lib_prefix=no
9418 need_version=no
9419 shlibpath_overrides_runpath=no
9420 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9421 ;;
9422 esac
9423 ;;
9424
9425sysv4*MP*)
9426 if test -d /usr/nec ;then
9427 version_type=linux
9428 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9429 soname_spec='$libname${shared_ext}.$major'
9430 shlibpath_var=LD_LIBRARY_PATH
9431 fi
9432 ;;
9433
mmentovai8c2a4de2006-09-20 16:20:15 +00009434sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9435 version_type=freebsd-elf
9436 need_lib_prefix=no
9437 need_version=no
9438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9439 soname_spec='${libname}${release}${shared_ext}$major'
9440 shlibpath_var=LD_LIBRARY_PATH
9441 hardcode_into_libs=yes
9442 if test "$with_gnu_ld" = yes; then
9443 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9444 shlibpath_overrides_runpath=no
9445 else
9446 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9447 shlibpath_overrides_runpath=yes
9448 case $host_os in
9449 sco3.2v5*)
9450 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9451 ;;
9452 esac
9453 fi
9454 sys_lib_dlsearch_path_spec='/usr/lib'
9455 ;;
9456
brynercb91a2f2006-08-25 21:14:45 +00009457uts4*)
9458 version_type=linux
9459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9460 soname_spec='${libname}${release}${shared_ext}$major'
9461 shlibpath_var=LD_LIBRARY_PATH
9462 ;;
9463
9464*)
9465 dynamic_linker=no
9466 ;;
9467esac
mmentovai8c2a4de2006-09-20 16:20:15 +00009468{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9469echo "${ECHO_T}$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009470test "$dynamic_linker" = no && can_build_shared=no
9471
mmentovai8c2a4de2006-09-20 16:20:15 +00009472variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9473if test "$GCC" = yes; then
9474 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9475fi
9476
9477{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9478echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009479hardcode_action=
9480if test -n "$hardcode_libdir_flag_spec" || \
mmentovai8c2a4de2006-09-20 16:20:15 +00009481 test -n "$runpath_var" || \
9482 test "X$hardcode_automatic" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +00009483
9484 # We can hardcode non-existant directories.
9485 if test "$hardcode_direct" != no &&
9486 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9487 # have to relink, otherwise we might link with an installed library
9488 # when we should be linking with a yet-to-be-installed one
9489 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9490 test "$hardcode_minus_L" != no; then
9491 # Linking always hardcodes the temporary library directory.
9492 hardcode_action=relink
9493 else
9494 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9495 hardcode_action=immediate
9496 fi
9497else
9498 # We cannot hardcode anything, or else we can only hardcode existing
9499 # directories.
9500 hardcode_action=unsupported
9501fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009502{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9503echo "${ECHO_T}$hardcode_action" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009504
9505if test "$hardcode_action" = relink; then
9506 # Fast installation is not supported
9507 enable_fast_install=no
9508elif test "$shlibpath_overrides_runpath" = yes ||
9509 test "$enable_shared" = no; then
9510 # Fast installation is not necessary
9511 enable_fast_install=needless
9512fi
9513
9514striplib=
9515old_striplib=
mmentovai8c2a4de2006-09-20 16:20:15 +00009516{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9517echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009518if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9519 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9520 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
mmentovai8c2a4de2006-09-20 16:20:15 +00009521 { echo "$as_me:$LINENO: result: yes" >&5
9522echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009523else
9524# FIXME - insert some real tests, host_os isn't really good enough
9525 case $host_os in
9526 darwin*)
9527 if test -n "$STRIP" ; then
9528 striplib="$STRIP -x"
mmentovai8c2a4de2006-09-20 16:20:15 +00009529 { echo "$as_me:$LINENO: result: yes" >&5
9530echo "${ECHO_T}yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009531 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009532 { echo "$as_me:$LINENO: result: no" >&5
9533echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009534fi
9535 ;;
9536 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00009537 { echo "$as_me:$LINENO: result: no" >&5
9538echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009539 ;;
9540 esac
9541fi
9542
9543if test "x$enable_dlopen" != xyes; then
9544 enable_dlopen=unknown
9545 enable_dlopen_self=unknown
9546 enable_dlopen_self_static=unknown
9547else
9548 lt_cv_dlopen=no
9549 lt_cv_dlopen_libs=
9550
9551 case $host_os in
9552 beos*)
9553 lt_cv_dlopen="load_add_on"
9554 lt_cv_dlopen_libs=
9555 lt_cv_dlopen_self=yes
9556 ;;
9557
9558 mingw* | pw32*)
9559 lt_cv_dlopen="LoadLibrary"
9560 lt_cv_dlopen_libs=
9561 ;;
9562
9563 cygwin*)
9564 lt_cv_dlopen="dlopen"
9565 lt_cv_dlopen_libs=
9566 ;;
9567
9568 darwin*)
9569 # if libdl is installed we need to link against it
mmentovai8c2a4de2006-09-20 16:20:15 +00009570 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9571echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009572if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9574else
9575 ac_check_lib_save_LIBS=$LIBS
9576LIBS="-ldl $LIBS"
9577cat >conftest.$ac_ext <<_ACEOF
9578/* confdefs.h. */
9579_ACEOF
9580cat confdefs.h >>conftest.$ac_ext
9581cat >>conftest.$ac_ext <<_ACEOF
9582/* end confdefs.h. */
9583
mmentovai8c2a4de2006-09-20 16:20:15 +00009584/* Override any GCC internal prototype to avoid an error.
9585 Use char because int might match the return type of a GCC
9586 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009587#ifdef __cplusplus
9588extern "C"
9589#endif
brynercb91a2f2006-08-25 21:14:45 +00009590char dlopen ();
9591int
9592main ()
9593{
mmentovai8c2a4de2006-09-20 16:20:15 +00009594return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +00009595 ;
9596 return 0;
9597}
9598_ACEOF
9599rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009600if { (ac_try="$ac_link"
9601case "(($ac_try" in
9602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603 *) ac_try_echo=$ac_try;;
9604esac
9605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9606 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009607 ac_status=$?
9608 grep -v '^ *+' conftest.er1 >conftest.err
9609 rm -f conftest.er1
9610 cat conftest.err >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00009613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9614 { (case "(($ac_try" in
9615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9616 *) ac_try_echo=$ac_try;;
9617esac
9618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9619 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009620 ac_status=$?
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; } &&
9623 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00009624 { (case "(($ac_try" in
9625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9626 *) ac_try_echo=$ac_try;;
9627esac
9628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9629 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009630 ac_status=$?
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9633 ac_cv_lib_dl_dlopen=yes
9634else
9635 echo "$as_me: failed program was:" >&5
9636sed 's/^/| /' conftest.$ac_ext >&5
9637
mmentovai8c2a4de2006-09-20 16:20:15 +00009638 ac_cv_lib_dl_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +00009639fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009640
9641rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +00009642 conftest$ac_exeext conftest.$ac_ext
9643LIBS=$ac_check_lib_save_LIBS
9644fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009645{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9646echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009647if test $ac_cv_lib_dl_dlopen = yes; then
9648 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9649else
9650
9651 lt_cv_dlopen="dyld"
9652 lt_cv_dlopen_libs=
9653 lt_cv_dlopen_self=yes
9654
9655fi
9656
9657 ;;
9658
9659 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00009660 { echo "$as_me:$LINENO: checking for shl_load" >&5
9661echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009662if test "${ac_cv_func_shl_load+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9664else
9665 cat >conftest.$ac_ext <<_ACEOF
9666/* confdefs.h. */
9667_ACEOF
9668cat confdefs.h >>conftest.$ac_ext
9669cat >>conftest.$ac_ext <<_ACEOF
9670/* end confdefs.h. */
9671/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9673#define shl_load innocuous_shl_load
9674
9675/* System header to define __stub macros and hopefully few prototypes,
9676 which can conflict with char shl_load (); below.
9677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9678 <limits.h> exists even on freestanding compilers. */
9679
9680#ifdef __STDC__
9681# include <limits.h>
9682#else
9683# include <assert.h>
9684#endif
9685
9686#undef shl_load
9687
mmentovai8c2a4de2006-09-20 16:20:15 +00009688/* Override any GCC internal prototype to avoid an error.
9689 Use char because int might match the return type of a GCC
9690 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009691#ifdef __cplusplus
9692extern "C"
brynercb91a2f2006-08-25 21:14:45 +00009693#endif
brynercb91a2f2006-08-25 21:14:45 +00009694char shl_load ();
9695/* The GNU C library defines this for functions which it implements
9696 to always fail with ENOSYS. Some functions are actually named
9697 something starting with __ and the normal name is an alias. */
mmentovai8c2a4de2006-09-20 16:20:15 +00009698#if defined __stub_shl_load || defined __stub___shl_load
brynercb91a2f2006-08-25 21:14:45 +00009699choke me
brynercb91a2f2006-08-25 21:14:45 +00009700#endif
9701
9702int
9703main ()
9704{
mmentovai8c2a4de2006-09-20 16:20:15 +00009705return shl_load ();
brynercb91a2f2006-08-25 21:14:45 +00009706 ;
9707 return 0;
9708}
9709_ACEOF
9710rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009711if { (ac_try="$ac_link"
9712case "(($ac_try" in
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9715esac
9716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009718 ac_status=$?
9719 grep -v '^ *+' conftest.er1 >conftest.err
9720 rm -f conftest.er1
9721 cat conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00009724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9725 { (case "(($ac_try" in
9726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727 *) ac_try_echo=$ac_try;;
9728esac
9729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9730 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009731 ac_status=$?
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; } &&
9734 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00009735 { (case "(($ac_try" in
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9738esac
9739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009741 ac_status=$?
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; }; then
9744 ac_cv_func_shl_load=yes
9745else
9746 echo "$as_me: failed program was:" >&5
9747sed 's/^/| /' conftest.$ac_ext >&5
9748
mmentovai8c2a4de2006-09-20 16:20:15 +00009749 ac_cv_func_shl_load=no
brynercb91a2f2006-08-25 21:14:45 +00009750fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009751
9752rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +00009753 conftest$ac_exeext conftest.$ac_ext
9754fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009755{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9756echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009757if test $ac_cv_func_shl_load = yes; then
9758 lt_cv_dlopen="shl_load"
9759else
mmentovai8c2a4de2006-09-20 16:20:15 +00009760 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9761echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009762if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9764else
9765 ac_check_lib_save_LIBS=$LIBS
9766LIBS="-ldld $LIBS"
9767cat >conftest.$ac_ext <<_ACEOF
9768/* confdefs.h. */
9769_ACEOF
9770cat confdefs.h >>conftest.$ac_ext
9771cat >>conftest.$ac_ext <<_ACEOF
9772/* end confdefs.h. */
9773
mmentovai8c2a4de2006-09-20 16:20:15 +00009774/* 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. */
brynercb91a2f2006-08-25 21:14:45 +00009777#ifdef __cplusplus
9778extern "C"
9779#endif
brynercb91a2f2006-08-25 21:14:45 +00009780char shl_load ();
9781int
9782main ()
9783{
mmentovai8c2a4de2006-09-20 16:20:15 +00009784return shl_load ();
brynercb91a2f2006-08-25 21:14:45 +00009785 ;
9786 return 0;
9787}
9788_ACEOF
9789rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009790if { (ac_try="$ac_link"
9791case "(($ac_try" in
9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793 *) ac_try_echo=$ac_try;;
9794esac
9795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009797 ac_status=$?
9798 grep -v '^ *+' conftest.er1 >conftest.err
9799 rm -f conftest.er1
9800 cat conftest.err >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00009803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9804 { (case "(($ac_try" in
9805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9806 *) ac_try_echo=$ac_try;;
9807esac
9808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9809 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009810 ac_status=$?
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; } &&
9813 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00009814 { (case "(($ac_try" in
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9817esac
9818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009820 ac_status=$?
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; }; then
9823 ac_cv_lib_dld_shl_load=yes
9824else
9825 echo "$as_me: failed program was:" >&5
9826sed 's/^/| /' conftest.$ac_ext >&5
9827
mmentovai8c2a4de2006-09-20 16:20:15 +00009828 ac_cv_lib_dld_shl_load=no
brynercb91a2f2006-08-25 21:14:45 +00009829fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009830
9831rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +00009832 conftest$ac_exeext conftest.$ac_ext
9833LIBS=$ac_check_lib_save_LIBS
9834fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009835{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9836echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009837if test $ac_cv_lib_dld_shl_load = yes; then
9838 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9839else
mmentovai8c2a4de2006-09-20 16:20:15 +00009840 { echo "$as_me:$LINENO: checking for dlopen" >&5
9841echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009842if test "${ac_cv_func_dlopen+set}" = set; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9844else
9845 cat >conftest.$ac_ext <<_ACEOF
9846/* confdefs.h. */
9847_ACEOF
9848cat confdefs.h >>conftest.$ac_ext
9849cat >>conftest.$ac_ext <<_ACEOF
9850/* end confdefs.h. */
9851/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9853#define dlopen innocuous_dlopen
9854
9855/* System header to define __stub macros and hopefully few prototypes,
9856 which can conflict with char dlopen (); below.
9857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9858 <limits.h> exists even on freestanding compilers. */
9859
9860#ifdef __STDC__
9861# include <limits.h>
9862#else
9863# include <assert.h>
9864#endif
9865
9866#undef dlopen
9867
mmentovai8c2a4de2006-09-20 16:20:15 +00009868/* Override any GCC internal prototype to avoid an error.
9869 Use char because int might match the return type of a GCC
9870 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009871#ifdef __cplusplus
9872extern "C"
brynercb91a2f2006-08-25 21:14:45 +00009873#endif
brynercb91a2f2006-08-25 21:14:45 +00009874char dlopen ();
9875/* The GNU C library defines this for functions which it implements
9876 to always fail with ENOSYS. Some functions are actually named
9877 something starting with __ and the normal name is an alias. */
mmentovai8c2a4de2006-09-20 16:20:15 +00009878#if defined __stub_dlopen || defined __stub___dlopen
brynercb91a2f2006-08-25 21:14:45 +00009879choke me
brynercb91a2f2006-08-25 21:14:45 +00009880#endif
9881
9882int
9883main ()
9884{
mmentovai8c2a4de2006-09-20 16:20:15 +00009885return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +00009886 ;
9887 return 0;
9888}
9889_ACEOF
9890rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009891if { (ac_try="$ac_link"
9892case "(($ac_try" in
9893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894 *) ac_try_echo=$ac_try;;
9895esac
9896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9897 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009898 ac_status=$?
9899 grep -v '^ *+' conftest.er1 >conftest.err
9900 rm -f conftest.er1
9901 cat conftest.err >&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00009904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9905 { (case "(($ac_try" in
9906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907 *) ac_try_echo=$ac_try;;
9908esac
9909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009911 ac_status=$?
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; } &&
9914 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00009915 { (case "(($ac_try" in
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9918esac
9919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009921 ac_status=$?
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; }; then
9924 ac_cv_func_dlopen=yes
9925else
9926 echo "$as_me: failed program was:" >&5
9927sed 's/^/| /' conftest.$ac_ext >&5
9928
mmentovai8c2a4de2006-09-20 16:20:15 +00009929 ac_cv_func_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +00009930fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009931
9932rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +00009933 conftest$ac_exeext conftest.$ac_ext
9934fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009935{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9936echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009937if test $ac_cv_func_dlopen = yes; then
9938 lt_cv_dlopen="dlopen"
9939else
mmentovai8c2a4de2006-09-20 16:20:15 +00009940 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9941echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009942if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9944else
9945 ac_check_lib_save_LIBS=$LIBS
9946LIBS="-ldl $LIBS"
9947cat >conftest.$ac_ext <<_ACEOF
9948/* confdefs.h. */
9949_ACEOF
9950cat confdefs.h >>conftest.$ac_ext
9951cat >>conftest.$ac_ext <<_ACEOF
9952/* end confdefs.h. */
9953
mmentovai8c2a4de2006-09-20 16:20:15 +00009954/* Override any GCC internal prototype to avoid an error.
9955 Use char because int might match the return type of a GCC
9956 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +00009957#ifdef __cplusplus
9958extern "C"
9959#endif
brynercb91a2f2006-08-25 21:14:45 +00009960char dlopen ();
9961int
9962main ()
9963{
mmentovai8c2a4de2006-09-20 16:20:15 +00009964return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +00009965 ;
9966 return 0;
9967}
9968_ACEOF
9969rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +00009970if { (ac_try="$ac_link"
9971case "(($ac_try" in
9972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973 *) ac_try_echo=$ac_try;;
9974esac
9975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +00009977 ac_status=$?
9978 grep -v '^ *+' conftest.er1 >conftest.err
9979 rm -f conftest.er1
9980 cat conftest.err >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +00009983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9984 { (case "(($ac_try" in
9985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986 *) ac_try_echo=$ac_try;;
9987esac
9988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009990 ac_status=$?
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); }; } &&
9993 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +00009994 { (case "(($ac_try" in
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9997esac
9998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000010000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; }; then
10003 ac_cv_lib_dl_dlopen=yes
10004else
10005 echo "$as_me: failed program was:" >&5
10006sed 's/^/| /' conftest.$ac_ext >&5
10007
mmentovai8c2a4de2006-09-20 16:20:15 +000010008 ac_cv_lib_dl_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000010009fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010010
10011rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +000010012 conftest$ac_exeext conftest.$ac_ext
10013LIBS=$ac_check_lib_save_LIBS
10014fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010015{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10016echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010017if test $ac_cv_lib_dl_dlopen = yes; then
10018 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10019else
mmentovai8c2a4de2006-09-20 16:20:15 +000010020 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10021echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010022if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
10024else
10025 ac_check_lib_save_LIBS=$LIBS
10026LIBS="-lsvld $LIBS"
10027cat >conftest.$ac_ext <<_ACEOF
10028/* confdefs.h. */
10029_ACEOF
10030cat confdefs.h >>conftest.$ac_ext
10031cat >>conftest.$ac_ext <<_ACEOF
10032/* end confdefs.h. */
10033
mmentovai8c2a4de2006-09-20 16:20:15 +000010034/* Override any GCC internal prototype to avoid an error.
10035 Use char because int might match the return type of a GCC
10036 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000010037#ifdef __cplusplus
10038extern "C"
10039#endif
brynercb91a2f2006-08-25 21:14:45 +000010040char dlopen ();
10041int
10042main ()
10043{
mmentovai8c2a4de2006-09-20 16:20:15 +000010044return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +000010045 ;
10046 return 0;
10047}
10048_ACEOF
10049rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000010050if { (ac_try="$ac_link"
10051case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10054esac
10055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000010057 ac_status=$?
10058 grep -v '^ *+' conftest.er1 >conftest.err
10059 rm -f conftest.er1
10060 cat conftest.err >&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +000010063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10064 { (case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10067esac
10068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000010070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; } &&
10073 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000010074 { (case "(($ac_try" in
10075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076 *) ac_try_echo=$ac_try;;
10077esac
10078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000010080 ac_status=$?
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 ac_cv_lib_svld_dlopen=yes
10084else
10085 echo "$as_me: failed program was:" >&5
10086sed 's/^/| /' conftest.$ac_ext >&5
10087
mmentovai8c2a4de2006-09-20 16:20:15 +000010088 ac_cv_lib_svld_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000010089fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010090
10091rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +000010092 conftest$ac_exeext conftest.$ac_ext
10093LIBS=$ac_check_lib_save_LIBS
10094fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010095{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10096echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010097if test $ac_cv_lib_svld_dlopen = yes; then
10098 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10099else
mmentovai8c2a4de2006-09-20 16:20:15 +000010100 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10101echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010102if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10103 echo $ECHO_N "(cached) $ECHO_C" >&6
10104else
10105 ac_check_lib_save_LIBS=$LIBS
10106LIBS="-ldld $LIBS"
10107cat >conftest.$ac_ext <<_ACEOF
10108/* confdefs.h. */
10109_ACEOF
10110cat confdefs.h >>conftest.$ac_ext
10111cat >>conftest.$ac_ext <<_ACEOF
10112/* end confdefs.h. */
10113
mmentovai8c2a4de2006-09-20 16:20:15 +000010114/* Override any GCC internal prototype to avoid an error.
10115 Use char because int might match the return type of a GCC
10116 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000010117#ifdef __cplusplus
10118extern "C"
10119#endif
brynercb91a2f2006-08-25 21:14:45 +000010120char dld_link ();
10121int
10122main ()
10123{
mmentovai8c2a4de2006-09-20 16:20:15 +000010124return dld_link ();
brynercb91a2f2006-08-25 21:14:45 +000010125 ;
10126 return 0;
10127}
10128_ACEOF
10129rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000010130if { (ac_try="$ac_link"
10131case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10134esac
10135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000010137 ac_status=$?
10138 grep -v '^ *+' conftest.er1 >conftest.err
10139 rm -f conftest.er1
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +000010143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10144 { (case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10147esac
10148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000010150 ac_status=$?
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; } &&
10153 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000010154 { (case "(($ac_try" in
10155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156 *) ac_try_echo=$ac_try;;
10157esac
10158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000010160 ac_status=$?
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; }; then
10163 ac_cv_lib_dld_dld_link=yes
10164else
10165 echo "$as_me: failed program was:" >&5
10166sed 's/^/| /' conftest.$ac_ext >&5
10167
mmentovai8c2a4de2006-09-20 16:20:15 +000010168 ac_cv_lib_dld_dld_link=no
brynercb91a2f2006-08-25 21:14:45 +000010169fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010170
10171rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +000010172 conftest$ac_exeext conftest.$ac_ext
10173LIBS=$ac_check_lib_save_LIBS
10174fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010175{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10176echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010177if test $ac_cv_lib_dld_dld_link = yes; then
10178 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10179fi
10180
10181
10182fi
10183
10184
10185fi
10186
10187
10188fi
10189
10190
10191fi
10192
10193
10194fi
10195
10196 ;;
10197 esac
10198
10199 if test "x$lt_cv_dlopen" != xno; then
10200 enable_dlopen=yes
10201 else
10202 enable_dlopen=no
10203 fi
10204
10205 case $lt_cv_dlopen in
10206 dlopen)
10207 save_CPPFLAGS="$CPPFLAGS"
10208 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10209
10210 save_LDFLAGS="$LDFLAGS"
mmentovai8c2a4de2006-09-20 16:20:15 +000010211 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
brynercb91a2f2006-08-25 21:14:45 +000010212
10213 save_LIBS="$LIBS"
10214 LIBS="$lt_cv_dlopen_libs $LIBS"
10215
mmentovai8c2a4de2006-09-20 16:20:15 +000010216 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10217echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010218if test "${lt_cv_dlopen_self+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10220else
10221 if test "$cross_compiling" = yes; then :
10222 lt_cv_dlopen_self=cross
10223else
10224 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10225 lt_status=$lt_dlunknown
10226 cat > conftest.$ac_ext <<EOF
mmentovaidb3342a2006-12-05 22:52:28 +000010227#line 10227 "configure"
brynercb91a2f2006-08-25 21:14:45 +000010228#include "confdefs.h"
10229
10230#if HAVE_DLFCN_H
10231#include <dlfcn.h>
10232#endif
10233
10234#include <stdio.h>
10235
10236#ifdef RTLD_GLOBAL
10237# define LT_DLGLOBAL RTLD_GLOBAL
10238#else
10239# ifdef DL_GLOBAL
10240# define LT_DLGLOBAL DL_GLOBAL
10241# else
10242# define LT_DLGLOBAL 0
10243# endif
10244#endif
10245
10246/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10247 find out it does not work in some platform. */
10248#ifndef LT_DLLAZY_OR_NOW
10249# ifdef RTLD_LAZY
10250# define LT_DLLAZY_OR_NOW RTLD_LAZY
10251# else
10252# ifdef DL_LAZY
10253# define LT_DLLAZY_OR_NOW DL_LAZY
10254# else
10255# ifdef RTLD_NOW
10256# define LT_DLLAZY_OR_NOW RTLD_NOW
10257# else
10258# ifdef DL_NOW
10259# define LT_DLLAZY_OR_NOW DL_NOW
10260# else
10261# define LT_DLLAZY_OR_NOW 0
10262# endif
10263# endif
10264# endif
10265# endif
10266#endif
10267
10268#ifdef __cplusplus
10269extern "C" void exit (int);
10270#endif
10271
10272void fnord() { int i=42;}
10273int main ()
10274{
10275 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10276 int status = $lt_dlunknown;
10277
10278 if (self)
10279 {
10280 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10281 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10282 /* dlclose (self); */
10283 }
mmentovai8c2a4de2006-09-20 16:20:15 +000010284 else
10285 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +000010286
10287 exit (status);
10288}
10289EOF
10290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10291 (eval $ac_link) 2>&5
10292 ac_status=$?
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000010295 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000010296 lt_status=$?
10297 case x$lt_status in
10298 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10299 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010300 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
brynercb91a2f2006-08-25 21:14:45 +000010301 esac
10302 else :
10303 # compilation failed
10304 lt_cv_dlopen_self=no
10305 fi
10306fi
10307rm -fr conftest*
10308
10309
10310fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010311{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10312echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010313
10314 if test "x$lt_cv_dlopen_self" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000010315 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10316 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10317echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010318if test "${lt_cv_dlopen_self_static+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10320else
10321 if test "$cross_compiling" = yes; then :
10322 lt_cv_dlopen_self_static=cross
10323else
10324 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10325 lt_status=$lt_dlunknown
10326 cat > conftest.$ac_ext <<EOF
mmentovaidb3342a2006-12-05 22:52:28 +000010327#line 10327 "configure"
brynercb91a2f2006-08-25 21:14:45 +000010328#include "confdefs.h"
10329
10330#if HAVE_DLFCN_H
10331#include <dlfcn.h>
10332#endif
10333
10334#include <stdio.h>
10335
10336#ifdef RTLD_GLOBAL
10337# define LT_DLGLOBAL RTLD_GLOBAL
10338#else
10339# ifdef DL_GLOBAL
10340# define LT_DLGLOBAL DL_GLOBAL
10341# else
10342# define LT_DLGLOBAL 0
10343# endif
10344#endif
10345
10346/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10347 find out it does not work in some platform. */
10348#ifndef LT_DLLAZY_OR_NOW
10349# ifdef RTLD_LAZY
10350# define LT_DLLAZY_OR_NOW RTLD_LAZY
10351# else
10352# ifdef DL_LAZY
10353# define LT_DLLAZY_OR_NOW DL_LAZY
10354# else
10355# ifdef RTLD_NOW
10356# define LT_DLLAZY_OR_NOW RTLD_NOW
10357# else
10358# ifdef DL_NOW
10359# define LT_DLLAZY_OR_NOW DL_NOW
10360# else
10361# define LT_DLLAZY_OR_NOW 0
10362# endif
10363# endif
10364# endif
10365# endif
10366#endif
10367
10368#ifdef __cplusplus
10369extern "C" void exit (int);
10370#endif
10371
10372void fnord() { int i=42;}
10373int main ()
10374{
10375 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10376 int status = $lt_dlunknown;
10377
10378 if (self)
10379 {
10380 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10381 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10382 /* dlclose (self); */
10383 }
mmentovai8c2a4de2006-09-20 16:20:15 +000010384 else
10385 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +000010386
10387 exit (status);
10388}
10389EOF
10390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10391 (eval $ac_link) 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000010395 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000010396 lt_status=$?
10397 case x$lt_status in
10398 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10399 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010400 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
brynercb91a2f2006-08-25 21:14:45 +000010401 esac
10402 else :
10403 # compilation failed
10404 lt_cv_dlopen_self_static=no
10405 fi
10406fi
10407rm -fr conftest*
10408
10409
10410fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010411{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10412echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010413 fi
10414
10415 CPPFLAGS="$save_CPPFLAGS"
10416 LDFLAGS="$save_LDFLAGS"
10417 LIBS="$save_LIBS"
10418 ;;
10419 esac
10420
10421 case $lt_cv_dlopen_self in
10422 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10423 *) enable_dlopen_self=unknown ;;
10424 esac
10425
10426 case $lt_cv_dlopen_self_static in
10427 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10428 *) enable_dlopen_self_static=unknown ;;
10429 esac
10430fi
10431
10432
mmentovai8c2a4de2006-09-20 16:20:15 +000010433# Report which library types will actually be built
10434{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10435echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10436{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10437echo "${ECHO_T}$can_build_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010438
mmentovai8c2a4de2006-09-20 16:20:15 +000010439{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10440echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010441test "$can_build_shared" = "no" && enable_shared=no
10442
10443# On AIX, shared libraries and static libraries use the same namespace, and
10444# are all built from PIC.
mmentovai8c2a4de2006-09-20 16:20:15 +000010445case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000010446aix3*)
10447 test "$enable_shared" = yes && enable_static=no
10448 if test -n "$RANLIB"; then
10449 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10450 postinstall_cmds='$RANLIB $lib'
10451 fi
10452 ;;
10453
10454aix4* | aix5*)
10455 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10456 test "$enable_shared" = yes && enable_static=no
10457 fi
brynercb91a2f2006-08-25 21:14:45 +000010458 ;;
10459esac
mmentovai8c2a4de2006-09-20 16:20:15 +000010460{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10461echo "${ECHO_T}$enable_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010462
mmentovai8c2a4de2006-09-20 16:20:15 +000010463{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10464echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010465# Make sure either enable_shared or enable_static is yes.
10466test "$enable_shared" = yes || enable_static=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000010467{ echo "$as_me:$LINENO: result: $enable_static" >&5
10468echo "${ECHO_T}$enable_static" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010469
10470# The else clause should only fire when bootstrapping the
10471# libtool distribution, otherwise you forgot to ship ltmain.sh
10472# with your package, and you will get complaints that there are
10473# no rules to generate ltmain.sh.
10474if test -f "$ltmain"; then
10475 # See if we are running on zsh, and set the options which allow our commands through
10476 # without removal of \ escapes.
10477 if test -n "${ZSH_VERSION+set}" ; then
10478 setopt NO_GLOB_SUBST
10479 fi
10480 # Now quote all the things that may contain metacharacters while being
10481 # careful not to overquote the AC_SUBSTed values. We take copies of the
10482 # variables and quote the copies for generation of the libtool script.
mmentovai8c2a4de2006-09-20 16:20:15 +000010483 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000010484 SED SHELL STRIP \
10485 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10486 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10487 deplibs_check_method reload_flag reload_cmds need_locks \
10488 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10489 lt_cv_sys_global_symbol_to_c_name_address \
10490 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10491 old_postinstall_cmds old_postuninstall_cmds \
10492 compiler \
10493 CC \
10494 LD \
10495 lt_prog_compiler_wl \
10496 lt_prog_compiler_pic \
10497 lt_prog_compiler_static \
10498 lt_prog_compiler_no_builtin_flag \
10499 export_dynamic_flag_spec \
10500 thread_safe_flag_spec \
10501 whole_archive_flag_spec \
10502 enable_shared_with_static_runtimes \
10503 old_archive_cmds \
10504 old_archive_from_new_cmds \
10505 predep_objects \
10506 postdep_objects \
10507 predeps \
10508 postdeps \
10509 compiler_lib_search_path \
10510 archive_cmds \
10511 archive_expsym_cmds \
10512 postinstall_cmds \
10513 postuninstall_cmds \
10514 old_archive_from_expsyms_cmds \
10515 allow_undefined_flag \
10516 no_undefined_flag \
10517 export_symbols_cmds \
10518 hardcode_libdir_flag_spec \
10519 hardcode_libdir_flag_spec_ld \
10520 hardcode_libdir_separator \
10521 hardcode_automatic \
10522 module_cmds \
10523 module_expsym_cmds \
10524 lt_cv_prog_compiler_c_o \
10525 exclude_expsyms \
10526 include_expsyms; do
10527
10528 case $var in
10529 old_archive_cmds | \
10530 old_archive_from_new_cmds | \
10531 archive_cmds | \
10532 archive_expsym_cmds | \
10533 module_cmds | \
10534 module_expsym_cmds | \
10535 old_archive_from_expsyms_cmds | \
10536 export_symbols_cmds | \
10537 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10538 postinstall_cmds | postuninstall_cmds | \
10539 old_postinstall_cmds | old_postuninstall_cmds | \
10540 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10541 # Double-quote double-evaled strings.
10542 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10543 ;;
10544 *)
10545 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10546 ;;
10547 esac
10548 done
10549
10550 case $lt_echo in
10551 *'\$0 --fallback-echo"')
10552 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10553 ;;
10554 esac
10555
10556cfgfile="${ofile}T"
10557 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10558 $rm -f "$cfgfile"
10559 { echo "$as_me:$LINENO: creating $ofile" >&5
10560echo "$as_me: creating $ofile" >&6;}
10561
10562 cat <<__EOF__ >> "$cfgfile"
10563#! $SHELL
10564
10565# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10566# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10567# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10568#
10569# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10570# Free Software Foundation, Inc.
10571#
10572# This file is part of GNU Libtool:
10573# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10574#
10575# This program is free software; you can redistribute it and/or modify
10576# it under the terms of the GNU General Public License as published by
10577# the Free Software Foundation; either version 2 of the License, or
10578# (at your option) any later version.
10579#
10580# This program is distributed in the hope that it will be useful, but
10581# WITHOUT ANY WARRANTY; without even the implied warranty of
10582# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10583# General Public License for more details.
10584#
10585# You should have received a copy of the GNU General Public License
10586# along with this program; if not, write to the Free Software
mmentovai8c2a4de2006-09-20 16:20:15 +000010587# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
brynercb91a2f2006-08-25 21:14:45 +000010588#
10589# As a special exception to the GNU General Public License, if you
10590# distribute this file as part of a program that contains a
10591# configuration script generated by Autoconf, you may include it under
10592# the same distribution terms that you use for the rest of that program.
10593
10594# A sed program that does not truncate output.
10595SED=$lt_SED
10596
10597# Sed that helps us avoid accidentally triggering echo(1) options like -n.
mmentovai8c2a4de2006-09-20 16:20:15 +000010598Xsed="$SED -e 1s/^X//"
brynercb91a2f2006-08-25 21:14:45 +000010599
10600# The HP-UX ksh and POSIX shell print the target directory to stdout
10601# if CDPATH is set.
mmentovai8c2a4de2006-09-20 16:20:15 +000010602(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
brynercb91a2f2006-08-25 21:14:45 +000010603
10604# The names of the tagged configurations supported by this script.
10605available_tags=
10606
10607# ### BEGIN LIBTOOL CONFIG
10608
10609# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10610
10611# Shell to use when invoking shell scripts.
10612SHELL=$lt_SHELL
10613
10614# Whether or not to build shared libraries.
10615build_libtool_libs=$enable_shared
10616
10617# Whether or not to build static libraries.
10618build_old_libs=$enable_static
10619
10620# Whether or not to add -lc for building shared libraries.
10621build_libtool_need_lc=$archive_cmds_need_lc
10622
10623# Whether or not to disallow shared libs when runtime libs are static
10624allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10625
10626# Whether or not to optimize for fast installation.
10627fast_install=$enable_fast_install
10628
10629# The host system.
10630host_alias=$host_alias
10631host=$host
mmentovai8c2a4de2006-09-20 16:20:15 +000010632host_os=$host_os
10633
10634# The build system.
10635build_alias=$build_alias
10636build=$build
10637build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000010638
10639# An echo program that does not interpret backslashes.
10640echo=$lt_echo
10641
10642# The archiver.
10643AR=$lt_AR
10644AR_FLAGS=$lt_AR_FLAGS
10645
10646# A C compiler.
10647LTCC=$lt_LTCC
10648
mmentovai8c2a4de2006-09-20 16:20:15 +000010649# LTCC compiler flags.
10650LTCFLAGS=$lt_LTCFLAGS
10651
brynercb91a2f2006-08-25 21:14:45 +000010652# A language-specific compiler.
10653CC=$lt_compiler
10654
10655# Is the compiler the GNU C compiler?
10656with_gcc=$GCC
10657
10658# An ERE matcher.
10659EGREP=$lt_EGREP
10660
10661# The linker used to build libraries.
10662LD=$lt_LD
10663
10664# Whether we need hard or soft links.
10665LN_S=$lt_LN_S
10666
10667# A BSD-compatible nm program.
10668NM=$lt_NM
10669
10670# A symbol stripping program
10671STRIP=$lt_STRIP
10672
10673# Used to examine libraries when file_magic_cmd begins "file"
10674MAGIC_CMD=$MAGIC_CMD
10675
10676# Used on cygwin: DLL creation program.
10677DLLTOOL="$DLLTOOL"
10678
10679# Used on cygwin: object dumper.
10680OBJDUMP="$OBJDUMP"
10681
10682# Used on cygwin: assembler.
10683AS="$AS"
10684
10685# The name of the directory that contains temporary libtool files.
10686objdir=$objdir
10687
10688# How to create reloadable object files.
10689reload_flag=$lt_reload_flag
10690reload_cmds=$lt_reload_cmds
10691
10692# How to pass a linker flag through the compiler.
10693wl=$lt_lt_prog_compiler_wl
10694
10695# Object file suffix (normally "o").
10696objext="$ac_objext"
10697
10698# Old archive suffix (normally "a").
10699libext="$libext"
10700
10701# Shared library suffix (normally ".so").
10702shrext_cmds='$shrext_cmds'
10703
10704# Executable file suffix (normally "").
10705exeext="$exeext"
10706
10707# Additional compiler flags for building library objects.
10708pic_flag=$lt_lt_prog_compiler_pic
10709pic_mode=$pic_mode
10710
10711# What is the maximum length of a command?
10712max_cmd_len=$lt_cv_sys_max_cmd_len
10713
10714# Does compiler simultaneously support -c and -o options?
10715compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10716
mmentovai8c2a4de2006-09-20 16:20:15 +000010717# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000010718need_locks=$lt_need_locks
10719
10720# Do we need the lib prefix for modules?
10721need_lib_prefix=$need_lib_prefix
10722
10723# Do we need a version for libraries?
10724need_version=$need_version
10725
10726# Whether dlopen is supported.
10727dlopen_support=$enable_dlopen
10728
10729# Whether dlopen of programs is supported.
10730dlopen_self=$enable_dlopen_self
10731
10732# Whether dlopen of statically linked programs is supported.
10733dlopen_self_static=$enable_dlopen_self_static
10734
10735# Compiler flag to prevent dynamic linking.
10736link_static_flag=$lt_lt_prog_compiler_static
10737
10738# Compiler flag to turn off builtin functions.
10739no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10740
10741# Compiler flag to allow reflexive dlopens.
10742export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10743
10744# Compiler flag to generate shared objects directly from archives.
10745whole_archive_flag_spec=$lt_whole_archive_flag_spec
10746
10747# Compiler flag to generate thread-safe objects.
10748thread_safe_flag_spec=$lt_thread_safe_flag_spec
10749
10750# Library versioning type.
10751version_type=$version_type
10752
10753# Format of library name prefix.
10754libname_spec=$lt_libname_spec
10755
10756# List of archive names. First name is the real one, the rest are links.
10757# The last name is the one that the linker finds with -lNAME.
10758library_names_spec=$lt_library_names_spec
10759
10760# The coded name of the library, if different from the real name.
10761soname_spec=$lt_soname_spec
10762
10763# Commands used to build and install an old-style archive.
10764RANLIB=$lt_RANLIB
10765old_archive_cmds=$lt_old_archive_cmds
10766old_postinstall_cmds=$lt_old_postinstall_cmds
10767old_postuninstall_cmds=$lt_old_postuninstall_cmds
10768
10769# Create an old-style archive from a shared archive.
10770old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10771
10772# Create a temporary old-style archive to link instead of a shared archive.
10773old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10774
10775# Commands used to build and install a shared archive.
10776archive_cmds=$lt_archive_cmds
10777archive_expsym_cmds=$lt_archive_expsym_cmds
10778postinstall_cmds=$lt_postinstall_cmds
10779postuninstall_cmds=$lt_postuninstall_cmds
10780
10781# Commands used to build a loadable module (assumed same as above if empty)
10782module_cmds=$lt_module_cmds
10783module_expsym_cmds=$lt_module_expsym_cmds
10784
10785# Commands to strip libraries.
10786old_striplib=$lt_old_striplib
10787striplib=$lt_striplib
10788
10789# Dependencies to place before the objects being linked to create a
10790# shared library.
10791predep_objects=$lt_predep_objects
10792
10793# Dependencies to place after the objects being linked to create a
10794# shared library.
10795postdep_objects=$lt_postdep_objects
10796
10797# Dependencies to place before the objects being linked to create a
10798# shared library.
10799predeps=$lt_predeps
10800
10801# Dependencies to place after the objects being linked to create a
10802# shared library.
10803postdeps=$lt_postdeps
10804
10805# The library search path used internally by the compiler when linking
10806# a shared library.
10807compiler_lib_search_path=$lt_compiler_lib_search_path
10808
10809# Method to check whether dependent libraries are shared objects.
10810deplibs_check_method=$lt_deplibs_check_method
10811
10812# Command to use when deplibs_check_method == file_magic.
10813file_magic_cmd=$lt_file_magic_cmd
10814
10815# Flag that allows shared libraries with undefined symbols to be built.
10816allow_undefined_flag=$lt_allow_undefined_flag
10817
10818# Flag that forces no undefined symbols.
10819no_undefined_flag=$lt_no_undefined_flag
10820
10821# Commands used to finish a libtool library installation in a directory.
10822finish_cmds=$lt_finish_cmds
10823
10824# Same as above, but a single script fragment to be evaled but not shown.
10825finish_eval=$lt_finish_eval
10826
10827# Take the output of nm and produce a listing of raw symbols and C names.
10828global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10829
10830# Transform the output of nm in a proper C declaration
10831global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10832
10833# Transform the output of nm in a C name address pair
10834global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10835
10836# This is the shared library runtime path variable.
10837runpath_var=$runpath_var
10838
10839# This is the shared library path variable.
10840shlibpath_var=$shlibpath_var
10841
10842# Is shlibpath searched before the hard-coded library search path?
10843shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10844
10845# How to hardcode a shared library path into an executable.
10846hardcode_action=$hardcode_action
10847
10848# Whether we should hardcode library paths into libraries.
10849hardcode_into_libs=$hardcode_into_libs
10850
10851# Flag to hardcode \$libdir into a binary during linking.
10852# This must work even if \$libdir does not exist.
10853hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10854
10855# If ld is used when linking, flag to hardcode \$libdir into
10856# a binary during linking. This must work even if \$libdir does
10857# not exist.
10858hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10859
10860# Whether we need a single -rpath flag with a separated argument.
10861hardcode_libdir_separator=$lt_hardcode_libdir_separator
10862
10863# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10864# resulting binary.
10865hardcode_direct=$hardcode_direct
10866
10867# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10868# resulting binary.
10869hardcode_minus_L=$hardcode_minus_L
10870
10871# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10872# the resulting binary.
10873hardcode_shlibpath_var=$hardcode_shlibpath_var
10874
10875# Set to yes if building a shared library automatically hardcodes DIR into the library
10876# and all subsequent libraries and executables linked against it.
10877hardcode_automatic=$hardcode_automatic
10878
10879# Variables whose values should be saved in libtool wrapper scripts and
10880# restored at relink time.
10881variables_saved_for_relink="$variables_saved_for_relink"
10882
10883# Whether libtool must link a program against all its dependency libraries.
10884link_all_deplibs=$link_all_deplibs
10885
10886# Compile-time system search path for libraries
10887sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10888
10889# Run-time system search path for libraries
10890sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10891
10892# Fix the shell variable \$srcfile for the compiler.
10893fix_srcfile_path="$fix_srcfile_path"
10894
10895# Set to yes if exported symbols are required.
10896always_export_symbols=$always_export_symbols
10897
10898# The commands to list exported symbols.
10899export_symbols_cmds=$lt_export_symbols_cmds
10900
10901# The commands to extract the exported symbol list from a shared archive.
10902extract_expsyms_cmds=$lt_extract_expsyms_cmds
10903
10904# Symbols that should not be listed in the preloaded symbols.
10905exclude_expsyms=$lt_exclude_expsyms
10906
10907# Symbols that must always be exported.
10908include_expsyms=$lt_include_expsyms
10909
10910# ### END LIBTOOL CONFIG
10911
10912__EOF__
10913
10914
10915 case $host_os in
10916 aix3*)
10917 cat <<\EOF >> "$cfgfile"
10918
10919# AIX sometimes has problems with the GCC collect2 program. For some
10920# reason, if we set the COLLECT_NAMES environment variable, the problems
10921# vanish in a puff of smoke.
10922if test "X${COLLECT_NAMES+set}" != Xset; then
10923 COLLECT_NAMES=
10924 export COLLECT_NAMES
10925fi
10926EOF
10927 ;;
10928 esac
10929
10930 # We use sed instead of cat because bash on DJGPP gets confused if
10931 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10932 # text mode, it properly converts lines to CR/LF. This bash problem
10933 # is reportedly fixed, but why not run on old versions too?
10934 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10935
10936 mv -f "$cfgfile" "$ofile" || \
10937 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10938 chmod +x "$ofile"
10939
10940else
10941 # If there is no Makefile yet, we rely on a make rule to execute
10942 # `config.status --recheck' to rerun these tests and create the
10943 # libtool script then.
10944 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10945 if test -f "$ltmain_in"; then
10946 test -f Makefile && make "$ltmain"
10947 fi
10948fi
10949
10950
10951ac_ext=c
10952ac_cpp='$CPP $CPPFLAGS'
10953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10955ac_compiler_gnu=$ac_cv_c_compiler_gnu
10956
10957CC="$lt_save_CC"
10958
10959
mmentovai8c2a4de2006-09-20 16:20:15 +000010960# Check whether --with-tags was given.
brynercb91a2f2006-08-25 21:14:45 +000010961if test "${with_tags+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +000010962 withval=$with_tags; tagnames="$withval"
10963fi
10964
brynercb91a2f2006-08-25 21:14:45 +000010965
10966if test -f "$ltmain" && test -n "$tagnames"; then
10967 if test ! -f "${ofile}"; then
10968 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10969echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10970 fi
10971
10972 if test -z "$LTCC"; then
10973 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10974 if test -z "$LTCC"; then
10975 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10976echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10977 else
10978 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10979echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10980 fi
10981 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000010982 if test -z "$LTCFLAGS"; then
10983 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10984 fi
brynercb91a2f2006-08-25 21:14:45 +000010985
10986 # Extract list of available tagged configurations in $ofile.
10987 # Note that this assumes the entire list is on one line.
10988 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10989
10990 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10991 for tagname in $tagnames; do
10992 IFS="$lt_save_ifs"
10993 # Check whether tagname contains only valid characters
10994 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10995 "") ;;
10996 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10997echo "$as_me: error: invalid tag name: $tagname" >&2;}
10998 { (exit 1); exit 1; }; }
10999 ;;
11000 esac
11001
11002 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11003 then
11004 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11005echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11006 { (exit 1); exit 1; }; }
11007 fi
11008
11009 # Update the list of available tags.
11010 if test -n "$tagname"; then
11011 echo appending configuration tag \"$tagname\" to $ofile
11012
11013 case $tagname in
11014 CXX)
mmentovai8c2a4de2006-09-20 16:20:15 +000011015 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11016 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11017 (test "X$CXX" != "Xg++"))) ; then
11018 ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +000011019ac_cpp='$CXXCPP $CPPFLAGS'
11020ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11021ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11022ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11023
11024
11025
11026
11027archive_cmds_need_lc_CXX=no
11028allow_undefined_flag_CXX=
11029always_export_symbols_CXX=no
11030archive_expsym_cmds_CXX=
11031export_dynamic_flag_spec_CXX=
11032hardcode_direct_CXX=no
11033hardcode_libdir_flag_spec_CXX=
11034hardcode_libdir_flag_spec_ld_CXX=
11035hardcode_libdir_separator_CXX=
11036hardcode_minus_L_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011037hardcode_shlibpath_var_CXX=unsupported
brynercb91a2f2006-08-25 21:14:45 +000011038hardcode_automatic_CXX=no
11039module_cmds_CXX=
11040module_expsym_cmds_CXX=
11041link_all_deplibs_CXX=unknown
11042old_archive_cmds_CXX=$old_archive_cmds
11043no_undefined_flag_CXX=
11044whole_archive_flag_spec_CXX=
11045enable_shared_with_static_runtimes_CXX=no
11046
11047# Dependencies to place before and after the object being linked:
11048predep_objects_CXX=
11049postdep_objects_CXX=
11050predeps_CXX=
11051postdeps_CXX=
11052compiler_lib_search_path_CXX=
11053
11054# Source file extension for C++ test sources.
mmentovai8c2a4de2006-09-20 16:20:15 +000011055ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +000011056
11057# Object file extension for compiled C++ test sources.
11058objext=o
11059objext_CXX=$objext
11060
11061# Code to be used in simple compile tests
11062lt_simple_compile_test_code="int some_variable = 0;\n"
11063
11064# Code to be used in simple link tests
mmentovai8c2a4de2006-09-20 16:20:15 +000011065lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
brynercb91a2f2006-08-25 21:14:45 +000011066
11067# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11068
11069# If no C compiler was specified, use CC.
11070LTCC=${LTCC-"$CC"}
11071
mmentovai8c2a4de2006-09-20 16:20:15 +000011072# If no C compiler flags were specified, use CFLAGS.
11073LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11074
brynercb91a2f2006-08-25 21:14:45 +000011075# Allow CC to be a program name with arguments.
11076compiler=$CC
11077
11078
mmentovai8c2a4de2006-09-20 16:20:15 +000011079# save warnings/boilerplate of simple test code
11080ac_outfile=conftest.$ac_objext
11081printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11082eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11083_lt_compiler_boilerplate=`cat conftest.err`
11084$rm conftest*
11085
11086ac_outfile=conftest.$ac_objext
11087printf "$lt_simple_link_test_code" >conftest.$ac_ext
11088eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11089_lt_linker_boilerplate=`cat conftest.err`
11090$rm conftest*
11091
11092
brynercb91a2f2006-08-25 21:14:45 +000011093# Allow CC to be a program name with arguments.
11094lt_save_CC=$CC
11095lt_save_LD=$LD
11096lt_save_GCC=$GCC
11097GCC=$GXX
11098lt_save_with_gnu_ld=$with_gnu_ld
11099lt_save_path_LD=$lt_cv_path_LD
11100if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11101 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11102else
mmentovai8c2a4de2006-09-20 16:20:15 +000011103 $as_unset lt_cv_prog_gnu_ld
brynercb91a2f2006-08-25 21:14:45 +000011104fi
11105if test -n "${lt_cv_path_LDCXX+set}"; then
11106 lt_cv_path_LD=$lt_cv_path_LDCXX
11107else
mmentovai8c2a4de2006-09-20 16:20:15 +000011108 $as_unset lt_cv_path_LD
brynercb91a2f2006-08-25 21:14:45 +000011109fi
11110test -z "${LDCXX+set}" || LD=$LDCXX
11111CC=${CXX-"c++"}
11112compiler=$CC
11113compiler_CXX=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +000011114for cc_temp in $compiler""; do
11115 case $cc_temp in
11116 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11117 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11118 \-*) ;;
11119 *) break;;
11120 esac
11121done
11122cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11123
brynercb91a2f2006-08-25 21:14:45 +000011124
11125# We don't want -fno-exception wen compiling C++ code, so set the
11126# no_builtin_flag separately
11127if test "$GXX" = yes; then
11128 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11129else
11130 lt_prog_compiler_no_builtin_flag_CXX=
11131fi
11132
11133if test "$GXX" = yes; then
11134 # Set up default GNU C++ configuration
11135
11136
mmentovai8c2a4de2006-09-20 16:20:15 +000011137# Check whether --with-gnu-ld was given.
brynercb91a2f2006-08-25 21:14:45 +000011138if test "${with_gnu_ld+set}" = set; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011139 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
brynercb91a2f2006-08-25 21:14:45 +000011140else
11141 with_gnu_ld=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011142fi
11143
brynercb91a2f2006-08-25 21:14:45 +000011144ac_prog=ld
11145if test "$GCC" = yes; then
11146 # Check if gcc -print-prog-name=ld gives a path.
mmentovai8c2a4de2006-09-20 16:20:15 +000011147 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11148echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011149 case $host in
11150 *-*-mingw*)
11151 # gcc leaves a trailing carriage return which upsets mingw
11152 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11153 *)
11154 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11155 esac
11156 case $ac_prog in
11157 # Accept absolute paths.
11158 [\\/]* | ?:[\\/]*)
11159 re_direlt='/[^/][^/]*/\.\./'
11160 # Canonicalize the pathname of ld
11161 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11162 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11163 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11164 done
11165 test -z "$LD" && LD="$ac_prog"
11166 ;;
11167 "")
11168 # If it fails, then pretend we aren't using GCC.
11169 ac_prog=ld
11170 ;;
11171 *)
11172 # If it is relative, then search for the first ld in PATH.
11173 with_gnu_ld=unknown
11174 ;;
11175 esac
11176elif test "$with_gnu_ld" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011177 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11178echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011179else
mmentovai8c2a4de2006-09-20 16:20:15 +000011180 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11181echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011182fi
11183if test "${lt_cv_path_LD+set}" = set; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11185else
11186 if test -z "$LD"; then
11187 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11188 for ac_dir in $PATH; do
11189 IFS="$lt_save_ifs"
11190 test -z "$ac_dir" && ac_dir=.
11191 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11192 lt_cv_path_LD="$ac_dir/$ac_prog"
11193 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai8c2a4de2006-09-20 16:20:15 +000011194 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +000011195 # Break only if it was the GNU/non-GNU ld that we prefer.
11196 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11197 *GNU* | *'with BFD'*)
11198 test "$with_gnu_ld" != no && break
11199 ;;
11200 *)
11201 test "$with_gnu_ld" != yes && break
11202 ;;
11203 esac
11204 fi
11205 done
11206 IFS="$lt_save_ifs"
11207else
11208 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11209fi
11210fi
11211
11212LD="$lt_cv_path_LD"
11213if test -n "$LD"; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011214 { echo "$as_me:$LINENO: result: $LD" >&5
11215echo "${ECHO_T}$LD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011216else
mmentovai8c2a4de2006-09-20 16:20:15 +000011217 { echo "$as_me:$LINENO: result: no" >&5
11218echo "${ECHO_T}no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011219fi
11220test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11221echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11222 { (exit 1); exit 1; }; }
mmentovai8c2a4de2006-09-20 16:20:15 +000011223{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11224echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011225if test "${lt_cv_prog_gnu_ld+set}" = set; then
11226 echo $ECHO_N "(cached) $ECHO_C" >&6
11227else
mmentovai8c2a4de2006-09-20 16:20:15 +000011228 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +000011229case `$LD -v 2>&1 </dev/null` in
11230*GNU* | *'with BFD'*)
11231 lt_cv_prog_gnu_ld=yes
11232 ;;
11233*)
11234 lt_cv_prog_gnu_ld=no
11235 ;;
11236esac
11237fi
mmentovai8c2a4de2006-09-20 16:20:15 +000011238{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11239echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011240with_gnu_ld=$lt_cv_prog_gnu_ld
11241
11242
11243
11244 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11245 # archiving commands below assume that GNU ld is being used.
11246 if test "$with_gnu_ld" = yes; then
11247 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11248 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'
11249
11250 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11251 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11252
11253 # If archive_cmds runs LD, not CC, wlarc should be empty
11254 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11255 # investigate it a little bit more. (MM)
11256 wlarc='${wl}'
11257
11258 # ancient GNU ld didn't support --whole-archive et. al.
11259 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11260 grep 'no-whole-archive' > /dev/null; then
11261 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11262 else
11263 whole_archive_flag_spec_CXX=
11264 fi
11265 else
11266 with_gnu_ld=no
11267 wlarc=
11268
11269 # A generic and very simple default shared library creation
11270 # command for GNU C++ for the case where it uses the native
11271 # linker, instead of GNU ld. If possible, this setting should
11272 # overridden to take advantage of the native linker features on
11273 # the platform it is being used on.
11274 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11275 fi
11276
11277 # Commands to make compiler produce verbose output that lists
11278 # what "hidden" libraries, object files and flags are used when
11279 # linking a shared library.
11280 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11281
11282else
11283 GXX=no
11284 with_gnu_ld=no
11285 wlarc=
11286fi
11287
11288# PORTME: fill in a description of your system's C++ link characteristics
mmentovai8c2a4de2006-09-20 16:20:15 +000011289{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11290echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011291ld_shlibs_CXX=yes
11292case $host_os in
11293 aix3*)
11294 # FIXME: insert proper C++ library support
11295 ld_shlibs_CXX=no
11296 ;;
11297 aix4* | aix5*)
11298 if test "$host_cpu" = ia64; then
11299 # On IA64, the linker does run time linking by default, so we don't
11300 # have to do anything special.
11301 aix_use_runtimelinking=no
11302 exp_sym_flag='-Bexport'
11303 no_entry_flag=""
11304 else
11305 aix_use_runtimelinking=no
11306
11307 # Test if we are trying to use run time linking or normal
11308 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11309 # need to do runtime linking.
11310 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11311 for ld_flag in $LDFLAGS; do
11312 case $ld_flag in
11313 *-brtl*)
11314 aix_use_runtimelinking=yes
11315 break
11316 ;;
11317 esac
11318 done
mmentovai8c2a4de2006-09-20 16:20:15 +000011319 ;;
brynercb91a2f2006-08-25 21:14:45 +000011320 esac
11321
11322 exp_sym_flag='-bexport'
11323 no_entry_flag='-bnoentry'
11324 fi
11325
11326 # When large executables or shared objects are built, AIX ld can
11327 # have problems creating the table of contents. If linking a library
11328 # or program results in "error TOC overflow" add -mminimal-toc to
11329 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11330 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11331
11332 archive_cmds_CXX=''
11333 hardcode_direct_CXX=yes
11334 hardcode_libdir_separator_CXX=':'
11335 link_all_deplibs_CXX=yes
11336
11337 if test "$GXX" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011338 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +000011339 # We only want to do this on AIX 4.2 and lower, the check
11340 # below for broken collect2 doesn't work under 4.3+
11341 collect2name=`${CC} -print-prog-name=collect2`
11342 if test -f "$collect2name" && \
11343 strings "$collect2name" | grep resolve_lib_name >/dev/null
11344 then
11345 # We have reworked collect2
11346 hardcode_direct_CXX=yes
11347 else
11348 # We have old collect2
11349 hardcode_direct_CXX=unsupported
11350 # It fails to find uninstalled libraries when the uninstalled
11351 # path is not listed in the libpath. Setting hardcode_minus_L
11352 # to unsupported forces relinking
11353 hardcode_minus_L_CXX=yes
11354 hardcode_libdir_flag_spec_CXX='-L$libdir'
11355 hardcode_libdir_separator_CXX=
11356 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000011357 ;;
brynercb91a2f2006-08-25 21:14:45 +000011358 esac
11359 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +000011360 if test "$aix_use_runtimelinking" = yes; then
11361 shared_flag="$shared_flag "'${wl}-G'
11362 fi
brynercb91a2f2006-08-25 21:14:45 +000011363 else
11364 # not using gcc
11365 if test "$host_cpu" = ia64; then
11366 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11367 # chokes on -Wl,-G. The following line is correct:
11368 shared_flag='-G'
11369 else
11370 if test "$aix_use_runtimelinking" = yes; then
11371 shared_flag='${wl}-G'
11372 else
11373 shared_flag='${wl}-bM:SRE'
11374 fi
11375 fi
11376 fi
11377
11378 # It seems that -bexpall does not export symbols beginning with
11379 # underscore (_), so it is better to generate a list of symbols to export.
11380 always_export_symbols_CXX=yes
11381 if test "$aix_use_runtimelinking" = yes; then
11382 # Warning - without using the other runtime loading flags (-brtl),
11383 # -berok will link without error, but may produce a broken library.
11384 allow_undefined_flag_CXX='-berok'
11385 # Determine the default libpath from the value encoded in an empty executable.
11386 cat >conftest.$ac_ext <<_ACEOF
11387/* confdefs.h. */
11388_ACEOF
11389cat confdefs.h >>conftest.$ac_ext
11390cat >>conftest.$ac_ext <<_ACEOF
11391/* end confdefs.h. */
11392
11393int
11394main ()
11395{
11396
11397 ;
11398 return 0;
11399}
11400_ACEOF
11401rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000011402if { (ac_try="$ac_link"
11403case "(($ac_try" in
11404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405 *) ac_try_echo=$ac_try;;
11406esac
11407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11408 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000011409 ac_status=$?
11410 grep -v '^ *+' conftest.er1 >conftest.err
11411 rm -f conftest.er1
11412 cat conftest.err >&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +000011415 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11416 { (case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11419esac
11420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000011422 ac_status=$?
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; } &&
11425 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000011426 { (case "(($ac_try" in
11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11429esac
11430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000011432 ac_status=$?
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
11435
11436aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11437}'`
11438# Check for a 64-bit object if we didn't find anything.
11439if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11440}'`; fi
11441else
11442 echo "$as_me: failed program was:" >&5
11443sed 's/^/| /' conftest.$ac_ext >&5
11444
mmentovai8c2a4de2006-09-20 16:20:15 +000011445
brynercb91a2f2006-08-25 21:14:45 +000011446fi
mmentovai8c2a4de2006-09-20 16:20:15 +000011447
11448rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +000011449 conftest$ac_exeext conftest.$ac_ext
11450if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11451
11452 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11453
mmentovai8c2a4de2006-09-20 16:20:15 +000011454 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
brynercb91a2f2006-08-25 21:14:45 +000011455 else
11456 if test "$host_cpu" = ia64; then
11457 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11458 allow_undefined_flag_CXX="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +000011459 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"
brynercb91a2f2006-08-25 21:14:45 +000011460 else
11461 # Determine the default libpath from the value encoded in an empty executable.
11462 cat >conftest.$ac_ext <<_ACEOF
11463/* confdefs.h. */
11464_ACEOF
11465cat confdefs.h >>conftest.$ac_ext
11466cat >>conftest.$ac_ext <<_ACEOF
11467/* end confdefs.h. */
11468
11469int
11470main ()
11471{
11472
11473 ;
11474 return 0;
11475}
11476_ACEOF
11477rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000011478if { (ac_try="$ac_link"
11479case "(($ac_try" in
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11482esac
11483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000011485 ac_status=$?
11486 grep -v '^ *+' conftest.er1 >conftest.err
11487 rm -f conftest.er1
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +000011491 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11492 { (case "(($ac_try" in
11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11495esac
11496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000011498 ac_status=$?
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; } &&
11501 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000011502 { (case "(($ac_try" in
11503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504 *) ac_try_echo=$ac_try;;
11505esac
11506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000011508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511
11512aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11513}'`
11514# Check for a 64-bit object if we didn't find anything.
11515if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11516}'`; fi
11517else
11518 echo "$as_me: failed program was:" >&5
11519sed 's/^/| /' conftest.$ac_ext >&5
11520
mmentovai8c2a4de2006-09-20 16:20:15 +000011521
brynercb91a2f2006-08-25 21:14:45 +000011522fi
mmentovai8c2a4de2006-09-20 16:20:15 +000011523
11524rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +000011525 conftest$ac_exeext conftest.$ac_ext
11526if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11527
11528 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11529 # Warning - without using the other run time loading flags,
11530 # -berok will link without error, but may produce a broken library.
11531 no_undefined_flag_CXX=' ${wl}-bernotok'
11532 allow_undefined_flag_CXX=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +000011533 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +000011534 whole_archive_flag_spec_CXX='$convenience'
brynercb91a2f2006-08-25 21:14:45 +000011535 archive_cmds_need_lc_CXX=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000011536 # This is similar to how AIX traditionally builds its shared libraries.
11537 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'
brynercb91a2f2006-08-25 21:14:45 +000011538 fi
11539 fi
11540 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011541
11542 beos*)
11543 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11544 allow_undefined_flag_CXX=unsupported
11545 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11546 # support --undefined. This deserves some investigation. FIXME
11547 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11548 else
11549 ld_shlibs_CXX=no
11550 fi
11551 ;;
11552
brynercb91a2f2006-08-25 21:14:45 +000011553 chorus*)
11554 case $cc_basename in
11555 *)
11556 # FIXME: insert proper C++ library support
11557 ld_shlibs_CXX=no
11558 ;;
11559 esac
11560 ;;
11561
11562 cygwin* | mingw* | pw32*)
11563 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11564 # as there is no search path for DLLs.
11565 hardcode_libdir_flag_spec_CXX='-L$libdir'
11566 allow_undefined_flag_CXX=unsupported
11567 always_export_symbols_CXX=no
11568 enable_shared_with_static_runtimes_CXX=yes
11569
11570 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011571 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'
brynercb91a2f2006-08-25 21:14:45 +000011572 # If the export-symbols file already is a .def file (1st line
11573 # is EXPORTS), use it as is; otherwise, prepend...
11574 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11575 cp $export_symbols $output_objdir/$soname.def;
11576 else
11577 echo EXPORTS > $output_objdir/$soname.def;
11578 cat $export_symbols >> $output_objdir/$soname.def;
11579 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +000011580 $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'
brynercb91a2f2006-08-25 21:14:45 +000011581 else
11582 ld_shlibs_CXX=no
11583 fi
11584 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011585 darwin* | rhapsody*)
11586 case $host_os in
11587 rhapsody* | darwin1.[012])
11588 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11589 ;;
11590 *) # Darwin 1.3 on
11591 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11592 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11593 else
11594 case ${MACOSX_DEPLOYMENT_TARGET} in
11595 10.[012])
11596 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11597 ;;
11598 10.*)
11599 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11600 ;;
11601 esac
11602 fi
11603 ;;
brynerd5e66382006-09-08 02:35:53 +000011604 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000011605 archive_cmds_need_lc_CXX=no
11606 hardcode_direct_CXX=no
11607 hardcode_automatic_CXX=yes
11608 hardcode_shlibpath_var_CXX=unsupported
11609 whole_archive_flag_spec_CXX=''
11610 link_all_deplibs_CXX=yes
brynerd5e66382006-09-08 02:35:53 +000011611
mmentovai8c2a4de2006-09-20 16:20:15 +000011612 if test "$GXX" = yes ; then
11613 lt_int_apple_cc_single_mod=no
11614 output_verbose_link_cmd='echo'
11615 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11616 lt_int_apple_cc_single_mod=yes
11617 fi
11618 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11619 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11620 else
11621 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'
11622 fi
11623 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11624 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11625 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11626 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11627 else
11628 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11629 fi
11630 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11631 else
11632 case $cc_basename in
11633 xlc*)
11634 output_verbose_link_cmd='echo'
11635 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11636 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11637 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11638 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11639 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11640 ;;
11641 *)
11642 ld_shlibs_CXX=no
11643 ;;
11644 esac
11645 fi
11646 ;;
brynercb91a2f2006-08-25 21:14:45 +000011647
11648 dgux*)
11649 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011650 ec++*)
brynercb91a2f2006-08-25 21:14:45 +000011651 # FIXME: insert proper C++ library support
11652 ld_shlibs_CXX=no
11653 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011654 ghcx*)
brynercb91a2f2006-08-25 21:14:45 +000011655 # Green Hills C++ Compiler
11656 # FIXME: insert proper C++ library support
11657 ld_shlibs_CXX=no
11658 ;;
11659 *)
11660 # FIXME: insert proper C++ library support
11661 ld_shlibs_CXX=no
11662 ;;
11663 esac
11664 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011665 freebsd[12]*)
brynercb91a2f2006-08-25 21:14:45 +000011666 # C++ shared libraries reported to be fairly broken before switch to ELF
11667 ld_shlibs_CXX=no
11668 ;;
11669 freebsd-elf*)
11670 archive_cmds_need_lc_CXX=no
11671 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011672 freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000011673 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11674 # conventions
11675 ld_shlibs_CXX=yes
11676 ;;
11677 gnu*)
11678 ;;
11679 hpux9*)
11680 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11681 hardcode_libdir_separator_CXX=:
11682 export_dynamic_flag_spec_CXX='${wl}-E'
11683 hardcode_direct_CXX=yes
11684 hardcode_minus_L_CXX=yes # Not in the search PATH,
11685 # but as the default
11686 # location of the library.
11687
11688 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011689 CC*)
brynercb91a2f2006-08-25 21:14:45 +000011690 # FIXME: insert proper C++ library support
11691 ld_shlibs_CXX=no
11692 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011693 aCC*)
brynercb91a2f2006-08-25 21:14:45 +000011694 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'
11695 # Commands to make compiler produce verbose output that lists
11696 # what "hidden" libraries, object files and flags are used when
11697 # linking a shared library.
11698 #
11699 # There doesn't appear to be a way to prevent this compiler from
11700 # explicitly linking system object files so we need to strip them
11701 # from the output so that they don't get included in the library
11702 # dependencies.
mmentovai8c2a4de2006-09-20 16:20:15 +000011703 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
brynercb91a2f2006-08-25 21:14:45 +000011704 ;;
11705 *)
11706 if test "$GXX" = yes; then
11707 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'
11708 else
11709 # FIXME: insert proper C++ library support
11710 ld_shlibs_CXX=no
11711 fi
11712 ;;
11713 esac
11714 ;;
11715 hpux10*|hpux11*)
11716 if test $with_gnu_ld = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011717 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11718 hardcode_libdir_separator_CXX=:
11719
11720 case $host_cpu in
11721 hppa*64*|ia64*)
brynercb91a2f2006-08-25 21:14:45 +000011722 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
brynercb91a2f2006-08-25 21:14:45 +000011723 ;;
11724 *)
brynercb91a2f2006-08-25 21:14:45 +000011725 export_dynamic_flag_spec_CXX='${wl}-E'
11726 ;;
11727 esac
11728 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000011729 case $host_cpu in
11730 hppa*64*|ia64*)
brynercb91a2f2006-08-25 21:14:45 +000011731 hardcode_direct_CXX=no
11732 hardcode_shlibpath_var_CXX=no
11733 ;;
brynercb91a2f2006-08-25 21:14:45 +000011734 *)
11735 hardcode_direct_CXX=yes
11736 hardcode_minus_L_CXX=yes # Not in the search PATH,
11737 # but as the default
11738 # location of the library.
11739 ;;
11740 esac
11741
11742 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011743 CC*)
brynercb91a2f2006-08-25 21:14:45 +000011744 # FIXME: insert proper C++ library support
11745 ld_shlibs_CXX=no
11746 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011747 aCC*)
11748 case $host_cpu in
11749 hppa*64*)
11750 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11751 ;;
11752 ia64*)
11753 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000011754 ;;
11755 *)
11756 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11757 ;;
11758 esac
11759 # Commands to make compiler produce verbose output that lists
11760 # what "hidden" libraries, object files and flags are used when
11761 # linking a shared library.
11762 #
11763 # There doesn't appear to be a way to prevent this compiler from
11764 # explicitly linking system object files so we need to strip them
11765 # from the output so that they don't get included in the library
11766 # dependencies.
11767 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11768 ;;
11769 *)
11770 if test "$GXX" = yes; then
11771 if test $with_gnu_ld = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011772 case $host_cpu in
11773 hppa*64*)
11774 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11775 ;;
11776 ia64*)
11777 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000011778 ;;
11779 *)
11780 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'
11781 ;;
11782 esac
11783 fi
11784 else
11785 # FIXME: insert proper C++ library support
11786 ld_shlibs_CXX=no
11787 fi
11788 ;;
11789 esac
11790 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011791 interix3*)
11792 hardcode_direct_CXX=no
11793 hardcode_shlibpath_var_CXX=no
11794 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11795 export_dynamic_flag_spec_CXX='${wl}-E'
11796 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11797 # Instead, shared libraries are loaded at an image base (0x10000000 by
11798 # default) and relocated if they conflict, which is a slow very memory
11799 # consuming and fragmenting process. To avoid this, we pick a random,
11800 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11801 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11802 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'
11803 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'
11804 ;;
brynercb91a2f2006-08-25 21:14:45 +000011805 irix5* | irix6*)
11806 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011807 CC*)
brynercb91a2f2006-08-25 21:14:45 +000011808 # SGI C++
mmentovai8c2a4de2006-09-20 16:20:15 +000011809 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
brynercb91a2f2006-08-25 21:14:45 +000011810
11811 # Archives containing C++ object files must be created using
11812 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11813 # necessary to make sure instantiated templates are included
11814 # in the archive.
11815 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11816 ;;
11817 *)
11818 if test "$GXX" = yes; then
11819 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011820 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
brynercb91a2f2006-08-25 21:14:45 +000011821 else
11822 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11823 fi
11824 fi
11825 link_all_deplibs_CXX=yes
11826 ;;
11827 esac
11828 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11829 hardcode_libdir_separator_CXX=:
11830 ;;
11831 linux*)
11832 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011833 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000011834 # Kuck and Associates, Inc. (KAI) C++ Compiler
11835
11836 # KCC will only create a shared library if the output file
11837 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11838 # to its proper name (with version) after linking.
11839 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'
11840 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'
11841 # Commands to make compiler produce verbose output that lists
11842 # what "hidden" libraries, object files and flags are used when
11843 # linking a shared library.
11844 #
11845 # There doesn't appear to be a way to prevent this compiler from
11846 # explicitly linking system object files so we need to strip them
11847 # from the output so that they don't get included in the library
11848 # dependencies.
11849 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11850
11851 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11852 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11853
11854 # Archives containing C++ object files must be created using
11855 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11856 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11857 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011858 icpc*)
brynercb91a2f2006-08-25 21:14:45 +000011859 # Intel C++
11860 with_gnu_ld=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000011861 # version 8.0 and above of icpc choke on multiply defined symbols
11862 # if we add $predep_objects and $postdep_objects, however 7.1 and
11863 # earlier do not add the objects themselves.
11864 case `$CC -V 2>&1` in
11865 *"Version 7."*)
11866 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11867 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'
11868 ;;
11869 *) # Version 8.0 or newer
11870 tmp_idyn=
11871 case $host_cpu in
11872 ia64*) tmp_idyn=' -i_dynamic';;
11873 esac
11874 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11875 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'
11876 ;;
11877 esac
brynercb91a2f2006-08-25 21:14:45 +000011878 archive_cmds_need_lc_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011879 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11880 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11881 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11882 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011883 pgCC*)
11884 # Portland Group C++ compiler
11885 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11886 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'
11887
11888 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11889 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11890 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'
11891 ;;
11892 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000011893 # Compaq C++
11894 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11895 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'
11896
11897 runpath_var=LD_RUN_PATH
11898 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11899 hardcode_libdir_separator_CXX=:
11900
11901 # Commands to make compiler produce verbose output that lists
11902 # what "hidden" libraries, object files and flags are used when
11903 # linking a shared library.
11904 #
11905 # There doesn't appear to be a way to prevent this compiler from
11906 # explicitly linking system object files so we need to strip them
11907 # from the output so that they don't get included in the library
11908 # dependencies.
11909 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11910 ;;
11911 esac
11912 ;;
11913 lynxos*)
11914 # FIXME: insert proper C++ library support
11915 ld_shlibs_CXX=no
11916 ;;
11917 m88k*)
11918 # FIXME: insert proper C++ library support
11919 ld_shlibs_CXX=no
11920 ;;
11921 mvs*)
11922 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011923 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000011924 # FIXME: insert proper C++ library support
11925 ld_shlibs_CXX=no
11926 ;;
11927 *)
11928 # FIXME: insert proper C++ library support
11929 ld_shlibs_CXX=no
11930 ;;
11931 esac
11932 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011933 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000011934 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11935 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11936 wlarc=
11937 hardcode_libdir_flag_spec_CXX='-R$libdir'
11938 hardcode_direct_CXX=yes
11939 hardcode_shlibpath_var_CXX=no
11940 fi
11941 # Workaround some broken pre-1.5 toolchains
11942 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11943 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011944 openbsd2*)
11945 # C++ shared libraries are fairly broken
11946 ld_shlibs_CXX=no
11947 ;;
11948 openbsd*)
11949 hardcode_direct_CXX=yes
11950 hardcode_shlibpath_var_CXX=no
11951 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11952 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11953 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11954 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11955 export_dynamic_flag_spec_CXX='${wl}-E'
11956 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11957 fi
11958 output_verbose_link_cmd='echo'
11959 ;;
brynercb91a2f2006-08-25 21:14:45 +000011960 osf3*)
11961 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000011962 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000011963 # Kuck and Associates, Inc. (KAI) C++ Compiler
11964
11965 # KCC will only create a shared library if the output file
11966 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11967 # to its proper name (with version) after linking.
11968 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'
11969
11970 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11971 hardcode_libdir_separator_CXX=:
11972
11973 # Archives containing C++ object files must be created using
11974 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11975 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11976
11977 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011978 RCC*)
brynercb91a2f2006-08-25 21:14:45 +000011979 # Rational C++ 2.4.1
11980 # FIXME: insert proper C++ library support
11981 ld_shlibs_CXX=no
11982 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011983 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000011984 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
mmentovai8c2a4de2006-09-20 16:20:15 +000011985 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
brynercb91a2f2006-08-25 21:14:45 +000011986
11987 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11988 hardcode_libdir_separator_CXX=:
11989
11990 # Commands to make compiler produce verbose output that lists
11991 # what "hidden" libraries, object files and flags are used when
11992 # linking a shared library.
11993 #
11994 # There doesn't appear to be a way to prevent this compiler from
11995 # explicitly linking system object files so we need to strip them
11996 # from the output so that they don't get included in the library
11997 # dependencies.
11998 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11999 ;;
12000 *)
12001 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12002 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
mmentovai8c2a4de2006-09-20 16:20:15 +000012003 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
brynercb91a2f2006-08-25 21:14:45 +000012004
12005 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12006 hardcode_libdir_separator_CXX=:
12007
12008 # Commands to make compiler produce verbose output that lists
12009 # what "hidden" libraries, object files and flags are used when
12010 # linking a shared library.
12011 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12012
12013 else
12014 # FIXME: insert proper C++ library support
12015 ld_shlibs_CXX=no
12016 fi
12017 ;;
12018 esac
12019 ;;
12020 osf4* | osf5*)
12021 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012022 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000012023 # Kuck and Associates, Inc. (KAI) C++ Compiler
12024
12025 # KCC will only create a shared library if the output file
12026 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12027 # to its proper name (with version) after linking.
12028 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'
12029
12030 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12031 hardcode_libdir_separator_CXX=:
12032
12033 # Archives containing C++ object files must be created using
12034 # the KAI C++ compiler.
12035 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12036 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012037 RCC*)
brynercb91a2f2006-08-25 21:14:45 +000012038 # Rational C++ 2.4.1
12039 # FIXME: insert proper C++ library support
12040 ld_shlibs_CXX=no
12041 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012042 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000012043 allow_undefined_flag_CXX=' -expect_unresolved \*'
mmentovai8c2a4de2006-09-20 16:20:15 +000012044 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
brynercb91a2f2006-08-25 21:14:45 +000012045 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12046 echo "-hidden">> $lib.exp~
mmentovai8c2a4de2006-09-20 16:20:15 +000012047 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
brynercb91a2f2006-08-25 21:14:45 +000012048 $rm $lib.exp'
12049
12050 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12051 hardcode_libdir_separator_CXX=:
12052
12053 # Commands to make compiler produce verbose output that lists
12054 # what "hidden" libraries, object files and flags are used when
12055 # linking a shared library.
12056 #
12057 # There doesn't appear to be a way to prevent this compiler from
12058 # explicitly linking system object files so we need to strip them
12059 # from the output so that they don't get included in the library
12060 # dependencies.
12061 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12062 ;;
12063 *)
12064 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12065 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
mmentovai8c2a4de2006-09-20 16:20:15 +000012066 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
brynercb91a2f2006-08-25 21:14:45 +000012067
12068 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12069 hardcode_libdir_separator_CXX=:
12070
12071 # Commands to make compiler produce verbose output that lists
12072 # what "hidden" libraries, object files and flags are used when
12073 # linking a shared library.
12074 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12075
12076 else
12077 # FIXME: insert proper C++ library support
12078 ld_shlibs_CXX=no
12079 fi
12080 ;;
12081 esac
12082 ;;
12083 psos*)
12084 # FIXME: insert proper C++ library support
12085 ld_shlibs_CXX=no
12086 ;;
brynercb91a2f2006-08-25 21:14:45 +000012087 sunos4*)
12088 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012089 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012090 # Sun C++ 4.x
12091 # FIXME: insert proper C++ library support
12092 ld_shlibs_CXX=no
12093 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012094 lcc*)
brynercb91a2f2006-08-25 21:14:45 +000012095 # Lucid
12096 # FIXME: insert proper C++ library support
12097 ld_shlibs_CXX=no
12098 ;;
12099 *)
12100 # FIXME: insert proper C++ library support
12101 ld_shlibs_CXX=no
12102 ;;
12103 esac
12104 ;;
12105 solaris*)
12106 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012107 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012108 # Sun C++ 4.2, 5.x and Centerline C++
mmentovai8c2a4de2006-09-20 16:20:15 +000012109 archive_cmds_need_lc_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000012110 no_undefined_flag_CXX=' -zdefs'
mmentovai8c2a4de2006-09-20 16:20:15 +000012111 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000012112 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
mmentovai8c2a4de2006-09-20 16:20:15 +000012113 $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'
brynercb91a2f2006-08-25 21:14:45 +000012114
12115 hardcode_libdir_flag_spec_CXX='-R$libdir'
12116 hardcode_shlibpath_var_CXX=no
12117 case $host_os in
mmentovai8c2a4de2006-09-20 16:20:15 +000012118 solaris2.[0-5] | solaris2.[0-5].*) ;;
brynercb91a2f2006-08-25 21:14:45 +000012119 *)
12120 # The C++ compiler is used as linker so we must use $wl
12121 # flag to pass the commands to the underlying system
mmentovai8c2a4de2006-09-20 16:20:15 +000012122 # linker. We must also pass each convience library through
12123 # to the system linker between allextract/defaultextract.
12124 # The C++ compiler will combine linker options so we
12125 # cannot just pass the convience library names through
12126 # without $wl.
brynercb91a2f2006-08-25 21:14:45 +000012127 # Supported since Solaris 2.6 (maybe 2.5.1?)
mmentovai8c2a4de2006-09-20 16:20:15 +000012128 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
brynercb91a2f2006-08-25 21:14:45 +000012129 ;;
12130 esac
12131 link_all_deplibs_CXX=yes
12132
mmentovai8c2a4de2006-09-20 16:20:15 +000012133 output_verbose_link_cmd='echo'
brynercb91a2f2006-08-25 21:14:45 +000012134
12135 # Archives containing C++ object files must be created using
12136 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12137 # necessary to make sure instantiated templates are included
12138 # in the archive.
12139 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12140 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012141 gcx*)
brynercb91a2f2006-08-25 21:14:45 +000012142 # Green Hills C++ Compiler
12143 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12144
12145 # The C++ compiler must be used to create the archive.
12146 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12147 ;;
12148 *)
12149 # GNU C++ compiler with Solaris linker
12150 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12151 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12152 if $CC --version | grep -v '^2\.7' > /dev/null; then
12153 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12154 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12155 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12156
12157 # Commands to make compiler produce verbose output that lists
12158 # what "hidden" libraries, object files and flags are used when
12159 # linking a shared library.
12160 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12161 else
12162 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12163 # platform.
12164 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12165 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12166 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12167
12168 # Commands to make compiler produce verbose output that lists
12169 # what "hidden" libraries, object files and flags are used when
12170 # linking a shared library.
12171 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12172 fi
12173
12174 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12175 fi
12176 ;;
12177 esac
12178 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012179 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12180 no_undefined_flag_CXX='${wl}-z,text'
brynercb91a2f2006-08-25 21:14:45 +000012181 archive_cmds_need_lc_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000012182 hardcode_shlibpath_var_CXX=no
12183 runpath_var='LD_RUN_PATH'
12184
12185 case $cc_basename in
12186 CC*)
12187 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12188 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12189 ;;
12190 *)
12191 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12192 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12193 ;;
12194 esac
12195 ;;
12196 sysv5* | sco3.2v5* | sco5v6*)
12197 # Note: We can NOT use -z defs as we might desire, because we do not
12198 # link with -lc, and that would cause any symbols used from libc to
12199 # always be unresolved, which means just about no library would
12200 # ever link correctly. If we're not using GNU ld we use -z text
12201 # though, which does catch some bad symbols but isn't as heavy-handed
12202 # as -z defs.
12203 # For security reasons, it is highly recommended that you always
12204 # use absolute paths for naming shared libraries, and exclude the
12205 # DT_RUNPATH tag from executables and libraries. But doing so
12206 # requires that you compile everything twice, which is a pain.
12207 # So that behaviour is only enabled if SCOABSPATH is set to a
12208 # non-empty value in the environment. Most likely only useful for
12209 # creating official distributions of packages.
12210 # This is a hack until libtool officially supports absolute path
12211 # names for shared libraries.
12212 no_undefined_flag_CXX='${wl}-z,text'
12213 allow_undefined_flag_CXX='${wl}-z,nodefs'
12214 archive_cmds_need_lc_CXX=no
12215 hardcode_shlibpath_var_CXX=no
12216 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12217 hardcode_libdir_separator_CXX=':'
12218 link_all_deplibs_CXX=yes
12219 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12220 runpath_var='LD_RUN_PATH'
12221
12222 case $cc_basename in
12223 CC*)
12224 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12225 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12226 ;;
12227 *)
12228 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12229 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12230 ;;
12231 esac
brynercb91a2f2006-08-25 21:14:45 +000012232 ;;
12233 tandem*)
12234 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012235 NCC*)
brynercb91a2f2006-08-25 21:14:45 +000012236 # NonStop-UX NCC 3.20
12237 # FIXME: insert proper C++ library support
12238 ld_shlibs_CXX=no
12239 ;;
12240 *)
12241 # FIXME: insert proper C++ library support
12242 ld_shlibs_CXX=no
12243 ;;
12244 esac
12245 ;;
12246 vxworks*)
12247 # FIXME: insert proper C++ library support
12248 ld_shlibs_CXX=no
12249 ;;
12250 *)
12251 # FIXME: insert proper C++ library support
12252 ld_shlibs_CXX=no
12253 ;;
12254esac
mmentovai8c2a4de2006-09-20 16:20:15 +000012255{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12256echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012257test "$ld_shlibs_CXX" = no && can_build_shared=no
12258
12259GCC_CXX="$GXX"
12260LD_CXX="$LD"
12261
12262
12263cat > conftest.$ac_ext <<EOF
12264class Foo
12265{
12266public:
12267 Foo (void) { a = 0; }
12268private:
12269 int a;
12270};
12271EOF
12272
12273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12274 (eval $ac_compile) 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; then
12278 # Parse the compiler output and extract the necessary
12279 # objects, libraries and library flags.
12280
12281 # Sentinel used to keep track of whether or not we are before
12282 # the conftest object file.
12283 pre_test_object_deps_done=no
12284
12285 # The `*' in the case matches for architectures that use `case' in
12286 # $output_verbose_cmd can trigger glob expansion during the loop
12287 # eval without this substitution.
mmentovai8c2a4de2006-09-20 16:20:15 +000012288 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
brynercb91a2f2006-08-25 21:14:45 +000012289
12290 for p in `eval $output_verbose_link_cmd`; do
12291 case $p in
12292
12293 -L* | -R* | -l*)
12294 # Some compilers place space between "-{L,R}" and the path.
12295 # Remove the space.
12296 if test $p = "-L" \
12297 || test $p = "-R"; then
12298 prev=$p
12299 continue
12300 else
12301 prev=
12302 fi
12303
12304 if test "$pre_test_object_deps_done" = no; then
12305 case $p in
12306 -L* | -R*)
12307 # Internal compiler library paths should come after those
12308 # provided the user. The postdeps already come after the
12309 # user supplied libs so there is no need to process them.
12310 if test -z "$compiler_lib_search_path_CXX"; then
12311 compiler_lib_search_path_CXX="${prev}${p}"
12312 else
12313 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12314 fi
12315 ;;
12316 # The "-l" case would never come before the object being
12317 # linked, so don't bother handling this case.
12318 esac
12319 else
12320 if test -z "$postdeps_CXX"; then
12321 postdeps_CXX="${prev}${p}"
12322 else
12323 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12324 fi
12325 fi
12326 ;;
12327
12328 *.$objext)
12329 # This assumes that the test object file only shows up
12330 # once in the compiler output.
12331 if test "$p" = "conftest.$objext"; then
12332 pre_test_object_deps_done=yes
12333 continue
12334 fi
12335
12336 if test "$pre_test_object_deps_done" = no; then
12337 if test -z "$predep_objects_CXX"; then
12338 predep_objects_CXX="$p"
12339 else
12340 predep_objects_CXX="$predep_objects_CXX $p"
12341 fi
12342 else
12343 if test -z "$postdep_objects_CXX"; then
12344 postdep_objects_CXX="$p"
12345 else
12346 postdep_objects_CXX="$postdep_objects_CXX $p"
12347 fi
12348 fi
12349 ;;
12350
12351 *) ;; # Ignore the rest.
12352
12353 esac
12354 done
12355
12356 # Clean up.
12357 rm -f a.out a.exe
12358else
12359 echo "libtool.m4: error: problem compiling CXX test program"
12360fi
12361
12362$rm -f confest.$objext
12363
mmentovai8c2a4de2006-09-20 16:20:15 +000012364# PORTME: override above test on systems where it is broken
12365case $host_os in
12366interix3*)
12367 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12368 # hack all around it, let's just trust "g++" to DTRT.
12369 predep_objects_CXX=
12370 postdep_objects_CXX=
12371 postdeps_CXX=
12372 ;;
12373
12374solaris*)
12375 case $cc_basename in
12376 CC*)
12377 # Adding this requires a known-good setup of shared libraries for
12378 # Sun compiler versions before 5.6, else PIC objects from an old
12379 # archive will be linked into the output, leading to subtle bugs.
12380 postdeps_CXX='-lCstd -lCrun'
12381 ;;
12382 esac
12383 ;;
12384esac
12385
12386
brynercb91a2f2006-08-25 21:14:45 +000012387case " $postdeps_CXX " in
12388*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12389esac
12390
12391lt_prog_compiler_wl_CXX=
12392lt_prog_compiler_pic_CXX=
12393lt_prog_compiler_static_CXX=
12394
mmentovai8c2a4de2006-09-20 16:20:15 +000012395{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12396echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012397
12398 # C++ specific cases for pic, static, wl, etc.
12399 if test "$GXX" = yes; then
12400 lt_prog_compiler_wl_CXX='-Wl,'
12401 lt_prog_compiler_static_CXX='-static'
12402
12403 case $host_os in
12404 aix*)
12405 # All AIX code is PIC.
12406 if test "$host_cpu" = ia64; then
12407 # AIX 5 now supports IA64 processor
12408 lt_prog_compiler_static_CXX='-Bstatic'
12409 fi
12410 ;;
12411 amigaos*)
12412 # FIXME: we need at least 68020 code to build shared libraries, but
12413 # adding the `-m68020' flag to GCC prevents building anything better,
12414 # like `-m68040'.
12415 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12416 ;;
12417 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12418 # PIC is the default for these OSes.
12419 ;;
12420 mingw* | os2* | pw32*)
12421 # This hack is so that the source file can tell whether it is being
12422 # built for inclusion in a dll (and should export symbols for example).
12423 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12424 ;;
12425 darwin* | rhapsody*)
12426 # PIC is the default on this platform
12427 # Common symbols not allowed in MH_DYLIB files
12428 lt_prog_compiler_pic_CXX='-fno-common'
12429 ;;
12430 *djgpp*)
12431 # DJGPP does not support shared libraries at all
12432 lt_prog_compiler_pic_CXX=
12433 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012434 interix3*)
12435 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12436 # Instead, we relocate shared libraries at runtime.
12437 ;;
brynercb91a2f2006-08-25 21:14:45 +000012438 sysv4*MP*)
12439 if test -d /usr/nec; then
12440 lt_prog_compiler_pic_CXX=-Kconform_pic
12441 fi
12442 ;;
12443 hpux*)
12444 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12445 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +000012446 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000012447 hppa*64*|ia64*)
12448 ;;
12449 *)
12450 lt_prog_compiler_pic_CXX='-fPIC'
12451 ;;
12452 esac
12453 ;;
12454 *)
12455 lt_prog_compiler_pic_CXX='-fPIC'
12456 ;;
12457 esac
12458 else
12459 case $host_os in
12460 aix4* | aix5*)
12461 # All AIX code is PIC.
12462 if test "$host_cpu" = ia64; then
12463 # AIX 5 now supports IA64 processor
12464 lt_prog_compiler_static_CXX='-Bstatic'
12465 else
12466 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12467 fi
12468 ;;
12469 chorus*)
12470 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012471 cxch68*)
brynercb91a2f2006-08-25 21:14:45 +000012472 # Green Hills C++ Compiler
12473 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12474 ;;
12475 esac
12476 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012477 darwin*)
12478 # PIC is the default on this platform
12479 # Common symbols not allowed in MH_DYLIB files
12480 case $cc_basename in
12481 xlc*)
12482 lt_prog_compiler_pic_CXX='-qnocommon'
12483 lt_prog_compiler_wl_CXX='-Wl,'
12484 ;;
12485 esac
12486 ;;
brynercb91a2f2006-08-25 21:14:45 +000012487 dgux*)
12488 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012489 ec++*)
brynercb91a2f2006-08-25 21:14:45 +000012490 lt_prog_compiler_pic_CXX='-KPIC'
12491 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012492 ghcx*)
brynercb91a2f2006-08-25 21:14:45 +000012493 # Green Hills C++ Compiler
12494 lt_prog_compiler_pic_CXX='-pic'
12495 ;;
12496 *)
12497 ;;
12498 esac
12499 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012500 freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000012501 # FreeBSD uses GNU C++
12502 ;;
12503 hpux9* | hpux10* | hpux11*)
12504 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012505 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012506 lt_prog_compiler_wl_CXX='-Wl,'
mmentovai8c2a4de2006-09-20 16:20:15 +000012507 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
brynercb91a2f2006-08-25 21:14:45 +000012508 if test "$host_cpu" != ia64; then
12509 lt_prog_compiler_pic_CXX='+Z'
12510 fi
12511 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012512 aCC*)
brynercb91a2f2006-08-25 21:14:45 +000012513 lt_prog_compiler_wl_CXX='-Wl,'
mmentovai8c2a4de2006-09-20 16:20:15 +000012514 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12515 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000012516 hppa*64*|ia64*)
12517 # +Z the default
12518 ;;
12519 *)
12520 lt_prog_compiler_pic_CXX='+Z'
12521 ;;
12522 esac
12523 ;;
12524 *)
12525 ;;
12526 esac
12527 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012528 interix*)
12529 # This is c89, which is MS Visual C++ (no shared libs)
12530 # Anyone wants to do a port?
12531 ;;
brynercb91a2f2006-08-25 21:14:45 +000012532 irix5* | irix6* | nonstopux*)
12533 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012534 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012535 lt_prog_compiler_wl_CXX='-Wl,'
12536 lt_prog_compiler_static_CXX='-non_shared'
12537 # CC pic flag -KPIC is the default.
12538 ;;
12539 *)
12540 ;;
12541 esac
12542 ;;
12543 linux*)
12544 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012545 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000012546 # KAI C++ Compiler
12547 lt_prog_compiler_wl_CXX='--backend -Wl,'
12548 lt_prog_compiler_pic_CXX='-fPIC'
12549 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012550 icpc* | ecpc*)
brynercb91a2f2006-08-25 21:14:45 +000012551 # Intel C++
12552 lt_prog_compiler_wl_CXX='-Wl,'
12553 lt_prog_compiler_pic_CXX='-KPIC'
12554 lt_prog_compiler_static_CXX='-static'
12555 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012556 pgCC*)
12557 # Portland Group C++ compiler.
12558 lt_prog_compiler_wl_CXX='-Wl,'
12559 lt_prog_compiler_pic_CXX='-fpic'
12560 lt_prog_compiler_static_CXX='-Bstatic'
12561 ;;
12562 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000012563 # Compaq C++
12564 # Make sure the PIC flag is empty. It appears that all Alpha
12565 # Linux and Compaq Tru64 Unix objects are PIC.
12566 lt_prog_compiler_pic_CXX=
12567 lt_prog_compiler_static_CXX='-non_shared'
12568 ;;
12569 *)
12570 ;;
12571 esac
12572 ;;
12573 lynxos*)
12574 ;;
12575 m88k*)
12576 ;;
12577 mvs*)
12578 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012579 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000012580 lt_prog_compiler_pic_CXX='-W c,exportall'
12581 ;;
12582 *)
12583 ;;
12584 esac
12585 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012586 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000012587 ;;
12588 osf3* | osf4* | osf5*)
12589 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012590 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000012591 lt_prog_compiler_wl_CXX='--backend -Wl,'
12592 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012593 RCC*)
brynercb91a2f2006-08-25 21:14:45 +000012594 # Rational C++ 2.4.1
12595 lt_prog_compiler_pic_CXX='-pic'
12596 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012597 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000012598 # Digital/Compaq C++
12599 lt_prog_compiler_wl_CXX='-Wl,'
12600 # Make sure the PIC flag is empty. It appears that all Alpha
12601 # Linux and Compaq Tru64 Unix objects are PIC.
12602 lt_prog_compiler_pic_CXX=
12603 lt_prog_compiler_static_CXX='-non_shared'
12604 ;;
12605 *)
12606 ;;
12607 esac
12608 ;;
12609 psos*)
12610 ;;
brynercb91a2f2006-08-25 21:14:45 +000012611 solaris*)
12612 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012613 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012614 # Sun C++ 4.2, 5.x and Centerline C++
12615 lt_prog_compiler_pic_CXX='-KPIC'
12616 lt_prog_compiler_static_CXX='-Bstatic'
12617 lt_prog_compiler_wl_CXX='-Qoption ld '
12618 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012619 gcx*)
brynercb91a2f2006-08-25 21:14:45 +000012620 # Green Hills C++ Compiler
12621 lt_prog_compiler_pic_CXX='-PIC'
12622 ;;
12623 *)
12624 ;;
12625 esac
12626 ;;
12627 sunos4*)
12628 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012629 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012630 # Sun C++ 4.x
12631 lt_prog_compiler_pic_CXX='-pic'
12632 lt_prog_compiler_static_CXX='-Bstatic'
12633 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012634 lcc*)
brynercb91a2f2006-08-25 21:14:45 +000012635 # Lucid
12636 lt_prog_compiler_pic_CXX='-pic'
12637 ;;
12638 *)
12639 ;;
12640 esac
12641 ;;
12642 tandem*)
12643 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012644 NCC*)
brynercb91a2f2006-08-25 21:14:45 +000012645 # NonStop-UX NCC 3.20
12646 lt_prog_compiler_pic_CXX='-KPIC'
12647 ;;
12648 *)
12649 ;;
12650 esac
12651 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012652 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12653 case $cc_basename in
12654 CC*)
12655 lt_prog_compiler_wl_CXX='-Wl,'
12656 lt_prog_compiler_pic_CXX='-KPIC'
12657 lt_prog_compiler_static_CXX='-Bstatic'
12658 ;;
12659 esac
brynercb91a2f2006-08-25 21:14:45 +000012660 ;;
12661 vxworks*)
12662 ;;
12663 *)
12664 lt_prog_compiler_can_build_shared_CXX=no
12665 ;;
12666 esac
12667 fi
12668
mmentovai8c2a4de2006-09-20 16:20:15 +000012669{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12670echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012671
12672#
12673# Check to make sure the PIC flag actually works.
12674#
12675if test -n "$lt_prog_compiler_pic_CXX"; then
12676
mmentovai8c2a4de2006-09-20 16:20:15 +000012677{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12678echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012679if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12681else
12682 lt_prog_compiler_pic_works_CXX=no
12683 ac_outfile=conftest.$ac_objext
12684 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12685 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12686 # Insert the option either (1) after the last *FLAGS variable, or
12687 # (2) before a word containing "conftest.", or (3) at the end.
12688 # Note that $ac_compile itself does not contain backslashes and begins
12689 # with a dollar sign (not a hyphen), so the echo should work correctly.
12690 # The option is referenced via a variable to avoid confusing sed.
12691 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000012692 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000012693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12694 -e 's:$: $lt_compiler_flag:'`
mmentovaidb3342a2006-12-05 22:52:28 +000012695 (eval echo "\"\$as_me:12695: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000012696 (eval "$lt_compile" 2>conftest.err)
12697 ac_status=$?
12698 cat conftest.err >&5
mmentovaidb3342a2006-12-05 22:52:28 +000012699 echo "$as_me:12699: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000012700 if (exit $ac_status) && test -s "$ac_outfile"; then
12701 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000012702 # So say no if there are warnings other than the usual output.
12703 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12705 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000012706 lt_prog_compiler_pic_works_CXX=yes
12707 fi
12708 fi
12709 $rm conftest*
12710
12711fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012712{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12713echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012714
12715if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12716 case $lt_prog_compiler_pic_CXX in
12717 "" | " "*) ;;
12718 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12719 esac
12720else
12721 lt_prog_compiler_pic_CXX=
12722 lt_prog_compiler_can_build_shared_CXX=no
12723fi
12724
12725fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012726case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000012727 # For platforms which do not support PIC, -DPIC is meaningless:
12728 *djgpp*)
12729 lt_prog_compiler_pic_CXX=
12730 ;;
12731 *)
12732 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12733 ;;
12734esac
12735
mmentovai8c2a4de2006-09-20 16:20:15 +000012736#
12737# Check to make sure the static flag actually works.
12738#
12739wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12740{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12741echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12742if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12744else
12745 lt_prog_compiler_static_works_CXX=no
12746 save_LDFLAGS="$LDFLAGS"
12747 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12748 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12749 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12750 # The linker can only warn and ignore the option if not recognized
12751 # So say no if there are warnings
12752 if test -s conftest.err; then
12753 # Append any errors to the config.log.
12754 cat conftest.err 1>&5
12755 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12757 if diff conftest.exp conftest.er2 >/dev/null; then
12758 lt_prog_compiler_static_works_CXX=yes
12759 fi
12760 else
12761 lt_prog_compiler_static_works_CXX=yes
12762 fi
12763 fi
12764 $rm conftest*
12765 LDFLAGS="$save_LDFLAGS"
12766
12767fi
12768{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12769echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12770
12771if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12772 :
12773else
12774 lt_prog_compiler_static_CXX=
12775fi
12776
12777
12778{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12779echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012780if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12782else
12783 lt_cv_prog_compiler_c_o_CXX=no
12784 $rm -r conftest 2>/dev/null
12785 mkdir conftest
12786 cd conftest
12787 mkdir out
12788 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12789
12790 lt_compiler_flag="-o out/conftest2.$ac_objext"
12791 # Insert the option either (1) after the last *FLAGS variable, or
12792 # (2) before a word containing "conftest.", or (3) at the end.
12793 # Note that $ac_compile itself does not contain backslashes and begins
12794 # with a dollar sign (not a hyphen), so the echo should work correctly.
12795 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000012796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000012797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12798 -e 's:$: $lt_compiler_flag:'`
mmentovaidb3342a2006-12-05 22:52:28 +000012799 (eval echo "\"\$as_me:12799: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000012800 (eval "$lt_compile" 2>out/conftest.err)
12801 ac_status=$?
12802 cat out/conftest.err >&5
mmentovaidb3342a2006-12-05 22:52:28 +000012803 echo "$as_me:12803: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000012804 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12805 then
12806 # The compiler can only warn and ignore the option if not recognized
12807 # So say no if there are warnings
mmentovai8c2a4de2006-09-20 16:20:15 +000012808 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12809 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12810 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000012811 lt_cv_prog_compiler_c_o_CXX=yes
12812 fi
12813 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012814 chmod u+w . 2>&5
brynercb91a2f2006-08-25 21:14:45 +000012815 $rm conftest*
12816 # SGI C++ compiler will create directory out/ii_files/ for
12817 # template instantiation
12818 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12819 $rm out/* && rmdir out
12820 cd ..
12821 rmdir conftest
12822 $rm conftest*
12823
12824fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012825{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12826echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012827
12828
12829hard_links="nottested"
12830if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12831 # do not overwrite the value of need_locks provided by the user
mmentovai8c2a4de2006-09-20 16:20:15 +000012832 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12833echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012834 hard_links=yes
12835 $rm conftest*
12836 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12837 touch conftest.a
12838 ln conftest.a conftest.b 2>&5 || hard_links=no
12839 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mmentovai8c2a4de2006-09-20 16:20:15 +000012840 { echo "$as_me:$LINENO: result: $hard_links" >&5
12841echo "${ECHO_T}$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012842 if test "$hard_links" = no; then
12843 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12844echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12845 need_locks=warn
12846 fi
12847else
12848 need_locks=no
12849fi
12850
mmentovai8c2a4de2006-09-20 16:20:15 +000012851{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12852echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012853
12854 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12855 case $host_os in
12856 aix4* | aix5*)
12857 # If we're using GNU nm, then we don't want the "-C" option.
12858 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12859 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12860 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'
12861 else
12862 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'
12863 fi
12864 ;;
12865 pw32*)
12866 export_symbols_cmds_CXX="$ltdll_cmds"
12867 ;;
12868 cygwin* | mingw*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012869 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'
brynercb91a2f2006-08-25 21:14:45 +000012870 ;;
12871 *)
12872 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12873 ;;
12874 esac
12875
mmentovai8c2a4de2006-09-20 16:20:15 +000012876{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12877echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012878test "$ld_shlibs_CXX" = no && can_build_shared=no
12879
brynercb91a2f2006-08-25 21:14:45 +000012880#
12881# Do we need to explicitly link libc?
12882#
12883case "x$archive_cmds_need_lc_CXX" in
12884x|xyes)
12885 # Assume -lc should be added
12886 archive_cmds_need_lc_CXX=yes
12887
12888 if test "$enable_shared" = yes && test "$GCC" = yes; then
12889 case $archive_cmds_CXX in
12890 *'~'*)
12891 # FIXME: we may have to deal with multi-command sequences.
12892 ;;
12893 '$CC '*)
12894 # Test whether the compiler implicitly links with -lc since on some
12895 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12896 # to ld, don't add -lc before -lgcc.
mmentovai8c2a4de2006-09-20 16:20:15 +000012897 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12898echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012899 $rm conftest*
12900 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12901
12902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12903 (eval $ac_compile) 2>&5
12904 ac_status=$?
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } 2>conftest.err; then
12907 soname=conftest
12908 lib=conftest
12909 libobjs=conftest.$ac_objext
12910 deplibs=
12911 wl=$lt_prog_compiler_wl_CXX
mmentovai8c2a4de2006-09-20 16:20:15 +000012912 pic_flag=$lt_prog_compiler_pic_CXX
brynercb91a2f2006-08-25 21:14:45 +000012913 compiler_flags=-v
12914 linker_flags=-v
12915 verstring=
12916 output_objdir=.
12917 libname=conftest
12918 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12919 allow_undefined_flag_CXX=
12920 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12921 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12922 ac_status=$?
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }
12925 then
12926 archive_cmds_need_lc_CXX=no
12927 else
12928 archive_cmds_need_lc_CXX=yes
12929 fi
12930 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12931 else
12932 cat conftest.err 1>&5
12933 fi
12934 $rm conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000012935 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12936echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012937 ;;
12938 esac
12939 fi
12940 ;;
12941esac
12942
mmentovai8c2a4de2006-09-20 16:20:15 +000012943{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12944echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012945library_names_spec=
12946libname_spec='lib$name'
12947soname_spec=
12948shrext_cmds=".so"
12949postinstall_cmds=
12950postuninstall_cmds=
12951finish_cmds=
12952finish_eval=
12953shlibpath_var=
12954shlibpath_overrides_runpath=unknown
12955version_type=none
12956dynamic_linker="$host_os ld.so"
12957sys_lib_dlsearch_path_spec="/lib /usr/lib"
12958if test "$GCC" = yes; then
12959 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12960 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12961 # if the path contains ";" then we assume it to be the separator
12962 # otherwise default to the standard path separator (i.e. ":") - it is
12963 # assumed that no part of a normal pathname contains ";" but that should
12964 # okay in the real world where ";" in dirpaths is itself problematic.
12965 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12966 else
12967 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12968 fi
12969else
12970 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12971fi
12972need_lib_prefix=unknown
12973hardcode_into_libs=no
12974
12975# when you set need_version to no, make sure it does not cause -set_version
12976# flags to be left without arguments
12977need_version=unknown
12978
12979case $host_os in
12980aix3*)
12981 version_type=linux
12982 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12983 shlibpath_var=LIBPATH
12984
12985 # AIX 3 has no versioning support, so we append a major version to the name.
12986 soname_spec='${libname}${release}${shared_ext}$major'
12987 ;;
12988
12989aix4* | aix5*)
12990 version_type=linux
12991 need_lib_prefix=no
12992 need_version=no
12993 hardcode_into_libs=yes
12994 if test "$host_cpu" = ia64; then
12995 # AIX 5 supports IA64
12996 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12997 shlibpath_var=LD_LIBRARY_PATH
12998 else
12999 # With GCC up to 2.95.x, collect2 would create an import file
13000 # for dependence libraries. The import file would start with
13001 # the line `#! .'. This would cause the generated library to
13002 # depend on `.', always an invalid library. This was fixed in
13003 # development snapshots of GCC prior to 3.0.
13004 case $host_os in
13005 aix4 | aix4.[01] | aix4.[01].*)
13006 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13007 echo ' yes '
13008 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13009 :
13010 else
13011 can_build_shared=no
13012 fi
13013 ;;
13014 esac
13015 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13016 # soname into executable. Probably we can add versioning support to
13017 # collect2, so additional links can be useful in future.
13018 if test "$aix_use_runtimelinking" = yes; then
13019 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13020 # instead of lib<name>.a to let people know that these are not
13021 # typical AIX shared libraries.
13022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13023 else
13024 # We preserve .a as extension for shared libraries through AIX4.2
13025 # and later when we are not doing run time linking.
13026 library_names_spec='${libname}${release}.a $libname.a'
13027 soname_spec='${libname}${release}${shared_ext}$major'
13028 fi
13029 shlibpath_var=LIBPATH
13030 fi
13031 ;;
13032
13033amigaos*)
13034 library_names_spec='$libname.ixlibrary $libname.a'
13035 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13036 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'
13037 ;;
13038
13039beos*)
13040 library_names_spec='${libname}${shared_ext}'
13041 dynamic_linker="$host_os ld.so"
13042 shlibpath_var=LIBRARY_PATH
13043 ;;
13044
mmentovai8c2a4de2006-09-20 16:20:15 +000013045bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000013046 version_type=linux
13047 need_version=no
13048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13049 soname_spec='${libname}${release}${shared_ext}$major'
13050 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13051 shlibpath_var=LD_LIBRARY_PATH
13052 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13053 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13054 # the default ld.so.conf also contains /usr/contrib/lib and
13055 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13056 # libtool to hard-code these into programs
13057 ;;
13058
13059cygwin* | mingw* | pw32*)
13060 version_type=windows
13061 shrext_cmds=".dll"
13062 need_version=no
13063 need_lib_prefix=no
13064
13065 case $GCC,$host_os in
13066 yes,cygwin* | yes,mingw* | yes,pw32*)
13067 library_names_spec='$libname.dll.a'
13068 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13069 postinstall_cmds='base_file=`basename \${file}`~
13070 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13071 dldir=$destdir/`dirname \$dlpath`~
13072 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000013073 $install_prog $dir/$dlname \$dldir/$dlname~
13074 chmod a+x \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +000013075 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13076 dlpath=$dir/\$dldll~
13077 $rm \$dlpath'
13078 shlibpath_overrides_runpath=yes
13079
13080 case $host_os in
13081 cygwin*)
13082 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13083 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13084 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13085 ;;
13086 mingw*)
13087 # MinGW DLLs use traditional 'lib' prefix
13088 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13089 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13090 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13091 # It is most probably a Windows format PATH printed by
13092 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13093 # path with ; separators, and with drive letters. We can handle the
13094 # drive letters (cygwin fileutils understands them), so leave them,
13095 # especially as we might pass files found there to a mingw objdump,
13096 # which wouldn't understand a cygwinified path. Ahh.
13097 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13098 else
13099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13100 fi
13101 ;;
13102 pw32*)
13103 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000013104 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
brynercb91a2f2006-08-25 21:14:45 +000013105 ;;
13106 esac
13107 ;;
13108
13109 *)
13110 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13111 ;;
13112 esac
13113 dynamic_linker='Win32 ld.exe'
13114 # FIXME: first we should search . and the directory the executable is in
13115 shlibpath_var=PATH
13116 ;;
13117
13118darwin* | rhapsody*)
13119 dynamic_linker="$host_os dyld"
13120 version_type=darwin
13121 need_lib_prefix=no
13122 need_version=no
13123 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13124 soname_spec='${libname}${release}${major}$shared_ext'
13125 shlibpath_overrides_runpath=yes
13126 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000013127 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
brynercb91a2f2006-08-25 21:14:45 +000013128 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13129 if test "$GCC" = yes; then
13130 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13131 else
13132 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13133 fi
13134 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13135 ;;
13136
13137dgux*)
13138 version_type=linux
13139 need_lib_prefix=no
13140 need_version=no
13141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13142 soname_spec='${libname}${release}${shared_ext}$major'
13143 shlibpath_var=LD_LIBRARY_PATH
13144 ;;
13145
13146freebsd1*)
13147 dynamic_linker=no
13148 ;;
13149
13150kfreebsd*-gnu)
13151 version_type=linux
13152 need_lib_prefix=no
13153 need_version=no
13154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13155 soname_spec='${libname}${release}${shared_ext}$major'
13156 shlibpath_var=LD_LIBRARY_PATH
13157 shlibpath_overrides_runpath=no
13158 hardcode_into_libs=yes
13159 dynamic_linker='GNU ld.so'
13160 ;;
13161
mmentovai8c2a4de2006-09-20 16:20:15 +000013162freebsd* | dragonfly*)
13163 # DragonFly does not have aout. When/if they implement a new
13164 # versioning mechanism, adjust this.
13165 if test -x /usr/bin/objformat; then
13166 objformat=`/usr/bin/objformat`
13167 else
13168 case $host_os in
13169 freebsd[123]*) objformat=aout ;;
13170 *) objformat=elf ;;
13171 esac
13172 fi
brynercb91a2f2006-08-25 21:14:45 +000013173 version_type=freebsd-$objformat
13174 case $version_type in
13175 freebsd-elf*)
13176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13177 need_version=no
13178 need_lib_prefix=no
13179 ;;
13180 freebsd-*)
13181 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13182 need_version=yes
13183 ;;
13184 esac
13185 shlibpath_var=LD_LIBRARY_PATH
13186 case $host_os in
13187 freebsd2*)
13188 shlibpath_overrides_runpath=yes
13189 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013190 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000013191 shlibpath_overrides_runpath=yes
13192 hardcode_into_libs=yes
13193 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013194 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13195 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000013196 shlibpath_overrides_runpath=no
13197 hardcode_into_libs=yes
13198 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013199 freebsd*) # from 4.6 on
13200 shlibpath_overrides_runpath=yes
13201 hardcode_into_libs=yes
13202 ;;
brynercb91a2f2006-08-25 21:14:45 +000013203 esac
13204 ;;
13205
13206gnu*)
13207 version_type=linux
13208 need_lib_prefix=no
13209 need_version=no
13210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13211 soname_spec='${libname}${release}${shared_ext}$major'
13212 shlibpath_var=LD_LIBRARY_PATH
13213 hardcode_into_libs=yes
13214 ;;
13215
13216hpux9* | hpux10* | hpux11*)
13217 # Give a soname corresponding to the major version so that dld.sl refuses to
13218 # link against other versions.
13219 version_type=sunos
13220 need_lib_prefix=no
13221 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000013222 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000013223 ia64*)
13224 shrext_cmds='.so'
13225 hardcode_into_libs=yes
13226 dynamic_linker="$host_os dld.so"
13227 shlibpath_var=LD_LIBRARY_PATH
13228 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13230 soname_spec='${libname}${release}${shared_ext}$major'
13231 if test "X$HPUX_IA64_MODE" = X32; then
13232 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13233 else
13234 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13235 fi
13236 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13237 ;;
13238 hppa*64*)
13239 shrext_cmds='.sl'
13240 hardcode_into_libs=yes
13241 dynamic_linker="$host_os dld.sl"
13242 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13243 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13245 soname_spec='${libname}${release}${shared_ext}$major'
13246 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13247 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13248 ;;
13249 *)
13250 shrext_cmds='.sl'
13251 dynamic_linker="$host_os dld.sl"
13252 shlibpath_var=SHLIB_PATH
13253 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13255 soname_spec='${libname}${release}${shared_ext}$major'
13256 ;;
13257 esac
13258 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13259 postinstall_cmds='chmod 555 $lib'
13260 ;;
13261
mmentovai8c2a4de2006-09-20 16:20:15 +000013262interix3*)
13263 version_type=linux
13264 need_lib_prefix=no
13265 need_version=no
13266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13267 soname_spec='${libname}${release}${shared_ext}$major'
13268 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13269 shlibpath_var=LD_LIBRARY_PATH
13270 shlibpath_overrides_runpath=no
13271 hardcode_into_libs=yes
13272 ;;
13273
brynercb91a2f2006-08-25 21:14:45 +000013274irix5* | irix6* | nonstopux*)
13275 case $host_os in
13276 nonstopux*) version_type=nonstopux ;;
13277 *)
13278 if test "$lt_cv_prog_gnu_ld" = yes; then
13279 version_type=linux
13280 else
13281 version_type=irix
13282 fi ;;
13283 esac
13284 need_lib_prefix=no
13285 need_version=no
13286 soname_spec='${libname}${release}${shared_ext}$major'
13287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13288 case $host_os in
13289 irix5* | nonstopux*)
13290 libsuff= shlibsuff=
13291 ;;
13292 *)
13293 case $LD in # libtool.m4 will add one of these switches to LD
13294 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13295 libsuff= shlibsuff= libmagic=32-bit;;
13296 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13297 libsuff=32 shlibsuff=N32 libmagic=N32;;
13298 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13299 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13300 *) libsuff= shlibsuff= libmagic=never-match;;
13301 esac
13302 ;;
13303 esac
13304 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13305 shlibpath_overrides_runpath=no
13306 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13307 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13308 hardcode_into_libs=yes
13309 ;;
13310
13311# No shared lib support for Linux oldld, aout, or coff.
13312linux*oldld* | linux*aout* | linux*coff*)
13313 dynamic_linker=no
13314 ;;
13315
13316# This must be Linux ELF.
13317linux*)
13318 version_type=linux
13319 need_lib_prefix=no
13320 need_version=no
13321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13322 soname_spec='${libname}${release}${shared_ext}$major'
13323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13324 shlibpath_var=LD_LIBRARY_PATH
13325 shlibpath_overrides_runpath=no
13326 # This implies no fast_install, which is unacceptable.
13327 # Some rework will be needed to allow for fast_install
13328 # before this can be enabled.
13329 hardcode_into_libs=yes
13330
13331 # Append ld.so.conf contents to the search path
13332 if test -f /etc/ld.so.conf; then
mmentovai8c2a4de2006-09-20 16:20:15 +000013333 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
brynercb91a2f2006-08-25 21:14:45 +000013334 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13335 fi
13336
13337 # We used to test for /lib/ld.so.1 and disable shared libraries on
13338 # powerpc, because MkLinux only supported shared libraries with the
13339 # GNU dynamic linker. Since this was broken with cross compilers,
13340 # most powerpc-linux boxes support dynamic linking these days and
13341 # people can always --disable-shared, the test was removed, and we
13342 # assume the GNU/Linux dynamic linker is in use.
13343 dynamic_linker='GNU/Linux ld.so'
13344 ;;
13345
brynercb91a2f2006-08-25 21:14:45 +000013346knetbsd*-gnu)
13347 version_type=linux
13348 need_lib_prefix=no
13349 need_version=no
13350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13351 soname_spec='${libname}${release}${shared_ext}$major'
13352 shlibpath_var=LD_LIBRARY_PATH
13353 shlibpath_overrides_runpath=no
13354 hardcode_into_libs=yes
13355 dynamic_linker='GNU ld.so'
13356 ;;
13357
13358netbsd*)
13359 version_type=sunos
13360 need_lib_prefix=no
13361 need_version=no
13362 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13365 dynamic_linker='NetBSD (a.out) ld.so'
13366 else
13367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13368 soname_spec='${libname}${release}${shared_ext}$major'
13369 dynamic_linker='NetBSD ld.elf_so'
13370 fi
13371 shlibpath_var=LD_LIBRARY_PATH
13372 shlibpath_overrides_runpath=yes
13373 hardcode_into_libs=yes
13374 ;;
13375
13376newsos6)
13377 version_type=linux
13378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13379 shlibpath_var=LD_LIBRARY_PATH
13380 shlibpath_overrides_runpath=yes
13381 ;;
13382
13383nto-qnx*)
13384 version_type=linux
13385 need_lib_prefix=no
13386 need_version=no
13387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13388 soname_spec='${libname}${release}${shared_ext}$major'
13389 shlibpath_var=LD_LIBRARY_PATH
13390 shlibpath_overrides_runpath=yes
13391 ;;
13392
13393openbsd*)
13394 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000013395 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000013396 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000013397 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13398 case $host_os in
13399 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13400 *) need_version=no ;;
13401 esac
brynercb91a2f2006-08-25 21:14:45 +000013402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13404 shlibpath_var=LD_LIBRARY_PATH
13405 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13406 case $host_os in
13407 openbsd2.[89] | openbsd2.[89].*)
13408 shlibpath_overrides_runpath=no
13409 ;;
13410 *)
13411 shlibpath_overrides_runpath=yes
13412 ;;
13413 esac
13414 else
13415 shlibpath_overrides_runpath=yes
13416 fi
13417 ;;
13418
13419os2*)
13420 libname_spec='$name'
13421 shrext_cmds=".dll"
13422 need_lib_prefix=no
13423 library_names_spec='$libname${shared_ext} $libname.a'
13424 dynamic_linker='OS/2 ld.exe'
13425 shlibpath_var=LIBPATH
13426 ;;
13427
13428osf3* | osf4* | osf5*)
13429 version_type=osf
13430 need_lib_prefix=no
13431 need_version=no
13432 soname_spec='${libname}${release}${shared_ext}$major'
13433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13434 shlibpath_var=LD_LIBRARY_PATH
13435 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13436 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13437 ;;
13438
brynercb91a2f2006-08-25 21:14:45 +000013439solaris*)
13440 version_type=linux
13441 need_lib_prefix=no
13442 need_version=no
13443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13444 soname_spec='${libname}${release}${shared_ext}$major'
13445 shlibpath_var=LD_LIBRARY_PATH
13446 shlibpath_overrides_runpath=yes
13447 hardcode_into_libs=yes
13448 # ldd complains unless libraries are executable
13449 postinstall_cmds='chmod +x $lib'
13450 ;;
13451
13452sunos4*)
13453 version_type=sunos
13454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13455 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13456 shlibpath_var=LD_LIBRARY_PATH
13457 shlibpath_overrides_runpath=yes
13458 if test "$with_gnu_ld" = yes; then
13459 need_lib_prefix=no
13460 fi
13461 need_version=yes
13462 ;;
13463
mmentovai8c2a4de2006-09-20 16:20:15 +000013464sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000013465 version_type=linux
13466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13467 soname_spec='${libname}${release}${shared_ext}$major'
13468 shlibpath_var=LD_LIBRARY_PATH
13469 case $host_vendor in
13470 sni)
13471 shlibpath_overrides_runpath=no
13472 need_lib_prefix=no
13473 export_dynamic_flag_spec='${wl}-Blargedynsym'
13474 runpath_var=LD_RUN_PATH
13475 ;;
13476 siemens)
13477 need_lib_prefix=no
13478 ;;
13479 motorola)
13480 need_lib_prefix=no
13481 need_version=no
13482 shlibpath_overrides_runpath=no
13483 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13484 ;;
13485 esac
13486 ;;
13487
13488sysv4*MP*)
13489 if test -d /usr/nec ;then
13490 version_type=linux
13491 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13492 soname_spec='$libname${shared_ext}.$major'
13493 shlibpath_var=LD_LIBRARY_PATH
13494 fi
13495 ;;
13496
mmentovai8c2a4de2006-09-20 16:20:15 +000013497sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13498 version_type=freebsd-elf
13499 need_lib_prefix=no
13500 need_version=no
13501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13502 soname_spec='${libname}${release}${shared_ext}$major'
13503 shlibpath_var=LD_LIBRARY_PATH
13504 hardcode_into_libs=yes
13505 if test "$with_gnu_ld" = yes; then
13506 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13507 shlibpath_overrides_runpath=no
13508 else
13509 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13510 shlibpath_overrides_runpath=yes
13511 case $host_os in
13512 sco3.2v5*)
13513 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13514 ;;
13515 esac
13516 fi
13517 sys_lib_dlsearch_path_spec='/usr/lib'
13518 ;;
13519
brynercb91a2f2006-08-25 21:14:45 +000013520uts4*)
13521 version_type=linux
13522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13523 soname_spec='${libname}${release}${shared_ext}$major'
13524 shlibpath_var=LD_LIBRARY_PATH
13525 ;;
13526
13527*)
13528 dynamic_linker=no
13529 ;;
13530esac
mmentovai8c2a4de2006-09-20 16:20:15 +000013531{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13532echo "${ECHO_T}$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013533test "$dynamic_linker" = no && can_build_shared=no
13534
mmentovai8c2a4de2006-09-20 16:20:15 +000013535variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13536if test "$GCC" = yes; then
13537 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13538fi
13539
13540{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13541echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013542hardcode_action_CXX=
13543if test -n "$hardcode_libdir_flag_spec_CXX" || \
mmentovai8c2a4de2006-09-20 16:20:15 +000013544 test -n "$runpath_var_CXX" || \
13545 test "X$hardcode_automatic_CXX" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000013546
13547 # We can hardcode non-existant directories.
13548 if test "$hardcode_direct_CXX" != no &&
13549 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13550 # have to relink, otherwise we might link with an installed library
13551 # when we should be linking with a yet-to-be-installed one
13552 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13553 test "$hardcode_minus_L_CXX" != no; then
13554 # Linking always hardcodes the temporary library directory.
13555 hardcode_action_CXX=relink
13556 else
13557 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13558 hardcode_action_CXX=immediate
13559 fi
13560else
13561 # We cannot hardcode anything, or else we can only hardcode existing
13562 # directories.
13563 hardcode_action_CXX=unsupported
13564fi
mmentovai8c2a4de2006-09-20 16:20:15 +000013565{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13566echo "${ECHO_T}$hardcode_action_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013567
13568if test "$hardcode_action_CXX" = relink; then
13569 # Fast installation is not supported
13570 enable_fast_install=no
13571elif test "$shlibpath_overrides_runpath" = yes ||
13572 test "$enable_shared" = no; then
13573 # Fast installation is not necessary
13574 enable_fast_install=needless
13575fi
13576
brynercb91a2f2006-08-25 21:14:45 +000013577
13578# The else clause should only fire when bootstrapping the
13579# libtool distribution, otherwise you forgot to ship ltmain.sh
13580# with your package, and you will get complaints that there are
13581# no rules to generate ltmain.sh.
13582if test -f "$ltmain"; then
13583 # See if we are running on zsh, and set the options which allow our commands through
13584 # without removal of \ escapes.
13585 if test -n "${ZSH_VERSION+set}" ; then
13586 setopt NO_GLOB_SUBST
13587 fi
13588 # Now quote all the things that may contain metacharacters while being
13589 # careful not to overquote the AC_SUBSTed values. We take copies of the
13590 # variables and quote the copies for generation of the libtool script.
mmentovai8c2a4de2006-09-20 16:20:15 +000013591 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000013592 SED SHELL STRIP \
13593 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13594 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13595 deplibs_check_method reload_flag reload_cmds need_locks \
13596 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13597 lt_cv_sys_global_symbol_to_c_name_address \
13598 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13599 old_postinstall_cmds old_postuninstall_cmds \
13600 compiler_CXX \
13601 CC_CXX \
13602 LD_CXX \
13603 lt_prog_compiler_wl_CXX \
13604 lt_prog_compiler_pic_CXX \
13605 lt_prog_compiler_static_CXX \
13606 lt_prog_compiler_no_builtin_flag_CXX \
13607 export_dynamic_flag_spec_CXX \
13608 thread_safe_flag_spec_CXX \
13609 whole_archive_flag_spec_CXX \
13610 enable_shared_with_static_runtimes_CXX \
13611 old_archive_cmds_CXX \
13612 old_archive_from_new_cmds_CXX \
13613 predep_objects_CXX \
13614 postdep_objects_CXX \
13615 predeps_CXX \
13616 postdeps_CXX \
13617 compiler_lib_search_path_CXX \
13618 archive_cmds_CXX \
13619 archive_expsym_cmds_CXX \
13620 postinstall_cmds_CXX \
13621 postuninstall_cmds_CXX \
13622 old_archive_from_expsyms_cmds_CXX \
13623 allow_undefined_flag_CXX \
13624 no_undefined_flag_CXX \
13625 export_symbols_cmds_CXX \
13626 hardcode_libdir_flag_spec_CXX \
13627 hardcode_libdir_flag_spec_ld_CXX \
13628 hardcode_libdir_separator_CXX \
13629 hardcode_automatic_CXX \
13630 module_cmds_CXX \
13631 module_expsym_cmds_CXX \
13632 lt_cv_prog_compiler_c_o_CXX \
13633 exclude_expsyms_CXX \
13634 include_expsyms_CXX; do
13635
13636 case $var in
13637 old_archive_cmds_CXX | \
13638 old_archive_from_new_cmds_CXX | \
13639 archive_cmds_CXX | \
13640 archive_expsym_cmds_CXX | \
13641 module_cmds_CXX | \
13642 module_expsym_cmds_CXX | \
13643 old_archive_from_expsyms_cmds_CXX | \
13644 export_symbols_cmds_CXX | \
13645 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13646 postinstall_cmds | postuninstall_cmds | \
13647 old_postinstall_cmds | old_postuninstall_cmds | \
13648 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13649 # Double-quote double-evaled strings.
13650 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13651 ;;
13652 *)
13653 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13654 ;;
13655 esac
13656 done
13657
13658 case $lt_echo in
13659 *'\$0 --fallback-echo"')
13660 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13661 ;;
13662 esac
13663
13664cfgfile="$ofile"
13665
13666 cat <<__EOF__ >> "$cfgfile"
13667# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13668
13669# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13670
13671# Shell to use when invoking shell scripts.
13672SHELL=$lt_SHELL
13673
13674# Whether or not to build shared libraries.
13675build_libtool_libs=$enable_shared
13676
13677# Whether or not to build static libraries.
13678build_old_libs=$enable_static
13679
13680# Whether or not to add -lc for building shared libraries.
13681build_libtool_need_lc=$archive_cmds_need_lc_CXX
13682
13683# Whether or not to disallow shared libs when runtime libs are static
13684allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13685
13686# Whether or not to optimize for fast installation.
13687fast_install=$enable_fast_install
13688
13689# The host system.
13690host_alias=$host_alias
13691host=$host
mmentovai8c2a4de2006-09-20 16:20:15 +000013692host_os=$host_os
13693
13694# The build system.
13695build_alias=$build_alias
13696build=$build
13697build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000013698
13699# An echo program that does not interpret backslashes.
13700echo=$lt_echo
13701
13702# The archiver.
13703AR=$lt_AR
13704AR_FLAGS=$lt_AR_FLAGS
13705
13706# A C compiler.
13707LTCC=$lt_LTCC
13708
mmentovai8c2a4de2006-09-20 16:20:15 +000013709# LTCC compiler flags.
13710LTCFLAGS=$lt_LTCFLAGS
13711
brynercb91a2f2006-08-25 21:14:45 +000013712# A language-specific compiler.
13713CC=$lt_compiler_CXX
13714
13715# Is the compiler the GNU C compiler?
13716with_gcc=$GCC_CXX
13717
13718# An ERE matcher.
13719EGREP=$lt_EGREP
13720
13721# The linker used to build libraries.
13722LD=$lt_LD_CXX
13723
13724# Whether we need hard or soft links.
13725LN_S=$lt_LN_S
13726
13727# A BSD-compatible nm program.
13728NM=$lt_NM
13729
13730# A symbol stripping program
13731STRIP=$lt_STRIP
13732
13733# Used to examine libraries when file_magic_cmd begins "file"
13734MAGIC_CMD=$MAGIC_CMD
13735
13736# Used on cygwin: DLL creation program.
13737DLLTOOL="$DLLTOOL"
13738
13739# Used on cygwin: object dumper.
13740OBJDUMP="$OBJDUMP"
13741
13742# Used on cygwin: assembler.
13743AS="$AS"
13744
13745# The name of the directory that contains temporary libtool files.
13746objdir=$objdir
13747
13748# How to create reloadable object files.
13749reload_flag=$lt_reload_flag
13750reload_cmds=$lt_reload_cmds
13751
13752# How to pass a linker flag through the compiler.
13753wl=$lt_lt_prog_compiler_wl_CXX
13754
13755# Object file suffix (normally "o").
13756objext="$ac_objext"
13757
13758# Old archive suffix (normally "a").
13759libext="$libext"
13760
13761# Shared library suffix (normally ".so").
13762shrext_cmds='$shrext_cmds'
13763
13764# Executable file suffix (normally "").
13765exeext="$exeext"
13766
13767# Additional compiler flags for building library objects.
13768pic_flag=$lt_lt_prog_compiler_pic_CXX
13769pic_mode=$pic_mode
13770
13771# What is the maximum length of a command?
13772max_cmd_len=$lt_cv_sys_max_cmd_len
13773
13774# Does compiler simultaneously support -c and -o options?
13775compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13776
mmentovai8c2a4de2006-09-20 16:20:15 +000013777# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000013778need_locks=$lt_need_locks
13779
13780# Do we need the lib prefix for modules?
13781need_lib_prefix=$need_lib_prefix
13782
13783# Do we need a version for libraries?
13784need_version=$need_version
13785
13786# Whether dlopen is supported.
13787dlopen_support=$enable_dlopen
13788
13789# Whether dlopen of programs is supported.
13790dlopen_self=$enable_dlopen_self
13791
13792# Whether dlopen of statically linked programs is supported.
13793dlopen_self_static=$enable_dlopen_self_static
13794
13795# Compiler flag to prevent dynamic linking.
13796link_static_flag=$lt_lt_prog_compiler_static_CXX
13797
13798# Compiler flag to turn off builtin functions.
13799no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13800
13801# Compiler flag to allow reflexive dlopens.
13802export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13803
13804# Compiler flag to generate shared objects directly from archives.
13805whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13806
13807# Compiler flag to generate thread-safe objects.
13808thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13809
13810# Library versioning type.
13811version_type=$version_type
13812
13813# Format of library name prefix.
13814libname_spec=$lt_libname_spec
13815
13816# List of archive names. First name is the real one, the rest are links.
13817# The last name is the one that the linker finds with -lNAME.
13818library_names_spec=$lt_library_names_spec
13819
13820# The coded name of the library, if different from the real name.
13821soname_spec=$lt_soname_spec
13822
13823# Commands used to build and install an old-style archive.
13824RANLIB=$lt_RANLIB
13825old_archive_cmds=$lt_old_archive_cmds_CXX
13826old_postinstall_cmds=$lt_old_postinstall_cmds
13827old_postuninstall_cmds=$lt_old_postuninstall_cmds
13828
13829# Create an old-style archive from a shared archive.
13830old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13831
13832# Create a temporary old-style archive to link instead of a shared archive.
13833old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13834
13835# Commands used to build and install a shared archive.
13836archive_cmds=$lt_archive_cmds_CXX
13837archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13838postinstall_cmds=$lt_postinstall_cmds
13839postuninstall_cmds=$lt_postuninstall_cmds
13840
13841# Commands used to build a loadable module (assumed same as above if empty)
13842module_cmds=$lt_module_cmds_CXX
13843module_expsym_cmds=$lt_module_expsym_cmds_CXX
13844
13845# Commands to strip libraries.
13846old_striplib=$lt_old_striplib
13847striplib=$lt_striplib
13848
13849# Dependencies to place before the objects being linked to create a
13850# shared library.
13851predep_objects=$lt_predep_objects_CXX
13852
13853# Dependencies to place after the objects being linked to create a
13854# shared library.
13855postdep_objects=$lt_postdep_objects_CXX
13856
13857# Dependencies to place before the objects being linked to create a
13858# shared library.
13859predeps=$lt_predeps_CXX
13860
13861# Dependencies to place after the objects being linked to create a
13862# shared library.
13863postdeps=$lt_postdeps_CXX
13864
13865# The library search path used internally by the compiler when linking
13866# a shared library.
13867compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13868
13869# Method to check whether dependent libraries are shared objects.
13870deplibs_check_method=$lt_deplibs_check_method
13871
13872# Command to use when deplibs_check_method == file_magic.
13873file_magic_cmd=$lt_file_magic_cmd
13874
13875# Flag that allows shared libraries with undefined symbols to be built.
13876allow_undefined_flag=$lt_allow_undefined_flag_CXX
13877
13878# Flag that forces no undefined symbols.
13879no_undefined_flag=$lt_no_undefined_flag_CXX
13880
13881# Commands used to finish a libtool library installation in a directory.
13882finish_cmds=$lt_finish_cmds
13883
13884# Same as above, but a single script fragment to be evaled but not shown.
13885finish_eval=$lt_finish_eval
13886
13887# Take the output of nm and produce a listing of raw symbols and C names.
13888global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13889
13890# Transform the output of nm in a proper C declaration
13891global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13892
13893# Transform the output of nm in a C name address pair
13894global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13895
13896# This is the shared library runtime path variable.
13897runpath_var=$runpath_var
13898
13899# This is the shared library path variable.
13900shlibpath_var=$shlibpath_var
13901
13902# Is shlibpath searched before the hard-coded library search path?
13903shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13904
13905# How to hardcode a shared library path into an executable.
13906hardcode_action=$hardcode_action_CXX
13907
13908# Whether we should hardcode library paths into libraries.
13909hardcode_into_libs=$hardcode_into_libs
13910
13911# Flag to hardcode \$libdir into a binary during linking.
13912# This must work even if \$libdir does not exist.
13913hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13914
13915# If ld is used when linking, flag to hardcode \$libdir into
13916# a binary during linking. This must work even if \$libdir does
13917# not exist.
13918hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13919
13920# Whether we need a single -rpath flag with a separated argument.
13921hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13922
13923# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13924# resulting binary.
13925hardcode_direct=$hardcode_direct_CXX
13926
13927# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13928# resulting binary.
13929hardcode_minus_L=$hardcode_minus_L_CXX
13930
13931# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13932# the resulting binary.
13933hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13934
13935# Set to yes if building a shared library automatically hardcodes DIR into the library
13936# and all subsequent libraries and executables linked against it.
13937hardcode_automatic=$hardcode_automatic_CXX
13938
13939# Variables whose values should be saved in libtool wrapper scripts and
13940# restored at relink time.
13941variables_saved_for_relink="$variables_saved_for_relink"
13942
13943# Whether libtool must link a program against all its dependency libraries.
13944link_all_deplibs=$link_all_deplibs_CXX
13945
13946# Compile-time system search path for libraries
13947sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13948
13949# Run-time system search path for libraries
13950sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13951
13952# Fix the shell variable \$srcfile for the compiler.
13953fix_srcfile_path="$fix_srcfile_path_CXX"
13954
13955# Set to yes if exported symbols are required.
13956always_export_symbols=$always_export_symbols_CXX
13957
13958# The commands to list exported symbols.
13959export_symbols_cmds=$lt_export_symbols_cmds_CXX
13960
13961# The commands to extract the exported symbol list from a shared archive.
13962extract_expsyms_cmds=$lt_extract_expsyms_cmds
13963
13964# Symbols that should not be listed in the preloaded symbols.
13965exclude_expsyms=$lt_exclude_expsyms_CXX
13966
13967# Symbols that must always be exported.
13968include_expsyms=$lt_include_expsyms_CXX
13969
13970# ### END LIBTOOL TAG CONFIG: $tagname
13971
13972__EOF__
13973
13974
13975else
13976 # If there is no Makefile yet, we rely on a make rule to execute
13977 # `config.status --recheck' to rerun these tests and create the
13978 # libtool script then.
13979 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13980 if test -f "$ltmain_in"; then
13981 test -f Makefile && make "$ltmain"
13982 fi
13983fi
13984
13985
13986ac_ext=c
13987ac_cpp='$CPP $CPPFLAGS'
13988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13990ac_compiler_gnu=$ac_cv_c_compiler_gnu
13991
13992CC=$lt_save_CC
13993LDCXX=$LD
13994LD=$lt_save_LD
13995GCC=$lt_save_GCC
13996with_gnu_ldcxx=$with_gnu_ld
13997with_gnu_ld=$lt_save_with_gnu_ld
13998lt_cv_path_LDCXX=$lt_cv_path_LD
13999lt_cv_path_LD=$lt_save_path_LD
14000lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14001lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14002
14003 else
14004 tagname=""
14005 fi
14006 ;;
14007
14008 F77)
14009 if test -n "$F77" && test "X$F77" != "Xno"; then
14010
14011ac_ext=f
14012ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14013ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14014ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14015
14016
14017archive_cmds_need_lc_F77=no
14018allow_undefined_flag_F77=
14019always_export_symbols_F77=no
14020archive_expsym_cmds_F77=
14021export_dynamic_flag_spec_F77=
14022hardcode_direct_F77=no
14023hardcode_libdir_flag_spec_F77=
14024hardcode_libdir_flag_spec_ld_F77=
14025hardcode_libdir_separator_F77=
14026hardcode_minus_L_F77=no
14027hardcode_automatic_F77=no
14028module_cmds_F77=
14029module_expsym_cmds_F77=
14030link_all_deplibs_F77=unknown
14031old_archive_cmds_F77=$old_archive_cmds
14032no_undefined_flag_F77=
14033whole_archive_flag_spec_F77=
14034enable_shared_with_static_runtimes_F77=no
14035
14036# Source file extension for f77 test sources.
14037ac_ext=f
14038
14039# Object file extension for compiled f77 test sources.
14040objext=o
14041objext_F77=$objext
14042
14043# Code to be used in simple compile tests
14044lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14045
14046# Code to be used in simple link tests
14047lt_simple_link_test_code=" program t\n end\n"
14048
14049# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14050
14051# If no C compiler was specified, use CC.
14052LTCC=${LTCC-"$CC"}
14053
mmentovai8c2a4de2006-09-20 16:20:15 +000014054# If no C compiler flags were specified, use CFLAGS.
14055LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14056
brynercb91a2f2006-08-25 21:14:45 +000014057# Allow CC to be a program name with arguments.
14058compiler=$CC
14059
14060
mmentovai8c2a4de2006-09-20 16:20:15 +000014061# save warnings/boilerplate of simple test code
14062ac_outfile=conftest.$ac_objext
14063printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14064eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14065_lt_compiler_boilerplate=`cat conftest.err`
14066$rm conftest*
14067
14068ac_outfile=conftest.$ac_objext
14069printf "$lt_simple_link_test_code" >conftest.$ac_ext
14070eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14071_lt_linker_boilerplate=`cat conftest.err`
14072$rm conftest*
14073
14074
brynercb91a2f2006-08-25 21:14:45 +000014075# Allow CC to be a program name with arguments.
14076lt_save_CC="$CC"
14077CC=${F77-"f77"}
14078compiler=$CC
14079compiler_F77=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +000014080for cc_temp in $compiler""; do
14081 case $cc_temp in
14082 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14083 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14084 \-*) ;;
14085 *) break;;
14086 esac
14087done
14088cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
brynercb91a2f2006-08-25 21:14:45 +000014089
brynercb91a2f2006-08-25 21:14:45 +000014090
mmentovai8c2a4de2006-09-20 16:20:15 +000014091{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14092echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14093{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14094echo "${ECHO_T}$can_build_shared" >&6; }
14095
14096{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14097echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014098test "$can_build_shared" = "no" && enable_shared=no
14099
14100# On AIX, shared libraries and static libraries use the same namespace, and
14101# are all built from PIC.
mmentovai8c2a4de2006-09-20 16:20:15 +000014102case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000014103aix3*)
14104 test "$enable_shared" = yes && enable_static=no
14105 if test -n "$RANLIB"; then
14106 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14107 postinstall_cmds='$RANLIB $lib'
14108 fi
14109 ;;
14110aix4* | aix5*)
mmentovai8c2a4de2006-09-20 16:20:15 +000014111 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14112 test "$enable_shared" = yes && enable_static=no
14113 fi
brynercb91a2f2006-08-25 21:14:45 +000014114 ;;
14115esac
mmentovai8c2a4de2006-09-20 16:20:15 +000014116{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14117echo "${ECHO_T}$enable_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014118
mmentovai8c2a4de2006-09-20 16:20:15 +000014119{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14120echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014121# Make sure either enable_shared or enable_static is yes.
14122test "$enable_shared" = yes || enable_static=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014123{ echo "$as_me:$LINENO: result: $enable_static" >&5
14124echo "${ECHO_T}$enable_static" >&6; }
brynerd5e66382006-09-08 02:35:53 +000014125
brynercb91a2f2006-08-25 21:14:45 +000014126GCC_F77="$G77"
14127LD_F77="$LD"
14128
14129lt_prog_compiler_wl_F77=
14130lt_prog_compiler_pic_F77=
14131lt_prog_compiler_static_F77=
14132
mmentovai8c2a4de2006-09-20 16:20:15 +000014133{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14134echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014135
14136 if test "$GCC" = yes; then
14137 lt_prog_compiler_wl_F77='-Wl,'
14138 lt_prog_compiler_static_F77='-static'
14139
14140 case $host_os in
14141 aix*)
14142 # All AIX code is PIC.
14143 if test "$host_cpu" = ia64; then
14144 # AIX 5 now supports IA64 processor
14145 lt_prog_compiler_static_F77='-Bstatic'
14146 fi
14147 ;;
14148
14149 amigaos*)
14150 # FIXME: we need at least 68020 code to build shared libraries, but
14151 # adding the `-m68020' flag to GCC prevents building anything better,
14152 # like `-m68040'.
14153 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14154 ;;
14155
14156 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14157 # PIC is the default for these OSes.
14158 ;;
14159
14160 mingw* | pw32* | os2*)
14161 # This hack is so that the source file can tell whether it is being
14162 # built for inclusion in a dll (and should export symbols for example).
14163 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14164 ;;
14165
14166 darwin* | rhapsody*)
14167 # PIC is the default on this platform
14168 # Common symbols not allowed in MH_DYLIB files
14169 lt_prog_compiler_pic_F77='-fno-common'
14170 ;;
14171
mmentovai8c2a4de2006-09-20 16:20:15 +000014172 interix3*)
14173 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14174 # Instead, we relocate shared libraries at runtime.
14175 ;;
14176
brynercb91a2f2006-08-25 21:14:45 +000014177 msdosdjgpp*)
14178 # Just because we use GCC doesn't mean we suddenly get shared libraries
14179 # on systems that don't support them.
14180 lt_prog_compiler_can_build_shared_F77=no
14181 enable_shared=no
14182 ;;
14183
14184 sysv4*MP*)
14185 if test -d /usr/nec; then
14186 lt_prog_compiler_pic_F77=-Kconform_pic
14187 fi
14188 ;;
14189
14190 hpux*)
14191 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14192 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +000014193 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000014194 hppa*64*|ia64*)
14195 # +Z the default
14196 ;;
14197 *)
14198 lt_prog_compiler_pic_F77='-fPIC'
14199 ;;
14200 esac
14201 ;;
14202
14203 *)
14204 lt_prog_compiler_pic_F77='-fPIC'
14205 ;;
14206 esac
14207 else
14208 # PORTME Check for flag to pass linker flags through the system compiler.
14209 case $host_os in
14210 aix*)
14211 lt_prog_compiler_wl_F77='-Wl,'
14212 if test "$host_cpu" = ia64; then
14213 # AIX 5 now supports IA64 processor
14214 lt_prog_compiler_static_F77='-Bstatic'
14215 else
14216 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14217 fi
14218 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014219 darwin*)
14220 # PIC is the default on this platform
14221 # Common symbols not allowed in MH_DYLIB files
14222 case $cc_basename in
14223 xlc*)
14224 lt_prog_compiler_pic_F77='-qnocommon'
14225 lt_prog_compiler_wl_F77='-Wl,'
14226 ;;
14227 esac
14228 ;;
brynercb91a2f2006-08-25 21:14:45 +000014229
14230 mingw* | pw32* | os2*)
14231 # This hack is so that the source file can tell whether it is being
14232 # built for inclusion in a dll (and should export symbols for example).
14233 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14234 ;;
14235
14236 hpux9* | hpux10* | hpux11*)
14237 lt_prog_compiler_wl_F77='-Wl,'
14238 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14239 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +000014240 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000014241 hppa*64*|ia64*)
14242 # +Z the default
14243 ;;
14244 *)
14245 lt_prog_compiler_pic_F77='+Z'
14246 ;;
14247 esac
14248 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14249 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14250 ;;
14251
14252 irix5* | irix6* | nonstopux*)
14253 lt_prog_compiler_wl_F77='-Wl,'
14254 # PIC (with -KPIC) is the default.
14255 lt_prog_compiler_static_F77='-non_shared'
14256 ;;
14257
14258 newsos6)
14259 lt_prog_compiler_pic_F77='-KPIC'
14260 lt_prog_compiler_static_F77='-Bstatic'
14261 ;;
14262
14263 linux*)
mmentovai8c2a4de2006-09-20 16:20:15 +000014264 case $cc_basename in
brynercb91a2f2006-08-25 21:14:45 +000014265 icc* | ecc*)
14266 lt_prog_compiler_wl_F77='-Wl,'
14267 lt_prog_compiler_pic_F77='-KPIC'
14268 lt_prog_compiler_static_F77='-static'
14269 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014270 pgcc* | pgf77* | pgf90* | pgf95*)
14271 # Portland Group compilers (*not* the Pentium gcc compiler,
14272 # which looks to be a dead project)
14273 lt_prog_compiler_wl_F77='-Wl,'
14274 lt_prog_compiler_pic_F77='-fpic'
14275 lt_prog_compiler_static_F77='-Bstatic'
14276 ;;
brynercb91a2f2006-08-25 21:14:45 +000014277 ccc*)
14278 lt_prog_compiler_wl_F77='-Wl,'
14279 # All Alpha code is PIC.
14280 lt_prog_compiler_static_F77='-non_shared'
14281 ;;
14282 esac
14283 ;;
14284
14285 osf3* | osf4* | osf5*)
14286 lt_prog_compiler_wl_F77='-Wl,'
14287 # All OSF/1 code is PIC.
14288 lt_prog_compiler_static_F77='-non_shared'
14289 ;;
14290
brynercb91a2f2006-08-25 21:14:45 +000014291 solaris*)
brynercb91a2f2006-08-25 21:14:45 +000014292 lt_prog_compiler_pic_F77='-KPIC'
14293 lt_prog_compiler_static_F77='-Bstatic'
mmentovai8c2a4de2006-09-20 16:20:15 +000014294 case $cc_basename in
14295 f77* | f90* | f95*)
14296 lt_prog_compiler_wl_F77='-Qoption ld ';;
14297 *)
14298 lt_prog_compiler_wl_F77='-Wl,';;
14299 esac
brynercb91a2f2006-08-25 21:14:45 +000014300 ;;
14301
14302 sunos4*)
14303 lt_prog_compiler_wl_F77='-Qoption ld '
14304 lt_prog_compiler_pic_F77='-PIC'
14305 lt_prog_compiler_static_F77='-Bstatic'
14306 ;;
14307
mmentovai8c2a4de2006-09-20 16:20:15 +000014308 sysv4 | sysv4.2uw2* | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000014309 lt_prog_compiler_wl_F77='-Wl,'
14310 lt_prog_compiler_pic_F77='-KPIC'
14311 lt_prog_compiler_static_F77='-Bstatic'
14312 ;;
14313
14314 sysv4*MP*)
14315 if test -d /usr/nec ;then
14316 lt_prog_compiler_pic_F77='-Kconform_pic'
14317 lt_prog_compiler_static_F77='-Bstatic'
14318 fi
14319 ;;
14320
mmentovai8c2a4de2006-09-20 16:20:15 +000014321 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14322 lt_prog_compiler_wl_F77='-Wl,'
14323 lt_prog_compiler_pic_F77='-KPIC'
14324 lt_prog_compiler_static_F77='-Bstatic'
14325 ;;
14326
14327 unicos*)
14328 lt_prog_compiler_wl_F77='-Wl,'
14329 lt_prog_compiler_can_build_shared_F77=no
14330 ;;
14331
brynercb91a2f2006-08-25 21:14:45 +000014332 uts4*)
14333 lt_prog_compiler_pic_F77='-pic'
14334 lt_prog_compiler_static_F77='-Bstatic'
14335 ;;
14336
14337 *)
14338 lt_prog_compiler_can_build_shared_F77=no
14339 ;;
14340 esac
14341 fi
14342
mmentovai8c2a4de2006-09-20 16:20:15 +000014343{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14344echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014345
14346#
14347# Check to make sure the PIC flag actually works.
14348#
14349if test -n "$lt_prog_compiler_pic_F77"; then
14350
mmentovai8c2a4de2006-09-20 16:20:15 +000014351{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14352echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014353if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14354 echo $ECHO_N "(cached) $ECHO_C" >&6
14355else
14356 lt_prog_compiler_pic_works_F77=no
14357 ac_outfile=conftest.$ac_objext
14358 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14359 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14360 # Insert the option either (1) after the last *FLAGS variable, or
14361 # (2) before a word containing "conftest.", or (3) at the end.
14362 # Note that $ac_compile itself does not contain backslashes and begins
14363 # with a dollar sign (not a hyphen), so the echo should work correctly.
14364 # The option is referenced via a variable to avoid confusing sed.
14365 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000014366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000014367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14368 -e 's:$: $lt_compiler_flag:'`
mmentovaidb3342a2006-12-05 22:52:28 +000014369 (eval echo "\"\$as_me:14369: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000014370 (eval "$lt_compile" 2>conftest.err)
14371 ac_status=$?
14372 cat conftest.err >&5
mmentovaidb3342a2006-12-05 22:52:28 +000014373 echo "$as_me:14373: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000014374 if (exit $ac_status) && test -s "$ac_outfile"; then
14375 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000014376 # So say no if there are warnings other than the usual output.
14377 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14379 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000014380 lt_prog_compiler_pic_works_F77=yes
14381 fi
14382 fi
14383 $rm conftest*
14384
14385fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014386{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14387echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014388
14389if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14390 case $lt_prog_compiler_pic_F77 in
14391 "" | " "*) ;;
14392 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14393 esac
14394else
14395 lt_prog_compiler_pic_F77=
14396 lt_prog_compiler_can_build_shared_F77=no
14397fi
14398
14399fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014400case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000014401 # For platforms which do not support PIC, -DPIC is meaningless:
14402 *djgpp*)
14403 lt_prog_compiler_pic_F77=
14404 ;;
14405 *)
14406 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14407 ;;
14408esac
14409
mmentovai8c2a4de2006-09-20 16:20:15 +000014410#
14411# Check to make sure the static flag actually works.
14412#
14413wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14414{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14415echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14416if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14418else
14419 lt_prog_compiler_static_works_F77=no
14420 save_LDFLAGS="$LDFLAGS"
14421 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14422 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14423 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14424 # The linker can only warn and ignore the option if not recognized
14425 # So say no if there are warnings
14426 if test -s conftest.err; then
14427 # Append any errors to the config.log.
14428 cat conftest.err 1>&5
14429 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14430 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14431 if diff conftest.exp conftest.er2 >/dev/null; then
14432 lt_prog_compiler_static_works_F77=yes
14433 fi
14434 else
14435 lt_prog_compiler_static_works_F77=yes
14436 fi
14437 fi
14438 $rm conftest*
14439 LDFLAGS="$save_LDFLAGS"
14440
14441fi
14442{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14443echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14444
14445if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14446 :
14447else
14448 lt_prog_compiler_static_F77=
14449fi
14450
14451
14452{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14453echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014454if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14456else
14457 lt_cv_prog_compiler_c_o_F77=no
14458 $rm -r conftest 2>/dev/null
14459 mkdir conftest
14460 cd conftest
14461 mkdir out
14462 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14463
14464 lt_compiler_flag="-o out/conftest2.$ac_objext"
14465 # Insert the option either (1) after the last *FLAGS variable, or
14466 # (2) before a word containing "conftest.", or (3) at the end.
14467 # Note that $ac_compile itself does not contain backslashes and begins
14468 # with a dollar sign (not a hyphen), so the echo should work correctly.
14469 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000014470 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000014471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14472 -e 's:$: $lt_compiler_flag:'`
mmentovaidb3342a2006-12-05 22:52:28 +000014473 (eval echo "\"\$as_me:14473: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000014474 (eval "$lt_compile" 2>out/conftest.err)
14475 ac_status=$?
14476 cat out/conftest.err >&5
mmentovaidb3342a2006-12-05 22:52:28 +000014477 echo "$as_me:14477: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000014478 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14479 then
14480 # The compiler can only warn and ignore the option if not recognized
14481 # So say no if there are warnings
mmentovai8c2a4de2006-09-20 16:20:15 +000014482 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14483 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14484 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000014485 lt_cv_prog_compiler_c_o_F77=yes
14486 fi
14487 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014488 chmod u+w . 2>&5
brynercb91a2f2006-08-25 21:14:45 +000014489 $rm conftest*
14490 # SGI C++ compiler will create directory out/ii_files/ for
14491 # template instantiation
14492 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14493 $rm out/* && rmdir out
14494 cd ..
14495 rmdir conftest
14496 $rm conftest*
14497
14498fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014499{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14500echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014501
14502
14503hard_links="nottested"
14504if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14505 # do not overwrite the value of need_locks provided by the user
mmentovai8c2a4de2006-09-20 16:20:15 +000014506 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14507echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014508 hard_links=yes
14509 $rm conftest*
14510 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14511 touch conftest.a
14512 ln conftest.a conftest.b 2>&5 || hard_links=no
14513 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mmentovai8c2a4de2006-09-20 16:20:15 +000014514 { echo "$as_me:$LINENO: result: $hard_links" >&5
14515echo "${ECHO_T}$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014516 if test "$hard_links" = no; then
14517 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14518echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14519 need_locks=warn
14520 fi
14521else
14522 need_locks=no
14523fi
14524
mmentovai8c2a4de2006-09-20 16:20:15 +000014525{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14526echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014527
14528 runpath_var=
14529 allow_undefined_flag_F77=
14530 enable_shared_with_static_runtimes_F77=no
14531 archive_cmds_F77=
14532 archive_expsym_cmds_F77=
14533 old_archive_From_new_cmds_F77=
14534 old_archive_from_expsyms_cmds_F77=
14535 export_dynamic_flag_spec_F77=
14536 whole_archive_flag_spec_F77=
14537 thread_safe_flag_spec_F77=
14538 hardcode_libdir_flag_spec_F77=
14539 hardcode_libdir_flag_spec_ld_F77=
14540 hardcode_libdir_separator_F77=
14541 hardcode_direct_F77=no
14542 hardcode_minus_L_F77=no
14543 hardcode_shlibpath_var_F77=unsupported
14544 link_all_deplibs_F77=unknown
14545 hardcode_automatic_F77=no
14546 module_cmds_F77=
14547 module_expsym_cmds_F77=
14548 always_export_symbols_F77=no
14549 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14550 # include_expsyms should be a list of space-separated symbols to be *always*
14551 # included in the symbol list
14552 include_expsyms_F77=
14553 # exclude_expsyms can be an extended regexp of symbols to exclude
14554 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14555 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14556 # as well as any symbol that contains `d'.
14557 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14558 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14559 # platforms (ab)use it in PIC code, but their linkers get confused if
14560 # the symbol is explicitly referenced. Since portable code cannot
14561 # rely on this symbol name, it's probably fine to never include it in
14562 # preloaded symbol tables.
14563 extract_expsyms_cmds=
mmentovai8c2a4de2006-09-20 16:20:15 +000014564 # Just being paranoid about ensuring that cc_basename is set.
14565 for cc_temp in $compiler""; do
14566 case $cc_temp in
14567 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14568 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14569 \-*) ;;
14570 *) break;;
14571 esac
14572done
14573cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
brynercb91a2f2006-08-25 21:14:45 +000014574
14575 case $host_os in
14576 cygwin* | mingw* | pw32*)
14577 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14578 # When not using gcc, we currently assume that we are using
14579 # Microsoft Visual C++.
14580 if test "$GCC" != yes; then
14581 with_gnu_ld=no
14582 fi
14583 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014584 interix*)
14585 # we just hope/assume this is gcc and not c89 (= MSVC++)
14586 with_gnu_ld=yes
14587 ;;
brynercb91a2f2006-08-25 21:14:45 +000014588 openbsd*)
14589 with_gnu_ld=no
14590 ;;
14591 esac
14592
14593 ld_shlibs_F77=yes
14594 if test "$with_gnu_ld" = yes; then
14595 # If archive_cmds runs LD, not CC, wlarc should be empty
14596 wlarc='${wl}'
14597
mmentovai8c2a4de2006-09-20 16:20:15 +000014598 # Set some defaults for GNU ld with shared library support. These
14599 # are reset later if shared libraries are not supported. Putting them
14600 # here allows them to be overridden if necessary.
14601 runpath_var=LD_RUN_PATH
14602 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14603 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14604 # ancient GNU ld didn't support --whole-archive et. al.
14605 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14606 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14607 else
14608 whole_archive_flag_spec_F77=
14609 fi
14610 supports_anon_versioning=no
14611 case `$LD -v 2>/dev/null` in
14612 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14613 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14614 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14615 *\ 2.11.*) ;; # other 2.11 versions
14616 *) supports_anon_versioning=yes ;;
14617 esac
14618
brynercb91a2f2006-08-25 21:14:45 +000014619 # See if GNU ld supports shared libraries.
14620 case $host_os in
14621 aix3* | aix4* | aix5*)
14622 # On AIX/PPC, the GNU linker is very broken
14623 if test "$host_cpu" != ia64; then
14624 ld_shlibs_F77=no
14625 cat <<EOF 1>&2
14626
14627*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14628*** to be unable to reliably create shared libraries on AIX.
14629*** Therefore, libtool is disabling shared libraries support. If you
14630*** really care for shared libraries, you may want to modify your PATH
14631*** so that a non-GNU linker is found, and then restart.
14632
14633EOF
14634 fi
14635 ;;
14636
14637 amigaos*)
14638 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14639 hardcode_libdir_flag_spec_F77='-L$libdir'
14640 hardcode_minus_L_F77=yes
14641
14642 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14643 # that the semantics of dynamic libraries on AmigaOS, at least up
14644 # to version 4, is to share data among multiple programs linked
14645 # with the same dynamic library. Since this doesn't match the
14646 # behavior of shared libraries on other platforms, we can't use
14647 # them.
14648 ld_shlibs_F77=no
14649 ;;
14650
14651 beos*)
14652 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14653 allow_undefined_flag_F77=unsupported
14654 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14655 # support --undefined. This deserves some investigation. FIXME
14656 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14657 else
14658 ld_shlibs_F77=no
14659 fi
14660 ;;
14661
14662 cygwin* | mingw* | pw32*)
14663 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14664 # as there is no search path for DLLs.
14665 hardcode_libdir_flag_spec_F77='-L$libdir'
14666 allow_undefined_flag_F77=unsupported
14667 always_export_symbols_F77=no
14668 enable_shared_with_static_runtimes_F77=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014669 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000014670
14671 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000014672 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
brynercb91a2f2006-08-25 21:14:45 +000014673 # If the export-symbols file already is a .def file (1st line
14674 # is EXPORTS), use it as is; otherwise, prepend...
14675 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14676 cp $export_symbols $output_objdir/$soname.def;
14677 else
14678 echo EXPORTS > $output_objdir/$soname.def;
14679 cat $export_symbols >> $output_objdir/$soname.def;
14680 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +000014681 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
brynercb91a2f2006-08-25 21:14:45 +000014682 else
mmentovai8c2a4de2006-09-20 16:20:15 +000014683 ld_shlibs_F77=no
brynercb91a2f2006-08-25 21:14:45 +000014684 fi
14685 ;;
14686
mmentovai8c2a4de2006-09-20 16:20:15 +000014687 interix3*)
14688 hardcode_direct_F77=no
14689 hardcode_shlibpath_var_F77=no
14690 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14691 export_dynamic_flag_spec_F77='${wl}-E'
14692 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14693 # Instead, shared libraries are loaded at an image base (0x10000000 by
14694 # default) and relocated if they conflict, which is a slow very memory
14695 # consuming and fragmenting process. To avoid this, we pick a random,
14696 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14697 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14698 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14699 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14700 ;;
14701
14702 linux*)
14703 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14704 tmp_addflag=
14705 case $cc_basename,$host_cpu in
14706 pgcc*) # Portland Group C compiler
14707 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14708 tmp_addflag=' $pic_flag'
14709 ;;
14710 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14711 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14712 tmp_addflag=' $pic_flag -Mnomain' ;;
14713 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14714 tmp_addflag=' -i_dynamic' ;;
14715 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14716 tmp_addflag=' -i_dynamic -nofor_main' ;;
14717 ifc* | ifort*) # Intel Fortran compiler
14718 tmp_addflag=' -nofor_main' ;;
14719 esac
14720 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14721
14722 if test $supports_anon_versioning = yes; then
14723 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14724 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14725 $echo "local: *; };" >> $output_objdir/$libname.ver~
14726 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14727 fi
14728 else
14729 ld_shlibs_F77=no
14730 fi
14731 ;;
14732
14733 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000014734 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14735 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14736 wlarc=
14737 else
14738 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14739 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14740 fi
14741 ;;
14742
mmentovai8c2a4de2006-09-20 16:20:15 +000014743 solaris*)
brynercb91a2f2006-08-25 21:14:45 +000014744 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14745 ld_shlibs_F77=no
14746 cat <<EOF 1>&2
14747
14748*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14749*** create shared libraries on Solaris systems. Therefore, libtool
14750*** is disabling shared libraries support. We urge you to upgrade GNU
14751*** binutils to release 2.9.1 or newer. Another option is to modify
14752*** your PATH or compiler configuration so that the native linker is
14753*** used, and then restart.
14754
14755EOF
14756 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14757 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14758 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14759 else
14760 ld_shlibs_F77=no
14761 fi
14762 ;;
14763
mmentovai8c2a4de2006-09-20 16:20:15 +000014764 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14765 case `$LD -v 2>&1` in
14766 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14767 ld_shlibs_F77=no
14768 cat <<_LT_EOF 1>&2
14769
14770*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14771*** reliably create shared libraries on SCO systems. Therefore, libtool
14772*** is disabling shared libraries support. We urge you to upgrade GNU
14773*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14774*** your PATH or compiler configuration so that the native linker is
14775*** used, and then restart.
14776
14777_LT_EOF
14778 ;;
14779 *)
14780 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14781 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14782 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14783 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14784 else
14785 ld_shlibs_F77=no
14786 fi
14787 ;;
14788 esac
14789 ;;
14790
brynercb91a2f2006-08-25 21:14:45 +000014791 sunos4*)
14792 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14793 wlarc=
14794 hardcode_direct_F77=yes
14795 hardcode_shlibpath_var_F77=no
14796 ;;
14797
brynercb91a2f2006-08-25 21:14:45 +000014798 *)
14799 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14800 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14801 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14802 else
14803 ld_shlibs_F77=no
14804 fi
14805 ;;
14806 esac
14807
mmentovai8c2a4de2006-09-20 16:20:15 +000014808 if test "$ld_shlibs_F77" = no; then
14809 runpath_var=
14810 hardcode_libdir_flag_spec_F77=
14811 export_dynamic_flag_spec_F77=
14812 whole_archive_flag_spec_F77=
brynercb91a2f2006-08-25 21:14:45 +000014813 fi
14814 else
14815 # PORTME fill in a description of your system's linker (not GNU ld)
14816 case $host_os in
14817 aix3*)
14818 allow_undefined_flag_F77=unsupported
14819 always_export_symbols_F77=yes
14820 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14821 # Note: this linker hardcodes the directories in LIBPATH if there
14822 # are no directories specified by -L.
14823 hardcode_minus_L_F77=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014824 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
brynercb91a2f2006-08-25 21:14:45 +000014825 # Neither direct hardcoding nor static linking is supported with a
14826 # broken collect2.
14827 hardcode_direct_F77=unsupported
14828 fi
14829 ;;
14830
14831 aix4* | aix5*)
14832 if test "$host_cpu" = ia64; then
14833 # On IA64, the linker does run time linking by default, so we don't
14834 # have to do anything special.
14835 aix_use_runtimelinking=no
14836 exp_sym_flag='-Bexport'
14837 no_entry_flag=""
14838 else
14839 # If we're using GNU nm, then we don't want the "-C" option.
14840 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14841 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14842 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14843 else
14844 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14845 fi
14846 aix_use_runtimelinking=no
14847
14848 # Test if we are trying to use run time linking or normal
14849 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14850 # need to do runtime linking.
14851 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14852 for ld_flag in $LDFLAGS; do
14853 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14854 aix_use_runtimelinking=yes
14855 break
14856 fi
14857 done
mmentovai8c2a4de2006-09-20 16:20:15 +000014858 ;;
brynercb91a2f2006-08-25 21:14:45 +000014859 esac
14860
14861 exp_sym_flag='-bexport'
14862 no_entry_flag='-bnoentry'
14863 fi
14864
14865 # When large executables or shared objects are built, AIX ld can
14866 # have problems creating the table of contents. If linking a library
14867 # or program results in "error TOC overflow" add -mminimal-toc to
14868 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14869 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14870
14871 archive_cmds_F77=''
14872 hardcode_direct_F77=yes
14873 hardcode_libdir_separator_F77=':'
14874 link_all_deplibs_F77=yes
14875
14876 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000014877 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +000014878 # We only want to do this on AIX 4.2 and lower, the check
14879 # below for broken collect2 doesn't work under 4.3+
14880 collect2name=`${CC} -print-prog-name=collect2`
14881 if test -f "$collect2name" && \
14882 strings "$collect2name" | grep resolve_lib_name >/dev/null
14883 then
14884 # We have reworked collect2
14885 hardcode_direct_F77=yes
14886 else
14887 # We have old collect2
14888 hardcode_direct_F77=unsupported
14889 # It fails to find uninstalled libraries when the uninstalled
14890 # path is not listed in the libpath. Setting hardcode_minus_L
14891 # to unsupported forces relinking
14892 hardcode_minus_L_F77=yes
14893 hardcode_libdir_flag_spec_F77='-L$libdir'
14894 hardcode_libdir_separator_F77=
14895 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014896 ;;
brynercb91a2f2006-08-25 21:14:45 +000014897 esac
14898 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +000014899 if test "$aix_use_runtimelinking" = yes; then
14900 shared_flag="$shared_flag "'${wl}-G'
14901 fi
brynercb91a2f2006-08-25 21:14:45 +000014902 else
14903 # not using gcc
14904 if test "$host_cpu" = ia64; then
14905 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14906 # chokes on -Wl,-G. The following line is correct:
14907 shared_flag='-G'
14908 else
mmentovai8c2a4de2006-09-20 16:20:15 +000014909 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000014910 shared_flag='${wl}-G'
14911 else
14912 shared_flag='${wl}-bM:SRE'
mmentovai8c2a4de2006-09-20 16:20:15 +000014913 fi
brynercb91a2f2006-08-25 21:14:45 +000014914 fi
14915 fi
14916
14917 # It seems that -bexpall does not export symbols beginning with
14918 # underscore (_), so it is better to generate a list of symbols to export.
14919 always_export_symbols_F77=yes
14920 if test "$aix_use_runtimelinking" = yes; then
14921 # Warning - without using the other runtime loading flags (-brtl),
14922 # -berok will link without error, but may produce a broken library.
14923 allow_undefined_flag_F77='-berok'
14924 # Determine the default libpath from the value encoded in an empty executable.
14925 cat >conftest.$ac_ext <<_ACEOF
14926 program main
14927
14928 end
14929_ACEOF
14930rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000014931if { (ac_try="$ac_link"
14932case "(($ac_try" in
14933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14934 *) ac_try_echo=$ac_try;;
14935esac
14936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14937 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000014938 ac_status=$?
14939 grep -v '^ *+' conftest.er1 >conftest.err
14940 rm -f conftest.er1
14941 cat conftest.err >&5
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +000014944 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14945 { (case "(($ac_try" in
14946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14947 *) ac_try_echo=$ac_try;;
14948esac
14949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14950 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000014951 ac_status=$?
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; } &&
14954 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000014955 { (case "(($ac_try" in
14956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957 *) ac_try_echo=$ac_try;;
14958esac
14959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000014961 ac_status=$?
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); }; }; then
14964
14965aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14966}'`
14967# Check for a 64-bit object if we didn't find anything.
14968if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14969}'`; fi
14970else
14971 echo "$as_me: failed program was:" >&5
14972sed 's/^/| /' conftest.$ac_ext >&5
14973
mmentovai8c2a4de2006-09-20 16:20:15 +000014974
brynercb91a2f2006-08-25 21:14:45 +000014975fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014976
14977rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +000014978 conftest$ac_exeext conftest.$ac_ext
14979if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14980
14981 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
mmentovai8c2a4de2006-09-20 16:20:15 +000014982 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
brynercb91a2f2006-08-25 21:14:45 +000014983 else
14984 if test "$host_cpu" = ia64; then
14985 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14986 allow_undefined_flag_F77="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +000014987 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
brynercb91a2f2006-08-25 21:14:45 +000014988 else
14989 # Determine the default libpath from the value encoded in an empty executable.
14990 cat >conftest.$ac_ext <<_ACEOF
14991 program main
14992
14993 end
14994_ACEOF
14995rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000014996if { (ac_try="$ac_link"
14997case "(($ac_try" in
14998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999 *) ac_try_echo=$ac_try;;
15000esac
15001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000015003 ac_status=$?
15004 grep -v '^ *+' conftest.er1 >conftest.err
15005 rm -f conftest.er1
15006 cat conftest.err >&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +000015009 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15010 { (case "(($ac_try" in
15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012 *) ac_try_echo=$ac_try;;
15013esac
15014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000015016 ac_status=$?
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; } &&
15019 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000015020 { (case "(($ac_try" in
15021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15022 *) ac_try_echo=$ac_try;;
15023esac
15024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15025 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000015026 ac_status=$?
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); }; }; then
15029
15030aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15031}'`
15032# Check for a 64-bit object if we didn't find anything.
15033if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15034}'`; fi
15035else
15036 echo "$as_me: failed program was:" >&5
15037sed 's/^/| /' conftest.$ac_ext >&5
15038
mmentovai8c2a4de2006-09-20 16:20:15 +000015039
brynercb91a2f2006-08-25 21:14:45 +000015040fi
mmentovai8c2a4de2006-09-20 16:20:15 +000015041
15042rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +000015043 conftest$ac_exeext conftest.$ac_ext
15044if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15045
15046 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15047 # Warning - without using the other run time loading flags,
15048 # -berok will link without error, but may produce a broken library.
15049 no_undefined_flag_F77=' ${wl}-bernotok'
15050 allow_undefined_flag_F77=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +000015051 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +000015052 whole_archive_flag_spec_F77='$convenience'
brynercb91a2f2006-08-25 21:14:45 +000015053 archive_cmds_need_lc_F77=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000015054 # This is similar to how AIX traditionally builds its shared libraries.
15055 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
brynercb91a2f2006-08-25 21:14:45 +000015056 fi
15057 fi
15058 ;;
15059
15060 amigaos*)
15061 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15062 hardcode_libdir_flag_spec_F77='-L$libdir'
15063 hardcode_minus_L_F77=yes
15064 # see comment about different semantics on the GNU ld section
15065 ld_shlibs_F77=no
15066 ;;
15067
mmentovai8c2a4de2006-09-20 16:20:15 +000015068 bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000015069 export_dynamic_flag_spec_F77=-rdynamic
15070 ;;
15071
15072 cygwin* | mingw* | pw32*)
15073 # When not using gcc, we currently assume that we are using
15074 # Microsoft Visual C++.
15075 # hardcode_libdir_flag_spec is actually meaningless, as there is
15076 # no search path for DLLs.
15077 hardcode_libdir_flag_spec_F77=' '
15078 allow_undefined_flag_F77=unsupported
15079 # Tell ltmain to make .lib files, not .a files.
15080 libext=lib
15081 # Tell ltmain to make .dll files, not .so files.
15082 shrext_cmds=".dll"
15083 # FIXME: Setting linknames here is a bad hack.
15084 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15085 # The linker will automatically build a .lib file if we build a DLL.
15086 old_archive_From_new_cmds_F77='true'
15087 # FIXME: Should let the user specify the lib program.
15088 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
mmentovai8c2a4de2006-09-20 16:20:15 +000015089 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
brynercb91a2f2006-08-25 21:14:45 +000015090 enable_shared_with_static_runtimes_F77=yes
15091 ;;
15092
15093 darwin* | rhapsody*)
mmentovai8c2a4de2006-09-20 16:20:15 +000015094 case $host_os in
15095 rhapsody* | darwin1.[012])
15096 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15097 ;;
15098 *) # Darwin 1.3 on
15099 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15100 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15101 else
15102 case ${MACOSX_DEPLOYMENT_TARGET} in
15103 10.[012])
15104 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15105 ;;
15106 10.*)
15107 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15108 ;;
15109 esac
15110 fi
15111 ;;
brynerd5e66382006-09-08 02:35:53 +000015112 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000015113 archive_cmds_need_lc_F77=no
brynercb91a2f2006-08-25 21:14:45 +000015114 hardcode_direct_F77=no
15115 hardcode_automatic_F77=yes
15116 hardcode_shlibpath_var_F77=unsupported
mmentovai8c2a4de2006-09-20 16:20:15 +000015117 whole_archive_flag_spec_F77=''
brynercb91a2f2006-08-25 21:14:45 +000015118 link_all_deplibs_F77=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000015119 if test "$GCC" = yes ; then
15120 output_verbose_link_cmd='echo'
15121 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15122 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15123 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15124 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15125 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
brynercb91a2f2006-08-25 21:14:45 +000015126 else
mmentovai8c2a4de2006-09-20 16:20:15 +000015127 case $cc_basename in
15128 xlc*)
15129 output_verbose_link_cmd='echo'
15130 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15131 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15132 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15133 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15134 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15135 ;;
15136 *)
15137 ld_shlibs_F77=no
15138 ;;
15139 esac
brynercb91a2f2006-08-25 21:14:45 +000015140 fi
15141 ;;
15142
15143 dgux*)
15144 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15145 hardcode_libdir_flag_spec_F77='-L$libdir'
15146 hardcode_shlibpath_var_F77=no
15147 ;;
15148
15149 freebsd1*)
15150 ld_shlibs_F77=no
15151 ;;
15152
15153 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15154 # support. Future versions do this automatically, but an explicit c++rt0.o
15155 # does not break anything, and helps significantly (at the cost of a little
15156 # extra space).
15157 freebsd2.2*)
15158 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15159 hardcode_libdir_flag_spec_F77='-R$libdir'
15160 hardcode_direct_F77=yes
15161 hardcode_shlibpath_var_F77=no
15162 ;;
15163
15164 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15165 freebsd2*)
15166 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15167 hardcode_direct_F77=yes
15168 hardcode_minus_L_F77=yes
15169 hardcode_shlibpath_var_F77=no
15170 ;;
15171
15172 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mmentovai8c2a4de2006-09-20 16:20:15 +000015173 freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000015174 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15175 hardcode_libdir_flag_spec_F77='-R$libdir'
15176 hardcode_direct_F77=yes
15177 hardcode_shlibpath_var_F77=no
15178 ;;
15179
15180 hpux9*)
15181 if test "$GCC" = yes; then
15182 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15183 else
15184 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15185 fi
15186 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15187 hardcode_libdir_separator_F77=:
15188 hardcode_direct_F77=yes
15189
15190 # hardcode_minus_L: Not really in the search PATH,
15191 # but as the default location of the library.
15192 hardcode_minus_L_F77=yes
15193 export_dynamic_flag_spec_F77='${wl}-E'
15194 ;;
15195
mmentovai8c2a4de2006-09-20 16:20:15 +000015196 hpux10*)
brynercb91a2f2006-08-25 21:14:45 +000015197 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000015198 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15199 else
15200 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15201 fi
15202 if test "$with_gnu_ld" = no; then
15203 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15204 hardcode_libdir_separator_F77=:
15205
15206 hardcode_direct_F77=yes
15207 export_dynamic_flag_spec_F77='${wl}-E'
15208
15209 # hardcode_minus_L: Not really in the search PATH,
15210 # but as the default location of the library.
15211 hardcode_minus_L_F77=yes
15212 fi
15213 ;;
15214
15215 hpux11*)
15216 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15217 case $host_cpu in
15218 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +000015219 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15220 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015221 ia64*)
15222 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15223 ;;
brynercb91a2f2006-08-25 21:14:45 +000015224 *)
15225 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15226 ;;
15227 esac
15228 else
mmentovai8c2a4de2006-09-20 16:20:15 +000015229 case $host_cpu in
15230 hppa*64*)
15231 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15232 ;;
15233 ia64*)
15234 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000015235 ;;
15236 *)
mmentovai8c2a4de2006-09-20 16:20:15 +000015237 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000015238 ;;
15239 esac
15240 fi
15241 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000015242 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15243 hardcode_libdir_separator_F77=:
brynerd5e66382006-09-08 02:35:53 +000015244
mmentovai8c2a4de2006-09-20 16:20:15 +000015245 case $host_cpu in
15246 hppa*64*|ia64*)
15247 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15248 hardcode_direct_F77=no
15249 hardcode_shlibpath_var_F77=no
brynerd5e66382006-09-08 02:35:53 +000015250 ;;
brynercb91a2f2006-08-25 21:14:45 +000015251 *)
brynercb91a2f2006-08-25 21:14:45 +000015252 hardcode_direct_F77=yes
15253 export_dynamic_flag_spec_F77='${wl}-E'
15254
15255 # hardcode_minus_L: Not really in the search PATH,
15256 # but as the default location of the library.
15257 hardcode_minus_L_F77=yes
15258 ;;
15259 esac
15260 fi
15261 ;;
15262
15263 irix5* | irix6* | nonstopux*)
15264 if test "$GCC" = yes; then
15265 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15266 else
15267 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15268 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15269 fi
15270 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15271 hardcode_libdir_separator_F77=:
15272 link_all_deplibs_F77=yes
15273 ;;
15274
mmentovai8c2a4de2006-09-20 16:20:15 +000015275 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000015276 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15277 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15278 else
15279 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15280 fi
15281 hardcode_libdir_flag_spec_F77='-R$libdir'
15282 hardcode_direct_F77=yes
15283 hardcode_shlibpath_var_F77=no
15284 ;;
15285
15286 newsos6)
15287 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15288 hardcode_direct_F77=yes
15289 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15290 hardcode_libdir_separator_F77=:
15291 hardcode_shlibpath_var_F77=no
15292 ;;
15293
15294 openbsd*)
15295 hardcode_direct_F77=yes
15296 hardcode_shlibpath_var_F77=no
15297 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15298 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +000015299 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000015300 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15301 export_dynamic_flag_spec_F77='${wl}-E'
15302 else
15303 case $host_os in
15304 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15305 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15306 hardcode_libdir_flag_spec_F77='-R$libdir'
15307 ;;
15308 *)
15309 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15310 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15311 ;;
15312 esac
15313 fi
15314 ;;
15315
15316 os2*)
15317 hardcode_libdir_flag_spec_F77='-L$libdir'
15318 hardcode_minus_L_F77=yes
15319 allow_undefined_flag_F77=unsupported
15320 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15321 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15322 ;;
15323
15324 osf3*)
15325 if test "$GCC" = yes; then
15326 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15327 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15328 else
15329 allow_undefined_flag_F77=' -expect_unresolved \*'
15330 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15331 fi
15332 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15333 hardcode_libdir_separator_F77=:
15334 ;;
15335
15336 osf4* | osf5*) # as osf3* with the addition of -msym flag
15337 if test "$GCC" = yes; then
15338 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15339 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15340 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15341 else
15342 allow_undefined_flag_F77=' -expect_unresolved \*'
15343 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15344 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
mmentovai8c2a4de2006-09-20 16:20:15 +000015345 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
brynercb91a2f2006-08-25 21:14:45 +000015346
15347 # Both c and cxx compiler support -rpath directly
15348 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15349 fi
15350 hardcode_libdir_separator_F77=:
15351 ;;
15352
brynercb91a2f2006-08-25 21:14:45 +000015353 solaris*)
15354 no_undefined_flag_F77=' -z text'
15355 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000015356 wlarc='${wl}'
brynercb91a2f2006-08-25 21:14:45 +000015357 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15358 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15359 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15360 else
mmentovai8c2a4de2006-09-20 16:20:15 +000015361 wlarc=''
brynercb91a2f2006-08-25 21:14:45 +000015362 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15363 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15364 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15365 fi
15366 hardcode_libdir_flag_spec_F77='-R$libdir'
15367 hardcode_shlibpath_var_F77=no
15368 case $host_os in
15369 solaris2.[0-5] | solaris2.[0-5].*) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015370 *)
15371 # The compiler driver will combine linker options so we
15372 # cannot just pass the convience library names through
15373 # without $wl, iff we do not link with $LD.
15374 # Luckily, gcc supports the same syntax we need for Sun Studio.
15375 # Supported since Solaris 2.6 (maybe 2.5.1?)
15376 case $wlarc in
15377 '')
15378 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15379 *)
15380 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15381 esac ;;
brynercb91a2f2006-08-25 21:14:45 +000015382 esac
15383 link_all_deplibs_F77=yes
15384 ;;
15385
15386 sunos4*)
15387 if test "x$host_vendor" = xsequent; then
15388 # Use $CC to link under sequent, because it throws in some extra .o
15389 # files that make .init and .fini sections work.
15390 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15391 else
15392 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15393 fi
15394 hardcode_libdir_flag_spec_F77='-L$libdir'
15395 hardcode_direct_F77=yes
15396 hardcode_minus_L_F77=yes
15397 hardcode_shlibpath_var_F77=no
15398 ;;
15399
15400 sysv4)
15401 case $host_vendor in
15402 sni)
15403 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15404 hardcode_direct_F77=yes # is this really true???
15405 ;;
15406 siemens)
15407 ## LD is ld it makes a PLAMLIB
15408 ## CC just makes a GrossModule.
15409 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15410 reload_cmds_F77='$CC -r -o $output$reload_objs'
15411 hardcode_direct_F77=no
15412 ;;
15413 motorola)
15414 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15415 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15416 ;;
15417 esac
15418 runpath_var='LD_RUN_PATH'
15419 hardcode_shlibpath_var_F77=no
15420 ;;
15421
15422 sysv4.3*)
15423 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15424 hardcode_shlibpath_var_F77=no
15425 export_dynamic_flag_spec_F77='-Bexport'
15426 ;;
15427
15428 sysv4*MP*)
15429 if test -d /usr/nec; then
15430 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15431 hardcode_shlibpath_var_F77=no
15432 runpath_var=LD_RUN_PATH
15433 hardcode_runpath_var=yes
15434 ld_shlibs_F77=yes
15435 fi
15436 ;;
15437
mmentovai8c2a4de2006-09-20 16:20:15 +000015438 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15439 no_undefined_flag_F77='${wl}-z,text'
15440 archive_cmds_need_lc_F77=no
brynercb91a2f2006-08-25 21:14:45 +000015441 hardcode_shlibpath_var_F77=no
mmentovai8c2a4de2006-09-20 16:20:15 +000015442 runpath_var='LD_RUN_PATH'
bryner07f8ef52006-09-05 19:42:57 +000015443
mmentovai3261e8b2006-09-06 02:56:44 +000015444 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000015445 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15446 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +000015447 else
mmentovai8c2a4de2006-09-20 16:20:15 +000015448 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15449 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +000015450 fi
brynerd5e66382006-09-08 02:35:53 +000015451 ;;
15452
mmentovai8c2a4de2006-09-20 16:20:15 +000015453 sysv5* | sco3.2v5* | sco5v6*)
15454 # Note: We can NOT use -z defs as we might desire, because we do not
15455 # link with -lc, and that would cause any symbols used from libc to
15456 # always be unresolved, which means just about no library would
15457 # ever link correctly. If we're not using GNU ld we use -z text
15458 # though, which does catch some bad symbols but isn't as heavy-handed
15459 # as -z defs.
15460 no_undefined_flag_F77='${wl}-z,text'
15461 allow_undefined_flag_F77='${wl}-z,nodefs'
15462 archive_cmds_need_lc_F77=no
brynerd5e66382006-09-08 02:35:53 +000015463 hardcode_shlibpath_var_F77=no
mmentovai8c2a4de2006-09-20 16:20:15 +000015464 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15465 hardcode_libdir_separator_F77=':'
15466 link_all_deplibs_F77=yes
15467 export_dynamic_flag_spec_F77='${wl}-Bexport'
brynerd5e66382006-09-08 02:35:53 +000015468 runpath_var='LD_RUN_PATH'
mmentovai8c2a4de2006-09-20 16:20:15 +000015469
15470 if test "$GCC" = yes; then
15471 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15472 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15473 else
15474 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15475 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15476 fi
brynercb91a2f2006-08-25 21:14:45 +000015477 ;;
15478
15479 uts4*)
15480 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15481 hardcode_libdir_flag_spec_F77='-L$libdir'
15482 hardcode_shlibpath_var_F77=no
15483 ;;
15484
15485 *)
15486 ld_shlibs_F77=no
15487 ;;
15488 esac
15489 fi
15490
mmentovai8c2a4de2006-09-20 16:20:15 +000015491{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15492echo "${ECHO_T}$ld_shlibs_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000015493test "$ld_shlibs_F77" = no && can_build_shared=no
15494
brynercb91a2f2006-08-25 21:14:45 +000015495#
15496# Do we need to explicitly link libc?
15497#
15498case "x$archive_cmds_need_lc_F77" in
15499x|xyes)
15500 # Assume -lc should be added
15501 archive_cmds_need_lc_F77=yes
15502
15503 if test "$enable_shared" = yes && test "$GCC" = yes; then
15504 case $archive_cmds_F77 in
15505 *'~'*)
15506 # FIXME: we may have to deal with multi-command sequences.
15507 ;;
15508 '$CC '*)
15509 # Test whether the compiler implicitly links with -lc since on some
15510 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15511 # to ld, don't add -lc before -lgcc.
mmentovai8c2a4de2006-09-20 16:20:15 +000015512 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15513echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000015514 $rm conftest*
15515 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15516
15517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15518 (eval $ac_compile) 2>&5
15519 ac_status=$?
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); } 2>conftest.err; then
15522 soname=conftest
15523 lib=conftest
15524 libobjs=conftest.$ac_objext
15525 deplibs=
15526 wl=$lt_prog_compiler_wl_F77
mmentovai8c2a4de2006-09-20 16:20:15 +000015527 pic_flag=$lt_prog_compiler_pic_F77
brynercb91a2f2006-08-25 21:14:45 +000015528 compiler_flags=-v
15529 linker_flags=-v
15530 verstring=
15531 output_objdir=.
15532 libname=conftest
15533 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15534 allow_undefined_flag_F77=
15535 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15536 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15537 ac_status=$?
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }
15540 then
15541 archive_cmds_need_lc_F77=no
15542 else
15543 archive_cmds_need_lc_F77=yes
15544 fi
15545 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15546 else
15547 cat conftest.err 1>&5
15548 fi
15549 $rm conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000015550 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15551echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000015552 ;;
15553 esac
15554 fi
15555 ;;
15556esac
15557
mmentovai8c2a4de2006-09-20 16:20:15 +000015558{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15559echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000015560library_names_spec=
15561libname_spec='lib$name'
15562soname_spec=
15563shrext_cmds=".so"
15564postinstall_cmds=
15565postuninstall_cmds=
15566finish_cmds=
15567finish_eval=
15568shlibpath_var=
15569shlibpath_overrides_runpath=unknown
15570version_type=none
15571dynamic_linker="$host_os ld.so"
15572sys_lib_dlsearch_path_spec="/lib /usr/lib"
15573if test "$GCC" = yes; then
15574 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15575 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15576 # if the path contains ";" then we assume it to be the separator
15577 # otherwise default to the standard path separator (i.e. ":") - it is
15578 # assumed that no part of a normal pathname contains ";" but that should
15579 # okay in the real world where ";" in dirpaths is itself problematic.
15580 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15581 else
15582 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15583 fi
15584else
15585 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15586fi
15587need_lib_prefix=unknown
15588hardcode_into_libs=no
15589
15590# when you set need_version to no, make sure it does not cause -set_version
15591# flags to be left without arguments
15592need_version=unknown
15593
15594case $host_os in
15595aix3*)
15596 version_type=linux
15597 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15598 shlibpath_var=LIBPATH
15599
15600 # AIX 3 has no versioning support, so we append a major version to the name.
15601 soname_spec='${libname}${release}${shared_ext}$major'
15602 ;;
15603
15604aix4* | aix5*)
15605 version_type=linux
15606 need_lib_prefix=no
15607 need_version=no
15608 hardcode_into_libs=yes
15609 if test "$host_cpu" = ia64; then
15610 # AIX 5 supports IA64
15611 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15612 shlibpath_var=LD_LIBRARY_PATH
15613 else
15614 # With GCC up to 2.95.x, collect2 would create an import file
15615 # for dependence libraries. The import file would start with
15616 # the line `#! .'. This would cause the generated library to
15617 # depend on `.', always an invalid library. This was fixed in
15618 # development snapshots of GCC prior to 3.0.
15619 case $host_os in
15620 aix4 | aix4.[01] | aix4.[01].*)
15621 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15622 echo ' yes '
15623 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15624 :
15625 else
15626 can_build_shared=no
15627 fi
15628 ;;
15629 esac
15630 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15631 # soname into executable. Probably we can add versioning support to
15632 # collect2, so additional links can be useful in future.
15633 if test "$aix_use_runtimelinking" = yes; then
15634 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15635 # instead of lib<name>.a to let people know that these are not
15636 # typical AIX shared libraries.
15637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15638 else
15639 # We preserve .a as extension for shared libraries through AIX4.2
15640 # and later when we are not doing run time linking.
15641 library_names_spec='${libname}${release}.a $libname.a'
15642 soname_spec='${libname}${release}${shared_ext}$major'
15643 fi
15644 shlibpath_var=LIBPATH
15645 fi
15646 ;;
15647
15648amigaos*)
15649 library_names_spec='$libname.ixlibrary $libname.a'
15650 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15651 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'
15652 ;;
15653
15654beos*)
15655 library_names_spec='${libname}${shared_ext}'
15656 dynamic_linker="$host_os ld.so"
15657 shlibpath_var=LIBRARY_PATH
15658 ;;
15659
mmentovai8c2a4de2006-09-20 16:20:15 +000015660bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000015661 version_type=linux
15662 need_version=no
15663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15664 soname_spec='${libname}${release}${shared_ext}$major'
15665 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15666 shlibpath_var=LD_LIBRARY_PATH
15667 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15668 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15669 # the default ld.so.conf also contains /usr/contrib/lib and
15670 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15671 # libtool to hard-code these into programs
15672 ;;
15673
15674cygwin* | mingw* | pw32*)
15675 version_type=windows
15676 shrext_cmds=".dll"
15677 need_version=no
15678 need_lib_prefix=no
15679
15680 case $GCC,$host_os in
15681 yes,cygwin* | yes,mingw* | yes,pw32*)
15682 library_names_spec='$libname.dll.a'
15683 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15684 postinstall_cmds='base_file=`basename \${file}`~
15685 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15686 dldir=$destdir/`dirname \$dlpath`~
15687 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000015688 $install_prog $dir/$dlname \$dldir/$dlname~
15689 chmod a+x \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +000015690 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15691 dlpath=$dir/\$dldll~
15692 $rm \$dlpath'
15693 shlibpath_overrides_runpath=yes
15694
15695 case $host_os in
15696 cygwin*)
15697 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15698 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15699 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15700 ;;
15701 mingw*)
15702 # MinGW DLLs use traditional 'lib' prefix
15703 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15704 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15705 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15706 # It is most probably a Windows format PATH printed by
15707 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15708 # path with ; separators, and with drive letters. We can handle the
15709 # drive letters (cygwin fileutils understands them), so leave them,
15710 # especially as we might pass files found there to a mingw objdump,
15711 # which wouldn't understand a cygwinified path. Ahh.
15712 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15713 else
15714 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15715 fi
15716 ;;
15717 pw32*)
15718 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000015719 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
brynercb91a2f2006-08-25 21:14:45 +000015720 ;;
15721 esac
15722 ;;
15723
15724 *)
15725 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15726 ;;
15727 esac
15728 dynamic_linker='Win32 ld.exe'
15729 # FIXME: first we should search . and the directory the executable is in
15730 shlibpath_var=PATH
15731 ;;
15732
15733darwin* | rhapsody*)
15734 dynamic_linker="$host_os dyld"
15735 version_type=darwin
15736 need_lib_prefix=no
15737 need_version=no
15738 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15739 soname_spec='${libname}${release}${major}$shared_ext'
15740 shlibpath_overrides_runpath=yes
15741 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000015742 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
brynercb91a2f2006-08-25 21:14:45 +000015743 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15744 if test "$GCC" = yes; then
15745 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15746 else
15747 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15748 fi
15749 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15750 ;;
15751
15752dgux*)
15753 version_type=linux
15754 need_lib_prefix=no
15755 need_version=no
15756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15757 soname_spec='${libname}${release}${shared_ext}$major'
15758 shlibpath_var=LD_LIBRARY_PATH
15759 ;;
15760
15761freebsd1*)
15762 dynamic_linker=no
15763 ;;
15764
15765kfreebsd*-gnu)
15766 version_type=linux
15767 need_lib_prefix=no
15768 need_version=no
15769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15770 soname_spec='${libname}${release}${shared_ext}$major'
15771 shlibpath_var=LD_LIBRARY_PATH
15772 shlibpath_overrides_runpath=no
15773 hardcode_into_libs=yes
15774 dynamic_linker='GNU ld.so'
15775 ;;
15776
mmentovai8c2a4de2006-09-20 16:20:15 +000015777freebsd* | dragonfly*)
15778 # DragonFly does not have aout. When/if they implement a new
15779 # versioning mechanism, adjust this.
15780 if test -x /usr/bin/objformat; then
15781 objformat=`/usr/bin/objformat`
15782 else
15783 case $host_os in
15784 freebsd[123]*) objformat=aout ;;
15785 *) objformat=elf ;;
15786 esac
15787 fi
brynercb91a2f2006-08-25 21:14:45 +000015788 version_type=freebsd-$objformat
15789 case $version_type in
15790 freebsd-elf*)
15791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15792 need_version=no
15793 need_lib_prefix=no
15794 ;;
15795 freebsd-*)
15796 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15797 need_version=yes
15798 ;;
15799 esac
15800 shlibpath_var=LD_LIBRARY_PATH
15801 case $host_os in
15802 freebsd2*)
15803 shlibpath_overrides_runpath=yes
15804 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015805 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000015806 shlibpath_overrides_runpath=yes
15807 hardcode_into_libs=yes
15808 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015809 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15810 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000015811 shlibpath_overrides_runpath=no
15812 hardcode_into_libs=yes
15813 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015814 freebsd*) # from 4.6 on
15815 shlibpath_overrides_runpath=yes
15816 hardcode_into_libs=yes
15817 ;;
brynercb91a2f2006-08-25 21:14:45 +000015818 esac
15819 ;;
15820
15821gnu*)
15822 version_type=linux
15823 need_lib_prefix=no
15824 need_version=no
15825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15826 soname_spec='${libname}${release}${shared_ext}$major'
15827 shlibpath_var=LD_LIBRARY_PATH
15828 hardcode_into_libs=yes
15829 ;;
15830
15831hpux9* | hpux10* | hpux11*)
15832 # Give a soname corresponding to the major version so that dld.sl refuses to
15833 # link against other versions.
15834 version_type=sunos
15835 need_lib_prefix=no
15836 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000015837 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000015838 ia64*)
15839 shrext_cmds='.so'
15840 hardcode_into_libs=yes
15841 dynamic_linker="$host_os dld.so"
15842 shlibpath_var=LD_LIBRARY_PATH
15843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15845 soname_spec='${libname}${release}${shared_ext}$major'
15846 if test "X$HPUX_IA64_MODE" = X32; then
15847 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15848 else
15849 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15850 fi
15851 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15852 ;;
15853 hppa*64*)
15854 shrext_cmds='.sl'
15855 hardcode_into_libs=yes
15856 dynamic_linker="$host_os dld.sl"
15857 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15858 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15860 soname_spec='${libname}${release}${shared_ext}$major'
15861 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15863 ;;
15864 *)
15865 shrext_cmds='.sl'
15866 dynamic_linker="$host_os dld.sl"
15867 shlibpath_var=SHLIB_PATH
15868 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15870 soname_spec='${libname}${release}${shared_ext}$major'
15871 ;;
15872 esac
15873 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15874 postinstall_cmds='chmod 555 $lib'
15875 ;;
15876
mmentovai8c2a4de2006-09-20 16:20:15 +000015877interix3*)
15878 version_type=linux
15879 need_lib_prefix=no
15880 need_version=no
15881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15882 soname_spec='${libname}${release}${shared_ext}$major'
15883 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15884 shlibpath_var=LD_LIBRARY_PATH
15885 shlibpath_overrides_runpath=no
15886 hardcode_into_libs=yes
15887 ;;
15888
brynercb91a2f2006-08-25 21:14:45 +000015889irix5* | irix6* | nonstopux*)
15890 case $host_os in
15891 nonstopux*) version_type=nonstopux ;;
15892 *)
15893 if test "$lt_cv_prog_gnu_ld" = yes; then
15894 version_type=linux
15895 else
15896 version_type=irix
15897 fi ;;
15898 esac
15899 need_lib_prefix=no
15900 need_version=no
15901 soname_spec='${libname}${release}${shared_ext}$major'
15902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15903 case $host_os in
15904 irix5* | nonstopux*)
15905 libsuff= shlibsuff=
15906 ;;
15907 *)
15908 case $LD in # libtool.m4 will add one of these switches to LD
15909 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15910 libsuff= shlibsuff= libmagic=32-bit;;
15911 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15912 libsuff=32 shlibsuff=N32 libmagic=N32;;
15913 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15914 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15915 *) libsuff= shlibsuff= libmagic=never-match;;
15916 esac
15917 ;;
15918 esac
15919 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15920 shlibpath_overrides_runpath=no
15921 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15922 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15923 hardcode_into_libs=yes
15924 ;;
15925
15926# No shared lib support for Linux oldld, aout, or coff.
15927linux*oldld* | linux*aout* | linux*coff*)
15928 dynamic_linker=no
15929 ;;
15930
15931# This must be Linux ELF.
15932linux*)
15933 version_type=linux
15934 need_lib_prefix=no
15935 need_version=no
15936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15937 soname_spec='${libname}${release}${shared_ext}$major'
15938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15939 shlibpath_var=LD_LIBRARY_PATH
15940 shlibpath_overrides_runpath=no
15941 # This implies no fast_install, which is unacceptable.
15942 # Some rework will be needed to allow for fast_install
15943 # before this can be enabled.
15944 hardcode_into_libs=yes
15945
15946 # Append ld.so.conf contents to the search path
15947 if test -f /etc/ld.so.conf; then
mmentovai8c2a4de2006-09-20 16:20:15 +000015948 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
brynercb91a2f2006-08-25 21:14:45 +000015949 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15950 fi
15951
15952 # We used to test for /lib/ld.so.1 and disable shared libraries on
15953 # powerpc, because MkLinux only supported shared libraries with the
15954 # GNU dynamic linker. Since this was broken with cross compilers,
15955 # most powerpc-linux boxes support dynamic linking these days and
15956 # people can always --disable-shared, the test was removed, and we
15957 # assume the GNU/Linux dynamic linker is in use.
15958 dynamic_linker='GNU/Linux ld.so'
15959 ;;
15960
brynercb91a2f2006-08-25 21:14:45 +000015961knetbsd*-gnu)
15962 version_type=linux
15963 need_lib_prefix=no
15964 need_version=no
15965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15966 soname_spec='${libname}${release}${shared_ext}$major'
15967 shlibpath_var=LD_LIBRARY_PATH
15968 shlibpath_overrides_runpath=no
15969 hardcode_into_libs=yes
15970 dynamic_linker='GNU ld.so'
15971 ;;
15972
15973netbsd*)
15974 version_type=sunos
15975 need_lib_prefix=no
15976 need_version=no
15977 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15980 dynamic_linker='NetBSD (a.out) ld.so'
15981 else
15982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15983 soname_spec='${libname}${release}${shared_ext}$major'
15984 dynamic_linker='NetBSD ld.elf_so'
15985 fi
15986 shlibpath_var=LD_LIBRARY_PATH
15987 shlibpath_overrides_runpath=yes
15988 hardcode_into_libs=yes
15989 ;;
15990
15991newsos6)
15992 version_type=linux
15993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15994 shlibpath_var=LD_LIBRARY_PATH
15995 shlibpath_overrides_runpath=yes
15996 ;;
15997
15998nto-qnx*)
15999 version_type=linux
16000 need_lib_prefix=no
16001 need_version=no
16002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16003 soname_spec='${libname}${release}${shared_ext}$major'
16004 shlibpath_var=LD_LIBRARY_PATH
16005 shlibpath_overrides_runpath=yes
16006 ;;
16007
16008openbsd*)
16009 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000016010 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000016011 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000016012 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16013 case $host_os in
16014 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16015 *) need_version=no ;;
16016 esac
brynercb91a2f2006-08-25 21:14:45 +000016017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16019 shlibpath_var=LD_LIBRARY_PATH
16020 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16021 case $host_os in
16022 openbsd2.[89] | openbsd2.[89].*)
16023 shlibpath_overrides_runpath=no
16024 ;;
16025 *)
16026 shlibpath_overrides_runpath=yes
16027 ;;
16028 esac
16029 else
16030 shlibpath_overrides_runpath=yes
16031 fi
16032 ;;
16033
16034os2*)
16035 libname_spec='$name'
16036 shrext_cmds=".dll"
16037 need_lib_prefix=no
16038 library_names_spec='$libname${shared_ext} $libname.a'
16039 dynamic_linker='OS/2 ld.exe'
16040 shlibpath_var=LIBPATH
16041 ;;
16042
16043osf3* | osf4* | osf5*)
16044 version_type=osf
16045 need_lib_prefix=no
16046 need_version=no
16047 soname_spec='${libname}${release}${shared_ext}$major'
16048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16049 shlibpath_var=LD_LIBRARY_PATH
16050 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16051 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16052 ;;
16053
brynercb91a2f2006-08-25 21:14:45 +000016054solaris*)
16055 version_type=linux
16056 need_lib_prefix=no
16057 need_version=no
16058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16059 soname_spec='${libname}${release}${shared_ext}$major'
16060 shlibpath_var=LD_LIBRARY_PATH
16061 shlibpath_overrides_runpath=yes
16062 hardcode_into_libs=yes
16063 # ldd complains unless libraries are executable
16064 postinstall_cmds='chmod +x $lib'
16065 ;;
16066
16067sunos4*)
16068 version_type=sunos
16069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16070 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16071 shlibpath_var=LD_LIBRARY_PATH
16072 shlibpath_overrides_runpath=yes
16073 if test "$with_gnu_ld" = yes; then
16074 need_lib_prefix=no
16075 fi
16076 need_version=yes
16077 ;;
16078
mmentovai8c2a4de2006-09-20 16:20:15 +000016079sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000016080 version_type=linux
16081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16082 soname_spec='${libname}${release}${shared_ext}$major'
16083 shlibpath_var=LD_LIBRARY_PATH
16084 case $host_vendor in
16085 sni)
16086 shlibpath_overrides_runpath=no
16087 need_lib_prefix=no
16088 export_dynamic_flag_spec='${wl}-Blargedynsym'
16089 runpath_var=LD_RUN_PATH
16090 ;;
16091 siemens)
16092 need_lib_prefix=no
16093 ;;
16094 motorola)
16095 need_lib_prefix=no
16096 need_version=no
16097 shlibpath_overrides_runpath=no
16098 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16099 ;;
16100 esac
16101 ;;
16102
16103sysv4*MP*)
16104 if test -d /usr/nec ;then
16105 version_type=linux
16106 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16107 soname_spec='$libname${shared_ext}.$major'
16108 shlibpath_var=LD_LIBRARY_PATH
16109 fi
16110 ;;
16111
mmentovai8c2a4de2006-09-20 16:20:15 +000016112sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16113 version_type=freebsd-elf
16114 need_lib_prefix=no
16115 need_version=no
16116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16117 soname_spec='${libname}${release}${shared_ext}$major'
16118 shlibpath_var=LD_LIBRARY_PATH
16119 hardcode_into_libs=yes
16120 if test "$with_gnu_ld" = yes; then
16121 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16122 shlibpath_overrides_runpath=no
16123 else
16124 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16125 shlibpath_overrides_runpath=yes
16126 case $host_os in
16127 sco3.2v5*)
16128 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16129 ;;
16130 esac
16131 fi
16132 sys_lib_dlsearch_path_spec='/usr/lib'
16133 ;;
16134
brynercb91a2f2006-08-25 21:14:45 +000016135uts4*)
16136 version_type=linux
16137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16138 soname_spec='${libname}${release}${shared_ext}$major'
16139 shlibpath_var=LD_LIBRARY_PATH
16140 ;;
16141
16142*)
16143 dynamic_linker=no
16144 ;;
16145esac
mmentovai8c2a4de2006-09-20 16:20:15 +000016146{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16147echo "${ECHO_T}$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016148test "$dynamic_linker" = no && can_build_shared=no
16149
mmentovai8c2a4de2006-09-20 16:20:15 +000016150variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16151if test "$GCC" = yes; then
16152 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16153fi
16154
16155{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16156echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016157hardcode_action_F77=
16158if test -n "$hardcode_libdir_flag_spec_F77" || \
mmentovai8c2a4de2006-09-20 16:20:15 +000016159 test -n "$runpath_var_F77" || \
16160 test "X$hardcode_automatic_F77" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000016161
16162 # We can hardcode non-existant directories.
16163 if test "$hardcode_direct_F77" != no &&
16164 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16165 # have to relink, otherwise we might link with an installed library
16166 # when we should be linking with a yet-to-be-installed one
16167 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16168 test "$hardcode_minus_L_F77" != no; then
16169 # Linking always hardcodes the temporary library directory.
16170 hardcode_action_F77=relink
16171 else
16172 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16173 hardcode_action_F77=immediate
16174 fi
16175else
16176 # We cannot hardcode anything, or else we can only hardcode existing
16177 # directories.
16178 hardcode_action_F77=unsupported
16179fi
mmentovai8c2a4de2006-09-20 16:20:15 +000016180{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16181echo "${ECHO_T}$hardcode_action_F77" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016182
16183if test "$hardcode_action_F77" = relink; then
16184 # Fast installation is not supported
16185 enable_fast_install=no
16186elif test "$shlibpath_overrides_runpath" = yes ||
16187 test "$enable_shared" = no; then
16188 # Fast installation is not necessary
16189 enable_fast_install=needless
16190fi
16191
brynercb91a2f2006-08-25 21:14:45 +000016192
16193# The else clause should only fire when bootstrapping the
16194# libtool distribution, otherwise you forgot to ship ltmain.sh
16195# with your package, and you will get complaints that there are
16196# no rules to generate ltmain.sh.
16197if test -f "$ltmain"; then
16198 # See if we are running on zsh, and set the options which allow our commands through
16199 # without removal of \ escapes.
16200 if test -n "${ZSH_VERSION+set}" ; then
16201 setopt NO_GLOB_SUBST
16202 fi
16203 # Now quote all the things that may contain metacharacters while being
16204 # careful not to overquote the AC_SUBSTed values. We take copies of the
16205 # variables and quote the copies for generation of the libtool script.
mmentovai8c2a4de2006-09-20 16:20:15 +000016206 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000016207 SED SHELL STRIP \
16208 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16209 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16210 deplibs_check_method reload_flag reload_cmds need_locks \
16211 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16212 lt_cv_sys_global_symbol_to_c_name_address \
16213 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16214 old_postinstall_cmds old_postuninstall_cmds \
16215 compiler_F77 \
16216 CC_F77 \
16217 LD_F77 \
16218 lt_prog_compiler_wl_F77 \
16219 lt_prog_compiler_pic_F77 \
16220 lt_prog_compiler_static_F77 \
16221 lt_prog_compiler_no_builtin_flag_F77 \
16222 export_dynamic_flag_spec_F77 \
16223 thread_safe_flag_spec_F77 \
16224 whole_archive_flag_spec_F77 \
16225 enable_shared_with_static_runtimes_F77 \
16226 old_archive_cmds_F77 \
16227 old_archive_from_new_cmds_F77 \
16228 predep_objects_F77 \
16229 postdep_objects_F77 \
16230 predeps_F77 \
16231 postdeps_F77 \
16232 compiler_lib_search_path_F77 \
16233 archive_cmds_F77 \
16234 archive_expsym_cmds_F77 \
16235 postinstall_cmds_F77 \
16236 postuninstall_cmds_F77 \
16237 old_archive_from_expsyms_cmds_F77 \
16238 allow_undefined_flag_F77 \
16239 no_undefined_flag_F77 \
16240 export_symbols_cmds_F77 \
16241 hardcode_libdir_flag_spec_F77 \
16242 hardcode_libdir_flag_spec_ld_F77 \
16243 hardcode_libdir_separator_F77 \
16244 hardcode_automatic_F77 \
16245 module_cmds_F77 \
16246 module_expsym_cmds_F77 \
16247 lt_cv_prog_compiler_c_o_F77 \
16248 exclude_expsyms_F77 \
16249 include_expsyms_F77; do
16250
16251 case $var in
16252 old_archive_cmds_F77 | \
16253 old_archive_from_new_cmds_F77 | \
16254 archive_cmds_F77 | \
16255 archive_expsym_cmds_F77 | \
16256 module_cmds_F77 | \
16257 module_expsym_cmds_F77 | \
16258 old_archive_from_expsyms_cmds_F77 | \
16259 export_symbols_cmds_F77 | \
16260 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16261 postinstall_cmds | postuninstall_cmds | \
16262 old_postinstall_cmds | old_postuninstall_cmds | \
16263 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16264 # Double-quote double-evaled strings.
16265 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16266 ;;
16267 *)
16268 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16269 ;;
16270 esac
16271 done
16272
16273 case $lt_echo in
16274 *'\$0 --fallback-echo"')
16275 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16276 ;;
16277 esac
16278
16279cfgfile="$ofile"
16280
16281 cat <<__EOF__ >> "$cfgfile"
16282# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16283
16284# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16285
16286# Shell to use when invoking shell scripts.
16287SHELL=$lt_SHELL
16288
16289# Whether or not to build shared libraries.
16290build_libtool_libs=$enable_shared
16291
16292# Whether or not to build static libraries.
16293build_old_libs=$enable_static
16294
16295# Whether or not to add -lc for building shared libraries.
16296build_libtool_need_lc=$archive_cmds_need_lc_F77
16297
16298# Whether or not to disallow shared libs when runtime libs are static
16299allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16300
16301# Whether or not to optimize for fast installation.
16302fast_install=$enable_fast_install
16303
16304# The host system.
16305host_alias=$host_alias
16306host=$host
mmentovai8c2a4de2006-09-20 16:20:15 +000016307host_os=$host_os
16308
16309# The build system.
16310build_alias=$build_alias
16311build=$build
16312build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000016313
16314# An echo program that does not interpret backslashes.
16315echo=$lt_echo
16316
16317# The archiver.
16318AR=$lt_AR
16319AR_FLAGS=$lt_AR_FLAGS
16320
16321# A C compiler.
16322LTCC=$lt_LTCC
16323
mmentovai8c2a4de2006-09-20 16:20:15 +000016324# LTCC compiler flags.
16325LTCFLAGS=$lt_LTCFLAGS
16326
brynercb91a2f2006-08-25 21:14:45 +000016327# A language-specific compiler.
16328CC=$lt_compiler_F77
16329
16330# Is the compiler the GNU C compiler?
16331with_gcc=$GCC_F77
16332
16333# An ERE matcher.
16334EGREP=$lt_EGREP
16335
16336# The linker used to build libraries.
16337LD=$lt_LD_F77
16338
16339# Whether we need hard or soft links.
16340LN_S=$lt_LN_S
16341
16342# A BSD-compatible nm program.
16343NM=$lt_NM
16344
16345# A symbol stripping program
16346STRIP=$lt_STRIP
16347
16348# Used to examine libraries when file_magic_cmd begins "file"
16349MAGIC_CMD=$MAGIC_CMD
16350
16351# Used on cygwin: DLL creation program.
16352DLLTOOL="$DLLTOOL"
16353
16354# Used on cygwin: object dumper.
16355OBJDUMP="$OBJDUMP"
16356
16357# Used on cygwin: assembler.
16358AS="$AS"
16359
16360# The name of the directory that contains temporary libtool files.
16361objdir=$objdir
16362
16363# How to create reloadable object files.
16364reload_flag=$lt_reload_flag
16365reload_cmds=$lt_reload_cmds
16366
16367# How to pass a linker flag through the compiler.
16368wl=$lt_lt_prog_compiler_wl_F77
16369
16370# Object file suffix (normally "o").
16371objext="$ac_objext"
16372
16373# Old archive suffix (normally "a").
16374libext="$libext"
16375
16376# Shared library suffix (normally ".so").
16377shrext_cmds='$shrext_cmds'
16378
16379# Executable file suffix (normally "").
16380exeext="$exeext"
16381
16382# Additional compiler flags for building library objects.
16383pic_flag=$lt_lt_prog_compiler_pic_F77
16384pic_mode=$pic_mode
16385
16386# What is the maximum length of a command?
16387max_cmd_len=$lt_cv_sys_max_cmd_len
16388
16389# Does compiler simultaneously support -c and -o options?
16390compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16391
mmentovai8c2a4de2006-09-20 16:20:15 +000016392# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000016393need_locks=$lt_need_locks
16394
16395# Do we need the lib prefix for modules?
16396need_lib_prefix=$need_lib_prefix
16397
16398# Do we need a version for libraries?
16399need_version=$need_version
16400
16401# Whether dlopen is supported.
16402dlopen_support=$enable_dlopen
16403
16404# Whether dlopen of programs is supported.
16405dlopen_self=$enable_dlopen_self
16406
16407# Whether dlopen of statically linked programs is supported.
16408dlopen_self_static=$enable_dlopen_self_static
16409
16410# Compiler flag to prevent dynamic linking.
16411link_static_flag=$lt_lt_prog_compiler_static_F77
16412
16413# Compiler flag to turn off builtin functions.
16414no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16415
16416# Compiler flag to allow reflexive dlopens.
16417export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16418
16419# Compiler flag to generate shared objects directly from archives.
16420whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16421
16422# Compiler flag to generate thread-safe objects.
16423thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16424
16425# Library versioning type.
16426version_type=$version_type
16427
16428# Format of library name prefix.
16429libname_spec=$lt_libname_spec
16430
16431# List of archive names. First name is the real one, the rest are links.
16432# The last name is the one that the linker finds with -lNAME.
16433library_names_spec=$lt_library_names_spec
16434
16435# The coded name of the library, if different from the real name.
16436soname_spec=$lt_soname_spec
16437
16438# Commands used to build and install an old-style archive.
16439RANLIB=$lt_RANLIB
16440old_archive_cmds=$lt_old_archive_cmds_F77
16441old_postinstall_cmds=$lt_old_postinstall_cmds
16442old_postuninstall_cmds=$lt_old_postuninstall_cmds
16443
16444# Create an old-style archive from a shared archive.
16445old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16446
16447# Create a temporary old-style archive to link instead of a shared archive.
16448old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16449
16450# Commands used to build and install a shared archive.
16451archive_cmds=$lt_archive_cmds_F77
16452archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16453postinstall_cmds=$lt_postinstall_cmds
16454postuninstall_cmds=$lt_postuninstall_cmds
16455
16456# Commands used to build a loadable module (assumed same as above if empty)
16457module_cmds=$lt_module_cmds_F77
16458module_expsym_cmds=$lt_module_expsym_cmds_F77
16459
16460# Commands to strip libraries.
16461old_striplib=$lt_old_striplib
16462striplib=$lt_striplib
16463
16464# Dependencies to place before the objects being linked to create a
16465# shared library.
16466predep_objects=$lt_predep_objects_F77
16467
16468# Dependencies to place after the objects being linked to create a
16469# shared library.
16470postdep_objects=$lt_postdep_objects_F77
16471
16472# Dependencies to place before the objects being linked to create a
16473# shared library.
16474predeps=$lt_predeps_F77
16475
16476# Dependencies to place after the objects being linked to create a
16477# shared library.
16478postdeps=$lt_postdeps_F77
16479
16480# The library search path used internally by the compiler when linking
16481# a shared library.
16482compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16483
16484# Method to check whether dependent libraries are shared objects.
16485deplibs_check_method=$lt_deplibs_check_method
16486
16487# Command to use when deplibs_check_method == file_magic.
16488file_magic_cmd=$lt_file_magic_cmd
16489
16490# Flag that allows shared libraries with undefined symbols to be built.
16491allow_undefined_flag=$lt_allow_undefined_flag_F77
16492
16493# Flag that forces no undefined symbols.
16494no_undefined_flag=$lt_no_undefined_flag_F77
16495
16496# Commands used to finish a libtool library installation in a directory.
16497finish_cmds=$lt_finish_cmds
16498
16499# Same as above, but a single script fragment to be evaled but not shown.
16500finish_eval=$lt_finish_eval
16501
16502# Take the output of nm and produce a listing of raw symbols and C names.
16503global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16504
16505# Transform the output of nm in a proper C declaration
16506global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16507
16508# Transform the output of nm in a C name address pair
16509global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16510
16511# This is the shared library runtime path variable.
16512runpath_var=$runpath_var
16513
16514# This is the shared library path variable.
16515shlibpath_var=$shlibpath_var
16516
16517# Is shlibpath searched before the hard-coded library search path?
16518shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16519
16520# How to hardcode a shared library path into an executable.
16521hardcode_action=$hardcode_action_F77
16522
16523# Whether we should hardcode library paths into libraries.
16524hardcode_into_libs=$hardcode_into_libs
16525
16526# Flag to hardcode \$libdir into a binary during linking.
16527# This must work even if \$libdir does not exist.
16528hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16529
16530# If ld is used when linking, flag to hardcode \$libdir into
16531# a binary during linking. This must work even if \$libdir does
16532# not exist.
16533hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16534
16535# Whether we need a single -rpath flag with a separated argument.
16536hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16537
16538# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16539# resulting binary.
16540hardcode_direct=$hardcode_direct_F77
16541
16542# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16543# resulting binary.
16544hardcode_minus_L=$hardcode_minus_L_F77
16545
16546# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16547# the resulting binary.
16548hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16549
16550# Set to yes if building a shared library automatically hardcodes DIR into the library
16551# and all subsequent libraries and executables linked against it.
16552hardcode_automatic=$hardcode_automatic_F77
16553
16554# Variables whose values should be saved in libtool wrapper scripts and
16555# restored at relink time.
16556variables_saved_for_relink="$variables_saved_for_relink"
16557
16558# Whether libtool must link a program against all its dependency libraries.
16559link_all_deplibs=$link_all_deplibs_F77
16560
16561# Compile-time system search path for libraries
16562sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16563
16564# Run-time system search path for libraries
16565sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16566
16567# Fix the shell variable \$srcfile for the compiler.
16568fix_srcfile_path="$fix_srcfile_path_F77"
16569
16570# Set to yes if exported symbols are required.
16571always_export_symbols=$always_export_symbols_F77
16572
16573# The commands to list exported symbols.
16574export_symbols_cmds=$lt_export_symbols_cmds_F77
16575
16576# The commands to extract the exported symbol list from a shared archive.
16577extract_expsyms_cmds=$lt_extract_expsyms_cmds
16578
16579# Symbols that should not be listed in the preloaded symbols.
16580exclude_expsyms=$lt_exclude_expsyms_F77
16581
16582# Symbols that must always be exported.
16583include_expsyms=$lt_include_expsyms_F77
16584
16585# ### END LIBTOOL TAG CONFIG: $tagname
16586
16587__EOF__
16588
16589
16590else
16591 # If there is no Makefile yet, we rely on a make rule to execute
16592 # `config.status --recheck' to rerun these tests and create the
16593 # libtool script then.
16594 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16595 if test -f "$ltmain_in"; then
16596 test -f Makefile && make "$ltmain"
16597 fi
16598fi
16599
16600
16601ac_ext=c
16602ac_cpp='$CPP $CPPFLAGS'
16603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16605ac_compiler_gnu=$ac_cv_c_compiler_gnu
16606
16607CC="$lt_save_CC"
16608
16609 else
16610 tagname=""
16611 fi
16612 ;;
16613
16614 GCJ)
16615 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16616
16617
brynercb91a2f2006-08-25 21:14:45 +000016618# Source file extension for Java test sources.
16619ac_ext=java
16620
16621# Object file extension for compiled Java test sources.
16622objext=o
16623objext_GCJ=$objext
16624
16625# Code to be used in simple compile tests
16626lt_simple_compile_test_code="class foo {}\n"
16627
16628# Code to be used in simple link tests
mmentovai8c2a4de2006-09-20 16:20:15 +000016629lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
brynercb91a2f2006-08-25 21:14:45 +000016630
16631# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16632
16633# If no C compiler was specified, use CC.
16634LTCC=${LTCC-"$CC"}
16635
mmentovai8c2a4de2006-09-20 16:20:15 +000016636# If no C compiler flags were specified, use CFLAGS.
16637LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16638
brynercb91a2f2006-08-25 21:14:45 +000016639# Allow CC to be a program name with arguments.
16640compiler=$CC
16641
16642
mmentovai8c2a4de2006-09-20 16:20:15 +000016643# save warnings/boilerplate of simple test code
16644ac_outfile=conftest.$ac_objext
16645printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16646eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16647_lt_compiler_boilerplate=`cat conftest.err`
16648$rm conftest*
16649
16650ac_outfile=conftest.$ac_objext
16651printf "$lt_simple_link_test_code" >conftest.$ac_ext
16652eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16653_lt_linker_boilerplate=`cat conftest.err`
16654$rm conftest*
16655
16656
brynercb91a2f2006-08-25 21:14:45 +000016657# Allow CC to be a program name with arguments.
16658lt_save_CC="$CC"
16659CC=${GCJ-"gcj"}
16660compiler=$CC
16661compiler_GCJ=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +000016662for cc_temp in $compiler""; do
16663 case $cc_temp in
16664 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16665 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16666 \-*) ;;
16667 *) break;;
16668 esac
16669done
16670cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16671
brynercb91a2f2006-08-25 21:14:45 +000016672
16673# GCJ did not exist at the time GCC didn't implicitly link libc in.
16674archive_cmds_need_lc_GCJ=no
16675
mmentovai8c2a4de2006-09-20 16:20:15 +000016676old_archive_cmds_GCJ=$old_archive_cmds
16677
brynercb91a2f2006-08-25 21:14:45 +000016678
16679lt_prog_compiler_no_builtin_flag_GCJ=
16680
16681if test "$GCC" = yes; then
16682 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16683
16684
mmentovai8c2a4de2006-09-20 16:20:15 +000016685{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16686echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016687if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16688 echo $ECHO_N "(cached) $ECHO_C" >&6
16689else
16690 lt_cv_prog_compiler_rtti_exceptions=no
16691 ac_outfile=conftest.$ac_objext
16692 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16693 lt_compiler_flag="-fno-rtti -fno-exceptions"
16694 # Insert the option either (1) after the last *FLAGS variable, or
16695 # (2) before a word containing "conftest.", or (3) at the end.
16696 # Note that $ac_compile itself does not contain backslashes and begins
16697 # with a dollar sign (not a hyphen), so the echo should work correctly.
16698 # The option is referenced via a variable to avoid confusing sed.
16699 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000016700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000016701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16702 -e 's:$: $lt_compiler_flag:'`
mmentovaidb3342a2006-12-05 22:52:28 +000016703 (eval echo "\"\$as_me:16703: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000016704 (eval "$lt_compile" 2>conftest.err)
16705 ac_status=$?
16706 cat conftest.err >&5
mmentovaidb3342a2006-12-05 22:52:28 +000016707 echo "$as_me:16707: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000016708 if (exit $ac_status) && test -s "$ac_outfile"; then
16709 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000016710 # So say no if there are warnings other than the usual output.
16711 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16713 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000016714 lt_cv_prog_compiler_rtti_exceptions=yes
16715 fi
16716 fi
16717 $rm conftest*
16718
16719fi
mmentovai8c2a4de2006-09-20 16:20:15 +000016720{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16721echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016722
16723if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16724 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16725else
16726 :
16727fi
16728
16729fi
16730
16731lt_prog_compiler_wl_GCJ=
16732lt_prog_compiler_pic_GCJ=
16733lt_prog_compiler_static_GCJ=
16734
mmentovai8c2a4de2006-09-20 16:20:15 +000016735{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16736echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016737
16738 if test "$GCC" = yes; then
16739 lt_prog_compiler_wl_GCJ='-Wl,'
16740 lt_prog_compiler_static_GCJ='-static'
16741
16742 case $host_os in
16743 aix*)
16744 # All AIX code is PIC.
16745 if test "$host_cpu" = ia64; then
16746 # AIX 5 now supports IA64 processor
16747 lt_prog_compiler_static_GCJ='-Bstatic'
16748 fi
16749 ;;
16750
16751 amigaos*)
16752 # FIXME: we need at least 68020 code to build shared libraries, but
16753 # adding the `-m68020' flag to GCC prevents building anything better,
16754 # like `-m68040'.
16755 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16756 ;;
16757
16758 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16759 # PIC is the default for these OSes.
16760 ;;
16761
16762 mingw* | pw32* | os2*)
16763 # This hack is so that the source file can tell whether it is being
16764 # built for inclusion in a dll (and should export symbols for example).
16765 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16766 ;;
16767
16768 darwin* | rhapsody*)
16769 # PIC is the default on this platform
16770 # Common symbols not allowed in MH_DYLIB files
16771 lt_prog_compiler_pic_GCJ='-fno-common'
16772 ;;
16773
mmentovai8c2a4de2006-09-20 16:20:15 +000016774 interix3*)
16775 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16776 # Instead, we relocate shared libraries at runtime.
16777 ;;
16778
brynercb91a2f2006-08-25 21:14:45 +000016779 msdosdjgpp*)
16780 # Just because we use GCC doesn't mean we suddenly get shared libraries
16781 # on systems that don't support them.
16782 lt_prog_compiler_can_build_shared_GCJ=no
16783 enable_shared=no
16784 ;;
16785
16786 sysv4*MP*)
16787 if test -d /usr/nec; then
16788 lt_prog_compiler_pic_GCJ=-Kconform_pic
16789 fi
16790 ;;
16791
16792 hpux*)
16793 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16794 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +000016795 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000016796 hppa*64*|ia64*)
16797 # +Z the default
16798 ;;
16799 *)
16800 lt_prog_compiler_pic_GCJ='-fPIC'
16801 ;;
16802 esac
16803 ;;
16804
16805 *)
16806 lt_prog_compiler_pic_GCJ='-fPIC'
16807 ;;
16808 esac
16809 else
16810 # PORTME Check for flag to pass linker flags through the system compiler.
16811 case $host_os in
16812 aix*)
16813 lt_prog_compiler_wl_GCJ='-Wl,'
16814 if test "$host_cpu" = ia64; then
16815 # AIX 5 now supports IA64 processor
16816 lt_prog_compiler_static_GCJ='-Bstatic'
16817 else
16818 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16819 fi
16820 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016821 darwin*)
16822 # PIC is the default on this platform
16823 # Common symbols not allowed in MH_DYLIB files
16824 case $cc_basename in
16825 xlc*)
16826 lt_prog_compiler_pic_GCJ='-qnocommon'
16827 lt_prog_compiler_wl_GCJ='-Wl,'
16828 ;;
16829 esac
16830 ;;
brynercb91a2f2006-08-25 21:14:45 +000016831
16832 mingw* | pw32* | os2*)
16833 # This hack is so that the source file can tell whether it is being
16834 # built for inclusion in a dll (and should export symbols for example).
16835 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16836 ;;
16837
16838 hpux9* | hpux10* | hpux11*)
16839 lt_prog_compiler_wl_GCJ='-Wl,'
16840 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16841 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +000016842 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000016843 hppa*64*|ia64*)
16844 # +Z the default
16845 ;;
16846 *)
16847 lt_prog_compiler_pic_GCJ='+Z'
16848 ;;
16849 esac
16850 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16851 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16852 ;;
16853
16854 irix5* | irix6* | nonstopux*)
16855 lt_prog_compiler_wl_GCJ='-Wl,'
16856 # PIC (with -KPIC) is the default.
16857 lt_prog_compiler_static_GCJ='-non_shared'
16858 ;;
16859
16860 newsos6)
16861 lt_prog_compiler_pic_GCJ='-KPIC'
16862 lt_prog_compiler_static_GCJ='-Bstatic'
16863 ;;
16864
16865 linux*)
mmentovai8c2a4de2006-09-20 16:20:15 +000016866 case $cc_basename in
brynercb91a2f2006-08-25 21:14:45 +000016867 icc* | ecc*)
16868 lt_prog_compiler_wl_GCJ='-Wl,'
16869 lt_prog_compiler_pic_GCJ='-KPIC'
16870 lt_prog_compiler_static_GCJ='-static'
16871 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016872 pgcc* | pgf77* | pgf90* | pgf95*)
16873 # Portland Group compilers (*not* the Pentium gcc compiler,
16874 # which looks to be a dead project)
16875 lt_prog_compiler_wl_GCJ='-Wl,'
16876 lt_prog_compiler_pic_GCJ='-fpic'
16877 lt_prog_compiler_static_GCJ='-Bstatic'
16878 ;;
brynercb91a2f2006-08-25 21:14:45 +000016879 ccc*)
16880 lt_prog_compiler_wl_GCJ='-Wl,'
16881 # All Alpha code is PIC.
16882 lt_prog_compiler_static_GCJ='-non_shared'
16883 ;;
16884 esac
16885 ;;
16886
16887 osf3* | osf4* | osf5*)
16888 lt_prog_compiler_wl_GCJ='-Wl,'
16889 # All OSF/1 code is PIC.
16890 lt_prog_compiler_static_GCJ='-non_shared'
16891 ;;
16892
brynercb91a2f2006-08-25 21:14:45 +000016893 solaris*)
brynercb91a2f2006-08-25 21:14:45 +000016894 lt_prog_compiler_pic_GCJ='-KPIC'
16895 lt_prog_compiler_static_GCJ='-Bstatic'
mmentovai8c2a4de2006-09-20 16:20:15 +000016896 case $cc_basename in
16897 f77* | f90* | f95*)
16898 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16899 *)
16900 lt_prog_compiler_wl_GCJ='-Wl,';;
16901 esac
brynercb91a2f2006-08-25 21:14:45 +000016902 ;;
16903
16904 sunos4*)
16905 lt_prog_compiler_wl_GCJ='-Qoption ld '
16906 lt_prog_compiler_pic_GCJ='-PIC'
16907 lt_prog_compiler_static_GCJ='-Bstatic'
16908 ;;
16909
mmentovai8c2a4de2006-09-20 16:20:15 +000016910 sysv4 | sysv4.2uw2* | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000016911 lt_prog_compiler_wl_GCJ='-Wl,'
16912 lt_prog_compiler_pic_GCJ='-KPIC'
16913 lt_prog_compiler_static_GCJ='-Bstatic'
16914 ;;
16915
16916 sysv4*MP*)
16917 if test -d /usr/nec ;then
16918 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16919 lt_prog_compiler_static_GCJ='-Bstatic'
16920 fi
16921 ;;
16922
mmentovai8c2a4de2006-09-20 16:20:15 +000016923 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16924 lt_prog_compiler_wl_GCJ='-Wl,'
16925 lt_prog_compiler_pic_GCJ='-KPIC'
16926 lt_prog_compiler_static_GCJ='-Bstatic'
16927 ;;
16928
16929 unicos*)
16930 lt_prog_compiler_wl_GCJ='-Wl,'
16931 lt_prog_compiler_can_build_shared_GCJ=no
16932 ;;
16933
brynercb91a2f2006-08-25 21:14:45 +000016934 uts4*)
16935 lt_prog_compiler_pic_GCJ='-pic'
16936 lt_prog_compiler_static_GCJ='-Bstatic'
16937 ;;
16938
16939 *)
16940 lt_prog_compiler_can_build_shared_GCJ=no
16941 ;;
16942 esac
16943 fi
16944
mmentovai8c2a4de2006-09-20 16:20:15 +000016945{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16946echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016947
16948#
16949# Check to make sure the PIC flag actually works.
16950#
16951if test -n "$lt_prog_compiler_pic_GCJ"; then
16952
mmentovai8c2a4de2006-09-20 16:20:15 +000016953{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16954echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016955if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16956 echo $ECHO_N "(cached) $ECHO_C" >&6
16957else
16958 lt_prog_compiler_pic_works_GCJ=no
16959 ac_outfile=conftest.$ac_objext
16960 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16961 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16962 # Insert the option either (1) after the last *FLAGS variable, or
16963 # (2) before a word containing "conftest.", or (3) at the end.
16964 # Note that $ac_compile itself does not contain backslashes and begins
16965 # with a dollar sign (not a hyphen), so the echo should work correctly.
16966 # The option is referenced via a variable to avoid confusing sed.
16967 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000016968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000016969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16970 -e 's:$: $lt_compiler_flag:'`
mmentovaidb3342a2006-12-05 22:52:28 +000016971 (eval echo "\"\$as_me:16971: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000016972 (eval "$lt_compile" 2>conftest.err)
16973 ac_status=$?
16974 cat conftest.err >&5
mmentovaidb3342a2006-12-05 22:52:28 +000016975 echo "$as_me:16975: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000016976 if (exit $ac_status) && test -s "$ac_outfile"; then
16977 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000016978 # So say no if there are warnings other than the usual output.
16979 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16980 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16981 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000016982 lt_prog_compiler_pic_works_GCJ=yes
16983 fi
16984 fi
16985 $rm conftest*
16986
16987fi
mmentovai8c2a4de2006-09-20 16:20:15 +000016988{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16989echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000016990
16991if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16992 case $lt_prog_compiler_pic_GCJ in
16993 "" | " "*) ;;
16994 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16995 esac
16996else
16997 lt_prog_compiler_pic_GCJ=
16998 lt_prog_compiler_can_build_shared_GCJ=no
16999fi
17000
17001fi
mmentovai8c2a4de2006-09-20 16:20:15 +000017002case $host_os in
brynercb91a2f2006-08-25 21:14:45 +000017003 # For platforms which do not support PIC, -DPIC is meaningless:
17004 *djgpp*)
17005 lt_prog_compiler_pic_GCJ=
17006 ;;
17007 *)
17008 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17009 ;;
17010esac
17011
mmentovai8c2a4de2006-09-20 16:20:15 +000017012#
17013# Check to make sure the static flag actually works.
17014#
17015wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17016{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17017echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17018if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17019 echo $ECHO_N "(cached) $ECHO_C" >&6
17020else
17021 lt_prog_compiler_static_works_GCJ=no
17022 save_LDFLAGS="$LDFLAGS"
17023 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17024 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17025 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17026 # The linker can only warn and ignore the option if not recognized
17027 # So say no if there are warnings
17028 if test -s conftest.err; then
17029 # Append any errors to the config.log.
17030 cat conftest.err 1>&5
17031 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17032 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17033 if diff conftest.exp conftest.er2 >/dev/null; then
17034 lt_prog_compiler_static_works_GCJ=yes
17035 fi
17036 else
17037 lt_prog_compiler_static_works_GCJ=yes
17038 fi
17039 fi
17040 $rm conftest*
17041 LDFLAGS="$save_LDFLAGS"
17042
17043fi
17044{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17045echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17046
17047if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17048 :
17049else
17050 lt_prog_compiler_static_GCJ=
17051fi
17052
17053
17054{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17055echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000017056if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17057 echo $ECHO_N "(cached) $ECHO_C" >&6
17058else
17059 lt_cv_prog_compiler_c_o_GCJ=no
17060 $rm -r conftest 2>/dev/null
17061 mkdir conftest
17062 cd conftest
17063 mkdir out
17064 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17065
17066 lt_compiler_flag="-o out/conftest2.$ac_objext"
17067 # Insert the option either (1) after the last *FLAGS variable, or
17068 # (2) before a word containing "conftest.", or (3) at the end.
17069 # Note that $ac_compile itself does not contain backslashes and begins
17070 # with a dollar sign (not a hyphen), so the echo should work correctly.
17071 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000017072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000017073 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17074 -e 's:$: $lt_compiler_flag:'`
mmentovaidb3342a2006-12-05 22:52:28 +000017075 (eval echo "\"\$as_me:17075: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000017076 (eval "$lt_compile" 2>out/conftest.err)
17077 ac_status=$?
17078 cat out/conftest.err >&5
mmentovaidb3342a2006-12-05 22:52:28 +000017079 echo "$as_me:17079: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000017080 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17081 then
17082 # The compiler can only warn and ignore the option if not recognized
17083 # So say no if there are warnings
mmentovai8c2a4de2006-09-20 16:20:15 +000017084 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17085 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17086 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000017087 lt_cv_prog_compiler_c_o_GCJ=yes
17088 fi
17089 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000017090 chmod u+w . 2>&5
brynercb91a2f2006-08-25 21:14:45 +000017091 $rm conftest*
17092 # SGI C++ compiler will create directory out/ii_files/ for
17093 # template instantiation
17094 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17095 $rm out/* && rmdir out
17096 cd ..
17097 rmdir conftest
17098 $rm conftest*
17099
17100fi
mmentovai8c2a4de2006-09-20 16:20:15 +000017101{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17102echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000017103
17104
17105hard_links="nottested"
17106if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17107 # do not overwrite the value of need_locks provided by the user
mmentovai8c2a4de2006-09-20 16:20:15 +000017108 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17109echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000017110 hard_links=yes
17111 $rm conftest*
17112 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17113 touch conftest.a
17114 ln conftest.a conftest.b 2>&5 || hard_links=no
17115 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mmentovai8c2a4de2006-09-20 16:20:15 +000017116 { echo "$as_me:$LINENO: result: $hard_links" >&5
17117echo "${ECHO_T}$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000017118 if test "$hard_links" = no; then
17119 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17120echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17121 need_locks=warn
17122 fi
17123else
17124 need_locks=no
17125fi
17126
mmentovai8c2a4de2006-09-20 16:20:15 +000017127{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17128echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000017129
17130 runpath_var=
17131 allow_undefined_flag_GCJ=
17132 enable_shared_with_static_runtimes_GCJ=no
17133 archive_cmds_GCJ=
17134 archive_expsym_cmds_GCJ=
17135 old_archive_From_new_cmds_GCJ=
17136 old_archive_from_expsyms_cmds_GCJ=
17137 export_dynamic_flag_spec_GCJ=
17138 whole_archive_flag_spec_GCJ=
17139 thread_safe_flag_spec_GCJ=
17140 hardcode_libdir_flag_spec_GCJ=
17141 hardcode_libdir_flag_spec_ld_GCJ=
17142 hardcode_libdir_separator_GCJ=
17143 hardcode_direct_GCJ=no
17144 hardcode_minus_L_GCJ=no
17145 hardcode_shlibpath_var_GCJ=unsupported
17146 link_all_deplibs_GCJ=unknown
17147 hardcode_automatic_GCJ=no
17148 module_cmds_GCJ=
17149 module_expsym_cmds_GCJ=
17150 always_export_symbols_GCJ=no
17151 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17152 # include_expsyms should be a list of space-separated symbols to be *always*
17153 # included in the symbol list
17154 include_expsyms_GCJ=
17155 # exclude_expsyms can be an extended regexp of symbols to exclude
17156 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17157 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17158 # as well as any symbol that contains `d'.
17159 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17160 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17161 # platforms (ab)use it in PIC code, but their linkers get confused if
17162 # the symbol is explicitly referenced. Since portable code cannot
17163 # rely on this symbol name, it's probably fine to never include it in
17164 # preloaded symbol tables.
17165 extract_expsyms_cmds=
mmentovai8c2a4de2006-09-20 16:20:15 +000017166 # Just being paranoid about ensuring that cc_basename is set.
17167 for cc_temp in $compiler""; do
17168 case $cc_temp in
17169 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17170 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17171 \-*) ;;
17172 *) break;;
17173 esac
17174done
17175cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
brynercb91a2f2006-08-25 21:14:45 +000017176
17177 case $host_os in
17178 cygwin* | mingw* | pw32*)
17179 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17180 # When not using gcc, we currently assume that we are using
17181 # Microsoft Visual C++.
17182 if test "$GCC" != yes; then
17183 with_gnu_ld=no
17184 fi
17185 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000017186 interix*)
17187 # we just hope/assume this is gcc and not c89 (= MSVC++)
17188 with_gnu_ld=yes
17189 ;;
brynercb91a2f2006-08-25 21:14:45 +000017190 openbsd*)
17191 with_gnu_ld=no
17192 ;;
17193 esac
17194
17195 ld_shlibs_GCJ=yes
17196 if test "$with_gnu_ld" = yes; then
17197 # If archive_cmds runs LD, not CC, wlarc should be empty
17198 wlarc='${wl}'
17199
mmentovai8c2a4de2006-09-20 16:20:15 +000017200 # Set some defaults for GNU ld with shared library support. These
17201 # are reset later if shared libraries are not supported. Putting them
17202 # here allows them to be overridden if necessary.
17203 runpath_var=LD_RUN_PATH
17204 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17205 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17206 # ancient GNU ld didn't support --whole-archive et. al.
17207 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17208 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17209 else
17210 whole_archive_flag_spec_GCJ=
17211 fi
17212 supports_anon_versioning=no
17213 case `$LD -v 2>/dev/null` in
17214 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17215 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17216 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17217 *\ 2.11.*) ;; # other 2.11 versions
17218 *) supports_anon_versioning=yes ;;
17219 esac
17220
brynercb91a2f2006-08-25 21:14:45 +000017221 # See if GNU ld supports shared libraries.
17222 case $host_os in
17223 aix3* | aix4* | aix5*)
17224 # On AIX/PPC, the GNU linker is very broken
17225 if test "$host_cpu" != ia64; then
17226 ld_shlibs_GCJ=no
17227 cat <<EOF 1>&2
17228
17229*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17230*** to be unable to reliably create shared libraries on AIX.
17231*** Therefore, libtool is disabling shared libraries support. If you
17232*** really care for shared libraries, you may want to modify your PATH
17233*** so that a non-GNU linker is found, and then restart.
17234
17235EOF
17236 fi
17237 ;;
17238
17239 amigaos*)
17240 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17241 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17242 hardcode_minus_L_GCJ=yes
17243
17244 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17245 # that the semantics of dynamic libraries on AmigaOS, at least up
17246 # to version 4, is to share data among multiple programs linked
17247 # with the same dynamic library. Since this doesn't match the
17248 # behavior of shared libraries on other platforms, we can't use
17249 # them.
17250 ld_shlibs_GCJ=no
17251 ;;
17252
17253 beos*)
17254 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17255 allow_undefined_flag_GCJ=unsupported
17256 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17257 # support --undefined. This deserves some investigation. FIXME
17258 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17259 else
17260 ld_shlibs_GCJ=no
17261 fi
17262 ;;
17263
17264 cygwin* | mingw* | pw32*)
17265 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17266 # as there is no search path for DLLs.
17267 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17268 allow_undefined_flag_GCJ=unsupported
17269 always_export_symbols_GCJ=no
17270 enable_shared_with_static_runtimes_GCJ=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000017271 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000017272
17273 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017274 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
brynercb91a2f2006-08-25 21:14:45 +000017275 # If the export-symbols file already is a .def file (1st line
17276 # is EXPORTS), use it as is; otherwise, prepend...
17277 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17278 cp $export_symbols $output_objdir/$soname.def;
17279 else
17280 echo EXPORTS > $output_objdir/$soname.def;
17281 cat $export_symbols >> $output_objdir/$soname.def;
17282 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +000017283 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
brynercb91a2f2006-08-25 21:14:45 +000017284 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017285 ld_shlibs_GCJ=no
brynercb91a2f2006-08-25 21:14:45 +000017286 fi
17287 ;;
17288
mmentovai8c2a4de2006-09-20 16:20:15 +000017289 interix3*)
17290 hardcode_direct_GCJ=no
17291 hardcode_shlibpath_var_GCJ=no
17292 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17293 export_dynamic_flag_spec_GCJ='${wl}-E'
17294 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17295 # Instead, shared libraries are loaded at an image base (0x10000000 by
17296 # default) and relocated if they conflict, which is a slow very memory
17297 # consuming and fragmenting process. To avoid this, we pick a random,
17298 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17299 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17300 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17301 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17302 ;;
17303
17304 linux*)
17305 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17306 tmp_addflag=
17307 case $cc_basename,$host_cpu in
17308 pgcc*) # Portland Group C compiler
17309 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17310 tmp_addflag=' $pic_flag'
17311 ;;
17312 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17313 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17314 tmp_addflag=' $pic_flag -Mnomain' ;;
17315 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17316 tmp_addflag=' -i_dynamic' ;;
17317 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17318 tmp_addflag=' -i_dynamic -nofor_main' ;;
17319 ifc* | ifort*) # Intel Fortran compiler
17320 tmp_addflag=' -nofor_main' ;;
17321 esac
17322 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17323
17324 if test $supports_anon_versioning = yes; then
17325 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17326 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17327 $echo "local: *; };" >> $output_objdir/$libname.ver~
17328 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17329 fi
17330 else
17331 ld_shlibs_GCJ=no
17332 fi
17333 ;;
17334
17335 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000017336 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17337 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17338 wlarc=
17339 else
17340 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17341 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17342 fi
17343 ;;
17344
mmentovai8c2a4de2006-09-20 16:20:15 +000017345 solaris*)
brynercb91a2f2006-08-25 21:14:45 +000017346 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17347 ld_shlibs_GCJ=no
17348 cat <<EOF 1>&2
17349
17350*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17351*** create shared libraries on Solaris systems. Therefore, libtool
17352*** is disabling shared libraries support. We urge you to upgrade GNU
17353*** binutils to release 2.9.1 or newer. Another option is to modify
17354*** your PATH or compiler configuration so that the native linker is
17355*** used, and then restart.
17356
17357EOF
17358 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17359 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17360 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17361 else
17362 ld_shlibs_GCJ=no
17363 fi
17364 ;;
17365
mmentovai8c2a4de2006-09-20 16:20:15 +000017366 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17367 case `$LD -v 2>&1` in
17368 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17369 ld_shlibs_GCJ=no
17370 cat <<_LT_EOF 1>&2
17371
17372*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17373*** reliably create shared libraries on SCO systems. Therefore, libtool
17374*** is disabling shared libraries support. We urge you to upgrade GNU
17375*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17376*** your PATH or compiler configuration so that the native linker is
17377*** used, and then restart.
17378
17379_LT_EOF
17380 ;;
17381 *)
17382 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17383 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17384 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17385 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17386 else
17387 ld_shlibs_GCJ=no
17388 fi
17389 ;;
17390 esac
17391 ;;
17392
brynercb91a2f2006-08-25 21:14:45 +000017393 sunos4*)
17394 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17395 wlarc=
17396 hardcode_direct_GCJ=yes
17397 hardcode_shlibpath_var_GCJ=no
17398 ;;
17399
brynercb91a2f2006-08-25 21:14:45 +000017400 *)
17401 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17402 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17403 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17404 else
17405 ld_shlibs_GCJ=no
17406 fi
17407 ;;
17408 esac
17409
mmentovai8c2a4de2006-09-20 16:20:15 +000017410 if test "$ld_shlibs_GCJ" = no; then
17411 runpath_var=
17412 hardcode_libdir_flag_spec_GCJ=
17413 export_dynamic_flag_spec_GCJ=
17414 whole_archive_flag_spec_GCJ=
brynercb91a2f2006-08-25 21:14:45 +000017415 fi
17416 else
17417 # PORTME fill in a description of your system's linker (not GNU ld)
17418 case $host_os in
17419 aix3*)
17420 allow_undefined_flag_GCJ=unsupported
17421 always_export_symbols_GCJ=yes
17422 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17423 # Note: this linker hardcodes the directories in LIBPATH if there
17424 # are no directories specified by -L.
17425 hardcode_minus_L_GCJ=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000017426 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
brynercb91a2f2006-08-25 21:14:45 +000017427 # Neither direct hardcoding nor static linking is supported with a
17428 # broken collect2.
17429 hardcode_direct_GCJ=unsupported
17430 fi
17431 ;;
17432
17433 aix4* | aix5*)
17434 if test "$host_cpu" = ia64; then
17435 # On IA64, the linker does run time linking by default, so we don't
17436 # have to do anything special.
17437 aix_use_runtimelinking=no
17438 exp_sym_flag='-Bexport'
17439 no_entry_flag=""
17440 else
17441 # If we're using GNU nm, then we don't want the "-C" option.
17442 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17443 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17444 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17445 else
17446 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17447 fi
17448 aix_use_runtimelinking=no
17449
17450 # Test if we are trying to use run time linking or normal
17451 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17452 # need to do runtime linking.
17453 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17454 for ld_flag in $LDFLAGS; do
17455 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17456 aix_use_runtimelinking=yes
17457 break
17458 fi
17459 done
mmentovai8c2a4de2006-09-20 16:20:15 +000017460 ;;
brynercb91a2f2006-08-25 21:14:45 +000017461 esac
17462
17463 exp_sym_flag='-bexport'
17464 no_entry_flag='-bnoentry'
17465 fi
17466
17467 # When large executables or shared objects are built, AIX ld can
17468 # have problems creating the table of contents. If linking a library
17469 # or program results in "error TOC overflow" add -mminimal-toc to
17470 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17471 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17472
17473 archive_cmds_GCJ=''
17474 hardcode_direct_GCJ=yes
17475 hardcode_libdir_separator_GCJ=':'
17476 link_all_deplibs_GCJ=yes
17477
17478 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017479 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +000017480 # We only want to do this on AIX 4.2 and lower, the check
17481 # below for broken collect2 doesn't work under 4.3+
17482 collect2name=`${CC} -print-prog-name=collect2`
17483 if test -f "$collect2name" && \
17484 strings "$collect2name" | grep resolve_lib_name >/dev/null
17485 then
17486 # We have reworked collect2
17487 hardcode_direct_GCJ=yes
17488 else
17489 # We have old collect2
17490 hardcode_direct_GCJ=unsupported
17491 # It fails to find uninstalled libraries when the uninstalled
17492 # path is not listed in the libpath. Setting hardcode_minus_L
17493 # to unsupported forces relinking
17494 hardcode_minus_L_GCJ=yes
17495 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17496 hardcode_libdir_separator_GCJ=
17497 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000017498 ;;
brynercb91a2f2006-08-25 21:14:45 +000017499 esac
17500 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +000017501 if test "$aix_use_runtimelinking" = yes; then
17502 shared_flag="$shared_flag "'${wl}-G'
17503 fi
brynercb91a2f2006-08-25 21:14:45 +000017504 else
17505 # not using gcc
17506 if test "$host_cpu" = ia64; then
17507 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17508 # chokes on -Wl,-G. The following line is correct:
17509 shared_flag='-G'
17510 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017511 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000017512 shared_flag='${wl}-G'
17513 else
17514 shared_flag='${wl}-bM:SRE'
mmentovai8c2a4de2006-09-20 16:20:15 +000017515 fi
brynercb91a2f2006-08-25 21:14:45 +000017516 fi
17517 fi
17518
17519 # It seems that -bexpall does not export symbols beginning with
17520 # underscore (_), so it is better to generate a list of symbols to export.
17521 always_export_symbols_GCJ=yes
17522 if test "$aix_use_runtimelinking" = yes; then
17523 # Warning - without using the other runtime loading flags (-brtl),
17524 # -berok will link without error, but may produce a broken library.
17525 allow_undefined_flag_GCJ='-berok'
17526 # Determine the default libpath from the value encoded in an empty executable.
17527 cat >conftest.$ac_ext <<_ACEOF
17528/* confdefs.h. */
17529_ACEOF
17530cat confdefs.h >>conftest.$ac_ext
17531cat >>conftest.$ac_ext <<_ACEOF
17532/* end confdefs.h. */
17533
17534int
17535main ()
17536{
17537
17538 ;
17539 return 0;
17540}
17541_ACEOF
17542rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000017543if { (ac_try="$ac_link"
17544case "(($ac_try" in
17545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17546 *) ac_try_echo=$ac_try;;
17547esac
17548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17549 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000017550 ac_status=$?
17551 grep -v '^ *+' conftest.er1 >conftest.err
17552 rm -f conftest.er1
17553 cat conftest.err >&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +000017556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17557 { (case "(($ac_try" in
17558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17559 *) ac_try_echo=$ac_try;;
17560esac
17561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17562 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000017563 ac_status=$?
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; } &&
17566 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000017567 { (case "(($ac_try" in
17568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17569 *) ac_try_echo=$ac_try;;
17570esac
17571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17572 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000017573 ac_status=$?
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; }; then
17576
17577aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17578}'`
17579# Check for a 64-bit object if we didn't find anything.
17580if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17581}'`; fi
17582else
17583 echo "$as_me: failed program was:" >&5
17584sed 's/^/| /' conftest.$ac_ext >&5
17585
mmentovai8c2a4de2006-09-20 16:20:15 +000017586
brynercb91a2f2006-08-25 21:14:45 +000017587fi
mmentovai8c2a4de2006-09-20 16:20:15 +000017588
17589rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +000017590 conftest$ac_exeext conftest.$ac_ext
17591if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17592
17593 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
mmentovai8c2a4de2006-09-20 16:20:15 +000017594 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
brynercb91a2f2006-08-25 21:14:45 +000017595 else
17596 if test "$host_cpu" = ia64; then
17597 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17598 allow_undefined_flag_GCJ="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +000017599 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
brynercb91a2f2006-08-25 21:14:45 +000017600 else
17601 # Determine the default libpath from the value encoded in an empty executable.
17602 cat >conftest.$ac_ext <<_ACEOF
17603/* confdefs.h. */
17604_ACEOF
17605cat confdefs.h >>conftest.$ac_ext
17606cat >>conftest.$ac_ext <<_ACEOF
17607/* end confdefs.h. */
17608
17609int
17610main ()
17611{
17612
17613 ;
17614 return 0;
17615}
17616_ACEOF
17617rm -f conftest.$ac_objext conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000017618if { (ac_try="$ac_link"
17619case "(($ac_try" in
17620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621 *) ac_try_echo=$ac_try;;
17622esac
17623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17624 (eval "$ac_link") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000017625 ac_status=$?
17626 grep -v '^ *+' conftest.er1 >conftest.err
17627 rm -f conftest.er1
17628 cat conftest.err >&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +000017631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17632 { (case "(($ac_try" in
17633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634 *) ac_try_echo=$ac_try;;
17635esac
17636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000017638 ac_status=$?
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); }; } &&
17641 { ac_try='test -s conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000017642 { (case "(($ac_try" in
17643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17644 *) ac_try_echo=$ac_try;;
17645esac
17646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17647 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000017648 ac_status=$?
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; }; then
17651
17652aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17653}'`
17654# Check for a 64-bit object if we didn't find anything.
17655if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17656}'`; fi
17657else
17658 echo "$as_me: failed program was:" >&5
17659sed 's/^/| /' conftest.$ac_ext >&5
17660
mmentovai8c2a4de2006-09-20 16:20:15 +000017661
brynercb91a2f2006-08-25 21:14:45 +000017662fi
mmentovai8c2a4de2006-09-20 16:20:15 +000017663
17664rm -f core conftest.err conftest.$ac_objext \
brynercb91a2f2006-08-25 21:14:45 +000017665 conftest$ac_exeext conftest.$ac_ext
17666if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17667
17668 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17669 # Warning - without using the other run time loading flags,
17670 # -berok will link without error, but may produce a broken library.
17671 no_undefined_flag_GCJ=' ${wl}-bernotok'
17672 allow_undefined_flag_GCJ=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +000017673 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +000017674 whole_archive_flag_spec_GCJ='$convenience'
brynercb91a2f2006-08-25 21:14:45 +000017675 archive_cmds_need_lc_GCJ=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000017676 # This is similar to how AIX traditionally builds its shared libraries.
17677 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
brynercb91a2f2006-08-25 21:14:45 +000017678 fi
17679 fi
17680 ;;
17681
17682 amigaos*)
17683 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17684 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17685 hardcode_minus_L_GCJ=yes
17686 # see comment about different semantics on the GNU ld section
17687 ld_shlibs_GCJ=no
17688 ;;
17689
mmentovai8c2a4de2006-09-20 16:20:15 +000017690 bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000017691 export_dynamic_flag_spec_GCJ=-rdynamic
17692 ;;
17693
17694 cygwin* | mingw* | pw32*)
17695 # When not using gcc, we currently assume that we are using
17696 # Microsoft Visual C++.
17697 # hardcode_libdir_flag_spec is actually meaningless, as there is
17698 # no search path for DLLs.
17699 hardcode_libdir_flag_spec_GCJ=' '
17700 allow_undefined_flag_GCJ=unsupported
17701 # Tell ltmain to make .lib files, not .a files.
17702 libext=lib
17703 # Tell ltmain to make .dll files, not .so files.
17704 shrext_cmds=".dll"
17705 # FIXME: Setting linknames here is a bad hack.
17706 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17707 # The linker will automatically build a .lib file if we build a DLL.
17708 old_archive_From_new_cmds_GCJ='true'
17709 # FIXME: Should let the user specify the lib program.
17710 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
mmentovai8c2a4de2006-09-20 16:20:15 +000017711 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
brynercb91a2f2006-08-25 21:14:45 +000017712 enable_shared_with_static_runtimes_GCJ=yes
17713 ;;
17714
17715 darwin* | rhapsody*)
mmentovai8c2a4de2006-09-20 16:20:15 +000017716 case $host_os in
17717 rhapsody* | darwin1.[012])
17718 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17719 ;;
17720 *) # Darwin 1.3 on
17721 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17722 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17723 else
17724 case ${MACOSX_DEPLOYMENT_TARGET} in
17725 10.[012])
17726 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17727 ;;
17728 10.*)
17729 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17730 ;;
17731 esac
17732 fi
17733 ;;
brynerd5e66382006-09-08 02:35:53 +000017734 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000017735 archive_cmds_need_lc_GCJ=no
brynercb91a2f2006-08-25 21:14:45 +000017736 hardcode_direct_GCJ=no
17737 hardcode_automatic_GCJ=yes
17738 hardcode_shlibpath_var_GCJ=unsupported
mmentovai8c2a4de2006-09-20 16:20:15 +000017739 whole_archive_flag_spec_GCJ=''
brynercb91a2f2006-08-25 21:14:45 +000017740 link_all_deplibs_GCJ=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000017741 if test "$GCC" = yes ; then
17742 output_verbose_link_cmd='echo'
17743 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17744 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17745 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17746 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17747 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
brynercb91a2f2006-08-25 21:14:45 +000017748 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017749 case $cc_basename in
17750 xlc*)
17751 output_verbose_link_cmd='echo'
17752 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17753 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17754 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17755 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17756 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17757 ;;
17758 *)
17759 ld_shlibs_GCJ=no
17760 ;;
17761 esac
brynercb91a2f2006-08-25 21:14:45 +000017762 fi
17763 ;;
17764
17765 dgux*)
17766 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17767 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17768 hardcode_shlibpath_var_GCJ=no
17769 ;;
17770
17771 freebsd1*)
17772 ld_shlibs_GCJ=no
17773 ;;
17774
17775 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17776 # support. Future versions do this automatically, but an explicit c++rt0.o
17777 # does not break anything, and helps significantly (at the cost of a little
17778 # extra space).
17779 freebsd2.2*)
17780 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17781 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17782 hardcode_direct_GCJ=yes
17783 hardcode_shlibpath_var_GCJ=no
17784 ;;
17785
17786 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17787 freebsd2*)
17788 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17789 hardcode_direct_GCJ=yes
17790 hardcode_minus_L_GCJ=yes
17791 hardcode_shlibpath_var_GCJ=no
17792 ;;
17793
17794 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mmentovai8c2a4de2006-09-20 16:20:15 +000017795 freebsd* | kfreebsd*-gnu | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000017796 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17797 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17798 hardcode_direct_GCJ=yes
17799 hardcode_shlibpath_var_GCJ=no
17800 ;;
17801
17802 hpux9*)
17803 if test "$GCC" = yes; then
17804 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17805 else
17806 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17807 fi
17808 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17809 hardcode_libdir_separator_GCJ=:
17810 hardcode_direct_GCJ=yes
17811
17812 # hardcode_minus_L: Not really in the search PATH,
17813 # but as the default location of the library.
17814 hardcode_minus_L_GCJ=yes
17815 export_dynamic_flag_spec_GCJ='${wl}-E'
17816 ;;
17817
mmentovai8c2a4de2006-09-20 16:20:15 +000017818 hpux10*)
brynercb91a2f2006-08-25 21:14:45 +000017819 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017820 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17821 else
17822 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17823 fi
17824 if test "$with_gnu_ld" = no; then
17825 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17826 hardcode_libdir_separator_GCJ=:
17827
17828 hardcode_direct_GCJ=yes
17829 export_dynamic_flag_spec_GCJ='${wl}-E'
17830
17831 # hardcode_minus_L: Not really in the search PATH,
17832 # but as the default location of the library.
17833 hardcode_minus_L_GCJ=yes
17834 fi
17835 ;;
17836
17837 hpux11*)
17838 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17839 case $host_cpu in
17840 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +000017841 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17842 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000017843 ia64*)
17844 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17845 ;;
brynercb91a2f2006-08-25 21:14:45 +000017846 *)
17847 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17848 ;;
17849 esac
17850 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017851 case $host_cpu in
17852 hppa*64*)
17853 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17854 ;;
17855 ia64*)
17856 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000017857 ;;
17858 *)
mmentovai8c2a4de2006-09-20 16:20:15 +000017859 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +000017860 ;;
17861 esac
17862 fi
17863 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017864 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17865 hardcode_libdir_separator_GCJ=:
brynerd5e66382006-09-08 02:35:53 +000017866
mmentovai8c2a4de2006-09-20 16:20:15 +000017867 case $host_cpu in
17868 hppa*64*|ia64*)
17869 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17870 hardcode_direct_GCJ=no
17871 hardcode_shlibpath_var_GCJ=no
brynerd5e66382006-09-08 02:35:53 +000017872 ;;
brynercb91a2f2006-08-25 21:14:45 +000017873 *)
brynercb91a2f2006-08-25 21:14:45 +000017874 hardcode_direct_GCJ=yes
17875 export_dynamic_flag_spec_GCJ='${wl}-E'
17876
17877 # hardcode_minus_L: Not really in the search PATH,
17878 # but as the default location of the library.
17879 hardcode_minus_L_GCJ=yes
17880 ;;
17881 esac
17882 fi
17883 ;;
17884
17885 irix5* | irix6* | nonstopux*)
17886 if test "$GCC" = yes; then
17887 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17888 else
17889 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17890 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17891 fi
17892 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17893 hardcode_libdir_separator_GCJ=:
17894 link_all_deplibs_GCJ=yes
17895 ;;
17896
mmentovai8c2a4de2006-09-20 16:20:15 +000017897 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000017898 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17899 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17900 else
17901 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17902 fi
17903 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17904 hardcode_direct_GCJ=yes
17905 hardcode_shlibpath_var_GCJ=no
17906 ;;
17907
17908 newsos6)
17909 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17910 hardcode_direct_GCJ=yes
17911 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17912 hardcode_libdir_separator_GCJ=:
17913 hardcode_shlibpath_var_GCJ=no
17914 ;;
17915
17916 openbsd*)
17917 hardcode_direct_GCJ=yes
17918 hardcode_shlibpath_var_GCJ=no
17919 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17920 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +000017921 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000017922 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17923 export_dynamic_flag_spec_GCJ='${wl}-E'
17924 else
17925 case $host_os in
17926 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17927 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17928 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17929 ;;
17930 *)
17931 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17932 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17933 ;;
17934 esac
17935 fi
17936 ;;
17937
17938 os2*)
17939 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17940 hardcode_minus_L_GCJ=yes
17941 allow_undefined_flag_GCJ=unsupported
17942 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17943 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17944 ;;
17945
17946 osf3*)
17947 if test "$GCC" = yes; then
17948 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17949 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17950 else
17951 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17952 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17953 fi
17954 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17955 hardcode_libdir_separator_GCJ=:
17956 ;;
17957
17958 osf4* | osf5*) # as osf3* with the addition of -msym flag
17959 if test "$GCC" = yes; then
17960 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17961 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17962 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17963 else
17964 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17965 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17966 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
mmentovai8c2a4de2006-09-20 16:20:15 +000017967 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
brynercb91a2f2006-08-25 21:14:45 +000017968
17969 # Both c and cxx compiler support -rpath directly
17970 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17971 fi
17972 hardcode_libdir_separator_GCJ=:
17973 ;;
17974
brynercb91a2f2006-08-25 21:14:45 +000017975 solaris*)
17976 no_undefined_flag_GCJ=' -z text'
17977 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000017978 wlarc='${wl}'
brynercb91a2f2006-08-25 21:14:45 +000017979 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17980 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17981 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17982 else
mmentovai8c2a4de2006-09-20 16:20:15 +000017983 wlarc=''
brynercb91a2f2006-08-25 21:14:45 +000017984 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17985 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17986 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17987 fi
17988 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17989 hardcode_shlibpath_var_GCJ=no
17990 case $host_os in
17991 solaris2.[0-5] | solaris2.[0-5].*) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000017992 *)
17993 # The compiler driver will combine linker options so we
17994 # cannot just pass the convience library names through
17995 # without $wl, iff we do not link with $LD.
17996 # Luckily, gcc supports the same syntax we need for Sun Studio.
17997 # Supported since Solaris 2.6 (maybe 2.5.1?)
17998 case $wlarc in
17999 '')
18000 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18001 *)
18002 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18003 esac ;;
brynercb91a2f2006-08-25 21:14:45 +000018004 esac
18005 link_all_deplibs_GCJ=yes
18006 ;;
18007
18008 sunos4*)
18009 if test "x$host_vendor" = xsequent; then
18010 # Use $CC to link under sequent, because it throws in some extra .o
18011 # files that make .init and .fini sections work.
18012 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18013 else
18014 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18015 fi
18016 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18017 hardcode_direct_GCJ=yes
18018 hardcode_minus_L_GCJ=yes
18019 hardcode_shlibpath_var_GCJ=no
18020 ;;
18021
18022 sysv4)
18023 case $host_vendor in
18024 sni)
18025 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18026 hardcode_direct_GCJ=yes # is this really true???
18027 ;;
18028 siemens)
18029 ## LD is ld it makes a PLAMLIB
18030 ## CC just makes a GrossModule.
18031 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18032 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18033 hardcode_direct_GCJ=no
18034 ;;
18035 motorola)
18036 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18037 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18038 ;;
18039 esac
18040 runpath_var='LD_RUN_PATH'
18041 hardcode_shlibpath_var_GCJ=no
18042 ;;
18043
18044 sysv4.3*)
18045 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18046 hardcode_shlibpath_var_GCJ=no
18047 export_dynamic_flag_spec_GCJ='-Bexport'
18048 ;;
18049
18050 sysv4*MP*)
18051 if test -d /usr/nec; then
18052 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18053 hardcode_shlibpath_var_GCJ=no
18054 runpath_var=LD_RUN_PATH
18055 hardcode_runpath_var=yes
18056 ld_shlibs_GCJ=yes
18057 fi
18058 ;;
18059
mmentovai8c2a4de2006-09-20 16:20:15 +000018060 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18061 no_undefined_flag_GCJ='${wl}-z,text'
18062 archive_cmds_need_lc_GCJ=no
brynercb91a2f2006-08-25 21:14:45 +000018063 hardcode_shlibpath_var_GCJ=no
mmentovai8c2a4de2006-09-20 16:20:15 +000018064 runpath_var='LD_RUN_PATH'
bryner07f8ef52006-09-05 19:42:57 +000018065
mmentovai3261e8b2006-09-06 02:56:44 +000018066 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000018067 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18068 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +000018069 else
mmentovai8c2a4de2006-09-20 16:20:15 +000018070 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18071 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +000018072 fi
brynerd5e66382006-09-08 02:35:53 +000018073 ;;
18074
mmentovai8c2a4de2006-09-20 16:20:15 +000018075 sysv5* | sco3.2v5* | sco5v6*)
18076 # Note: We can NOT use -z defs as we might desire, because we do not
18077 # link with -lc, and that would cause any symbols used from libc to
18078 # always be unresolved, which means just about no library would
18079 # ever link correctly. If we're not using GNU ld we use -z text
18080 # though, which does catch some bad symbols but isn't as heavy-handed
18081 # as -z defs.
18082 no_undefined_flag_GCJ='${wl}-z,text'
18083 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18084 archive_cmds_need_lc_GCJ=no
brynerd5e66382006-09-08 02:35:53 +000018085 hardcode_shlibpath_var_GCJ=no
mmentovai8c2a4de2006-09-20 16:20:15 +000018086 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18087 hardcode_libdir_separator_GCJ=':'
18088 link_all_deplibs_GCJ=yes
18089 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
brynerd5e66382006-09-08 02:35:53 +000018090 runpath_var='LD_RUN_PATH'
mmentovai8c2a4de2006-09-20 16:20:15 +000018091
18092 if test "$GCC" = yes; then
18093 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18094 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18095 else
18096 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18097 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18098 fi
brynercb91a2f2006-08-25 21:14:45 +000018099 ;;
18100
18101 uts4*)
18102 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18103 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18104 hardcode_shlibpath_var_GCJ=no
18105 ;;
18106
18107 *)
18108 ld_shlibs_GCJ=no
18109 ;;
18110 esac
18111 fi
18112
mmentovai8c2a4de2006-09-20 16:20:15 +000018113{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18114echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018115test "$ld_shlibs_GCJ" = no && can_build_shared=no
18116
brynercb91a2f2006-08-25 21:14:45 +000018117#
18118# Do we need to explicitly link libc?
18119#
18120case "x$archive_cmds_need_lc_GCJ" in
18121x|xyes)
18122 # Assume -lc should be added
18123 archive_cmds_need_lc_GCJ=yes
18124
18125 if test "$enable_shared" = yes && test "$GCC" = yes; then
18126 case $archive_cmds_GCJ in
18127 *'~'*)
18128 # FIXME: we may have to deal with multi-command sequences.
18129 ;;
18130 '$CC '*)
18131 # Test whether the compiler implicitly links with -lc since on some
18132 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18133 # to ld, don't add -lc before -lgcc.
mmentovai8c2a4de2006-09-20 16:20:15 +000018134 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18135echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018136 $rm conftest*
18137 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18138
18139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18140 (eval $ac_compile) 2>&5
18141 ac_status=$?
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); } 2>conftest.err; then
18144 soname=conftest
18145 lib=conftest
18146 libobjs=conftest.$ac_objext
18147 deplibs=
18148 wl=$lt_prog_compiler_wl_GCJ
mmentovai8c2a4de2006-09-20 16:20:15 +000018149 pic_flag=$lt_prog_compiler_pic_GCJ
brynercb91a2f2006-08-25 21:14:45 +000018150 compiler_flags=-v
18151 linker_flags=-v
18152 verstring=
18153 output_objdir=.
18154 libname=conftest
18155 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18156 allow_undefined_flag_GCJ=
18157 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18158 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18159 ac_status=$?
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); }
18162 then
18163 archive_cmds_need_lc_GCJ=no
18164 else
18165 archive_cmds_need_lc_GCJ=yes
18166 fi
18167 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18168 else
18169 cat conftest.err 1>&5
18170 fi
18171 $rm conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000018172 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18173echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018174 ;;
18175 esac
18176 fi
18177 ;;
18178esac
18179
mmentovai8c2a4de2006-09-20 16:20:15 +000018180{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18181echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018182library_names_spec=
18183libname_spec='lib$name'
18184soname_spec=
18185shrext_cmds=".so"
18186postinstall_cmds=
18187postuninstall_cmds=
18188finish_cmds=
18189finish_eval=
18190shlibpath_var=
18191shlibpath_overrides_runpath=unknown
18192version_type=none
18193dynamic_linker="$host_os ld.so"
18194sys_lib_dlsearch_path_spec="/lib /usr/lib"
18195if test "$GCC" = yes; then
18196 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18197 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18198 # if the path contains ";" then we assume it to be the separator
18199 # otherwise default to the standard path separator (i.e. ":") - it is
18200 # assumed that no part of a normal pathname contains ";" but that should
18201 # okay in the real world where ";" in dirpaths is itself problematic.
18202 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18203 else
18204 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18205 fi
18206else
18207 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18208fi
18209need_lib_prefix=unknown
18210hardcode_into_libs=no
18211
18212# when you set need_version to no, make sure it does not cause -set_version
18213# flags to be left without arguments
18214need_version=unknown
18215
18216case $host_os in
18217aix3*)
18218 version_type=linux
18219 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18220 shlibpath_var=LIBPATH
18221
18222 # AIX 3 has no versioning support, so we append a major version to the name.
18223 soname_spec='${libname}${release}${shared_ext}$major'
18224 ;;
18225
18226aix4* | aix5*)
18227 version_type=linux
18228 need_lib_prefix=no
18229 need_version=no
18230 hardcode_into_libs=yes
18231 if test "$host_cpu" = ia64; then
18232 # AIX 5 supports IA64
18233 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18234 shlibpath_var=LD_LIBRARY_PATH
18235 else
18236 # With GCC up to 2.95.x, collect2 would create an import file
18237 # for dependence libraries. The import file would start with
18238 # the line `#! .'. This would cause the generated library to
18239 # depend on `.', always an invalid library. This was fixed in
18240 # development snapshots of GCC prior to 3.0.
18241 case $host_os in
18242 aix4 | aix4.[01] | aix4.[01].*)
18243 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18244 echo ' yes '
18245 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18246 :
18247 else
18248 can_build_shared=no
18249 fi
18250 ;;
18251 esac
18252 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18253 # soname into executable. Probably we can add versioning support to
18254 # collect2, so additional links can be useful in future.
18255 if test "$aix_use_runtimelinking" = yes; then
18256 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18257 # instead of lib<name>.a to let people know that these are not
18258 # typical AIX shared libraries.
18259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18260 else
18261 # We preserve .a as extension for shared libraries through AIX4.2
18262 # and later when we are not doing run time linking.
18263 library_names_spec='${libname}${release}.a $libname.a'
18264 soname_spec='${libname}${release}${shared_ext}$major'
18265 fi
18266 shlibpath_var=LIBPATH
18267 fi
18268 ;;
18269
18270amigaos*)
18271 library_names_spec='$libname.ixlibrary $libname.a'
18272 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18273 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'
18274 ;;
18275
18276beos*)
18277 library_names_spec='${libname}${shared_ext}'
18278 dynamic_linker="$host_os ld.so"
18279 shlibpath_var=LIBRARY_PATH
18280 ;;
18281
mmentovai8c2a4de2006-09-20 16:20:15 +000018282bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000018283 version_type=linux
18284 need_version=no
18285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18286 soname_spec='${libname}${release}${shared_ext}$major'
18287 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18288 shlibpath_var=LD_LIBRARY_PATH
18289 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18290 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18291 # the default ld.so.conf also contains /usr/contrib/lib and
18292 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18293 # libtool to hard-code these into programs
18294 ;;
18295
18296cygwin* | mingw* | pw32*)
18297 version_type=windows
18298 shrext_cmds=".dll"
18299 need_version=no
18300 need_lib_prefix=no
18301
18302 case $GCC,$host_os in
18303 yes,cygwin* | yes,mingw* | yes,pw32*)
18304 library_names_spec='$libname.dll.a'
18305 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18306 postinstall_cmds='base_file=`basename \${file}`~
18307 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18308 dldir=$destdir/`dirname \$dlpath`~
18309 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000018310 $install_prog $dir/$dlname \$dldir/$dlname~
18311 chmod a+x \$dldir/$dlname'
brynercb91a2f2006-08-25 21:14:45 +000018312 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18313 dlpath=$dir/\$dldll~
18314 $rm \$dlpath'
18315 shlibpath_overrides_runpath=yes
18316
18317 case $host_os in
18318 cygwin*)
18319 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18320 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18321 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18322 ;;
18323 mingw*)
18324 # MinGW DLLs use traditional 'lib' prefix
18325 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18326 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18327 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18328 # It is most probably a Windows format PATH printed by
18329 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18330 # path with ; separators, and with drive letters. We can handle the
18331 # drive letters (cygwin fileutils understands them), so leave them,
18332 # especially as we might pass files found there to a mingw objdump,
18333 # which wouldn't understand a cygwinified path. Ahh.
18334 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18335 else
18336 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18337 fi
18338 ;;
18339 pw32*)
18340 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000018341 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
brynercb91a2f2006-08-25 21:14:45 +000018342 ;;
18343 esac
18344 ;;
18345
18346 *)
18347 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18348 ;;
18349 esac
18350 dynamic_linker='Win32 ld.exe'
18351 # FIXME: first we should search . and the directory the executable is in
18352 shlibpath_var=PATH
18353 ;;
18354
18355darwin* | rhapsody*)
18356 dynamic_linker="$host_os dyld"
18357 version_type=darwin
18358 need_lib_prefix=no
18359 need_version=no
18360 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18361 soname_spec='${libname}${release}${major}$shared_ext'
18362 shlibpath_overrides_runpath=yes
18363 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000018364 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
brynercb91a2f2006-08-25 21:14:45 +000018365 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18366 if test "$GCC" = yes; then
18367 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18368 else
18369 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18370 fi
18371 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18372 ;;
18373
18374dgux*)
18375 version_type=linux
18376 need_lib_prefix=no
18377 need_version=no
18378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18379 soname_spec='${libname}${release}${shared_ext}$major'
18380 shlibpath_var=LD_LIBRARY_PATH
18381 ;;
18382
18383freebsd1*)
18384 dynamic_linker=no
18385 ;;
18386
18387kfreebsd*-gnu)
18388 version_type=linux
18389 need_lib_prefix=no
18390 need_version=no
18391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18392 soname_spec='${libname}${release}${shared_ext}$major'
18393 shlibpath_var=LD_LIBRARY_PATH
18394 shlibpath_overrides_runpath=no
18395 hardcode_into_libs=yes
18396 dynamic_linker='GNU ld.so'
18397 ;;
18398
mmentovai8c2a4de2006-09-20 16:20:15 +000018399freebsd* | dragonfly*)
18400 # DragonFly does not have aout. When/if they implement a new
18401 # versioning mechanism, adjust this.
18402 if test -x /usr/bin/objformat; then
18403 objformat=`/usr/bin/objformat`
18404 else
18405 case $host_os in
18406 freebsd[123]*) objformat=aout ;;
18407 *) objformat=elf ;;
18408 esac
18409 fi
brynercb91a2f2006-08-25 21:14:45 +000018410 version_type=freebsd-$objformat
18411 case $version_type in
18412 freebsd-elf*)
18413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18414 need_version=no
18415 need_lib_prefix=no
18416 ;;
18417 freebsd-*)
18418 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18419 need_version=yes
18420 ;;
18421 esac
18422 shlibpath_var=LD_LIBRARY_PATH
18423 case $host_os in
18424 freebsd2*)
18425 shlibpath_overrides_runpath=yes
18426 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000018427 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000018428 shlibpath_overrides_runpath=yes
18429 hardcode_into_libs=yes
18430 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000018431 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18432 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000018433 shlibpath_overrides_runpath=no
18434 hardcode_into_libs=yes
18435 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000018436 freebsd*) # from 4.6 on
18437 shlibpath_overrides_runpath=yes
18438 hardcode_into_libs=yes
18439 ;;
brynercb91a2f2006-08-25 21:14:45 +000018440 esac
18441 ;;
18442
18443gnu*)
18444 version_type=linux
18445 need_lib_prefix=no
18446 need_version=no
18447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18448 soname_spec='${libname}${release}${shared_ext}$major'
18449 shlibpath_var=LD_LIBRARY_PATH
18450 hardcode_into_libs=yes
18451 ;;
18452
18453hpux9* | hpux10* | hpux11*)
18454 # Give a soname corresponding to the major version so that dld.sl refuses to
18455 # link against other versions.
18456 version_type=sunos
18457 need_lib_prefix=no
18458 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000018459 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000018460 ia64*)
18461 shrext_cmds='.so'
18462 hardcode_into_libs=yes
18463 dynamic_linker="$host_os dld.so"
18464 shlibpath_var=LD_LIBRARY_PATH
18465 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18467 soname_spec='${libname}${release}${shared_ext}$major'
18468 if test "X$HPUX_IA64_MODE" = X32; then
18469 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18470 else
18471 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18472 fi
18473 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18474 ;;
18475 hppa*64*)
18476 shrext_cmds='.sl'
18477 hardcode_into_libs=yes
18478 dynamic_linker="$host_os dld.sl"
18479 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18480 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18482 soname_spec='${libname}${release}${shared_ext}$major'
18483 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18484 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18485 ;;
18486 *)
18487 shrext_cmds='.sl'
18488 dynamic_linker="$host_os dld.sl"
18489 shlibpath_var=SHLIB_PATH
18490 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18492 soname_spec='${libname}${release}${shared_ext}$major'
18493 ;;
18494 esac
18495 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18496 postinstall_cmds='chmod 555 $lib'
18497 ;;
18498
mmentovai8c2a4de2006-09-20 16:20:15 +000018499interix3*)
18500 version_type=linux
18501 need_lib_prefix=no
18502 need_version=no
18503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18504 soname_spec='${libname}${release}${shared_ext}$major'
18505 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18506 shlibpath_var=LD_LIBRARY_PATH
18507 shlibpath_overrides_runpath=no
18508 hardcode_into_libs=yes
18509 ;;
18510
brynercb91a2f2006-08-25 21:14:45 +000018511irix5* | irix6* | nonstopux*)
18512 case $host_os in
18513 nonstopux*) version_type=nonstopux ;;
18514 *)
18515 if test "$lt_cv_prog_gnu_ld" = yes; then
18516 version_type=linux
18517 else
18518 version_type=irix
18519 fi ;;
18520 esac
18521 need_lib_prefix=no
18522 need_version=no
18523 soname_spec='${libname}${release}${shared_ext}$major'
18524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18525 case $host_os in
18526 irix5* | nonstopux*)
18527 libsuff= shlibsuff=
18528 ;;
18529 *)
18530 case $LD in # libtool.m4 will add one of these switches to LD
18531 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18532 libsuff= shlibsuff= libmagic=32-bit;;
18533 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18534 libsuff=32 shlibsuff=N32 libmagic=N32;;
18535 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18536 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18537 *) libsuff= shlibsuff= libmagic=never-match;;
18538 esac
18539 ;;
18540 esac
18541 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18542 shlibpath_overrides_runpath=no
18543 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18544 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18545 hardcode_into_libs=yes
18546 ;;
18547
18548# No shared lib support for Linux oldld, aout, or coff.
18549linux*oldld* | linux*aout* | linux*coff*)
18550 dynamic_linker=no
18551 ;;
18552
18553# This must be Linux ELF.
18554linux*)
18555 version_type=linux
18556 need_lib_prefix=no
18557 need_version=no
18558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18559 soname_spec='${libname}${release}${shared_ext}$major'
18560 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18561 shlibpath_var=LD_LIBRARY_PATH
18562 shlibpath_overrides_runpath=no
18563 # This implies no fast_install, which is unacceptable.
18564 # Some rework will be needed to allow for fast_install
18565 # before this can be enabled.
18566 hardcode_into_libs=yes
18567
18568 # Append ld.so.conf contents to the search path
18569 if test -f /etc/ld.so.conf; then
mmentovai8c2a4de2006-09-20 16:20:15 +000018570 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
brynercb91a2f2006-08-25 21:14:45 +000018571 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18572 fi
18573
18574 # We used to test for /lib/ld.so.1 and disable shared libraries on
18575 # powerpc, because MkLinux only supported shared libraries with the
18576 # GNU dynamic linker. Since this was broken with cross compilers,
18577 # most powerpc-linux boxes support dynamic linking these days and
18578 # people can always --disable-shared, the test was removed, and we
18579 # assume the GNU/Linux dynamic linker is in use.
18580 dynamic_linker='GNU/Linux ld.so'
18581 ;;
18582
brynercb91a2f2006-08-25 21:14:45 +000018583knetbsd*-gnu)
18584 version_type=linux
18585 need_lib_prefix=no
18586 need_version=no
18587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18588 soname_spec='${libname}${release}${shared_ext}$major'
18589 shlibpath_var=LD_LIBRARY_PATH
18590 shlibpath_overrides_runpath=no
18591 hardcode_into_libs=yes
18592 dynamic_linker='GNU ld.so'
18593 ;;
18594
18595netbsd*)
18596 version_type=sunos
18597 need_lib_prefix=no
18598 need_version=no
18599 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18601 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18602 dynamic_linker='NetBSD (a.out) ld.so'
18603 else
18604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18605 soname_spec='${libname}${release}${shared_ext}$major'
18606 dynamic_linker='NetBSD ld.elf_so'
18607 fi
18608 shlibpath_var=LD_LIBRARY_PATH
18609 shlibpath_overrides_runpath=yes
18610 hardcode_into_libs=yes
18611 ;;
18612
18613newsos6)
18614 version_type=linux
18615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18616 shlibpath_var=LD_LIBRARY_PATH
18617 shlibpath_overrides_runpath=yes
18618 ;;
18619
18620nto-qnx*)
18621 version_type=linux
18622 need_lib_prefix=no
18623 need_version=no
18624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18625 soname_spec='${libname}${release}${shared_ext}$major'
18626 shlibpath_var=LD_LIBRARY_PATH
18627 shlibpath_overrides_runpath=yes
18628 ;;
18629
18630openbsd*)
18631 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000018632 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000018633 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000018634 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18635 case $host_os in
18636 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18637 *) need_version=no ;;
18638 esac
brynercb91a2f2006-08-25 21:14:45 +000018639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18641 shlibpath_var=LD_LIBRARY_PATH
18642 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18643 case $host_os in
18644 openbsd2.[89] | openbsd2.[89].*)
18645 shlibpath_overrides_runpath=no
18646 ;;
18647 *)
18648 shlibpath_overrides_runpath=yes
18649 ;;
18650 esac
18651 else
18652 shlibpath_overrides_runpath=yes
18653 fi
18654 ;;
18655
18656os2*)
18657 libname_spec='$name'
18658 shrext_cmds=".dll"
18659 need_lib_prefix=no
18660 library_names_spec='$libname${shared_ext} $libname.a'
18661 dynamic_linker='OS/2 ld.exe'
18662 shlibpath_var=LIBPATH
18663 ;;
18664
18665osf3* | osf4* | osf5*)
18666 version_type=osf
18667 need_lib_prefix=no
18668 need_version=no
18669 soname_spec='${libname}${release}${shared_ext}$major'
18670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18671 shlibpath_var=LD_LIBRARY_PATH
18672 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18673 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18674 ;;
18675
brynercb91a2f2006-08-25 21:14:45 +000018676solaris*)
18677 version_type=linux
18678 need_lib_prefix=no
18679 need_version=no
18680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18681 soname_spec='${libname}${release}${shared_ext}$major'
18682 shlibpath_var=LD_LIBRARY_PATH
18683 shlibpath_overrides_runpath=yes
18684 hardcode_into_libs=yes
18685 # ldd complains unless libraries are executable
18686 postinstall_cmds='chmod +x $lib'
18687 ;;
18688
18689sunos4*)
18690 version_type=sunos
18691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18692 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18693 shlibpath_var=LD_LIBRARY_PATH
18694 shlibpath_overrides_runpath=yes
18695 if test "$with_gnu_ld" = yes; then
18696 need_lib_prefix=no
18697 fi
18698 need_version=yes
18699 ;;
18700
mmentovai8c2a4de2006-09-20 16:20:15 +000018701sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000018702 version_type=linux
18703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18704 soname_spec='${libname}${release}${shared_ext}$major'
18705 shlibpath_var=LD_LIBRARY_PATH
18706 case $host_vendor in
18707 sni)
18708 shlibpath_overrides_runpath=no
18709 need_lib_prefix=no
18710 export_dynamic_flag_spec='${wl}-Blargedynsym'
18711 runpath_var=LD_RUN_PATH
18712 ;;
18713 siemens)
18714 need_lib_prefix=no
18715 ;;
18716 motorola)
18717 need_lib_prefix=no
18718 need_version=no
18719 shlibpath_overrides_runpath=no
18720 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18721 ;;
18722 esac
18723 ;;
18724
18725sysv4*MP*)
18726 if test -d /usr/nec ;then
18727 version_type=linux
18728 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18729 soname_spec='$libname${shared_ext}.$major'
18730 shlibpath_var=LD_LIBRARY_PATH
18731 fi
18732 ;;
18733
mmentovai8c2a4de2006-09-20 16:20:15 +000018734sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18735 version_type=freebsd-elf
18736 need_lib_prefix=no
18737 need_version=no
18738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18739 soname_spec='${libname}${release}${shared_ext}$major'
18740 shlibpath_var=LD_LIBRARY_PATH
18741 hardcode_into_libs=yes
18742 if test "$with_gnu_ld" = yes; then
18743 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18744 shlibpath_overrides_runpath=no
18745 else
18746 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18747 shlibpath_overrides_runpath=yes
18748 case $host_os in
18749 sco3.2v5*)
18750 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18751 ;;
18752 esac
18753 fi
18754 sys_lib_dlsearch_path_spec='/usr/lib'
18755 ;;
18756
brynercb91a2f2006-08-25 21:14:45 +000018757uts4*)
18758 version_type=linux
18759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18760 soname_spec='${libname}${release}${shared_ext}$major'
18761 shlibpath_var=LD_LIBRARY_PATH
18762 ;;
18763
18764*)
18765 dynamic_linker=no
18766 ;;
18767esac
mmentovai8c2a4de2006-09-20 16:20:15 +000018768{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18769echo "${ECHO_T}$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018770test "$dynamic_linker" = no && can_build_shared=no
18771
mmentovai8c2a4de2006-09-20 16:20:15 +000018772variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18773if test "$GCC" = yes; then
18774 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18775fi
18776
18777{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18778echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018779hardcode_action_GCJ=
18780if test -n "$hardcode_libdir_flag_spec_GCJ" || \
mmentovai8c2a4de2006-09-20 16:20:15 +000018781 test -n "$runpath_var_GCJ" || \
18782 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000018783
18784 # We can hardcode non-existant directories.
18785 if test "$hardcode_direct_GCJ" != no &&
18786 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18787 # have to relink, otherwise we might link with an installed library
18788 # when we should be linking with a yet-to-be-installed one
18789 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18790 test "$hardcode_minus_L_GCJ" != no; then
18791 # Linking always hardcodes the temporary library directory.
18792 hardcode_action_GCJ=relink
18793 else
18794 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18795 hardcode_action_GCJ=immediate
18796 fi
18797else
18798 # We cannot hardcode anything, or else we can only hardcode existing
18799 # directories.
18800 hardcode_action_GCJ=unsupported
18801fi
mmentovai8c2a4de2006-09-20 16:20:15 +000018802{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18803echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000018804
18805if test "$hardcode_action_GCJ" = relink; then
18806 # Fast installation is not supported
18807 enable_fast_install=no
18808elif test "$shlibpath_overrides_runpath" = yes ||
18809 test "$enable_shared" = no; then
18810 # Fast installation is not necessary
18811 enable_fast_install=needless
18812fi
18813
brynercb91a2f2006-08-25 21:14:45 +000018814
18815# The else clause should only fire when bootstrapping the
18816# libtool distribution, otherwise you forgot to ship ltmain.sh
18817# with your package, and you will get complaints that there are
18818# no rules to generate ltmain.sh.
18819if test -f "$ltmain"; then
18820 # See if we are running on zsh, and set the options which allow our commands through
18821 # without removal of \ escapes.
18822 if test -n "${ZSH_VERSION+set}" ; then
18823 setopt NO_GLOB_SUBST
18824 fi
18825 # Now quote all the things that may contain metacharacters while being
18826 # careful not to overquote the AC_SUBSTed values. We take copies of the
18827 # variables and quote the copies for generation of the libtool script.
mmentovai8c2a4de2006-09-20 16:20:15 +000018828 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000018829 SED SHELL STRIP \
18830 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18831 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18832 deplibs_check_method reload_flag reload_cmds need_locks \
18833 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18834 lt_cv_sys_global_symbol_to_c_name_address \
18835 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18836 old_postinstall_cmds old_postuninstall_cmds \
18837 compiler_GCJ \
18838 CC_GCJ \
18839 LD_GCJ \
18840 lt_prog_compiler_wl_GCJ \
18841 lt_prog_compiler_pic_GCJ \
18842 lt_prog_compiler_static_GCJ \
18843 lt_prog_compiler_no_builtin_flag_GCJ \
18844 export_dynamic_flag_spec_GCJ \
18845 thread_safe_flag_spec_GCJ \
18846 whole_archive_flag_spec_GCJ \
18847 enable_shared_with_static_runtimes_GCJ \
18848 old_archive_cmds_GCJ \
18849 old_archive_from_new_cmds_GCJ \
18850 predep_objects_GCJ \
18851 postdep_objects_GCJ \
18852 predeps_GCJ \
18853 postdeps_GCJ \
18854 compiler_lib_search_path_GCJ \
18855 archive_cmds_GCJ \
18856 archive_expsym_cmds_GCJ \
18857 postinstall_cmds_GCJ \
18858 postuninstall_cmds_GCJ \
18859 old_archive_from_expsyms_cmds_GCJ \
18860 allow_undefined_flag_GCJ \
18861 no_undefined_flag_GCJ \
18862 export_symbols_cmds_GCJ \
18863 hardcode_libdir_flag_spec_GCJ \
18864 hardcode_libdir_flag_spec_ld_GCJ \
18865 hardcode_libdir_separator_GCJ \
18866 hardcode_automatic_GCJ \
18867 module_cmds_GCJ \
18868 module_expsym_cmds_GCJ \
18869 lt_cv_prog_compiler_c_o_GCJ \
18870 exclude_expsyms_GCJ \
18871 include_expsyms_GCJ; do
18872
18873 case $var in
18874 old_archive_cmds_GCJ | \
18875 old_archive_from_new_cmds_GCJ | \
18876 archive_cmds_GCJ | \
18877 archive_expsym_cmds_GCJ | \
18878 module_cmds_GCJ | \
18879 module_expsym_cmds_GCJ | \
18880 old_archive_from_expsyms_cmds_GCJ | \
18881 export_symbols_cmds_GCJ | \
18882 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18883 postinstall_cmds | postuninstall_cmds | \
18884 old_postinstall_cmds | old_postuninstall_cmds | \
18885 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18886 # Double-quote double-evaled strings.
18887 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18888 ;;
18889 *)
18890 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18891 ;;
18892 esac
18893 done
18894
18895 case $lt_echo in
18896 *'\$0 --fallback-echo"')
18897 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18898 ;;
18899 esac
18900
18901cfgfile="$ofile"
18902
18903 cat <<__EOF__ >> "$cfgfile"
18904# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18905
18906# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18907
18908# Shell to use when invoking shell scripts.
18909SHELL=$lt_SHELL
18910
18911# Whether or not to build shared libraries.
18912build_libtool_libs=$enable_shared
18913
18914# Whether or not to build static libraries.
18915build_old_libs=$enable_static
18916
18917# Whether or not to add -lc for building shared libraries.
18918build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18919
18920# Whether or not to disallow shared libs when runtime libs are static
18921allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18922
18923# Whether or not to optimize for fast installation.
18924fast_install=$enable_fast_install
18925
18926# The host system.
18927host_alias=$host_alias
18928host=$host
mmentovai8c2a4de2006-09-20 16:20:15 +000018929host_os=$host_os
18930
18931# The build system.
18932build_alias=$build_alias
18933build=$build
18934build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000018935
18936# An echo program that does not interpret backslashes.
18937echo=$lt_echo
18938
18939# The archiver.
18940AR=$lt_AR
18941AR_FLAGS=$lt_AR_FLAGS
18942
18943# A C compiler.
18944LTCC=$lt_LTCC
18945
mmentovai8c2a4de2006-09-20 16:20:15 +000018946# LTCC compiler flags.
18947LTCFLAGS=$lt_LTCFLAGS
18948
brynercb91a2f2006-08-25 21:14:45 +000018949# A language-specific compiler.
18950CC=$lt_compiler_GCJ
18951
18952# Is the compiler the GNU C compiler?
18953with_gcc=$GCC_GCJ
18954
18955# An ERE matcher.
18956EGREP=$lt_EGREP
18957
18958# The linker used to build libraries.
18959LD=$lt_LD_GCJ
18960
18961# Whether we need hard or soft links.
18962LN_S=$lt_LN_S
18963
18964# A BSD-compatible nm program.
18965NM=$lt_NM
18966
18967# A symbol stripping program
18968STRIP=$lt_STRIP
18969
18970# Used to examine libraries when file_magic_cmd begins "file"
18971MAGIC_CMD=$MAGIC_CMD
18972
18973# Used on cygwin: DLL creation program.
18974DLLTOOL="$DLLTOOL"
18975
18976# Used on cygwin: object dumper.
18977OBJDUMP="$OBJDUMP"
18978
18979# Used on cygwin: assembler.
18980AS="$AS"
18981
18982# The name of the directory that contains temporary libtool files.
18983objdir=$objdir
18984
18985# How to create reloadable object files.
18986reload_flag=$lt_reload_flag
18987reload_cmds=$lt_reload_cmds
18988
18989# How to pass a linker flag through the compiler.
18990wl=$lt_lt_prog_compiler_wl_GCJ
18991
18992# Object file suffix (normally "o").
18993objext="$ac_objext"
18994
18995# Old archive suffix (normally "a").
18996libext="$libext"
18997
18998# Shared library suffix (normally ".so").
18999shrext_cmds='$shrext_cmds'
19000
19001# Executable file suffix (normally "").
19002exeext="$exeext"
19003
19004# Additional compiler flags for building library objects.
19005pic_flag=$lt_lt_prog_compiler_pic_GCJ
19006pic_mode=$pic_mode
19007
19008# What is the maximum length of a command?
19009max_cmd_len=$lt_cv_sys_max_cmd_len
19010
19011# Does compiler simultaneously support -c and -o options?
19012compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19013
mmentovai8c2a4de2006-09-20 16:20:15 +000019014# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000019015need_locks=$lt_need_locks
19016
19017# Do we need the lib prefix for modules?
19018need_lib_prefix=$need_lib_prefix
19019
19020# Do we need a version for libraries?
19021need_version=$need_version
19022
19023# Whether dlopen is supported.
19024dlopen_support=$enable_dlopen
19025
19026# Whether dlopen of programs is supported.
19027dlopen_self=$enable_dlopen_self
19028
19029# Whether dlopen of statically linked programs is supported.
19030dlopen_self_static=$enable_dlopen_self_static
19031
19032# Compiler flag to prevent dynamic linking.
19033link_static_flag=$lt_lt_prog_compiler_static_GCJ
19034
19035# Compiler flag to turn off builtin functions.
19036no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19037
19038# Compiler flag to allow reflexive dlopens.
19039export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19040
19041# Compiler flag to generate shared objects directly from archives.
19042whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19043
19044# Compiler flag to generate thread-safe objects.
19045thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19046
19047# Library versioning type.
19048version_type=$version_type
19049
19050# Format of library name prefix.
19051libname_spec=$lt_libname_spec
19052
19053# List of archive names. First name is the real one, the rest are links.
19054# The last name is the one that the linker finds with -lNAME.
19055library_names_spec=$lt_library_names_spec
19056
19057# The coded name of the library, if different from the real name.
19058soname_spec=$lt_soname_spec
19059
19060# Commands used to build and install an old-style archive.
19061RANLIB=$lt_RANLIB
19062old_archive_cmds=$lt_old_archive_cmds_GCJ
19063old_postinstall_cmds=$lt_old_postinstall_cmds
19064old_postuninstall_cmds=$lt_old_postuninstall_cmds
19065
19066# Create an old-style archive from a shared archive.
19067old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19068
19069# Create a temporary old-style archive to link instead of a shared archive.
19070old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19071
19072# Commands used to build and install a shared archive.
19073archive_cmds=$lt_archive_cmds_GCJ
19074archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19075postinstall_cmds=$lt_postinstall_cmds
19076postuninstall_cmds=$lt_postuninstall_cmds
19077
19078# Commands used to build a loadable module (assumed same as above if empty)
19079module_cmds=$lt_module_cmds_GCJ
19080module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19081
19082# Commands to strip libraries.
19083old_striplib=$lt_old_striplib
19084striplib=$lt_striplib
19085
19086# Dependencies to place before the objects being linked to create a
19087# shared library.
19088predep_objects=$lt_predep_objects_GCJ
19089
19090# Dependencies to place after the objects being linked to create a
19091# shared library.
19092postdep_objects=$lt_postdep_objects_GCJ
19093
19094# Dependencies to place before the objects being linked to create a
19095# shared library.
19096predeps=$lt_predeps_GCJ
19097
19098# Dependencies to place after the objects being linked to create a
19099# shared library.
19100postdeps=$lt_postdeps_GCJ
19101
19102# The library search path used internally by the compiler when linking
19103# a shared library.
19104compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19105
19106# Method to check whether dependent libraries are shared objects.
19107deplibs_check_method=$lt_deplibs_check_method
19108
19109# Command to use when deplibs_check_method == file_magic.
19110file_magic_cmd=$lt_file_magic_cmd
19111
19112# Flag that allows shared libraries with undefined symbols to be built.
19113allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19114
19115# Flag that forces no undefined symbols.
19116no_undefined_flag=$lt_no_undefined_flag_GCJ
19117
19118# Commands used to finish a libtool library installation in a directory.
19119finish_cmds=$lt_finish_cmds
19120
19121# Same as above, but a single script fragment to be evaled but not shown.
19122finish_eval=$lt_finish_eval
19123
19124# Take the output of nm and produce a listing of raw symbols and C names.
19125global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19126
19127# Transform the output of nm in a proper C declaration
19128global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19129
19130# Transform the output of nm in a C name address pair
19131global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19132
19133# This is the shared library runtime path variable.
19134runpath_var=$runpath_var
19135
19136# This is the shared library path variable.
19137shlibpath_var=$shlibpath_var
19138
19139# Is shlibpath searched before the hard-coded library search path?
19140shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19141
19142# How to hardcode a shared library path into an executable.
19143hardcode_action=$hardcode_action_GCJ
19144
19145# Whether we should hardcode library paths into libraries.
19146hardcode_into_libs=$hardcode_into_libs
19147
19148# Flag to hardcode \$libdir into a binary during linking.
19149# This must work even if \$libdir does not exist.
19150hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19151
19152# If ld is used when linking, flag to hardcode \$libdir into
19153# a binary during linking. This must work even if \$libdir does
19154# not exist.
19155hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19156
19157# Whether we need a single -rpath flag with a separated argument.
19158hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19159
19160# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19161# resulting binary.
19162hardcode_direct=$hardcode_direct_GCJ
19163
19164# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19165# resulting binary.
19166hardcode_minus_L=$hardcode_minus_L_GCJ
19167
19168# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19169# the resulting binary.
19170hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19171
19172# Set to yes if building a shared library automatically hardcodes DIR into the library
19173# and all subsequent libraries and executables linked against it.
19174hardcode_automatic=$hardcode_automatic_GCJ
19175
19176# Variables whose values should be saved in libtool wrapper scripts and
19177# restored at relink time.
19178variables_saved_for_relink="$variables_saved_for_relink"
19179
19180# Whether libtool must link a program against all its dependency libraries.
19181link_all_deplibs=$link_all_deplibs_GCJ
19182
19183# Compile-time system search path for libraries
19184sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19185
19186# Run-time system search path for libraries
19187sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19188
19189# Fix the shell variable \$srcfile for the compiler.
19190fix_srcfile_path="$fix_srcfile_path_GCJ"
19191
19192# Set to yes if exported symbols are required.
19193always_export_symbols=$always_export_symbols_GCJ
19194
19195# The commands to list exported symbols.
19196export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19197
19198# The commands to extract the exported symbol list from a shared archive.
19199extract_expsyms_cmds=$lt_extract_expsyms_cmds
19200
19201# Symbols that should not be listed in the preloaded symbols.
19202exclude_expsyms=$lt_exclude_expsyms_GCJ
19203
19204# Symbols that must always be exported.
19205include_expsyms=$lt_include_expsyms_GCJ
19206
19207# ### END LIBTOOL TAG CONFIG: $tagname
19208
19209__EOF__
19210
19211
19212else
19213 # If there is no Makefile yet, we rely on a make rule to execute
19214 # `config.status --recheck' to rerun these tests and create the
19215 # libtool script then.
19216 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19217 if test -f "$ltmain_in"; then
19218 test -f Makefile && make "$ltmain"
19219 fi
19220fi
19221
19222
19223ac_ext=c
19224ac_cpp='$CPP $CPPFLAGS'
19225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19227ac_compiler_gnu=$ac_cv_c_compiler_gnu
19228
19229CC="$lt_save_CC"
19230
19231 else
19232 tagname=""
19233 fi
19234 ;;
19235
19236 RC)
19237
19238
brynercb91a2f2006-08-25 21:14:45 +000019239# Source file extension for RC test sources.
19240ac_ext=rc
19241
19242# Object file extension for compiled RC test sources.
19243objext=o
19244objext_RC=$objext
19245
19246# Code to be used in simple compile tests
19247lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19248
19249# Code to be used in simple link tests
19250lt_simple_link_test_code="$lt_simple_compile_test_code"
19251
19252# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19253
19254# If no C compiler was specified, use CC.
19255LTCC=${LTCC-"$CC"}
19256
mmentovai8c2a4de2006-09-20 16:20:15 +000019257# If no C compiler flags were specified, use CFLAGS.
19258LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19259
brynercb91a2f2006-08-25 21:14:45 +000019260# Allow CC to be a program name with arguments.
19261compiler=$CC
19262
19263
mmentovai8c2a4de2006-09-20 16:20:15 +000019264# save warnings/boilerplate of simple test code
19265ac_outfile=conftest.$ac_objext
19266printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19267eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19268_lt_compiler_boilerplate=`cat conftest.err`
19269$rm conftest*
19270
19271ac_outfile=conftest.$ac_objext
19272printf "$lt_simple_link_test_code" >conftest.$ac_ext
19273eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19274_lt_linker_boilerplate=`cat conftest.err`
19275$rm conftest*
19276
19277
brynercb91a2f2006-08-25 21:14:45 +000019278# Allow CC to be a program name with arguments.
19279lt_save_CC="$CC"
19280CC=${RC-"windres"}
19281compiler=$CC
19282compiler_RC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +000019283for cc_temp in $compiler""; do
19284 case $cc_temp in
19285 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19286 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19287 \-*) ;;
19288 *) break;;
19289 esac
19290done
19291cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19292
brynercb91a2f2006-08-25 21:14:45 +000019293lt_cv_prog_compiler_c_o_RC=yes
19294
19295# The else clause should only fire when bootstrapping the
19296# libtool distribution, otherwise you forgot to ship ltmain.sh
19297# with your package, and you will get complaints that there are
19298# no rules to generate ltmain.sh.
19299if test -f "$ltmain"; then
19300 # See if we are running on zsh, and set the options which allow our commands through
19301 # without removal of \ escapes.
19302 if test -n "${ZSH_VERSION+set}" ; then
19303 setopt NO_GLOB_SUBST
19304 fi
19305 # Now quote all the things that may contain metacharacters while being
19306 # careful not to overquote the AC_SUBSTed values. We take copies of the
19307 # variables and quote the copies for generation of the libtool script.
mmentovai8c2a4de2006-09-20 16:20:15 +000019308 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
brynercb91a2f2006-08-25 21:14:45 +000019309 SED SHELL STRIP \
19310 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19311 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19312 deplibs_check_method reload_flag reload_cmds need_locks \
19313 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19314 lt_cv_sys_global_symbol_to_c_name_address \
19315 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19316 old_postinstall_cmds old_postuninstall_cmds \
19317 compiler_RC \
19318 CC_RC \
19319 LD_RC \
19320 lt_prog_compiler_wl_RC \
19321 lt_prog_compiler_pic_RC \
19322 lt_prog_compiler_static_RC \
19323 lt_prog_compiler_no_builtin_flag_RC \
19324 export_dynamic_flag_spec_RC \
19325 thread_safe_flag_spec_RC \
19326 whole_archive_flag_spec_RC \
19327 enable_shared_with_static_runtimes_RC \
19328 old_archive_cmds_RC \
19329 old_archive_from_new_cmds_RC \
19330 predep_objects_RC \
19331 postdep_objects_RC \
19332 predeps_RC \
19333 postdeps_RC \
19334 compiler_lib_search_path_RC \
19335 archive_cmds_RC \
19336 archive_expsym_cmds_RC \
19337 postinstall_cmds_RC \
19338 postuninstall_cmds_RC \
19339 old_archive_from_expsyms_cmds_RC \
19340 allow_undefined_flag_RC \
19341 no_undefined_flag_RC \
19342 export_symbols_cmds_RC \
19343 hardcode_libdir_flag_spec_RC \
19344 hardcode_libdir_flag_spec_ld_RC \
19345 hardcode_libdir_separator_RC \
19346 hardcode_automatic_RC \
19347 module_cmds_RC \
19348 module_expsym_cmds_RC \
19349 lt_cv_prog_compiler_c_o_RC \
19350 exclude_expsyms_RC \
19351 include_expsyms_RC; do
19352
19353 case $var in
19354 old_archive_cmds_RC | \
19355 old_archive_from_new_cmds_RC | \
19356 archive_cmds_RC | \
19357 archive_expsym_cmds_RC | \
19358 module_cmds_RC | \
19359 module_expsym_cmds_RC | \
19360 old_archive_from_expsyms_cmds_RC | \
19361 export_symbols_cmds_RC | \
19362 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19363 postinstall_cmds | postuninstall_cmds | \
19364 old_postinstall_cmds | old_postuninstall_cmds | \
19365 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19366 # Double-quote double-evaled strings.
19367 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19368 ;;
19369 *)
19370 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19371 ;;
19372 esac
19373 done
19374
19375 case $lt_echo in
19376 *'\$0 --fallback-echo"')
19377 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19378 ;;
19379 esac
19380
19381cfgfile="$ofile"
19382
19383 cat <<__EOF__ >> "$cfgfile"
19384# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19385
19386# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19387
19388# Shell to use when invoking shell scripts.
19389SHELL=$lt_SHELL
19390
19391# Whether or not to build shared libraries.
19392build_libtool_libs=$enable_shared
19393
19394# Whether or not to build static libraries.
19395build_old_libs=$enable_static
19396
19397# Whether or not to add -lc for building shared libraries.
19398build_libtool_need_lc=$archive_cmds_need_lc_RC
19399
19400# Whether or not to disallow shared libs when runtime libs are static
19401allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19402
19403# Whether or not to optimize for fast installation.
19404fast_install=$enable_fast_install
19405
19406# The host system.
19407host_alias=$host_alias
19408host=$host
mmentovai8c2a4de2006-09-20 16:20:15 +000019409host_os=$host_os
19410
19411# The build system.
19412build_alias=$build_alias
19413build=$build
19414build_os=$build_os
brynercb91a2f2006-08-25 21:14:45 +000019415
19416# An echo program that does not interpret backslashes.
19417echo=$lt_echo
19418
19419# The archiver.
19420AR=$lt_AR
19421AR_FLAGS=$lt_AR_FLAGS
19422
19423# A C compiler.
19424LTCC=$lt_LTCC
19425
mmentovai8c2a4de2006-09-20 16:20:15 +000019426# LTCC compiler flags.
19427LTCFLAGS=$lt_LTCFLAGS
19428
brynercb91a2f2006-08-25 21:14:45 +000019429# A language-specific compiler.
19430CC=$lt_compiler_RC
19431
19432# Is the compiler the GNU C compiler?
19433with_gcc=$GCC_RC
19434
19435# An ERE matcher.
19436EGREP=$lt_EGREP
19437
19438# The linker used to build libraries.
19439LD=$lt_LD_RC
19440
19441# Whether we need hard or soft links.
19442LN_S=$lt_LN_S
19443
19444# A BSD-compatible nm program.
19445NM=$lt_NM
19446
19447# A symbol stripping program
19448STRIP=$lt_STRIP
19449
19450# Used to examine libraries when file_magic_cmd begins "file"
19451MAGIC_CMD=$MAGIC_CMD
19452
19453# Used on cygwin: DLL creation program.
19454DLLTOOL="$DLLTOOL"
19455
19456# Used on cygwin: object dumper.
19457OBJDUMP="$OBJDUMP"
19458
19459# Used on cygwin: assembler.
19460AS="$AS"
19461
19462# The name of the directory that contains temporary libtool files.
19463objdir=$objdir
19464
19465# How to create reloadable object files.
19466reload_flag=$lt_reload_flag
19467reload_cmds=$lt_reload_cmds
19468
19469# How to pass a linker flag through the compiler.
19470wl=$lt_lt_prog_compiler_wl_RC
19471
19472# Object file suffix (normally "o").
19473objext="$ac_objext"
19474
19475# Old archive suffix (normally "a").
19476libext="$libext"
19477
19478# Shared library suffix (normally ".so").
19479shrext_cmds='$shrext_cmds'
19480
19481# Executable file suffix (normally "").
19482exeext="$exeext"
19483
19484# Additional compiler flags for building library objects.
19485pic_flag=$lt_lt_prog_compiler_pic_RC
19486pic_mode=$pic_mode
19487
19488# What is the maximum length of a command?
19489max_cmd_len=$lt_cv_sys_max_cmd_len
19490
19491# Does compiler simultaneously support -c and -o options?
19492compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19493
mmentovai8c2a4de2006-09-20 16:20:15 +000019494# Must we lock files when doing compilation?
brynercb91a2f2006-08-25 21:14:45 +000019495need_locks=$lt_need_locks
19496
19497# Do we need the lib prefix for modules?
19498need_lib_prefix=$need_lib_prefix
19499
19500# Do we need a version for libraries?
19501need_version=$need_version
19502
19503# Whether dlopen is supported.
19504dlopen_support=$enable_dlopen
19505
19506# Whether dlopen of programs is supported.
19507dlopen_self=$enable_dlopen_self
19508
19509# Whether dlopen of statically linked programs is supported.
19510dlopen_self_static=$enable_dlopen_self_static
19511
19512# Compiler flag to prevent dynamic linking.
19513link_static_flag=$lt_lt_prog_compiler_static_RC
19514
19515# Compiler flag to turn off builtin functions.
19516no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19517
19518# Compiler flag to allow reflexive dlopens.
19519export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19520
19521# Compiler flag to generate shared objects directly from archives.
19522whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19523
19524# Compiler flag to generate thread-safe objects.
19525thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19526
19527# Library versioning type.
19528version_type=$version_type
19529
19530# Format of library name prefix.
19531libname_spec=$lt_libname_spec
19532
19533# List of archive names. First name is the real one, the rest are links.
19534# The last name is the one that the linker finds with -lNAME.
19535library_names_spec=$lt_library_names_spec
19536
19537# The coded name of the library, if different from the real name.
19538soname_spec=$lt_soname_spec
19539
19540# Commands used to build and install an old-style archive.
19541RANLIB=$lt_RANLIB
19542old_archive_cmds=$lt_old_archive_cmds_RC
19543old_postinstall_cmds=$lt_old_postinstall_cmds
19544old_postuninstall_cmds=$lt_old_postuninstall_cmds
19545
19546# Create an old-style archive from a shared archive.
19547old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19548
19549# Create a temporary old-style archive to link instead of a shared archive.
19550old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19551
19552# Commands used to build and install a shared archive.
19553archive_cmds=$lt_archive_cmds_RC
19554archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19555postinstall_cmds=$lt_postinstall_cmds
19556postuninstall_cmds=$lt_postuninstall_cmds
19557
19558# Commands used to build a loadable module (assumed same as above if empty)
19559module_cmds=$lt_module_cmds_RC
19560module_expsym_cmds=$lt_module_expsym_cmds_RC
19561
19562# Commands to strip libraries.
19563old_striplib=$lt_old_striplib
19564striplib=$lt_striplib
19565
19566# Dependencies to place before the objects being linked to create a
19567# shared library.
19568predep_objects=$lt_predep_objects_RC
19569
19570# Dependencies to place after the objects being linked to create a
19571# shared library.
19572postdep_objects=$lt_postdep_objects_RC
19573
19574# Dependencies to place before the objects being linked to create a
19575# shared library.
19576predeps=$lt_predeps_RC
19577
19578# Dependencies to place after the objects being linked to create a
19579# shared library.
19580postdeps=$lt_postdeps_RC
19581
19582# The library search path used internally by the compiler when linking
19583# a shared library.
19584compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19585
19586# Method to check whether dependent libraries are shared objects.
19587deplibs_check_method=$lt_deplibs_check_method
19588
19589# Command to use when deplibs_check_method == file_magic.
19590file_magic_cmd=$lt_file_magic_cmd
19591
19592# Flag that allows shared libraries with undefined symbols to be built.
19593allow_undefined_flag=$lt_allow_undefined_flag_RC
19594
19595# Flag that forces no undefined symbols.
19596no_undefined_flag=$lt_no_undefined_flag_RC
19597
19598# Commands used to finish a libtool library installation in a directory.
19599finish_cmds=$lt_finish_cmds
19600
19601# Same as above, but a single script fragment to be evaled but not shown.
19602finish_eval=$lt_finish_eval
19603
19604# Take the output of nm and produce a listing of raw symbols and C names.
19605global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19606
19607# Transform the output of nm in a proper C declaration
19608global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19609
19610# Transform the output of nm in a C name address pair
19611global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19612
19613# This is the shared library runtime path variable.
19614runpath_var=$runpath_var
19615
19616# This is the shared library path variable.
19617shlibpath_var=$shlibpath_var
19618
19619# Is shlibpath searched before the hard-coded library search path?
19620shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19621
19622# How to hardcode a shared library path into an executable.
19623hardcode_action=$hardcode_action_RC
19624
19625# Whether we should hardcode library paths into libraries.
19626hardcode_into_libs=$hardcode_into_libs
19627
19628# Flag to hardcode \$libdir into a binary during linking.
19629# This must work even if \$libdir does not exist.
19630hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19631
19632# If ld is used when linking, flag to hardcode \$libdir into
19633# a binary during linking. This must work even if \$libdir does
19634# not exist.
19635hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19636
19637# Whether we need a single -rpath flag with a separated argument.
19638hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19639
19640# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19641# resulting binary.
19642hardcode_direct=$hardcode_direct_RC
19643
19644# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19645# resulting binary.
19646hardcode_minus_L=$hardcode_minus_L_RC
19647
19648# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19649# the resulting binary.
19650hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19651
19652# Set to yes if building a shared library automatically hardcodes DIR into the library
19653# and all subsequent libraries and executables linked against it.
19654hardcode_automatic=$hardcode_automatic_RC
19655
19656# Variables whose values should be saved in libtool wrapper scripts and
19657# restored at relink time.
19658variables_saved_for_relink="$variables_saved_for_relink"
19659
19660# Whether libtool must link a program against all its dependency libraries.
19661link_all_deplibs=$link_all_deplibs_RC
19662
19663# Compile-time system search path for libraries
19664sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19665
19666# Run-time system search path for libraries
19667sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19668
19669# Fix the shell variable \$srcfile for the compiler.
19670fix_srcfile_path="$fix_srcfile_path_RC"
19671
19672# Set to yes if exported symbols are required.
19673always_export_symbols=$always_export_symbols_RC
19674
19675# The commands to list exported symbols.
19676export_symbols_cmds=$lt_export_symbols_cmds_RC
19677
19678# The commands to extract the exported symbol list from a shared archive.
19679extract_expsyms_cmds=$lt_extract_expsyms_cmds
19680
19681# Symbols that should not be listed in the preloaded symbols.
19682exclude_expsyms=$lt_exclude_expsyms_RC
19683
19684# Symbols that must always be exported.
19685include_expsyms=$lt_include_expsyms_RC
19686
19687# ### END LIBTOOL TAG CONFIG: $tagname
19688
19689__EOF__
19690
19691
19692else
19693 # If there is no Makefile yet, we rely on a make rule to execute
19694 # `config.status --recheck' to rerun these tests and create the
19695 # libtool script then.
19696 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19697 if test -f "$ltmain_in"; then
19698 test -f Makefile && make "$ltmain"
19699 fi
19700fi
19701
19702
19703ac_ext=c
19704ac_cpp='$CPP $CPPFLAGS'
19705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19707ac_compiler_gnu=$ac_cv_c_compiler_gnu
19708
19709CC="$lt_save_CC"
19710
19711 ;;
19712
19713 *)
19714 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19715echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19716 { (exit 1); exit 1; }; }
19717 ;;
19718 esac
19719
19720 # Append the new tag name to the list of available tags.
19721 if test -n "$tagname" ; then
19722 available_tags="$available_tags $tagname"
19723 fi
19724 fi
19725 done
19726 IFS="$lt_save_ifs"
19727
19728 # Now substitute the updated list of available tags.
19729 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19730 mv "${ofile}T" "$ofile"
19731 chmod +x "$ofile"
19732 else
19733 rm -f "${ofile}T"
19734 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19735echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19736 { (exit 1); exit 1; }; }
19737 fi
19738fi
19739
19740
19741
19742# This can be used to rebuild libtool when needed
19743LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19744
19745# Always use our own libtool.
19746LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19747
19748# Prevent multiple expansion
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
mmentovai8c2a4de2006-09-20 16:20:15 +000019771{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19772echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000019773if test "${ac_cv_header_stdc+set}" = set; then
19774 echo $ECHO_N "(cached) $ECHO_C" >&6
19775else
19776 cat >conftest.$ac_ext <<_ACEOF
19777/* confdefs.h. */
19778_ACEOF
19779cat confdefs.h >>conftest.$ac_ext
19780cat >>conftest.$ac_ext <<_ACEOF
19781/* end confdefs.h. */
19782#include <stdlib.h>
19783#include <stdarg.h>
19784#include <string.h>
19785#include <float.h>
19786
19787int
19788main ()
19789{
19790
19791 ;
19792 return 0;
19793}
19794_ACEOF
19795rm -f conftest.$ac_objext
mmentovai8c2a4de2006-09-20 16:20:15 +000019796if { (ac_try="$ac_compile"
19797case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19800esac
19801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_compile") 2>conftest.er1
brynercb91a2f2006-08-25 21:14:45 +000019803 ac_status=$?
19804 grep -v '^ *+' conftest.er1 >conftest.err
19805 rm -f conftest.er1
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } &&
mmentovai8c2a4de2006-09-20 16:20:15 +000019809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19810 { (case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19813esac
19814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000019816 ac_status=$?
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; } &&
19819 { ac_try='test -s conftest.$ac_objext'
mmentovai8c2a4de2006-09-20 16:20:15 +000019820 { (case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19823esac
19824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000019826 ac_status=$?
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); }; }; then
19829 ac_cv_header_stdc=yes
19830else
19831 echo "$as_me: failed program was:" >&5
19832sed 's/^/| /' conftest.$ac_ext >&5
19833
mmentovai8c2a4de2006-09-20 16:20:15 +000019834 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +000019835fi
mmentovai8c2a4de2006-09-20 16:20:15 +000019836
19837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000019838
19839if test $ac_cv_header_stdc = yes; then
19840 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19841 cat >conftest.$ac_ext <<_ACEOF
19842/* confdefs.h. */
19843_ACEOF
19844cat confdefs.h >>conftest.$ac_ext
19845cat >>conftest.$ac_ext <<_ACEOF
19846/* end confdefs.h. */
19847#include <string.h>
19848
19849_ACEOF
19850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19851 $EGREP "memchr" >/dev/null 2>&1; then
19852 :
19853else
19854 ac_cv_header_stdc=no
19855fi
19856rm -f conftest*
19857
19858fi
19859
19860if test $ac_cv_header_stdc = yes; then
19861 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19862 cat >conftest.$ac_ext <<_ACEOF
19863/* confdefs.h. */
19864_ACEOF
19865cat confdefs.h >>conftest.$ac_ext
19866cat >>conftest.$ac_ext <<_ACEOF
19867/* end confdefs.h. */
19868#include <stdlib.h>
19869
19870_ACEOF
19871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19872 $EGREP "free" >/dev/null 2>&1; then
19873 :
19874else
19875 ac_cv_header_stdc=no
19876fi
19877rm -f conftest*
19878
19879fi
19880
19881if test $ac_cv_header_stdc = yes; then
19882 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19883 if test "$cross_compiling" = yes; then
19884 :
19885else
19886 cat >conftest.$ac_ext <<_ACEOF
19887/* confdefs.h. */
19888_ACEOF
19889cat confdefs.h >>conftest.$ac_ext
19890cat >>conftest.$ac_ext <<_ACEOF
19891/* end confdefs.h. */
19892#include <ctype.h>
mmentovai8c2a4de2006-09-20 16:20:15 +000019893#include <stdlib.h>
brynercb91a2f2006-08-25 21:14:45 +000019894#if ((' ' & 0x0FF) == 0x020)
19895# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19896# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19897#else
19898# define ISLOWER(c) \
19899 (('a' <= (c) && (c) <= 'i') \
19900 || ('j' <= (c) && (c) <= 'r') \
19901 || ('s' <= (c) && (c) <= 'z'))
19902# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19903#endif
19904
19905#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19906int
19907main ()
19908{
19909 int i;
19910 for (i = 0; i < 256; i++)
19911 if (XOR (islower (i), ISLOWER (i))
19912 || toupper (i) != TOUPPER (i))
mmentovai8c2a4de2006-09-20 16:20:15 +000019913 return 2;
19914 return 0;
brynercb91a2f2006-08-25 21:14:45 +000019915}
19916_ACEOF
19917rm -f conftest$ac_exeext
mmentovai8c2a4de2006-09-20 16:20:15 +000019918if { (ac_try="$ac_link"
19919case "(($ac_try" in
19920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19921 *) ac_try_echo=$ac_try;;
19922esac
19923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19924 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000019925 ac_status=$?
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
mmentovai8c2a4de2006-09-20 16:20:15 +000019928 { (case "(($ac_try" in
19929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19930 *) ac_try_echo=$ac_try;;
19931esac
19932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19933 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +000019934 ac_status=$?
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); }; }; then
19937 :
19938else
19939 echo "$as_me: program exited with status $ac_status" >&5
19940echo "$as_me: failed program was:" >&5
19941sed 's/^/| /' conftest.$ac_ext >&5
19942
19943( exit $ac_status )
19944ac_cv_header_stdc=no
19945fi
mmentovai8c2a4de2006-09-20 16:20:15 +000019946rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19947fi
19948
19949
brynercb91a2f2006-08-25 21:14:45 +000019950fi
19951fi
mmentovai8c2a4de2006-09-20 16:20:15 +000019952{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19953echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000019954if test $ac_cv_header_stdc = yes; then
19955
19956cat >>confdefs.h <<\_ACEOF
19957#define STDC_HEADERS 1
19958_ACEOF
19959
19960fi
19961
19962
mmentovai0dbedc92006-09-25 21:16:15 +000019963# Check whether --enable-selftest was given.
19964if test "${enable_selftest+set}" = set; then
19965 enableval=$enable_selftest; case "${enableval}" in
19966 yes)
19967 selftest=true
19968 ;;
19969 no)
19970 selftest=false
19971 ;;
19972 *)
19973 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-selftest" >&5
19974echo "$as_me: error: bad value ${enableval} for --enable-selftest" >&2;}
19975 { (exit 1); exit 1; }; }
19976 ;;
19977 esac
19978else
19979 selftest=false
19980fi
19981
19982
19983
19984if test x$selftest = xtrue; then
19985 SELFTEST_TRUE=
19986 SELFTEST_FALSE='#'
19987else
19988 SELFTEST_TRUE='#'
19989 SELFTEST_FALSE=
19990fi
19991
19992
mmentovai8c2a4de2006-09-20 16:20:15 +000019993ac_config_files="$ac_config_files Makefile"
brynercb91a2f2006-08-25 21:14:45 +000019994
19995cat >confcache <<\_ACEOF
19996# This file is a shell script that caches the results of configure
19997# tests run on this system so they can be shared between configure
19998# scripts and configure runs, see configure's option --config-cache.
19999# It is not useful on other systems. If it contains results you don't
20000# want to keep, you may remove or edit it.
20001#
20002# config.status only pays attention to the cache file if you give it
20003# the --recheck option to rerun configure.
20004#
20005# `ac_cv_env_foo' variables (set or unset) will be overridden when
20006# loading this file, other *unset* `ac_cv_foo' will be assigned the
20007# following values.
20008
20009_ACEOF
20010
20011# The following way of writing the cache mishandles newlines in values,
20012# but we know of no workaround that is simple, portable, and efficient.
mmentovai8c2a4de2006-09-20 16:20:15 +000020013# So, we kill variables containing newlines.
brynercb91a2f2006-08-25 21:14:45 +000020014# Ultrix sh set writes to stderr and can't be redirected directly,
20015# and sets the high bit in the cache file unless we assign to the vars.
mmentovai8c2a4de2006-09-20 16:20:15 +000020016(
20017 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20018 eval ac_val=\$$ac_var
20019 case $ac_val in #(
20020 *${as_nl}*)
20021 case $ac_var in #(
20022 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20023echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20024 esac
20025 case $ac_var in #(
20026 _ | IFS | as_nl) ;; #(
20027 *) $as_unset $ac_var ;;
20028 esac ;;
20029 esac
20030 done
20031
brynercb91a2f2006-08-25 21:14:45 +000020032 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +000020033 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20034 *${as_nl}ac_space=\ *)
brynercb91a2f2006-08-25 21:14:45 +000020035 # `set' does not quote correctly, so add quotes (double-quote
20036 # substitution turns \\\\ into \\, and sed turns \\ into \).
20037 sed -n \
20038 "s/'/'\\\\''/g;
20039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mmentovai8c2a4de2006-09-20 16:20:15 +000020040 ;; #(
brynercb91a2f2006-08-25 21:14:45 +000020041 *)
20042 # `set' quotes correctly as required by POSIX, so do not add quotes.
mmentovai8c2a4de2006-09-20 16:20:15 +000020043 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +000020044 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000020045 esac |
20046 sort
20047) |
brynercb91a2f2006-08-25 21:14:45 +000020048 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +000020049 /^ac_cv_env_/b end
brynercb91a2f2006-08-25 21:14:45 +000020050 t clear
mmentovai8c2a4de2006-09-20 16:20:15 +000020051 :clear
brynercb91a2f2006-08-25 21:14:45 +000020052 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20053 t end
mmentovai8c2a4de2006-09-20 16:20:15 +000020054 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20055 :end' >>confcache
20056if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20057 if test -w "$cache_file"; then
20058 test "x$cache_file" != "x/dev/null" &&
20059 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20060echo "$as_me: updating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000020061 cat confcache >$cache_file
20062 else
mmentovai8c2a4de2006-09-20 16:20:15 +000020063 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20064echo "$as_me: not updating unwritable cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000020065 fi
20066fi
20067rm -f confcache
20068
20069test "x$prefix" = xNONE && prefix=$ac_default_prefix
20070# Let make expand exec_prefix.
20071test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20072
brynercb91a2f2006-08-25 21:14:45 +000020073DEFS=-DHAVE_CONFIG_H
20074
20075ac_libobjs=
20076ac_ltlibobjs=
20077for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20078 # 1. Remove the extension, and $U if already installed.
mmentovai8c2a4de2006-09-20 16:20:15 +000020079 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20080 ac_i=`echo "$ac_i" | sed "$ac_script"`
20081 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20082 # will be set to the directory where LIBOBJS objects are built.
20083 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20084 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
brynercb91a2f2006-08-25 21:14:45 +000020085done
20086LIBOBJS=$ac_libobjs
20087
20088LTLIBOBJS=$ac_ltlibobjs
20089
20090
20091if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20092 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20093Usually this means the macro was only invoked conditionally." >&5
20094echo "$as_me: error: conditional \"AMDEP\" was never defined.
20095Usually this means the macro was only invoked conditionally." >&2;}
20096 { (exit 1); exit 1; }; }
20097fi
20098if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20099 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20100Usually this means the macro was only invoked conditionally." >&5
20101echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20102Usually this means the macro was only invoked conditionally." >&2;}
20103 { (exit 1); exit 1; }; }
20104fi
20105if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20106 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20107Usually this means the macro was only invoked conditionally." >&5
20108echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20109Usually this means the macro was only invoked conditionally." >&2;}
20110 { (exit 1); exit 1; }; }
20111fi
mmentovai0dbedc92006-09-25 21:16:15 +000020112if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
20113 { { echo "$as_me:$LINENO: error: conditional \"SELFTEST\" was never defined.
20114Usually this means the macro was only invoked conditionally." >&5
20115echo "$as_me: error: conditional \"SELFTEST\" was never defined.
20116Usually this means the macro was only invoked conditionally." >&2;}
20117 { (exit 1); exit 1; }; }
20118fi
brynercb91a2f2006-08-25 21:14:45 +000020119
20120: ${CONFIG_STATUS=./config.status}
20121ac_clean_files_save=$ac_clean_files
20122ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20123{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20124echo "$as_me: creating $CONFIG_STATUS" >&6;}
20125cat >$CONFIG_STATUS <<_ACEOF
20126#! $SHELL
20127# Generated by $as_me.
20128# Run this file to recreate the current configuration.
20129# Compiler output produced by configure, useful for debugging
20130# configure, is in config.log if it exists.
20131
20132debug=false
20133ac_cs_recheck=false
20134ac_cs_silent=false
20135SHELL=\${CONFIG_SHELL-$SHELL}
20136_ACEOF
20137
20138cat >>$CONFIG_STATUS <<\_ACEOF
20139## --------------------- ##
20140## M4sh Initialization. ##
20141## --------------------- ##
20142
20143# Be Bourne compatible
20144if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20145 emulate sh
20146 NULLCMD=:
20147 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20148 # is contrary to our usage. Disable this feature.
20149 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +000020150 setopt NO_GLOB_SUBST
20151else
20152 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
brynercb91a2f2006-08-25 21:14:45 +000020153fi
mmentovai8c2a4de2006-09-20 16:20:15 +000020154BIN_SH=xpg4; export BIN_SH # for Tru64
brynercb91a2f2006-08-25 21:14:45 +000020155DUALCASE=1; export DUALCASE # for MKS sh
20156
brynercb91a2f2006-08-25 21:14:45 +000020157
mmentovai8c2a4de2006-09-20 16:20:15 +000020158# PATH needs CR
brynercb91a2f2006-08-25 21:14:45 +000020159# Avoid depending upon Character Ranges.
20160as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20161as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20162as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20163as_cr_digits='0123456789'
20164as_cr_alnum=$as_cr_Letters$as_cr_digits
20165
20166# The user is always right.
20167if test "${PATH_SEPARATOR+set}" != set; then
20168 echo "#! /bin/sh" >conf$$.sh
20169 echo "exit 0" >>conf$$.sh
20170 chmod +x conf$$.sh
20171 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20172 PATH_SEPARATOR=';'
20173 else
20174 PATH_SEPARATOR=:
20175 fi
20176 rm -f conf$$.sh
20177fi
20178
mmentovai8c2a4de2006-09-20 16:20:15 +000020179# Support unset when possible.
20180if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20181 as_unset=unset
20182else
20183 as_unset=false
20184fi
brynercb91a2f2006-08-25 21:14:45 +000020185
mmentovai8c2a4de2006-09-20 16:20:15 +000020186
20187# IFS
20188# We need space, tab and new line, in precisely that order. Quoting is
20189# there to prevent editors from complaining about space-tab.
20190# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20191# splitting by setting IFS to empty value.)
20192as_nl='
20193'
20194IFS=" "" $as_nl"
20195
20196# Find who we are. Look in the path if we contain no directory separator.
20197case $0 in
20198 *[\\/]* ) as_myself=$0 ;;
20199 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +000020200for as_dir in $PATH
20201do
20202 IFS=$as_save_IFS
20203 test -z "$as_dir" && as_dir=.
20204 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20205done
mmentovai8c2a4de2006-09-20 16:20:15 +000020206IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +000020207
mmentovai8c2a4de2006-09-20 16:20:15 +000020208 ;;
20209esac
20210# We did not find ourselves, most probably we were run as `sh COMMAND'
20211# in which case we are not to be found in the path.
20212if test "x$as_myself" = x; then
20213 as_myself=$0
20214fi
20215if test ! -f "$as_myself"; then
20216 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20217 { (exit 1); exit 1; }
20218fi
20219
20220# Work around bugs in pre-3.0 UWIN ksh.
20221for as_var in ENV MAIL MAILPATH
20222do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20223done
20224PS1='$ '
20225PS2='> '
20226PS4='+ '
20227
20228# NLS nuisances.
20229for as_var in \
20230 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20231 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20232 LC_TELEPHONE LC_TIME
brynercb91a2f2006-08-25 21:14:45 +000020233do
mmentovai8c2a4de2006-09-20 16:20:15 +000020234 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20235 eval $as_var=C; export $as_var
20236 else
20237 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20238 fi
20239done
20240
20241# Required to use basename.
20242if expr a : '\(a\)' >/dev/null 2>&1 &&
20243 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20244 as_expr=expr
20245else
20246 as_expr=false
20247fi
20248
20249if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20250 as_basename=basename
20251else
20252 as_basename=false
20253fi
20254
20255
20256# Name of the executable.
20257as_me=`$as_basename -- "$0" ||
20258$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20259 X"$0" : 'X\(//\)$' \| \
20260 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20261echo X/"$0" |
20262 sed '/^.*\/\([^/][^/]*\)\/*$/{
20263 s//\1/
20264 q
20265 }
20266 /^X\/\(\/\/\)$/{
20267 s//\1/
20268 q
20269 }
20270 /^X\/\(\/\).*/{
20271 s//\1/
20272 q
20273 }
20274 s/.*/./; q'`
20275
20276# CDPATH.
20277$as_unset CDPATH
20278
20279
20280
brynercb91a2f2006-08-25 21:14:45 +000020281 as_lineno_1=$LINENO
20282 as_lineno_2=$LINENO
brynercb91a2f2006-08-25 21:14:45 +000020283 test "x$as_lineno_1" != "x$as_lineno_2" &&
mmentovai8c2a4de2006-09-20 16:20:15 +000020284 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
brynercb91a2f2006-08-25 21:14:45 +000020285
20286 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20287 # uniformly replaced by the line number. The first 'sed' inserts a
mmentovai8c2a4de2006-09-20 16:20:15 +000020288 # line-number line after each line using $LINENO; the second 'sed'
20289 # does the real work. The second script uses 'N' to pair each
20290 # line-number line with the line containing $LINENO, and appends
20291 # trailing '-' during substitution so that $LINENO is not a special
20292 # case at line end.
brynercb91a2f2006-08-25 21:14:45 +000020293 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
mmentovai8c2a4de2006-09-20 16:20:15 +000020294 # scripts with optimization help from Paolo Bonzini. Blame Lee
20295 # E. McMahon (1931-1989) for sed's syntax. :-)
20296 sed -n '
20297 p
20298 /[$]LINENO/=
20299 ' <$as_myself |
brynercb91a2f2006-08-25 21:14:45 +000020300 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +000020301 s/[$]LINENO.*/&-/
20302 t lineno
20303 b
20304 :lineno
brynercb91a2f2006-08-25 21:14:45 +000020305 N
mmentovai8c2a4de2006-09-20 16:20:15 +000020306 :loop
20307 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
brynercb91a2f2006-08-25 21:14:45 +000020308 t loop
mmentovai8c2a4de2006-09-20 16:20:15 +000020309 s/-\n.*//
brynercb91a2f2006-08-25 21:14:45 +000020310 ' >$as_me.lineno &&
mmentovai8c2a4de2006-09-20 16:20:15 +000020311 chmod +x "$as_me.lineno" ||
20312 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
brynercb91a2f2006-08-25 21:14:45 +000020313 { (exit 1); exit 1; }; }
20314
20315 # Don't try to exec as it changes $[0], causing all sort of problems
20316 # (the dirname of $[0] is not the place where we might find the
mmentovai8c2a4de2006-09-20 16:20:15 +000020317 # original and so on. Autoconf is especially sensitive to this).
20318 . "./$as_me.lineno"
brynercb91a2f2006-08-25 21:14:45 +000020319 # Exit status is that of the last command.
20320 exit
20321}
20322
20323
mmentovai8c2a4de2006-09-20 16:20:15 +000020324if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20325 as_dirname=dirname
20326else
20327 as_dirname=false
20328fi
20329
20330ECHO_C= ECHO_N= ECHO_T=
20331case `echo -n x` in
20332-n*)
20333 case `echo 'x\c'` in
20334 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20335 *) ECHO_C='\c';;
20336 esac;;
20337*)
20338 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +000020339esac
20340
mmentovai8c2a4de2006-09-20 16:20:15 +000020341if expr a : '\(a\)' >/dev/null 2>&1 &&
20342 test "X`expr 00001 : '.*\(...\)'`" = X001; then
brynercb91a2f2006-08-25 21:14:45 +000020343 as_expr=expr
20344else
20345 as_expr=false
20346fi
20347
20348rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +000020349if test -d conf$$.dir; then
20350 rm -f conf$$.dir/conf$$.file
20351else
20352 rm -f conf$$.dir
20353 mkdir conf$$.dir
20354fi
brynercb91a2f2006-08-25 21:14:45 +000020355echo >conf$$.file
20356if ln -s conf$$.file conf$$ 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000020357 as_ln_s='ln -s'
20358 # ... but there are two gotchas:
20359 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20360 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20361 # In both cases, we have to default to `cp -p'.
20362 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
brynercb91a2f2006-08-25 21:14:45 +000020363 as_ln_s='cp -p'
brynercb91a2f2006-08-25 21:14:45 +000020364elif ln conf$$.file conf$$ 2>/dev/null; then
20365 as_ln_s=ln
20366else
20367 as_ln_s='cp -p'
20368fi
mmentovai8c2a4de2006-09-20 16:20:15 +000020369rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20370rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000020371
20372if mkdir -p . 2>/dev/null; then
20373 as_mkdir_p=:
20374else
20375 test -d ./-p && rmdir ./-p
20376 as_mkdir_p=false
20377fi
20378
mmentovai8c2a4de2006-09-20 16:20:15 +000020379# Find out whether ``test -x'' works. Don't use a zero-byte file, as
20380# systems may use methods other than mode bits to determine executability.
20381cat >conf$$.file <<_ASEOF
20382#! /bin/sh
20383exit 0
20384_ASEOF
20385chmod +x conf$$.file
20386if test -x conf$$.file >/dev/null 2>&1; then
20387 as_executable_p="test -x"
20388else
20389 as_executable_p=:
20390fi
20391rm -f conf$$.file
brynercb91a2f2006-08-25 21:14:45 +000020392
20393# Sed expression to map a string onto a valid CPP name.
20394as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20395
20396# Sed expression to map a string onto a valid variable name.
20397as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20398
20399
brynercb91a2f2006-08-25 21:14:45 +000020400exec 6>&1
20401
mmentovai8c2a4de2006-09-20 16:20:15 +000020402# Save the log message, to keep $[0] and so on meaningful, and to
brynercb91a2f2006-08-25 21:14:45 +000020403# report actual input values of CONFIG_FILES etc. instead of their
mmentovai8c2a4de2006-09-20 16:20:15 +000020404# values after options handling.
20405ac_log="
mmentovaie5dc6082007-02-14 19:51:05 +000020406This file was extended by breakpad $as_me 0.1, which was
mmentovai8c2a4de2006-09-20 16:20:15 +000020407generated by GNU Autoconf 2.60. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +000020408
20409 CONFIG_FILES = $CONFIG_FILES
20410 CONFIG_HEADERS = $CONFIG_HEADERS
20411 CONFIG_LINKS = $CONFIG_LINKS
20412 CONFIG_COMMANDS = $CONFIG_COMMANDS
20413 $ $0 $@
20414
mmentovai8c2a4de2006-09-20 16:20:15 +000020415on `(hostname || uname -n) 2>/dev/null | sed 1q`
20416"
20417
brynercb91a2f2006-08-25 21:14:45 +000020418_ACEOF
20419
mmentovai8c2a4de2006-09-20 16:20:15 +000020420cat >>$CONFIG_STATUS <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020421# Files that config.status was made for.
mmentovai8c2a4de2006-09-20 16:20:15 +000020422config_files="$ac_config_files"
20423config_headers="$ac_config_headers"
20424config_commands="$ac_config_commands"
brynercb91a2f2006-08-25 21:14:45 +000020425
mmentovai8c2a4de2006-09-20 16:20:15 +000020426_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020427
20428cat >>$CONFIG_STATUS <<\_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020429ac_cs_usage="\
20430\`$as_me' instantiates files from templates according to the
20431current configuration.
20432
20433Usage: $0 [OPTIONS] [FILE]...
20434
20435 -h, --help print this help, then exit
20436 -V, --version print version number, then exit
20437 -q, --quiet do not print progress messages
20438 -d, --debug don't remove temporary files
20439 --recheck update $as_me by reconfiguring in the same conditions
20440 --file=FILE[:TEMPLATE]
20441 instantiate the configuration file FILE
20442 --header=FILE[:TEMPLATE]
20443 instantiate the configuration header FILE
20444
20445Configuration files:
20446$config_files
20447
20448Configuration headers:
20449$config_headers
20450
20451Configuration commands:
20452$config_commands
20453
20454Report bugs to <bug-autoconf@gnu.org>."
brynercb91a2f2006-08-25 21:14:45 +000020455
mmentovai8c2a4de2006-09-20 16:20:15 +000020456_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020457cat >>$CONFIG_STATUS <<_ACEOF
20458ac_cs_version="\\
mmentovaie5dc6082007-02-14 19:51:05 +000020459breakpad config.status 0.1
mmentovai8c2a4de2006-09-20 16:20:15 +000020460configured by $0, generated by GNU Autoconf 2.60,
20461 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
brynercb91a2f2006-08-25 21:14:45 +000020462
mmentovai8c2a4de2006-09-20 16:20:15 +000020463Copyright (C) 2006 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +000020464This config.status script is free software; the Free Software Foundation
20465gives unlimited permission to copy, distribute and modify it."
mmentovai8c2a4de2006-09-20 16:20:15 +000020466
20467ac_pwd='$ac_pwd'
20468srcdir='$srcdir'
20469INSTALL='$INSTALL'
brynercb91a2f2006-08-25 21:14:45 +000020470_ACEOF
20471
20472cat >>$CONFIG_STATUS <<\_ACEOF
20473# If no file are specified by the user, then we need to provide default
20474# value. By we need to know if files were specified by the user.
20475ac_need_defaults=:
20476while test $# != 0
20477do
20478 case $1 in
20479 --*=*)
mmentovai8c2a4de2006-09-20 16:20:15 +000020480 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20481 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +000020482 ac_shift=:
20483 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000020484 *)
brynercb91a2f2006-08-25 21:14:45 +000020485 ac_option=$1
20486 ac_optarg=$2
20487 ac_shift=shift
20488 ;;
brynercb91a2f2006-08-25 21:14:45 +000020489 esac
20490
20491 case $ac_option in
20492 # Handling of the options.
brynercb91a2f2006-08-25 21:14:45 +000020493 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20494 ac_cs_recheck=: ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000020495 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20496 echo "$ac_cs_version"; exit ;;
20497 --debug | --debu | --deb | --de | --d | -d )
brynercb91a2f2006-08-25 21:14:45 +000020498 debug=: ;;
20499 --file | --fil | --fi | --f )
20500 $ac_shift
20501 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20502 ac_need_defaults=false;;
20503 --header | --heade | --head | --hea )
20504 $ac_shift
20505 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20506 ac_need_defaults=false;;
mmentovai8c2a4de2006-09-20 16:20:15 +000020507 --he | --h)
20508 # Conflict between --help and --header
20509 { echo "$as_me: error: ambiguous option: $1
20510Try \`$0 --help' for more information." >&2
20511 { (exit 1); exit 1; }; };;
20512 --help | --hel | -h )
20513 echo "$ac_cs_usage"; exit ;;
brynercb91a2f2006-08-25 21:14:45 +000020514 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20515 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20516 ac_cs_silent=: ;;
20517
20518 # This is an error.
mmentovai8c2a4de2006-09-20 16:20:15 +000020519 -*) { echo "$as_me: error: unrecognized option: $1
20520Try \`$0 --help' for more information." >&2
brynercb91a2f2006-08-25 21:14:45 +000020521 { (exit 1); exit 1; }; } ;;
20522
mmentovai8c2a4de2006-09-20 16:20:15 +000020523 *) ac_config_targets="$ac_config_targets $1"
20524 ac_need_defaults=false ;;
brynercb91a2f2006-08-25 21:14:45 +000020525
20526 esac
20527 shift
20528done
20529
20530ac_configure_extra_args=
20531
20532if $ac_cs_silent; then
20533 exec 6>/dev/null
20534 ac_configure_extra_args="$ac_configure_extra_args --silent"
20535fi
20536
20537_ACEOF
20538cat >>$CONFIG_STATUS <<_ACEOF
20539if \$ac_cs_recheck; then
mmentovai8c2a4de2006-09-20 16:20:15 +000020540 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20541 CONFIG_SHELL=$SHELL
20542 export CONFIG_SHELL
20543 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
brynercb91a2f2006-08-25 21:14:45 +000020544fi
20545
20546_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000020547cat >>$CONFIG_STATUS <<\_ACEOF
20548exec 5>>config.log
20549{
20550 echo
20551 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20552## Running $as_me. ##
20553_ASBOX
20554 echo "$ac_log"
20555} >&5
brynercb91a2f2006-08-25 21:14:45 +000020556
mmentovai8c2a4de2006-09-20 16:20:15 +000020557_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020558cat >>$CONFIG_STATUS <<_ACEOF
20559#
mmentovai8c2a4de2006-09-20 16:20:15 +000020560# INIT-COMMANDS
brynercb91a2f2006-08-25 21:14:45 +000020561#
brynercb91a2f2006-08-25 21:14:45 +000020562AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20563
20564_ACEOF
20565
brynercb91a2f2006-08-25 21:14:45 +000020566cat >>$CONFIG_STATUS <<\_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000020567
20568# Handling of arguments.
brynercb91a2f2006-08-25 21:14:45 +000020569for ac_config_target in $ac_config_targets
20570do
mmentovai8c2a4de2006-09-20 16:20:15 +000020571 case $ac_config_target in
20572 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
20573 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20574 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20575
brynercb91a2f2006-08-25 21:14:45 +000020576 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20577echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20578 { (exit 1); exit 1; }; };;
20579 esac
20580done
20581
mmentovai8c2a4de2006-09-20 16:20:15 +000020582
brynercb91a2f2006-08-25 21:14:45 +000020583# If the user did not use the arguments to specify the items to instantiate,
20584# then the envvar interface is used. Set only those that are not.
20585# We use the long form for the default assignment because of an extremely
20586# bizarre bug on SunOS 4.1.3.
20587if $ac_need_defaults; then
20588 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20589 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20590 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20591fi
20592
20593# Have a temporary directory for convenience. Make it in the build tree
mmentovai8c2a4de2006-09-20 16:20:15 +000020594# simply because there is no reason against having it here, and in addition,
brynercb91a2f2006-08-25 21:14:45 +000020595# creating and moving files from /tmp can sometimes cause problems.
mmentovai8c2a4de2006-09-20 16:20:15 +000020596# Hook for its removal unless debugging.
20597# Note that there is a small window in which the directory will not be cleaned:
20598# after its creation but before its name has been assigned to `$tmp'.
brynercb91a2f2006-08-25 21:14:45 +000020599$debug ||
20600{
mmentovai8c2a4de2006-09-20 16:20:15 +000020601 tmp=
20602 trap 'exit_status=$?
20603 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20604' 0
brynercb91a2f2006-08-25 21:14:45 +000020605 trap '{ (exit 1); exit 1; }' 1 2 13 15
20606}
brynercb91a2f2006-08-25 21:14:45 +000020607# Create a (secure) tmp directory for tmp files.
20608
20609{
mmentovai8c2a4de2006-09-20 16:20:15 +000020610 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
brynercb91a2f2006-08-25 21:14:45 +000020611 test -n "$tmp" && test -d "$tmp"
20612} ||
20613{
mmentovai8c2a4de2006-09-20 16:20:15 +000020614 tmp=./conf$$-$RANDOM
20615 (umask 077 && mkdir "$tmp")
brynercb91a2f2006-08-25 21:14:45 +000020616} ||
20617{
20618 echo "$me: cannot create a temporary directory in ." >&2
20619 { (exit 1); exit 1; }
20620}
20621
brynercb91a2f2006-08-25 21:14:45 +000020622#
mmentovai8c2a4de2006-09-20 16:20:15 +000020623# Set up the sed scripts for CONFIG_FILES section.
brynercb91a2f2006-08-25 21:14:45 +000020624#
20625
20626# No need to generate the scripts if there are no CONFIG_FILES.
20627# This happens for instance when ./config.status config.h
mmentovai8c2a4de2006-09-20 16:20:15 +000020628if test -n "$CONFIG_FILES"; then
brynercb91a2f2006-08-25 21:14:45 +000020629
20630_ACEOF
20631
mmentovai8c2a4de2006-09-20 16:20:15 +000020632
20633
20634ac_delim='%!_!# '
20635for ac_last_try in false false false false false :; do
20636 cat >conf$$subs.sed <<_ACEOF
20637SHELL!$SHELL$ac_delim
20638PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20639PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20640PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20641PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20642PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20643PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20644exec_prefix!$exec_prefix$ac_delim
20645prefix!$prefix$ac_delim
20646program_transform_name!$program_transform_name$ac_delim
20647bindir!$bindir$ac_delim
20648sbindir!$sbindir$ac_delim
20649libexecdir!$libexecdir$ac_delim
20650datarootdir!$datarootdir$ac_delim
20651datadir!$datadir$ac_delim
20652sysconfdir!$sysconfdir$ac_delim
20653sharedstatedir!$sharedstatedir$ac_delim
20654localstatedir!$localstatedir$ac_delim
20655includedir!$includedir$ac_delim
20656oldincludedir!$oldincludedir$ac_delim
20657docdir!$docdir$ac_delim
20658infodir!$infodir$ac_delim
20659htmldir!$htmldir$ac_delim
20660dvidir!$dvidir$ac_delim
20661pdfdir!$pdfdir$ac_delim
20662psdir!$psdir$ac_delim
20663libdir!$libdir$ac_delim
20664localedir!$localedir$ac_delim
20665mandir!$mandir$ac_delim
20666DEFS!$DEFS$ac_delim
20667ECHO_C!$ECHO_C$ac_delim
20668ECHO_N!$ECHO_N$ac_delim
20669ECHO_T!$ECHO_T$ac_delim
20670LIBS!$LIBS$ac_delim
20671build_alias!$build_alias$ac_delim
20672host_alias!$host_alias$ac_delim
20673target_alias!$target_alias$ac_delim
20674INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20675INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20676INSTALL_DATA!$INSTALL_DATA$ac_delim
20677CYGPATH_W!$CYGPATH_W$ac_delim
20678PACKAGE!$PACKAGE$ac_delim
20679VERSION!$VERSION$ac_delim
20680ACLOCAL!$ACLOCAL$ac_delim
20681AUTOCONF!$AUTOCONF$ac_delim
20682AUTOMAKE!$AUTOMAKE$ac_delim
20683AUTOHEADER!$AUTOHEADER$ac_delim
20684MAKEINFO!$MAKEINFO$ac_delim
20685install_sh!$install_sh$ac_delim
20686STRIP!$STRIP$ac_delim
20687INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20688mkdir_p!$mkdir_p$ac_delim
20689AWK!$AWK$ac_delim
20690SET_MAKE!$SET_MAKE$ac_delim
20691am__leading_dot!$am__leading_dot$ac_delim
20692AMTAR!$AMTAR$ac_delim
20693am__tar!$am__tar$ac_delim
20694am__untar!$am__untar$ac_delim
20695CC!$CC$ac_delim
20696CFLAGS!$CFLAGS$ac_delim
20697LDFLAGS!$LDFLAGS$ac_delim
20698CPPFLAGS!$CPPFLAGS$ac_delim
20699ac_ct_CC!$ac_ct_CC$ac_delim
20700EXEEXT!$EXEEXT$ac_delim
20701OBJEXT!$OBJEXT$ac_delim
20702DEPDIR!$DEPDIR$ac_delim
20703am__include!$am__include$ac_delim
20704am__quote!$am__quote$ac_delim
20705AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20706AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20707AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20708CCDEPMODE!$CCDEPMODE$ac_delim
20709am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20710am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20711CPP!$CPP$ac_delim
20712CXX!$CXX$ac_delim
20713CXXFLAGS!$CXXFLAGS$ac_delim
20714ac_ct_CXX!$ac_ct_CXX$ac_delim
20715CXXDEPMODE!$CXXDEPMODE$ac_delim
20716am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20717am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20718build!$build$ac_delim
20719build_cpu!$build_cpu$ac_delim
20720build_vendor!$build_vendor$ac_delim
20721build_os!$build_os$ac_delim
20722host!$host$ac_delim
20723host_cpu!$host_cpu$ac_delim
20724host_vendor!$host_vendor$ac_delim
20725host_os!$host_os$ac_delim
20726GREP!$GREP$ac_delim
20727EGREP!$EGREP$ac_delim
20728LN_S!$LN_S$ac_delim
20729ECHO!$ECHO$ac_delim
20730AR!$AR$ac_delim
20731RANLIB!$RANLIB$ac_delim
20732CXXCPP!$CXXCPP$ac_delim
20733F77!$F77$ac_delim
20734_ACEOF
20735
20736 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20737 break
20738 elif $ac_last_try; then
20739 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20740echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20741 { (exit 1); exit 1; }; }
20742 else
20743 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
brynercb91a2f2006-08-25 21:14:45 +000020744 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000020745done
20746
20747ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20748if test -n "$ac_eof"; then
20749 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20750 ac_eof=`expr $ac_eof + 1`
20751fi
20752
20753cat >>$CONFIG_STATUS <<_ACEOF
20754cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20755/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20756_ACEOF
20757sed '
20758s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20759s/^/s,@/; s/!/@,|#_!!_#|/
20760:n
20761t n
20762s/'"$ac_delim"'$/,g/; t
20763s/$/\\/; p
20764N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20765' >>$CONFIG_STATUS <conf$$subs.sed
20766rm -f conf$$subs.sed
20767cat >>$CONFIG_STATUS <<_ACEOF
20768CEOF$ac_eof
20769_ACEOF
20770
20771
20772ac_delim='%!_!# '
20773for ac_last_try in false false false false false :; do
20774 cat >conf$$subs.sed <<_ACEOF
20775FFLAGS!$FFLAGS$ac_delim
20776ac_ct_F77!$ac_ct_F77$ac_delim
20777LIBTOOL!$LIBTOOL$ac_delim
20778LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
mmentovai0dbedc92006-09-25 21:16:15 +000020779SELFTEST_TRUE!$SELFTEST_TRUE$ac_delim
20780SELFTEST_FALSE!$SELFTEST_FALSE$ac_delim
mmentovai8c2a4de2006-09-20 16:20:15 +000020781LIBOBJS!$LIBOBJS$ac_delim
20782LTLIBOBJS!$LTLIBOBJS$ac_delim
20783_ACEOF
20784
mmentovai0dbedc92006-09-25 21:16:15 +000020785 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
mmentovai8c2a4de2006-09-20 16:20:15 +000020786 break
20787 elif $ac_last_try; then
20788 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20789echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20790 { (exit 1); exit 1; }; }
20791 else
20792 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20793 fi
20794done
20795
20796ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20797if test -n "$ac_eof"; then
20798 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20799 ac_eof=`expr $ac_eof + 1`
20800fi
20801
20802cat >>$CONFIG_STATUS <<_ACEOF
20803cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20804/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20805_ACEOF
20806sed '
20807s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20808s/^/s,@/; s/!/@,|#_!!_#|/
20809:n
20810t n
20811s/'"$ac_delim"'$/,g/; t
20812s/$/\\/; p
20813N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20814' >>$CONFIG_STATUS <conf$$subs.sed
20815rm -f conf$$subs.sed
20816cat >>$CONFIG_STATUS <<_ACEOF
20817:end
20818s/|#_!!_#|//g
20819CEOF$ac_eof
20820_ACEOF
20821
20822
20823# VPATH may cause trouble with some makes, so we remove $(srcdir),
20824# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20825# trailing colons and then remove the whole line if VPATH becomes empty
20826# (actually we leave an empty line to preserve line numbers).
20827if test "x$srcdir" = x.; then
20828 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20829s/:*\$(srcdir):*/:/
20830s/:*\${srcdir}:*/:/
20831s/:*@srcdir@:*/:/
20832s/^\([^=]*=[ ]*\):*/\1/
20833s/:*$//
20834s/^[^=]*=[ ]*$//
20835}'
20836fi
20837
20838cat >>$CONFIG_STATUS <<\_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000020839fi # test -n "$CONFIG_FILES"
20840
mmentovai8c2a4de2006-09-20 16:20:15 +000020841
20842for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20843do
20844 case $ac_tag in
20845 :[FHLC]) ac_mode=$ac_tag; continue;;
20846 esac
20847 case $ac_mode$ac_tag in
20848 :[FHL]*:*);;
20849 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20850echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20851 { (exit 1); exit 1; }; };;
20852 :[FH]-) ac_tag=-:-;;
20853 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20854 esac
20855 ac_save_IFS=$IFS
20856 IFS=:
20857 set x $ac_tag
20858 IFS=$ac_save_IFS
20859 shift
20860 ac_file=$1
20861 shift
20862
20863 case $ac_mode in
20864 :L) ac_source=$1;;
20865 :[FH])
20866 ac_file_inputs=
20867 for ac_f
20868 do
20869 case $ac_f in
20870 -) ac_f="$tmp/stdin";;
20871 *) # Look for the file first in the build tree, then in the source tree
20872 # (if the path is not absolute). The absolute path cannot be DOS-style,
20873 # because $ac_f cannot contain `:'.
20874 test -f "$ac_f" ||
20875 case $ac_f in
20876 [\\/$]*) false;;
20877 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20878 esac ||
20879 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20880echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20881 { (exit 1); exit 1; }; };;
20882 esac
20883 ac_file_inputs="$ac_file_inputs $ac_f"
20884 done
20885
20886 # Let's still pretend it is `configure' which instantiates (i.e., don't
20887 # use $as_me), people would be surprised to read:
20888 # /* config.h. Generated by config.status. */
20889 configure_input="Generated from "`IFS=:
20890 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20891 if test x"$ac_file" != x-; then
20892 configure_input="$ac_file. $configure_input"
20893 { echo "$as_me:$LINENO: creating $ac_file" >&5
20894echo "$as_me: creating $ac_file" >&6;}
20895 fi
20896
20897 case $ac_tag in
20898 *:-:* | *:-) cat >"$tmp/stdin";;
20899 esac
20900 ;;
brynercb91a2f2006-08-25 21:14:45 +000020901 esac
20902
mmentovai8c2a4de2006-09-20 16:20:15 +000020903 ac_dir=`$as_dirname -- "$ac_file" ||
brynercb91a2f2006-08-25 21:14:45 +000020904$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20905 X"$ac_file" : 'X\(//\)[^/]' \| \
20906 X"$ac_file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000020907 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000020908echo X"$ac_file" |
mmentovai8c2a4de2006-09-20 16:20:15 +000020909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20910 s//\1/
20911 q
20912 }
20913 /^X\(\/\/\)[^/].*/{
20914 s//\1/
20915 q
20916 }
20917 /^X\(\/\/\)$/{
20918 s//\1/
20919 q
20920 }
20921 /^X\(\/\).*/{
20922 s//\1/
20923 q
20924 }
20925 s/.*/./; q'`
20926 { as_dir="$ac_dir"
20927 case $as_dir in #(
20928 -*) as_dir=./$as_dir;;
20929 esac
20930 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
brynercb91a2f2006-08-25 21:14:45 +000020931 as_dirs=
mmentovai8c2a4de2006-09-20 16:20:15 +000020932 while :; do
20933 case $as_dir in #(
20934 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20935 *) as_qdir=$as_dir;;
20936 esac
20937 as_dirs="'$as_qdir' $as_dirs"
20938 as_dir=`$as_dirname -- "$as_dir" ||
brynercb91a2f2006-08-25 21:14:45 +000020939$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20940 X"$as_dir" : 'X\(//\)[^/]' \| \
20941 X"$as_dir" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000020942 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000020943echo X"$as_dir" |
mmentovai8c2a4de2006-09-20 16:20:15 +000020944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20945 s//\1/
20946 q
20947 }
20948 /^X\(\/\/\)[^/].*/{
20949 s//\1/
20950 q
20951 }
20952 /^X\(\/\/\)$/{
20953 s//\1/
20954 q
20955 }
20956 /^X\(\/\).*/{
20957 s//\1/
20958 q
20959 }
20960 s/.*/./; q'`
20961 test -d "$as_dir" && break
brynercb91a2f2006-08-25 21:14:45 +000020962 done
mmentovai8c2a4de2006-09-20 16:20:15 +000020963 test -z "$as_dirs" || eval "mkdir $as_dirs"
20964 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20965echo "$as_me: error: cannot create directory $as_dir" >&2;}
brynercb91a2f2006-08-25 21:14:45 +000020966 { (exit 1); exit 1; }; }; }
brynercb91a2f2006-08-25 21:14:45 +000020967 ac_builddir=.
20968
mmentovai8c2a4de2006-09-20 16:20:15 +000020969case "$ac_dir" in
20970.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20971*)
brynercb91a2f2006-08-25 21:14:45 +000020972 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
mmentovai8c2a4de2006-09-20 16:20:15 +000020973 # A ".." for each directory in $ac_dir_suffix.
20974 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20975 case $ac_top_builddir_sub in
20976 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20977 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20978 esac ;;
20979esac
20980ac_abs_top_builddir=$ac_pwd
20981ac_abs_builddir=$ac_pwd$ac_dir_suffix
20982# for backward compatibility:
20983ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +000020984
20985case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +000020986 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +000020987 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +000020988 ac_top_srcdir=$ac_top_builddir_sub
20989 ac_abs_top_srcdir=$ac_pwd ;;
20990 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +000020991 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +000020992 ac_top_srcdir=$srcdir
20993 ac_abs_top_srcdir=$srcdir ;;
20994 *) # Relative name.
20995 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20996 ac_top_srcdir=$ac_top_build_prefix$srcdir
20997 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +000020998esac
mmentovai8c2a4de2006-09-20 16:20:15 +000020999ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +000021000
brynercb91a2f2006-08-25 21:14:45 +000021001
mmentovai8c2a4de2006-09-20 16:20:15 +000021002 case $ac_mode in
21003 :F)
21004 #
21005 # CONFIG_FILE
21006 #
brynercb91a2f2006-08-25 21:14:45 +000021007
21008 case $INSTALL in
21009 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000021010 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
brynercb91a2f2006-08-25 21:14:45 +000021011 esac
brynercb91a2f2006-08-25 21:14:45 +000021012_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000021013
21014cat >>$CONFIG_STATUS <<\_ACEOF
21015# If the template does not know about datarootdir, expand it.
21016# FIXME: This hack should be removed a few years after 2.60.
21017ac_datarootdir_hack=; ac_datarootdir_seen=
21018
21019case `sed -n '/datarootdir/ {
21020 p
21021 q
21022}
21023/@datadir@/p
21024/@docdir@/p
21025/@infodir@/p
21026/@localedir@/p
21027/@mandir@/p
21028' $ac_file_inputs` in
21029*datarootdir*) ac_datarootdir_seen=yes;;
21030*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21031 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21032echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21033_ACEOF
21034cat >>$CONFIG_STATUS <<_ACEOF
21035 ac_datarootdir_hack='
21036 s&@datadir@&$datadir&g
21037 s&@docdir@&$docdir&g
21038 s&@infodir@&$infodir&g
21039 s&@localedir@&$localedir&g
21040 s&@mandir@&$mandir&g
21041 s&\\\${datarootdir}&$datarootdir&g' ;;
21042esac
21043_ACEOF
21044
21045# Neutralize VPATH when `$srcdir' = `.'.
21046# Shell code in configure.ac might set extrasub.
21047# FIXME: do we really want to maintain this feature?
brynercb91a2f2006-08-25 21:14:45 +000021048cat >>$CONFIG_STATUS <<_ACEOF
21049 sed "$ac_vpsub
21050$extrasub
21051_ACEOF
21052cat >>$CONFIG_STATUS <<\_ACEOF
21053:t
21054/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
mmentovai8c2a4de2006-09-20 16:20:15 +000021055s&@configure_input@&$configure_input&;t t
21056s&@top_builddir@&$ac_top_builddir_sub&;t t
21057s&@srcdir@&$ac_srcdir&;t t
21058s&@abs_srcdir@&$ac_abs_srcdir&;t t
21059s&@top_srcdir@&$ac_top_srcdir&;t t
21060s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21061s&@builddir@&$ac_builddir&;t t
21062s&@abs_builddir@&$ac_abs_builddir&;t t
21063s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21064s&@INSTALL@&$ac_INSTALL&;t t
21065$ac_datarootdir_hack
21066" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
brynercb91a2f2006-08-25 21:14:45 +000021067
mmentovai8c2a4de2006-09-20 16:20:15 +000021068test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21069 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21070 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21071 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21072which seems to be undefined. Please make sure it is defined." >&5
21073echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21074which seems to be undefined. Please make sure it is defined." >&2;}
brynercb91a2f2006-08-25 21:14:45 +000021075
mmentovai8c2a4de2006-09-20 16:20:15 +000021076 rm -f "$tmp/stdin"
brynercb91a2f2006-08-25 21:14:45 +000021077 case $ac_file in
mmentovai8c2a4de2006-09-20 16:20:15 +000021078 -) cat "$tmp/out"; rm -f "$tmp/out";;
21079 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
brynercb91a2f2006-08-25 21:14:45 +000021080 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000021081 ;;
21082 :H)
21083 #
21084 # CONFIG_HEADER
21085 #
brynercb91a2f2006-08-25 21:14:45 +000021086_ACEOF
21087
mmentovai8c2a4de2006-09-20 16:20:15 +000021088# Transform confdefs.h into a sed script `conftest.defines', that
21089# substitutes the proper values into config.h.in to produce config.h.
21090rm -f conftest.defines conftest.tail
21091# First, append a space to every undef/define line, to ease matching.
21092echo 's/$/ /' >conftest.defines
21093# Then, protect against being on the right side of a sed subst, or in
21094# an unquoted here document, in config.status. If some macros were
21095# called several times there might be several #defines for the same
21096# symbol, which is useless. But do not sort them, since the last
21097# AC_DEFINE must be honored.
21098ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21099# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21100# NAME is the cpp macro being defined, VALUE is the value it is being given.
21101# PARAMS is the parameter list in the macro definition--in most cases, it's
21102# just an empty string.
21103ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21104ac_dB='\\)[ (].*,\\1define\\2'
21105ac_dC=' '
21106ac_dD=' ,'
brynercb91a2f2006-08-25 21:14:45 +000021107
mmentovai8c2a4de2006-09-20 16:20:15 +000021108uniq confdefs.h |
21109 sed -n '
21110 t rset
21111 :rset
21112 s/^[ ]*#[ ]*define[ ][ ]*//
21113 t ok
21114 d
21115 :ok
21116 s/[\\&,]/\\&/g
21117 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21118 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21119 ' >>conftest.defines
21120
21121# Remove the space that was appended to ease matching.
21122# Then replace #undef with comments. This is necessary, for
brynercb91a2f2006-08-25 21:14:45 +000021123# example, in the case of _POSIX_SOURCE, which is predefined and required
21124# on some systems where configure will not decide to define it.
mmentovai8c2a4de2006-09-20 16:20:15 +000021125# (The regexp can be short, since the line contains either #define or #undef.)
21126echo 's/ $//
21127s,^[ #]*u.*,/* & */,' >>conftest.defines
brynercb91a2f2006-08-25 21:14:45 +000021128
mmentovai8c2a4de2006-09-20 16:20:15 +000021129# Break up conftest.defines:
21130ac_max_sed_lines=50
21131
21132# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21133# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21134# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21135# et cetera.
21136ac_in='$ac_file_inputs'
21137ac_out='"$tmp/out1"'
21138ac_nxt='"$tmp/out2"'
21139
21140while :
brynercb91a2f2006-08-25 21:14:45 +000021141do
mmentovai8c2a4de2006-09-20 16:20:15 +000021142 # Write a here document:
21143 cat >>$CONFIG_STATUS <<_ACEOF
21144 # First, check the format of the line:
21145 cat >"\$tmp/defines.sed" <<\\CEOF
21146/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21147/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21148b
21149:def
21150_ACEOF
21151 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
brynercb91a2f2006-08-25 21:14:45 +000021152 echo 'CEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000021153 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21154 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21155 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21156 grep . conftest.tail >/dev/null || break
brynercb91a2f2006-08-25 21:14:45 +000021157 rm -f conftest.defines
21158 mv conftest.tail conftest.defines
21159done
mmentovai8c2a4de2006-09-20 16:20:15 +000021160rm -f conftest.defines conftest.tail
brynercb91a2f2006-08-25 21:14:45 +000021161
mmentovai8c2a4de2006-09-20 16:20:15 +000021162echo "ac_result=$ac_in" >>$CONFIG_STATUS
brynercb91a2f2006-08-25 21:14:45 +000021163cat >>$CONFIG_STATUS <<\_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000021164 if test x"$ac_file" != x-; then
mmentovai8c2a4de2006-09-20 16:20:15 +000021165 echo "/* $configure_input */" >"$tmp/config.h"
21166 cat "$ac_result" >>"$tmp/config.h"
21167 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
brynercb91a2f2006-08-25 21:14:45 +000021168 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21169echo "$as_me: $ac_file is unchanged" >&6;}
21170 else
brynercb91a2f2006-08-25 21:14:45 +000021171 rm -f $ac_file
mmentovai8c2a4de2006-09-20 16:20:15 +000021172 mv "$tmp/config.h" $ac_file
brynercb91a2f2006-08-25 21:14:45 +000021173 fi
21174 else
mmentovai8c2a4de2006-09-20 16:20:15 +000021175 echo "/* $configure_input */"
21176 cat "$ac_result"
brynercb91a2f2006-08-25 21:14:45 +000021177 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000021178 rm -f "$tmp/out12"
brynercb91a2f2006-08-25 21:14:45 +000021179# Compute $ac_file's index in $config_headers.
21180_am_stamp_count=1
21181for _am_header in $config_headers :; do
21182 case $_am_header in
21183 $ac_file | $ac_file:* )
21184 break ;;
21185 * )
21186 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21187 esac
21188done
mmentovai8c2a4de2006-09-20 16:20:15 +000021189echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
brynercb91a2f2006-08-25 21:14:45 +000021190$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21191 X$ac_file : 'X\(//\)[^/]' \| \
21192 X$ac_file : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000021193 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000021194echo X$ac_file |
mmentovai8c2a4de2006-09-20 16:20:15 +000021195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21196 s//\1/
21197 q
21198 }
21199 /^X\(\/\/\)[^/].*/{
21200 s//\1/
21201 q
21202 }
21203 /^X\(\/\/\)$/{
21204 s//\1/
21205 q
21206 }
21207 /^X\(\/\).*/{
21208 s//\1/
21209 q
21210 }
21211 s/.*/./; q'`/stamp-h$_am_stamp_count
21212 ;;
brynercb91a2f2006-08-25 21:14:45 +000021213
mmentovai8c2a4de2006-09-20 16:20:15 +000021214 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21215echo "$as_me: executing $ac_file commands" >&6;}
21216 ;;
21217 esac
brynercb91a2f2006-08-25 21:14:45 +000021218
21219
mmentovai8c2a4de2006-09-20 16:20:15 +000021220 case $ac_file$ac_mode in
21221 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
brynercb91a2f2006-08-25 21:14:45 +000021222 # Strip MF so we end up with the name of the file.
21223 mf=`echo "$mf" | sed -e 's/:.*$//'`
21224 # Check whether this is an Automake generated Makefile or not.
21225 # We used to match only the files named `Makefile.in', but
21226 # some people rename them; so instead we look at the file content.
21227 # Grep'ing the first line is not enough: some people post-process
21228 # each Makefile.in and add a new line on top of each file to say so.
21229 # So let's grep whole file.
21230 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
mmentovai8c2a4de2006-09-20 16:20:15 +000021231 dirpart=`$as_dirname -- "$mf" ||
brynercb91a2f2006-08-25 21:14:45 +000021232$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21233 X"$mf" : 'X\(//\)[^/]' \| \
21234 X"$mf" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000021235 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000021236echo X"$mf" |
mmentovai8c2a4de2006-09-20 16:20:15 +000021237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21238 s//\1/
21239 q
21240 }
21241 /^X\(\/\/\)[^/].*/{
21242 s//\1/
21243 q
21244 }
21245 /^X\(\/\/\)$/{
21246 s//\1/
21247 q
21248 }
21249 /^X\(\/\).*/{
21250 s//\1/
21251 q
21252 }
21253 s/.*/./; q'`
brynercb91a2f2006-08-25 21:14:45 +000021254 else
21255 continue
21256 fi
21257 # Extract the definition of DEPDIR, am__include, and am__quote
21258 # from the Makefile without running `make'.
21259 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21260 test -z "$DEPDIR" && continue
21261 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21262 test -z "am__include" && continue
21263 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21264 # When using ansi2knr, U may be empty or an underscore; expand it
21265 U=`sed -n 's/^U = //p' < "$mf"`
21266 # Find all dependency output files, they are included files with
21267 # $(DEPDIR) in their names. We invoke sed twice because it is the
21268 # simplest approach to changing $(DEPDIR) to its actual value in the
21269 # expansion.
21270 for file in `sed -n "
21271 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21272 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21273 # Make sure the directory exists.
21274 test -f "$dirpart/$file" && continue
mmentovai8c2a4de2006-09-20 16:20:15 +000021275 fdir=`$as_dirname -- "$file" ||
brynercb91a2f2006-08-25 21:14:45 +000021276$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21277 X"$file" : 'X\(//\)[^/]' \| \
21278 X"$file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000021279 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000021280echo X"$file" |
mmentovai8c2a4de2006-09-20 16:20:15 +000021281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21282 s//\1/
21283 q
21284 }
21285 /^X\(\/\/\)[^/].*/{
21286 s//\1/
21287 q
21288 }
21289 /^X\(\/\/\)$/{
21290 s//\1/
21291 q
21292 }
21293 /^X\(\/\).*/{
21294 s//\1/
21295 q
21296 }
21297 s/.*/./; q'`
21298 { as_dir=$dirpart/$fdir
21299 case $as_dir in #(
21300 -*) as_dir=./$as_dir;;
21301 esac
21302 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
brynercb91a2f2006-08-25 21:14:45 +000021303 as_dirs=
mmentovai8c2a4de2006-09-20 16:20:15 +000021304 while :; do
21305 case $as_dir in #(
21306 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21307 *) as_qdir=$as_dir;;
21308 esac
21309 as_dirs="'$as_qdir' $as_dirs"
21310 as_dir=`$as_dirname -- "$as_dir" ||
brynercb91a2f2006-08-25 21:14:45 +000021311$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21312 X"$as_dir" : 'X\(//\)[^/]' \| \
21313 X"$as_dir" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000021314 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
brynercb91a2f2006-08-25 21:14:45 +000021315echo X"$as_dir" |
mmentovai8c2a4de2006-09-20 16:20:15 +000021316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21317 s//\1/
21318 q
21319 }
21320 /^X\(\/\/\)[^/].*/{
21321 s//\1/
21322 q
21323 }
21324 /^X\(\/\/\)$/{
21325 s//\1/
21326 q
21327 }
21328 /^X\(\/\).*/{
21329 s//\1/
21330 q
21331 }
21332 s/.*/./; q'`
21333 test -d "$as_dir" && break
brynercb91a2f2006-08-25 21:14:45 +000021334 done
mmentovai8c2a4de2006-09-20 16:20:15 +000021335 test -z "$as_dirs" || eval "mkdir $as_dirs"
21336 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21337echo "$as_me: error: cannot create directory $as_dir" >&2;}
brynercb91a2f2006-08-25 21:14:45 +000021338 { (exit 1); exit 1; }; }; }
brynercb91a2f2006-08-25 21:14:45 +000021339 # echo "creating $dirpart/$file"
21340 echo '# dummy' > "$dirpart/$file"
21341 done
21342done
21343 ;;
brynercb91a2f2006-08-25 21:14:45 +000021344
mmentovai8c2a4de2006-09-20 16:20:15 +000021345 esac
21346done # for ac_tag
21347
brynercb91a2f2006-08-25 21:14:45 +000021348
21349{ (exit 0); exit 0; }
21350_ACEOF
21351chmod +x $CONFIG_STATUS
21352ac_clean_files=$ac_clean_files_save
21353
21354
21355# configure is writing to config.log, and then calls config.status.
21356# config.status does its own redirection, appending to config.log.
21357# Unfortunately, on DOS this fails, as config.log is still kept open
21358# by configure, so config.status won't be able to write to it; its
21359# output is simply discarded. So we exec the FD to /dev/null,
21360# effectively closing config.log, so it can be properly (re)opened and
21361# appended to by config.status. When coming back to configure, we
21362# need to make the FD available again.
21363if test "$no_create" != yes; then
21364 ac_cs_success=:
21365 ac_config_status_args=
21366 test "$silent" = yes &&
21367 ac_config_status_args="$ac_config_status_args --quiet"
21368 exec 5>/dev/null
21369 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21370 exec 5>>config.log
21371 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21372 # would make configure fail if this is the last instruction.
21373 $ac_cs_success || { (exit 1); exit 1; }
21374fi
21375