blob: b239040a6318043c398cef9a7f0340005b782044 [file] [log] [blame]
drh75897232000-05-29 14:26:00 +00001#! /bin/sh
drh75897232000-05-29 14:26:00 +00002# Guess values for system-dependent variables and create Makefiles.
mlcreech94984912008-03-04 19:03:08 +00003# Generated by GNU Autoconf 2.61.
drh75897232000-05-29 14:26:00 +00004#
mlcreech94984912008-03-04 19:03:08 +00005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
drh75897232000-05-29 14:26:00 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
mlcreech94984912008-03-04 19:03:08 +000013# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
a.rottmann84e63352003-03-24 09:42:16 +000015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
mlcreech94984912008-03-04 19:03:08 +000021 setopt NO_GLOB_SUBST
drh613a0fe2007-11-23 17:31:17 +000022else
mlcreech94984912008-03-04 19:03:08 +000023 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
a.rottmann84e63352003-03-24 09:42:16 +000027fi
28
29
a.rottmann84e63352003-03-24 09:42:16 +000030
31
mlcreech94984912008-03-04 19:03:08 +000032# PATH needs CR
a.rottmann84e63352003-03-24 09:42:16 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
mlcreech94984912008-03-04 19:03:08 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
a.rottmann84e63352003-03-24 09:42:16 +000059
mlcreech94984912008-03-04 19:03:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann84e63352003-03-24 09:42:16 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
mlcreech94984912008-03-04 19:03:08 +000080IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +000081
mlcreech94984912008-03-04 19:03:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
a.rottmann84e63352003-03-24 09:42:16 +0000112 fi
mlcreech94984912008-03-04 19:03:08 +0000113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
a.rottmann84e63352003-03-24 09:42:16 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
mlcreech94984912008-03-04 19:03:08 +0000226 case $as_dir in
a.rottmann84e63352003-03-24 09:42:16 +0000227 /*)
mlcreech94984912008-03-04 19:03:08 +0000228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
drh613a0fe2007-11-23 17:31:17 +0000328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
drh613a0fe2007-11-23 17:31:17 +0000330 test "x$as_lineno_1" != "x$as_lineno_2" &&
mlcreech94984912008-03-04 19:03:08 +0000331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
a.rottmann84e63352003-03-24 09:42:16 +0000427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
mlcreech94984912008-03-04 19:03:08 +0000430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
a.rottmann84e63352003-03-24 09:42:16 +0000435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
mlcreech94984912008-03-04 19:03:08 +0000436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +0000442 sed '
mlcreech94984912008-03-04 19:03:08 +0000443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
a.rottmann84e63352003-03-24 09:42:16 +0000447 N
mlcreech94984912008-03-04 19:03:08 +0000448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a.rottmann84e63352003-03-24 09:42:16 +0000450 t loop
mlcreech94984912008-03-04 19:03:08 +0000451 s/-\n.*//
a.rottmann84e63352003-03-24 09:42:16 +0000452 ' >$as_me.lineno &&
mlcreech94984912008-03-04 19:03:08 +0000453 chmod +x "$as_me.lineno" ||
a.rottmann84e63352003-03-24 09:42:16 +0000454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
mlcreech94984912008-03-04 19:03:08 +0000459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
a.rottmann84e63352003-03-24 09:42:16 +0000461 # Exit status is that of the last command.
462 exit
463}
464
465
mlcreech94984912008-03-04 19:03:08 +0000466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
a.rottmann84e63352003-03-24 09:42:16 +0000481esac
482
mlcreech94984912008-03-04 19:03:08 +0000483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
a.rottmann84e63352003-03-24 09:42:16 +0000485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
mlcreech94984912008-03-04 19:03:08 +0000491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
a.rottmann84e63352003-03-24 09:42:16 +0000497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
mlcreech94984912008-03-04 19:03:08 +0000499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
a.rottmann84e63352003-03-24 09:42:16 +0000505 as_ln_s='cp -p'
a.rottmann84e63352003-03-24 09:42:16 +0000506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
mlcreech94984912008-03-04 19:03:08 +0000511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +0000513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
a.rottmann964dbb12004-02-26 19:47:42 +0000517 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +0000518 as_mkdir_p=false
519fi
520
mlcreech94984912008-03-04 19:03:08 +0000521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541fi
542as_executable_p=$as_test_x
a.rottmann84e63352003-03-24 09:42:16 +0000543
544# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +0000545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000546
547# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +0000548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000549
550
drh75897232000-05-29 14:26:00 +0000551
a.rottmann84e63352003-03-24 09:42:16 +0000552
drh71eb93e2001-09-28 01:34:43 +0000553# Check that we are running under the correct shell.
554SHELL=${CONFIG_SHELL-/bin/sh}
555
556case X$ECHO in
557X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560 ;;
561esac
562
563echo=${ECHO-echo}
564if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
569 :
a.rottmann9bc8b932004-02-29 15:18:31 +0000570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
drh71eb93e2001-09-28 01:34:43 +0000571 # Yippee, $echo works!
572 :
573else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
576fi
577
578if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<EOF
a.rottmann9bc8b932004-02-29 15:18:31 +0000582$*
drh71eb93e2001-09-28 01:34:43 +0000583EOF
584 exit 0
585fi
586
587# The HP-UX ksh and POSIX shell print the target directory to stdout
588# if CDPATH is set.
vapier7f19c022007-02-17 14:46:31 +0000589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
drh71eb93e2001-09-28 01:34:43 +0000590
591if test -z "$ECHO"; then
592if test "X${echo_test_string+set}" != Xset; then
593# find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
vapier7f19c022007-02-17 14:46:31 +0000596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
drh71eb93e2001-09-28 01:34:43 +0000598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 then
600 break
601 fi
602 done
603fi
604
605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 :
609else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
613 #
614 # So, first we look for a working echo in the user's PATH.
615
a.rottmann9bc8b932004-02-29 15:18:31 +0000616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +0000617 for dir in $PATH /usr/ucb; do
a.rottmann9bc8b932004-02-29 15:18:31 +0000618 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +0000619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 echo="$dir/echo"
624 break
625 fi
626 done
a.rottmann9bc8b932004-02-29 15:18:31 +0000627 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +0000628
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 echo='print -r'
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 echo='printf %s\n'
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # Cool, printf works
651 :
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
669
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 then
673 break
674 fi
675 prev="$cmd"
676 done
677
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 echo=echo
685 fi
686 fi
687 fi
688 fi
689fi
690fi
691
692# Copy echo and quote the copy suitably for passing to libtool from
693# the Makefile, instead of quoting the original, which is used later.
694ECHO=$echo
695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697fi
698
drh71eb93e2001-09-28 01:34:43 +0000699
drh71eb93e2001-09-28 01:34:43 +0000700
a.rottmann9bc8b932004-02-29 15:18:31 +0000701
702tagnames=${tagnames+${tagnames},}CXX
703
704tagnames=${tagnames+${tagnames},}F77
705
mlcreech94984912008-03-04 19:03:08 +0000706exec 7<&0 </dev/null 6>&1
707
drh71eb93e2001-09-28 01:34:43 +0000708# Name of the host.
709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710# so uname gets run too.
711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
drh71eb93e2001-09-28 01:34:43 +0000713#
714# Initializations.
715#
drh75897232000-05-29 14:26:00 +0000716ac_default_prefix=/usr/local
mlcreech94984912008-03-04 19:03:08 +0000717ac_clean_files=
a.rottmann84e63352003-03-24 09:42:16 +0000718ac_config_libobj_dir=.
mlcreech94984912008-03-04 19:03:08 +0000719LIBOBJS=
drh71eb93e2001-09-28 01:34:43 +0000720cross_compiling=no
721subdirs=
a.rottmann84e63352003-03-24 09:42:16 +0000722MFLAGS=
723MAKEFLAGS=
drh71eb93e2001-09-28 01:34:43 +0000724SHELL=${CONFIG_SHELL-/bin/sh}
725
a.rottmann84e63352003-03-24 09:42:16 +0000726# Identity of this package.
727PACKAGE_NAME=
728PACKAGE_TARNAME=
729PACKAGE_VERSION=
730PACKAGE_STRING=
731PACKAGE_BUGREPORT=
732
drh71eb93e2001-09-28 01:34:43 +0000733ac_unique_file="src/sqlite.h.in"
a.rottmann84e63352003-03-24 09:42:16 +0000734# Factoring default headers for most tests.
735ac_includes_default="\
736#include <stdio.h>
mlcreech94984912008-03-04 19:03:08 +0000737#ifdef HAVE_SYS_TYPES_H
a.rottmann84e63352003-03-24 09:42:16 +0000738# include <sys/types.h>
739#endif
mlcreech94984912008-03-04 19:03:08 +0000740#ifdef HAVE_SYS_STAT_H
a.rottmann84e63352003-03-24 09:42:16 +0000741# include <sys/stat.h>
742#endif
mlcreech94984912008-03-04 19:03:08 +0000743#ifdef STDC_HEADERS
a.rottmann84e63352003-03-24 09:42:16 +0000744# include <stdlib.h>
745# include <stddef.h>
746#else
mlcreech94984912008-03-04 19:03:08 +0000747# ifdef HAVE_STDLIB_H
a.rottmann84e63352003-03-24 09:42:16 +0000748# include <stdlib.h>
749# endif
750#endif
mlcreech94984912008-03-04 19:03:08 +0000751#ifdef HAVE_STRING_H
752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
a.rottmann84e63352003-03-24 09:42:16 +0000753# include <memory.h>
754# endif
755# include <string.h>
756#endif
mlcreech94984912008-03-04 19:03:08 +0000757#ifdef HAVE_STRINGS_H
a.rottmann84e63352003-03-24 09:42:16 +0000758# include <strings.h>
759#endif
mlcreech94984912008-03-04 19:03:08 +0000760#ifdef HAVE_INTTYPES_H
a.rottmann84e63352003-03-24 09:42:16 +0000761# include <inttypes.h>
a.rottmann84e63352003-03-24 09:42:16 +0000762#endif
mlcreech94984912008-03-04 19:03:08 +0000763#ifdef HAVE_STDINT_H
764# include <stdint.h>
765#endif
766#ifdef HAVE_UNISTD_H
a.rottmann84e63352003-03-24 09:42:16 +0000767# include <unistd.h>
768#endif"
769
mlcreech94984912008-03-04 19:03:08 +0000770ac_subst_vars='SHELL
771PATH_SEPARATOR
772PACKAGE_NAME
773PACKAGE_TARNAME
774PACKAGE_VERSION
775PACKAGE_STRING
776PACKAGE_BUGREPORT
777exec_prefix
778prefix
779program_transform_name
780bindir
781sbindir
782libexecdir
783datarootdir
784datadir
785sysconfdir
786sharedstatedir
787localstatedir
788includedir
789oldincludedir
790docdir
791infodir
792htmldir
793dvidir
794pdfdir
795psdir
796libdir
797localedir
798mandir
799DEFS
800ECHO_C
801ECHO_N
802ECHO_T
803LIBS
804build_alias
805host_alias
806target_alias
807build
808build_cpu
809build_vendor
810build_os
811host
812host_cpu
813host_vendor
814host_os
815CC
816CFLAGS
817LDFLAGS
818CPPFLAGS
819ac_ct_CC
820EXEEXT
821OBJEXT
822GREP
823EGREP
824LN_S
825ECHO
826AR
827RANLIB
828STRIP
829CPP
830CXX
831CXXFLAGS
832ac_ct_CXX
833CXXCPP
834F77
835FFLAGS
836ac_ct_F77
837LIBTOOL
838INSTALL_PROGRAM
839INSTALL_SCRIPT
840INSTALL_DATA
841AWK
842program_prefix
843VERSION
844RELEASE
845VERSION_NUMBER
846BUILD_CC
847BUILD_CFLAGS
848SQLITE_THREADSAFE
849TARGET_THREAD_LIB
850XTHREADCONNECT
851THREADSOVERRIDELOCKS
852ALLOWRELEASE
853TEMP_STORE
854BUILD_EXEEXT
855OS_UNIX
856OS_WIN
857OS_OS2
858TARGET_EXEEXT
859TCL_VERSION
860TCL_BIN_DIR
861TCL_SRC_DIR
862TCL_LIBS
863TCL_INCLUDE_SPEC
864TCL_LIB_FILE
865TCL_LIB_FLAG
866TCL_LIB_SPEC
867TCL_STUB_LIB_FILE
868TCL_STUB_LIB_FLAG
869TCL_STUB_LIB_SPEC
870HAVE_TCL
871TARGET_READLINE_LIBS
872TARGET_READLINE_INC
873TARGET_HAVE_READLINE
874TARGET_DEBUG
875USE_AMALGAMATION
mlcreecha4edab02008-03-06 04:14:17 +0000876LOADEXTENSION_FLAGS
mlcreech94984912008-03-04 19:03:08 +0000877LIBOBJS
878LTLIBOBJS'
a.rottmann84e63352003-03-24 09:42:16 +0000879ac_subst_files=''
mlcreech94984912008-03-04 19:03:08 +0000880 ac_precious_vars='build_alias
881host_alias
882target_alias
883CC
884CFLAGS
885LDFLAGS
886LIBS
887CPPFLAGS
888CPP
889CXX
890CXXFLAGS
891CCC
892CXXCPP
893F77
894FFLAGS'
895
drh75897232000-05-29 14:26:00 +0000896
897# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000898ac_init_help=
899ac_init_version=false
drh75897232000-05-29 14:26:00 +0000900# The variables have the same names as the options, with
901# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000902cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000903exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000904no_create=
drh75897232000-05-29 14:26:00 +0000905no_recursion=
906prefix=NONE
907program_prefix=NONE
908program_suffix=NONE
909program_transform_name=s,x,x,
910silent=
911site=
912srcdir=
drh75897232000-05-29 14:26:00 +0000913verbose=
914x_includes=NONE
915x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000916
917# Installation directory options.
918# These are left unexpanded so users can "make install exec_prefix=/foo"
919# and all the variables that are supposed to be based on exec_prefix
920# by default will actually change.
921# Use braces instead of parens because sh, perl, etc. also accept them.
mlcreech94984912008-03-04 19:03:08 +0000922# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000923bindir='${exec_prefix}/bin'
924sbindir='${exec_prefix}/sbin'
925libexecdir='${exec_prefix}/libexec'
mlcreech94984912008-03-04 19:03:08 +0000926datarootdir='${prefix}/share'
927datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000928sysconfdir='${prefix}/etc'
929sharedstatedir='${prefix}/com'
930localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000931includedir='${prefix}/include'
932oldincludedir='/usr/include'
mlcreech94984912008-03-04 19:03:08 +0000933docdir='${datarootdir}/doc/${PACKAGE}'
934infodir='${datarootdir}/info'
935htmldir='${docdir}'
936dvidir='${docdir}'
937pdfdir='${docdir}'
938psdir='${docdir}'
939libdir='${exec_prefix}/lib'
940localedir='${datarootdir}/locale'
941mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000942
drh75897232000-05-29 14:26:00 +0000943ac_prev=
mlcreech94984912008-03-04 19:03:08 +0000944ac_dashdash=
drh75897232000-05-29 14:26:00 +0000945for ac_option
946do
drh75897232000-05-29 14:26:00 +0000947 # If the previous option needs an argument, assign it.
948 if test -n "$ac_prev"; then
mlcreech94984912008-03-04 19:03:08 +0000949 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000950 ac_prev=
951 continue
952 fi
953
mlcreech94984912008-03-04 19:03:08 +0000954 case $ac_option in
955 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956 *) ac_optarg=yes ;;
957 esac
drh75897232000-05-29 14:26:00 +0000958
959 # Accept the important Cygnus configure options, so we can diagnose typos.
960
mlcreech94984912008-03-04 19:03:08 +0000961 case $ac_dashdash$ac_option in
962 --)
963 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +0000964
965 -bindir | --bindir | --bindi | --bind | --bin | --bi)
966 ac_prev=bindir ;;
967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +0000968 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000969
970 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +0000971 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +0000972 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +0000973 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000974
975 -cache-file | --cache-file | --cache-fil | --cache-fi \
976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977 ac_prev=cache_file ;;
978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +0000980 cache_file=$ac_optarg ;;
981
982 --config-cache | -C)
983 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +0000984
mlcreech94984912008-03-04 19:03:08 +0000985 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +0000986 ac_prev=datadir ;;
mlcreech94984912008-03-04 19:03:08 +0000987 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +0000988 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000989
mlcreech94984912008-03-04 19:03:08 +0000990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991 | --dataroo | --dataro | --datar)
992 ac_prev=datarootdir ;;
993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995 datarootdir=$ac_optarg ;;
996
drh75897232000-05-29 14:26:00 +0000997 -disable-* | --disable-*)
drh71eb93e2001-09-28 01:34:43 +0000998 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +0000999 # Reject names that are not valid shell variable names.
mlcreech94984912008-03-04 19:03:08 +00001000 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh71eb93e2001-09-28 01:34:43 +00001001 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001003 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1004 eval enable_$ac_feature=no ;;
1005
1006 -docdir | --docdir | --docdi | --doc | --do)
1007 ac_prev=docdir ;;
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1010
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012 ac_prev=dvidir ;;
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001015
1016 -enable-* | --enable-*)
drh71eb93e2001-09-28 01:34:43 +00001017 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001018 # Reject names that are not valid shell variable names.
mlcreech94984912008-03-04 19:03:08 +00001019 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh71eb93e2001-09-28 01:34:43 +00001020 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001022 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023 eval enable_$ac_feature=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001024
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001032 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001033
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1036 with_gas=yes ;;
1037
drh71eb93e2001-09-28 01:34:43 +00001038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001044
1045 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001046 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001047 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001048 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001049
mlcreech94984912008-03-04 19:03:08 +00001050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051 ac_prev=htmldir ;;
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053 | --ht=*)
1054 htmldir=$ac_optarg ;;
1055
drh75897232000-05-29 14:26:00 +00001056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001061 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001062
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1064 ac_prev=infodir ;;
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001066 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001067
1068 -libdir | --libdir | --libdi | --libd)
1069 ac_prev=libdir ;;
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001071 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001072
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001078 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001079
mlcreech94984912008-03-04 19:03:08 +00001080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1084
drh75897232000-05-29 14:26:00 +00001085 -localstatedir | --localstatedir | --localstatedi | --localstated \
mlcreech94984912008-03-04 19:03:08 +00001086 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
mlcreech94984912008-03-04 19:03:08 +00001089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001090 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001091
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093 ac_prev=mandir ;;
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001095 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001096
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1099 with_fp=no ;;
1100
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001102 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001103 no_create=yes ;;
1104
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107 no_recursion=yes ;;
1108
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001116 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001117
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119 ac_prev=prefix ;;
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001121 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001122
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001128 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001129
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001135 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001136
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001152 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001153
mlcreech94984912008-03-04 19:03:08 +00001154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155 ac_prev=pdfdir ;;
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1158
1159 -psdir | --psdir | --psdi | --psd | --ps)
1160 ac_prev=psdir ;;
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162 psdir=$ac_optarg ;;
1163
drh75897232000-05-29 14:26:00 +00001164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1166 silent=yes ;;
1167
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169 ac_prev=sbindir ;;
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001172 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001173
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1177 | --sha | --sh)
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001183 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001184
1185 -site | --site | --sit)
1186 ac_prev=site ;;
1187 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001188 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001189
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191 ac_prev=srcdir ;;
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001193 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001194
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001200 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001201
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001203 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001205 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001206
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 verbose=yes ;;
1209
drh71eb93e2001-09-28 01:34:43 +00001210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001212
1213 -with-* | --with-*)
drh71eb93e2001-09-28 01:34:43 +00001214 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001215 # Reject names that are not valid shell variable names.
mlcreech94984912008-03-04 19:03:08 +00001216 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh71eb93e2001-09-28 01:34:43 +00001217 { echo "$as_me: error: invalid package name: $ac_package" >&2
1218 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001219 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1220 eval with_$ac_package=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001221
1222 -without-* | --without-*)
drh71eb93e2001-09-28 01:34:43 +00001223 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001224 # Reject names that are not valid shell variable names.
mlcreech94984912008-03-04 19:03:08 +00001225 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh71eb93e2001-09-28 01:34:43 +00001226 { echo "$as_me: error: invalid package name: $ac_package" >&2
1227 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001228 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1229 eval with_$ac_package=no ;;
drh75897232000-05-29 14:26:00 +00001230
1231 --x)
1232 # Obsolete; use --with-x.
1233 with_x=yes ;;
1234
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001240 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001241
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001247 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001248
drh71eb93e2001-09-28 01:34:43 +00001249 -*) { echo "$as_me: error: unrecognized option: $ac_option
1250Try \`$0 --help' for more information." >&2
1251 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001252 ;;
1253
drh71eb93e2001-09-28 01:34:43 +00001254 *=*)
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001260 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001261 export $ac_envvar ;;
1262
drh75897232000-05-29 14:26:00 +00001263 *)
drh71eb93e2001-09-28 01:34:43 +00001264 # FIXME: should be removed in autoconf 3.0.
1265 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
drh75897232000-05-29 14:26:00 +00001269 ;;
1270
1271 esac
1272done
1273
1274if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276 { echo "$as_me: error: missing argument to $ac_option" >&2
1277 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001278fi
1279
mlcreech94984912008-03-04 19:03:08 +00001280# Be sure to have absolute directory names.
1281for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir
drh75897232000-05-29 14:26:00 +00001285do
mlcreech94984912008-03-04 19:03:08 +00001286 eval ac_val=\$$ac_var
drh71eb93e2001-09-28 01:34:43 +00001287 case $ac_val in
mlcreech94984912008-03-04 19:03:08 +00001288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
drh75897232000-05-29 14:26:00 +00001290 esac
mlcreech94984912008-03-04 19:03:08 +00001291 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1292 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00001293done
drh75897232000-05-29 14:26:00 +00001294
drh71eb93e2001-09-28 01:34:43 +00001295# There might be people who depend on the old broken behavior: `$host'
1296# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001297# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001298build=$build_alias
1299host=$host_alias
1300target=$target_alias
drh75897232000-05-29 14:26:00 +00001301
a.rottmann84e63352003-03-24 09:42:16 +00001302# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001303if test "x$host_alias" != x; then
1304 if test "x$build_alias" = x; then
1305 cross_compiling=maybe
1306 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1307 If a cross compiler is detected then cross compile mode will be used." >&2
1308 elif test "x$build_alias" != "x$host_alias"; then
1309 cross_compiling=yes
1310 fi
1311fi
1312
1313ac_tool_prefix=
1314test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001317
a.rottmann84e63352003-03-24 09:42:16 +00001318
mlcreech94984912008-03-04 19:03:08 +00001319ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320ac_ls_di=`ls -di .` &&
1321ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322 { echo "$as_me: error: Working directory cannot be determined" >&2
1323 { (exit 1); exit 1; }; }
1324test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325 { echo "$as_me: error: pwd does not report name of working directory" >&2
1326 { (exit 1); exit 1; }; }
1327
1328
drh75897232000-05-29 14:26:00 +00001329# Find the source files, if location was not specified.
1330if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
mlcreech94984912008-03-04 19:03:08 +00001332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$0" ||
a.rottmann84e63352003-03-24 09:42:16 +00001334$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +00001335 X"$0" : 'X\(//\)[^/]' \| \
1336 X"$0" : 'X\(//\)$' \| \
mlcreech94984912008-03-04 19:03:08 +00001337 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +00001338echo X"$0" |
mlcreech94984912008-03-04 19:03:08 +00001339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\/\)[^/].*/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)$/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\).*/{
1352 s//\1/
1353 q
1354 }
1355 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001356 srcdir=$ac_confdir
mlcreech94984912008-03-04 19:03:08 +00001357 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001358 srcdir=..
1359 fi
1360else
1361 ac_srcdir_defaulted=no
1362fi
mlcreech94984912008-03-04 19:03:08 +00001363if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
drh71eb93e2001-09-28 01:34:43 +00001366 { (exit 1); exit 1; }; }
vapier7f19c022007-02-17 14:46:31 +00001367fi
mlcreech94984912008-03-04 19:03:08 +00001368ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369ac_abs_confdir=`(
1370 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
drh613a0fe2007-11-23 17:31:17 +00001371 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001372 pwd)`
1373# When building in place, set srcdir=.
1374if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1376fi
1377# Remove unnecessary trailing slashes from srcdir.
1378# Double slashes in file names in object file debugging info
1379# mess up M-x gdb in Emacs.
1380case $srcdir in
1381*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382esac
1383for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388done
drh75897232000-05-29 14:26:00 +00001389
drh71eb93e2001-09-28 01:34:43 +00001390#
1391# Report the --help message.
1392#
1393if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001396 cat <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001397\`configure' configures this package to adapt to many kinds of systems.
1398
1399Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402VAR=VALUE. See below for descriptions of some of the useful variables.
1403
1404Defaults for the options are specified in brackets.
1405
1406Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416
drh71eb93e2001-09-28 01:34:43 +00001417Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
a.rottmann964dbb12004-02-26 19:47:42 +00001419 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
a.rottmann964dbb12004-02-26 19:47:42 +00001421 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001422
1423By default, \`make install' will install all the files in
1424\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426for instance \`--prefix=\$HOME'.
1427
1428For better control, use the options below.
1429
1430Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
drh71eb93e2001-09-28 01:34:43 +00001434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
mlcreech94984912008-03-04 19:03:08 +00001440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001450_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001451
a.rottmann84e63352003-03-24 09:42:16 +00001452 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001453
1454System types:
1455 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001456 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1457_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001458fi
1459
1460if test -n "$ac_init_help"; then
1461
a.rottmann84e63352003-03-24 09:42:16 +00001462 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001463
1464Optional Features:
1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
mlcreech94984912008-03-04 19:03:08 +00001467 --enable-shared[=PKGS] build shared libraries [default=yes]
1468 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001469 --enable-fast-install[=PKGS]
1470 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001471 --disable-libtool-lock avoid locking (might break parallel builds)
drh94e4f822006-02-15 02:00:25 +00001472 --enable-threadsafe Support threadsafe operation
1473 --enable-cross-thread-connections
1474 Allow connection sharing across threads
1475 --enable-threads-override-locks
1476 Threads can override each others locks
1477 --enable-releasemode Support libtool link to release mode
1478 --enable-tempstore Use an in-ram database for temporary tables
1479 (never,no,yes,always)
1480 --disable-tcl do not build TCL extension
vapier7f19c022007-02-17 14:46:31 +00001481 --disable-readline disable readline support [default=detect]
drh94e4f822006-02-15 02:00:25 +00001482 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001483 --disable-amalgamation Disable the amalgamation and instead build all files
1484 separately (currently needed to build the test
1485 fixture)
mlcreecha4edab02008-03-06 04:14:17 +00001486 --enable-load-extension Enable loading of external extensions
drh71eb93e2001-09-28 01:34:43 +00001487
1488Optional Packages:
1489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1492 --with-pic try to use only PIC/non-PIC objects [default=use
1493 both]
mlcreech94984912008-03-04 19:03:08 +00001494 --with-tags[=TAGS] include additional configurations [automatic]
drh71eb93e2001-09-28 01:34:43 +00001495 --with-hints=FILE Read configuration options from FILE
drh94e4f822006-02-15 02:00:25 +00001496 --with-tcl=DIR directory containing tcl configuration
1497 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001498 --with-readline-lib specify readline library
1499 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001500
1501Some influential environment variables:
1502 CC C compiler command
1503 CFLAGS C compiler flags
1504 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1505 nonstandard directory <lib dir>
mlcreech94984912008-03-04 19:03:08 +00001506 LIBS libraries to pass to the linker, e.g. -l<library>
1507 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1508 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001509 CPP C preprocessor
a.rottmann9bc8b932004-02-29 15:18:31 +00001510 CXX C++ compiler command
1511 CXXFLAGS C++ compiler flags
1512 CXXCPP C++ preprocessor
1513 F77 Fortran 77 compiler command
1514 FFLAGS Fortran 77 compiler flags
drh71eb93e2001-09-28 01:34:43 +00001515
1516Use these variables to override the choices made by `configure' or to help
1517it to find libraries and programs with nonstandard names/locations.
1518
a.rottmann84e63352003-03-24 09:42:16 +00001519_ACEOF
mlcreech94984912008-03-04 19:03:08 +00001520ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001521fi
1522
1523if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
mlcreech94984912008-03-04 19:03:08 +00001526 test -d "$ac_dir" || continue
a.rottmann84e63352003-03-24 09:42:16 +00001527 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001528
mlcreech94984912008-03-04 19:03:08 +00001529case "$ac_dir" in
1530.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531*)
a.rottmann84e63352003-03-24 09:42:16 +00001532 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
mlcreech94984912008-03-04 19:03:08 +00001533 # A ".." for each directory in $ac_dir_suffix.
1534 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 esac ;;
1539esac
1540ac_abs_top_builddir=$ac_pwd
1541ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542# for backward compatibility:
1543ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001544
a.rottmann84e63352003-03-24 09:42:16 +00001545case $srcdir in
mlcreech94984912008-03-04 19:03:08 +00001546 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001547 ac_srcdir=.
mlcreech94984912008-03-04 19:03:08 +00001548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +00001551 ac_srcdir=$srcdir$ac_dir_suffix;
mlcreech94984912008-03-04 19:03:08 +00001552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1554 *) # Relative name.
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +00001558esac
mlcreech94984912008-03-04 19:03:08 +00001559ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +00001560
mlcreech94984912008-03-04 19:03:08 +00001561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for guested configure.
1563 if test -f "$ac_srcdir/configure.gnu"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566 elif test -f "$ac_srcdir/configure"; then
1567 echo &&
1568 $SHELL "$ac_srcdir/configure" --help=recursive
drh71eb93e2001-09-28 01:34:43 +00001569 else
a.rottmann84e63352003-03-24 09:42:16 +00001570 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
mlcreech94984912008-03-04 19:03:08 +00001571 fi || ac_status=$?
1572 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001573 done
1574fi
1575
mlcreech94984912008-03-04 19:03:08 +00001576test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001577if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001578 cat <<\_ACEOF
mlcreech94984912008-03-04 19:03:08 +00001579configure
1580generated by GNU Autoconf 2.61
drh71eb93e2001-09-28 01:34:43 +00001581
mlcreech94984912008-03-04 19:03:08 +00001582Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15832002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001584This configure script is free software; the Free Software Foundation
1585gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001586_ACEOF
mlcreech94984912008-03-04 19:03:08 +00001587 exit
drh71eb93e2001-09-28 01:34:43 +00001588fi
mlcreech94984912008-03-04 19:03:08 +00001589cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001590This file contains any messages produced by compilers while
1591running configure, to aid debugging if configure makes a mistake.
1592
1593It was created by $as_me, which was
mlcreech94984912008-03-04 19:03:08 +00001594generated by GNU Autoconf 2.61. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001595
1596 $ $0 $@
1597
a.rottmann84e63352003-03-24 09:42:16 +00001598_ACEOF
mlcreech94984912008-03-04 19:03:08 +00001599exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00001600{
1601cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001602## --------- ##
1603## Platform. ##
1604## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001605
1606hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1607uname -m = `(uname -m) 2>/dev/null || echo unknown`
1608uname -r = `(uname -r) 2>/dev/null || echo unknown`
1609uname -s = `(uname -s) 2>/dev/null || echo unknown`
1610uname -v = `(uname -v) 2>/dev/null || echo unknown`
1611
1612/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1613/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1614
1615/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1616/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1617/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
mlcreech94984912008-03-04 19:03:08 +00001618/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00001619/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1620/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1621/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1622
drh71eb93e2001-09-28 01:34:43 +00001623_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001624
1625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626for as_dir in $PATH
1627do
1628 IFS=$as_save_IFS
1629 test -z "$as_dir" && as_dir=.
1630 echo "PATH: $as_dir"
1631done
mlcreech94984912008-03-04 19:03:08 +00001632IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00001633
drh71eb93e2001-09-28 01:34:43 +00001634} >&5
1635
a.rottmann84e63352003-03-24 09:42:16 +00001636cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001637
a.rottmann84e63352003-03-24 09:42:16 +00001638
1639## ----------- ##
1640## Core tests. ##
1641## ----------- ##
1642
1643_ACEOF
1644
drh71eb93e2001-09-28 01:34:43 +00001645
1646# Keep a trace of the command line.
1647# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001648# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001649# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001650# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001651ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001652ac_configure_args0=
1653ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00001654ac_must_keep_next=false
1655for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001656do
a.rottmann84e63352003-03-24 09:42:16 +00001657 for ac_arg
1658 do
1659 case $ac_arg in
1660 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1662 | -silent | --silent | --silen | --sile | --sil)
1663 continue ;;
mlcreech94984912008-03-04 19:03:08 +00001664 *\'*)
a.rottmann84e63352003-03-24 09:42:16 +00001665 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1666 esac
1667 case $ac_pass in
1668 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1669 2)
1670 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1671 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00001672 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00001673 else
a.rottmann964dbb12004-02-26 19:47:42 +00001674 case $ac_arg in
1675 *=* | --config-cache | -C | -disable-* | --disable-* \
1676 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1677 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1678 | -with-* | --with-* | -without-* | --without-* | --x)
1679 case "$ac_configure_args0 " in
1680 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1681 esac
1682 ;;
1683 -* ) ac_must_keep_next=true ;;
1684 esac
a.rottmann84e63352003-03-24 09:42:16 +00001685 fi
mlcreech94984912008-03-04 19:03:08 +00001686 ac_configure_args="$ac_configure_args '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00001687 ;;
1688 esac
1689 done
drh71eb93e2001-09-28 01:34:43 +00001690done
a.rottmann84e63352003-03-24 09:42:16 +00001691$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1692$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001693
1694# When interrupted or exit'd, cleanup temporary files, and complete
1695# config.log. We remove comments because anyway the quotes in there
1696# would cause problems or look ugly.
mlcreech94984912008-03-04 19:03:08 +00001697# WARNING: Use '\'' to represent an apostrophe within the trap.
1698# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00001699trap 'exit_status=$?
1700 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001701 {
1702 echo
1703
1704 cat <<\_ASBOX
1705## ---------------- ##
1706## Cache variables. ##
1707## ---------------- ##
1708_ASBOX
1709 echo
1710 # The following way of writing the cache mishandles newlines in values,
mlcreech94984912008-03-04 19:03:08 +00001711(
1712 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1713 eval ac_val=\$$ac_var
1714 case $ac_val in #(
1715 *${as_nl}*)
1716 case $ac_var in #(
1717 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1718echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1719 esac
1720 case $ac_var in #(
1721 _ | IFS | as_nl) ;; #(
1722 *) $as_unset $ac_var ;;
1723 esac ;;
1724 esac
1725 done
drh71eb93e2001-09-28 01:34:43 +00001726 (set) 2>&1 |
mlcreech94984912008-03-04 19:03:08 +00001727 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1728 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00001729 sed -n \
mlcreech94984912008-03-04 19:03:08 +00001730 "s/'\''/'\''\\\\'\'''\''/g;
1731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1732 ;; #(
drh613a0fe2007-11-23 17:31:17 +00001733 *)
mlcreech94984912008-03-04 19:03:08 +00001734 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh613a0fe2007-11-23 17:31:17 +00001735 ;;
mlcreech94984912008-03-04 19:03:08 +00001736 esac |
1737 sort
1738)
a.rottmann84e63352003-03-24 09:42:16 +00001739 echo
1740
1741 cat <<\_ASBOX
1742## ----------------- ##
1743## Output variables. ##
1744## ----------------- ##
1745_ASBOX
1746 echo
1747 for ac_var in $ac_subst_vars
1748 do
mlcreech94984912008-03-04 19:03:08 +00001749 eval ac_val=\$$ac_var
1750 case $ac_val in
1751 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752 esac
1753 echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001754 done | sort
1755 echo
1756
1757 if test -n "$ac_subst_files"; then
1758 cat <<\_ASBOX
mlcreech94984912008-03-04 19:03:08 +00001759## ------------------- ##
1760## File substitutions. ##
1761## ------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00001762_ASBOX
1763 echo
1764 for ac_var in $ac_subst_files
1765 do
mlcreech94984912008-03-04 19:03:08 +00001766 eval ac_val=\$$ac_var
1767 case $ac_val in
1768 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1769 esac
1770 echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001771 done | sort
1772 echo
1773 fi
1774
1775 if test -s confdefs.h; then
1776 cat <<\_ASBOX
1777## ----------- ##
1778## confdefs.h. ##
1779## ----------- ##
1780_ASBOX
1781 echo
mlcreech94984912008-03-04 19:03:08 +00001782 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00001783 echo
1784 fi
1785 test "$ac_signal" != 0 &&
1786 echo "$as_me: caught signal $ac_signal"
1787 echo "$as_me: exit $exit_status"
1788 } >&5
mlcreech94984912008-03-04 19:03:08 +00001789 rm -f core *.core core.conftest.* &&
1790 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001791 exit $exit_status
mlcreech94984912008-03-04 19:03:08 +00001792' 0
drh71eb93e2001-09-28 01:34:43 +00001793for ac_signal in 1 2 13 15; do
1794 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1795done
1796ac_signal=0
1797
1798# confdefs.h avoids OS command line length limits that DEFS can exceed.
mlcreech94984912008-03-04 19:03:08 +00001799rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00001800
a.rottmann84e63352003-03-24 09:42:16 +00001801# Predefined preprocessor variables.
1802
1803cat >>confdefs.h <<_ACEOF
1804#define PACKAGE_NAME "$PACKAGE_NAME"
1805_ACEOF
1806
1807
1808cat >>confdefs.h <<_ACEOF
1809#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1810_ACEOF
1811
1812
1813cat >>confdefs.h <<_ACEOF
1814#define PACKAGE_VERSION "$PACKAGE_VERSION"
1815_ACEOF
1816
1817
1818cat >>confdefs.h <<_ACEOF
1819#define PACKAGE_STRING "$PACKAGE_STRING"
1820_ACEOF
1821
1822
1823cat >>confdefs.h <<_ACEOF
1824#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1825_ACEOF
1826
1827
drh71eb93e2001-09-28 01:34:43 +00001828# Let the site file select an alternate cache file if it wants to.
drh75897232000-05-29 14:26:00 +00001829# Prefer explicitly selected file to automatically selected ones.
mlcreech94984912008-03-04 19:03:08 +00001830if test -n "$CONFIG_SITE"; then
1831 set x "$CONFIG_SITE"
1832elif test "x$prefix" != xNONE; then
1833 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1834else
1835 set x "$ac_default_prefix/share/config.site" \
1836 "$ac_default_prefix/etc/config.site"
drh75897232000-05-29 14:26:00 +00001837fi
mlcreech94984912008-03-04 19:03:08 +00001838shift
1839for ac_site_file
1840do
drh75897232000-05-29 14:26:00 +00001841 if test -r "$ac_site_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001842 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001843echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001844 sed 's/^/| /' "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00001845 . "$ac_site_file"
1846 fi
1847done
1848
1849if test -r "$cache_file"; then
drh71eb93e2001-09-28 01:34:43 +00001850 # Some versions of bash will fail to source /dev/null (special
1851 # files actually), so we avoid doing that.
1852 if test -f "$cache_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001853 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001854echo "$as_me: loading cache $cache_file" >&6;}
1855 case $cache_file in
mlcreech94984912008-03-04 19:03:08 +00001856 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1857 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00001858 esac
1859 fi
drh75897232000-05-29 14:26:00 +00001860else
a.rottmann84e63352003-03-24 09:42:16 +00001861 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001862echo "$as_me: creating cache $cache_file" >&6;}
1863 >$cache_file
1864fi
1865
1866# Check that the precious variables saved in the cache have kept the same
1867# value.
1868ac_cache_corrupted=false
mlcreech94984912008-03-04 19:03:08 +00001869for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00001870 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1871 eval ac_new_set=\$ac_env_${ac_var}_set
mlcreech94984912008-03-04 19:03:08 +00001872 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1873 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00001874 case $ac_old_set,$ac_new_set in
1875 set,)
a.rottmann84e63352003-03-24 09:42:16 +00001876 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001877echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1878 ac_cache_corrupted=: ;;
1879 ,set)
a.rottmann84e63352003-03-24 09:42:16 +00001880 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001881echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1882 ac_cache_corrupted=: ;;
1883 ,);;
1884 *)
1885 if test "x$ac_old_val" != "x$ac_new_val"; then
a.rottmann964dbb12004-02-26 19:47:42 +00001886 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
drh71eb93e2001-09-28 01:34:43 +00001887echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001888 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001889echo "$as_me: former value: $ac_old_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001890 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001891echo "$as_me: current value: $ac_new_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001892 ac_cache_corrupted=:
drh71eb93e2001-09-28 01:34:43 +00001893 fi;;
1894 esac
a.rottmann84e63352003-03-24 09:42:16 +00001895 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00001896 if test "$ac_new_set" = set; then
1897 case $ac_new_val in
mlcreech94984912008-03-04 19:03:08 +00001898 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00001899 *) ac_arg=$ac_var=$ac_new_val ;;
1900 esac
1901 case " $ac_configure_args " in
1902 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1903 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00001904 esac
1905 fi
1906done
1907if $ac_cache_corrupted; then
a.rottmann84e63352003-03-24 09:42:16 +00001908 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
drh71eb93e2001-09-28 01:34:43 +00001909echo "$as_me: error: changes in the environment can compromise the build" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00001910 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
drh71eb93e2001-09-28 01:34:43 +00001911echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1912 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001913fi
1914
mlcreech94984912008-03-04 19:03:08 +00001915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
drh75897232000-05-29 14:26:00 +00001931ac_ext=c
drh75897232000-05-29 14:26:00 +00001932ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00001933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1935ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00001936
a.rottmann84e63352003-03-24 09:42:16 +00001937
1938
drh75897232000-05-29 14:26:00 +00001939# The following RCS revision string applies to configure.in
mlcreecha4edab02008-03-06 04:14:17 +00001940# $Revision: 1.47 $
drh75897232000-05-29 14:26:00 +00001941
1942#########
drh71eb93e2001-09-28 01:34:43 +00001943# Programs needed
drh75897232000-05-29 14:26:00 +00001944#
mlcreech94984912008-03-04 19:03:08 +00001945# Check whether --enable-shared was given.
drh71eb93e2001-09-28 01:34:43 +00001946if test "${enable_shared+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00001947 enableval=$enable_shared; p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001948 case $enableval in
1949 yes) enable_shared=yes ;;
1950 no) enable_shared=no ;;
1951 *)
1952 enable_shared=no
1953 # Look at the argument we got. We use all the common list separators.
1954 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1955 for pkg in $enableval; do
1956 IFS="$lt_save_ifs"
1957 if test "X$pkg" = "X$p"; then
1958 enable_shared=yes
1959 fi
1960 done
1961 IFS="$lt_save_ifs"
1962 ;;
1963 esac
drh71eb93e2001-09-28 01:34:43 +00001964else
1965 enable_shared=yes
mlcreech94984912008-03-04 19:03:08 +00001966fi
a.rottmann9bc8b932004-02-29 15:18:31 +00001967
mlcreech94984912008-03-04 19:03:08 +00001968
1969# Check whether --enable-static was given.
drh71eb93e2001-09-28 01:34:43 +00001970if test "${enable_static+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00001971 enableval=$enable_static; p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001972 case $enableval in
1973 yes) enable_static=yes ;;
1974 no) enable_static=no ;;
1975 *)
1976 enable_static=no
1977 # Look at the argument we got. We use all the common list separators.
1978 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1979 for pkg in $enableval; do
1980 IFS="$lt_save_ifs"
1981 if test "X$pkg" = "X$p"; then
1982 enable_static=yes
1983 fi
1984 done
1985 IFS="$lt_save_ifs"
1986 ;;
1987 esac
drh71eb93e2001-09-28 01:34:43 +00001988else
1989 enable_static=yes
mlcreech94984912008-03-04 19:03:08 +00001990fi
a.rottmann9bc8b932004-02-29 15:18:31 +00001991
mlcreech94984912008-03-04 19:03:08 +00001992
1993# Check whether --enable-fast-install was given.
drh71eb93e2001-09-28 01:34:43 +00001994if test "${enable_fast_install+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00001995 enableval=$enable_fast_install; p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001996 case $enableval in
1997 yes) enable_fast_install=yes ;;
1998 no) enable_fast_install=no ;;
1999 *)
2000 enable_fast_install=no
2001 # Look at the argument we got. We use all the common list separators.
2002 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2003 for pkg in $enableval; do
2004 IFS="$lt_save_ifs"
2005 if test "X$pkg" = "X$p"; then
2006 enable_fast_install=yes
2007 fi
2008 done
2009 IFS="$lt_save_ifs"
2010 ;;
2011 esac
drh71eb93e2001-09-28 01:34:43 +00002012else
2013 enable_fast_install=yes
mlcreech94984912008-03-04 19:03:08 +00002014fi
2015
a.rottmann9bc8b932004-02-29 15:18:31 +00002016
drh71eb93e2001-09-28 01:34:43 +00002017ac_aux_dir=
mlcreech94984912008-03-04 19:03:08 +00002018for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2019 if test -f "$ac_dir/install-sh"; then
drh71eb93e2001-09-28 01:34:43 +00002020 ac_aux_dir=$ac_dir
2021 ac_install_sh="$ac_aux_dir/install-sh -c"
2022 break
mlcreech94984912008-03-04 19:03:08 +00002023 elif test -f "$ac_dir/install.sh"; then
drh71eb93e2001-09-28 01:34:43 +00002024 ac_aux_dir=$ac_dir
2025 ac_install_sh="$ac_aux_dir/install.sh -c"
2026 break
mlcreech94984912008-03-04 19:03:08 +00002027 elif test -f "$ac_dir/shtool"; then
drh71eb93e2001-09-28 01:34:43 +00002028 ac_aux_dir=$ac_dir
2029 ac_install_sh="$ac_aux_dir/shtool install -c"
2030 break
2031 fi
2032done
2033if test -z "$ac_aux_dir"; then
mlcreech94984912008-03-04 19:03:08 +00002034 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2035echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002036 { (exit 1); exit 1; }; }
2037fi
mlcreech94984912008-03-04 19:03:08 +00002038
2039# These three variables are undocumented and unsupported,
2040# and are intended to be withdrawn in a future Autoconf release.
2041# They can cause serious problems if a builder's source tree is in a directory
2042# whose full name contains unusual characters.
2043ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2044ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2045ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2046
drh71eb93e2001-09-28 01:34:43 +00002047
2048# Make sure we can run config.sub.
mlcreech94984912008-03-04 19:03:08 +00002049$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2050 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2051echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002052 { (exit 1); exit 1; }; }
2053
mlcreech94984912008-03-04 19:03:08 +00002054{ echo "$as_me:$LINENO: checking build system type" >&5
2055echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002056if test "${ac_cv_build+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2058else
mlcreech94984912008-03-04 19:03:08 +00002059 ac_build_alias=$build_alias
2060test "x$ac_build_alias" = x &&
2061 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2062test "x$ac_build_alias" = x &&
a.rottmann84e63352003-03-24 09:42:16 +00002063 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
drh71eb93e2001-09-28 01:34:43 +00002064echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2065 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00002066ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2067 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2068echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002069 { (exit 1); exit 1; }; }
2070
2071fi
mlcreech94984912008-03-04 19:03:08 +00002072{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2073echo "${ECHO_T}$ac_cv_build" >&6; }
2074case $ac_cv_build in
2075*-*-*) ;;
2076*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2077echo "$as_me: error: invalid value of canonical build" >&2;}
2078 { (exit 1); exit 1; }; };;
2079esac
drh71eb93e2001-09-28 01:34:43 +00002080build=$ac_cv_build
mlcreech94984912008-03-04 19:03:08 +00002081ac_save_IFS=$IFS; IFS='-'
2082set x $ac_cv_build
2083shift
2084build_cpu=$1
2085build_vendor=$2
2086shift; shift
2087# Remember, the first character of IFS is used to create $*,
2088# except with old shells:
2089build_os=$*
2090IFS=$ac_save_IFS
2091case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002092
a.rottmann84e63352003-03-24 09:42:16 +00002093
mlcreech94984912008-03-04 19:03:08 +00002094{ echo "$as_me:$LINENO: checking host system type" >&5
2095echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002096if test "${ac_cv_host+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098else
mlcreech94984912008-03-04 19:03:08 +00002099 if test "x$host_alias" = x; then
2100 ac_cv_host=$ac_cv_build
2101else
2102 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2103 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2104echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002105 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00002106fi
drh71eb93e2001-09-28 01:34:43 +00002107
2108fi
mlcreech94984912008-03-04 19:03:08 +00002109{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2110echo "${ECHO_T}$ac_cv_host" >&6; }
2111case $ac_cv_host in
2112*-*-*) ;;
2113*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2114echo "$as_me: error: invalid value of canonical host" >&2;}
2115 { (exit 1); exit 1; }; };;
2116esac
drh71eb93e2001-09-28 01:34:43 +00002117host=$ac_cv_host
mlcreech94984912008-03-04 19:03:08 +00002118ac_save_IFS=$IFS; IFS='-'
2119set x $ac_cv_host
2120shift
2121host_cpu=$1
2122host_vendor=$2
2123shift; shift
2124# Remember, the first character of IFS is used to create $*,
2125# except with old shells:
2126host_os=$*
2127IFS=$ac_save_IFS
2128case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002129
a.rottmann84e63352003-03-24 09:42:16 +00002130
drh71eb93e2001-09-28 01:34:43 +00002131ac_ext=c
2132ac_cpp='$CPP $CPPFLAGS'
2133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2135ac_compiler_gnu=$ac_cv_c_compiler_gnu
2136if test -n "$ac_tool_prefix"; then
2137 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2138set dummy ${ac_tool_prefix}gcc; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00002139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002141if test "${ac_cv_prog_CC+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2143else
2144 if test -n "$CC"; then
2145 ac_cv_prog_CC="$CC" # Let the user override the test.
2146else
a.rottmann84e63352003-03-24 09:42:16 +00002147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148for as_dir in $PATH
2149do
2150 IFS=$as_save_IFS
2151 test -z "$as_dir" && as_dir=.
2152 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002154 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156 break 2
2157 fi
2158done
drh71eb93e2001-09-28 01:34:43 +00002159done
mlcreech94984912008-03-04 19:03:08 +00002160IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002161
2162fi
2163fi
2164CC=$ac_cv_prog_CC
2165if test -n "$CC"; then
mlcreech94984912008-03-04 19:03:08 +00002166 { echo "$as_me:$LINENO: result: $CC" >&5
2167echo "${ECHO_T}$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002168else
mlcreech94984912008-03-04 19:03:08 +00002169 { echo "$as_me:$LINENO: result: no" >&5
2170echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002171fi
2172
mlcreech94984912008-03-04 19:03:08 +00002173
drh71eb93e2001-09-28 01:34:43 +00002174fi
2175if test -z "$ac_cv_prog_CC"; then
2176 ac_ct_CC=$CC
2177 # Extract the first word of "gcc", so it can be a program name with args.
2178set dummy gcc; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00002179{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002181if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2183else
2184 if test -n "$ac_ct_CC"; then
2185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2186else
a.rottmann84e63352003-03-24 09:42:16 +00002187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188for as_dir in $PATH
2189do
2190 IFS=$as_save_IFS
2191 test -z "$as_dir" && as_dir=.
2192 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002194 ac_cv_prog_ac_ct_CC="gcc"
2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196 break 2
2197 fi
2198done
drh71eb93e2001-09-28 01:34:43 +00002199done
mlcreech94984912008-03-04 19:03:08 +00002200IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002201
2202fi
2203fi
2204ac_ct_CC=$ac_cv_prog_ac_ct_CC
2205if test -n "$ac_ct_CC"; then
mlcreech94984912008-03-04 19:03:08 +00002206 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2207echo "${ECHO_T}$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002208else
mlcreech94984912008-03-04 19:03:08 +00002209 { echo "$as_me:$LINENO: result: no" >&5
2210echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002211fi
2212
mlcreech94984912008-03-04 19:03:08 +00002213 if test "x$ac_ct_CC" = x; then
2214 CC=""
2215 else
2216 case $cross_compiling:$ac_tool_warned in
2217yes:)
2218{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2219whose name does not start with the host triplet. If you think this
2220configuration is useful to you, please write to autoconf@gnu.org." >&5
2221echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2222whose name does not start with the host triplet. If you think this
2223configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2224ac_tool_warned=yes ;;
2225esac
2226 CC=$ac_ct_CC
2227 fi
drh71eb93e2001-09-28 01:34:43 +00002228else
2229 CC="$ac_cv_prog_CC"
2230fi
2231
2232if test -z "$CC"; then
mlcreech94984912008-03-04 19:03:08 +00002233 if test -n "$ac_tool_prefix"; then
2234 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002235set dummy ${ac_tool_prefix}cc; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00002236{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002238if test "${ac_cv_prog_CC+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2240else
2241 if test -n "$CC"; then
2242 ac_cv_prog_CC="$CC" # Let the user override the test.
2243else
a.rottmann84e63352003-03-24 09:42:16 +00002244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245for as_dir in $PATH
2246do
2247 IFS=$as_save_IFS
2248 test -z "$as_dir" && as_dir=.
2249 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002251 ac_cv_prog_CC="${ac_tool_prefix}cc"
2252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253 break 2
2254 fi
2255done
drh71eb93e2001-09-28 01:34:43 +00002256done
mlcreech94984912008-03-04 19:03:08 +00002257IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002258
2259fi
2260fi
2261CC=$ac_cv_prog_CC
2262if test -n "$CC"; then
mlcreech94984912008-03-04 19:03:08 +00002263 { echo "$as_me:$LINENO: result: $CC" >&5
2264echo "${ECHO_T}$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002265else
mlcreech94984912008-03-04 19:03:08 +00002266 { echo "$as_me:$LINENO: result: no" >&5
2267echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002268fi
2269
mlcreech94984912008-03-04 19:03:08 +00002270
a.rottmann84e63352003-03-24 09:42:16 +00002271 fi
drh71eb93e2001-09-28 01:34:43 +00002272fi
2273if test -z "$CC"; then
2274 # Extract the first word of "cc", so it can be a program name with args.
2275set dummy cc; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00002276{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002278if test "${ac_cv_prog_CC+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2280else
2281 if test -n "$CC"; then
2282 ac_cv_prog_CC="$CC" # Let the user override the test.
2283else
2284 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286for as_dir in $PATH
2287do
2288 IFS=$as_save_IFS
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002292 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2293 ac_prog_rejected=yes
2294 continue
2295 fi
2296 ac_cv_prog_CC="cc"
2297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2298 break 2
2299 fi
2300done
drh71eb93e2001-09-28 01:34:43 +00002301done
mlcreech94984912008-03-04 19:03:08 +00002302IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002303
2304if test $ac_prog_rejected = yes; then
2305 # We found a bogon in the path, so make sure we never use it.
2306 set dummy $ac_cv_prog_CC
2307 shift
2308 if test $# != 0; then
2309 # We chose a different compiler from the bogus one.
2310 # However, it has the same basename, so the bogon will be chosen
2311 # first if we set CC to just the basename; use the full file name.
2312 shift
a.rottmann84e63352003-03-24 09:42:16 +00002313 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002314 fi
2315fi
2316fi
2317fi
2318CC=$ac_cv_prog_CC
2319if test -n "$CC"; then
mlcreech94984912008-03-04 19:03:08 +00002320 { echo "$as_me:$LINENO: result: $CC" >&5
2321echo "${ECHO_T}$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002322else
mlcreech94984912008-03-04 19:03:08 +00002323 { echo "$as_me:$LINENO: result: no" >&5
2324echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002325fi
2326
mlcreech94984912008-03-04 19:03:08 +00002327
drh71eb93e2001-09-28 01:34:43 +00002328fi
2329if test -z "$CC"; then
2330 if test -n "$ac_tool_prefix"; then
mlcreech94984912008-03-04 19:03:08 +00002331 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002332 do
2333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2334set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00002335{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002337if test "${ac_cv_prog_CC+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2339else
2340 if test -n "$CC"; then
2341 ac_cv_prog_CC="$CC" # Let the user override the test.
2342else
a.rottmann84e63352003-03-24 09:42:16 +00002343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344for as_dir in $PATH
2345do
2346 IFS=$as_save_IFS
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002350 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 break 2
2353 fi
2354done
drh71eb93e2001-09-28 01:34:43 +00002355done
mlcreech94984912008-03-04 19:03:08 +00002356IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002357
2358fi
2359fi
2360CC=$ac_cv_prog_CC
2361if test -n "$CC"; then
mlcreech94984912008-03-04 19:03:08 +00002362 { echo "$as_me:$LINENO: result: $CC" >&5
2363echo "${ECHO_T}$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002364else
mlcreech94984912008-03-04 19:03:08 +00002365 { echo "$as_me:$LINENO: result: no" >&5
2366echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002367fi
2368
mlcreech94984912008-03-04 19:03:08 +00002369
drh71eb93e2001-09-28 01:34:43 +00002370 test -n "$CC" && break
2371 done
2372fi
2373if test -z "$CC"; then
2374 ac_ct_CC=$CC
mlcreech94984912008-03-04 19:03:08 +00002375 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002376do
2377 # Extract the first word of "$ac_prog", so it can be a program name with args.
2378set dummy $ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00002379{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002381if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2383else
2384 if test -n "$ac_ct_CC"; then
2385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2386else
a.rottmann84e63352003-03-24 09:42:16 +00002387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388for as_dir in $PATH
2389do
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002394 ac_cv_prog_ac_ct_CC="$ac_prog"
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 break 2
2397 fi
2398done
drh71eb93e2001-09-28 01:34:43 +00002399done
mlcreech94984912008-03-04 19:03:08 +00002400IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002401
2402fi
2403fi
2404ac_ct_CC=$ac_cv_prog_ac_ct_CC
2405if test -n "$ac_ct_CC"; then
mlcreech94984912008-03-04 19:03:08 +00002406 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2407echo "${ECHO_T}$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002408else
mlcreech94984912008-03-04 19:03:08 +00002409 { echo "$as_me:$LINENO: result: no" >&5
2410echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002411fi
2412
mlcreech94984912008-03-04 19:03:08 +00002413
drh71eb93e2001-09-28 01:34:43 +00002414 test -n "$ac_ct_CC" && break
2415done
2416
mlcreech94984912008-03-04 19:03:08 +00002417 if test "x$ac_ct_CC" = x; then
2418 CC=""
2419 else
2420 case $cross_compiling:$ac_tool_warned in
2421yes:)
2422{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2423whose name does not start with the host triplet. If you think this
2424configuration is useful to you, please write to autoconf@gnu.org." >&5
2425echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2426whose name does not start with the host triplet. If you think this
2427configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2428ac_tool_warned=yes ;;
2429esac
2430 CC=$ac_ct_CC
2431 fi
drh71eb93e2001-09-28 01:34:43 +00002432fi
2433
2434fi
2435
a.rottmann84e63352003-03-24 09:42:16 +00002436
2437test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2438See \`config.log' for more details." >&5
2439echo "$as_me: error: no acceptable C compiler found in \$PATH
2440See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002441 { (exit 1); exit 1; }; }
2442
2443# Provide some information about the compiler.
mlcreech94984912008-03-04 19:03:08 +00002444echo "$as_me:$LINENO: checking for C compiler version" >&5
drh71eb93e2001-09-28 01:34:43 +00002445ac_compiler=`set X $ac_compile; echo $2`
mlcreech94984912008-03-04 19:03:08 +00002446{ (ac_try="$ac_compiler --version >&5"
2447case "(($ac_try" in
2448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449 *) ac_try_echo=$ac_try;;
2450esac
2451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2452 (eval "$ac_compiler --version >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002453 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002455 (exit $ac_status); }
mlcreech94984912008-03-04 19:03:08 +00002456{ (ac_try="$ac_compiler -v >&5"
2457case "(($ac_try" in
2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459 *) ac_try_echo=$ac_try;;
2460esac
2461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2462 (eval "$ac_compiler -v >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002463 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002465 (exit $ac_status); }
mlcreech94984912008-03-04 19:03:08 +00002466{ (ac_try="$ac_compiler -V >&5"
2467case "(($ac_try" in
2468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469 *) ac_try_echo=$ac_try;;
2470esac
2471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2472 (eval "$ac_compiler -V >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002473 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002475 (exit $ac_status); }
2476
2477cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002478/* confdefs.h. */
2479_ACEOF
2480cat confdefs.h >>conftest.$ac_ext
2481cat >>conftest.$ac_ext <<_ACEOF
2482/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002483
2484int
2485main ()
2486{
2487
2488 ;
2489 return 0;
2490}
2491_ACEOF
2492ac_clean_files_save=$ac_clean_files
a.rottmann84e63352003-03-24 09:42:16 +00002493ac_clean_files="$ac_clean_files a.out a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002494# Try to create an executable without -o first, disregard a.out.
2495# It will help us diagnose broken compilers, and finding out an intuition
2496# of exeext.
mlcreech94984912008-03-04 19:03:08 +00002497{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2498echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002499ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
mlcreech94984912008-03-04 19:03:08 +00002500#
2501# List of possible output files, starting from the most likely.
2502# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2503# only as a last resort. b.out is created by i960 compilers.
2504ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2505#
2506# The IRIX 6 linker writes into existing files which may not be
2507# executable, retaining their permissions. Remove them first so a
2508# subsequent execution test works.
2509ac_rmfiles=
2510for ac_file in $ac_files
2511do
2512 case $ac_file in
2513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2514 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2515 esac
2516done
2517rm -f $ac_rmfiles
2518
2519if { (ac_try="$ac_link_default"
2520case "(($ac_try" in
2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522 *) ac_try_echo=$ac_try;;
2523esac
2524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525 (eval "$ac_link_default") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002526 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002528 (exit $ac_status); }; then
mlcreech94984912008-03-04 19:03:08 +00002529 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2530# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2531# in a Makefile. We should not override ac_cv_exeext if it was cached,
2532# so that the user can short-circuit this test for compilers unknown to
2533# Autoconf.
2534for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002535do
2536 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002537 case $ac_file in
mlcreech94984912008-03-04 19:03:08 +00002538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002539 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002540 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002541 # We found the default executable, but exeext='' is most
2542 # certainly right.
2543 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002544 *.* )
mlcreech94984912008-03-04 19:03:08 +00002545 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2546 then :; else
2547 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2548 fi
2549 # We set ac_cv_exeext here because the later test for it is not
2550 # safe: cross compilers may not add the suffix if given an `-o'
2551 # argument, so we may need to know it at that point already.
2552 # Even if this section looks crufty: it has the advantage of
2553 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002554 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002555 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002556 break;;
drh71eb93e2001-09-28 01:34:43 +00002557 esac
2558done
mlcreech94984912008-03-04 19:03:08 +00002559test "$ac_cv_exeext" = no && ac_cv_exeext=
2560
drh71eb93e2001-09-28 01:34:43 +00002561else
mlcreech94984912008-03-04 19:03:08 +00002562 ac_file=''
2563fi
2564
2565{ echo "$as_me:$LINENO: result: $ac_file" >&5
2566echo "${ECHO_T}$ac_file" >&6; }
2567if test -z "$ac_file"; then
drh71eb93e2001-09-28 01:34:43 +00002568 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002569sed 's/^/| /' conftest.$ac_ext >&5
2570
2571{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2572See \`config.log' for more details." >&5
2573echo "$as_me: error: C compiler cannot create executables
2574See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002575 { (exit 77); exit 77; }; }
2576fi
2577
2578ac_exeext=$ac_cv_exeext
drh71eb93e2001-09-28 01:34:43 +00002579
mlcreech94984912008-03-04 19:03:08 +00002580# Check that the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002581# the compiler is broken, or we cross compile.
mlcreech94984912008-03-04 19:03:08 +00002582{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2583echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002584# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2585# If not cross compiling, check that we can run a simple program.
2586if test "$cross_compiling" != yes; then
2587 if { ac_try='./$ac_file'
mlcreech94984912008-03-04 19:03:08 +00002588 { (case "(($ac_try" in
2589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590 *) ac_try_echo=$ac_try;;
2591esac
2592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593 (eval "$ac_try") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002594 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002596 (exit $ac_status); }; }; then
2597 cross_compiling=no
2598 else
2599 if test "$cross_compiling" = maybe; then
2600 cross_compiling=yes
2601 else
a.rottmann84e63352003-03-24 09:42:16 +00002602 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2603If you meant to cross compile, use \`--host'.
2604See \`config.log' for more details." >&5
drh71eb93e2001-09-28 01:34:43 +00002605echo "$as_me: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002606If you meant to cross compile, use \`--host'.
2607See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002608 { (exit 1); exit 1; }; }
2609 fi
2610 fi
2611fi
mlcreech94984912008-03-04 19:03:08 +00002612{ echo "$as_me:$LINENO: result: yes" >&5
2613echo "${ECHO_T}yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002614
a.rottmann84e63352003-03-24 09:42:16 +00002615rm -f a.out a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002616ac_clean_files=$ac_clean_files_save
mlcreech94984912008-03-04 19:03:08 +00002617# Check that the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002618# the compiler is broken, or we cross compile.
mlcreech94984912008-03-04 19:03:08 +00002619{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2620echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2621{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2622echo "${ECHO_T}$cross_compiling" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002623
mlcreech94984912008-03-04 19:03:08 +00002624{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2625echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2626if { (ac_try="$ac_link"
2627case "(($ac_try" in
2628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2629 *) ac_try_echo=$ac_try;;
2630esac
2631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2632 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002633 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002635 (exit $ac_status); }; then
2636 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2637# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2638# work properly (i.e., refer to `conftest.exe'), while it won't with
2639# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002640for ac_file in conftest.exe conftest conftest.*; do
2641 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002642 case $ac_file in
mlcreech94984912008-03-04 19:03:08 +00002643 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002644 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00002645 break;;
drh71eb93e2001-09-28 01:34:43 +00002646 * ) break;;
2647 esac
2648done
2649else
a.rottmann84e63352003-03-24 09:42:16 +00002650 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2651See \`config.log' for more details." >&5
2652echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2653See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002654 { (exit 1); exit 1; }; }
2655fi
2656
2657rm -f conftest$ac_cv_exeext
mlcreech94984912008-03-04 19:03:08 +00002658{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2659echo "${ECHO_T}$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002660
2661rm -f conftest.$ac_ext
2662EXEEXT=$ac_cv_exeext
2663ac_exeext=$EXEEXT
mlcreech94984912008-03-04 19:03:08 +00002664{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2665echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002666if test "${ac_cv_objext+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2668else
2669 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002670/* confdefs.h. */
2671_ACEOF
2672cat confdefs.h >>conftest.$ac_ext
2673cat >>conftest.$ac_ext <<_ACEOF
2674/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002675
2676int
2677main ()
2678{
2679
2680 ;
2681 return 0;
2682}
2683_ACEOF
2684rm -f conftest.o conftest.obj
mlcreech94984912008-03-04 19:03:08 +00002685if { (ac_try="$ac_compile"
2686case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2689esac
2690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002692 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002694 (exit $ac_status); }; then
mlcreech94984912008-03-04 19:03:08 +00002695 for ac_file in conftest.o conftest.obj conftest.*; do
2696 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00002697 case $ac_file in
mlcreech94984912008-03-04 19:03:08 +00002698 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
drh71eb93e2001-09-28 01:34:43 +00002699 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2700 break;;
2701 esac
2702done
2703else
2704 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002705sed 's/^/| /' conftest.$ac_ext >&5
2706
2707{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2708See \`config.log' for more details." >&5
2709echo "$as_me: error: cannot compute suffix of object files: cannot compile
2710See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002711 { (exit 1); exit 1; }; }
2712fi
2713
2714rm -f conftest.$ac_cv_objext conftest.$ac_ext
2715fi
mlcreech94984912008-03-04 19:03:08 +00002716{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2717echo "${ECHO_T}$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002718OBJEXT=$ac_cv_objext
2719ac_objext=$OBJEXT
mlcreech94984912008-03-04 19:03:08 +00002720{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2721echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002722if test "${ac_cv_c_compiler_gnu+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2724else
2725 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002726/* confdefs.h. */
2727_ACEOF
2728cat confdefs.h >>conftest.$ac_ext
2729cat >>conftest.$ac_ext <<_ACEOF
2730/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002731
2732int
2733main ()
2734{
2735#ifndef __GNUC__
2736 choke me
2737#endif
2738
2739 ;
2740 return 0;
2741}
2742_ACEOF
2743rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00002744if { (ac_try="$ac_compile"
2745case "(($ac_try" in
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2748esac
2749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750 (eval "$ac_compile") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002751 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002752 grep -v '^ *+' conftest.er1 >conftest.err
2753 rm -f conftest.er1
2754 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00002756 (exit $ac_status); } && {
2757 test -z "$ac_c_werror_flag" ||
2758 test ! -s conftest.err
2759 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002760 ac_compiler_gnu=yes
2761else
2762 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002763sed 's/^/| /' conftest.$ac_ext >&5
2764
mlcreech94984912008-03-04 19:03:08 +00002765 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00002766fi
mlcreech94984912008-03-04 19:03:08 +00002767
2768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002769ac_cv_c_compiler_gnu=$ac_compiler_gnu
2770
2771fi
mlcreech94984912008-03-04 19:03:08 +00002772{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2773echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002774GCC=`test $ac_compiler_gnu = yes && echo yes`
2775ac_test_CFLAGS=${CFLAGS+set}
2776ac_save_CFLAGS=$CFLAGS
mlcreech94984912008-03-04 19:03:08 +00002777{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2778echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002779if test "${ac_cv_prog_cc_g+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2781else
mlcreech94984912008-03-04 19:03:08 +00002782 ac_save_c_werror_flag=$ac_c_werror_flag
2783 ac_c_werror_flag=yes
2784 ac_cv_prog_cc_g=no
2785 CFLAGS="-g"
2786 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002787/* confdefs.h. */
2788_ACEOF
2789cat confdefs.h >>conftest.$ac_ext
2790cat >>conftest.$ac_ext <<_ACEOF
2791/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002792
2793int
2794main ()
2795{
2796
2797 ;
2798 return 0;
2799}
2800_ACEOF
2801rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00002802if { (ac_try="$ac_compile"
2803case "(($ac_try" in
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2806esac
2807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808 (eval "$ac_compile") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002809 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002810 grep -v '^ *+' conftest.er1 >conftest.err
2811 rm -f conftest.er1
2812 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00002814 (exit $ac_status); } && {
2815 test -z "$ac_c_werror_flag" ||
2816 test ! -s conftest.err
2817 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002818 ac_cv_prog_cc_g=yes
2819else
2820 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002821sed 's/^/| /' conftest.$ac_ext >&5
2822
mlcreech94984912008-03-04 19:03:08 +00002823 CFLAGS=""
2824 cat >conftest.$ac_ext <<_ACEOF
2825/* confdefs.h. */
2826_ACEOF
2827cat confdefs.h >>conftest.$ac_ext
2828cat >>conftest.$ac_ext <<_ACEOF
2829/* end confdefs.h. */
2830
2831int
2832main ()
2833{
2834
2835 ;
2836 return 0;
2837}
2838_ACEOF
2839rm -f conftest.$ac_objext
2840if { (ac_try="$ac_compile"
2841case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2844esac
2845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2846 (eval "$ac_compile") 2>conftest.er1
2847 ac_status=$?
2848 grep -v '^ *+' conftest.er1 >conftest.err
2849 rm -f conftest.er1
2850 cat conftest.err >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); } && {
2853 test -z "$ac_c_werror_flag" ||
2854 test ! -s conftest.err
2855 } && test -s conftest.$ac_objext; then
2856 :
2857else
2858 echo "$as_me: failed program was:" >&5
2859sed 's/^/| /' conftest.$ac_ext >&5
2860
2861 ac_c_werror_flag=$ac_save_c_werror_flag
2862 CFLAGS="-g"
2863 cat >conftest.$ac_ext <<_ACEOF
2864/* confdefs.h. */
2865_ACEOF
2866cat confdefs.h >>conftest.$ac_ext
2867cat >>conftest.$ac_ext <<_ACEOF
2868/* end confdefs.h. */
2869
2870int
2871main ()
2872{
2873
2874 ;
2875 return 0;
2876}
2877_ACEOF
2878rm -f conftest.$ac_objext
2879if { (ac_try="$ac_compile"
2880case "(($ac_try" in
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2883esac
2884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885 (eval "$ac_compile") 2>conftest.er1
2886 ac_status=$?
2887 grep -v '^ *+' conftest.er1 >conftest.err
2888 rm -f conftest.er1
2889 cat conftest.err >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } && {
2892 test -z "$ac_c_werror_flag" ||
2893 test ! -s conftest.err
2894 } && test -s conftest.$ac_objext; then
2895 ac_cv_prog_cc_g=yes
2896else
2897 echo "$as_me: failed program was:" >&5
2898sed 's/^/| /' conftest.$ac_ext >&5
2899
2900
drh71eb93e2001-09-28 01:34:43 +00002901fi
mlcreech94984912008-03-04 19:03:08 +00002902
2903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002904fi
mlcreech94984912008-03-04 19:03:08 +00002905
2906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907fi
2908
2909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 ac_c_werror_flag=$ac_save_c_werror_flag
2911fi
2912{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2913echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002914if test "$ac_test_CFLAGS" = set; then
2915 CFLAGS=$ac_save_CFLAGS
2916elif test $ac_cv_prog_cc_g = yes; then
2917 if test "$GCC" = yes; then
2918 CFLAGS="-g -O2"
2919 else
2920 CFLAGS="-g"
2921 fi
2922else
2923 if test "$GCC" = yes; then
2924 CFLAGS="-O2"
2925 else
2926 CFLAGS=
2927 fi
2928fi
mlcreech94984912008-03-04 19:03:08 +00002929{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2930echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2931if test "${ac_cv_prog_cc_c89+set}" = set; then
a.rottmann84e63352003-03-24 09:42:16 +00002932 echo $ECHO_N "(cached) $ECHO_C" >&6
2933else
mlcreech94984912008-03-04 19:03:08 +00002934 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00002935ac_save_CC=$CC
2936cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002937/* confdefs.h. */
2938_ACEOF
2939cat confdefs.h >>conftest.$ac_ext
2940cat >>conftest.$ac_ext <<_ACEOF
2941/* end confdefs.h. */
2942#include <stdarg.h>
2943#include <stdio.h>
2944#include <sys/types.h>
2945#include <sys/stat.h>
2946/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2947struct buf { int x; };
2948FILE * (*rcsopen) (struct buf *, struct stat *, int);
2949static char *e (p, i)
2950 char **p;
2951 int i;
2952{
2953 return p[i];
2954}
2955static char *f (char * (*g) (char **, int), char **p, ...)
2956{
2957 char *s;
2958 va_list v;
2959 va_start (v,p);
2960 s = g (p, va_arg (v,int));
2961 va_end (v);
2962 return s;
2963}
a.rottmann964dbb12004-02-26 19:47:42 +00002964
2965/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2966 function prototypes and stuff, but not '\xHH' hex character constants.
2967 These don't provoke an error unfortunately, instead are silently treated
mlcreech94984912008-03-04 19:03:08 +00002968 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00002969 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2970 array size at least. It's necessary to write '\x00'==0 to get something
mlcreech94984912008-03-04 19:03:08 +00002971 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00002972int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2973
mlcreech94984912008-03-04 19:03:08 +00002974/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2975 inside strings and character constants. */
2976#define FOO(x) 'x'
2977int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2978
a.rottmann84e63352003-03-24 09:42:16 +00002979int test (int i, double x);
2980struct s1 {int (*f) (int a);};
2981struct s2 {int (*f) (double a);};
2982int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2983int argc;
2984char **argv;
2985int
2986main ()
2987{
2988return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2989 ;
2990 return 0;
2991}
2992_ACEOF
mlcreech94984912008-03-04 19:03:08 +00002993for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2994 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00002995do
2996 CC="$ac_save_CC $ac_arg"
2997 rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00002998if { (ac_try="$ac_compile"
2999case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002esac
3003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3004 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003005 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003006 grep -v '^ *+' conftest.er1 >conftest.err
3007 rm -f conftest.er1
3008 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00003010 (exit $ac_status); } && {
3011 test -z "$ac_c_werror_flag" ||
3012 test ! -s conftest.err
3013 } && test -s conftest.$ac_objext; then
3014 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003015else
3016 echo "$as_me: failed program was:" >&5
3017sed 's/^/| /' conftest.$ac_ext >&5
3018
mlcreech94984912008-03-04 19:03:08 +00003019
a.rottmann84e63352003-03-24 09:42:16 +00003020fi
mlcreech94984912008-03-04 19:03:08 +00003021
3022rm -f core conftest.err conftest.$ac_objext
3023 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003024done
mlcreech94984912008-03-04 19:03:08 +00003025rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003026CC=$ac_save_CC
3027
3028fi
mlcreech94984912008-03-04 19:03:08 +00003029# AC_CACHE_VAL
3030case "x$ac_cv_prog_cc_c89" in
3031 x)
3032 { echo "$as_me:$LINENO: result: none needed" >&5
3033echo "${ECHO_T}none needed" >&6; } ;;
3034 xno)
3035 { echo "$as_me:$LINENO: result: unsupported" >&5
3036echo "${ECHO_T}unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003037 *)
mlcreech94984912008-03-04 19:03:08 +00003038 CC="$CC $ac_cv_prog_cc_c89"
3039 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3040echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003041esac
3042
a.rottmann84e63352003-03-24 09:42:16 +00003043
drh71eb93e2001-09-28 01:34:43 +00003044ac_ext=c
3045ac_cpp='$CPP $CPPFLAGS'
3046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3048ac_compiler_gnu=$ac_cv_c_compiler_gnu
3049
mlcreech94984912008-03-04 19:03:08 +00003050{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3051echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003052if test "${lt_cv_path_SED+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3054else
3055 # Loop through the user's path and test for sed and gsed.
3056# Then use that list of sed's as ones to test for truncation.
3057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058for as_dir in $PATH
3059do
3060 IFS=$as_save_IFS
3061 test -z "$as_dir" && as_dir=.
3062 for lt_ac_prog in sed gsed; do
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3065 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3066 fi
3067 done
3068 done
3069done
3070lt_ac_max=0
3071lt_ac_count=0
3072# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3073# along with /bin/sed that truncates output.
3074for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
vapier7f19c022007-02-17 14:46:31 +00003075 test ! -f $lt_ac_sed && continue
a.rottmann9bc8b932004-02-29 15:18:31 +00003076 cat /dev/null > conftest.in
3077 lt_ac_count=0
3078 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3079 # Check for GNU sed and select it if it is found.
3080 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3081 lt_cv_path_SED=$lt_ac_sed
3082 break
3083 fi
3084 while true; do
3085 cat conftest.in conftest.in >conftest.tmp
3086 mv conftest.tmp conftest.in
3087 cp conftest.in conftest.nl
3088 echo >>conftest.nl
3089 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3090 cmp -s conftest.out conftest.nl || break
3091 # 10000 chars as input seems more than enough
3092 test $lt_ac_count -gt 10 && break
3093 lt_ac_count=`expr $lt_ac_count + 1`
3094 if test $lt_ac_count -gt $lt_ac_max; then
3095 lt_ac_max=$lt_ac_count
3096 lt_cv_path_SED=$lt_ac_sed
3097 fi
3098 done
3099done
a.rottmann9bc8b932004-02-29 15:18:31 +00003100
a.rottmann84e63352003-03-24 09:42:16 +00003101fi
3102
vapier7f19c022007-02-17 14:46:31 +00003103SED=$lt_cv_path_SED
mlcreech94984912008-03-04 19:03:08 +00003104{ echo "$as_me:$LINENO: result: $SED" >&5
3105echo "${ECHO_T}$SED" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003106
mlcreech94984912008-03-04 19:03:08 +00003107{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3108echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3109if test "${ac_cv_path_GREP+set}" = set; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003110 echo $ECHO_N "(cached) $ECHO_C" >&6
3111else
mlcreech94984912008-03-04 19:03:08 +00003112 # Extract the first word of "grep ggrep" to use in msg output
3113if test -z "$GREP"; then
3114set dummy grep ggrep; ac_prog_name=$2
3115if test "${ac_cv_path_GREP+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3117else
3118 ac_path_GREP_found=false
3119# Loop through the user's path and test for each of PROGNAME-LIST
3120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3122do
3123 IFS=$as_save_IFS
3124 test -z "$as_dir" && as_dir=.
3125 for ac_prog in grep ggrep; do
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3128 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3129 # Check for GNU ac_path_GREP and select it if it is found.
3130 # Check for GNU $ac_path_GREP
3131case `"$ac_path_GREP" --version 2>&1` in
3132*GNU*)
3133 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3134*)
3135 ac_count=0
3136 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3137 while :
3138 do
3139 cat "conftest.in" "conftest.in" >"conftest.tmp"
3140 mv "conftest.tmp" "conftest.in"
3141 cp "conftest.in" "conftest.nl"
3142 echo 'GREP' >> "conftest.nl"
3143 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3144 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3145 ac_count=`expr $ac_count + 1`
3146 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3147 # Best one so far, save it but keep looking for a better one
3148 ac_cv_path_GREP="$ac_path_GREP"
3149 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003150 fi
mlcreech94984912008-03-04 19:03:08 +00003151 # 10*(2^10) chars as input seems more than enough
3152 test $ac_count -gt 10 && break
3153 done
3154 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3155esac
3156
3157
3158 $ac_path_GREP_found && break 3
3159 done
3160done
3161
3162done
3163IFS=$as_save_IFS
3164
3165
a.rottmann9bc8b932004-02-29 15:18:31 +00003166fi
mlcreech94984912008-03-04 19:03:08 +00003167
3168GREP="$ac_cv_path_GREP"
3169if test -z "$GREP"; then
3170 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3171echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3172 { (exit 1); exit 1; }; }
3173fi
3174
3175else
3176 ac_cv_path_GREP=$GREP
3177fi
3178
3179
3180fi
3181{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3182echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3183 GREP="$ac_cv_path_GREP"
3184
3185
3186{ echo "$as_me:$LINENO: checking for egrep" >&5
3187echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3188if test "${ac_cv_path_EGREP+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
3190else
3191 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3192 then ac_cv_path_EGREP="$GREP -E"
3193 else
3194 # Extract the first word of "egrep" to use in msg output
3195if test -z "$EGREP"; then
3196set dummy egrep; ac_prog_name=$2
3197if test "${ac_cv_path_EGREP+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3199else
3200 ac_path_EGREP_found=false
3201# Loop through the user's path and test for each of PROGNAME-LIST
3202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3204do
3205 IFS=$as_save_IFS
3206 test -z "$as_dir" && as_dir=.
3207 for ac_prog in egrep; do
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3210 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3211 # Check for GNU ac_path_EGREP and select it if it is found.
3212 # Check for GNU $ac_path_EGREP
3213case `"$ac_path_EGREP" --version 2>&1` in
3214*GNU*)
3215 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3216*)
3217 ac_count=0
3218 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3219 while :
3220 do
3221 cat "conftest.in" "conftest.in" >"conftest.tmp"
3222 mv "conftest.tmp" "conftest.in"
3223 cp "conftest.in" "conftest.nl"
3224 echo 'EGREP' >> "conftest.nl"
3225 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3226 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3227 ac_count=`expr $ac_count + 1`
3228 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3229 # Best one so far, save it but keep looking for a better one
3230 ac_cv_path_EGREP="$ac_path_EGREP"
3231 ac_path_EGREP_max=$ac_count
3232 fi
3233 # 10*(2^10) chars as input seems more than enough
3234 test $ac_count -gt 10 && break
3235 done
3236 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3237esac
3238
3239
3240 $ac_path_EGREP_found && break 3
3241 done
3242done
3243
3244done
3245IFS=$as_save_IFS
3246
3247
3248fi
3249
3250EGREP="$ac_cv_path_EGREP"
3251if test -z "$EGREP"; then
3252 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3253echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3254 { (exit 1); exit 1; }; }
3255fi
3256
3257else
3258 ac_cv_path_EGREP=$EGREP
3259fi
3260
3261
3262 fi
3263fi
3264{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3265echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3266 EGREP="$ac_cv_path_EGREP"
a.rottmann9bc8b932004-02-29 15:18:31 +00003267
3268
a.rottmann84e63352003-03-24 09:42:16 +00003269
mlcreech94984912008-03-04 19:03:08 +00003270# Check whether --with-gnu-ld was given.
drh71eb93e2001-09-28 01:34:43 +00003271if test "${with_gnu_ld+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00003272 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003273else
3274 with_gnu_ld=no
mlcreech94984912008-03-04 19:03:08 +00003275fi
3276
drh71eb93e2001-09-28 01:34:43 +00003277ac_prog=ld
3278if test "$GCC" = yes; then
3279 # Check if gcc -print-prog-name=ld gives a path.
mlcreech94984912008-03-04 19:03:08 +00003280 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3281echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003282 case $host in
3283 *-*-mingw*)
3284 # gcc leaves a trailing carriage return which upsets mingw
3285 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3286 *)
3287 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3288 esac
3289 case $ac_prog in
3290 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003291 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003292 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003293 # Canonicalize the pathname of ld
3294 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
drh71eb93e2001-09-28 01:34:43 +00003295 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003296 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003297 done
3298 test -z "$LD" && LD="$ac_prog"
3299 ;;
3300 "")
3301 # If it fails, then pretend we aren't using GCC.
3302 ac_prog=ld
3303 ;;
3304 *)
3305 # If it is relative, then search for the first ld in PATH.
3306 with_gnu_ld=unknown
3307 ;;
3308 esac
3309elif test "$with_gnu_ld" = yes; then
mlcreech94984912008-03-04 19:03:08 +00003310 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3311echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003312else
mlcreech94984912008-03-04 19:03:08 +00003313 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3314echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003315fi
3316if test "${lt_cv_path_LD+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318else
3319 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003320 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003321 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003322 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003323 test -z "$ac_dir" && ac_dir=.
3324 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3325 lt_cv_path_LD="$ac_dir/$ac_prog"
3326 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003327 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003328 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003329 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3330 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003331 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003332 ;;
3333 *)
drh71eb93e2001-09-28 01:34:43 +00003334 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003335 ;;
3336 esac
drh71eb93e2001-09-28 01:34:43 +00003337 fi
3338 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003339 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003340else
3341 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3342fi
3343fi
3344
3345LD="$lt_cv_path_LD"
3346if test -n "$LD"; then
mlcreech94984912008-03-04 19:03:08 +00003347 { echo "$as_me:$LINENO: result: $LD" >&5
3348echo "${ECHO_T}$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003349else
mlcreech94984912008-03-04 19:03:08 +00003350 { echo "$as_me:$LINENO: result: no" >&5
3351echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003352fi
a.rottmann84e63352003-03-24 09:42:16 +00003353test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
drh71eb93e2001-09-28 01:34:43 +00003354echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3355 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00003356{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3357echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003358if test "${lt_cv_prog_gnu_ld+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3360else
vapier7f19c022007-02-17 14:46:31 +00003361 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003362case `$LD -v 2>&1 </dev/null` in
3363*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003364 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003365 ;;
3366*)
drh71eb93e2001-09-28 01:34:43 +00003367 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003368 ;;
3369esac
drh71eb93e2001-09-28 01:34:43 +00003370fi
mlcreech94984912008-03-04 19:03:08 +00003371{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3372echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003373with_gnu_ld=$lt_cv_prog_gnu_ld
3374
a.rottmann84e63352003-03-24 09:42:16 +00003375
mlcreech94984912008-03-04 19:03:08 +00003376{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3377echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003378if test "${lt_cv_ld_reload_flag+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3380else
3381 lt_cv_ld_reload_flag='-r'
3382fi
mlcreech94984912008-03-04 19:03:08 +00003383{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3384echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003385reload_flag=$lt_cv_ld_reload_flag
a.rottmann9bc8b932004-02-29 15:18:31 +00003386case $reload_flag in
3387"" | " "*) ;;
3388*) reload_flag=" $reload_flag" ;;
3389esac
3390reload_cmds='$LD$reload_flag -o $output$reload_objs'
vapier7f19c022007-02-17 14:46:31 +00003391case $host_os in
3392 darwin*)
3393 if test "$GCC" = yes; then
3394 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3395 else
3396 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3397 fi
3398 ;;
3399esac
drh71eb93e2001-09-28 01:34:43 +00003400
mlcreech94984912008-03-04 19:03:08 +00003401{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3402echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003403if test "${lt_cv_path_NM+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3405else
3406 if test -n "$NM"; then
3407 # Let the user override the test.
3408 lt_cv_path_NM="$NM"
3409else
vapier7f19c022007-02-17 14:46:31 +00003410 lt_nm_to_check="${ac_tool_prefix}nm"
3411 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3412 lt_nm_to_check="$lt_nm_to_check nm"
3413 fi
3414 for lt_tmp_nm in $lt_nm_to_check; do
3415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3416 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3417 IFS="$lt_save_ifs"
3418 test -z "$ac_dir" && ac_dir=.
3419 tmp_nm="$ac_dir/$lt_tmp_nm"
3420 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3421 # Check to see if the nm accepts a BSD-compat flag.
3422 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3423 # nm: unknown option "B" ignored
3424 # Tru64's nm complains that /dev/null is an invalid object file
3425 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3426 */dev/null* | *'Invalid file or object type'*)
3427 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003428 break
3429 ;;
3430 *)
vapier7f19c022007-02-17 14:46:31 +00003431 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3432 */dev/null*)
3433 lt_cv_path_NM="$tmp_nm -p"
3434 break
3435 ;;
3436 *)
3437 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3438 continue # so that we can try to find one that supports BSD flags
3439 ;;
3440 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003441 ;;
3442 esac
vapier7f19c022007-02-17 14:46:31 +00003443 fi
3444 done
3445 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003446 done
drh71eb93e2001-09-28 01:34:43 +00003447 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3448fi
3449fi
mlcreech94984912008-03-04 19:03:08 +00003450{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3451echo "${ECHO_T}$lt_cv_path_NM" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00003452NM="$lt_cv_path_NM"
a.rottmann84e63352003-03-24 09:42:16 +00003453
mlcreech94984912008-03-04 19:03:08 +00003454{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3455echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003456LN_S=$as_ln_s
3457if test "$LN_S" = "ln -s"; then
mlcreech94984912008-03-04 19:03:08 +00003458 { echo "$as_me:$LINENO: result: yes" >&5
3459echo "${ECHO_T}yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003460else
mlcreech94984912008-03-04 19:03:08 +00003461 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3462echo "${ECHO_T}no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003463fi
3464
mlcreech94984912008-03-04 19:03:08 +00003465{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3466echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003467if test "${lt_cv_deplibs_check_method+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469else
3470 lt_cv_file_magic_cmd='$MAGIC_CMD'
3471lt_cv_file_magic_test_file=
3472lt_cv_deplibs_check_method='unknown'
3473# Need to set the preceding variable on all platforms that support
3474# interlibrary dependencies.
3475# 'none' -- dependencies not supported.
3476# `unknown' -- same as none, but documents that we really don't know.
3477# 'pass_all' -- all dependencies passed with no checks.
3478# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00003479# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00003480# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00003481# If you have `file' or equivalent on your system and you're not sure
3482# whether `pass_all' will *always* work, you probably want this one.
3483
3484case $host_os in
3485aix4* | aix5*)
3486 lt_cv_deplibs_check_method=pass_all
3487 ;;
3488
3489beos*)
3490 lt_cv_deplibs_check_method=pass_all
3491 ;;
3492
vapier7f19c022007-02-17 14:46:31 +00003493bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00003494 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3495 lt_cv_file_magic_cmd='/usr/bin/file -L'
3496 lt_cv_file_magic_test_file=/shlib/libc.so
3497 ;;
3498
a.rottmann9bc8b932004-02-29 15:18:31 +00003499cygwin*)
vapier7f19c022007-02-17 14:46:31 +00003500 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00003501 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00003502 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00003503 ;;
3504
3505mingw* | pw32*)
3506 # Base MSYS/MinGW do not provide the 'file' command needed by
vapier7f19c022007-02-17 14:46:31 +00003507 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
drh71eb93e2001-09-28 01:34:43 +00003508 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3509 lt_cv_file_magic_cmd='$OBJDUMP -f'
3510 ;;
3511
3512darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00003513 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00003514 ;;
3515
vapier7f19c022007-02-17 14:46:31 +00003516freebsd* | kfreebsd*-gnu | dragonfly*)
drh71eb93e2001-09-28 01:34:43 +00003517 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3518 case $host_cpu in
3519 i*86 )
3520 # Not sure whether the presence of OpenBSD here was a mistake.
3521 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00003522 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
drh71eb93e2001-09-28 01:34:43 +00003523 lt_cv_file_magic_cmd=/usr/bin/file
3524 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3525 ;;
3526 esac
3527 else
3528 lt_cv_deplibs_check_method=pass_all
3529 fi
3530 ;;
3531
3532gnu*)
3533 lt_cv_deplibs_check_method=pass_all
3534 ;;
3535
a.rottmann9bc8b932004-02-29 15:18:31 +00003536hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00003537 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00003538 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00003539 ia64*)
3540 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3541 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3542 ;;
3543 hppa*64*)
3544 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]'
3545 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3546 ;;
3547 *)
3548 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3549 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3550 ;;
3551 esac
drh71eb93e2001-09-28 01:34:43 +00003552 ;;
3553
vapier7f19c022007-02-17 14:46:31 +00003554interix3*)
3555 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3556 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3557 ;;
3558
a.rottmann84e63352003-03-24 09:42:16 +00003559irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00003560 case $LD in
3561 *-32|*"-32 ") libmagic=32-bit;;
3562 *-n32|*"-n32 ") libmagic=N32;;
3563 *-64|*"-64 ") libmagic=64-bit;;
3564 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00003565 esac
drh71eb93e2001-09-28 01:34:43 +00003566 lt_cv_deplibs_check_method=pass_all
3567 ;;
3568
3569# This must be Linux ELF.
a.rottmann9bc8b932004-02-29 15:18:31 +00003570linux*)
3571 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00003572 ;;
3573
vapier7f19c022007-02-17 14:46:31 +00003574netbsd*)
drh71eb93e2001-09-28 01:34:43 +00003575 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003576 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00003577 else
a.rottmann9bc8b932004-02-29 15:18:31 +00003578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00003579 fi
3580 ;;
3581
3582newos6*)
3583 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3584 lt_cv_file_magic_cmd=/usr/bin/file
3585 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3586 ;;
3587
a.rottmann9bc8b932004-02-29 15:18:31 +00003588nto-qnx*)
3589 lt_cv_deplibs_check_method=unknown
3590 ;;
3591
a.rottmann84e63352003-03-24 09:42:16 +00003592openbsd*)
a.rottmann84e63352003-03-24 09:42:16 +00003593 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00003594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00003595 else
vapier7f19c022007-02-17 14:46:31 +00003596 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00003597 fi
drh71eb93e2001-09-28 01:34:43 +00003598 ;;
3599
3600osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00003601 lt_cv_deplibs_check_method=pass_all
3602 ;;
3603
drh71eb93e2001-09-28 01:34:43 +00003604solaris*)
3605 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00003606 ;;
3607
vapier7f19c022007-02-17 14:46:31 +00003608sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00003609 case $host_vendor in
3610 motorola)
3611 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]'
3612 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3613 ;;
3614 ncr)
3615 lt_cv_deplibs_check_method=pass_all
3616 ;;
3617 sequent)
3618 lt_cv_file_magic_cmd='/bin/file'
3619 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3620 ;;
3621 sni)
3622 lt_cv_file_magic_cmd='/bin/file'
3623 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3624 lt_cv_file_magic_test_file=/lib/libc.so
3625 ;;
a.rottmann84e63352003-03-24 09:42:16 +00003626 siemens)
3627 lt_cv_deplibs_check_method=pass_all
3628 ;;
vapier7f19c022007-02-17 14:46:31 +00003629 pc)
3630 lt_cv_deplibs_check_method=pass_all
3631 ;;
drh71eb93e2001-09-28 01:34:43 +00003632 esac
3633 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00003634
vapier7f19c022007-02-17 14:46:31 +00003635sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
a.rottmann9bc8b932004-02-29 15:18:31 +00003636 lt_cv_deplibs_check_method=pass_all
3637 ;;
drh71eb93e2001-09-28 01:34:43 +00003638esac
3639
3640fi
mlcreech94984912008-03-04 19:03:08 +00003641{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3642echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003643file_magic_cmd=$lt_cv_file_magic_cmd
3644deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00003645test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00003646
drh71eb93e2001-09-28 01:34:43 +00003647
drh71eb93e2001-09-28 01:34:43 +00003648
drh71eb93e2001-09-28 01:34:43 +00003649
a.rottmann9bc8b932004-02-29 15:18:31 +00003650# If no C compiler was specified, use CC.
3651LTCC=${LTCC-"$CC"}
3652
vapier7f19c022007-02-17 14:46:31 +00003653# If no C compiler flags were specified, use CFLAGS.
3654LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3655
a.rottmann9bc8b932004-02-29 15:18:31 +00003656# Allow CC to be a program name with arguments.
3657compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00003658
drh71eb93e2001-09-28 01:34:43 +00003659
mlcreech94984912008-03-04 19:03:08 +00003660# Check whether --enable-libtool-lock was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00003661if test "${enable_libtool_lock+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00003662 enableval=$enable_libtool_lock;
3663fi
drh71eb93e2001-09-28 01:34:43 +00003664
a.rottmann9bc8b932004-02-29 15:18:31 +00003665test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00003666
a.rottmann9bc8b932004-02-29 15:18:31 +00003667# Some flags need to be propagated to the compiler or linker for good
3668# libtool support.
3669case $host in
3670ia64-*-hpux*)
3671 # Find out which ABI we are using.
3672 echo 'int i;' > conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00003674 (eval $ac_compile) 2>&5
3675 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00003677 (exit $ac_status); }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003678 case `/usr/bin/file conftest.$ac_objext` in
3679 *ELF-32*)
3680 HPUX_IA64_MODE="32"
3681 ;;
3682 *ELF-64*)
3683 HPUX_IA64_MODE="64"
3684 ;;
3685 esac
3686 fi
3687 rm -rf conftest*
3688 ;;
3689*-*-irix6*)
3690 # Find out which ABI we are using.
mlcreecha4edab02008-03-06 04:14:17 +00003691 echo '#line 3691 "configure"' > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00003692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3693 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00003694 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00003696 (exit $ac_status); }; then
3697 if test "$lt_cv_prog_gnu_ld" = yes; then
3698 case `/usr/bin/file conftest.$ac_objext` in
3699 *32-bit*)
3700 LD="${LD-ld} -melf32bsmip"
3701 ;;
3702 *N32*)
3703 LD="${LD-ld} -melf32bmipn32"
3704 ;;
3705 *64-bit*)
3706 LD="${LD-ld} -melf64bmip"
3707 ;;
3708 esac
3709 else
3710 case `/usr/bin/file conftest.$ac_objext` in
3711 *32-bit*)
3712 LD="${LD-ld} -32"
3713 ;;
3714 *N32*)
3715 LD="${LD-ld} -n32"
3716 ;;
3717 *64-bit*)
3718 LD="${LD-ld} -64"
3719 ;;
3720 esac
3721 fi
3722 fi
3723 rm -rf conftest*
3724 ;;
drh71eb93e2001-09-28 01:34:43 +00003725
a.rottmann9bc8b932004-02-29 15:18:31 +00003726x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3727 # Find out which ABI we are using.
3728 echo 'int i;' > conftest.$ac_ext
3729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3730 (eval $ac_compile) 2>&5
3731 ac_status=$?
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; then
vapier7f19c022007-02-17 14:46:31 +00003734 case `/usr/bin/file conftest.o` in
a.rottmann9bc8b932004-02-29 15:18:31 +00003735 *32-bit*)
3736 case $host in
3737 x86_64-*linux*)
3738 LD="${LD-ld} -m elf_i386"
3739 ;;
3740 ppc64-*linux*|powerpc64-*linux*)
3741 LD="${LD-ld} -m elf32ppclinux"
3742 ;;
3743 s390x-*linux*)
3744 LD="${LD-ld} -m elf_s390"
3745 ;;
3746 sparc64-*linux*)
3747 LD="${LD-ld} -m elf32_sparc"
3748 ;;
3749 esac
3750 ;;
3751 *64-bit*)
3752 case $host in
3753 x86_64-*linux*)
3754 LD="${LD-ld} -m elf_x86_64"
3755 ;;
3756 ppc*-*linux*|powerpc*-*linux*)
3757 LD="${LD-ld} -m elf64ppc"
3758 ;;
3759 s390*-*linux*)
3760 LD="${LD-ld} -m elf64_s390"
3761 ;;
3762 sparc*-*linux*)
3763 LD="${LD-ld} -m elf64_sparc"
3764 ;;
3765 esac
3766 ;;
3767 esac
3768 fi
3769 rm -rf conftest*
3770 ;;
drh71eb93e2001-09-28 01:34:43 +00003771
a.rottmann9bc8b932004-02-29 15:18:31 +00003772*-*-sco3.2v5*)
3773 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3774 SAVE_CFLAGS="$CFLAGS"
3775 CFLAGS="$CFLAGS -belf"
mlcreech94984912008-03-04 19:03:08 +00003776 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3777echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003778if test "${lt_cv_cc_needs_belf+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3780else
3781 ac_ext=c
3782ac_cpp='$CPP $CPPFLAGS'
3783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3785ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00003786
a.rottmann9bc8b932004-02-29 15:18:31 +00003787 cat >conftest.$ac_ext <<_ACEOF
3788/* confdefs.h. */
3789_ACEOF
3790cat confdefs.h >>conftest.$ac_ext
3791cat >>conftest.$ac_ext <<_ACEOF
3792/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003793
a.rottmann9bc8b932004-02-29 15:18:31 +00003794int
3795main ()
drh71eb93e2001-09-28 01:34:43 +00003796{
drh71eb93e2001-09-28 01:34:43 +00003797
a.rottmann9bc8b932004-02-29 15:18:31 +00003798 ;
3799 return 0;
drh71eb93e2001-09-28 01:34:43 +00003800}
a.rottmann9bc8b932004-02-29 15:18:31 +00003801_ACEOF
3802rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00003803if { (ac_try="$ac_link"
3804case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3807esac
3808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00003810 ac_status=$?
3811 grep -v '^ *+' conftest.er1 >conftest.err
3812 rm -f conftest.er1
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00003815 (exit $ac_status); } && {
3816 test -z "$ac_c_werror_flag" ||
3817 test ! -s conftest.err
3818 } && test -s conftest$ac_exeext &&
3819 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003820 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00003821else
a.rottmann9bc8b932004-02-29 15:18:31 +00003822 echo "$as_me: failed program was:" >&5
3823sed 's/^/| /' conftest.$ac_ext >&5
3824
mlcreech94984912008-03-04 19:03:08 +00003825 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00003826fi
mlcreech94984912008-03-04 19:03:08 +00003827
3828rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00003829 conftest$ac_exeext conftest.$ac_ext
3830 ac_ext=c
3831ac_cpp='$CPP $CPPFLAGS'
3832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835
drh71eb93e2001-09-28 01:34:43 +00003836fi
mlcreech94984912008-03-04 19:03:08 +00003837{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3838echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003839 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3840 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3841 CFLAGS="$SAVE_CFLAGS"
3842 fi
3843 ;;
vapier7f19c022007-02-17 14:46:31 +00003844sparc*-*solaris*)
3845 # Find out which ABI we are using.
3846 echo 'int i;' > conftest.$ac_ext
3847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3848 (eval $ac_compile) 2>&5
3849 ac_status=$?
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; then
3852 case `/usr/bin/file conftest.o` in
3853 *64-bit*)
3854 case $lt_cv_prog_gnu_ld in
3855 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3856 *) LD="${LD-ld} -64" ;;
3857 esac
3858 ;;
3859 esac
3860 fi
3861 rm -rf conftest*
3862 ;;
3863
a.rottmann9bc8b932004-02-29 15:18:31 +00003864
3865esac
3866
3867need_locks="$enable_libtool_lock"
3868
drh71eb93e2001-09-28 01:34:43 +00003869
a.rottmann84e63352003-03-24 09:42:16 +00003870ac_ext=c
3871ac_cpp='$CPP $CPPFLAGS'
3872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874ac_compiler_gnu=$ac_cv_c_compiler_gnu
mlcreech94984912008-03-04 19:03:08 +00003875{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3876echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00003877# On Suns, sometimes $CPP names a directory.
3878if test -n "$CPP" && test -d "$CPP"; then
3879 CPP=
3880fi
3881if test -z "$CPP"; then
3882 if test "${ac_cv_prog_CPP+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003883 echo $ECHO_N "(cached) $ECHO_C" >&6
3884else
a.rottmann84e63352003-03-24 09:42:16 +00003885 # Double quotes because CPP needs to be expanded
3886 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3887 do
3888 ac_preproc_ok=false
3889for ac_c_preproc_warn_flag in '' yes
3890do
3891 # Use a header file that comes with gcc, so configuring glibc
3892 # with a fresh cross-compiler works.
3893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3894 # <limits.h> exists even on freestanding compilers.
3895 # On the NeXT, cc -E runs the code through the compiler's parser,
3896 # not just through cpp. "Syntax error" is here to catch this case.
3897 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003898/* confdefs.h. */
3899_ACEOF
3900cat confdefs.h >>conftest.$ac_ext
3901cat >>conftest.$ac_ext <<_ACEOF
3902/* end confdefs.h. */
3903#ifdef __STDC__
3904# include <limits.h>
3905#else
3906# include <assert.h>
3907#endif
a.rottmann964dbb12004-02-26 19:47:42 +00003908 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00003909_ACEOF
mlcreech94984912008-03-04 19:03:08 +00003910if { (ac_try="$ac_cpp conftest.$ac_ext"
3911case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914esac
3915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003917 ac_status=$?
3918 grep -v '^ *+' conftest.er1 >conftest.err
3919 rm -f conftest.er1
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00003922 (exit $ac_status); } >/dev/null && {
3923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3925 }; then
a.rottmann84e63352003-03-24 09:42:16 +00003926 :
3927else
3928 echo "$as_me: failed program was:" >&5
3929sed 's/^/| /' conftest.$ac_ext >&5
3930
3931 # Broken: fails on valid input.
3932continue
3933fi
mlcreech94984912008-03-04 19:03:08 +00003934
a.rottmann84e63352003-03-24 09:42:16 +00003935rm -f conftest.err conftest.$ac_ext
3936
mlcreech94984912008-03-04 19:03:08 +00003937 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00003938 # can be detected and how.
3939 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003940/* confdefs.h. */
3941_ACEOF
3942cat confdefs.h >>conftest.$ac_ext
3943cat >>conftest.$ac_ext <<_ACEOF
3944/* end confdefs.h. */
3945#include <ac_nonexistent.h>
3946_ACEOF
mlcreech94984912008-03-04 19:03:08 +00003947if { (ac_try="$ac_cpp conftest.$ac_ext"
3948case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3951esac
3952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003954 ac_status=$?
3955 grep -v '^ *+' conftest.er1 >conftest.err
3956 rm -f conftest.er1
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00003959 (exit $ac_status); } >/dev/null && {
3960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3961 test ! -s conftest.err
3962 }; then
a.rottmann84e63352003-03-24 09:42:16 +00003963 # Broken: success on invalid input.
3964continue
3965else
3966 echo "$as_me: failed program was:" >&5
3967sed 's/^/| /' conftest.$ac_ext >&5
3968
3969 # Passes both tests.
3970ac_preproc_ok=:
3971break
3972fi
mlcreech94984912008-03-04 19:03:08 +00003973
a.rottmann84e63352003-03-24 09:42:16 +00003974rm -f conftest.err conftest.$ac_ext
3975
3976done
3977# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3978rm -f conftest.err conftest.$ac_ext
3979if $ac_preproc_ok; then
3980 break
3981fi
3982
3983 done
3984 ac_cv_prog_CPP=$CPP
3985
3986fi
3987 CPP=$ac_cv_prog_CPP
3988else
3989 ac_cv_prog_CPP=$CPP
3990fi
mlcreech94984912008-03-04 19:03:08 +00003991{ echo "$as_me:$LINENO: result: $CPP" >&5
3992echo "${ECHO_T}$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00003993ac_preproc_ok=false
3994for ac_c_preproc_warn_flag in '' yes
3995do
3996 # Use a header file that comes with gcc, so configuring glibc
3997 # with a fresh cross-compiler works.
3998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3999 # <limits.h> exists even on freestanding compilers.
4000 # On the NeXT, cc -E runs the code through the compiler's parser,
4001 # not just through cpp. "Syntax error" is here to catch this case.
4002 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004003/* confdefs.h. */
4004_ACEOF
4005cat confdefs.h >>conftest.$ac_ext
4006cat >>conftest.$ac_ext <<_ACEOF
4007/* end confdefs.h. */
4008#ifdef __STDC__
4009# include <limits.h>
4010#else
4011# include <assert.h>
4012#endif
a.rottmann964dbb12004-02-26 19:47:42 +00004013 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00004014_ACEOF
mlcreech94984912008-03-04 19:03:08 +00004015if { (ac_try="$ac_cpp conftest.$ac_ext"
4016case "(($ac_try" in
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4019esac
4020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004022 ac_status=$?
4023 grep -v '^ *+' conftest.er1 >conftest.err
4024 rm -f conftest.er1
4025 cat conftest.err >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004027 (exit $ac_status); } >/dev/null && {
4028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4029 test ! -s conftest.err
4030 }; then
a.rottmann84e63352003-03-24 09:42:16 +00004031 :
4032else
4033 echo "$as_me: failed program was:" >&5
4034sed 's/^/| /' conftest.$ac_ext >&5
4035
4036 # Broken: fails on valid input.
4037continue
4038fi
mlcreech94984912008-03-04 19:03:08 +00004039
a.rottmann84e63352003-03-24 09:42:16 +00004040rm -f conftest.err conftest.$ac_ext
4041
mlcreech94984912008-03-04 19:03:08 +00004042 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00004043 # can be detected and how.
4044 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004045/* confdefs.h. */
4046_ACEOF
4047cat confdefs.h >>conftest.$ac_ext
4048cat >>conftest.$ac_ext <<_ACEOF
4049/* end confdefs.h. */
4050#include <ac_nonexistent.h>
4051_ACEOF
mlcreech94984912008-03-04 19:03:08 +00004052if { (ac_try="$ac_cpp conftest.$ac_ext"
4053case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4056esac
4057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004059 ac_status=$?
4060 grep -v '^ *+' conftest.er1 >conftest.err
4061 rm -f conftest.er1
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004064 (exit $ac_status); } >/dev/null && {
4065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4066 test ! -s conftest.err
4067 }; then
a.rottmann84e63352003-03-24 09:42:16 +00004068 # Broken: success on invalid input.
4069continue
4070else
4071 echo "$as_me: failed program was:" >&5
4072sed 's/^/| /' conftest.$ac_ext >&5
4073
4074 # Passes both tests.
4075ac_preproc_ok=:
4076break
4077fi
mlcreech94984912008-03-04 19:03:08 +00004078
a.rottmann84e63352003-03-24 09:42:16 +00004079rm -f conftest.err conftest.$ac_ext
4080
4081done
4082# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4083rm -f conftest.err conftest.$ac_ext
4084if $ac_preproc_ok; then
4085 :
4086else
4087 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4088See \`config.log' for more details." >&5
4089echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4090See \`config.log' for more details." >&2;}
4091 { (exit 1); exit 1; }; }
4092fi
4093
4094ac_ext=c
4095ac_cpp='$CPP $CPPFLAGS'
4096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4098ac_compiler_gnu=$ac_cv_c_compiler_gnu
4099
4100
mlcreech94984912008-03-04 19:03:08 +00004101{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4102echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004103if test "${ac_cv_header_stdc+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105else
4106 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004107/* confdefs.h. */
4108_ACEOF
4109cat confdefs.h >>conftest.$ac_ext
4110cat >>conftest.$ac_ext <<_ACEOF
4111/* end confdefs.h. */
4112#include <stdlib.h>
4113#include <stdarg.h>
4114#include <string.h>
4115#include <float.h>
4116
4117int
4118main ()
4119{
4120
4121 ;
4122 return 0;
4123}
4124_ACEOF
4125rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00004126if { (ac_try="$ac_compile"
4127case "(($ac_try" in
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4130esac
4131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004133 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00004134 grep -v '^ *+' conftest.er1 >conftest.err
4135 rm -f conftest.er1
4136 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00004137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004138 (exit $ac_status); } && {
4139 test -z "$ac_c_werror_flag" ||
4140 test ! -s conftest.err
4141 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00004142 ac_cv_header_stdc=yes
4143else
4144 echo "$as_me: failed program was:" >&5
4145sed 's/^/| /' conftest.$ac_ext >&5
4146
mlcreech94984912008-03-04 19:03:08 +00004147 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00004148fi
mlcreech94984912008-03-04 19:03:08 +00004149
4150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00004151
4152if test $ac_cv_header_stdc = yes; then
4153 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4154 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004155/* confdefs.h. */
4156_ACEOF
4157cat confdefs.h >>conftest.$ac_ext
4158cat >>conftest.$ac_ext <<_ACEOF
4159/* end confdefs.h. */
4160#include <string.h>
4161
4162_ACEOF
4163if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4164 $EGREP "memchr" >/dev/null 2>&1; then
4165 :
4166else
4167 ac_cv_header_stdc=no
4168fi
4169rm -f conftest*
4170
4171fi
4172
4173if test $ac_cv_header_stdc = yes; then
4174 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4175 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004176/* confdefs.h. */
4177_ACEOF
4178cat confdefs.h >>conftest.$ac_ext
4179cat >>conftest.$ac_ext <<_ACEOF
4180/* end confdefs.h. */
4181#include <stdlib.h>
4182
4183_ACEOF
4184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4185 $EGREP "free" >/dev/null 2>&1; then
4186 :
4187else
4188 ac_cv_header_stdc=no
4189fi
4190rm -f conftest*
4191
4192fi
4193
4194if test $ac_cv_header_stdc = yes; then
4195 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4196 if test "$cross_compiling" = yes; then
4197 :
4198else
4199 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004200/* confdefs.h. */
4201_ACEOF
4202cat confdefs.h >>conftest.$ac_ext
4203cat >>conftest.$ac_ext <<_ACEOF
4204/* end confdefs.h. */
4205#include <ctype.h>
mlcreech94984912008-03-04 19:03:08 +00004206#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00004207#if ((' ' & 0x0FF) == 0x020)
4208# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4209# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4210#else
4211# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00004212 (('a' <= (c) && (c) <= 'i') \
4213 || ('j' <= (c) && (c) <= 'r') \
4214 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00004215# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4216#endif
4217
4218#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4219int
4220main ()
4221{
4222 int i;
4223 for (i = 0; i < 256; i++)
4224 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00004225 || toupper (i) != TOUPPER (i))
mlcreech94984912008-03-04 19:03:08 +00004226 return 2;
4227 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00004228}
4229_ACEOF
4230rm -f conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00004231if { (ac_try="$ac_link"
4232case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4235esac
4236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_link") 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00004238 ac_status=$?
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
mlcreech94984912008-03-04 19:03:08 +00004241 { (case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244esac
4245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4246 (eval "$ac_try") 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00004247 ac_status=$?
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
4250 :
4251else
4252 echo "$as_me: program exited with status $ac_status" >&5
4253echo "$as_me: failed program was:" >&5
4254sed 's/^/| /' conftest.$ac_ext >&5
4255
4256( exit $ac_status )
4257ac_cv_header_stdc=no
4258fi
mlcreech94984912008-03-04 19:03:08 +00004259rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4260fi
4261
4262
a.rottmann84e63352003-03-24 09:42:16 +00004263fi
4264fi
mlcreech94984912008-03-04 19:03:08 +00004265{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4266echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004267if test $ac_cv_header_stdc = yes; then
4268
4269cat >>confdefs.h <<\_ACEOF
4270#define STDC_HEADERS 1
4271_ACEOF
4272
4273fi
4274
4275# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00004286 inttypes.h stdint.h unistd.h
a.rottmann84e63352003-03-24 09:42:16 +00004287do
4288as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
mlcreech94984912008-03-04 19:03:08 +00004289{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4290echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4291if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00004292 echo $ECHO_N "(cached) $ECHO_C" >&6
4293else
4294 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004295/* confdefs.h. */
4296_ACEOF
4297cat confdefs.h >>conftest.$ac_ext
4298cat >>conftest.$ac_ext <<_ACEOF
4299/* end confdefs.h. */
4300$ac_includes_default
4301
4302#include <$ac_header>
4303_ACEOF
4304rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00004305if { (ac_try="$ac_compile"
4306case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309esac
4310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004312 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00004313 grep -v '^ *+' conftest.er1 >conftest.err
4314 rm -f conftest.er1
4315 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00004316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004317 (exit $ac_status); } && {
4318 test -z "$ac_c_werror_flag" ||
4319 test ! -s conftest.err
4320 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00004321 eval "$as_ac_Header=yes"
4322else
4323 echo "$as_me: failed program was:" >&5
4324sed 's/^/| /' conftest.$ac_ext >&5
4325
mlcreech94984912008-03-04 19:03:08 +00004326 eval "$as_ac_Header=no"
a.rottmann84e63352003-03-24 09:42:16 +00004327fi
mlcreech94984912008-03-04 19:03:08 +00004328
4329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00004330fi
mlcreech94984912008-03-04 19:03:08 +00004331ac_res=`eval echo '${'$as_ac_Header'}'`
4332 { echo "$as_me:$LINENO: result: $ac_res" >&5
4333echo "${ECHO_T}$ac_res" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004334if test `eval echo '${'$as_ac_Header'}'` = yes; then
4335 cat >>confdefs.h <<_ACEOF
4336#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4337_ACEOF
4338
4339fi
4340
4341done
4342
4343
4344
4345for ac_header in dlfcn.h
4346do
4347as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
mlcreech94984912008-03-04 19:03:08 +00004348if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00004352 echo $ECHO_N "(cached) $ECHO_C" >&6
4353fi
mlcreech94984912008-03-04 19:03:08 +00004354ac_res=`eval echo '${'$as_ac_Header'}'`
4355 { echo "$as_me:$LINENO: result: $ac_res" >&5
4356echo "${ECHO_T}$ac_res" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004357else
4358 # Is the header compilable?
mlcreech94984912008-03-04 19:03:08 +00004359{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4360echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004361cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004362/* confdefs.h. */
4363_ACEOF
4364cat confdefs.h >>conftest.$ac_ext
4365cat >>conftest.$ac_ext <<_ACEOF
4366/* end confdefs.h. */
4367$ac_includes_default
4368#include <$ac_header>
4369_ACEOF
4370rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00004371if { (ac_try="$ac_compile"
4372case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4375esac
4376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004378 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00004379 grep -v '^ *+' conftest.er1 >conftest.err
4380 rm -f conftest.er1
4381 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00004382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004383 (exit $ac_status); } && {
4384 test -z "$ac_c_werror_flag" ||
4385 test ! -s conftest.err
4386 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00004387 ac_header_compiler=yes
4388else
4389 echo "$as_me: failed program was:" >&5
4390sed 's/^/| /' conftest.$ac_ext >&5
4391
mlcreech94984912008-03-04 19:03:08 +00004392 ac_header_compiler=no
a.rottmann84e63352003-03-24 09:42:16 +00004393fi
mlcreech94984912008-03-04 19:03:08 +00004394
4395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4397echo "${ECHO_T}$ac_header_compiler" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004398
4399# Is the header present?
mlcreech94984912008-03-04 19:03:08 +00004400{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4401echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004402cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004403/* confdefs.h. */
4404_ACEOF
4405cat confdefs.h >>conftest.$ac_ext
4406cat >>conftest.$ac_ext <<_ACEOF
4407/* end confdefs.h. */
4408#include <$ac_header>
4409_ACEOF
mlcreech94984912008-03-04 19:03:08 +00004410if { (ac_try="$ac_cpp conftest.$ac_ext"
4411case "(($ac_try" in
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4414esac
4415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004417 ac_status=$?
4418 grep -v '^ *+' conftest.er1 >conftest.err
4419 rm -f conftest.er1
4420 cat conftest.err >&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004422 (exit $ac_status); } >/dev/null && {
4423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4424 test ! -s conftest.err
4425 }; then
a.rottmann84e63352003-03-24 09:42:16 +00004426 ac_header_preproc=yes
4427else
4428 echo "$as_me: failed program was:" >&5
4429sed 's/^/| /' conftest.$ac_ext >&5
4430
4431 ac_header_preproc=no
4432fi
mlcreech94984912008-03-04 19:03:08 +00004433
a.rottmann84e63352003-03-24 09:42:16 +00004434rm -f conftest.err conftest.$ac_ext
mlcreech94984912008-03-04 19:03:08 +00004435{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4436echo "${ECHO_T}$ac_header_preproc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004437
4438# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +00004439case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4440 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +00004441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4442echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00004443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4444echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4445 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +00004446 ;;
a.rottmann964dbb12004-02-26 19:47:42 +00004447 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +00004448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4449echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00004450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4451echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4453echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4455echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00004456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4457echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00004458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4459echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
mlcreech94984912008-03-04 19:03:08 +00004460
a.rottmann84e63352003-03-24 09:42:16 +00004461 ;;
drh71eb93e2001-09-28 01:34:43 +00004462esac
mlcreech94984912008-03-04 19:03:08 +00004463{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
drh71eb93e2001-09-28 01:34:43 +00004466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467else
a.rottmann964dbb12004-02-26 19:47:42 +00004468 eval "$as_ac_Header=\$ac_header_preproc"
a.rottmann84e63352003-03-24 09:42:16 +00004469fi
mlcreech94984912008-03-04 19:03:08 +00004470ac_res=`eval echo '${'$as_ac_Header'}'`
4471 { echo "$as_me:$LINENO: result: $ac_res" >&5
4472echo "${ECHO_T}$ac_res" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004473
4474fi
4475if test `eval echo '${'$as_ac_Header'}'` = yes; then
4476 cat >>confdefs.h <<_ACEOF
4477#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4478_ACEOF
4479
4480fi
4481
drh71eb93e2001-09-28 01:34:43 +00004482done
4483
mlcreech94984912008-03-04 19:03:08 +00004484ac_ext=cpp
a.rottmann9bc8b932004-02-29 15:18:31 +00004485ac_cpp='$CXXCPP $CPPFLAGS'
4486ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4487ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4488ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mlcreech94984912008-03-04 19:03:08 +00004489if test -z "$CXX"; then
4490 if test -n "$CCC"; then
4491 CXX=$CCC
4492 else
4493 if test -n "$ac_tool_prefix"; then
4494 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a.rottmann9bc8b932004-02-29 15:18:31 +00004495 do
4496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4497set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00004498{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004500if test "${ac_cv_prog_CXX+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00004501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502else
a.rottmann9bc8b932004-02-29 15:18:31 +00004503 if test -n "$CXX"; then
4504 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4505else
4506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507for as_dir in $PATH
4508do
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00004512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004513 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 break 2
4516 fi
4517done
4518done
mlcreech94984912008-03-04 19:03:08 +00004519IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00004520
drh71eb93e2001-09-28 01:34:43 +00004521fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004522fi
4523CXX=$ac_cv_prog_CXX
4524if test -n "$CXX"; then
mlcreech94984912008-03-04 19:03:08 +00004525 { echo "$as_me:$LINENO: result: $CXX" >&5
4526echo "${ECHO_T}$CXX" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004527else
mlcreech94984912008-03-04 19:03:08 +00004528 { echo "$as_me:$LINENO: result: no" >&5
4529echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004530fi
4531
mlcreech94984912008-03-04 19:03:08 +00004532
a.rottmann9bc8b932004-02-29 15:18:31 +00004533 test -n "$CXX" && break
4534 done
4535fi
4536if test -z "$CXX"; then
4537 ac_ct_CXX=$CXX
mlcreech94984912008-03-04 19:03:08 +00004538 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a.rottmann9bc8b932004-02-29 15:18:31 +00004539do
4540 # Extract the first word of "$ac_prog", so it can be a program name with args.
4541set dummy $ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00004542{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004544if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00004545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546else
a.rottmann9bc8b932004-02-29 15:18:31 +00004547 if test -n "$ac_ct_CXX"; then
4548 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4549else
4550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551for as_dir in $PATH
4552do
4553 IFS=$as_save_IFS
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00004556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004557 ac_cv_prog_ac_ct_CXX="$ac_prog"
4558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 break 2
4560 fi
4561done
4562done
mlcreech94984912008-03-04 19:03:08 +00004563IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00004564
drh71eb93e2001-09-28 01:34:43 +00004565fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004566fi
4567ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4568if test -n "$ac_ct_CXX"; then
mlcreech94984912008-03-04 19:03:08 +00004569 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4570echo "${ECHO_T}$ac_ct_CXX" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004571else
mlcreech94984912008-03-04 19:03:08 +00004572 { echo "$as_me:$LINENO: result: no" >&5
4573echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004574fi
4575
mlcreech94984912008-03-04 19:03:08 +00004576
a.rottmann9bc8b932004-02-29 15:18:31 +00004577 test -n "$ac_ct_CXX" && break
4578done
a.rottmann9bc8b932004-02-29 15:18:31 +00004579
mlcreech94984912008-03-04 19:03:08 +00004580 if test "x$ac_ct_CXX" = x; then
4581 CXX="g++"
4582 else
4583 case $cross_compiling:$ac_tool_warned in
4584yes:)
4585{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4586whose name does not start with the host triplet. If you think this
4587configuration is useful to you, please write to autoconf@gnu.org." >&5
4588echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4589whose name does not start with the host triplet. If you think this
4590configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4591ac_tool_warned=yes ;;
4592esac
4593 CXX=$ac_ct_CXX
4594 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004595fi
4596
mlcreech94984912008-03-04 19:03:08 +00004597 fi
4598fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004599# Provide some information about the compiler.
mlcreech94984912008-03-04 19:03:08 +00004600echo "$as_me:$LINENO: checking for C++ compiler version" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004601ac_compiler=`set X $ac_compile; echo $2`
mlcreech94984912008-03-04 19:03:08 +00004602{ (ac_try="$ac_compiler --version >&5"
4603case "(($ac_try" in
4604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605 *) ac_try_echo=$ac_try;;
4606esac
4607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4608 (eval "$ac_compiler --version >&5") 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004609 ac_status=$?
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }
mlcreech94984912008-03-04 19:03:08 +00004612{ (ac_try="$ac_compiler -v >&5"
4613case "(($ac_try" in
4614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615 *) ac_try_echo=$ac_try;;
4616esac
4617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4618 (eval "$ac_compiler -v >&5") 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004619 ac_status=$?
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); }
mlcreech94984912008-03-04 19:03:08 +00004622{ (ac_try="$ac_compiler -V >&5"
4623case "(($ac_try" in
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4626esac
4627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4628 (eval "$ac_compiler -V >&5") 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }
4632
mlcreech94984912008-03-04 19:03:08 +00004633{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4634echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004635if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4637else
4638 cat >conftest.$ac_ext <<_ACEOF
4639/* confdefs.h. */
4640_ACEOF
4641cat confdefs.h >>conftest.$ac_ext
4642cat >>conftest.$ac_ext <<_ACEOF
4643/* end confdefs.h. */
4644
4645int
4646main ()
4647{
4648#ifndef __GNUC__
4649 choke me
4650#endif
4651
4652 ;
4653 return 0;
4654}
4655_ACEOF
4656rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00004657if { (ac_try="$ac_compile"
4658case "(($ac_try" in
4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4661esac
4662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4663 (eval "$ac_compile") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004664 ac_status=$?
4665 grep -v '^ *+' conftest.er1 >conftest.err
4666 rm -f conftest.er1
4667 cat conftest.err >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004669 (exit $ac_status); } && {
4670 test -z "$ac_cxx_werror_flag" ||
4671 test ! -s conftest.err
4672 } && test -s conftest.$ac_objext; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004673 ac_compiler_gnu=yes
4674else
4675 echo "$as_me: failed program was:" >&5
4676sed 's/^/| /' conftest.$ac_ext >&5
4677
mlcreech94984912008-03-04 19:03:08 +00004678 ac_compiler_gnu=no
a.rottmann9bc8b932004-02-29 15:18:31 +00004679fi
mlcreech94984912008-03-04 19:03:08 +00004680
4681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00004682ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4683
4684fi
mlcreech94984912008-03-04 19:03:08 +00004685{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4686echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004687GXX=`test $ac_compiler_gnu = yes && echo yes`
4688ac_test_CXXFLAGS=${CXXFLAGS+set}
4689ac_save_CXXFLAGS=$CXXFLAGS
mlcreech94984912008-03-04 19:03:08 +00004690{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4691echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004692if test "${ac_cv_prog_cxx_g+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
mlcreech94984912008-03-04 19:03:08 +00004695 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4696 ac_cxx_werror_flag=yes
4697 ac_cv_prog_cxx_g=no
4698 CXXFLAGS="-g"
4699 cat >conftest.$ac_ext <<_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00004700/* confdefs.h. */
4701_ACEOF
4702cat confdefs.h >>conftest.$ac_ext
4703cat >>conftest.$ac_ext <<_ACEOF
4704/* end confdefs.h. */
4705
4706int
4707main ()
4708{
4709
4710 ;
4711 return 0;
4712}
4713_ACEOF
4714rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00004715if { (ac_try="$ac_compile"
4716case "(($ac_try" in
4717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4718 *) ac_try_echo=$ac_try;;
4719esac
4720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4721 (eval "$ac_compile") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004722 ac_status=$?
4723 grep -v '^ *+' conftest.er1 >conftest.err
4724 rm -f conftest.er1
4725 cat conftest.err >&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004727 (exit $ac_status); } && {
4728 test -z "$ac_cxx_werror_flag" ||
4729 test ! -s conftest.err
4730 } && test -s conftest.$ac_objext; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004731 ac_cv_prog_cxx_g=yes
4732else
4733 echo "$as_me: failed program was:" >&5
4734sed 's/^/| /' conftest.$ac_ext >&5
4735
mlcreech94984912008-03-04 19:03:08 +00004736 CXXFLAGS=""
4737 cat >conftest.$ac_ext <<_ACEOF
4738/* confdefs.h. */
4739_ACEOF
4740cat confdefs.h >>conftest.$ac_ext
4741cat >>conftest.$ac_ext <<_ACEOF
4742/* end confdefs.h. */
4743
4744int
4745main ()
4746{
4747
4748 ;
4749 return 0;
4750}
4751_ACEOF
4752rm -f conftest.$ac_objext
4753if { (ac_try="$ac_compile"
4754case "(($ac_try" in
4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4757esac
4758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4759 (eval "$ac_compile") 2>conftest.er1
4760 ac_status=$?
4761 grep -v '^ *+' conftest.er1 >conftest.err
4762 rm -f conftest.er1
4763 cat conftest.err >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } && {
4766 test -z "$ac_cxx_werror_flag" ||
4767 test ! -s conftest.err
4768 } && test -s conftest.$ac_objext; then
4769 :
4770else
4771 echo "$as_me: failed program was:" >&5
4772sed 's/^/| /' conftest.$ac_ext >&5
4773
4774 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4775 CXXFLAGS="-g"
4776 cat >conftest.$ac_ext <<_ACEOF
4777/* confdefs.h. */
4778_ACEOF
4779cat confdefs.h >>conftest.$ac_ext
4780cat >>conftest.$ac_ext <<_ACEOF
4781/* end confdefs.h. */
4782
4783int
4784main ()
4785{
4786
4787 ;
4788 return 0;
4789}
4790_ACEOF
4791rm -f conftest.$ac_objext
4792if { (ac_try="$ac_compile"
4793case "(($ac_try" in
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4796esac
4797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798 (eval "$ac_compile") 2>conftest.er1
4799 ac_status=$?
4800 grep -v '^ *+' conftest.er1 >conftest.err
4801 rm -f conftest.er1
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } && {
4805 test -z "$ac_cxx_werror_flag" ||
4806 test ! -s conftest.err
4807 } && test -s conftest.$ac_objext; then
4808 ac_cv_prog_cxx_g=yes
4809else
4810 echo "$as_me: failed program was:" >&5
4811sed 's/^/| /' conftest.$ac_ext >&5
4812
4813
a.rottmann9bc8b932004-02-29 15:18:31 +00004814fi
mlcreech94984912008-03-04 19:03:08 +00004815
4816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00004817fi
mlcreech94984912008-03-04 19:03:08 +00004818
4819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820fi
4821
4822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4824fi
4825{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4826echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004827if test "$ac_test_CXXFLAGS" = set; then
4828 CXXFLAGS=$ac_save_CXXFLAGS
4829elif test $ac_cv_prog_cxx_g = yes; then
4830 if test "$GXX" = yes; then
4831 CXXFLAGS="-g -O2"
drh71eb93e2001-09-28 01:34:43 +00004832 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004833 CXXFLAGS="-g"
4834 fi
4835else
4836 if test "$GXX" = yes; then
4837 CXXFLAGS="-O2"
4838 else
4839 CXXFLAGS=
4840 fi
4841fi
mlcreech94984912008-03-04 19:03:08 +00004842ac_ext=cpp
a.rottmann9bc8b932004-02-29 15:18:31 +00004843ac_cpp='$CXXCPP $CPPFLAGS'
4844ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4845ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4846ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4847
vapier7f19c022007-02-17 14:46:31 +00004848
4849
4850if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4851 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4852 (test "X$CXX" != "Xg++"))) ; then
mlcreech94984912008-03-04 19:03:08 +00004853 ac_ext=cpp
a.rottmann9bc8b932004-02-29 15:18:31 +00004854ac_cpp='$CXXCPP $CPPFLAGS'
4855ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mlcreech94984912008-03-04 19:03:08 +00004858{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4859echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004860if test -z "$CXXCPP"; then
4861 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863else
4864 # Double quotes because CXXCPP needs to be expanded
4865 for CXXCPP in "$CXX -E" "/lib/cpp"
4866 do
4867 ac_preproc_ok=false
4868for ac_cxx_preproc_warn_flag in '' yes
4869do
4870 # Use a header file that comes with gcc, so configuring glibc
4871 # with a fresh cross-compiler works.
4872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4873 # <limits.h> exists even on freestanding compilers.
4874 # On the NeXT, cc -E runs the code through the compiler's parser,
4875 # not just through cpp. "Syntax error" is here to catch this case.
4876 cat >conftest.$ac_ext <<_ACEOF
4877/* confdefs.h. */
4878_ACEOF
4879cat confdefs.h >>conftest.$ac_ext
4880cat >>conftest.$ac_ext <<_ACEOF
4881/* end confdefs.h. */
4882#ifdef __STDC__
4883# include <limits.h>
4884#else
4885# include <assert.h>
4886#endif
4887 Syntax error
4888_ACEOF
mlcreech94984912008-03-04 19:03:08 +00004889if { (ac_try="$ac_cpp conftest.$ac_ext"
4890case "(($ac_try" in
4891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4892 *) ac_try_echo=$ac_try;;
4893esac
4894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004896 ac_status=$?
4897 grep -v '^ *+' conftest.er1 >conftest.err
4898 rm -f conftest.er1
4899 cat conftest.err >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004901 (exit $ac_status); } >/dev/null && {
4902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4903 test ! -s conftest.err
4904 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004905 :
4906else
4907 echo "$as_me: failed program was:" >&5
4908sed 's/^/| /' conftest.$ac_ext >&5
4909
4910 # Broken: fails on valid input.
4911continue
4912fi
mlcreech94984912008-03-04 19:03:08 +00004913
a.rottmann9bc8b932004-02-29 15:18:31 +00004914rm -f conftest.err conftest.$ac_ext
4915
mlcreech94984912008-03-04 19:03:08 +00004916 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann9bc8b932004-02-29 15:18:31 +00004917 # can be detected and how.
4918 cat >conftest.$ac_ext <<_ACEOF
4919/* confdefs.h. */
4920_ACEOF
4921cat confdefs.h >>conftest.$ac_ext
4922cat >>conftest.$ac_ext <<_ACEOF
4923/* end confdefs.h. */
4924#include <ac_nonexistent.h>
4925_ACEOF
mlcreech94984912008-03-04 19:03:08 +00004926if { (ac_try="$ac_cpp conftest.$ac_ext"
4927case "(($ac_try" in
4928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929 *) ac_try_echo=$ac_try;;
4930esac
4931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004933 ac_status=$?
4934 grep -v '^ *+' conftest.er1 >conftest.err
4935 rm -f conftest.er1
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004938 (exit $ac_status); } >/dev/null && {
4939 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4940 test ! -s conftest.err
4941 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004942 # Broken: success on invalid input.
4943continue
4944else
4945 echo "$as_me: failed program was:" >&5
4946sed 's/^/| /' conftest.$ac_ext >&5
4947
4948 # Passes both tests.
4949ac_preproc_ok=:
4950break
4951fi
mlcreech94984912008-03-04 19:03:08 +00004952
a.rottmann9bc8b932004-02-29 15:18:31 +00004953rm -f conftest.err conftest.$ac_ext
4954
4955done
4956# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4957rm -f conftest.err conftest.$ac_ext
4958if $ac_preproc_ok; then
4959 break
4960fi
4961
4962 done
4963 ac_cv_prog_CXXCPP=$CXXCPP
4964
4965fi
4966 CXXCPP=$ac_cv_prog_CXXCPP
4967else
4968 ac_cv_prog_CXXCPP=$CXXCPP
4969fi
mlcreech94984912008-03-04 19:03:08 +00004970{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
4971echo "${ECHO_T}$CXXCPP" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004972ac_preproc_ok=false
4973for ac_cxx_preproc_warn_flag in '' yes
4974do
4975 # Use a header file that comes with gcc, so configuring glibc
4976 # with a fresh cross-compiler works.
4977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4978 # <limits.h> exists even on freestanding compilers.
4979 # On the NeXT, cc -E runs the code through the compiler's parser,
4980 # not just through cpp. "Syntax error" is here to catch this case.
4981 cat >conftest.$ac_ext <<_ACEOF
4982/* confdefs.h. */
4983_ACEOF
4984cat confdefs.h >>conftest.$ac_ext
4985cat >>conftest.$ac_ext <<_ACEOF
4986/* end confdefs.h. */
4987#ifdef __STDC__
4988# include <limits.h>
4989#else
4990# include <assert.h>
4991#endif
4992 Syntax error
4993_ACEOF
mlcreech94984912008-03-04 19:03:08 +00004994if { (ac_try="$ac_cpp conftest.$ac_ext"
4995case "(($ac_try" in
4996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997 *) ac_try_echo=$ac_try;;
4998esac
4999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00005001 ac_status=$?
5002 grep -v '^ *+' conftest.er1 >conftest.err
5003 rm -f conftest.er1
5004 cat conftest.err >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00005006 (exit $ac_status); } >/dev/null && {
5007 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5008 test ! -s conftest.err
5009 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005010 :
5011else
5012 echo "$as_me: failed program was:" >&5
5013sed 's/^/| /' conftest.$ac_ext >&5
5014
5015 # Broken: fails on valid input.
5016continue
5017fi
mlcreech94984912008-03-04 19:03:08 +00005018
a.rottmann9bc8b932004-02-29 15:18:31 +00005019rm -f conftest.err conftest.$ac_ext
5020
mlcreech94984912008-03-04 19:03:08 +00005021 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann9bc8b932004-02-29 15:18:31 +00005022 # can be detected and how.
5023 cat >conftest.$ac_ext <<_ACEOF
5024/* confdefs.h. */
5025_ACEOF
5026cat confdefs.h >>conftest.$ac_ext
5027cat >>conftest.$ac_ext <<_ACEOF
5028/* end confdefs.h. */
5029#include <ac_nonexistent.h>
5030_ACEOF
mlcreech94984912008-03-04 19:03:08 +00005031if { (ac_try="$ac_cpp conftest.$ac_ext"
5032case "(($ac_try" in
5033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5034 *) ac_try_echo=$ac_try;;
5035esac
5036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00005038 ac_status=$?
5039 grep -v '^ *+' conftest.er1 >conftest.err
5040 rm -f conftest.er1
5041 cat conftest.err >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00005043 (exit $ac_status); } >/dev/null && {
5044 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5045 test ! -s conftest.err
5046 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005047 # Broken: success on invalid input.
5048continue
5049else
5050 echo "$as_me: failed program was:" >&5
5051sed 's/^/| /' conftest.$ac_ext >&5
5052
5053 # Passes both tests.
5054ac_preproc_ok=:
5055break
5056fi
mlcreech94984912008-03-04 19:03:08 +00005057
a.rottmann9bc8b932004-02-29 15:18:31 +00005058rm -f conftest.err conftest.$ac_ext
5059
5060done
5061# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5062rm -f conftest.err conftest.$ac_ext
5063if $ac_preproc_ok; then
5064 :
5065else
5066 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5067See \`config.log' for more details." >&5
5068echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5069See \`config.log' for more details." >&2;}
5070 { (exit 1); exit 1; }; }
5071fi
5072
mlcreech94984912008-03-04 19:03:08 +00005073ac_ext=cpp
a.rottmann9bc8b932004-02-29 15:18:31 +00005074ac_cpp='$CXXCPP $CPPFLAGS'
5075ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5076ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5077ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5078
vapier7f19c022007-02-17 14:46:31 +00005079fi
5080
a.rottmann9bc8b932004-02-29 15:18:31 +00005081
5082ac_ext=f
5083ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5084ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5085ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5086if test -n "$ac_tool_prefix"; then
mlcreech94984912008-03-04 19:03:08 +00005087 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
a.rottmann9bc8b932004-02-29 15:18:31 +00005088 do
5089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5090set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005091{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005093if test "${ac_cv_prog_F77+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5095else
5096 if test -n "$F77"; then
5097 ac_cv_prog_F77="$F77" # Let the user override the test.
5098else
5099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100for as_dir in $PATH
5101do
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005106 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 break 2
5109 fi
5110done
5111done
mlcreech94984912008-03-04 19:03:08 +00005112IFS=$as_save_IFS
a.rottmann9bc8b932004-02-29 15:18:31 +00005113
5114fi
5115fi
5116F77=$ac_cv_prog_F77
5117if test -n "$F77"; then
mlcreech94984912008-03-04 19:03:08 +00005118 { echo "$as_me:$LINENO: result: $F77" >&5
5119echo "${ECHO_T}$F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005120else
mlcreech94984912008-03-04 19:03:08 +00005121 { echo "$as_me:$LINENO: result: no" >&5
5122echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005123fi
5124
mlcreech94984912008-03-04 19:03:08 +00005125
a.rottmann9bc8b932004-02-29 15:18:31 +00005126 test -n "$F77" && break
5127 done
5128fi
5129if test -z "$F77"; then
5130 ac_ct_F77=$F77
mlcreech94984912008-03-04 19:03:08 +00005131 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
a.rottmann9bc8b932004-02-29 15:18:31 +00005132do
5133 # Extract the first word of "$ac_prog", so it can be a program name with args.
5134set dummy $ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005135{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005137if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5139else
5140 if test -n "$ac_ct_F77"; then
5141 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5142else
5143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144for as_dir in $PATH
5145do
5146 IFS=$as_save_IFS
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005150 ac_cv_prog_ac_ct_F77="$ac_prog"
5151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 break 2
5153 fi
5154done
5155done
mlcreech94984912008-03-04 19:03:08 +00005156IFS=$as_save_IFS
a.rottmann9bc8b932004-02-29 15:18:31 +00005157
5158fi
5159fi
5160ac_ct_F77=$ac_cv_prog_ac_ct_F77
5161if test -n "$ac_ct_F77"; then
mlcreech94984912008-03-04 19:03:08 +00005162 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5163echo "${ECHO_T}$ac_ct_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005164else
mlcreech94984912008-03-04 19:03:08 +00005165 { echo "$as_me:$LINENO: result: no" >&5
5166echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005167fi
5168
mlcreech94984912008-03-04 19:03:08 +00005169
a.rottmann9bc8b932004-02-29 15:18:31 +00005170 test -n "$ac_ct_F77" && break
5171done
5172
mlcreech94984912008-03-04 19:03:08 +00005173 if test "x$ac_ct_F77" = x; then
5174 F77=""
5175 else
5176 case $cross_compiling:$ac_tool_warned in
5177yes:)
5178{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5179whose name does not start with the host triplet. If you think this
5180configuration is useful to you, please write to autoconf@gnu.org." >&5
5181echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5182whose name does not start with the host triplet. If you think this
5183configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5184ac_tool_warned=yes ;;
5185esac
5186 F77=$ac_ct_F77
5187 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005188fi
5189
5190
5191# Provide some information about the compiler.
mlcreech94984912008-03-04 19:03:08 +00005192echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005193ac_compiler=`set X $ac_compile; echo $2`
mlcreech94984912008-03-04 19:03:08 +00005194{ (ac_try="$ac_compiler --version >&5"
5195case "(($ac_try" in
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5198esac
5199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200 (eval "$ac_compiler --version >&5") 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005201 ac_status=$?
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }
mlcreech94984912008-03-04 19:03:08 +00005204{ (ac_try="$ac_compiler -v >&5"
5205case "(($ac_try" in
5206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207 *) ac_try_echo=$ac_try;;
5208esac
5209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210 (eval "$ac_compiler -v >&5") 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005211 ac_status=$?
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }
mlcreech94984912008-03-04 19:03:08 +00005214{ (ac_try="$ac_compiler -V >&5"
5215case "(($ac_try" in
5216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5217 *) ac_try_echo=$ac_try;;
5218esac
5219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5220 (eval "$ac_compiler -V >&5") 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005221 ac_status=$?
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }
5224rm -f a.out
5225
5226# If we don't use `.F' as extension, the preprocessor is not run on the
5227# input file. (Note that this only needs to work for GNU compilers.)
5228ac_save_ext=$ac_ext
5229ac_ext=F
mlcreech94984912008-03-04 19:03:08 +00005230{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5231echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005232if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5234else
5235 cat >conftest.$ac_ext <<_ACEOF
5236 program main
5237#ifndef __GNUC__
5238 choke me
5239#endif
5240
5241 end
5242_ACEOF
5243rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00005244if { (ac_try="$ac_compile"
5245case "(($ac_try" in
5246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247 *) ac_try_echo=$ac_try;;
5248esac
5249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250 (eval "$ac_compile") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00005251 ac_status=$?
5252 grep -v '^ *+' conftest.er1 >conftest.err
5253 rm -f conftest.er1
5254 cat conftest.err >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00005256 (exit $ac_status); } && {
5257 test -z "$ac_f77_werror_flag" ||
5258 test ! -s conftest.err
5259 } && test -s conftest.$ac_objext; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005260 ac_compiler_gnu=yes
5261else
5262 echo "$as_me: failed program was:" >&5
5263sed 's/^/| /' conftest.$ac_ext >&5
5264
mlcreech94984912008-03-04 19:03:08 +00005265 ac_compiler_gnu=no
a.rottmann9bc8b932004-02-29 15:18:31 +00005266fi
mlcreech94984912008-03-04 19:03:08 +00005267
5268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005269ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5270
5271fi
mlcreech94984912008-03-04 19:03:08 +00005272{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5273echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005274ac_ext=$ac_save_ext
5275ac_test_FFLAGS=${FFLAGS+set}
5276ac_save_FFLAGS=$FFLAGS
5277FFLAGS=
mlcreech94984912008-03-04 19:03:08 +00005278{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5279echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005280if test "${ac_cv_prog_f77_g+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5282else
5283 FFLAGS=-g
5284cat >conftest.$ac_ext <<_ACEOF
5285 program main
5286
5287 end
5288_ACEOF
5289rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00005290if { (ac_try="$ac_compile"
5291case "(($ac_try" in
5292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5293 *) ac_try_echo=$ac_try;;
5294esac
5295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5296 (eval "$ac_compile") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00005297 ac_status=$?
5298 grep -v '^ *+' conftest.er1 >conftest.err
5299 rm -f conftest.er1
5300 cat conftest.err >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00005302 (exit $ac_status); } && {
5303 test -z "$ac_f77_werror_flag" ||
5304 test ! -s conftest.err
5305 } && test -s conftest.$ac_objext; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005306 ac_cv_prog_f77_g=yes
5307else
5308 echo "$as_me: failed program was:" >&5
5309sed 's/^/| /' conftest.$ac_ext >&5
5310
mlcreech94984912008-03-04 19:03:08 +00005311 ac_cv_prog_f77_g=no
a.rottmann9bc8b932004-02-29 15:18:31 +00005312fi
mlcreech94984912008-03-04 19:03:08 +00005313
5314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005315
5316fi
mlcreech94984912008-03-04 19:03:08 +00005317{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5318echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005319if test "$ac_test_FFLAGS" = set; then
5320 FFLAGS=$ac_save_FFLAGS
5321elif test $ac_cv_prog_f77_g = yes; then
5322 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5323 FFLAGS="-g -O2"
5324 else
5325 FFLAGS="-g"
5326 fi
5327else
5328 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5329 FFLAGS="-O2"
5330 else
5331 FFLAGS=
drh71eb93e2001-09-28 01:34:43 +00005332 fi
5333fi
5334
a.rottmann9bc8b932004-02-29 15:18:31 +00005335G77=`test $ac_compiler_gnu = yes && echo yes`
5336ac_ext=c
5337ac_cpp='$CPP $CPPFLAGS'
5338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5340ac_compiler_gnu=$ac_cv_c_compiler_gnu
5341
5342
5343
5344# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5345
5346# find the maximum length of command line arguments
mlcreech94984912008-03-04 19:03:08 +00005347{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5348echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005349if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5351else
5352 i=0
vapier7f19c022007-02-17 14:46:31 +00005353 teststring="ABCD"
a.rottmann9bc8b932004-02-29 15:18:31 +00005354
5355 case $build_os in
5356 msdosdjgpp*)
5357 # On DJGPP, this test can blow up pretty badly due to problems in libc
5358 # (any single argument exceeding 2000 bytes causes a buffer overrun
5359 # during glob expansion). Even if it were fixed, the result of this
5360 # check would be larger than it should be.
5361 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5362 ;;
5363
5364 gnu*)
5365 # Under GNU Hurd, this test is not required because there is
5366 # no limit to the length of command line arguments.
5367 # Libtool will interpret -1 as no limit whatsoever
5368 lt_cv_sys_max_cmd_len=-1;
5369 ;;
5370
5371 cygwin* | mingw*)
5372 # On Win9x/ME, this test blows up -- it succeeds, but takes
5373 # about 5 minutes as the teststring grows exponentially.
5374 # Worse, since 9x/ME are not pre-emptively multitasking,
5375 # you end up with a "frozen" computer, even though with patience
5376 # the test eventually succeeds (with a max line length of 256k).
5377 # Instead, let's just punt: use the minimum linelength reported by
5378 # all of the supported platforms: 8192 (on NT/2K/XP).
5379 lt_cv_sys_max_cmd_len=8192;
5380 ;;
5381
5382 amigaos*)
5383 # On AmigaOS with pdksh, this test takes hours, literally.
5384 # So we just punt and use a minimum line length of 8192.
5385 lt_cv_sys_max_cmd_len=8192;
5386 ;;
5387
vapier7f19c022007-02-17 14:46:31 +00005388 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5389 # This has been around since 386BSD, at least. Likely further.
5390 if test -x /sbin/sysctl; then
5391 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5392 elif test -x /usr/sbin/sysctl; then
5393 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5394 else
5395 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5396 fi
5397 # And add a safety zone
5398 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5400 ;;
5401
5402 interix*)
5403 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5404 lt_cv_sys_max_cmd_len=196608
5405 ;;
5406
5407 osf*)
5408 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5409 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5410 # nice to cause kernel panics so lets avoid the loop below.
5411 # First set a reasonable default.
5412 lt_cv_sys_max_cmd_len=16384
5413 #
5414 if test -x /sbin/sysconfig; then
5415 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5416 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5417 esac
5418 fi
5419 ;;
5420 sco3.2v5*)
5421 lt_cv_sys_max_cmd_len=102400
5422 ;;
5423 sysv5* | sco5v6* | sysv4.2uw2*)
5424 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5425 if test -n "$kargmax"; then
5426 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5427 else
5428 lt_cv_sys_max_cmd_len=32768
5429 fi
5430 ;;
5431 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00005432 # If test is not a shell built-in, we'll probably end up computing a
5433 # maximum length that is only half of the actual maximum length, but
5434 # we can't tell.
vapier7f19c022007-02-17 14:46:31 +00005435 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5436 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5437 = "XX$teststring") >/dev/null 2>&1 &&
5438 new_result=`expr "X$teststring" : ".*" 2>&1` &&
a.rottmann9bc8b932004-02-29 15:18:31 +00005439 lt_cv_sys_max_cmd_len=$new_result &&
5440 test $i != 17 # 1/2 MB should be enough
5441 do
5442 i=`expr $i + 1`
vapier7f19c022007-02-17 14:46:31 +00005443 teststring=$teststring$teststring
a.rottmann9bc8b932004-02-29 15:18:31 +00005444 done
vapier7f19c022007-02-17 14:46:31 +00005445 teststring=
a.rottmann9bc8b932004-02-29 15:18:31 +00005446 # Add a significant safety factor because C++ compilers can tack on massive
5447 # amounts of additional arguments before passing them to the linker.
5448 # It appears as though 1/2 is a usable value.
5449 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5450 ;;
5451 esac
5452
5453fi
5454
5455if test -n $lt_cv_sys_max_cmd_len ; then
mlcreech94984912008-03-04 19:03:08 +00005456 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5457echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005458else
mlcreech94984912008-03-04 19:03:08 +00005459 { echo "$as_me:$LINENO: result: none" >&5
5460echo "${ECHO_T}none" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005461fi
5462
5463
5464
5465
5466# Check for command to grab the raw symbol name followed by C symbol from nm.
mlcreech94984912008-03-04 19:03:08 +00005467{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5468echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005469if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5471else
5472
5473# These are sane defaults that work on at least a few old systems.
5474# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5475
5476# Character class describing NM global symbol codes.
5477symcode='[BCDEGRST]'
5478
5479# Regexp to match symbols that can be accessed directly from C.
5480sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5481
a.rottmann9bc8b932004-02-29 15:18:31 +00005482# Transform an extracted symbol line into a proper C declaration
5483lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5484
5485# Transform an extracted symbol line into symbol name and symbol address
5486lt_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'"
5487
5488# Define system-specific variables.
5489case $host_os in
5490aix*)
5491 symcode='[BCDT]'
5492 ;;
5493cygwin* | mingw* | pw32*)
5494 symcode='[ABCDGISTW]'
5495 ;;
5496hpux*) # Its linker distinguishes data from code symbols
5497 if test "$host_cpu" = ia64; then
5498 symcode='[ABCDEGRST]'
5499 fi
5500 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5501 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'"
5502 ;;
vapier7f19c022007-02-17 14:46:31 +00005503linux*)
5504 if test "$host_cpu" = ia64; then
5505 symcode='[ABCDGIRSTW]'
5506 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5507 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'"
5508 fi
5509 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005510irix* | nonstopux*)
5511 symcode='[BCDEGRST]'
5512 ;;
5513osf*)
5514 symcode='[BCDEGQRST]'
5515 ;;
vapier7f19c022007-02-17 14:46:31 +00005516solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005517 symcode='[BDRT]'
5518 ;;
vapier7f19c022007-02-17 14:46:31 +00005519sco3.2v5*)
5520 symcode='[DT]'
5521 ;;
5522sysv4.2uw2*)
5523 symcode='[DT]'
5524 ;;
5525sysv5* | sco5v6* | unixware* | OpenUNIX*)
5526 symcode='[ABDT]'
5527 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005528sysv4)
5529 symcode='[DFNSTU]'
5530 ;;
5531esac
5532
5533# Handle CRLF in mingw tool chain
5534opt_cr=
5535case $build_os in
5536mingw*)
5537 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5538 ;;
5539esac
5540
5541# If we're using GNU nm, then use its standard symbol codes.
5542case `$NM -V 2>&1` in
5543*GNU* | *'with BFD'*)
5544 symcode='[ABCDGIRSTW]' ;;
5545esac
5546
5547# Try without a prefix undercore, then with it.
5548for ac_symprfx in "" "_"; do
5549
vapier7f19c022007-02-17 14:46:31 +00005550 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5551 symxfrm="\\1 $ac_symprfx\\2 \\2"
5552
a.rottmann9bc8b932004-02-29 15:18:31 +00005553 # Write the raw and C identifiers.
vapier7f19c022007-02-17 14:46:31 +00005554 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
a.rottmann9bc8b932004-02-29 15:18:31 +00005555
5556 # Check to see that the pipe works correctly.
5557 pipe_works=no
5558
5559 rm -f conftest*
5560 cat > conftest.$ac_ext <<EOF
5561#ifdef __cplusplus
5562extern "C" {
5563#endif
5564char nm_test_var;
5565void nm_test_func(){}
5566#ifdef __cplusplus
5567}
5568#endif
5569int main(){nm_test_var='a';nm_test_func();return(0);}
5570EOF
5571
5572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5573 (eval $ac_compile) 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; then
5577 # Now try to grab the symbols.
5578 nlist=conftest.nm
5579 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5580 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5581 ac_status=$?
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } && test -s "$nlist"; then
5584 # Try sorting and uniquifying the output.
5585 if sort "$nlist" | uniq > "$nlist"T; then
5586 mv -f "$nlist"T "$nlist"
5587 else
5588 rm -f "$nlist"T
5589 fi
5590
5591 # Make sure that we snagged all the symbols we need.
5592 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5593 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5594 cat <<EOF > conftest.$ac_ext
5595#ifdef __cplusplus
5596extern "C" {
5597#endif
5598
5599EOF
5600 # Now generate the symbol file.
5601 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5602
5603 cat <<EOF >> conftest.$ac_ext
5604#if defined (__STDC__) && __STDC__
5605# define lt_ptr_t void *
5606#else
5607# define lt_ptr_t char *
5608# define const
5609#endif
5610
5611/* The mapping between symbol names and symbols. */
5612const struct {
5613 const char *name;
5614 lt_ptr_t address;
5615}
5616lt_preloaded_symbols[] =
5617{
5618EOF
5619 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5620 cat <<\EOF >> conftest.$ac_ext
5621 {0, (lt_ptr_t) 0}
5622};
5623
5624#ifdef __cplusplus
5625}
5626#endif
5627EOF
5628 # Now try linking the two files.
5629 mv conftest.$ac_objext conftstm.$ac_objext
5630 lt_save_LIBS="$LIBS"
5631 lt_save_CFLAGS="$CFLAGS"
5632 LIBS="conftstm.$ac_objext"
5633 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5635 (eval $ac_link) 2>&5
5636 ac_status=$?
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5639 pipe_works=yes
5640 fi
5641 LIBS="$lt_save_LIBS"
5642 CFLAGS="$lt_save_CFLAGS"
5643 else
5644 echo "cannot find nm_test_func in $nlist" >&5
5645 fi
5646 else
5647 echo "cannot find nm_test_var in $nlist" >&5
5648 fi
5649 else
5650 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5651 fi
5652 else
5653 echo "$progname: failed program was:" >&5
5654 cat conftest.$ac_ext >&5
5655 fi
5656 rm -f conftest* conftst*
5657
5658 # Do not use the global_symbol_pipe unless it works.
5659 if test "$pipe_works" = yes; then
5660 break
5661 else
5662 lt_cv_sys_global_symbol_pipe=
5663 fi
5664done
5665
5666fi
5667
5668if test -z "$lt_cv_sys_global_symbol_pipe"; then
5669 lt_cv_sys_global_symbol_to_cdecl=
5670fi
5671if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
mlcreech94984912008-03-04 19:03:08 +00005672 { echo "$as_me:$LINENO: result: failed" >&5
5673echo "${ECHO_T}failed" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005674else
mlcreech94984912008-03-04 19:03:08 +00005675 { echo "$as_me:$LINENO: result: ok" >&5
5676echo "${ECHO_T}ok" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005677fi
5678
mlcreech94984912008-03-04 19:03:08 +00005679{ echo "$as_me:$LINENO: checking for objdir" >&5
5680echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005681if test "${lt_cv_objdir+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683else
5684 rm -f .libs 2>/dev/null
5685mkdir .libs 2>/dev/null
5686if test -d .libs; then
5687 lt_cv_objdir=.libs
5688else
5689 # MS-DOS does not allow filenames that begin with a dot.
5690 lt_cv_objdir=_libs
5691fi
5692rmdir .libs 2>/dev/null
5693fi
mlcreech94984912008-03-04 19:03:08 +00005694{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5695echo "${ECHO_T}$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005696objdir=$lt_cv_objdir
5697
5698
5699
5700
5701
5702case $host_os in
5703aix3*)
5704 # AIX sometimes has problems with the GCC collect2 program. For some
5705 # reason, if we set the COLLECT_NAMES environment variable, the problems
5706 # vanish in a puff of smoke.
5707 if test "X${COLLECT_NAMES+set}" != Xset; then
5708 COLLECT_NAMES=
5709 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00005710 fi
5711 ;;
5712esac
5713
a.rottmann9bc8b932004-02-29 15:18:31 +00005714# Sed substitution that helps us do robust quoting. It backslashifies
5715# metacharacters that are still active within double-quoted strings.
vapier7f19c022007-02-17 14:46:31 +00005716Xsed='sed -e 1s/^X//'
a.rottmann9bc8b932004-02-29 15:18:31 +00005717sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5718
5719# Same as above, but do not quote variable references.
5720double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5721
5722# Sed substitution to delay expansion of an escaped shell variable in a
5723# double_quote_subst'ed string.
5724delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5725
5726# Sed substitution to avoid accidental globbing in evaled expressions
5727no_glob_subst='s/\*/\\\*/g'
5728
5729# Constants:
5730rm="rm -f"
5731
5732# Global variables:
5733default_ofile=libtool
5734can_build_shared=yes
5735
vapier7f19c022007-02-17 14:46:31 +00005736# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00005737# which needs '.lib').
5738libext=a
5739ltmain="$ac_aux_dir/ltmain.sh"
5740ofile="$default_ofile"
5741with_gnu_ld="$lt_cv_prog_gnu_ld"
5742
5743if test -n "$ac_tool_prefix"; then
5744 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5745set dummy ${ac_tool_prefix}ar; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005746{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005748if test "${ac_cv_prog_AR+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5750else
5751 if test -n "$AR"; then
5752 ac_cv_prog_AR="$AR" # Let the user override the test.
5753else
5754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755for as_dir in $PATH
5756do
5757 IFS=$as_save_IFS
5758 test -z "$as_dir" && as_dir=.
5759 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005761 ac_cv_prog_AR="${ac_tool_prefix}ar"
5762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5763 break 2
5764 fi
5765done
5766done
mlcreech94984912008-03-04 19:03:08 +00005767IFS=$as_save_IFS
a.rottmann9bc8b932004-02-29 15:18:31 +00005768
5769fi
5770fi
5771AR=$ac_cv_prog_AR
5772if test -n "$AR"; then
mlcreech94984912008-03-04 19:03:08 +00005773 { echo "$as_me:$LINENO: result: $AR" >&5
5774echo "${ECHO_T}$AR" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005775else
mlcreech94984912008-03-04 19:03:08 +00005776 { echo "$as_me:$LINENO: result: no" >&5
5777echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005778fi
5779
mlcreech94984912008-03-04 19:03:08 +00005780
a.rottmann9bc8b932004-02-29 15:18:31 +00005781fi
5782if test -z "$ac_cv_prog_AR"; then
5783 ac_ct_AR=$AR
5784 # Extract the first word of "ar", so it can be a program name with args.
5785set dummy ar; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005786{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005788if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5790else
5791 if test -n "$ac_ct_AR"; then
5792 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5793else
5794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795for as_dir in $PATH
5796do
5797 IFS=$as_save_IFS
5798 test -z "$as_dir" && as_dir=.
5799 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005801 ac_cv_prog_ac_ct_AR="ar"
5802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5803 break 2
5804 fi
5805done
5806done
mlcreech94984912008-03-04 19:03:08 +00005807IFS=$as_save_IFS
a.rottmann9bc8b932004-02-29 15:18:31 +00005808
a.rottmann9bc8b932004-02-29 15:18:31 +00005809fi
5810fi
5811ac_ct_AR=$ac_cv_prog_ac_ct_AR
5812if test -n "$ac_ct_AR"; then
mlcreech94984912008-03-04 19:03:08 +00005813 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5814echo "${ECHO_T}$ac_ct_AR" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005815else
mlcreech94984912008-03-04 19:03:08 +00005816 { echo "$as_me:$LINENO: result: no" >&5
5817echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005818fi
5819
mlcreech94984912008-03-04 19:03:08 +00005820 if test "x$ac_ct_AR" = x; then
5821 AR="false"
5822 else
5823 case $cross_compiling:$ac_tool_warned in
5824yes:)
5825{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5826whose name does not start with the host triplet. If you think this
5827configuration is useful to you, please write to autoconf@gnu.org." >&5
5828echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5829whose name does not start with the host triplet. If you think this
5830configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5831ac_tool_warned=yes ;;
5832esac
5833 AR=$ac_ct_AR
5834 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005835else
5836 AR="$ac_cv_prog_AR"
5837fi
5838
a.rottmann84e63352003-03-24 09:42:16 +00005839if test -n "$ac_tool_prefix"; then
5840 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5841set dummy ${ac_tool_prefix}ranlib; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005842{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005844if test "${ac_cv_prog_RANLIB+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5846else
5847 if test -n "$RANLIB"; then
5848 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5849else
5850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851for as_dir in $PATH
5852do
5853 IFS=$as_save_IFS
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00005857 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5859 break 2
5860 fi
5861done
5862done
mlcreech94984912008-03-04 19:03:08 +00005863IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00005864
5865fi
5866fi
5867RANLIB=$ac_cv_prog_RANLIB
5868if test -n "$RANLIB"; then
mlcreech94984912008-03-04 19:03:08 +00005869 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5870echo "${ECHO_T}$RANLIB" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005871else
mlcreech94984912008-03-04 19:03:08 +00005872 { echo "$as_me:$LINENO: result: no" >&5
5873echo "${ECHO_T}no" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005874fi
5875
mlcreech94984912008-03-04 19:03:08 +00005876
a.rottmann84e63352003-03-24 09:42:16 +00005877fi
5878if test -z "$ac_cv_prog_RANLIB"; then
5879 ac_ct_RANLIB=$RANLIB
5880 # Extract the first word of "ranlib", so it can be a program name with args.
5881set dummy ranlib; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005882{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005884if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5886else
5887 if test -n "$ac_ct_RANLIB"; then
5888 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5889else
5890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891for as_dir in $PATH
5892do
5893 IFS=$as_save_IFS
5894 test -z "$as_dir" && as_dir=.
5895 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00005897 ac_cv_prog_ac_ct_RANLIB="ranlib"
5898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 break 2
5900 fi
5901done
5902done
mlcreech94984912008-03-04 19:03:08 +00005903IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00005904
a.rottmann84e63352003-03-24 09:42:16 +00005905fi
5906fi
5907ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5908if test -n "$ac_ct_RANLIB"; then
mlcreech94984912008-03-04 19:03:08 +00005909 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5910echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005911else
mlcreech94984912008-03-04 19:03:08 +00005912 { echo "$as_me:$LINENO: result: no" >&5
5913echo "${ECHO_T}no" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005914fi
5915
mlcreech94984912008-03-04 19:03:08 +00005916 if test "x$ac_ct_RANLIB" = x; then
5917 RANLIB=":"
5918 else
5919 case $cross_compiling:$ac_tool_warned in
5920yes:)
5921{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5922whose name does not start with the host triplet. If you think this
5923configuration is useful to you, please write to autoconf@gnu.org." >&5
5924echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5925whose name does not start with the host triplet. If you think this
5926configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5927ac_tool_warned=yes ;;
5928esac
5929 RANLIB=$ac_ct_RANLIB
5930 fi
a.rottmann84e63352003-03-24 09:42:16 +00005931else
5932 RANLIB="$ac_cv_prog_RANLIB"
5933fi
5934
5935if test -n "$ac_tool_prefix"; then
5936 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5937set dummy ${ac_tool_prefix}strip; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005938{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005940if test "${ac_cv_prog_STRIP+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
5942else
5943 if test -n "$STRIP"; then
5944 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5945else
5946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947for as_dir in $PATH
5948do
5949 IFS=$as_save_IFS
5950 test -z "$as_dir" && as_dir=.
5951 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00005953 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5955 break 2
5956 fi
5957done
5958done
mlcreech94984912008-03-04 19:03:08 +00005959IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00005960
5961fi
5962fi
5963STRIP=$ac_cv_prog_STRIP
5964if test -n "$STRIP"; then
mlcreech94984912008-03-04 19:03:08 +00005965 { echo "$as_me:$LINENO: result: $STRIP" >&5
5966echo "${ECHO_T}$STRIP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005967else
mlcreech94984912008-03-04 19:03:08 +00005968 { echo "$as_me:$LINENO: result: no" >&5
5969echo "${ECHO_T}no" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005970fi
5971
mlcreech94984912008-03-04 19:03:08 +00005972
a.rottmann84e63352003-03-24 09:42:16 +00005973fi
5974if test -z "$ac_cv_prog_STRIP"; then
5975 ac_ct_STRIP=$STRIP
5976 # Extract the first word of "strip", so it can be a program name with args.
5977set dummy strip; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005978{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005980if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5982else
5983 if test -n "$ac_ct_STRIP"; then
5984 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5985else
5986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987for as_dir in $PATH
5988do
5989 IFS=$as_save_IFS
5990 test -z "$as_dir" && as_dir=.
5991 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00005993 ac_cv_prog_ac_ct_STRIP="strip"
5994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5995 break 2
5996 fi
5997done
5998done
mlcreech94984912008-03-04 19:03:08 +00005999IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00006000
a.rottmann84e63352003-03-24 09:42:16 +00006001fi
6002fi
6003ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6004if test -n "$ac_ct_STRIP"; then
mlcreech94984912008-03-04 19:03:08 +00006005 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6006echo "${ECHO_T}$ac_ct_STRIP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006007else
mlcreech94984912008-03-04 19:03:08 +00006008 { echo "$as_me:$LINENO: result: no" >&5
6009echo "${ECHO_T}no" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006010fi
6011
mlcreech94984912008-03-04 19:03:08 +00006012 if test "x$ac_ct_STRIP" = x; then
6013 STRIP=":"
6014 else
6015 case $cross_compiling:$ac_tool_warned in
6016yes:)
6017{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6018whose name does not start with the host triplet. If you think this
6019configuration is useful to you, please write to autoconf@gnu.org." >&5
6020echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6021whose name does not start with the host triplet. If you think this
6022configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6023ac_tool_warned=yes ;;
6024esac
6025 STRIP=$ac_ct_STRIP
6026 fi
a.rottmann84e63352003-03-24 09:42:16 +00006027else
6028 STRIP="$ac_cv_prog_STRIP"
6029fi
6030
6031
a.rottmann84e63352003-03-24 09:42:16 +00006032old_CC="$CC"
6033old_CFLAGS="$CFLAGS"
6034
6035# Set sane defaults for various variables
6036test -z "$AR" && AR=ar
6037test -z "$AR_FLAGS" && AR_FLAGS=cru
6038test -z "$AS" && AS=as
6039test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006040test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006041test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006042test -z "$DLLTOOL" && DLLTOOL=dlltool
6043test -z "$LD" && LD=ld
6044test -z "$LN_S" && LN_S="ln -s"
6045test -z "$MAGIC_CMD" && MAGIC_CMD=file
6046test -z "$NM" && NM=nm
a.rottmann9bc8b932004-02-29 15:18:31 +00006047test -z "$SED" && SED=sed
a.rottmann84e63352003-03-24 09:42:16 +00006048test -z "$OBJDUMP" && OBJDUMP=objdump
6049test -z "$RANLIB" && RANLIB=:
6050test -z "$STRIP" && STRIP=:
6051test -z "$ac_objext" && ac_objext=o
6052
a.rottmann84e63352003-03-24 09:42:16 +00006053# Determine commands to create old-style static archives.
6054old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6055old_postinstall_cmds='chmod 644 $oldlib'
6056old_postuninstall_cmds=
6057
6058if test -n "$RANLIB"; then
6059 case $host_os in
6060 openbsd*)
vapier7f19c022007-02-17 14:46:31 +00006061 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
a.rottmann84e63352003-03-24 09:42:16 +00006062 ;;
6063 *)
vapier7f19c022007-02-17 14:46:31 +00006064 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
a.rottmann84e63352003-03-24 09:42:16 +00006065 ;;
6066 esac
6067 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6068fi
6069
vapier7f19c022007-02-17 14:46:31 +00006070for cc_temp in $compiler""; do
6071 case $cc_temp in
6072 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6073 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6074 \-*) ;;
6075 *) break;;
6076 esac
6077done
6078cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6079
6080
a.rottmann9bc8b932004-02-29 15:18:31 +00006081# Only perform the check for file, if the check method requires it
6082case $deplibs_check_method in
6083file_magic*)
6084 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
mlcreech94984912008-03-04 19:03:08 +00006085 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6086echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006087if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00006089else
a.rottmann9bc8b932004-02-29 15:18:31 +00006090 case $MAGIC_CMD in
6091[\\/*] | ?:[\\/]*)
6092 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6093 ;;
6094*)
6095 lt_save_MAGIC_CMD="$MAGIC_CMD"
6096 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6097 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6098 for ac_dir in $ac_dummy; do
6099 IFS="$lt_save_ifs"
6100 test -z "$ac_dir" && ac_dir=.
6101 if test -f $ac_dir/${ac_tool_prefix}file; then
6102 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6103 if test -n "$file_magic_test_file"; then
6104 case $deplibs_check_method in
6105 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006106 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006107 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6108 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6109 $EGREP "$file_magic_regex" > /dev/null; then
6110 :
6111 else
6112 cat <<EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006113
a.rottmann9bc8b932004-02-29 15:18:31 +00006114*** Warning: the command libtool uses to detect shared libraries,
6115*** $file_magic_cmd, produces output that libtool cannot recognize.
6116*** The result is that libtool may fail to recognize shared libraries
6117*** as such. This will affect the creation of libtool libraries that
6118*** depend on shared libraries, but programs linked with such libtool
6119*** libraries will work regardless of this problem. Nevertheless, you
6120*** may want to report the problem to your system manager and/or to
6121*** bug-libtool@gnu.org
6122
6123EOF
6124 fi ;;
6125 esac
6126 fi
6127 break
6128 fi
6129 done
6130 IFS="$lt_save_ifs"
6131 MAGIC_CMD="$lt_save_MAGIC_CMD"
6132 ;;
6133esac
6134fi
6135
6136MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6137if test -n "$MAGIC_CMD"; then
mlcreech94984912008-03-04 19:03:08 +00006138 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6139echo "${ECHO_T}$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006140else
mlcreech94984912008-03-04 19:03:08 +00006141 { echo "$as_me:$LINENO: result: no" >&5
6142echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006143fi
6144
6145if test -z "$lt_cv_path_MAGIC_CMD"; then
6146 if test -n "$ac_tool_prefix"; then
mlcreech94984912008-03-04 19:03:08 +00006147 { echo "$as_me:$LINENO: checking for file" >&5
6148echo $ECHO_N "checking for file... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006149if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6151else
6152 case $MAGIC_CMD in
6153[\\/*] | ?:[\\/]*)
6154 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6155 ;;
6156*)
6157 lt_save_MAGIC_CMD="$MAGIC_CMD"
6158 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6159 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6160 for ac_dir in $ac_dummy; do
6161 IFS="$lt_save_ifs"
6162 test -z "$ac_dir" && ac_dir=.
6163 if test -f $ac_dir/file; then
6164 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6165 if test -n "$file_magic_test_file"; then
6166 case $deplibs_check_method in
6167 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006168 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006169 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6170 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6171 $EGREP "$file_magic_regex" > /dev/null; then
6172 :
6173 else
6174 cat <<EOF 1>&2
6175
6176*** Warning: the command libtool uses to detect shared libraries,
6177*** $file_magic_cmd, produces output that libtool cannot recognize.
6178*** The result is that libtool may fail to recognize shared libraries
6179*** as such. This will affect the creation of libtool libraries that
6180*** depend on shared libraries, but programs linked with such libtool
6181*** libraries will work regardless of this problem. Nevertheless, you
6182*** may want to report the problem to your system manager and/or to
6183*** bug-libtool@gnu.org
6184
6185EOF
6186 fi ;;
6187 esac
6188 fi
6189 break
6190 fi
6191 done
6192 IFS="$lt_save_ifs"
6193 MAGIC_CMD="$lt_save_MAGIC_CMD"
6194 ;;
6195esac
6196fi
6197
6198MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6199if test -n "$MAGIC_CMD"; then
mlcreech94984912008-03-04 19:03:08 +00006200 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6201echo "${ECHO_T}$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006202else
mlcreech94984912008-03-04 19:03:08 +00006203 { echo "$as_me:$LINENO: result: no" >&5
6204echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006205fi
6206
6207 else
6208 MAGIC_CMD=:
6209 fi
6210fi
6211
6212 fi
6213 ;;
6214esac
6215
6216enable_dlopen=no
6217enable_win32_dll=no
6218
mlcreech94984912008-03-04 19:03:08 +00006219# Check whether --enable-libtool-lock was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00006220if test "${enable_libtool_lock+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00006221 enableval=$enable_libtool_lock;
6222fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006223
a.rottmann9bc8b932004-02-29 15:18:31 +00006224test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
a.rottmann84e63352003-03-24 09:42:16 +00006225
6226
mlcreech94984912008-03-04 19:03:08 +00006227# Check whether --with-pic was given.
drh71eb93e2001-09-28 01:34:43 +00006228if test "${with_pic+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00006229 withval=$with_pic; pic_mode="$withval"
drh71eb93e2001-09-28 01:34:43 +00006230else
6231 pic_mode=default
mlcreech94984912008-03-04 19:03:08 +00006232fi
6233
drh71eb93e2001-09-28 01:34:43 +00006234test -z "$pic_mode" && pic_mode=default
6235
vapier7f19c022007-02-17 14:46:31 +00006236# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
6237#
6238# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
6239# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
6240# calls AC_LIBTOOL_CONFIG and creates libtool.
6241#
mlcreech94984912008-03-04 19:03:08 +00006242{ echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
6243echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +00006244if test "x$ltmain" = "x" ; then
mlcreech94984912008-03-04 19:03:08 +00006245 { echo "$as_me:$LINENO: result: no" >&5
6246echo "${ECHO_T}no" >&6; }
vapier7f19c022007-02-17 14:46:31 +00006247 { { echo "$as_me:$LINENO: error:
6248
6249*** [Gentoo] sanity check failed! ***
6250*** \$ltmain is not defined, please check the patch for consistency! ***
6251" >&5
6252echo "$as_me: error:
6253
6254*** [Gentoo] sanity check failed! ***
6255*** \$ltmain is not defined, please check the patch for consistency! ***
6256" >&2;}
6257 { (exit 1); exit 1; }; }
6258fi
6259gentoo_lt_version="1.5.22"
6260gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
6261if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
mlcreech94984912008-03-04 19:03:08 +00006262 { echo "$as_me:$LINENO: result: no" >&5
6263echo "${ECHO_T}no" >&6; }
vapier7f19c022007-02-17 14:46:31 +00006264 { { echo "$as_me:$LINENO: error:
6265
6266*** [Gentoo] sanity check failed! ***
6267*** libtool.m4 and ltmain.sh have a version mismatch! ***
6268*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6269
6270Please run:
6271
6272 libtoolize --copy --force
6273
6274if appropriate, please contact the maintainer of this
6275package (or your distribution) for help.
6276" >&5
6277echo "$as_me: error:
6278
6279*** [Gentoo] sanity check failed! ***
6280*** libtool.m4 and ltmain.sh have a version mismatch! ***
6281*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6282
6283Please run:
6284
6285 libtoolize --copy --force
6286
6287if appropriate, please contact the maintainer of this
6288package (or your distribution) for help.
6289" >&2;}
6290 { (exit 1); exit 1; }; }
6291else
mlcreech94984912008-03-04 19:03:08 +00006292 { echo "$as_me:$LINENO: result: yes" >&5
6293echo "${ECHO_T}yes" >&6; }
vapier7f19c022007-02-17 14:46:31 +00006294fi
6295
6296
a.rottmann9bc8b932004-02-29 15:18:31 +00006297# Use C for the default configuration in the libtool script
6298tagname=
6299lt_save_CC="$CC"
6300ac_ext=c
6301ac_cpp='$CPP $CPPFLAGS'
6302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6304ac_compiler_gnu=$ac_cv_c_compiler_gnu
6305
6306
6307# Source file extension for C test sources.
6308ac_ext=c
6309
6310# Object file extension for compiled C test sources.
6311objext=o
6312objext=$objext
6313
6314# Code to be used in simple compile tests
6315lt_simple_compile_test_code="int some_variable = 0;\n"
6316
6317# Code to be used in simple link tests
6318lt_simple_link_test_code='int main(){return(0);}\n'
6319
6320
6321# If no C compiler was specified, use CC.
6322LTCC=${LTCC-"$CC"}
6323
vapier7f19c022007-02-17 14:46:31 +00006324# If no C compiler flags were specified, use CFLAGS.
6325LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6326
a.rottmann9bc8b932004-02-29 15:18:31 +00006327# Allow CC to be a program name with arguments.
6328compiler=$CC
6329
6330
vapier7f19c022007-02-17 14:46:31 +00006331# save warnings/boilerplate of simple test code
6332ac_outfile=conftest.$ac_objext
6333printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6334eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6335_lt_compiler_boilerplate=`cat conftest.err`
6336$rm conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006337
vapier7f19c022007-02-17 14:46:31 +00006338ac_outfile=conftest.$ac_objext
6339printf "$lt_simple_link_test_code" >conftest.$ac_ext
6340eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6341_lt_linker_boilerplate=`cat conftest.err`
6342$rm conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006343
6344
6345
6346lt_prog_compiler_no_builtin_flag=
6347
6348if test "$GCC" = yes; then
6349 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6350
6351
mlcreech94984912008-03-04 19:03:08 +00006352{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6353echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006354if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6356else
6357 lt_cv_prog_compiler_rtti_exceptions=no
6358 ac_outfile=conftest.$ac_objext
6359 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6360 lt_compiler_flag="-fno-rtti -fno-exceptions"
6361 # Insert the option either (1) after the last *FLAGS variable, or
6362 # (2) before a word containing "conftest.", or (3) at the end.
6363 # Note that $ac_compile itself does not contain backslashes and begins
6364 # with a dollar sign (not a hyphen), so the echo should work correctly.
6365 # The option is referenced via a variable to avoid confusing sed.
6366 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006367 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6369 -e 's:$: $lt_compiler_flag:'`
mlcreecha4edab02008-03-06 04:14:17 +00006370 (eval echo "\"\$as_me:6370: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006371 (eval "$lt_compile" 2>conftest.err)
6372 ac_status=$?
6373 cat conftest.err >&5
mlcreecha4edab02008-03-06 04:14:17 +00006374 echo "$as_me:6374: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006375 if (exit $ac_status) && test -s "$ac_outfile"; then
6376 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006377 # So say no if there are warnings other than the usual output.
6378 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6379 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6380 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006381 lt_cv_prog_compiler_rtti_exceptions=yes
6382 fi
6383 fi
6384 $rm conftest*
6385
6386fi
mlcreech94984912008-03-04 19:03:08 +00006387{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6388echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006389
6390if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6391 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6392else
6393 :
6394fi
6395
6396fi
6397
6398lt_prog_compiler_wl=
6399lt_prog_compiler_pic=
6400lt_prog_compiler_static=
6401
mlcreech94984912008-03-04 19:03:08 +00006402{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6403echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006404
drh71eb93e2001-09-28 01:34:43 +00006405 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006406 lt_prog_compiler_wl='-Wl,'
6407 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006408
6409 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006410 aix*)
6411 # All AIX code is PIC.
6412 if test "$host_cpu" = ia64; then
6413 # AIX 5 now supports IA64 processor
6414 lt_prog_compiler_static='-Bstatic'
6415 fi
drh71eb93e2001-09-28 01:34:43 +00006416 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006417
drh71eb93e2001-09-28 01:34:43 +00006418 amigaos*)
6419 # FIXME: we need at least 68020 code to build shared libraries, but
6420 # adding the `-m68020' flag to GCC prevents building anything better,
6421 # like `-m68040'.
a.rottmann9bc8b932004-02-29 15:18:31 +00006422 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
drh71eb93e2001-09-28 01:34:43 +00006423 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006424
6425 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006426 # PIC is the default for these OSes.
6427 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006428
6429 mingw* | pw32* | os2*)
6430 # This hack is so that the source file can tell whether it is being
6431 # built for inclusion in a dll (and should export symbols for example).
6432 lt_prog_compiler_pic='-DDLL_EXPORT'
6433 ;;
6434
drh71eb93e2001-09-28 01:34:43 +00006435 darwin* | rhapsody*)
6436 # PIC is the default on this platform
6437 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006438 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006439 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006440
vapier7f19c022007-02-17 14:46:31 +00006441 interix3*)
6442 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6443 # Instead, we relocate shared libraries at runtime.
6444 ;;
6445
a.rottmann9bc8b932004-02-29 15:18:31 +00006446 msdosdjgpp*)
6447 # Just because we use GCC doesn't mean we suddenly get shared libraries
6448 # on systems that don't support them.
6449 lt_prog_compiler_can_build_shared=no
6450 enable_shared=no
drh71eb93e2001-09-28 01:34:43 +00006451 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006452
drh71eb93e2001-09-28 01:34:43 +00006453 sysv4*MP*)
6454 if test -d /usr/nec; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006455 lt_prog_compiler_pic=-Kconform_pic
drh71eb93e2001-09-28 01:34:43 +00006456 fi
6457 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006458
6459 hpux*)
6460 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6461 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006462 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006463 hppa*64*|ia64*)
6464 # +Z the default
6465 ;;
6466 *)
6467 lt_prog_compiler_pic='-fPIC'
6468 ;;
6469 esac
6470 ;;
6471
drh71eb93e2001-09-28 01:34:43 +00006472 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006473 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006474 ;;
6475 esac
6476 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006477 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006478 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006479 aix*)
6480 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006481 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006482 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006483 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006484 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006485 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006486 fi
6487 ;;
vapier7f19c022007-02-17 14:46:31 +00006488 darwin*)
6489 # PIC is the default on this platform
6490 # Common symbols not allowed in MH_DYLIB files
6491 case $cc_basename in
6492 xlc*)
6493 lt_prog_compiler_pic='-qnocommon'
6494 lt_prog_compiler_wl='-Wl,'
6495 ;;
6496 esac
6497 ;;
drh71eb93e2001-09-28 01:34:43 +00006498
a.rottmann9bc8b932004-02-29 15:18:31 +00006499 mingw* | pw32* | os2*)
6500 # This hack is so that the source file can tell whether it is being
6501 # built for inclusion in a dll (and should export symbols for example).
6502 lt_prog_compiler_pic='-DDLL_EXPORT'
6503 ;;
6504
a.rottmann84e63352003-03-24 09:42:16 +00006505 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006506 lt_prog_compiler_wl='-Wl,'
6507 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6508 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006509 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006510 hppa*64*|ia64*)
6511 # +Z the default
6512 ;;
6513 *)
6514 lt_prog_compiler_pic='+Z'
6515 ;;
6516 esac
6517 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6518 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006519 ;;
6520
6521 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006522 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006523 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006524 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006525 ;;
6526
6527 newsos6)
a.rottmann9bc8b932004-02-29 15:18:31 +00006528 lt_prog_compiler_pic='-KPIC'
6529 lt_prog_compiler_static='-Bstatic'
6530 ;;
6531
6532 linux*)
vapier7f19c022007-02-17 14:46:31 +00006533 case $cc_basename in
a.rottmann9bc8b932004-02-29 15:18:31 +00006534 icc* | ecc*)
6535 lt_prog_compiler_wl='-Wl,'
6536 lt_prog_compiler_pic='-KPIC'
6537 lt_prog_compiler_static='-static'
6538 ;;
vapier7f19c022007-02-17 14:46:31 +00006539 pgcc* | pgf77* | pgf90* | pgf95*)
6540 # Portland Group compilers (*not* the Pentium gcc compiler,
6541 # which looks to be a dead project)
6542 lt_prog_compiler_wl='-Wl,'
6543 lt_prog_compiler_pic='-fpic'
6544 lt_prog_compiler_static='-Bstatic'
6545 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006546 ccc*)
6547 lt_prog_compiler_wl='-Wl,'
6548 # All Alpha code is PIC.
6549 lt_prog_compiler_static='-non_shared'
6550 ;;
6551 esac
drh71eb93e2001-09-28 01:34:43 +00006552 ;;
6553
6554 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006555 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006556 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00006557 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006558 ;;
6559
drh71eb93e2001-09-28 01:34:43 +00006560 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006561 lt_prog_compiler_pic='-KPIC'
6562 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006563 case $cc_basename in
6564 f77* | f90* | f95*)
6565 lt_prog_compiler_wl='-Qoption ld ';;
6566 *)
6567 lt_prog_compiler_wl='-Wl,';;
6568 esac
drh71eb93e2001-09-28 01:34:43 +00006569 ;;
6570
6571 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006572 lt_prog_compiler_wl='-Qoption ld '
6573 lt_prog_compiler_pic='-PIC'
6574 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006575 ;;
6576
vapier7f19c022007-02-17 14:46:31 +00006577 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006578 lt_prog_compiler_wl='-Wl,'
6579 lt_prog_compiler_pic='-KPIC'
6580 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006581 ;;
6582
6583 sysv4*MP*)
6584 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006585 lt_prog_compiler_pic='-Kconform_pic'
6586 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006587 fi
6588 ;;
6589
vapier7f19c022007-02-17 14:46:31 +00006590 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6591 lt_prog_compiler_wl='-Wl,'
6592 lt_prog_compiler_pic='-KPIC'
6593 lt_prog_compiler_static='-Bstatic'
6594 ;;
6595
6596 unicos*)
6597 lt_prog_compiler_wl='-Wl,'
6598 lt_prog_compiler_can_build_shared=no
6599 ;;
6600
a.rottmann9bc8b932004-02-29 15:18:31 +00006601 uts4*)
6602 lt_prog_compiler_pic='-pic'
6603 lt_prog_compiler_static='-Bstatic'
6604 ;;
6605
drh71eb93e2001-09-28 01:34:43 +00006606 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006607 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006608 ;;
6609 esac
6610 fi
6611
mlcreech94984912008-03-04 19:03:08 +00006612{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6613echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
drh71eb93e2001-09-28 01:34:43 +00006614
a.rottmann9bc8b932004-02-29 15:18:31 +00006615#
6616# Check to make sure the PIC flag actually works.
6617#
6618if test -n "$lt_prog_compiler_pic"; then
a.rottmann84e63352003-03-24 09:42:16 +00006619
mlcreech94984912008-03-04 19:03:08 +00006620{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6621echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006622if test "${lt_prog_compiler_pic_works+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00006623 echo $ECHO_N "(cached) $ECHO_C" >&6
6624else
a.rottmann9bc8b932004-02-29 15:18:31 +00006625 lt_prog_compiler_pic_works=no
6626 ac_outfile=conftest.$ac_objext
6627 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6628 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6629 # Insert the option either (1) after the last *FLAGS variable, or
6630 # (2) before a word containing "conftest.", or (3) at the end.
6631 # Note that $ac_compile itself does not contain backslashes and begins
6632 # with a dollar sign (not a hyphen), so the echo should work correctly.
6633 # The option is referenced via a variable to avoid confusing sed.
6634 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006635 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006636 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6637 -e 's:$: $lt_compiler_flag:'`
mlcreecha4edab02008-03-06 04:14:17 +00006638 (eval echo "\"\$as_me:6638: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006639 (eval "$lt_compile" 2>conftest.err)
6640 ac_status=$?
6641 cat conftest.err >&5
mlcreecha4edab02008-03-06 04:14:17 +00006642 echo "$as_me:6642: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006643 if (exit $ac_status) && test -s "$ac_outfile"; then
6644 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006645 # So say no if there are warnings other than the usual output.
6646 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6647 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6648 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006649 lt_prog_compiler_pic_works=yes
6650 fi
6651 fi
6652 $rm conftest*
drh71eb93e2001-09-28 01:34:43 +00006653
a.rottmann9bc8b932004-02-29 15:18:31 +00006654fi
mlcreech94984912008-03-04 19:03:08 +00006655{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6656echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00006657
a.rottmann9bc8b932004-02-29 15:18:31 +00006658if test x"$lt_prog_compiler_pic_works" = xyes; then
6659 case $lt_prog_compiler_pic in
6660 "" | " "*) ;;
6661 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6662 esac
drh71eb93e2001-09-28 01:34:43 +00006663else
a.rottmann9bc8b932004-02-29 15:18:31 +00006664 lt_prog_compiler_pic=
6665 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00006666fi
6667
a.rottmann84e63352003-03-24 09:42:16 +00006668fi
vapier7f19c022007-02-17 14:46:31 +00006669case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006670 # For platforms which do not support PIC, -DPIC is meaningless:
6671 *djgpp*)
6672 lt_prog_compiler_pic=
6673 ;;
6674 *)
6675 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6676 ;;
6677esac
a.rottmann84e63352003-03-24 09:42:16 +00006678
vapier7f19c022007-02-17 14:46:31 +00006679#
6680# Check to make sure the static flag actually works.
6681#
6682wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
mlcreech94984912008-03-04 19:03:08 +00006683{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6684echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +00006685if test "${lt_prog_compiler_static_works+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6687else
6688 lt_prog_compiler_static_works=no
6689 save_LDFLAGS="$LDFLAGS"
6690 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6691 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6692 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6693 # The linker can only warn and ignore the option if not recognized
6694 # So say no if there are warnings
6695 if test -s conftest.err; then
6696 # Append any errors to the config.log.
6697 cat conftest.err 1>&5
6698 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6699 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6700 if diff conftest.exp conftest.er2 >/dev/null; then
6701 lt_prog_compiler_static_works=yes
6702 fi
6703 else
6704 lt_prog_compiler_static_works=yes
6705 fi
6706 fi
6707 $rm conftest*
6708 LDFLAGS="$save_LDFLAGS"
6709
6710fi
mlcreech94984912008-03-04 19:03:08 +00006711{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6712echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00006713
6714if test x"$lt_prog_compiler_static_works" = xyes; then
6715 :
6716else
6717 lt_prog_compiler_static=
6718fi
6719
6720
mlcreech94984912008-03-04 19:03:08 +00006721{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6722echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006723if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00006724 echo $ECHO_N "(cached) $ECHO_C" >&6
6725else
a.rottmann9bc8b932004-02-29 15:18:31 +00006726 lt_cv_prog_compiler_c_o=no
6727 $rm -r conftest 2>/dev/null
6728 mkdir conftest
6729 cd conftest
6730 mkdir out
6731 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00006732
a.rottmann9bc8b932004-02-29 15:18:31 +00006733 lt_compiler_flag="-o out/conftest2.$ac_objext"
6734 # Insert the option either (1) after the last *FLAGS variable, or
6735 # (2) before a word containing "conftest.", or (3) at the end.
6736 # Note that $ac_compile itself does not contain backslashes and begins
6737 # with a dollar sign (not a hyphen), so the echo should work correctly.
6738 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006739 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006740 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6741 -e 's:$: $lt_compiler_flag:'`
mlcreecha4edab02008-03-06 04:14:17 +00006742 (eval echo "\"\$as_me:6742: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006743 (eval "$lt_compile" 2>out/conftest.err)
6744 ac_status=$?
6745 cat out/conftest.err >&5
mlcreecha4edab02008-03-06 04:14:17 +00006746 echo "$as_me:6746: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006747 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6748 then
6749 # The compiler can only warn and ignore the option if not recognized
6750 # So say no if there are warnings
vapier7f19c022007-02-17 14:46:31 +00006751 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6752 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6753 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006754 lt_cv_prog_compiler_c_o=yes
6755 fi
6756 fi
vapier7f19c022007-02-17 14:46:31 +00006757 chmod u+w . 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006758 $rm conftest*
6759 # SGI C++ compiler will create directory out/ii_files/ for
6760 # template instantiation
6761 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6762 $rm out/* && rmdir out
6763 cd ..
6764 rmdir conftest
6765 $rm conftest*
drh71eb93e2001-09-28 01:34:43 +00006766
6767fi
mlcreech94984912008-03-04 19:03:08 +00006768{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6769echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
drh71eb93e2001-09-28 01:34:43 +00006770
a.rottmann84e63352003-03-24 09:42:16 +00006771
drh71eb93e2001-09-28 01:34:43 +00006772hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00006773if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00006774 # do not overwrite the value of need_locks provided by the user
mlcreech94984912008-03-04 19:03:08 +00006775 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6776echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00006777 hard_links=yes
6778 $rm conftest*
6779 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6780 touch conftest.a
6781 ln conftest.a conftest.b 2>&5 || hard_links=no
6782 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mlcreech94984912008-03-04 19:03:08 +00006783 { echo "$as_me:$LINENO: result: $hard_links" >&5
6784echo "${ECHO_T}$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00006785 if test "$hard_links" = no; then
a.rottmann84e63352003-03-24 09:42:16 +00006786 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
drh71eb93e2001-09-28 01:34:43 +00006787echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6788 need_locks=warn
6789 fi
6790else
6791 need_locks=no
6792fi
6793
mlcreech94984912008-03-04 19:03:08 +00006794{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6795echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006796
6797 runpath_var=
6798 allow_undefined_flag=
6799 enable_shared_with_static_runtimes=no
6800 archive_cmds=
6801 archive_expsym_cmds=
6802 old_archive_From_new_cmds=
6803 old_archive_from_expsyms_cmds=
6804 export_dynamic_flag_spec=
6805 whole_archive_flag_spec=
6806 thread_safe_flag_spec=
6807 hardcode_libdir_flag_spec=
6808 hardcode_libdir_flag_spec_ld=
6809 hardcode_libdir_separator=
6810 hardcode_direct=no
6811 hardcode_minus_L=no
6812 hardcode_shlibpath_var=unsupported
6813 link_all_deplibs=unknown
6814 hardcode_automatic=no
6815 module_cmds=
6816 module_expsym_cmds=
6817 always_export_symbols=no
6818 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6819 # include_expsyms should be a list of space-separated symbols to be *always*
6820 # included in the symbol list
6821 include_expsyms=
6822 # exclude_expsyms can be an extended regexp of symbols to exclude
6823 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6824 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6825 # as well as any symbol that contains `d'.
6826 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6827 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6828 # platforms (ab)use it in PIC code, but their linkers get confused if
6829 # the symbol is explicitly referenced. Since portable code cannot
6830 # rely on this symbol name, it's probably fine to never include it in
6831 # preloaded symbol tables.
6832 extract_expsyms_cmds=
vapier7f19c022007-02-17 14:46:31 +00006833 # Just being paranoid about ensuring that cc_basename is set.
6834 for cc_temp in $compiler""; do
6835 case $cc_temp in
6836 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6837 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6838 \-*) ;;
6839 *) break;;
6840 esac
6841done
6842cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006843
6844 case $host_os in
6845 cygwin* | mingw* | pw32*)
6846 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6847 # When not using gcc, we currently assume that we are using
6848 # Microsoft Visual C++.
6849 if test "$GCC" != yes; then
6850 with_gnu_ld=no
6851 fi
6852 ;;
vapier7f19c022007-02-17 14:46:31 +00006853 interix*)
6854 # we just hope/assume this is gcc and not c89 (= MSVC++)
6855 with_gnu_ld=yes
6856 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006857 openbsd*)
6858 with_gnu_ld=no
6859 ;;
6860 esac
6861
6862 ld_shlibs=yes
6863 if test "$with_gnu_ld" = yes; then
6864 # If archive_cmds runs LD, not CC, wlarc should be empty
6865 wlarc='${wl}'
6866
vapier7f19c022007-02-17 14:46:31 +00006867 # Set some defaults for GNU ld with shared library support. These
6868 # are reset later if shared libraries are not supported. Putting them
6869 # here allows them to be overridden if necessary.
6870 runpath_var=LD_RUN_PATH
6871 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6872 export_dynamic_flag_spec='${wl}--export-dynamic'
6873 # ancient GNU ld didn't support --whole-archive et. al.
6874 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6875 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6876 else
6877 whole_archive_flag_spec=
6878 fi
6879 supports_anon_versioning=no
6880 case `$LD -v 2>/dev/null` in
6881 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6882 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6883 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6884 *\ 2.11.*) ;; # other 2.11 versions
6885 *) supports_anon_versioning=yes ;;
6886 esac
6887
a.rottmann9bc8b932004-02-29 15:18:31 +00006888 # See if GNU ld supports shared libraries.
6889 case $host_os in
6890 aix3* | aix4* | aix5*)
6891 # On AIX/PPC, the GNU linker is very broken
6892 if test "$host_cpu" != ia64; then
6893 ld_shlibs=no
6894 cat <<EOF 1>&2
6895
6896*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6897*** to be unable to reliably create shared libraries on AIX.
6898*** Therefore, libtool is disabling shared libraries support. If you
6899*** really care for shared libraries, you may want to modify your PATH
6900*** so that a non-GNU linker is found, and then restart.
6901
6902EOF
6903 fi
6904 ;;
6905
6906 amigaos*)
6907 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)'
6908 hardcode_libdir_flag_spec='-L$libdir'
6909 hardcode_minus_L=yes
6910
6911 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6912 # that the semantics of dynamic libraries on AmigaOS, at least up
6913 # to version 4, is to share data among multiple programs linked
6914 # with the same dynamic library. Since this doesn't match the
6915 # behavior of shared libraries on other platforms, we can't use
6916 # them.
6917 ld_shlibs=no
6918 ;;
6919
6920 beos*)
6921 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6922 allow_undefined_flag=unsupported
6923 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6924 # support --undefined. This deserves some investigation. FIXME
6925 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6926 else
6927 ld_shlibs=no
6928 fi
6929 ;;
6930
6931 cygwin* | mingw* | pw32*)
6932 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6933 # as there is no search path for DLLs.
6934 hardcode_libdir_flag_spec='-L$libdir'
6935 allow_undefined_flag=unsupported
6936 always_export_symbols=no
6937 enable_shared_with_static_runtimes=yes
vapier7f19c022007-02-17 14:46:31 +00006938 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +00006939
6940 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00006941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00006942 # If the export-symbols file already is a .def file (1st line
6943 # is EXPORTS), use it as is; otherwise, prepend...
6944 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6945 cp $export_symbols $output_objdir/$soname.def;
6946 else
6947 echo EXPORTS > $output_objdir/$soname.def;
6948 cat $export_symbols >> $output_objdir/$soname.def;
6949 fi~
vapier7f19c022007-02-17 14:46:31 +00006950 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00006951 else
6952 ld_shlibs=no
6953 fi
6954 ;;
6955
vapier7f19c022007-02-17 14:46:31 +00006956 interix3*)
6957 hardcode_direct=no
6958 hardcode_shlibpath_var=no
6959 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6960 export_dynamic_flag_spec='${wl}-E'
6961 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6962 # Instead, shared libraries are loaded at an image base (0x10000000 by
6963 # default) and relocated if they conflict, which is a slow very memory
6964 # consuming and fragmenting process. To avoid this, we pick a random,
6965 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6966 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6967 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6968 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'
6969 ;;
6970
6971 linux*)
6972 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6973 tmp_addflag=
6974 case $cc_basename,$host_cpu in
6975 pgcc*) # Portland Group C compiler
6976 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'
6977 tmp_addflag=' $pic_flag'
6978 ;;
6979 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6980 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'
6981 tmp_addflag=' $pic_flag -Mnomain' ;;
6982 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6983 tmp_addflag=' -i_dynamic' ;;
6984 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6985 tmp_addflag=' -i_dynamic -nofor_main' ;;
6986 ifc* | ifort*) # Intel Fortran compiler
6987 tmp_addflag=' -nofor_main' ;;
6988 esac
6989 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6990
6991 if test $supports_anon_versioning = yes; then
6992 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6993 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6994 $echo "local: *; };" >> $output_objdir/$libname.ver~
6995 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6996 fi
6997 else
6998 ld_shlibs=no
6999 fi
7000 ;;
7001
7002 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007003 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7004 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7005 wlarc=
7006 else
7007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7008 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7009 fi
7010 ;;
7011
vapier7f19c022007-02-17 14:46:31 +00007012 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007013 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7014 ld_shlibs=no
7015 cat <<EOF 1>&2
7016
7017*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7018*** create shared libraries on Solaris systems. Therefore, libtool
7019*** is disabling shared libraries support. We urge you to upgrade GNU
7020*** binutils to release 2.9.1 or newer. Another option is to modify
7021*** your PATH or compiler configuration so that the native linker is
7022*** used, and then restart.
7023
7024EOF
7025 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7027 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7028 else
7029 ld_shlibs=no
7030 fi
7031 ;;
7032
vapier7f19c022007-02-17 14:46:31 +00007033 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7034 case `$LD -v 2>&1` in
7035 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7036 ld_shlibs=no
7037 cat <<_LT_EOF 1>&2
7038
7039*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7040*** reliably create shared libraries on SCO systems. Therefore, libtool
7041*** is disabling shared libraries support. We urge you to upgrade GNU
7042*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7043*** your PATH or compiler configuration so that the native linker is
7044*** used, and then restart.
7045
7046_LT_EOF
7047 ;;
7048 *)
7049 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7050 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7052 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7053 else
7054 ld_shlibs=no
7055 fi
7056 ;;
7057 esac
7058 ;;
7059
a.rottmann9bc8b932004-02-29 15:18:31 +00007060 sunos4*)
7061 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7062 wlarc=
7063 hardcode_direct=yes
7064 hardcode_shlibpath_var=no
7065 ;;
7066
a.rottmann9bc8b932004-02-29 15:18:31 +00007067 *)
7068 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7070 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7071 else
7072 ld_shlibs=no
7073 fi
7074 ;;
7075 esac
7076
vapier7f19c022007-02-17 14:46:31 +00007077 if test "$ld_shlibs" = no; then
7078 runpath_var=
7079 hardcode_libdir_flag_spec=
7080 export_dynamic_flag_spec=
7081 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007082 fi
7083 else
7084 # PORTME fill in a description of your system's linker (not GNU ld)
7085 case $host_os in
7086 aix3*)
7087 allow_undefined_flag=unsupported
7088 always_export_symbols=yes
7089 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'
7090 # Note: this linker hardcodes the directories in LIBPATH if there
7091 # are no directories specified by -L.
7092 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007093 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007094 # Neither direct hardcoding nor static linking is supported with a
7095 # broken collect2.
7096 hardcode_direct=unsupported
7097 fi
7098 ;;
7099
7100 aix4* | aix5*)
7101 if test "$host_cpu" = ia64; then
7102 # On IA64, the linker does run time linking by default, so we don't
7103 # have to do anything special.
7104 aix_use_runtimelinking=no
7105 exp_sym_flag='-Bexport'
7106 no_entry_flag=""
7107 else
7108 # If we're using GNU nm, then we don't want the "-C" option.
7109 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7110 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7111 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'
7112 else
7113 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'
7114 fi
7115 aix_use_runtimelinking=no
7116
7117 # Test if we are trying to use run time linking or normal
7118 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7119 # need to do runtime linking.
7120 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7121 for ld_flag in $LDFLAGS; do
7122 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7123 aix_use_runtimelinking=yes
7124 break
7125 fi
7126 done
vapier7f19c022007-02-17 14:46:31 +00007127 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007128 esac
7129
7130 exp_sym_flag='-bexport'
7131 no_entry_flag='-bnoentry'
7132 fi
7133
7134 # When large executables or shared objects are built, AIX ld can
7135 # have problems creating the table of contents. If linking a library
7136 # or program results in "error TOC overflow" add -mminimal-toc to
7137 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7138 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7139
7140 archive_cmds=''
7141 hardcode_direct=yes
7142 hardcode_libdir_separator=':'
7143 link_all_deplibs=yes
7144
7145 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007146 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007147 # We only want to do this on AIX 4.2 and lower, the check
7148 # below for broken collect2 doesn't work under 4.3+
7149 collect2name=`${CC} -print-prog-name=collect2`
7150 if test -f "$collect2name" && \
7151 strings "$collect2name" | grep resolve_lib_name >/dev/null
7152 then
7153 # We have reworked collect2
7154 hardcode_direct=yes
7155 else
7156 # We have old collect2
7157 hardcode_direct=unsupported
7158 # It fails to find uninstalled libraries when the uninstalled
7159 # path is not listed in the libpath. Setting hardcode_minus_L
7160 # to unsupported forces relinking
7161 hardcode_minus_L=yes
7162 hardcode_libdir_flag_spec='-L$libdir'
7163 hardcode_libdir_separator=
7164 fi
vapier7f19c022007-02-17 14:46:31 +00007165 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007166 esac
7167 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007168 if test "$aix_use_runtimelinking" = yes; then
7169 shared_flag="$shared_flag "'${wl}-G'
7170 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007171 else
7172 # not using gcc
7173 if test "$host_cpu" = ia64; then
7174 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7175 # chokes on -Wl,-G. The following line is correct:
7176 shared_flag='-G'
7177 else
vapier7f19c022007-02-17 14:46:31 +00007178 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007179 shared_flag='${wl}-G'
7180 else
7181 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007182 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007183 fi
7184 fi
7185
7186 # It seems that -bexpall does not export symbols beginning with
7187 # underscore (_), so it is better to generate a list of symbols to export.
7188 always_export_symbols=yes
7189 if test "$aix_use_runtimelinking" = yes; then
7190 # Warning - without using the other runtime loading flags (-brtl),
7191 # -berok will link without error, but may produce a broken library.
7192 allow_undefined_flag='-berok'
7193 # Determine the default libpath from the value encoded in an empty executable.
7194 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007195/* confdefs.h. */
7196_ACEOF
7197cat confdefs.h >>conftest.$ac_ext
7198cat >>conftest.$ac_ext <<_ACEOF
7199/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007200
a.rottmann84e63352003-03-24 09:42:16 +00007201int
7202main ()
7203{
a.rottmann9bc8b932004-02-29 15:18:31 +00007204
a.rottmann84e63352003-03-24 09:42:16 +00007205 ;
7206 return 0;
7207}
7208_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007209rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00007210if { (ac_try="$ac_link"
7211case "(($ac_try" in
7212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7213 *) ac_try_echo=$ac_try;;
7214esac
7215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7216 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00007217 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007218 grep -v '^ *+' conftest.er1 >conftest.err
7219 rm -f conftest.er1
7220 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00007222 (exit $ac_status); } && {
7223 test -z "$ac_c_werror_flag" ||
7224 test ! -s conftest.err
7225 } && test -s conftest$ac_exeext &&
7226 $as_test_x conftest$ac_exeext; then
a.rottmann84e63352003-03-24 09:42:16 +00007227
a.rottmann9bc8b932004-02-29 15:18:31 +00007228aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7229}'`
7230# Check for a 64-bit object if we didn't find anything.
7231if 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; }
7232}'`; fi
a.rottmann84e63352003-03-24 09:42:16 +00007233else
7234 echo "$as_me: failed program was:" >&5
7235sed 's/^/| /' conftest.$ac_ext >&5
7236
mlcreech94984912008-03-04 19:03:08 +00007237
a.rottmann84e63352003-03-24 09:42:16 +00007238fi
mlcreech94984912008-03-04 19:03:08 +00007239
7240rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00007241 conftest$ac_exeext conftest.$ac_ext
7242if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007243
a.rottmann9bc8b932004-02-29 15:18:31 +00007244 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
vapier7f19c022007-02-17 14:46:31 +00007245 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"
a.rottmann9bc8b932004-02-29 15:18:31 +00007246 else
7247 if test "$host_cpu" = ia64; then
7248 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7249 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007250 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"
a.rottmann9bc8b932004-02-29 15:18:31 +00007251 else
7252 # Determine the default libpath from the value encoded in an empty executable.
7253 cat >conftest.$ac_ext <<_ACEOF
7254/* confdefs.h. */
7255_ACEOF
7256cat confdefs.h >>conftest.$ac_ext
7257cat >>conftest.$ac_ext <<_ACEOF
7258/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007259
a.rottmann9bc8b932004-02-29 15:18:31 +00007260int
7261main ()
7262{
a.rottmann84e63352003-03-24 09:42:16 +00007263
a.rottmann9bc8b932004-02-29 15:18:31 +00007264 ;
7265 return 0;
7266}
7267_ACEOF
7268rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00007269if { (ac_try="$ac_link"
7270case "(($ac_try" in
7271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7272 *) ac_try_echo=$ac_try;;
7273esac
7274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7275 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00007276 ac_status=$?
7277 grep -v '^ *+' conftest.er1 >conftest.err
7278 rm -f conftest.er1
7279 cat conftest.err >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00007281 (exit $ac_status); } && {
7282 test -z "$ac_c_werror_flag" ||
7283 test ! -s conftest.err
7284 } && test -s conftest$ac_exeext &&
7285 $as_test_x conftest$ac_exeext; then
a.rottmann84e63352003-03-24 09:42:16 +00007286
a.rottmann9bc8b932004-02-29 15:18:31 +00007287aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7288}'`
7289# Check for a 64-bit object if we didn't find anything.
7290if 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; }
7291}'`; fi
a.rottmann84e63352003-03-24 09:42:16 +00007292else
a.rottmann9bc8b932004-02-29 15:18:31 +00007293 echo "$as_me: failed program was:" >&5
7294sed 's/^/| /' conftest.$ac_ext >&5
a.rottmann84e63352003-03-24 09:42:16 +00007295
mlcreech94984912008-03-04 19:03:08 +00007296
a.rottmann9bc8b932004-02-29 15:18:31 +00007297fi
mlcreech94984912008-03-04 19:03:08 +00007298
7299rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00007300 conftest$ac_exeext conftest.$ac_ext
7301if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007302
a.rottmann9bc8b932004-02-29 15:18:31 +00007303 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7304 # Warning - without using the other run time loading flags,
7305 # -berok will link without error, but may produce a broken library.
7306 no_undefined_flag=' ${wl}-bernotok'
7307 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007308 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007309 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007310 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007311 # This is similar to how AIX traditionally builds its shared libraries.
7312 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'
a.rottmann84e63352003-03-24 09:42:16 +00007313 fi
7314 fi
a.rottmann84e63352003-03-24 09:42:16 +00007315 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007316
7317 amigaos*)
7318 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)'
7319 hardcode_libdir_flag_spec='-L$libdir'
7320 hardcode_minus_L=yes
7321 # see comment about different semantics on the GNU ld section
7322 ld_shlibs=no
a.rottmann84e63352003-03-24 09:42:16 +00007323 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007324
vapier7f19c022007-02-17 14:46:31 +00007325 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007326 export_dynamic_flag_spec=-rdynamic
7327 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007328
a.rottmann9bc8b932004-02-29 15:18:31 +00007329 cygwin* | mingw* | pw32*)
7330 # When not using gcc, we currently assume that we are using
7331 # Microsoft Visual C++.
7332 # hardcode_libdir_flag_spec is actually meaningless, as there is
7333 # no search path for DLLs.
7334 hardcode_libdir_flag_spec=' '
7335 allow_undefined_flag=unsupported
7336 # Tell ltmain to make .lib files, not .a files.
7337 libext=lib
7338 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007339 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007340 # FIXME: Setting linknames here is a bad hack.
7341 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7342 # The linker will automatically build a .lib file if we build a DLL.
7343 old_archive_From_new_cmds='true'
7344 # FIXME: Should let the user specify the lib program.
7345 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7346 fix_srcfile_path='`cygpath -w "$srcfile"`'
7347 enable_shared_with_static_runtimes=yes
7348 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007349
a.rottmann9bc8b932004-02-29 15:18:31 +00007350 darwin* | rhapsody*)
vapier7f19c022007-02-17 14:46:31 +00007351 case $host_os in
7352 rhapsody* | darwin1.[012])
7353 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7354 ;;
7355 *) # Darwin 1.3 on
7356 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7357 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7358 else
7359 case ${MACOSX_DEPLOYMENT_TARGET} in
7360 10.[012])
7361 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7362 ;;
7363 10.*)
7364 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7365 ;;
7366 esac
7367 fi
7368 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007369 esac
vapier7f19c022007-02-17 14:46:31 +00007370 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007371 hardcode_direct=no
7372 hardcode_automatic=yes
7373 hardcode_shlibpath_var=unsupported
vapier7f19c022007-02-17 14:46:31 +00007374 whole_archive_flag_spec=''
a.rottmann9bc8b932004-02-29 15:18:31 +00007375 link_all_deplibs=yes
vapier7f19c022007-02-17 14:46:31 +00007376 if test "$GCC" = yes ; then
7377 output_verbose_link_cmd='echo'
7378 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7379 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7380 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7381 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}'
7382 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}'
a.rottmann84e63352003-03-24 09:42:16 +00007383 else
vapier7f19c022007-02-17 14:46:31 +00007384 case $cc_basename in
7385 xlc*)
7386 output_verbose_link_cmd='echo'
7387 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7388 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7389 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7390 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}'
7391 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}'
7392 ;;
7393 *)
7394 ld_shlibs=no
7395 ;;
7396 esac
a.rottmann84e63352003-03-24 09:42:16 +00007397 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007398 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007399
a.rottmann9bc8b932004-02-29 15:18:31 +00007400 dgux*)
7401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7402 hardcode_libdir_flag_spec='-L$libdir'
7403 hardcode_shlibpath_var=no
7404 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007405
a.rottmann9bc8b932004-02-29 15:18:31 +00007406 freebsd1*)
7407 ld_shlibs=no
7408 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007409
a.rottmann9bc8b932004-02-29 15:18:31 +00007410 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7411 # support. Future versions do this automatically, but an explicit c++rt0.o
7412 # does not break anything, and helps significantly (at the cost of a little
7413 # extra space).
7414 freebsd2.2*)
7415 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7416 hardcode_libdir_flag_spec='-R$libdir'
7417 hardcode_direct=yes
7418 hardcode_shlibpath_var=no
7419 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007420
a.rottmann9bc8b932004-02-29 15:18:31 +00007421 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7422 freebsd2*)
7423 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7424 hardcode_direct=yes
7425 hardcode_minus_L=yes
7426 hardcode_shlibpath_var=no
7427 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007428
a.rottmann9bc8b932004-02-29 15:18:31 +00007429 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
vapier7f19c022007-02-17 14:46:31 +00007430 freebsd* | kfreebsd*-gnu | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007431 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7432 hardcode_libdir_flag_spec='-R$libdir'
7433 hardcode_direct=yes
7434 hardcode_shlibpath_var=no
7435 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007436
a.rottmann9bc8b932004-02-29 15:18:31 +00007437 hpux9*)
7438 if test "$GCC" = yes; then
7439 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'
7440 else
7441 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'
7442 fi
7443 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7444 hardcode_libdir_separator=:
7445 hardcode_direct=yes
7446
7447 # hardcode_minus_L: Not really in the search PATH,
7448 # but as the default location of the library.
7449 hardcode_minus_L=yes
7450 export_dynamic_flag_spec='${wl}-E'
7451 ;;
7452
vapier7f19c022007-02-17 14:46:31 +00007453 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007454 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007455 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7456 else
7457 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7458 fi
7459 if test "$with_gnu_ld" = no; then
7460 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7461 hardcode_libdir_separator=:
7462
7463 hardcode_direct=yes
7464 export_dynamic_flag_spec='${wl}-E'
7465
7466 # hardcode_minus_L: Not really in the search PATH,
7467 # but as the default location of the library.
7468 hardcode_minus_L=yes
7469 fi
7470 ;;
7471
7472 hpux11*)
7473 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7474 case $host_cpu in
7475 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007476 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7477 ;;
vapier7f19c022007-02-17 14:46:31 +00007478 ia64*)
7479 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7480 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007481 *)
7482 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7483 ;;
7484 esac
7485 else
vapier7f19c022007-02-17 14:46:31 +00007486 case $host_cpu in
7487 hppa*64*)
7488 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7489 ;;
7490 ia64*)
7491 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007492 ;;
7493 *)
vapier7f19c022007-02-17 14:46:31 +00007494 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007495 ;;
7496 esac
7497 fi
7498 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007499 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7500 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00007501
vapier7f19c022007-02-17 14:46:31 +00007502 case $host_cpu in
7503 hppa*64*|ia64*)
7504 hardcode_libdir_flag_spec_ld='+b $libdir'
7505 hardcode_direct=no
7506 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007507 ;;
7508 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007509 hardcode_direct=yes
7510 export_dynamic_flag_spec='${wl}-E'
7511
7512 # hardcode_minus_L: Not really in the search PATH,
7513 # but as the default location of the library.
7514 hardcode_minus_L=yes
7515 ;;
7516 esac
7517 fi
7518 ;;
7519
7520 irix5* | irix6* | nonstopux*)
7521 if test "$GCC" = yes; then
7522 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'
7523 else
7524 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'
7525 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7526 fi
7527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7528 hardcode_libdir_separator=:
7529 link_all_deplibs=yes
7530 ;;
7531
vapier7f19c022007-02-17 14:46:31 +00007532 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007533 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7534 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7535 else
7536 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7537 fi
7538 hardcode_libdir_flag_spec='-R$libdir'
7539 hardcode_direct=yes
7540 hardcode_shlibpath_var=no
7541 ;;
7542
7543 newsos6)
7544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7545 hardcode_direct=yes
7546 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7547 hardcode_libdir_separator=:
7548 hardcode_shlibpath_var=no
7549 ;;
7550
7551 openbsd*)
7552 hardcode_direct=yes
7553 hardcode_shlibpath_var=no
7554 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7555 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007556 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +00007557 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7558 export_dynamic_flag_spec='${wl}-E'
7559 else
7560 case $host_os in
7561 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7562 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7563 hardcode_libdir_flag_spec='-R$libdir'
7564 ;;
7565 *)
7566 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7567 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7568 ;;
7569 esac
7570 fi
7571 ;;
7572
7573 os2*)
7574 hardcode_libdir_flag_spec='-L$libdir'
7575 hardcode_minus_L=yes
7576 allow_undefined_flag=unsupported
7577 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'
7578 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7579 ;;
7580
7581 osf3*)
7582 if test "$GCC" = yes; then
7583 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7584 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'
7585 else
7586 allow_undefined_flag=' -expect_unresolved \*'
7587 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'
7588 fi
7589 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7590 hardcode_libdir_separator=:
7591 ;;
7592
7593 osf4* | osf5*) # as osf3* with the addition of -msym flag
7594 if test "$GCC" = yes; then
7595 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7596 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'
7597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7598 else
7599 allow_undefined_flag=' -expect_unresolved \*'
7600 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'
7601 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
vapier7f19c022007-02-17 14:46:31 +00007602 $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'
a.rottmann9bc8b932004-02-29 15:18:31 +00007603
7604 # Both c and cxx compiler support -rpath directly
7605 hardcode_libdir_flag_spec='-rpath $libdir'
7606 fi
7607 hardcode_libdir_separator=:
7608 ;;
7609
a.rottmann9bc8b932004-02-29 15:18:31 +00007610 solaris*)
7611 no_undefined_flag=' -z text'
7612 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007613 wlarc='${wl}'
a.rottmann9bc8b932004-02-29 15:18:31 +00007614 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7615 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7616 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7617 else
vapier7f19c022007-02-17 14:46:31 +00007618 wlarc=''
a.rottmann9bc8b932004-02-29 15:18:31 +00007619 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7620 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7621 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7622 fi
7623 hardcode_libdir_flag_spec='-R$libdir'
7624 hardcode_shlibpath_var=no
7625 case $host_os in
7626 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00007627 *)
7628 # The compiler driver will combine linker options so we
7629 # cannot just pass the convience library names through
7630 # without $wl, iff we do not link with $LD.
7631 # Luckily, gcc supports the same syntax we need for Sun Studio.
7632 # Supported since Solaris 2.6 (maybe 2.5.1?)
7633 case $wlarc in
7634 '')
7635 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7636 *)
7637 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' ;;
7638 esac ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007639 esac
7640 link_all_deplibs=yes
7641 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007642
a.rottmann9bc8b932004-02-29 15:18:31 +00007643 sunos4*)
7644 if test "x$host_vendor" = xsequent; then
7645 # Use $CC to link under sequent, because it throws in some extra .o
7646 # files that make .init and .fini sections work.
7647 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7648 else
7649 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7650 fi
7651 hardcode_libdir_flag_spec='-L$libdir'
7652 hardcode_direct=yes
7653 hardcode_minus_L=yes
7654 hardcode_shlibpath_var=no
7655 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007656
a.rottmann9bc8b932004-02-29 15:18:31 +00007657 sysv4)
7658 case $host_vendor in
7659 sni)
7660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7661 hardcode_direct=yes # is this really true???
7662 ;;
7663 siemens)
7664 ## LD is ld it makes a PLAMLIB
7665 ## CC just makes a GrossModule.
7666 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7667 reload_cmds='$CC -r -o $output$reload_objs'
7668 hardcode_direct=no
7669 ;;
7670 motorola)
7671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7672 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7673 ;;
7674 esac
7675 runpath_var='LD_RUN_PATH'
7676 hardcode_shlibpath_var=no
7677 ;;
7678
7679 sysv4.3*)
7680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7681 hardcode_shlibpath_var=no
7682 export_dynamic_flag_spec='-Bexport'
7683 ;;
7684
7685 sysv4*MP*)
7686 if test -d /usr/nec; then
7687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7688 hardcode_shlibpath_var=no
7689 runpath_var=LD_RUN_PATH
7690 hardcode_runpath_var=yes
7691 ld_shlibs=yes
7692 fi
7693 ;;
7694
vapier7f19c022007-02-17 14:46:31 +00007695 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7696 no_undefined_flag='${wl}-z,text'
7697 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007698 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00007699 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00007700
a.rottmann9bc8b932004-02-29 15:18:31 +00007701 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007702 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7703 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007704 else
vapier7f19c022007-02-17 14:46:31 +00007705 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7706 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007707 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007708 ;;
7709
vapier7f19c022007-02-17 14:46:31 +00007710 sysv5* | sco3.2v5* | sco5v6*)
7711 # Note: We can NOT use -z defs as we might desire, because we do not
7712 # link with -lc, and that would cause any symbols used from libc to
7713 # always be unresolved, which means just about no library would
7714 # ever link correctly. If we're not using GNU ld we use -z text
7715 # though, which does catch some bad symbols but isn't as heavy-handed
7716 # as -z defs.
7717 no_undefined_flag='${wl}-z,text'
7718 allow_undefined_flag='${wl}-z,nodefs'
7719 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007720 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00007721 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7722 hardcode_libdir_separator=':'
7723 link_all_deplibs=yes
7724 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00007725 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00007726
7727 if test "$GCC" = yes; then
7728 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7729 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7730 else
7731 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7732 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7733 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007734 ;;
7735
7736 uts4*)
7737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7738 hardcode_libdir_flag_spec='-L$libdir'
7739 hardcode_shlibpath_var=no
7740 ;;
7741
7742 *)
7743 ld_shlibs=no
7744 ;;
7745 esac
7746 fi
7747
mlcreech94984912008-03-04 19:03:08 +00007748{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7749echo "${ECHO_T}$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00007750test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00007751
a.rottmann9bc8b932004-02-29 15:18:31 +00007752#
7753# Do we need to explicitly link libc?
7754#
7755case "x$archive_cmds_need_lc" in
7756x|xyes)
7757 # Assume -lc should be added
7758 archive_cmds_need_lc=yes
7759
7760 if test "$enable_shared" = yes && test "$GCC" = yes; then
7761 case $archive_cmds in
7762 *'~'*)
7763 # FIXME: we may have to deal with multi-command sequences.
7764 ;;
7765 '$CC '*)
7766 # Test whether the compiler implicitly links with -lc since on some
7767 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7768 # to ld, don't add -lc before -lgcc.
mlcreech94984912008-03-04 19:03:08 +00007769 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7770echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007771 $rm conftest*
7772 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7773
7774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7775 (eval $ac_compile) 2>&5
7776 ac_status=$?
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } 2>conftest.err; then
7779 soname=conftest
7780 lib=conftest
7781 libobjs=conftest.$ac_objext
7782 deplibs=
7783 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00007784 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00007785 compiler_flags=-v
7786 linker_flags=-v
7787 verstring=
7788 output_objdir=.
7789 libname=conftest
7790 lt_save_allow_undefined_flag=$allow_undefined_flag
7791 allow_undefined_flag=
7792 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7793 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7794 ac_status=$?
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); }
7797 then
7798 archive_cmds_need_lc=no
7799 else
7800 archive_cmds_need_lc=yes
7801 fi
7802 allow_undefined_flag=$lt_save_allow_undefined_flag
7803 else
7804 cat conftest.err 1>&5
7805 fi
7806 $rm conftest*
mlcreech94984912008-03-04 19:03:08 +00007807 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7808echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007809 ;;
7810 esac
drh71eb93e2001-09-28 01:34:43 +00007811 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007812 ;;
7813esac
drh71eb93e2001-09-28 01:34:43 +00007814
mlcreech94984912008-03-04 19:03:08 +00007815{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7816echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007817library_names_spec=
7818libname_spec='lib$name'
7819soname_spec=
vapier7f19c022007-02-17 14:46:31 +00007820shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00007821postinstall_cmds=
7822postuninstall_cmds=
7823finish_cmds=
7824finish_eval=
7825shlibpath_var=
7826shlibpath_overrides_runpath=unknown
7827version_type=none
7828dynamic_linker="$host_os ld.so"
7829sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00007830if test "$GCC" = yes; then
7831 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7832 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7833 # if the path contains ";" then we assume it to be the separator
7834 # otherwise default to the standard path separator (i.e. ":") - it is
7835 # assumed that no part of a normal pathname contains ";" but that should
7836 # okay in the real world where ";" in dirpaths is itself problematic.
7837 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7838 else
7839 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7840 fi
7841else
7842 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7843fi
7844need_lib_prefix=unknown
7845hardcode_into_libs=no
7846
7847# when you set need_version to no, make sure it does not cause -set_version
7848# flags to be left without arguments
7849need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00007850
7851case $host_os in
7852aix3*)
7853 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00007855 shlibpath_var=LIBPATH
7856
a.rottmann9bc8b932004-02-29 15:18:31 +00007857 # AIX 3 has no versioning support, so we append a major version to the name.
7858 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007859 ;;
7860
7861aix4* | aix5*)
7862 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00007863 need_lib_prefix=no
7864 need_version=no
7865 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00007866 if test "$host_cpu" = ia64; then
7867 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00007868 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007869 shlibpath_var=LD_LIBRARY_PATH
7870 else
7871 # With GCC up to 2.95.x, collect2 would create an import file
7872 # for dependence libraries. The import file would start with
7873 # the line `#! .'. This would cause the generated library to
7874 # depend on `.', always an invalid library. This was fixed in
7875 # development snapshots of GCC prior to 3.0.
7876 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00007877 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007878 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7879 echo ' yes '
7880 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7881 :
7882 else
7883 can_build_shared=no
7884 fi
7885 ;;
drh71eb93e2001-09-28 01:34:43 +00007886 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007887 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7888 # soname into executable. Probably we can add versioning support to
7889 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00007890 if test "$aix_use_runtimelinking" = yes; then
7891 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7892 # instead of lib<name>.a to let people know that these are not
7893 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00007894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007895 else
7896 # We preserve .a as extension for shared libraries through AIX4.2
7897 # and later when we are not doing run time linking.
7898 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00007899 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007900 fi
7901 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00007902 fi
7903 ;;
7904
7905amigaos*)
7906 library_names_spec='$libname.ixlibrary $libname.a'
7907 # Create ${libname}_ixlibrary.a entries in /sys/libs.
a.rottmann9bc8b932004-02-29 15:18:31 +00007908 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'
drh71eb93e2001-09-28 01:34:43 +00007909 ;;
7910
7911beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007912 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007913 dynamic_linker="$host_os ld.so"
7914 shlibpath_var=LIBRARY_PATH
7915 ;;
7916
vapier7f19c022007-02-17 14:46:31 +00007917bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00007918 version_type=linux
7919 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7921 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007922 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7923 shlibpath_var=LD_LIBRARY_PATH
7924 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7925 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7926 # the default ld.so.conf also contains /usr/contrib/lib and
7927 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7928 # libtool to hard-code these into programs
7929 ;;
7930
7931cygwin* | mingw* | pw32*)
7932 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00007933 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00007934 need_version=no
7935 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007936
drh71eb93e2001-09-28 01:34:43 +00007937 case $GCC,$host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00007938 yes,cygwin* | yes,mingw* | yes,pw32*)
drh71eb93e2001-09-28 01:34:43 +00007939 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00007940 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7941 postinstall_cmds='base_file=`basename \${file}`~
7942 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00007943 dldir=$destdir/`dirname \$dlpath`~
7944 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00007945 $install_prog $dir/$dlname \$dldir/$dlname~
7946 chmod a+x \$dldir/$dlname'
a.rottmann9bc8b932004-02-29 15:18:31 +00007947 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00007948 dlpath=$dir/\$dldll~
7949 $rm \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00007950 shlibpath_overrides_runpath=yes
7951
7952 case $host_os in
7953 cygwin*)
7954 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7955 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7956 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7957 ;;
7958 mingw*)
7959 # MinGW DLLs use traditional 'lib' prefix
7960 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7961 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7962 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7963 # It is most probably a Windows format PATH printed by
7964 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7965 # path with ; separators, and with drive letters. We can handle the
7966 # drive letters (cygwin fileutils understands them), so leave them,
7967 # especially as we might pass files found there to a mingw objdump,
7968 # which wouldn't understand a cygwinified path. Ahh.
7969 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7970 else
7971 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7972 fi
7973 ;;
7974 pw32*)
7975 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00007976 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
a.rottmann9bc8b932004-02-29 15:18:31 +00007977 ;;
7978 esac
drh71eb93e2001-09-28 01:34:43 +00007979 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007980
vapier7f19c022007-02-17 14:46:31 +00007981 linux*)
7982 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7984 supports_anon_versioning=no
7985 case `$LD -v 2>/dev/null` in
7986 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7987 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7988 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7989 *\ 2.11.*) ;; # other 2.11 versions
7990 *) supports_anon_versioning=yes ;;
7991 esac
7992 if test $supports_anon_versioning = yes; then
7993 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7994cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7995$echo "local: *; };" >> $output_objdir/$libname.ver~
7996 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7997 else
7998 $archive_expsym_cmds="$archive_cmds"
7999 fi
8000 else
8001 ld_shlibs=no
8002 fi
8003 ;;
8004
drh71eb93e2001-09-28 01:34:43 +00008005 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008006 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008007 ;;
8008 esac
8009 dynamic_linker='Win32 ld.exe'
8010 # FIXME: first we should search . and the directory the executable is in
8011 shlibpath_var=PATH
8012 ;;
8013
8014darwin* | rhapsody*)
8015 dynamic_linker="$host_os dyld"
8016 version_type=darwin
8017 need_lib_prefix=no
8018 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008019 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8020 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008021 shlibpath_overrides_runpath=yes
8022 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008023 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
a.rottmann9bc8b932004-02-29 15:18:31 +00008024 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8025 if test "$GCC" = yes; then
8026 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"`
8027 else
8028 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8029 fi
8030 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8031 ;;
8032
8033dgux*)
8034 version_type=linux
8035 need_lib_prefix=no
8036 need_version=no
8037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8038 soname_spec='${libname}${release}${shared_ext}$major'
8039 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008040 ;;
8041
a.rottmann84e63352003-03-24 09:42:16 +00008042freebsd1*)
8043 dynamic_linker=no
8044 ;;
8045
a.rottmann9bc8b932004-02-29 15:18:31 +00008046kfreebsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008047 version_type=linux
8048 need_lib_prefix=no
8049 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8051 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008052 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00008053 shlibpath_overrides_runpath=no
8054 hardcode_into_libs=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00008055 dynamic_linker='GNU ld.so'
drh71eb93e2001-09-28 01:34:43 +00008056 ;;
8057
vapier7f19c022007-02-17 14:46:31 +00008058freebsd* | dragonfly*)
8059 # DragonFly does not have aout. When/if they implement a new
8060 # versioning mechanism, adjust this.
8061 if test -x /usr/bin/objformat; then
8062 objformat=`/usr/bin/objformat`
8063 else
8064 case $host_os in
8065 freebsd[123]*) objformat=aout ;;
8066 *) objformat=elf ;;
8067 esac
8068 fi
8069 # Handle Gentoo/FreeBSD as it was Linux
8070 case $host_vendor in
8071 gentoo)
8072 version_type=linux ;;
8073 *)
8074 version_type=freebsd-$objformat ;;
8075 esac
8076
drh71eb93e2001-09-28 01:34:43 +00008077 case $version_type in
8078 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008080 need_version=no
8081 need_lib_prefix=no
8082 ;;
8083 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008084 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008085 need_version=yes
8086 ;;
vapier7f19c022007-02-17 14:46:31 +00008087 linux)
8088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8089 soname_spec='${libname}${release}${shared_ext}$major'
8090 need_lib_prefix=no
8091 need_version=no
8092 ;;
drh71eb93e2001-09-28 01:34:43 +00008093 esac
8094 shlibpath_var=LD_LIBRARY_PATH
8095 case $host_os in
8096 freebsd2*)
8097 shlibpath_overrides_runpath=yes
8098 ;;
vapier7f19c022007-02-17 14:46:31 +00008099 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008100 shlibpath_overrides_runpath=yes
8101 hardcode_into_libs=yes
8102 ;;
vapier7f19c022007-02-17 14:46:31 +00008103 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8104 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008105 shlibpath_overrides_runpath=no
8106 hardcode_into_libs=yes
8107 ;;
vapier7f19c022007-02-17 14:46:31 +00008108 freebsd*) # from 4.6 on
8109 shlibpath_overrides_runpath=yes
8110 hardcode_into_libs=yes
8111 ;;
drh71eb93e2001-09-28 01:34:43 +00008112 esac
8113 ;;
8114
8115gnu*)
8116 version_type=linux
8117 need_lib_prefix=no
8118 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8120 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008121 shlibpath_var=LD_LIBRARY_PATH
8122 hardcode_into_libs=yes
8123 ;;
8124
8125hpux9* | hpux10* | hpux11*)
8126 # Give a soname corresponding to the major version so that dld.sl refuses to
8127 # link against other versions.
8128 version_type=sunos
8129 need_lib_prefix=no
8130 need_version=no
vapier7f19c022007-02-17 14:46:31 +00008131 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00008132 ia64*)
vapier7f19c022007-02-17 14:46:31 +00008133 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00008134 hardcode_into_libs=yes
8135 dynamic_linker="$host_os dld.so"
8136 shlibpath_var=LD_LIBRARY_PATH
8137 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8139 soname_spec='${libname}${release}${shared_ext}$major'
8140 if test "X$HPUX_IA64_MODE" = X32; then
8141 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8142 else
8143 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8144 fi
8145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8146 ;;
8147 hppa*64*)
vapier7f19c022007-02-17 14:46:31 +00008148 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008149 hardcode_into_libs=yes
8150 dynamic_linker="$host_os dld.sl"
8151 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8152 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8154 soname_spec='${libname}${release}${shared_ext}$major'
8155 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8156 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8157 ;;
8158 *)
vapier7f19c022007-02-17 14:46:31 +00008159 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008160 dynamic_linker="$host_os dld.sl"
8161 shlibpath_var=SHLIB_PATH
8162 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8164 soname_spec='${libname}${release}${shared_ext}$major'
8165 ;;
8166 esac
drh71eb93e2001-09-28 01:34:43 +00008167 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8168 postinstall_cmds='chmod 555 $lib'
8169 ;;
8170
vapier7f19c022007-02-17 14:46:31 +00008171interix3*)
8172 version_type=linux
8173 need_lib_prefix=no
8174 need_version=no
8175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8176 soname_spec='${libname}${release}${shared_ext}$major'
8177 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8178 shlibpath_var=LD_LIBRARY_PATH
8179 shlibpath_overrides_runpath=no
8180 hardcode_into_libs=yes
8181 ;;
8182
a.rottmann84e63352003-03-24 09:42:16 +00008183irix5* | irix6* | nonstopux*)
8184 case $host_os in
8185 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008186 *)
8187 if test "$lt_cv_prog_gnu_ld" = yes; then
8188 version_type=linux
8189 else
8190 version_type=irix
8191 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00008192 esac
drh71eb93e2001-09-28 01:34:43 +00008193 need_lib_prefix=no
8194 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008195 soname_spec='${libname}${release}${shared_ext}$major'
8196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008197 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008198 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008199 libsuff= shlibsuff=
8200 ;;
8201 *)
8202 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008203 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8204 libsuff= shlibsuff= libmagic=32-bit;;
8205 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8206 libsuff=32 shlibsuff=N32 libmagic=N32;;
8207 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8208 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008209 *) libsuff= shlibsuff= libmagic=never-match;;
8210 esac
8211 ;;
8212 esac
8213 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8214 shlibpath_overrides_runpath=no
8215 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8216 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008217 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008218 ;;
8219
8220# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008221linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008222 dynamic_linker=no
8223 ;;
8224
8225# This must be Linux ELF.
a.rottmann9bc8b932004-02-29 15:18:31 +00008226linux*)
drh71eb93e2001-09-28 01:34:43 +00008227 version_type=linux
8228 need_lib_prefix=no
8229 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8231 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8233 shlibpath_var=LD_LIBRARY_PATH
8234 shlibpath_overrides_runpath=no
8235 # This implies no fast_install, which is unacceptable.
8236 # Some rework will be needed to allow for fast_install
8237 # before this can be enabled.
8238 hardcode_into_libs=yes
8239
a.rottmann9bc8b932004-02-29 15:18:31 +00008240 # Append ld.so.conf contents to the search path
8241 if test -f /etc/ld.so.conf; then
vapier7f19c022007-02-17 14:46:31 +00008242 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' ' '`
8243 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00008244 fi
8245
drh71eb93e2001-09-28 01:34:43 +00008246 # We used to test for /lib/ld.so.1 and disable shared libraries on
8247 # powerpc, because MkLinux only supported shared libraries with the
8248 # GNU dynamic linker. Since this was broken with cross compilers,
8249 # most powerpc-linux boxes support dynamic linking these days and
8250 # people can always --disable-shared, the test was removed, and we
8251 # assume the GNU/Linux dynamic linker is in use.
8252 dynamic_linker='GNU/Linux ld.so'
8253 ;;
8254
a.rottmann9bc8b932004-02-29 15:18:31 +00008255knetbsd*-gnu)
8256 version_type=linux
8257 need_lib_prefix=no
8258 need_version=no
8259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8260 soname_spec='${libname}${release}${shared_ext}$major'
8261 shlibpath_var=LD_LIBRARY_PATH
8262 shlibpath_overrides_runpath=no
8263 hardcode_into_libs=yes
8264 dynamic_linker='GNU ld.so'
8265 ;;
8266
drh71eb93e2001-09-28 01:34:43 +00008267netbsd*)
8268 version_type=sunos
8269 need_lib_prefix=no
8270 need_version=no
8271 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008273 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8274 dynamic_linker='NetBSD (a.out) ld.so'
8275 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8277 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008278 dynamic_linker='NetBSD ld.elf_so'
8279 fi
8280 shlibpath_var=LD_LIBRARY_PATH
8281 shlibpath_overrides_runpath=yes
8282 hardcode_into_libs=yes
8283 ;;
8284
8285newsos6)
8286 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8288 shlibpath_var=LD_LIBRARY_PATH
8289 shlibpath_overrides_runpath=yes
8290 ;;
8291
8292nto-qnx*)
8293 version_type=linux
8294 need_lib_prefix=no
8295 need_version=no
8296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8297 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008298 shlibpath_var=LD_LIBRARY_PATH
8299 shlibpath_overrides_runpath=yes
8300 ;;
8301
drh71eb93e2001-09-28 01:34:43 +00008302openbsd*)
8303 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00008304 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00008305 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00008306 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8307 case $host_os in
8308 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8309 *) need_version=no ;;
8310 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8313 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00008314 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008315 case $host_os in
8316 openbsd2.[89] | openbsd2.[89].*)
8317 shlibpath_overrides_runpath=no
8318 ;;
8319 *)
8320 shlibpath_overrides_runpath=yes
8321 ;;
8322 esac
a.rottmann84e63352003-03-24 09:42:16 +00008323 else
8324 shlibpath_overrides_runpath=yes
8325 fi
drh71eb93e2001-09-28 01:34:43 +00008326 ;;
8327
8328os2*)
8329 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00008330 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008331 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008332 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008333 dynamic_linker='OS/2 ld.exe'
8334 shlibpath_var=LIBPATH
8335 ;;
8336
8337osf3* | osf4* | osf5*)
8338 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00008339 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008340 need_version=no
8341 soname_spec='${libname}${release}${shared_ext}$major'
8342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008343 shlibpath_var=LD_LIBRARY_PATH
8344 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8345 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8346 ;;
8347
drh71eb93e2001-09-28 01:34:43 +00008348solaris*)
8349 version_type=linux
8350 need_lib_prefix=no
8351 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8353 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008354 shlibpath_var=LD_LIBRARY_PATH
8355 shlibpath_overrides_runpath=yes
8356 hardcode_into_libs=yes
8357 # ldd complains unless libraries are executable
8358 postinstall_cmds='chmod +x $lib'
8359 ;;
8360
8361sunos4*)
8362 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00008363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008364 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8365 shlibpath_var=LD_LIBRARY_PATH
8366 shlibpath_overrides_runpath=yes
8367 if test "$with_gnu_ld" = yes; then
8368 need_lib_prefix=no
8369 fi
8370 need_version=yes
8371 ;;
8372
vapier7f19c022007-02-17 14:46:31 +00008373sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00008374 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8376 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008377 shlibpath_var=LD_LIBRARY_PATH
8378 case $host_vendor in
8379 sni)
8380 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00008381 need_lib_prefix=no
8382 export_dynamic_flag_spec='${wl}-Blargedynsym'
8383 runpath_var=LD_RUN_PATH
8384 ;;
8385 siemens)
8386 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00008387 ;;
8388 motorola)
8389 need_lib_prefix=no
8390 need_version=no
8391 shlibpath_overrides_runpath=no
8392 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8393 ;;
8394 esac
8395 ;;
8396
8397sysv4*MP*)
8398 if test -d /usr/nec ;then
8399 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008400 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8401 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00008402 shlibpath_var=LD_LIBRARY_PATH
8403 fi
8404 ;;
8405
vapier7f19c022007-02-17 14:46:31 +00008406sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8407 version_type=freebsd-elf
8408 need_lib_prefix=no
8409 need_version=no
8410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8411 soname_spec='${libname}${release}${shared_ext}$major'
8412 shlibpath_var=LD_LIBRARY_PATH
8413 hardcode_into_libs=yes
8414 if test "$with_gnu_ld" = yes; then
8415 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8416 shlibpath_overrides_runpath=no
8417 else
8418 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8419 shlibpath_overrides_runpath=yes
8420 case $host_os in
8421 sco3.2v5*)
8422 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8423 ;;
8424 esac
8425 fi
8426 sys_lib_dlsearch_path_spec='/usr/lib'
8427 ;;
8428
a.rottmann9bc8b932004-02-29 15:18:31 +00008429uts4*)
8430 version_type=linux
8431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8432 soname_spec='${libname}${release}${shared_ext}$major'
8433 shlibpath_var=LD_LIBRARY_PATH
8434 ;;
8435
drh71eb93e2001-09-28 01:34:43 +00008436*)
8437 dynamic_linker=no
8438 ;;
8439esac
mlcreech94984912008-03-04 19:03:08 +00008440{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8441echo "${ECHO_T}$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008442test "$dynamic_linker" = no && can_build_shared=no
8443
vapier7f19c022007-02-17 14:46:31 +00008444variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8445if test "$GCC" = yes; then
8446 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8447fi
8448
mlcreech94984912008-03-04 19:03:08 +00008449{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8450echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008451hardcode_action=
8452if test -n "$hardcode_libdir_flag_spec" || \
vapier7f19c022007-02-17 14:46:31 +00008453 test -n "$runpath_var" || \
8454 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00008455
a.rottmann9bc8b932004-02-29 15:18:31 +00008456 # We can hardcode non-existant directories.
8457 if test "$hardcode_direct" != no &&
8458 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8459 # have to relink, otherwise we might link with an installed library
8460 # when we should be linking with a yet-to-be-installed one
8461 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8462 test "$hardcode_minus_L" != no; then
8463 # Linking always hardcodes the temporary library directory.
8464 hardcode_action=relink
8465 else
8466 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8467 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00008468 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008469else
8470 # We cannot hardcode anything, or else we can only hardcode existing
8471 # directories.
8472 hardcode_action=unsupported
8473fi
mlcreech94984912008-03-04 19:03:08 +00008474{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
8475echo "${ECHO_T}$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008476
8477if test "$hardcode_action" = relink; then
8478 # Fast installation is not supported
8479 enable_fast_install=no
8480elif test "$shlibpath_overrides_runpath" = yes ||
8481 test "$enable_shared" = no; then
8482 # Fast installation is not necessary
8483 enable_fast_install=needless
8484fi
8485
a.rottmann9bc8b932004-02-29 15:18:31 +00008486striplib=
8487old_striplib=
mlcreech94984912008-03-04 19:03:08 +00008488{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8489echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008490if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8491 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8492 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
mlcreech94984912008-03-04 19:03:08 +00008493 { echo "$as_me:$LINENO: result: yes" >&5
8494echo "${ECHO_T}yes" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008495else
8496# FIXME - insert some real tests, host_os isn't really good enough
8497 case $host_os in
8498 darwin*)
8499 if test -n "$STRIP" ; then
8500 striplib="$STRIP -x"
mlcreech94984912008-03-04 19:03:08 +00008501 { echo "$as_me:$LINENO: result: yes" >&5
8502echo "${ECHO_T}yes" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008503 else
mlcreech94984912008-03-04 19:03:08 +00008504 { echo "$as_me:$LINENO: result: no" >&5
8505echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008506fi
8507 ;;
8508 *)
mlcreech94984912008-03-04 19:03:08 +00008509 { echo "$as_me:$LINENO: result: no" >&5
8510echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008511 ;;
8512 esac
a.rottmann84e63352003-03-24 09:42:16 +00008513fi
8514
drh71eb93e2001-09-28 01:34:43 +00008515if test "x$enable_dlopen" != xyes; then
8516 enable_dlopen=unknown
8517 enable_dlopen_self=unknown
8518 enable_dlopen_self_static=unknown
8519else
8520 lt_cv_dlopen=no
8521 lt_cv_dlopen_libs=
8522
8523 case $host_os in
8524 beos*)
8525 lt_cv_dlopen="load_add_on"
8526 lt_cv_dlopen_libs=
8527 lt_cv_dlopen_self=yes
8528 ;;
8529
a.rottmann9bc8b932004-02-29 15:18:31 +00008530 mingw* | pw32*)
drh71eb93e2001-09-28 01:34:43 +00008531 lt_cv_dlopen="LoadLibrary"
8532 lt_cv_dlopen_libs=
8533 ;;
8534
a.rottmann9bc8b932004-02-29 15:18:31 +00008535 cygwin*)
8536 lt_cv_dlopen="dlopen"
8537 lt_cv_dlopen_libs=
8538 ;;
8539
8540 darwin*)
8541 # if libdl is installed we need to link against it
mlcreech94984912008-03-04 19:03:08 +00008542 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8543echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008544if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8546else
8547 ac_check_lib_save_LIBS=$LIBS
8548LIBS="-ldl $LIBS"
8549cat >conftest.$ac_ext <<_ACEOF
8550/* confdefs.h. */
8551_ACEOF
8552cat confdefs.h >>conftest.$ac_ext
8553cat >>conftest.$ac_ext <<_ACEOF
8554/* end confdefs.h. */
8555
mlcreech94984912008-03-04 19:03:08 +00008556/* Override any GCC internal prototype to avoid an error.
8557 Use char because int might match the return type of a GCC
8558 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00008559#ifdef __cplusplus
8560extern "C"
8561#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00008562char dlopen ();
8563int
8564main ()
8565{
mlcreech94984912008-03-04 19:03:08 +00008566return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00008567 ;
8568 return 0;
8569}
8570_ACEOF
8571rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00008572if { (ac_try="$ac_link"
8573case "(($ac_try" in
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8576esac
8577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00008579 ac_status=$?
8580 grep -v '^ *+' conftest.er1 >conftest.err
8581 rm -f conftest.er1
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00008584 (exit $ac_status); } && {
8585 test -z "$ac_c_werror_flag" ||
8586 test ! -s conftest.err
8587 } && test -s conftest$ac_exeext &&
8588 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008589 ac_cv_lib_dl_dlopen=yes
8590else
8591 echo "$as_me: failed program was:" >&5
8592sed 's/^/| /' conftest.$ac_ext >&5
8593
mlcreech94984912008-03-04 19:03:08 +00008594 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008595fi
mlcreech94984912008-03-04 19:03:08 +00008596
8597rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00008598 conftest$ac_exeext conftest.$ac_ext
8599LIBS=$ac_check_lib_save_LIBS
8600fi
mlcreech94984912008-03-04 19:03:08 +00008601{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8602echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008603if test $ac_cv_lib_dl_dlopen = yes; then
8604 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8605else
8606
8607 lt_cv_dlopen="dyld"
8608 lt_cv_dlopen_libs=
8609 lt_cv_dlopen_self=yes
8610
8611fi
8612
8613 ;;
8614
drh71eb93e2001-09-28 01:34:43 +00008615 *)
mlcreech94984912008-03-04 19:03:08 +00008616 { echo "$as_me:$LINENO: checking for shl_load" >&5
8617echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008618if test "${ac_cv_func_shl_load+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8620else
8621 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008622/* confdefs.h. */
8623_ACEOF
8624cat confdefs.h >>conftest.$ac_ext
8625cat >>conftest.$ac_ext <<_ACEOF
8626/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00008627/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8629#define shl_load innocuous_shl_load
8630
drh71eb93e2001-09-28 01:34:43 +00008631/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00008632 which can conflict with char shl_load (); below.
8633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8634 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00008635
a.rottmann84e63352003-03-24 09:42:16 +00008636#ifdef __STDC__
8637# include <limits.h>
8638#else
8639# include <assert.h>
8640#endif
a.rottmann964dbb12004-02-26 19:47:42 +00008641
8642#undef shl_load
8643
mlcreech94984912008-03-04 19:03:08 +00008644/* Override any GCC internal prototype to avoid an error.
8645 Use char because int might match the return type of a GCC
8646 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008647#ifdef __cplusplus
8648extern "C"
8649#endif
drh71eb93e2001-09-28 01:34:43 +00008650char shl_load ();
drh71eb93e2001-09-28 01:34:43 +00008651/* The GNU C library defines this for functions which it implements
8652 to always fail with ENOSYS. Some functions are actually named
8653 something starting with __ and the normal name is an alias. */
mlcreech94984912008-03-04 19:03:08 +00008654#if defined __stub_shl_load || defined __stub___shl_load
drh71eb93e2001-09-28 01:34:43 +00008655choke me
drh71eb93e2001-09-28 01:34:43 +00008656#endif
8657
a.rottmann84e63352003-03-24 09:42:16 +00008658int
8659main ()
8660{
mlcreech94984912008-03-04 19:03:08 +00008661return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00008662 ;
8663 return 0;
8664}
8665_ACEOF
8666rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00008667if { (ac_try="$ac_link"
8668case "(($ac_try" in
8669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670 *) ac_try_echo=$ac_try;;
8671esac
8672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8673 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008674 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008675 grep -v '^ *+' conftest.er1 >conftest.err
8676 rm -f conftest.er1
8677 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00008679 (exit $ac_status); } && {
8680 test -z "$ac_c_werror_flag" ||
8681 test ! -s conftest.err
8682 } && test -s conftest$ac_exeext &&
8683 $as_test_x conftest$ac_exeext; then
drh71eb93e2001-09-28 01:34:43 +00008684 ac_cv_func_shl_load=yes
8685else
8686 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008687sed 's/^/| /' conftest.$ac_ext >&5
8688
mlcreech94984912008-03-04 19:03:08 +00008689 ac_cv_func_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00008690fi
mlcreech94984912008-03-04 19:03:08 +00008691
8692rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00008693 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008694fi
mlcreech94984912008-03-04 19:03:08 +00008695{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8696echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008697if test $ac_cv_func_shl_load = yes; then
8698 lt_cv_dlopen="shl_load"
8699else
mlcreech94984912008-03-04 19:03:08 +00008700 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8701echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008702if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8704else
8705 ac_check_lib_save_LIBS=$LIBS
8706LIBS="-ldld $LIBS"
8707cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008708/* confdefs.h. */
8709_ACEOF
8710cat confdefs.h >>conftest.$ac_ext
8711cat >>conftest.$ac_ext <<_ACEOF
8712/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008713
mlcreech94984912008-03-04 19:03:08 +00008714/* Override any GCC internal prototype to avoid an error.
8715 Use char because int might match the return type of a GCC
8716 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008717#ifdef __cplusplus
8718extern "C"
8719#endif
drh71eb93e2001-09-28 01:34:43 +00008720char shl_load ();
8721int
8722main ()
8723{
mlcreech94984912008-03-04 19:03:08 +00008724return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00008725 ;
8726 return 0;
8727}
8728_ACEOF
8729rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00008730if { (ac_try="$ac_link"
8731case "(($ac_try" in
8732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733 *) ac_try_echo=$ac_try;;
8734esac
8735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008737 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008738 grep -v '^ *+' conftest.er1 >conftest.err
8739 rm -f conftest.er1
8740 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00008742 (exit $ac_status); } && {
8743 test -z "$ac_c_werror_flag" ||
8744 test ! -s conftest.err
8745 } && test -s conftest$ac_exeext &&
8746 $as_test_x conftest$ac_exeext; then
drh71eb93e2001-09-28 01:34:43 +00008747 ac_cv_lib_dld_shl_load=yes
8748else
8749 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008750sed 's/^/| /' conftest.$ac_ext >&5
8751
mlcreech94984912008-03-04 19:03:08 +00008752 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00008753fi
mlcreech94984912008-03-04 19:03:08 +00008754
8755rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00008756 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008757LIBS=$ac_check_lib_save_LIBS
8758fi
mlcreech94984912008-03-04 19:03:08 +00008759{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8760echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008761if test $ac_cv_lib_dld_shl_load = yes; then
8762 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8763else
mlcreech94984912008-03-04 19:03:08 +00008764 { echo "$as_me:$LINENO: checking for dlopen" >&5
8765echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008766if test "${ac_cv_func_dlopen+set}" = set; then
8767 echo $ECHO_N "(cached) $ECHO_C" >&6
8768else
8769 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008770/* confdefs.h. */
8771_ACEOF
8772cat confdefs.h >>conftest.$ac_ext
8773cat >>conftest.$ac_ext <<_ACEOF
8774/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00008775/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8777#define dlopen innocuous_dlopen
8778
a.rottmann84e63352003-03-24 09:42:16 +00008779/* System header to define __stub macros and hopefully few prototypes,
8780 which can conflict with char dlopen (); below.
8781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8782 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00008783
a.rottmann84e63352003-03-24 09:42:16 +00008784#ifdef __STDC__
8785# include <limits.h>
8786#else
8787# include <assert.h>
8788#endif
a.rottmann964dbb12004-02-26 19:47:42 +00008789
8790#undef dlopen
8791
mlcreech94984912008-03-04 19:03:08 +00008792/* Override any GCC internal prototype to avoid an error.
8793 Use char because int might match the return type of a GCC
8794 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00008795#ifdef __cplusplus
8796extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00008797#endif
a.rottmann84e63352003-03-24 09:42:16 +00008798char dlopen ();
8799/* The GNU C library defines this for functions which it implements
8800 to always fail with ENOSYS. Some functions are actually named
8801 something starting with __ and the normal name is an alias. */
mlcreech94984912008-03-04 19:03:08 +00008802#if defined __stub_dlopen || defined __stub___dlopen
a.rottmann84e63352003-03-24 09:42:16 +00008803choke me
a.rottmann84e63352003-03-24 09:42:16 +00008804#endif
8805
8806int
8807main ()
8808{
mlcreech94984912008-03-04 19:03:08 +00008809return dlopen ();
a.rottmann84e63352003-03-24 09:42:16 +00008810 ;
8811 return 0;
8812}
8813_ACEOF
8814rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00008815if { (ac_try="$ac_link"
8816case "(($ac_try" in
8817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8818 *) ac_try_echo=$ac_try;;
8819esac
8820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8821 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00008822 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008823 grep -v '^ *+' conftest.er1 >conftest.err
8824 rm -f conftest.er1
8825 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00008827 (exit $ac_status); } && {
8828 test -z "$ac_c_werror_flag" ||
8829 test ! -s conftest.err
8830 } && test -s conftest$ac_exeext &&
8831 $as_test_x conftest$ac_exeext; then
a.rottmann84e63352003-03-24 09:42:16 +00008832 ac_cv_func_dlopen=yes
8833else
8834 echo "$as_me: failed program was:" >&5
8835sed 's/^/| /' conftest.$ac_ext >&5
8836
mlcreech94984912008-03-04 19:03:08 +00008837 ac_cv_func_dlopen=no
a.rottmann84e63352003-03-24 09:42:16 +00008838fi
mlcreech94984912008-03-04 19:03:08 +00008839
8840rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00008841 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00008842fi
mlcreech94984912008-03-04 19:03:08 +00008843{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8844echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008845if test $ac_cv_func_dlopen = yes; then
8846 lt_cv_dlopen="dlopen"
8847else
mlcreech94984912008-03-04 19:03:08 +00008848 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8849echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008850if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8852else
8853 ac_check_lib_save_LIBS=$LIBS
8854LIBS="-ldl $LIBS"
8855cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008856/* confdefs.h. */
8857_ACEOF
8858cat confdefs.h >>conftest.$ac_ext
8859cat >>conftest.$ac_ext <<_ACEOF
8860/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008861
mlcreech94984912008-03-04 19:03:08 +00008862/* Override any GCC internal prototype to avoid an error.
8863 Use char because int might match the return type of a GCC
8864 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008865#ifdef __cplusplus
8866extern "C"
8867#endif
drh71eb93e2001-09-28 01:34:43 +00008868char dlopen ();
8869int
8870main ()
8871{
mlcreech94984912008-03-04 19:03:08 +00008872return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00008873 ;
8874 return 0;
8875}
8876_ACEOF
8877rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00008878if { (ac_try="$ac_link"
8879case "(($ac_try" in
8880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881 *) ac_try_echo=$ac_try;;
8882esac
8883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8884 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008885 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008886 grep -v '^ *+' conftest.er1 >conftest.err
8887 rm -f conftest.er1
8888 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00008890 (exit $ac_status); } && {
8891 test -z "$ac_c_werror_flag" ||
8892 test ! -s conftest.err
8893 } && test -s conftest$ac_exeext &&
8894 $as_test_x conftest$ac_exeext; then
drh71eb93e2001-09-28 01:34:43 +00008895 ac_cv_lib_dl_dlopen=yes
8896else
8897 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008898sed 's/^/| /' conftest.$ac_ext >&5
8899
mlcreech94984912008-03-04 19:03:08 +00008900 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00008901fi
mlcreech94984912008-03-04 19:03:08 +00008902
8903rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00008904 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008905LIBS=$ac_check_lib_save_LIBS
8906fi
mlcreech94984912008-03-04 19:03:08 +00008907{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8908echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008909if test $ac_cv_lib_dl_dlopen = yes; then
8910 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8911else
mlcreech94984912008-03-04 19:03:08 +00008912 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8913echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008914if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8915 echo $ECHO_N "(cached) $ECHO_C" >&6
8916else
8917 ac_check_lib_save_LIBS=$LIBS
8918LIBS="-lsvld $LIBS"
8919cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008920/* confdefs.h. */
8921_ACEOF
8922cat confdefs.h >>conftest.$ac_ext
8923cat >>conftest.$ac_ext <<_ACEOF
8924/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008925
mlcreech94984912008-03-04 19:03:08 +00008926/* Override any GCC internal prototype to avoid an error.
8927 Use char because int might match the return type of a GCC
8928 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008929#ifdef __cplusplus
8930extern "C"
8931#endif
drh71eb93e2001-09-28 01:34:43 +00008932char dlopen ();
8933int
8934main ()
8935{
mlcreech94984912008-03-04 19:03:08 +00008936return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00008937 ;
8938 return 0;
8939}
8940_ACEOF
8941rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00008942if { (ac_try="$ac_link"
8943case "(($ac_try" in
8944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8946esac
8947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008949 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008950 grep -v '^ *+' conftest.er1 >conftest.err
8951 rm -f conftest.er1
8952 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00008954 (exit $ac_status); } && {
8955 test -z "$ac_c_werror_flag" ||
8956 test ! -s conftest.err
8957 } && test -s conftest$ac_exeext &&
8958 $as_test_x conftest$ac_exeext; then
drh71eb93e2001-09-28 01:34:43 +00008959 ac_cv_lib_svld_dlopen=yes
8960else
8961 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008962sed 's/^/| /' conftest.$ac_ext >&5
8963
mlcreech94984912008-03-04 19:03:08 +00008964 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00008965fi
mlcreech94984912008-03-04 19:03:08 +00008966
8967rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00008968 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008969LIBS=$ac_check_lib_save_LIBS
8970fi
mlcreech94984912008-03-04 19:03:08 +00008971{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8972echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008973if test $ac_cv_lib_svld_dlopen = yes; then
8974 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00008975else
mlcreech94984912008-03-04 19:03:08 +00008976 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8977echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008978if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8979 echo $ECHO_N "(cached) $ECHO_C" >&6
8980else
8981 ac_check_lib_save_LIBS=$LIBS
8982LIBS="-ldld $LIBS"
8983cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008984/* confdefs.h. */
8985_ACEOF
8986cat confdefs.h >>conftest.$ac_ext
8987cat >>conftest.$ac_ext <<_ACEOF
8988/* end confdefs.h. */
8989
mlcreech94984912008-03-04 19:03:08 +00008990/* Override any GCC internal prototype to avoid an error.
8991 Use char because int might match the return type of a GCC
8992 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00008993#ifdef __cplusplus
8994extern "C"
8995#endif
a.rottmann84e63352003-03-24 09:42:16 +00008996char dld_link ();
8997int
8998main ()
8999{
mlcreech94984912008-03-04 19:03:08 +00009000return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00009001 ;
9002 return 0;
9003}
9004_ACEOF
9005rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00009006if { (ac_try="$ac_link"
9007case "(($ac_try" in
9008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9009 *) ac_try_echo=$ac_try;;
9010esac
9011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9012 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00009013 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009014 grep -v '^ *+' conftest.er1 >conftest.err
9015 rm -f conftest.er1
9016 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00009017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00009018 (exit $ac_status); } && {
9019 test -z "$ac_c_werror_flag" ||
9020 test ! -s conftest.err
9021 } && test -s conftest$ac_exeext &&
9022 $as_test_x conftest$ac_exeext; then
a.rottmann84e63352003-03-24 09:42:16 +00009023 ac_cv_lib_dld_dld_link=yes
9024else
9025 echo "$as_me: failed program was:" >&5
9026sed 's/^/| /' conftest.$ac_ext >&5
9027
mlcreech94984912008-03-04 19:03:08 +00009028 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00009029fi
mlcreech94984912008-03-04 19:03:08 +00009030
9031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009032 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009033LIBS=$ac_check_lib_save_LIBS
9034fi
mlcreech94984912008-03-04 19:03:08 +00009035{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9036echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009037if test $ac_cv_lib_dld_dld_link = yes; then
9038 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9039fi
9040
drh71eb93e2001-09-28 01:34:43 +00009041
9042fi
9043
drh71eb93e2001-09-28 01:34:43 +00009044
9045fi
9046
a.rottmann84e63352003-03-24 09:42:16 +00009047
9048fi
9049
9050
9051fi
9052
9053
drh71eb93e2001-09-28 01:34:43 +00009054fi
9055
9056 ;;
9057 esac
9058
9059 if test "x$lt_cv_dlopen" != xno; then
9060 enable_dlopen=yes
9061 else
9062 enable_dlopen=no
9063 fi
9064
9065 case $lt_cv_dlopen in
9066 dlopen)
9067 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009068 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009069
9070 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009071 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009072
9073 save_LIBS="$LIBS"
9074 LIBS="$lt_cv_dlopen_libs $LIBS"
9075
mlcreech94984912008-03-04 19:03:08 +00009076 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9077echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009078if test "${lt_cv_dlopen_self+set}" = set; then
9079 echo $ECHO_N "(cached) $ECHO_C" >&6
9080else
9081 if test "$cross_compiling" = yes; then :
9082 lt_cv_dlopen_self=cross
9083else
a.rottmann9bc8b932004-02-29 15:18:31 +00009084 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009085 lt_status=$lt_dlunknown
9086 cat > conftest.$ac_ext <<EOF
mlcreecha4edab02008-03-06 04:14:17 +00009087#line 9087 "configure"
drh71eb93e2001-09-28 01:34:43 +00009088#include "confdefs.h"
9089
9090#if HAVE_DLFCN_H
9091#include <dlfcn.h>
9092#endif
9093
9094#include <stdio.h>
9095
9096#ifdef RTLD_GLOBAL
9097# define LT_DLGLOBAL RTLD_GLOBAL
9098#else
9099# ifdef DL_GLOBAL
9100# define LT_DLGLOBAL DL_GLOBAL
9101# else
9102# define LT_DLGLOBAL 0
9103# endif
9104#endif
9105
9106/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9107 find out it does not work in some platform. */
9108#ifndef LT_DLLAZY_OR_NOW
9109# ifdef RTLD_LAZY
9110# define LT_DLLAZY_OR_NOW RTLD_LAZY
9111# else
9112# ifdef DL_LAZY
9113# define LT_DLLAZY_OR_NOW DL_LAZY
9114# else
9115# ifdef RTLD_NOW
9116# define LT_DLLAZY_OR_NOW RTLD_NOW
9117# else
9118# ifdef DL_NOW
9119# define LT_DLLAZY_OR_NOW DL_NOW
9120# else
9121# define LT_DLLAZY_OR_NOW 0
9122# endif
9123# endif
9124# endif
9125# endif
9126#endif
9127
9128#ifdef __cplusplus
9129extern "C" void exit (int);
9130#endif
9131
9132void fnord() { int i=42;}
9133int main ()
9134{
9135 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9136 int status = $lt_dlunknown;
9137
9138 if (self)
9139 {
9140 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9141 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9142 /* dlclose (self); */
9143 }
vapier7f19c022007-02-17 14:46:31 +00009144 else
9145 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009146
9147 exit (status);
9148}
9149EOF
a.rottmann84e63352003-03-24 09:42:16 +00009150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009151 (eval $ac_link) 2>&5
9152 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00009153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009154 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009155 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009156 lt_status=$?
9157 case x$lt_status in
9158 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9159 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009160 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00009161 esac
9162 else :
9163 # compilation failed
9164 lt_cv_dlopen_self=no
9165 fi
9166fi
9167rm -fr conftest*
9168
a.rottmann84e63352003-03-24 09:42:16 +00009169
drh71eb93e2001-09-28 01:34:43 +00009170fi
mlcreech94984912008-03-04 19:03:08 +00009171{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9172echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009173
9174 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00009175 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
mlcreech94984912008-03-04 19:03:08 +00009176 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9177echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009178if test "${lt_cv_dlopen_self_static+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9180else
9181 if test "$cross_compiling" = yes; then :
9182 lt_cv_dlopen_self_static=cross
9183else
a.rottmann9bc8b932004-02-29 15:18:31 +00009184 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009185 lt_status=$lt_dlunknown
9186 cat > conftest.$ac_ext <<EOF
mlcreecha4edab02008-03-06 04:14:17 +00009187#line 9187 "configure"
drh71eb93e2001-09-28 01:34:43 +00009188#include "confdefs.h"
9189
9190#if HAVE_DLFCN_H
9191#include <dlfcn.h>
9192#endif
9193
9194#include <stdio.h>
9195
9196#ifdef RTLD_GLOBAL
9197# define LT_DLGLOBAL RTLD_GLOBAL
9198#else
9199# ifdef DL_GLOBAL
9200# define LT_DLGLOBAL DL_GLOBAL
9201# else
9202# define LT_DLGLOBAL 0
9203# endif
9204#endif
9205
9206/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9207 find out it does not work in some platform. */
9208#ifndef LT_DLLAZY_OR_NOW
9209# ifdef RTLD_LAZY
9210# define LT_DLLAZY_OR_NOW RTLD_LAZY
9211# else
9212# ifdef DL_LAZY
9213# define LT_DLLAZY_OR_NOW DL_LAZY
9214# else
9215# ifdef RTLD_NOW
9216# define LT_DLLAZY_OR_NOW RTLD_NOW
9217# else
9218# ifdef DL_NOW
9219# define LT_DLLAZY_OR_NOW DL_NOW
9220# else
9221# define LT_DLLAZY_OR_NOW 0
9222# endif
9223# endif
9224# endif
9225# endif
9226#endif
9227
9228#ifdef __cplusplus
9229extern "C" void exit (int);
9230#endif
9231
9232void fnord() { int i=42;}
9233int main ()
9234{
9235 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9236 int status = $lt_dlunknown;
9237
9238 if (self)
9239 {
9240 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9241 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9242 /* dlclose (self); */
9243 }
vapier7f19c022007-02-17 14:46:31 +00009244 else
9245 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009246
9247 exit (status);
9248}
9249EOF
a.rottmann84e63352003-03-24 09:42:16 +00009250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009251 (eval $ac_link) 2>&5
9252 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00009253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009254 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009255 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009256 lt_status=$?
9257 case x$lt_status in
9258 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9259 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009260 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00009261 esac
9262 else :
9263 # compilation failed
9264 lt_cv_dlopen_self_static=no
9265 fi
9266fi
9267rm -fr conftest*
9268
a.rottmann84e63352003-03-24 09:42:16 +00009269
drh71eb93e2001-09-28 01:34:43 +00009270fi
mlcreech94984912008-03-04 19:03:08 +00009271{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9272echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009273 fi
9274
9275 CPPFLAGS="$save_CPPFLAGS"
9276 LDFLAGS="$save_LDFLAGS"
9277 LIBS="$save_LIBS"
9278 ;;
9279 esac
9280
9281 case $lt_cv_dlopen_self in
9282 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9283 *) enable_dlopen_self=unknown ;;
9284 esac
9285
9286 case $lt_cv_dlopen_self_static in
9287 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9288 *) enable_dlopen_self_static=unknown ;;
9289 esac
9290fi
9291
drh71eb93e2001-09-28 01:34:43 +00009292
vapier7f19c022007-02-17 14:46:31 +00009293# Report which library types will actually be built
mlcreech94984912008-03-04 19:03:08 +00009294{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9295echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9296{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9297echo "${ECHO_T}$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009298
mlcreech94984912008-03-04 19:03:08 +00009299{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9300echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009301test "$can_build_shared" = "no" && enable_shared=no
9302
9303# On AIX, shared libraries and static libraries use the same namespace, and
9304# are all built from PIC.
vapier7f19c022007-02-17 14:46:31 +00009305case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00009306aix3*)
9307 test "$enable_shared" = yes && enable_static=no
9308 if test -n "$RANLIB"; then
9309 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9310 postinstall_cmds='$RANLIB $lib'
9311 fi
9312 ;;
9313
vapier7f19c022007-02-17 14:46:31 +00009314aix4* | aix5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00009315 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9316 test "$enable_shared" = yes && enable_static=no
9317 fi
a.rottmann84e63352003-03-24 09:42:16 +00009318 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009319esac
mlcreech94984912008-03-04 19:03:08 +00009320{ echo "$as_me:$LINENO: result: $enable_shared" >&5
9321echo "${ECHO_T}$enable_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009322
mlcreech94984912008-03-04 19:03:08 +00009323{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9324echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009325# Make sure either enable_shared or enable_static is yes.
9326test "$enable_shared" = yes || enable_static=yes
mlcreech94984912008-03-04 19:03:08 +00009327{ echo "$as_me:$LINENO: result: $enable_static" >&5
9328echo "${ECHO_T}$enable_static" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009329
9330# The else clause should only fire when bootstrapping the
drh71eb93e2001-09-28 01:34:43 +00009331# libtool distribution, otherwise you forgot to ship ltmain.sh
9332# with your package, and you will get complaints that there are
9333# no rules to generate ltmain.sh.
9334if test -f "$ltmain"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009335 # See if we are running on zsh, and set the options which allow our commands through
9336 # without removal of \ escapes.
9337 if test -n "${ZSH_VERSION+set}" ; then
9338 setopt NO_GLOB_SUBST
9339 fi
drh71eb93e2001-09-28 01:34:43 +00009340 # Now quote all the things that may contain metacharacters while being
9341 # careful not to overquote the AC_SUBSTed values. We take copies of the
9342 # variables and quote the copies for generation of the libtool script.
vapier7f19c022007-02-17 14:46:31 +00009343 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
a.rottmann9bc8b932004-02-29 15:18:31 +00009344 SED SHELL STRIP \
9345 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9346 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9347 deplibs_check_method reload_flag reload_cmds need_locks \
9348 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9349 lt_cv_sys_global_symbol_to_c_name_address \
drh71eb93e2001-09-28 01:34:43 +00009350 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
a.rottmann9bc8b932004-02-29 15:18:31 +00009351 old_postinstall_cmds old_postuninstall_cmds \
9352 compiler \
9353 CC \
9354 LD \
9355 lt_prog_compiler_wl \
9356 lt_prog_compiler_pic \
9357 lt_prog_compiler_static \
9358 lt_prog_compiler_no_builtin_flag \
9359 export_dynamic_flag_spec \
9360 thread_safe_flag_spec \
9361 whole_archive_flag_spec \
9362 enable_shared_with_static_runtimes \
9363 old_archive_cmds \
9364 old_archive_from_new_cmds \
9365 predep_objects \
9366 postdep_objects \
9367 predeps \
9368 postdeps \
9369 compiler_lib_search_path \
9370 archive_cmds \
9371 archive_expsym_cmds \
9372 postinstall_cmds \
9373 postuninstall_cmds \
9374 old_archive_from_expsyms_cmds \
9375 allow_undefined_flag \
9376 no_undefined_flag \
9377 export_symbols_cmds \
9378 hardcode_libdir_flag_spec \
9379 hardcode_libdir_flag_spec_ld \
9380 hardcode_libdir_separator \
9381 hardcode_automatic \
9382 module_cmds \
9383 module_expsym_cmds \
9384 lt_cv_prog_compiler_c_o \
9385 exclude_expsyms \
9386 include_expsyms; do
drh71eb93e2001-09-28 01:34:43 +00009387
9388 case $var in
a.rottmann9bc8b932004-02-29 15:18:31 +00009389 old_archive_cmds | \
9390 old_archive_from_new_cmds | \
9391 archive_cmds | \
9392 archive_expsym_cmds | \
9393 module_cmds | \
9394 module_expsym_cmds | \
9395 old_archive_from_expsyms_cmds | \
9396 export_symbols_cmds | \
9397 extract_expsyms_cmds | reload_cmds | finish_cmds | \
a.rottmann84e63352003-03-24 09:42:16 +00009398 postinstall_cmds | postuninstall_cmds | \
a.rottmann9bc8b932004-02-29 15:18:31 +00009399 old_postinstall_cmds | old_postuninstall_cmds | \
9400 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
drh71eb93e2001-09-28 01:34:43 +00009401 # Double-quote double-evaled strings.
9402 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9403 ;;
9404 *)
9405 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9406 ;;
9407 esac
9408 done
9409
a.rottmann9bc8b932004-02-29 15:18:31 +00009410 case $lt_echo in
9411 *'\$0 --fallback-echo"')
9412 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9413 ;;
9414 esac
9415
9416cfgfile="${ofile}T"
9417 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9418 $rm -f "$cfgfile"
9419 { echo "$as_me:$LINENO: creating $ofile" >&5
9420echo "$as_me: creating $ofile" >&6;}
9421
9422 cat <<__EOF__ >> "$cfgfile"
drh71eb93e2001-09-28 01:34:43 +00009423#! $SHELL
9424
a.rottmann9bc8b932004-02-29 15:18:31 +00009425# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
drh71eb93e2001-09-28 01:34:43 +00009426# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9427# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9428#
a.rottmann9bc8b932004-02-29 15:18:31 +00009429# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9430# Free Software Foundation, Inc.
9431#
9432# This file is part of GNU Libtool:
drh71eb93e2001-09-28 01:34:43 +00009433# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9434#
9435# This program is free software; you can redistribute it and/or modify
9436# it under the terms of the GNU General Public License as published by
9437# the Free Software Foundation; either version 2 of the License, or
9438# (at your option) any later version.
9439#
9440# This program is distributed in the hope that it will be useful, but
9441# WITHOUT ANY WARRANTY; without even the implied warranty of
9442# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9443# General Public License for more details.
9444#
9445# You should have received a copy of the GNU General Public License
9446# along with this program; if not, write to the Free Software
vapier7f19c022007-02-17 14:46:31 +00009447# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
drh71eb93e2001-09-28 01:34:43 +00009448#
9449# As a special exception to the GNU General Public License, if you
9450# distribute this file as part of a program that contains a
9451# configuration script generated by Autoconf, you may include it under
9452# the same distribution terms that you use for the rest of that program.
9453
a.rottmann9bc8b932004-02-29 15:18:31 +00009454# A sed program that does not truncate output.
a.rottmann84e63352003-03-24 09:42:16 +00009455SED=$lt_SED
9456
drh71eb93e2001-09-28 01:34:43 +00009457# Sed that helps us avoid accidentally triggering echo(1) options like -n.
vapier7f19c022007-02-17 14:46:31 +00009458Xsed="$SED -e 1s/^X//"
drh71eb93e2001-09-28 01:34:43 +00009459
9460# The HP-UX ksh and POSIX shell print the target directory to stdout
9461# if CDPATH is set.
vapier7f19c022007-02-17 14:46:31 +00009462(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
drh71eb93e2001-09-28 01:34:43 +00009463
a.rottmann9bc8b932004-02-29 15:18:31 +00009464# The names of the tagged configurations supported by this script.
9465available_tags=
9466
drh71eb93e2001-09-28 01:34:43 +00009467# ### BEGIN LIBTOOL CONFIG
9468
9469# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9470
9471# Shell to use when invoking shell scripts.
9472SHELL=$lt_SHELL
9473
9474# Whether or not to build shared libraries.
9475build_libtool_libs=$enable_shared
9476
9477# Whether or not to build static libraries.
9478build_old_libs=$enable_static
9479
9480# Whether or not to add -lc for building shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00009481build_libtool_need_lc=$archive_cmds_need_lc
9482
9483# Whether or not to disallow shared libs when runtime libs are static
9484allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
drh71eb93e2001-09-28 01:34:43 +00009485
9486# Whether or not to optimize for fast installation.
9487fast_install=$enable_fast_install
9488
9489# The host system.
9490host_alias=$host_alias
9491host=$host
vapier7f19c022007-02-17 14:46:31 +00009492host_os=$host_os
9493
9494# The build system.
9495build_alias=$build_alias
9496build=$build
9497build_os=$build_os
drh71eb93e2001-09-28 01:34:43 +00009498
9499# An echo program that does not interpret backslashes.
9500echo=$lt_echo
9501
9502# The archiver.
9503AR=$lt_AR
9504AR_FLAGS=$lt_AR_FLAGS
9505
a.rottmann9bc8b932004-02-29 15:18:31 +00009506# A C compiler.
9507LTCC=$lt_LTCC
9508
vapier7f19c022007-02-17 14:46:31 +00009509# LTCC compiler flags.
9510LTCFLAGS=$lt_LTCFLAGS
9511
a.rottmann9bc8b932004-02-29 15:18:31 +00009512# A language-specific compiler.
9513CC=$lt_compiler
drh71eb93e2001-09-28 01:34:43 +00009514
9515# Is the compiler the GNU C compiler?
9516with_gcc=$GCC
9517
a.rottmann9bc8b932004-02-29 15:18:31 +00009518# An ERE matcher.
9519EGREP=$lt_EGREP
9520
drh71eb93e2001-09-28 01:34:43 +00009521# The linker used to build libraries.
9522LD=$lt_LD
9523
9524# Whether we need hard or soft links.
9525LN_S=$lt_LN_S
9526
9527# A BSD-compatible nm program.
9528NM=$lt_NM
9529
9530# A symbol stripping program
a.rottmann9bc8b932004-02-29 15:18:31 +00009531STRIP=$lt_STRIP
drh71eb93e2001-09-28 01:34:43 +00009532
9533# Used to examine libraries when file_magic_cmd begins "file"
9534MAGIC_CMD=$MAGIC_CMD
9535
9536# Used on cygwin: DLL creation program.
9537DLLTOOL="$DLLTOOL"
9538
9539# Used on cygwin: object dumper.
9540OBJDUMP="$OBJDUMP"
9541
9542# Used on cygwin: assembler.
9543AS="$AS"
9544
9545# The name of the directory that contains temporary libtool files.
9546objdir=$objdir
9547
9548# How to create reloadable object files.
9549reload_flag=$lt_reload_flag
9550reload_cmds=$lt_reload_cmds
9551
9552# How to pass a linker flag through the compiler.
a.rottmann9bc8b932004-02-29 15:18:31 +00009553wl=$lt_lt_prog_compiler_wl
drh71eb93e2001-09-28 01:34:43 +00009554
9555# Object file suffix (normally "o").
9556objext="$ac_objext"
9557
9558# Old archive suffix (normally "a").
9559libext="$libext"
9560
a.rottmann9bc8b932004-02-29 15:18:31 +00009561# Shared library suffix (normally ".so").
vapier7f19c022007-02-17 14:46:31 +00009562shrext_cmds='$shrext_cmds'
a.rottmann9bc8b932004-02-29 15:18:31 +00009563
drh71eb93e2001-09-28 01:34:43 +00009564# Executable file suffix (normally "").
9565exeext="$exeext"
9566
9567# Additional compiler flags for building library objects.
a.rottmann9bc8b932004-02-29 15:18:31 +00009568pic_flag=$lt_lt_prog_compiler_pic
drh71eb93e2001-09-28 01:34:43 +00009569pic_mode=$pic_mode
9570
a.rottmann9bc8b932004-02-29 15:18:31 +00009571# What is the maximum length of a command?
9572max_cmd_len=$lt_cv_sys_max_cmd_len
a.rottmann84e63352003-03-24 09:42:16 +00009573
a.rottmann9bc8b932004-02-29 15:18:31 +00009574# Does compiler simultaneously support -c and -o options?
9575compiler_c_o=$lt_lt_cv_prog_compiler_c_o
drh71eb93e2001-09-28 01:34:43 +00009576
vapier7f19c022007-02-17 14:46:31 +00009577# Must we lock files when doing compilation?
drh71eb93e2001-09-28 01:34:43 +00009578need_locks=$lt_need_locks
9579
9580# Do we need the lib prefix for modules?
9581need_lib_prefix=$need_lib_prefix
9582
9583# Do we need a version for libraries?
9584need_version=$need_version
9585
9586# Whether dlopen is supported.
9587dlopen_support=$enable_dlopen
9588
9589# Whether dlopen of programs is supported.
9590dlopen_self=$enable_dlopen_self
9591
9592# Whether dlopen of statically linked programs is supported.
9593dlopen_self_static=$enable_dlopen_self_static
9594
9595# Compiler flag to prevent dynamic linking.
a.rottmann9bc8b932004-02-29 15:18:31 +00009596link_static_flag=$lt_lt_prog_compiler_static
drh71eb93e2001-09-28 01:34:43 +00009597
9598# Compiler flag to turn off builtin functions.
a.rottmann9bc8b932004-02-29 15:18:31 +00009599no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
drh71eb93e2001-09-28 01:34:43 +00009600
9601# Compiler flag to allow reflexive dlopens.
9602export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9603
9604# Compiler flag to generate shared objects directly from archives.
9605whole_archive_flag_spec=$lt_whole_archive_flag_spec
9606
9607# Compiler flag to generate thread-safe objects.
9608thread_safe_flag_spec=$lt_thread_safe_flag_spec
9609
9610# Library versioning type.
9611version_type=$version_type
9612
9613# Format of library name prefix.
9614libname_spec=$lt_libname_spec
9615
9616# List of archive names. First name is the real one, the rest are links.
9617# The last name is the one that the linker finds with -lNAME.
9618library_names_spec=$lt_library_names_spec
9619
9620# The coded name of the library, if different from the real name.
9621soname_spec=$lt_soname_spec
9622
9623# Commands used to build and install an old-style archive.
9624RANLIB=$lt_RANLIB
9625old_archive_cmds=$lt_old_archive_cmds
9626old_postinstall_cmds=$lt_old_postinstall_cmds
9627old_postuninstall_cmds=$lt_old_postuninstall_cmds
9628
9629# Create an old-style archive from a shared archive.
9630old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9631
9632# Create a temporary old-style archive to link instead of a shared archive.
9633old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9634
9635# Commands used to build and install a shared archive.
9636archive_cmds=$lt_archive_cmds
9637archive_expsym_cmds=$lt_archive_expsym_cmds
9638postinstall_cmds=$lt_postinstall_cmds
9639postuninstall_cmds=$lt_postuninstall_cmds
9640
a.rottmann9bc8b932004-02-29 15:18:31 +00009641# Commands used to build a loadable module (assumed same as above if empty)
9642module_cmds=$lt_module_cmds
9643module_expsym_cmds=$lt_module_expsym_cmds
9644
drh71eb93e2001-09-28 01:34:43 +00009645# Commands to strip libraries.
9646old_striplib=$lt_old_striplib
9647striplib=$lt_striplib
9648
a.rottmann9bc8b932004-02-29 15:18:31 +00009649# Dependencies to place before the objects being linked to create a
9650# shared library.
9651predep_objects=$lt_predep_objects
9652
9653# Dependencies to place after the objects being linked to create a
9654# shared library.
9655postdep_objects=$lt_postdep_objects
9656
9657# Dependencies to place before the objects being linked to create a
9658# shared library.
9659predeps=$lt_predeps
9660
9661# Dependencies to place after the objects being linked to create a
9662# shared library.
9663postdeps=$lt_postdeps
9664
9665# The library search path used internally by the compiler when linking
9666# a shared library.
9667compiler_lib_search_path=$lt_compiler_lib_search_path
9668
drh71eb93e2001-09-28 01:34:43 +00009669# Method to check whether dependent libraries are shared objects.
9670deplibs_check_method=$lt_deplibs_check_method
9671
9672# Command to use when deplibs_check_method == file_magic.
9673file_magic_cmd=$lt_file_magic_cmd
9674
9675# Flag that allows shared libraries with undefined symbols to be built.
9676allow_undefined_flag=$lt_allow_undefined_flag
9677
9678# Flag that forces no undefined symbols.
9679no_undefined_flag=$lt_no_undefined_flag
9680
9681# Commands used to finish a libtool library installation in a directory.
9682finish_cmds=$lt_finish_cmds
9683
9684# Same as above, but a single script fragment to be evaled but not shown.
9685finish_eval=$lt_finish_eval
9686
9687# Take the output of nm and produce a listing of raw symbols and C names.
a.rottmann9bc8b932004-02-29 15:18:31 +00009688global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
drh71eb93e2001-09-28 01:34:43 +00009689
9690# Transform the output of nm in a proper C declaration
a.rottmann9bc8b932004-02-29 15:18:31 +00009691global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
drh71eb93e2001-09-28 01:34:43 +00009692
9693# Transform the output of nm in a C name address pair
a.rottmann9bc8b932004-02-29 15:18:31 +00009694global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
drh71eb93e2001-09-28 01:34:43 +00009695
9696# This is the shared library runtime path variable.
9697runpath_var=$runpath_var
9698
9699# This is the shared library path variable.
9700shlibpath_var=$shlibpath_var
9701
9702# Is shlibpath searched before the hard-coded library search path?
9703shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9704
9705# How to hardcode a shared library path into an executable.
9706hardcode_action=$hardcode_action
9707
9708# Whether we should hardcode library paths into libraries.
9709hardcode_into_libs=$hardcode_into_libs
9710
9711# Flag to hardcode \$libdir into a binary during linking.
9712# This must work even if \$libdir does not exist.
9713hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9714
a.rottmann9bc8b932004-02-29 15:18:31 +00009715# If ld is used when linking, flag to hardcode \$libdir into
9716# a binary during linking. This must work even if \$libdir does
9717# not exist.
9718hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9719
drh71eb93e2001-09-28 01:34:43 +00009720# Whether we need a single -rpath flag with a separated argument.
9721hardcode_libdir_separator=$lt_hardcode_libdir_separator
9722
a.rottmann9bc8b932004-02-29 15:18:31 +00009723# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
drh71eb93e2001-09-28 01:34:43 +00009724# resulting binary.
9725hardcode_direct=$hardcode_direct
9726
9727# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9728# resulting binary.
9729hardcode_minus_L=$hardcode_minus_L
9730
9731# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9732# the resulting binary.
9733hardcode_shlibpath_var=$hardcode_shlibpath_var
9734
a.rottmann9bc8b932004-02-29 15:18:31 +00009735# Set to yes if building a shared library automatically hardcodes DIR into the library
9736# and all subsequent libraries and executables linked against it.
9737hardcode_automatic=$hardcode_automatic
9738
drh71eb93e2001-09-28 01:34:43 +00009739# Variables whose values should be saved in libtool wrapper scripts and
9740# restored at relink time.
9741variables_saved_for_relink="$variables_saved_for_relink"
9742
9743# Whether libtool must link a program against all its dependency libraries.
9744link_all_deplibs=$link_all_deplibs
9745
9746# Compile-time system search path for libraries
9747sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9748
9749# Run-time system search path for libraries
9750sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9751
9752# Fix the shell variable \$srcfile for the compiler.
9753fix_srcfile_path="$fix_srcfile_path"
9754
9755# Set to yes if exported symbols are required.
9756always_export_symbols=$always_export_symbols
9757
9758# The commands to list exported symbols.
9759export_symbols_cmds=$lt_export_symbols_cmds
9760
9761# The commands to extract the exported symbol list from a shared archive.
9762extract_expsyms_cmds=$lt_extract_expsyms_cmds
9763
9764# Symbols that should not be listed in the preloaded symbols.
9765exclude_expsyms=$lt_exclude_expsyms
9766
9767# Symbols that must always be exported.
9768include_expsyms=$lt_include_expsyms
9769
9770# ### END LIBTOOL CONFIG
9771
9772__EOF__
9773
a.rottmann9bc8b932004-02-29 15:18:31 +00009774
drh71eb93e2001-09-28 01:34:43 +00009775 case $host_os in
9776 aix3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00009777 cat <<\EOF >> "$cfgfile"
drh71eb93e2001-09-28 01:34:43 +00009778
9779# AIX sometimes has problems with the GCC collect2 program. For some
9780# reason, if we set the COLLECT_NAMES environment variable, the problems
9781# vanish in a puff of smoke.
9782if test "X${COLLECT_NAMES+set}" != Xset; then
9783 COLLECT_NAMES=
9784 export COLLECT_NAMES
9785fi
9786EOF
9787 ;;
a.rottmann84e63352003-03-24 09:42:16 +00009788 esac
drh71eb93e2001-09-28 01:34:43 +00009789
drh71eb93e2001-09-28 01:34:43 +00009790 # We use sed instead of cat because bash on DJGPP gets confused if
9791 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9792 # text mode, it properly converts lines to CR/LF. This bash problem
9793 # is reportedly fixed, but why not run on old versions too?
a.rottmann9bc8b932004-02-29 15:18:31 +00009794 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
drh71eb93e2001-09-28 01:34:43 +00009795
a.rottmann9bc8b932004-02-29 15:18:31 +00009796 mv -f "$cfgfile" "$ofile" || \
9797 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
drh71eb93e2001-09-28 01:34:43 +00009798 chmod +x "$ofile"
a.rottmann9bc8b932004-02-29 15:18:31 +00009799
9800else
9801 # If there is no Makefile yet, we rely on a make rule to execute
9802 # `config.status --recheck' to rerun these tests and create the
9803 # libtool script then.
9804 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9805 if test -f "$ltmain_in"; then
9806 test -f Makefile && make "$ltmain"
9807 fi
drh71eb93e2001-09-28 01:34:43 +00009808fi
9809
drh71eb93e2001-09-28 01:34:43 +00009810
a.rottmann9bc8b932004-02-29 15:18:31 +00009811ac_ext=c
9812ac_cpp='$CPP $CPPFLAGS'
9813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9815ac_compiler_gnu=$ac_cv_c_compiler_gnu
9816
9817CC="$lt_save_CC"
9818
9819
mlcreech94984912008-03-04 19:03:08 +00009820# Check whether --with-tags was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00009821if test "${with_tags+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00009822 withval=$with_tags; tagnames="$withval"
9823fi
9824
a.rottmann9bc8b932004-02-29 15:18:31 +00009825
9826if test -f "$ltmain" && test -n "$tagnames"; then
9827 if test ! -f "${ofile}"; then
9828 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9829echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9830 fi
9831
9832 if test -z "$LTCC"; then
9833 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9834 if test -z "$LTCC"; then
9835 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9836echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9837 else
9838 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9839echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9840 fi
9841 fi
vapier7f19c022007-02-17 14:46:31 +00009842 if test -z "$LTCFLAGS"; then
9843 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9844 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009845
9846 # Extract list of available tagged configurations in $ofile.
9847 # Note that this assumes the entire list is on one line.
9848 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9849
9850 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9851 for tagname in $tagnames; do
9852 IFS="$lt_save_ifs"
9853 # Check whether tagname contains only valid characters
9854 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9855 "") ;;
9856 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9857echo "$as_me: error: invalid tag name: $tagname" >&2;}
9858 { (exit 1); exit 1; }; }
9859 ;;
9860 esac
9861
9862 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9863 then
9864 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9865echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9866 { (exit 1); exit 1; }; }
9867 fi
9868
9869 # Update the list of available tags.
9870 if test -n "$tagname"; then
9871 echo appending configuration tag \"$tagname\" to $ofile
9872
9873 case $tagname in
9874 CXX)
vapier7f19c022007-02-17 14:46:31 +00009875 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9876 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9877 (test "X$CXX" != "Xg++"))) ; then
mlcreech94984912008-03-04 19:03:08 +00009878 ac_ext=cpp
a.rottmann9bc8b932004-02-29 15:18:31 +00009879ac_cpp='$CXXCPP $CPPFLAGS'
9880ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9881ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9882ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9883
9884
9885
9886
9887archive_cmds_need_lc_CXX=no
9888allow_undefined_flag_CXX=
9889always_export_symbols_CXX=no
9890archive_expsym_cmds_CXX=
9891export_dynamic_flag_spec_CXX=
9892hardcode_direct_CXX=no
9893hardcode_libdir_flag_spec_CXX=
9894hardcode_libdir_flag_spec_ld_CXX=
9895hardcode_libdir_separator_CXX=
9896hardcode_minus_L_CXX=no
vapier7f19c022007-02-17 14:46:31 +00009897hardcode_shlibpath_var_CXX=unsupported
a.rottmann9bc8b932004-02-29 15:18:31 +00009898hardcode_automatic_CXX=no
9899module_cmds_CXX=
9900module_expsym_cmds_CXX=
9901link_all_deplibs_CXX=unknown
9902old_archive_cmds_CXX=$old_archive_cmds
9903no_undefined_flag_CXX=
9904whole_archive_flag_spec_CXX=
9905enable_shared_with_static_runtimes_CXX=no
9906
9907# Dependencies to place before and after the object being linked:
9908predep_objects_CXX=
9909postdep_objects_CXX=
9910predeps_CXX=
9911postdeps_CXX=
9912compiler_lib_search_path_CXX=
9913
9914# Source file extension for C++ test sources.
vapier7f19c022007-02-17 14:46:31 +00009915ac_ext=cpp
a.rottmann9bc8b932004-02-29 15:18:31 +00009916
9917# Object file extension for compiled C++ test sources.
9918objext=o
9919objext_CXX=$objext
9920
9921# Code to be used in simple compile tests
9922lt_simple_compile_test_code="int some_variable = 0;\n"
9923
9924# Code to be used in simple link tests
vapier7f19c022007-02-17 14:46:31 +00009925lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
a.rottmann9bc8b932004-02-29 15:18:31 +00009926
9927# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9928
9929# If no C compiler was specified, use CC.
9930LTCC=${LTCC-"$CC"}
9931
vapier7f19c022007-02-17 14:46:31 +00009932# If no C compiler flags were specified, use CFLAGS.
9933LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9934
a.rottmann9bc8b932004-02-29 15:18:31 +00009935# Allow CC to be a program name with arguments.
9936compiler=$CC
9937
9938
vapier7f19c022007-02-17 14:46:31 +00009939# save warnings/boilerplate of simple test code
9940ac_outfile=conftest.$ac_objext
9941printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9942eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9943_lt_compiler_boilerplate=`cat conftest.err`
9944$rm conftest*
9945
9946ac_outfile=conftest.$ac_objext
9947printf "$lt_simple_link_test_code" >conftest.$ac_ext
9948eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9949_lt_linker_boilerplate=`cat conftest.err`
9950$rm conftest*
9951
9952
a.rottmann9bc8b932004-02-29 15:18:31 +00009953# Allow CC to be a program name with arguments.
9954lt_save_CC=$CC
9955lt_save_LD=$LD
9956lt_save_GCC=$GCC
9957GCC=$GXX
9958lt_save_with_gnu_ld=$with_gnu_ld
9959lt_save_path_LD=$lt_cv_path_LD
9960if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9961 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9962else
vapier7f19c022007-02-17 14:46:31 +00009963 $as_unset lt_cv_prog_gnu_ld
a.rottmann9bc8b932004-02-29 15:18:31 +00009964fi
9965if test -n "${lt_cv_path_LDCXX+set}"; then
9966 lt_cv_path_LD=$lt_cv_path_LDCXX
9967else
vapier7f19c022007-02-17 14:46:31 +00009968 $as_unset lt_cv_path_LD
a.rottmann9bc8b932004-02-29 15:18:31 +00009969fi
9970test -z "${LDCXX+set}" || LD=$LDCXX
9971CC=${CXX-"c++"}
9972compiler=$CC
9973compiler_CXX=$CC
vapier7f19c022007-02-17 14:46:31 +00009974for cc_temp in $compiler""; do
9975 case $cc_temp in
9976 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9977 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9978 \-*) ;;
9979 *) break;;
9980 esac
9981done
9982cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9983
a.rottmann9bc8b932004-02-29 15:18:31 +00009984
9985# We don't want -fno-exception wen compiling C++ code, so set the
9986# no_builtin_flag separately
9987if test "$GXX" = yes; then
9988 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9989else
9990 lt_prog_compiler_no_builtin_flag_CXX=
9991fi
9992
9993if test "$GXX" = yes; then
9994 # Set up default GNU C++ configuration
9995
9996
mlcreech94984912008-03-04 19:03:08 +00009997# Check whether --with-gnu-ld was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00009998if test "${with_gnu_ld+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00009999 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +000010000else
10001 with_gnu_ld=no
mlcreech94984912008-03-04 19:03:08 +000010002fi
10003
a.rottmann9bc8b932004-02-29 15:18:31 +000010004ac_prog=ld
10005if test "$GCC" = yes; then
10006 # Check if gcc -print-prog-name=ld gives a path.
mlcreech94984912008-03-04 19:03:08 +000010007 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10008echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010009 case $host in
10010 *-*-mingw*)
10011 # gcc leaves a trailing carriage return which upsets mingw
10012 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10013 *)
10014 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10015 esac
10016 case $ac_prog in
10017 # Accept absolute paths.
10018 [\\/]* | ?:[\\/]*)
10019 re_direlt='/[^/][^/]*/\.\./'
10020 # Canonicalize the pathname of ld
10021 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10022 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10023 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10024 done
10025 test -z "$LD" && LD="$ac_prog"
10026 ;;
10027 "")
10028 # If it fails, then pretend we aren't using GCC.
10029 ac_prog=ld
10030 ;;
10031 *)
10032 # If it is relative, then search for the first ld in PATH.
10033 with_gnu_ld=unknown
10034 ;;
10035 esac
10036elif test "$with_gnu_ld" = yes; then
mlcreech94984912008-03-04 19:03:08 +000010037 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10038echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010039else
mlcreech94984912008-03-04 19:03:08 +000010040 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10041echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010042fi
10043if test "${lt_cv_path_LD+set}" = set; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10045else
10046 if test -z "$LD"; then
10047 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10048 for ac_dir in $PATH; do
10049 IFS="$lt_save_ifs"
10050 test -z "$ac_dir" && ac_dir=.
10051 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10052 lt_cv_path_LD="$ac_dir/$ac_prog"
10053 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +000010054 # but apparently some variants of GNU ld only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +000010055 # Break only if it was the GNU/non-GNU ld that we prefer.
10056 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10057 *GNU* | *'with BFD'*)
10058 test "$with_gnu_ld" != no && break
10059 ;;
10060 *)
10061 test "$with_gnu_ld" != yes && break
10062 ;;
10063 esac
10064 fi
10065 done
10066 IFS="$lt_save_ifs"
10067else
10068 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10069fi
10070fi
10071
10072LD="$lt_cv_path_LD"
10073if test -n "$LD"; then
mlcreech94984912008-03-04 19:03:08 +000010074 { echo "$as_me:$LINENO: result: $LD" >&5
10075echo "${ECHO_T}$LD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010076else
mlcreech94984912008-03-04 19:03:08 +000010077 { echo "$as_me:$LINENO: result: no" >&5
10078echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010079fi
10080test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10081echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10082 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +000010083{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10084echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010085if test "${lt_cv_prog_gnu_ld+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10087else
vapier7f19c022007-02-17 14:46:31 +000010088 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +000010089case `$LD -v 2>&1 </dev/null` in
10090*GNU* | *'with BFD'*)
10091 lt_cv_prog_gnu_ld=yes
10092 ;;
10093*)
10094 lt_cv_prog_gnu_ld=no
10095 ;;
10096esac
10097fi
mlcreech94984912008-03-04 19:03:08 +000010098{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10099echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010100with_gnu_ld=$lt_cv_prog_gnu_ld
10101
10102
10103
10104 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10105 # archiving commands below assume that GNU ld is being used.
10106 if test "$with_gnu_ld" = yes; then
10107 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10108 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'
10109
10110 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10111 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10112
10113 # If archive_cmds runs LD, not CC, wlarc should be empty
10114 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10115 # investigate it a little bit more. (MM)
10116 wlarc='${wl}'
10117
10118 # ancient GNU ld didn't support --whole-archive et. al.
10119 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10120 grep 'no-whole-archive' > /dev/null; then
10121 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10122 else
10123 whole_archive_flag_spec_CXX=
10124 fi
10125 else
10126 with_gnu_ld=no
10127 wlarc=
10128
10129 # A generic and very simple default shared library creation
10130 # command for GNU C++ for the case where it uses the native
10131 # linker, instead of GNU ld. If possible, this setting should
10132 # overridden to take advantage of the native linker features on
10133 # the platform it is being used on.
10134 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10135 fi
10136
10137 # Commands to make compiler produce verbose output that lists
10138 # what "hidden" libraries, object files and flags are used when
10139 # linking a shared library.
10140 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10141
10142else
10143 GXX=no
10144 with_gnu_ld=no
10145 wlarc=
10146fi
10147
10148# PORTME: fill in a description of your system's C++ link characteristics
mlcreech94984912008-03-04 19:03:08 +000010149{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10150echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010151ld_shlibs_CXX=yes
10152case $host_os in
10153 aix3*)
10154 # FIXME: insert proper C++ library support
10155 ld_shlibs_CXX=no
10156 ;;
10157 aix4* | aix5*)
10158 if test "$host_cpu" = ia64; then
10159 # On IA64, the linker does run time linking by default, so we don't
10160 # have to do anything special.
10161 aix_use_runtimelinking=no
10162 exp_sym_flag='-Bexport'
10163 no_entry_flag=""
10164 else
10165 aix_use_runtimelinking=no
10166
10167 # Test if we are trying to use run time linking or normal
10168 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10169 # need to do runtime linking.
10170 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10171 for ld_flag in $LDFLAGS; do
10172 case $ld_flag in
10173 *-brtl*)
10174 aix_use_runtimelinking=yes
10175 break
10176 ;;
10177 esac
10178 done
vapier7f19c022007-02-17 14:46:31 +000010179 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010180 esac
10181
10182 exp_sym_flag='-bexport'
10183 no_entry_flag='-bnoentry'
10184 fi
10185
10186 # When large executables or shared objects are built, AIX ld can
10187 # have problems creating the table of contents. If linking a library
10188 # or program results in "error TOC overflow" add -mminimal-toc to
10189 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10190 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10191
10192 archive_cmds_CXX=''
10193 hardcode_direct_CXX=yes
10194 hardcode_libdir_separator_CXX=':'
10195 link_all_deplibs_CXX=yes
10196
10197 if test "$GXX" = yes; then
vapier7f19c022007-02-17 14:46:31 +000010198 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010199 # We only want to do this on AIX 4.2 and lower, the check
10200 # below for broken collect2 doesn't work under 4.3+
10201 collect2name=`${CC} -print-prog-name=collect2`
10202 if test -f "$collect2name" && \
10203 strings "$collect2name" | grep resolve_lib_name >/dev/null
10204 then
10205 # We have reworked collect2
10206 hardcode_direct_CXX=yes
10207 else
10208 # We have old collect2
10209 hardcode_direct_CXX=unsupported
10210 # It fails to find uninstalled libraries when the uninstalled
10211 # path is not listed in the libpath. Setting hardcode_minus_L
10212 # to unsupported forces relinking
10213 hardcode_minus_L_CXX=yes
10214 hardcode_libdir_flag_spec_CXX='-L$libdir'
10215 hardcode_libdir_separator_CXX=
10216 fi
vapier7f19c022007-02-17 14:46:31 +000010217 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010218 esac
10219 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +000010220 if test "$aix_use_runtimelinking" = yes; then
10221 shared_flag="$shared_flag "'${wl}-G'
10222 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010223 else
10224 # not using gcc
10225 if test "$host_cpu" = ia64; then
10226 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10227 # chokes on -Wl,-G. The following line is correct:
10228 shared_flag='-G'
10229 else
10230 if test "$aix_use_runtimelinking" = yes; then
10231 shared_flag='${wl}-G'
10232 else
10233 shared_flag='${wl}-bM:SRE'
10234 fi
10235 fi
10236 fi
10237
10238 # It seems that -bexpall does not export symbols beginning with
10239 # underscore (_), so it is better to generate a list of symbols to export.
10240 always_export_symbols_CXX=yes
10241 if test "$aix_use_runtimelinking" = yes; then
10242 # Warning - without using the other runtime loading flags (-brtl),
10243 # -berok will link without error, but may produce a broken library.
10244 allow_undefined_flag_CXX='-berok'
10245 # Determine the default libpath from the value encoded in an empty executable.
10246 cat >conftest.$ac_ext <<_ACEOF
10247/* confdefs.h. */
10248_ACEOF
10249cat confdefs.h >>conftest.$ac_ext
10250cat >>conftest.$ac_ext <<_ACEOF
10251/* end confdefs.h. */
10252
10253int
10254main ()
10255{
10256
10257 ;
10258 return 0;
10259}
10260_ACEOF
10261rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000010262if { (ac_try="$ac_link"
10263case "(($ac_try" in
10264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10265 *) ac_try_echo=$ac_try;;
10266esac
10267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000010269 ac_status=$?
10270 grep -v '^ *+' conftest.er1 >conftest.err
10271 rm -f conftest.er1
10272 cat conftest.err >&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000010274 (exit $ac_status); } && {
10275 test -z "$ac_cxx_werror_flag" ||
10276 test ! -s conftest.err
10277 } && test -s conftest$ac_exeext &&
10278 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +000010279
10280aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10281}'`
10282# Check for a 64-bit object if we didn't find anything.
10283if 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; }
10284}'`; fi
10285else
10286 echo "$as_me: failed program was:" >&5
10287sed 's/^/| /' conftest.$ac_ext >&5
10288
mlcreech94984912008-03-04 19:03:08 +000010289
a.rottmann9bc8b932004-02-29 15:18:31 +000010290fi
mlcreech94984912008-03-04 19:03:08 +000010291
10292rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +000010293 conftest$ac_exeext conftest.$ac_ext
10294if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10295
10296 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10297
vapier7f19c022007-02-17 14:46:31 +000010298 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"
a.rottmann9bc8b932004-02-29 15:18:31 +000010299 else
10300 if test "$host_cpu" = ia64; then
10301 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10302 allow_undefined_flag_CXX="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +000010303 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"
a.rottmann9bc8b932004-02-29 15:18:31 +000010304 else
10305 # Determine the default libpath from the value encoded in an empty executable.
10306 cat >conftest.$ac_ext <<_ACEOF
10307/* confdefs.h. */
10308_ACEOF
10309cat confdefs.h >>conftest.$ac_ext
10310cat >>conftest.$ac_ext <<_ACEOF
10311/* end confdefs.h. */
10312
10313int
10314main ()
10315{
10316
10317 ;
10318 return 0;
10319}
10320_ACEOF
10321rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000010322if { (ac_try="$ac_link"
10323case "(($ac_try" in
10324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10325 *) ac_try_echo=$ac_try;;
10326esac
10327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10328 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000010329 ac_status=$?
10330 grep -v '^ *+' conftest.er1 >conftest.err
10331 rm -f conftest.er1
10332 cat conftest.err >&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000010334 (exit $ac_status); } && {
10335 test -z "$ac_cxx_werror_flag" ||
10336 test ! -s conftest.err
10337 } && test -s conftest$ac_exeext &&
10338 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +000010339
10340aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10341}'`
10342# Check for a 64-bit object if we didn't find anything.
10343if 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; }
10344}'`; fi
10345else
10346 echo "$as_me: failed program was:" >&5
10347sed 's/^/| /' conftest.$ac_ext >&5
10348
mlcreech94984912008-03-04 19:03:08 +000010349
a.rottmann9bc8b932004-02-29 15:18:31 +000010350fi
mlcreech94984912008-03-04 19:03:08 +000010351
10352rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +000010353 conftest$ac_exeext conftest.$ac_ext
10354if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10355
10356 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10357 # Warning - without using the other run time loading flags,
10358 # -berok will link without error, but may produce a broken library.
10359 no_undefined_flag_CXX=' ${wl}-bernotok'
10360 allow_undefined_flag_CXX=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +000010361 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +000010362 whole_archive_flag_spec_CXX='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +000010363 archive_cmds_need_lc_CXX=yes
vapier7f19c022007-02-17 14:46:31 +000010364 # This is similar to how AIX traditionally builds its shared libraries.
10365 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000010366 fi
10367 fi
10368 ;;
vapier7f19c022007-02-17 14:46:31 +000010369
10370 beos*)
10371 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10372 allow_undefined_flag_CXX=unsupported
10373 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10374 # support --undefined. This deserves some investigation. FIXME
10375 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10376 else
10377 ld_shlibs_CXX=no
10378 fi
10379 ;;
10380
a.rottmann9bc8b932004-02-29 15:18:31 +000010381 chorus*)
10382 case $cc_basename in
10383 *)
10384 # FIXME: insert proper C++ library support
10385 ld_shlibs_CXX=no
10386 ;;
10387 esac
10388 ;;
10389
10390 cygwin* | mingw* | pw32*)
10391 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10392 # as there is no search path for DLLs.
10393 hardcode_libdir_flag_spec_CXX='-L$libdir'
10394 allow_undefined_flag_CXX=unsupported
10395 always_export_symbols_CXX=no
10396 enable_shared_with_static_runtimes_CXX=yes
10397
10398 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +000010399 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000010400 # If the export-symbols file already is a .def file (1st line
10401 # is EXPORTS), use it as is; otherwise, prepend...
10402 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10403 cp $export_symbols $output_objdir/$soname.def;
10404 else
10405 echo EXPORTS > $output_objdir/$soname.def;
10406 cat $export_symbols >> $output_objdir/$soname.def;
10407 fi~
vapier7f19c022007-02-17 14:46:31 +000010408 $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'
a.rottmann9bc8b932004-02-29 15:18:31 +000010409 else
10410 ld_shlibs_CXX=no
10411 fi
10412 ;;
vapier7f19c022007-02-17 14:46:31 +000010413 darwin* | rhapsody*)
10414 case $host_os in
10415 rhapsody* | darwin1.[012])
10416 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10417 ;;
10418 *) # Darwin 1.3 on
10419 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10420 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10421 else
10422 case ${MACOSX_DEPLOYMENT_TARGET} in
10423 10.[012])
10424 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10425 ;;
10426 10.*)
10427 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10428 ;;
10429 esac
10430 fi
10431 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010432 esac
vapier7f19c022007-02-17 14:46:31 +000010433 archive_cmds_need_lc_CXX=no
10434 hardcode_direct_CXX=no
10435 hardcode_automatic_CXX=yes
10436 hardcode_shlibpath_var_CXX=unsupported
10437 whole_archive_flag_spec_CXX=''
10438 link_all_deplibs_CXX=yes
a.rottmann9bc8b932004-02-29 15:18:31 +000010439
vapier7f19c022007-02-17 14:46:31 +000010440 if test "$GXX" = yes ; then
10441 lt_int_apple_cc_single_mod=no
10442 output_verbose_link_cmd='echo'
10443 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10444 lt_int_apple_cc_single_mod=yes
10445 fi
10446 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10447 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10448 else
10449 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'
10450 fi
10451 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10452 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10453 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10454 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}'
10455 else
10456 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}'
10457 fi
10458 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}'
10459 else
10460 case $cc_basename in
10461 xlc*)
10462 output_verbose_link_cmd='echo'
10463 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'
10464 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10465 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10466 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}'
10467 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}'
10468 ;;
10469 *)
10470 ld_shlibs_CXX=no
10471 ;;
10472 esac
10473 fi
10474 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010475
10476 dgux*)
10477 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010478 ec++*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010479 # FIXME: insert proper C++ library support
10480 ld_shlibs_CXX=no
10481 ;;
vapier7f19c022007-02-17 14:46:31 +000010482 ghcx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010483 # Green Hills C++ Compiler
10484 # FIXME: insert proper C++ library support
10485 ld_shlibs_CXX=no
10486 ;;
10487 *)
10488 # FIXME: insert proper C++ library support
10489 ld_shlibs_CXX=no
10490 ;;
10491 esac
10492 ;;
vapier7f19c022007-02-17 14:46:31 +000010493 freebsd[12]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010494 # C++ shared libraries reported to be fairly broken before switch to ELF
10495 ld_shlibs_CXX=no
10496 ;;
10497 freebsd-elf*)
10498 archive_cmds_need_lc_CXX=no
10499 ;;
vapier7f19c022007-02-17 14:46:31 +000010500 freebsd* | kfreebsd*-gnu | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010501 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10502 # conventions
10503 ld_shlibs_CXX=yes
10504 ;;
10505 gnu*)
10506 ;;
10507 hpux9*)
10508 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10509 hardcode_libdir_separator_CXX=:
10510 export_dynamic_flag_spec_CXX='${wl}-E'
10511 hardcode_direct_CXX=yes
10512 hardcode_minus_L_CXX=yes # Not in the search PATH,
10513 # but as the default
10514 # location of the library.
10515
10516 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010517 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010518 # FIXME: insert proper C++ library support
10519 ld_shlibs_CXX=no
10520 ;;
vapier7f19c022007-02-17 14:46:31 +000010521 aCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010522 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'
10523 # Commands to make compiler produce verbose output that lists
10524 # what "hidden" libraries, object files and flags are used when
10525 # linking a shared library.
10526 #
10527 # There doesn't appear to be a way to prevent this compiler from
10528 # explicitly linking system object files so we need to strip them
10529 # from the output so that they don't get included in the library
10530 # dependencies.
vapier7f19c022007-02-17 14:46:31 +000010531 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000010532 ;;
10533 *)
10534 if test "$GXX" = yes; then
10535 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'
10536 else
10537 # FIXME: insert proper C++ library support
10538 ld_shlibs_CXX=no
10539 fi
10540 ;;
10541 esac
10542 ;;
10543 hpux10*|hpux11*)
10544 if test $with_gnu_ld = no; then
vapier7f19c022007-02-17 14:46:31 +000010545 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10546 hardcode_libdir_separator_CXX=:
10547
10548 case $host_cpu in
10549 hppa*64*|ia64*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010550 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
a.rottmann9bc8b932004-02-29 15:18:31 +000010551 ;;
10552 *)
a.rottmann9bc8b932004-02-29 15:18:31 +000010553 export_dynamic_flag_spec_CXX='${wl}-E'
10554 ;;
10555 esac
10556 fi
vapier7f19c022007-02-17 14:46:31 +000010557 case $host_cpu in
10558 hppa*64*|ia64*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010559 hardcode_direct_CXX=no
10560 hardcode_shlibpath_var_CXX=no
10561 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010562 *)
10563 hardcode_direct_CXX=yes
10564 hardcode_minus_L_CXX=yes # Not in the search PATH,
10565 # but as the default
10566 # location of the library.
10567 ;;
10568 esac
10569
10570 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010571 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010572 # FIXME: insert proper C++ library support
10573 ld_shlibs_CXX=no
10574 ;;
vapier7f19c022007-02-17 14:46:31 +000010575 aCC*)
10576 case $host_cpu in
10577 hppa*64*)
10578 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10579 ;;
10580 ia64*)
10581 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000010582 ;;
10583 *)
10584 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10585 ;;
10586 esac
10587 # Commands to make compiler produce verbose output that lists
10588 # what "hidden" libraries, object files and flags are used when
10589 # linking a shared library.
10590 #
10591 # There doesn't appear to be a way to prevent this compiler from
10592 # explicitly linking system object files so we need to strip them
10593 # from the output so that they don't get included in the library
10594 # dependencies.
10595 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'
10596 ;;
10597 *)
10598 if test "$GXX" = yes; then
10599 if test $with_gnu_ld = no; then
vapier7f19c022007-02-17 14:46:31 +000010600 case $host_cpu in
10601 hppa*64*)
10602 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10603 ;;
10604 ia64*)
10605 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000010606 ;;
10607 *)
10608 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'
10609 ;;
10610 esac
10611 fi
10612 else
10613 # FIXME: insert proper C++ library support
10614 ld_shlibs_CXX=no
10615 fi
10616 ;;
10617 esac
10618 ;;
vapier7f19c022007-02-17 14:46:31 +000010619 interix3*)
10620 hardcode_direct_CXX=no
10621 hardcode_shlibpath_var_CXX=no
10622 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10623 export_dynamic_flag_spec_CXX='${wl}-E'
10624 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10625 # Instead, shared libraries are loaded at an image base (0x10000000 by
10626 # default) and relocated if they conflict, which is a slow very memory
10627 # consuming and fragmenting process. To avoid this, we pick a random,
10628 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10629 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10630 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'
10631 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'
10632 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010633 irix5* | irix6*)
10634 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010635 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010636 # SGI C++
vapier7f19c022007-02-17 14:46:31 +000010637 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000010638
10639 # Archives containing C++ object files must be created using
10640 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10641 # necessary to make sure instantiated templates are included
10642 # in the archive.
10643 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10644 ;;
10645 *)
10646 if test "$GXX" = yes; then
10647 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +000010648 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000010649 else
10650 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'
10651 fi
10652 fi
10653 link_all_deplibs_CXX=yes
10654 ;;
10655 esac
10656 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10657 hardcode_libdir_separator_CXX=:
10658 ;;
10659 linux*)
10660 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010661 KCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010662 # Kuck and Associates, Inc. (KAI) C++ Compiler
10663
10664 # KCC will only create a shared library if the output file
10665 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10666 # to its proper name (with version) after linking.
10667 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'
10668 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'
10669 # Commands to make compiler produce verbose output that lists
10670 # what "hidden" libraries, object files and flags are used when
10671 # linking a shared library.
10672 #
10673 # There doesn't appear to be a way to prevent this compiler from
10674 # explicitly linking system object files so we need to strip them
10675 # from the output so that they don't get included in the library
10676 # dependencies.
10677 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'
10678
10679 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10680 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10681
10682 # Archives containing C++ object files must be created using
10683 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10684 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10685 ;;
vapier7f19c022007-02-17 14:46:31 +000010686 icpc*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010687 # Intel C++
10688 with_gnu_ld=yes
vapier7f19c022007-02-17 14:46:31 +000010689 # version 8.0 and above of icpc choke on multiply defined symbols
10690 # if we add $predep_objects and $postdep_objects, however 7.1 and
10691 # earlier do not add the objects themselves.
10692 case `$CC -V 2>&1` in
10693 *"Version 7."*)
10694 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10695 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'
10696 ;;
10697 *) # Version 8.0 or newer
10698 tmp_idyn=
10699 case $host_cpu in
10700 ia64*) tmp_idyn=' -i_dynamic';;
10701 esac
10702 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10703 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'
10704 ;;
10705 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000010706 archive_cmds_need_lc_CXX=no
a.rottmann9bc8b932004-02-29 15:18:31 +000010707 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10708 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10709 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10710 ;;
vapier7f19c022007-02-17 14:46:31 +000010711 pgCC*)
10712 # Portland Group C++ compiler
10713 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10714 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'
10715
10716 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10717 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10718 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'
10719 ;;
10720 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010721 # Compaq C++
10722 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10723 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'
10724
10725 runpath_var=LD_RUN_PATH
10726 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10727 hardcode_libdir_separator_CXX=:
10728
10729 # Commands to make compiler produce verbose output that lists
10730 # what "hidden" libraries, object files and flags are used when
10731 # linking a shared library.
10732 #
10733 # There doesn't appear to be a way to prevent this compiler from
10734 # explicitly linking system object files so we need to strip them
10735 # from the output so that they don't get included in the library
10736 # dependencies.
10737 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'
10738 ;;
10739 esac
10740 ;;
10741 lynxos*)
10742 # FIXME: insert proper C++ library support
10743 ld_shlibs_CXX=no
10744 ;;
10745 m88k*)
10746 # FIXME: insert proper C++ library support
10747 ld_shlibs_CXX=no
10748 ;;
10749 mvs*)
10750 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010751 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010752 # FIXME: insert proper C++ library support
10753 ld_shlibs_CXX=no
10754 ;;
10755 *)
10756 # FIXME: insert proper C++ library support
10757 ld_shlibs_CXX=no
10758 ;;
10759 esac
10760 ;;
vapier7f19c022007-02-17 14:46:31 +000010761 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010762 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10763 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10764 wlarc=
10765 hardcode_libdir_flag_spec_CXX='-R$libdir'
10766 hardcode_direct_CXX=yes
10767 hardcode_shlibpath_var_CXX=no
10768 fi
10769 # Workaround some broken pre-1.5 toolchains
10770 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10771 ;;
vapier7f19c022007-02-17 14:46:31 +000010772 openbsd2*)
10773 # C++ shared libraries are fairly broken
10774 ld_shlibs_CXX=no
10775 ;;
10776 openbsd*)
10777 hardcode_direct_CXX=yes
10778 hardcode_shlibpath_var_CXX=no
10779 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10780 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10781 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10782 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10783 export_dynamic_flag_spec_CXX='${wl}-E'
10784 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10785 fi
10786 output_verbose_link_cmd='echo'
10787 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010788 osf3*)
10789 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010790 KCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010791 # Kuck and Associates, Inc. (KAI) C++ Compiler
10792
10793 # KCC will only create a shared library if the output file
10794 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10795 # to its proper name (with version) after linking.
10796 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'
10797
10798 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10799 hardcode_libdir_separator_CXX=:
10800
10801 # Archives containing C++ object files must be created using
10802 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10803 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10804
10805 ;;
vapier7f19c022007-02-17 14:46:31 +000010806 RCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010807 # Rational C++ 2.4.1
10808 # FIXME: insert proper C++ library support
10809 ld_shlibs_CXX=no
10810 ;;
vapier7f19c022007-02-17 14:46:31 +000010811 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010812 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
vapier7f19c022007-02-17 14:46:31 +000010813 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000010814
10815 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10816 hardcode_libdir_separator_CXX=:
10817
10818 # Commands to make compiler produce verbose output that lists
10819 # what "hidden" libraries, object files and flags are used when
10820 # linking a shared library.
10821 #
10822 # There doesn't appear to be a way to prevent this compiler from
10823 # explicitly linking system object files so we need to strip them
10824 # from the output so that they don't get included in the library
10825 # dependencies.
10826 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'
10827 ;;
10828 *)
10829 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10830 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
vapier7f19c022007-02-17 14:46:31 +000010831 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000010832
10833 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10834 hardcode_libdir_separator_CXX=:
10835
10836 # Commands to make compiler produce verbose output that lists
10837 # what "hidden" libraries, object files and flags are used when
10838 # linking a shared library.
10839 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10840
10841 else
10842 # FIXME: insert proper C++ library support
10843 ld_shlibs_CXX=no
10844 fi
10845 ;;
10846 esac
10847 ;;
10848 osf4* | osf5*)
10849 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010850 KCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010851 # Kuck and Associates, Inc. (KAI) C++ Compiler
10852
10853 # KCC will only create a shared library if the output file
10854 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10855 # to its proper name (with version) after linking.
10856 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'
10857
10858 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10859 hardcode_libdir_separator_CXX=:
10860
10861 # Archives containing C++ object files must be created using
10862 # the KAI C++ compiler.
10863 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10864 ;;
vapier7f19c022007-02-17 14:46:31 +000010865 RCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010866 # Rational C++ 2.4.1
10867 # FIXME: insert proper C++ library support
10868 ld_shlibs_CXX=no
10869 ;;
vapier7f19c022007-02-17 14:46:31 +000010870 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010871 allow_undefined_flag_CXX=' -expect_unresolved \*'
vapier7f19c022007-02-17 14:46:31 +000010872 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000010873 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10874 echo "-hidden">> $lib.exp~
vapier7f19c022007-02-17 14:46:31 +000010875 $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~
a.rottmann9bc8b932004-02-29 15:18:31 +000010876 $rm $lib.exp'
10877
10878 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10879 hardcode_libdir_separator_CXX=:
10880
10881 # Commands to make compiler produce verbose output that lists
10882 # what "hidden" libraries, object files and flags are used when
10883 # linking a shared library.
10884 #
10885 # There doesn't appear to be a way to prevent this compiler from
10886 # explicitly linking system object files so we need to strip them
10887 # from the output so that they don't get included in the library
10888 # dependencies.
10889 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'
10890 ;;
10891 *)
10892 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10893 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
vapier7f19c022007-02-17 14:46:31 +000010894 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000010895
10896 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10897 hardcode_libdir_separator_CXX=:
10898
10899 # Commands to make compiler produce verbose output that lists
10900 # what "hidden" libraries, object files and flags are used when
10901 # linking a shared library.
10902 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10903
10904 else
10905 # FIXME: insert proper C++ library support
10906 ld_shlibs_CXX=no
10907 fi
10908 ;;
10909 esac
10910 ;;
10911 psos*)
10912 # FIXME: insert proper C++ library support
10913 ld_shlibs_CXX=no
10914 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010915 sunos4*)
10916 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010917 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010918 # Sun C++ 4.x
10919 # FIXME: insert proper C++ library support
10920 ld_shlibs_CXX=no
10921 ;;
vapier7f19c022007-02-17 14:46:31 +000010922 lcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010923 # Lucid
10924 # FIXME: insert proper C++ library support
10925 ld_shlibs_CXX=no
10926 ;;
10927 *)
10928 # FIXME: insert proper C++ library support
10929 ld_shlibs_CXX=no
10930 ;;
10931 esac
10932 ;;
10933 solaris*)
10934 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010935 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010936 # Sun C++ 4.2, 5.x and Centerline C++
vapier7f19c022007-02-17 14:46:31 +000010937 archive_cmds_need_lc_CXX=yes
a.rottmann9bc8b932004-02-29 15:18:31 +000010938 no_undefined_flag_CXX=' -zdefs'
vapier7f19c022007-02-17 14:46:31 +000010939 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000010940 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
vapier7f19c022007-02-17 14:46:31 +000010941 $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'
a.rottmann9bc8b932004-02-29 15:18:31 +000010942
10943 hardcode_libdir_flag_spec_CXX='-R$libdir'
10944 hardcode_shlibpath_var_CXX=no
10945 case $host_os in
vapier7f19c022007-02-17 14:46:31 +000010946 solaris2.[0-5] | solaris2.[0-5].*) ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010947 *)
10948 # The C++ compiler is used as linker so we must use $wl
10949 # flag to pass the commands to the underlying system
vapier7f19c022007-02-17 14:46:31 +000010950 # linker. We must also pass each convience library through
10951 # to the system linker between allextract/defaultextract.
10952 # The C++ compiler will combine linker options so we
10953 # cannot just pass the convience library names through
10954 # without $wl.
a.rottmann9bc8b932004-02-29 15:18:31 +000010955 # Supported since Solaris 2.6 (maybe 2.5.1?)
vapier7f19c022007-02-17 14:46:31 +000010956 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000010957 ;;
10958 esac
10959 link_all_deplibs_CXX=yes
10960
vapier7f19c022007-02-17 14:46:31 +000010961 output_verbose_link_cmd='echo'
a.rottmann9bc8b932004-02-29 15:18:31 +000010962
10963 # Archives containing C++ object files must be created using
10964 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10965 # necessary to make sure instantiated templates are included
10966 # in the archive.
10967 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10968 ;;
vapier7f19c022007-02-17 14:46:31 +000010969 gcx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010970 # Green Hills C++ Compiler
10971 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10972
10973 # The C++ compiler must be used to create the archive.
10974 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10975 ;;
10976 *)
10977 # GNU C++ compiler with Solaris linker
10978 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10979 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10980 if $CC --version | grep -v '^2\.7' > /dev/null; then
10981 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10982 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10983 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10984
10985 # Commands to make compiler produce verbose output that lists
10986 # what "hidden" libraries, object files and flags are used when
10987 # linking a shared library.
10988 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10989 else
10990 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10991 # platform.
10992 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10993 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10994 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10995
10996 # Commands to make compiler produce verbose output that lists
10997 # what "hidden" libraries, object files and flags are used when
10998 # linking a shared library.
10999 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11000 fi
11001
11002 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11003 fi
11004 ;;
11005 esac
11006 ;;
vapier7f19c022007-02-17 14:46:31 +000011007 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11008 no_undefined_flag_CXX='${wl}-z,text'
a.rottmann9bc8b932004-02-29 15:18:31 +000011009 archive_cmds_need_lc_CXX=no
vapier7f19c022007-02-17 14:46:31 +000011010 hardcode_shlibpath_var_CXX=no
11011 runpath_var='LD_RUN_PATH'
11012
11013 case $cc_basename in
11014 CC*)
11015 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11016 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11017 ;;
11018 *)
11019 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11020 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11021 ;;
11022 esac
11023 ;;
11024 sysv5* | sco3.2v5* | sco5v6*)
11025 # Note: We can NOT use -z defs as we might desire, because we do not
11026 # link with -lc, and that would cause any symbols used from libc to
11027 # always be unresolved, which means just about no library would
11028 # ever link correctly. If we're not using GNU ld we use -z text
11029 # though, which does catch some bad symbols but isn't as heavy-handed
11030 # as -z defs.
11031 # For security reasons, it is highly recommended that you always
11032 # use absolute paths for naming shared libraries, and exclude the
11033 # DT_RUNPATH tag from executables and libraries. But doing so
11034 # requires that you compile everything twice, which is a pain.
11035 # So that behaviour is only enabled if SCOABSPATH is set to a
11036 # non-empty value in the environment. Most likely only useful for
11037 # creating official distributions of packages.
11038 # This is a hack until libtool officially supports absolute path
11039 # names for shared libraries.
11040 no_undefined_flag_CXX='${wl}-z,text'
11041 allow_undefined_flag_CXX='${wl}-z,nodefs'
11042 archive_cmds_need_lc_CXX=no
11043 hardcode_shlibpath_var_CXX=no
11044 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11045 hardcode_libdir_separator_CXX=':'
11046 link_all_deplibs_CXX=yes
11047 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11048 runpath_var='LD_RUN_PATH'
11049
11050 case $cc_basename in
11051 CC*)
11052 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11053 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11054 ;;
11055 *)
11056 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11057 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11058 ;;
11059 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000011060 ;;
11061 tandem*)
11062 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011063 NCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011064 # NonStop-UX NCC 3.20
11065 # FIXME: insert proper C++ library support
11066 ld_shlibs_CXX=no
11067 ;;
11068 *)
11069 # FIXME: insert proper C++ library support
11070 ld_shlibs_CXX=no
11071 ;;
11072 esac
11073 ;;
11074 vxworks*)
11075 # FIXME: insert proper C++ library support
11076 ld_shlibs_CXX=no
11077 ;;
11078 *)
11079 # FIXME: insert proper C++ library support
11080 ld_shlibs_CXX=no
11081 ;;
11082esac
mlcreech94984912008-03-04 19:03:08 +000011083{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11084echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011085test "$ld_shlibs_CXX" = no && can_build_shared=no
11086
11087GCC_CXX="$GXX"
11088LD_CXX="$LD"
11089
11090
11091cat > conftest.$ac_ext <<EOF
11092class Foo
11093{
11094public:
11095 Foo (void) { a = 0; }
11096private:
11097 int a;
11098};
11099EOF
11100
11101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11102 (eval $ac_compile) 2>&5
11103 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; then
11106 # Parse the compiler output and extract the necessary
11107 # objects, libraries and library flags.
11108
11109 # Sentinel used to keep track of whether or not we are before
11110 # the conftest object file.
11111 pre_test_object_deps_done=no
11112
11113 # The `*' in the case matches for architectures that use `case' in
11114 # $output_verbose_cmd can trigger glob expansion during the loop
11115 # eval without this substitution.
vapier7f19c022007-02-17 14:46:31 +000011116 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
a.rottmann9bc8b932004-02-29 15:18:31 +000011117
11118 for p in `eval $output_verbose_link_cmd`; do
11119 case $p in
11120
11121 -L* | -R* | -l*)
11122 # Some compilers place space between "-{L,R}" and the path.
11123 # Remove the space.
11124 if test $p = "-L" \
11125 || test $p = "-R"; then
11126 prev=$p
11127 continue
11128 else
11129 prev=
11130 fi
11131
11132 if test "$pre_test_object_deps_done" = no; then
11133 case $p in
11134 -L* | -R*)
11135 # Internal compiler library paths should come after those
11136 # provided the user. The postdeps already come after the
11137 # user supplied libs so there is no need to process them.
11138 if test -z "$compiler_lib_search_path_CXX"; then
11139 compiler_lib_search_path_CXX="${prev}${p}"
11140 else
11141 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11142 fi
11143 ;;
11144 # The "-l" case would never come before the object being
11145 # linked, so don't bother handling this case.
11146 esac
11147 else
11148 if test -z "$postdeps_CXX"; then
11149 postdeps_CXX="${prev}${p}"
11150 else
11151 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11152 fi
11153 fi
11154 ;;
11155
11156 *.$objext)
11157 # This assumes that the test object file only shows up
11158 # once in the compiler output.
11159 if test "$p" = "conftest.$objext"; then
11160 pre_test_object_deps_done=yes
11161 continue
11162 fi
11163
11164 if test "$pre_test_object_deps_done" = no; then
11165 if test -z "$predep_objects_CXX"; then
11166 predep_objects_CXX="$p"
11167 else
11168 predep_objects_CXX="$predep_objects_CXX $p"
11169 fi
11170 else
11171 if test -z "$postdep_objects_CXX"; then
11172 postdep_objects_CXX="$p"
11173 else
11174 postdep_objects_CXX="$postdep_objects_CXX $p"
11175 fi
11176 fi
11177 ;;
11178
11179 *) ;; # Ignore the rest.
11180
11181 esac
11182 done
11183
11184 # Clean up.
11185 rm -f a.out a.exe
11186else
11187 echo "libtool.m4: error: problem compiling CXX test program"
11188fi
11189
11190$rm -f confest.$objext
11191
vapier7f19c022007-02-17 14:46:31 +000011192# PORTME: override above test on systems where it is broken
11193case $host_os in
11194interix3*)
11195 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11196 # hack all around it, let's just trust "g++" to DTRT.
11197 predep_objects_CXX=
11198 postdep_objects_CXX=
11199 postdeps_CXX=
11200 ;;
11201
11202solaris*)
11203 case $cc_basename in
11204 CC*)
11205 # Adding this requires a known-good setup of shared libraries for
11206 # Sun compiler versions before 5.6, else PIC objects from an old
11207 # archive will be linked into the output, leading to subtle bugs.
11208 postdeps_CXX='-lCstd -lCrun'
11209 ;;
11210 esac
11211 ;;
11212esac
11213
11214
a.rottmann9bc8b932004-02-29 15:18:31 +000011215case " $postdeps_CXX " in
11216*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11217esac
11218
11219lt_prog_compiler_wl_CXX=
11220lt_prog_compiler_pic_CXX=
11221lt_prog_compiler_static_CXX=
11222
mlcreech94984912008-03-04 19:03:08 +000011223{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11224echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011225
11226 # C++ specific cases for pic, static, wl, etc.
11227 if test "$GXX" = yes; then
11228 lt_prog_compiler_wl_CXX='-Wl,'
11229 lt_prog_compiler_static_CXX='-static'
11230
11231 case $host_os in
11232 aix*)
11233 # All AIX code is PIC.
11234 if test "$host_cpu" = ia64; then
11235 # AIX 5 now supports IA64 processor
11236 lt_prog_compiler_static_CXX='-Bstatic'
11237 fi
11238 ;;
11239 amigaos*)
11240 # FIXME: we need at least 68020 code to build shared libraries, but
11241 # adding the `-m68020' flag to GCC prevents building anything better,
11242 # like `-m68040'.
11243 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11244 ;;
11245 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11246 # PIC is the default for these OSes.
11247 ;;
11248 mingw* | os2* | pw32*)
11249 # This hack is so that the source file can tell whether it is being
11250 # built for inclusion in a dll (and should export symbols for example).
11251 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11252 ;;
11253 darwin* | rhapsody*)
11254 # PIC is the default on this platform
11255 # Common symbols not allowed in MH_DYLIB files
11256 lt_prog_compiler_pic_CXX='-fno-common'
11257 ;;
11258 *djgpp*)
11259 # DJGPP does not support shared libraries at all
11260 lt_prog_compiler_pic_CXX=
11261 ;;
vapier7f19c022007-02-17 14:46:31 +000011262 interix3*)
11263 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11264 # Instead, we relocate shared libraries at runtime.
11265 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000011266 sysv4*MP*)
11267 if test -d /usr/nec; then
11268 lt_prog_compiler_pic_CXX=-Kconform_pic
11269 fi
11270 ;;
11271 hpux*)
11272 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11273 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +000011274 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000011275 hppa*64*|ia64*)
11276 ;;
11277 *)
11278 lt_prog_compiler_pic_CXX='-fPIC'
11279 ;;
11280 esac
11281 ;;
11282 *)
11283 lt_prog_compiler_pic_CXX='-fPIC'
11284 ;;
11285 esac
11286 else
11287 case $host_os in
11288 aix4* | aix5*)
11289 # All AIX code is PIC.
11290 if test "$host_cpu" = ia64; then
11291 # AIX 5 now supports IA64 processor
11292 lt_prog_compiler_static_CXX='-Bstatic'
11293 else
11294 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11295 fi
11296 ;;
11297 chorus*)
11298 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011299 cxch68*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011300 # Green Hills C++ Compiler
11301 # _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"
11302 ;;
11303 esac
11304 ;;
vapier7f19c022007-02-17 14:46:31 +000011305 darwin*)
11306 # PIC is the default on this platform
11307 # Common symbols not allowed in MH_DYLIB files
11308 case $cc_basename in
11309 xlc*)
11310 lt_prog_compiler_pic_CXX='-qnocommon'
11311 lt_prog_compiler_wl_CXX='-Wl,'
11312 ;;
11313 esac
11314 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000011315 dgux*)
11316 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011317 ec++*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011318 lt_prog_compiler_pic_CXX='-KPIC'
11319 ;;
vapier7f19c022007-02-17 14:46:31 +000011320 ghcx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011321 # Green Hills C++ Compiler
11322 lt_prog_compiler_pic_CXX='-pic'
11323 ;;
11324 *)
11325 ;;
11326 esac
11327 ;;
vapier7f19c022007-02-17 14:46:31 +000011328 freebsd* | kfreebsd*-gnu | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011329 # FreeBSD uses GNU C++
11330 ;;
11331 hpux9* | hpux10* | hpux11*)
11332 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011333 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011334 lt_prog_compiler_wl_CXX='-Wl,'
vapier7f19c022007-02-17 14:46:31 +000011335 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
a.rottmann9bc8b932004-02-29 15:18:31 +000011336 if test "$host_cpu" != ia64; then
11337 lt_prog_compiler_pic_CXX='+Z'
11338 fi
11339 ;;
vapier7f19c022007-02-17 14:46:31 +000011340 aCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011341 lt_prog_compiler_wl_CXX='-Wl,'
vapier7f19c022007-02-17 14:46:31 +000011342 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11343 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000011344 hppa*64*|ia64*)
11345 # +Z the default
11346 ;;
11347 *)
11348 lt_prog_compiler_pic_CXX='+Z'
11349 ;;
11350 esac
11351 ;;
11352 *)
11353 ;;
11354 esac
11355 ;;
vapier7f19c022007-02-17 14:46:31 +000011356 interix*)
11357 # This is c89, which is MS Visual C++ (no shared libs)
11358 # Anyone wants to do a port?
11359 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000011360 irix5* | irix6* | nonstopux*)
11361 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011362 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011363 lt_prog_compiler_wl_CXX='-Wl,'
11364 lt_prog_compiler_static_CXX='-non_shared'
11365 # CC pic flag -KPIC is the default.
11366 ;;
11367 *)
11368 ;;
11369 esac
11370 ;;
11371 linux*)
11372 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011373 KCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011374 # KAI C++ Compiler
11375 lt_prog_compiler_wl_CXX='--backend -Wl,'
11376 lt_prog_compiler_pic_CXX='-fPIC'
11377 ;;
vapier7f19c022007-02-17 14:46:31 +000011378 icpc* | ecpc*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011379 # Intel C++
11380 lt_prog_compiler_wl_CXX='-Wl,'
11381 lt_prog_compiler_pic_CXX='-KPIC'
11382 lt_prog_compiler_static_CXX='-static'
11383 ;;
vapier7f19c022007-02-17 14:46:31 +000011384 pgCC*)
11385 # Portland Group C++ compiler.
11386 lt_prog_compiler_wl_CXX='-Wl,'
11387 lt_prog_compiler_pic_CXX='-fpic'
11388 lt_prog_compiler_static_CXX='-Bstatic'
11389 ;;
11390 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011391 # Compaq C++
11392 # Make sure the PIC flag is empty. It appears that all Alpha
11393 # Linux and Compaq Tru64 Unix objects are PIC.
11394 lt_prog_compiler_pic_CXX=
11395 lt_prog_compiler_static_CXX='-non_shared'
11396 ;;
11397 *)
11398 ;;
11399 esac
11400 ;;
11401 lynxos*)
11402 ;;
11403 m88k*)
11404 ;;
11405 mvs*)
11406 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011407 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011408 lt_prog_compiler_pic_CXX='-W c,exportall'
11409 ;;
11410 *)
11411 ;;
11412 esac
11413 ;;
vapier7f19c022007-02-17 14:46:31 +000011414 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011415 ;;
11416 osf3* | osf4* | osf5*)
11417 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011418 KCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011419 lt_prog_compiler_wl_CXX='--backend -Wl,'
11420 ;;
vapier7f19c022007-02-17 14:46:31 +000011421 RCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011422 # Rational C++ 2.4.1
11423 lt_prog_compiler_pic_CXX='-pic'
11424 ;;
vapier7f19c022007-02-17 14:46:31 +000011425 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011426 # Digital/Compaq C++
11427 lt_prog_compiler_wl_CXX='-Wl,'
11428 # Make sure the PIC flag is empty. It appears that all Alpha
11429 # Linux and Compaq Tru64 Unix objects are PIC.
11430 lt_prog_compiler_pic_CXX=
11431 lt_prog_compiler_static_CXX='-non_shared'
11432 ;;
11433 *)
11434 ;;
11435 esac
11436 ;;
11437 psos*)
11438 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000011439 solaris*)
11440 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011441 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011442 # Sun C++ 4.2, 5.x and Centerline C++
11443 lt_prog_compiler_pic_CXX='-KPIC'
11444 lt_prog_compiler_static_CXX='-Bstatic'
11445 lt_prog_compiler_wl_CXX='-Qoption ld '
11446 ;;
vapier7f19c022007-02-17 14:46:31 +000011447 gcx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011448 # Green Hills C++ Compiler
11449 lt_prog_compiler_pic_CXX='-PIC'
11450 ;;
11451 *)
11452 ;;
11453 esac
11454 ;;
11455 sunos4*)
11456 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011457 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011458 # Sun C++ 4.x
11459 lt_prog_compiler_pic_CXX='-pic'
11460 lt_prog_compiler_static_CXX='-Bstatic'
11461 ;;
vapier7f19c022007-02-17 14:46:31 +000011462 lcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011463 # Lucid
11464 lt_prog_compiler_pic_CXX='-pic'
11465 ;;
11466 *)
11467 ;;
11468 esac
11469 ;;
11470 tandem*)
11471 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011472 NCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011473 # NonStop-UX NCC 3.20
11474 lt_prog_compiler_pic_CXX='-KPIC'
11475 ;;
11476 *)
11477 ;;
11478 esac
11479 ;;
vapier7f19c022007-02-17 14:46:31 +000011480 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11481 case $cc_basename in
11482 CC*)
11483 lt_prog_compiler_wl_CXX='-Wl,'
11484 lt_prog_compiler_pic_CXX='-KPIC'
11485 lt_prog_compiler_static_CXX='-Bstatic'
11486 ;;
11487 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000011488 ;;
11489 vxworks*)
11490 ;;
11491 *)
11492 lt_prog_compiler_can_build_shared_CXX=no
11493 ;;
11494 esac
11495 fi
11496
mlcreech94984912008-03-04 19:03:08 +000011497{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11498echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011499
11500#
11501# Check to make sure the PIC flag actually works.
11502#
11503if test -n "$lt_prog_compiler_pic_CXX"; then
11504
mlcreech94984912008-03-04 19:03:08 +000011505{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11506echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011507if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11509else
11510 lt_prog_compiler_pic_works_CXX=no
11511 ac_outfile=conftest.$ac_objext
11512 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11513 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11514 # Insert the option either (1) after the last *FLAGS variable, or
11515 # (2) before a word containing "conftest.", or (3) at the end.
11516 # Note that $ac_compile itself does not contain backslashes and begins
11517 # with a dollar sign (not a hyphen), so the echo should work correctly.
11518 # The option is referenced via a variable to avoid confusing sed.
11519 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000011520 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000011521 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11522 -e 's:$: $lt_compiler_flag:'`
mlcreecha4edab02008-03-06 04:14:17 +000011523 (eval echo "\"\$as_me:11523: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000011524 (eval "$lt_compile" 2>conftest.err)
11525 ac_status=$?
11526 cat conftest.err >&5
mlcreecha4edab02008-03-06 04:14:17 +000011527 echo "$as_me:11527: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000011528 if (exit $ac_status) && test -s "$ac_outfile"; then
11529 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +000011530 # So say no if there are warnings other than the usual output.
11531 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11532 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11533 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000011534 lt_prog_compiler_pic_works_CXX=yes
11535 fi
11536 fi
11537 $rm conftest*
11538
11539fi
mlcreech94984912008-03-04 19:03:08 +000011540{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11541echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011542
11543if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11544 case $lt_prog_compiler_pic_CXX in
11545 "" | " "*) ;;
11546 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11547 esac
11548else
11549 lt_prog_compiler_pic_CXX=
11550 lt_prog_compiler_can_build_shared_CXX=no
11551fi
11552
11553fi
vapier7f19c022007-02-17 14:46:31 +000011554case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +000011555 # For platforms which do not support PIC, -DPIC is meaningless:
11556 *djgpp*)
11557 lt_prog_compiler_pic_CXX=
11558 ;;
11559 *)
11560 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11561 ;;
11562esac
11563
vapier7f19c022007-02-17 14:46:31 +000011564#
11565# Check to make sure the static flag actually works.
11566#
11567wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
mlcreech94984912008-03-04 19:03:08 +000011568{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11569echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +000011570if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11572else
11573 lt_prog_compiler_static_works_CXX=no
11574 save_LDFLAGS="$LDFLAGS"
11575 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11576 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11577 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11578 # The linker can only warn and ignore the option if not recognized
11579 # So say no if there are warnings
11580 if test -s conftest.err; then
11581 # Append any errors to the config.log.
11582 cat conftest.err 1>&5
11583 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11584 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11585 if diff conftest.exp conftest.er2 >/dev/null; then
11586 lt_prog_compiler_static_works_CXX=yes
11587 fi
11588 else
11589 lt_prog_compiler_static_works_CXX=yes
11590 fi
11591 fi
11592 $rm conftest*
11593 LDFLAGS="$save_LDFLAGS"
11594
11595fi
mlcreech94984912008-03-04 19:03:08 +000011596{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11597echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
vapier7f19c022007-02-17 14:46:31 +000011598
11599if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11600 :
11601else
11602 lt_prog_compiler_static_CXX=
11603fi
11604
11605
mlcreech94984912008-03-04 19:03:08 +000011606{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11607echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011608if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11610else
11611 lt_cv_prog_compiler_c_o_CXX=no
11612 $rm -r conftest 2>/dev/null
11613 mkdir conftest
11614 cd conftest
11615 mkdir out
11616 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11617
11618 lt_compiler_flag="-o out/conftest2.$ac_objext"
11619 # Insert the option either (1) after the last *FLAGS variable, or
11620 # (2) before a word containing "conftest.", or (3) at the end.
11621 # Note that $ac_compile itself does not contain backslashes and begins
11622 # with a dollar sign (not a hyphen), so the echo should work correctly.
11623 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000011624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000011625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11626 -e 's:$: $lt_compiler_flag:'`
mlcreecha4edab02008-03-06 04:14:17 +000011627 (eval echo "\"\$as_me:11627: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000011628 (eval "$lt_compile" 2>out/conftest.err)
11629 ac_status=$?
11630 cat out/conftest.err >&5
mlcreecha4edab02008-03-06 04:14:17 +000011631 echo "$as_me:11631: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000011632 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11633 then
11634 # The compiler can only warn and ignore the option if not recognized
11635 # So say no if there are warnings
vapier7f19c022007-02-17 14:46:31 +000011636 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11637 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11638 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000011639 lt_cv_prog_compiler_c_o_CXX=yes
11640 fi
11641 fi
vapier7f19c022007-02-17 14:46:31 +000011642 chmod u+w . 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +000011643 $rm conftest*
11644 # SGI C++ compiler will create directory out/ii_files/ for
11645 # template instantiation
11646 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11647 $rm out/* && rmdir out
11648 cd ..
11649 rmdir conftest
11650 $rm conftest*
11651
11652fi
mlcreech94984912008-03-04 19:03:08 +000011653{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11654echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011655
11656
11657hard_links="nottested"
11658if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11659 # do not overwrite the value of need_locks provided by the user
mlcreech94984912008-03-04 19:03:08 +000011660 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11661echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011662 hard_links=yes
11663 $rm conftest*
11664 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11665 touch conftest.a
11666 ln conftest.a conftest.b 2>&5 || hard_links=no
11667 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mlcreech94984912008-03-04 19:03:08 +000011668 { echo "$as_me:$LINENO: result: $hard_links" >&5
11669echo "${ECHO_T}$hard_links" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011670 if test "$hard_links" = no; then
11671 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11672echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11673 need_locks=warn
11674 fi
11675else
11676 need_locks=no
11677fi
11678
mlcreech94984912008-03-04 19:03:08 +000011679{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11680echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011681
11682 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11683 case $host_os in
11684 aix4* | aix5*)
11685 # If we're using GNU nm, then we don't want the "-C" option.
11686 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11687 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11688 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'
11689 else
11690 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'
11691 fi
11692 ;;
11693 pw32*)
11694 export_symbols_cmds_CXX="$ltdll_cmds"
11695 ;;
11696 cygwin* | mingw*)
vapier7f19c022007-02-17 14:46:31 +000011697 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000011698 ;;
11699 *)
11700 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11701 ;;
11702 esac
11703
mlcreech94984912008-03-04 19:03:08 +000011704{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11705echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011706test "$ld_shlibs_CXX" = no && can_build_shared=no
11707
a.rottmann9bc8b932004-02-29 15:18:31 +000011708#
11709# Do we need to explicitly link libc?
11710#
11711case "x$archive_cmds_need_lc_CXX" in
11712x|xyes)
11713 # Assume -lc should be added
11714 archive_cmds_need_lc_CXX=yes
11715
11716 if test "$enable_shared" = yes && test "$GCC" = yes; then
11717 case $archive_cmds_CXX in
11718 *'~'*)
11719 # FIXME: we may have to deal with multi-command sequences.
11720 ;;
11721 '$CC '*)
11722 # Test whether the compiler implicitly links with -lc since on some
11723 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11724 # to ld, don't add -lc before -lgcc.
mlcreech94984912008-03-04 19:03:08 +000011725 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11726echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011727 $rm conftest*
11728 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11729
11730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11731 (eval $ac_compile) 2>&5
11732 ac_status=$?
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } 2>conftest.err; then
11735 soname=conftest
11736 lib=conftest
11737 libobjs=conftest.$ac_objext
11738 deplibs=
11739 wl=$lt_prog_compiler_wl_CXX
vapier7f19c022007-02-17 14:46:31 +000011740 pic_flag=$lt_prog_compiler_pic_CXX
a.rottmann9bc8b932004-02-29 15:18:31 +000011741 compiler_flags=-v
11742 linker_flags=-v
11743 verstring=
11744 output_objdir=.
11745 libname=conftest
11746 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11747 allow_undefined_flag_CXX=
11748 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11749 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11750 ac_status=$?
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }
11753 then
11754 archive_cmds_need_lc_CXX=no
11755 else
11756 archive_cmds_need_lc_CXX=yes
11757 fi
11758 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11759 else
11760 cat conftest.err 1>&5
11761 fi
11762 $rm conftest*
mlcreech94984912008-03-04 19:03:08 +000011763 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11764echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011765 ;;
11766 esac
11767 fi
11768 ;;
11769esac
11770
mlcreech94984912008-03-04 19:03:08 +000011771{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11772echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011773library_names_spec=
11774libname_spec='lib$name'
11775soname_spec=
vapier7f19c022007-02-17 14:46:31 +000011776shrext_cmds=".so"
a.rottmann9bc8b932004-02-29 15:18:31 +000011777postinstall_cmds=
11778postuninstall_cmds=
11779finish_cmds=
11780finish_eval=
11781shlibpath_var=
11782shlibpath_overrides_runpath=unknown
11783version_type=none
11784dynamic_linker="$host_os ld.so"
11785sys_lib_dlsearch_path_spec="/lib /usr/lib"
11786if test "$GCC" = yes; then
11787 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11788 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11789 # if the path contains ";" then we assume it to be the separator
11790 # otherwise default to the standard path separator (i.e. ":") - it is
11791 # assumed that no part of a normal pathname contains ";" but that should
11792 # okay in the real world where ";" in dirpaths is itself problematic.
11793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11794 else
11795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11796 fi
11797else
11798 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11799fi
11800need_lib_prefix=unknown
11801hardcode_into_libs=no
11802
11803# when you set need_version to no, make sure it does not cause -set_version
11804# flags to be left without arguments
11805need_version=unknown
11806
11807case $host_os in
11808aix3*)
11809 version_type=linux
11810 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11811 shlibpath_var=LIBPATH
11812
11813 # AIX 3 has no versioning support, so we append a major version to the name.
11814 soname_spec='${libname}${release}${shared_ext}$major'
11815 ;;
11816
11817aix4* | aix5*)
11818 version_type=linux
11819 need_lib_prefix=no
11820 need_version=no
11821 hardcode_into_libs=yes
11822 if test "$host_cpu" = ia64; then
11823 # AIX 5 supports IA64
11824 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11825 shlibpath_var=LD_LIBRARY_PATH
11826 else
11827 # With GCC up to 2.95.x, collect2 would create an import file
11828 # for dependence libraries. The import file would start with
11829 # the line `#! .'. This would cause the generated library to
11830 # depend on `.', always an invalid library. This was fixed in
11831 # development snapshots of GCC prior to 3.0.
11832 case $host_os in
11833 aix4 | aix4.[01] | aix4.[01].*)
11834 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11835 echo ' yes '
11836 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11837 :
11838 else
11839 can_build_shared=no
11840 fi
11841 ;;
11842 esac
11843 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11844 # soname into executable. Probably we can add versioning support to
11845 # collect2, so additional links can be useful in future.
11846 if test "$aix_use_runtimelinking" = yes; then
11847 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11848 # instead of lib<name>.a to let people know that these are not
11849 # typical AIX shared libraries.
11850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11851 else
11852 # We preserve .a as extension for shared libraries through AIX4.2
11853 # and later when we are not doing run time linking.
11854 library_names_spec='${libname}${release}.a $libname.a'
11855 soname_spec='${libname}${release}${shared_ext}$major'
11856 fi
11857 shlibpath_var=LIBPATH
11858 fi
11859 ;;
11860
11861amigaos*)
11862 library_names_spec='$libname.ixlibrary $libname.a'
11863 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11864 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'
11865 ;;
11866
11867beos*)
11868 library_names_spec='${libname}${shared_ext}'
11869 dynamic_linker="$host_os ld.so"
11870 shlibpath_var=LIBRARY_PATH
11871 ;;
11872
vapier7f19c022007-02-17 14:46:31 +000011873bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011874 version_type=linux
11875 need_version=no
11876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11877 soname_spec='${libname}${release}${shared_ext}$major'
11878 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11879 shlibpath_var=LD_LIBRARY_PATH
11880 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11881 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11882 # the default ld.so.conf also contains /usr/contrib/lib and
11883 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11884 # libtool to hard-code these into programs
11885 ;;
11886
11887cygwin* | mingw* | pw32*)
11888 version_type=windows
vapier7f19c022007-02-17 14:46:31 +000011889 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000011890 need_version=no
11891 need_lib_prefix=no
11892
11893 case $GCC,$host_os in
11894 yes,cygwin* | yes,mingw* | yes,pw32*)
11895 library_names_spec='$libname.dll.a'
11896 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11897 postinstall_cmds='base_file=`basename \${file}`~
11898 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11899 dldir=$destdir/`dirname \$dlpath`~
11900 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +000011901 $install_prog $dir/$dlname \$dldir/$dlname~
11902 chmod a+x \$dldir/$dlname'
a.rottmann9bc8b932004-02-29 15:18:31 +000011903 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11904 dlpath=$dir/\$dldll~
11905 $rm \$dlpath'
11906 shlibpath_overrides_runpath=yes
11907
11908 case $host_os in
11909 cygwin*)
11910 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11911 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11912 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11913 ;;
11914 mingw*)
11915 # MinGW DLLs use traditional 'lib' prefix
11916 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11917 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11918 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11919 # It is most probably a Windows format PATH printed by
11920 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11921 # path with ; separators, and with drive letters. We can handle the
11922 # drive letters (cygwin fileutils understands them), so leave them,
11923 # especially as we might pass files found there to a mingw objdump,
11924 # which wouldn't understand a cygwinified path. Ahh.
11925 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11926 else
11927 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11928 fi
11929 ;;
11930 pw32*)
11931 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +000011932 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
a.rottmann9bc8b932004-02-29 15:18:31 +000011933 ;;
11934 esac
11935 ;;
11936
vapier7f19c022007-02-17 14:46:31 +000011937 linux*)
11938 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
11939 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11940 supports_anon_versioning=no
11941 case `$LD -v 2>/dev/null` in
11942 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11943 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11944 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11945 *\ 2.11.*) ;; # other 2.11 versions
11946 *) supports_anon_versioning=yes ;;
11947 esac
11948 if test $supports_anon_versioning = yes; then
11949 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11950cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11951$echo "local: *; };" >> $output_objdir/$libname.ver~
11952 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11953 else
11954 $archive_expsym_cmds="$archive_cmds"
11955 fi
11956 else
11957 ld_shlibs=no
11958 fi
11959 ;;
11960
a.rottmann9bc8b932004-02-29 15:18:31 +000011961 *)
11962 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11963 ;;
11964 esac
11965 dynamic_linker='Win32 ld.exe'
11966 # FIXME: first we should search . and the directory the executable is in
11967 shlibpath_var=PATH
11968 ;;
11969
11970darwin* | rhapsody*)
11971 dynamic_linker="$host_os dyld"
11972 version_type=darwin
11973 need_lib_prefix=no
11974 need_version=no
11975 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11976 soname_spec='${libname}${release}${major}$shared_ext'
11977 shlibpath_overrides_runpath=yes
11978 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +000011979 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
a.rottmann9bc8b932004-02-29 15:18:31 +000011980 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11981 if test "$GCC" = yes; then
11982 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"`
11983 else
11984 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11985 fi
11986 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11987 ;;
11988
11989dgux*)
11990 version_type=linux
11991 need_lib_prefix=no
11992 need_version=no
11993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11994 soname_spec='${libname}${release}${shared_ext}$major'
11995 shlibpath_var=LD_LIBRARY_PATH
11996 ;;
11997
11998freebsd1*)
11999 dynamic_linker=no
12000 ;;
12001
12002kfreebsd*-gnu)
12003 version_type=linux
12004 need_lib_prefix=no
12005 need_version=no
12006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12007 soname_spec='${libname}${release}${shared_ext}$major'
12008 shlibpath_var=LD_LIBRARY_PATH
12009 shlibpath_overrides_runpath=no
12010 hardcode_into_libs=yes
12011 dynamic_linker='GNU ld.so'
12012 ;;
12013
vapier7f19c022007-02-17 14:46:31 +000012014freebsd* | dragonfly*)
12015 # DragonFly does not have aout. When/if they implement a new
12016 # versioning mechanism, adjust this.
12017 if test -x /usr/bin/objformat; then
12018 objformat=`/usr/bin/objformat`
12019 else
12020 case $host_os in
12021 freebsd[123]*) objformat=aout ;;
12022 *) objformat=elf ;;
12023 esac
12024 fi
12025 # Handle Gentoo/FreeBSD as it was Linux
12026 case $host_vendor in
12027 gentoo)
12028 version_type=linux ;;
12029 *)
12030 version_type=freebsd-$objformat ;;
12031 esac
12032
a.rottmann9bc8b932004-02-29 15:18:31 +000012033 case $version_type in
12034 freebsd-elf*)
12035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12036 need_version=no
12037 need_lib_prefix=no
12038 ;;
12039 freebsd-*)
12040 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12041 need_version=yes
12042 ;;
vapier7f19c022007-02-17 14:46:31 +000012043 linux)
12044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12045 soname_spec='${libname}${release}${shared_ext}$major'
12046 need_lib_prefix=no
12047 need_version=no
12048 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000012049 esac
12050 shlibpath_var=LD_LIBRARY_PATH
12051 case $host_os in
12052 freebsd2*)
12053 shlibpath_overrides_runpath=yes
12054 ;;
vapier7f19c022007-02-17 14:46:31 +000012055 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000012056 shlibpath_overrides_runpath=yes
12057 hardcode_into_libs=yes
12058 ;;
vapier7f19c022007-02-17 14:46:31 +000012059 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12060 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a.rottmann9bc8b932004-02-29 15:18:31 +000012061 shlibpath_overrides_runpath=no
12062 hardcode_into_libs=yes
12063 ;;
vapier7f19c022007-02-17 14:46:31 +000012064 freebsd*) # from 4.6 on
12065 shlibpath_overrides_runpath=yes
12066 hardcode_into_libs=yes
12067 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000012068 esac
12069 ;;
12070
12071gnu*)
12072 version_type=linux
12073 need_lib_prefix=no
12074 need_version=no
12075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12076 soname_spec='${libname}${release}${shared_ext}$major'
12077 shlibpath_var=LD_LIBRARY_PATH
12078 hardcode_into_libs=yes
12079 ;;
12080
12081hpux9* | hpux10* | hpux11*)
12082 # Give a soname corresponding to the major version so that dld.sl refuses to
12083 # link against other versions.
12084 version_type=sunos
12085 need_lib_prefix=no
12086 need_version=no
vapier7f19c022007-02-17 14:46:31 +000012087 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000012088 ia64*)
vapier7f19c022007-02-17 14:46:31 +000012089 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +000012090 hardcode_into_libs=yes
12091 dynamic_linker="$host_os dld.so"
12092 shlibpath_var=LD_LIBRARY_PATH
12093 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12095 soname_spec='${libname}${release}${shared_ext}$major'
12096 if test "X$HPUX_IA64_MODE" = X32; then
12097 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12098 else
12099 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12100 fi
12101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12102 ;;
12103 hppa*64*)
vapier7f19c022007-02-17 14:46:31 +000012104 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000012105 hardcode_into_libs=yes
12106 dynamic_linker="$host_os dld.sl"
12107 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12108 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12110 soname_spec='${libname}${release}${shared_ext}$major'
12111 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12113 ;;
12114 *)
vapier7f19c022007-02-17 14:46:31 +000012115 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000012116 dynamic_linker="$host_os dld.sl"
12117 shlibpath_var=SHLIB_PATH
12118 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12120 soname_spec='${libname}${release}${shared_ext}$major'
12121 ;;
12122 esac
12123 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12124 postinstall_cmds='chmod 555 $lib'
12125 ;;
12126
vapier7f19c022007-02-17 14:46:31 +000012127interix3*)
12128 version_type=linux
12129 need_lib_prefix=no
12130 need_version=no
12131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12132 soname_spec='${libname}${release}${shared_ext}$major'
12133 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12134 shlibpath_var=LD_LIBRARY_PATH
12135 shlibpath_overrides_runpath=no
12136 hardcode_into_libs=yes
12137 ;;
12138
a.rottmann9bc8b932004-02-29 15:18:31 +000012139irix5* | irix6* | nonstopux*)
12140 case $host_os in
12141 nonstopux*) version_type=nonstopux ;;
12142 *)
12143 if test "$lt_cv_prog_gnu_ld" = yes; then
12144 version_type=linux
12145 else
12146 version_type=irix
12147 fi ;;
12148 esac
12149 need_lib_prefix=no
12150 need_version=no
12151 soname_spec='${libname}${release}${shared_ext}$major'
12152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12153 case $host_os in
12154 irix5* | nonstopux*)
12155 libsuff= shlibsuff=
12156 ;;
12157 *)
12158 case $LD in # libtool.m4 will add one of these switches to LD
12159 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12160 libsuff= shlibsuff= libmagic=32-bit;;
12161 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12162 libsuff=32 shlibsuff=N32 libmagic=N32;;
12163 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12164 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12165 *) libsuff= shlibsuff= libmagic=never-match;;
12166 esac
12167 ;;
12168 esac
12169 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12170 shlibpath_overrides_runpath=no
12171 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12172 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12173 hardcode_into_libs=yes
12174 ;;
12175
12176# No shared lib support for Linux oldld, aout, or coff.
12177linux*oldld* | linux*aout* | linux*coff*)
12178 dynamic_linker=no
12179 ;;
12180
12181# This must be Linux ELF.
12182linux*)
12183 version_type=linux
12184 need_lib_prefix=no
12185 need_version=no
12186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12187 soname_spec='${libname}${release}${shared_ext}$major'
12188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12189 shlibpath_var=LD_LIBRARY_PATH
12190 shlibpath_overrides_runpath=no
12191 # This implies no fast_install, which is unacceptable.
12192 # Some rework will be needed to allow for fast_install
12193 # before this can be enabled.
12194 hardcode_into_libs=yes
12195
12196 # Append ld.so.conf contents to the search path
12197 if test -f /etc/ld.so.conf; then
vapier7f19c022007-02-17 14:46:31 +000012198 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' ' '`
12199 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +000012200 fi
12201
12202 # We used to test for /lib/ld.so.1 and disable shared libraries on
12203 # powerpc, because MkLinux only supported shared libraries with the
12204 # GNU dynamic linker. Since this was broken with cross compilers,
12205 # most powerpc-linux boxes support dynamic linking these days and
12206 # people can always --disable-shared, the test was removed, and we
12207 # assume the GNU/Linux dynamic linker is in use.
12208 dynamic_linker='GNU/Linux ld.so'
12209 ;;
12210
12211knetbsd*-gnu)
12212 version_type=linux
12213 need_lib_prefix=no
12214 need_version=no
12215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12216 soname_spec='${libname}${release}${shared_ext}$major'
12217 shlibpath_var=LD_LIBRARY_PATH
12218 shlibpath_overrides_runpath=no
12219 hardcode_into_libs=yes
12220 dynamic_linker='GNU ld.so'
12221 ;;
12222
12223netbsd*)
12224 version_type=sunos
12225 need_lib_prefix=no
12226 need_version=no
12227 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12230 dynamic_linker='NetBSD (a.out) ld.so'
12231 else
12232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12233 soname_spec='${libname}${release}${shared_ext}$major'
12234 dynamic_linker='NetBSD ld.elf_so'
12235 fi
12236 shlibpath_var=LD_LIBRARY_PATH
12237 shlibpath_overrides_runpath=yes
12238 hardcode_into_libs=yes
12239 ;;
12240
12241newsos6)
12242 version_type=linux
12243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12244 shlibpath_var=LD_LIBRARY_PATH
12245 shlibpath_overrides_runpath=yes
12246 ;;
12247
12248nto-qnx*)
12249 version_type=linux
12250 need_lib_prefix=no
12251 need_version=no
12252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12253 soname_spec='${libname}${release}${shared_ext}$major'
12254 shlibpath_var=LD_LIBRARY_PATH
12255 shlibpath_overrides_runpath=yes
12256 ;;
12257
12258openbsd*)
12259 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +000012260 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +000012261 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +000012262 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12263 case $host_os in
12264 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12265 *) need_version=no ;;
12266 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000012267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12269 shlibpath_var=LD_LIBRARY_PATH
12270 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12271 case $host_os in
12272 openbsd2.[89] | openbsd2.[89].*)
12273 shlibpath_overrides_runpath=no
12274 ;;
12275 *)
12276 shlibpath_overrides_runpath=yes
12277 ;;
12278 esac
12279 else
12280 shlibpath_overrides_runpath=yes
12281 fi
12282 ;;
12283
12284os2*)
12285 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +000012286 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000012287 need_lib_prefix=no
12288 library_names_spec='$libname${shared_ext} $libname.a'
12289 dynamic_linker='OS/2 ld.exe'
12290 shlibpath_var=LIBPATH
12291 ;;
12292
12293osf3* | osf4* | osf5*)
12294 version_type=osf
12295 need_lib_prefix=no
12296 need_version=no
12297 soname_spec='${libname}${release}${shared_ext}$major'
12298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12299 shlibpath_var=LD_LIBRARY_PATH
12300 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12301 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12302 ;;
12303
a.rottmann9bc8b932004-02-29 15:18:31 +000012304solaris*)
12305 version_type=linux
12306 need_lib_prefix=no
12307 need_version=no
12308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12309 soname_spec='${libname}${release}${shared_ext}$major'
12310 shlibpath_var=LD_LIBRARY_PATH
12311 shlibpath_overrides_runpath=yes
12312 hardcode_into_libs=yes
12313 # ldd complains unless libraries are executable
12314 postinstall_cmds='chmod +x $lib'
12315 ;;
12316
12317sunos4*)
12318 version_type=sunos
12319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12320 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12321 shlibpath_var=LD_LIBRARY_PATH
12322 shlibpath_overrides_runpath=yes
12323 if test "$with_gnu_ld" = yes; then
12324 need_lib_prefix=no
12325 fi
12326 need_version=yes
12327 ;;
12328
vapier7f19c022007-02-17 14:46:31 +000012329sysv4 | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +000012330 version_type=linux
12331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12332 soname_spec='${libname}${release}${shared_ext}$major'
12333 shlibpath_var=LD_LIBRARY_PATH
12334 case $host_vendor in
12335 sni)
12336 shlibpath_overrides_runpath=no
12337 need_lib_prefix=no
12338 export_dynamic_flag_spec='${wl}-Blargedynsym'
12339 runpath_var=LD_RUN_PATH
12340 ;;
12341 siemens)
12342 need_lib_prefix=no
12343 ;;
12344 motorola)
12345 need_lib_prefix=no
12346 need_version=no
12347 shlibpath_overrides_runpath=no
12348 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12349 ;;
12350 esac
12351 ;;
12352
12353sysv4*MP*)
12354 if test -d /usr/nec ;then
12355 version_type=linux
12356 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12357 soname_spec='$libname${shared_ext}.$major'
12358 shlibpath_var=LD_LIBRARY_PATH
12359 fi
12360 ;;
12361
vapier7f19c022007-02-17 14:46:31 +000012362sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12363 version_type=freebsd-elf
12364 need_lib_prefix=no
12365 need_version=no
12366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12367 soname_spec='${libname}${release}${shared_ext}$major'
12368 shlibpath_var=LD_LIBRARY_PATH
12369 hardcode_into_libs=yes
12370 if test "$with_gnu_ld" = yes; then
12371 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12372 shlibpath_overrides_runpath=no
12373 else
12374 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12375 shlibpath_overrides_runpath=yes
12376 case $host_os in
12377 sco3.2v5*)
12378 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12379 ;;
12380 esac
12381 fi
12382 sys_lib_dlsearch_path_spec='/usr/lib'
12383 ;;
12384
a.rottmann9bc8b932004-02-29 15:18:31 +000012385uts4*)
12386 version_type=linux
12387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12388 soname_spec='${libname}${release}${shared_ext}$major'
12389 shlibpath_var=LD_LIBRARY_PATH
12390 ;;
12391
12392*)
12393 dynamic_linker=no
12394 ;;
12395esac
mlcreech94984912008-03-04 19:03:08 +000012396{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12397echo "${ECHO_T}$dynamic_linker" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012398test "$dynamic_linker" = no && can_build_shared=no
12399
vapier7f19c022007-02-17 14:46:31 +000012400variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12401if test "$GCC" = yes; then
12402 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12403fi
12404
mlcreech94984912008-03-04 19:03:08 +000012405{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12406echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012407hardcode_action_CXX=
12408if test -n "$hardcode_libdir_flag_spec_CXX" || \
vapier7f19c022007-02-17 14:46:31 +000012409 test -n "$runpath_var_CXX" || \
12410 test "X$hardcode_automatic_CXX" = "Xyes" ; then
a.rottmann9bc8b932004-02-29 15:18:31 +000012411
12412 # We can hardcode non-existant directories.
12413 if test "$hardcode_direct_CXX" != no &&
12414 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12415 # have to relink, otherwise we might link with an installed library
12416 # when we should be linking with a yet-to-be-installed one
12417 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12418 test "$hardcode_minus_L_CXX" != no; then
12419 # Linking always hardcodes the temporary library directory.
12420 hardcode_action_CXX=relink
12421 else
12422 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12423 hardcode_action_CXX=immediate
12424 fi
12425else
12426 # We cannot hardcode anything, or else we can only hardcode existing
12427 # directories.
12428 hardcode_action_CXX=unsupported
12429fi
mlcreech94984912008-03-04 19:03:08 +000012430{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12431echo "${ECHO_T}$hardcode_action_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012432
12433if test "$hardcode_action_CXX" = relink; then
12434 # Fast installation is not supported
12435 enable_fast_install=no
12436elif test "$shlibpath_overrides_runpath" = yes ||
12437 test "$enable_shared" = no; then
12438 # Fast installation is not necessary
12439 enable_fast_install=needless
12440fi
12441
a.rottmann9bc8b932004-02-29 15:18:31 +000012442
12443# The else clause should only fire when bootstrapping the
12444# libtool distribution, otherwise you forgot to ship ltmain.sh
12445# with your package, and you will get complaints that there are
12446# no rules to generate ltmain.sh.
12447if test -f "$ltmain"; then
12448 # See if we are running on zsh, and set the options which allow our commands through
12449 # without removal of \ escapes.
12450 if test -n "${ZSH_VERSION+set}" ; then
12451 setopt NO_GLOB_SUBST
12452 fi
12453 # Now quote all the things that may contain metacharacters while being
12454 # careful not to overquote the AC_SUBSTed values. We take copies of the
12455 # variables and quote the copies for generation of the libtool script.
vapier7f19c022007-02-17 14:46:31 +000012456 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
a.rottmann9bc8b932004-02-29 15:18:31 +000012457 SED SHELL STRIP \
12458 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12459 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12460 deplibs_check_method reload_flag reload_cmds need_locks \
12461 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12462 lt_cv_sys_global_symbol_to_c_name_address \
12463 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12464 old_postinstall_cmds old_postuninstall_cmds \
12465 compiler_CXX \
12466 CC_CXX \
12467 LD_CXX \
12468 lt_prog_compiler_wl_CXX \
12469 lt_prog_compiler_pic_CXX \
12470 lt_prog_compiler_static_CXX \
12471 lt_prog_compiler_no_builtin_flag_CXX \
12472 export_dynamic_flag_spec_CXX \
12473 thread_safe_flag_spec_CXX \
12474 whole_archive_flag_spec_CXX \
12475 enable_shared_with_static_runtimes_CXX \
12476 old_archive_cmds_CXX \
12477 old_archive_from_new_cmds_CXX \
12478 predep_objects_CXX \
12479 postdep_objects_CXX \
12480 predeps_CXX \
12481 postdeps_CXX \
12482 compiler_lib_search_path_CXX \
12483 archive_cmds_CXX \
12484 archive_expsym_cmds_CXX \
12485 postinstall_cmds_CXX \
12486 postuninstall_cmds_CXX \
12487 old_archive_from_expsyms_cmds_CXX \
12488 allow_undefined_flag_CXX \
12489 no_undefined_flag_CXX \
12490 export_symbols_cmds_CXX \
12491 hardcode_libdir_flag_spec_CXX \
12492 hardcode_libdir_flag_spec_ld_CXX \
12493 hardcode_libdir_separator_CXX \
12494 hardcode_automatic_CXX \
12495 module_cmds_CXX \
12496 module_expsym_cmds_CXX \
12497 lt_cv_prog_compiler_c_o_CXX \
12498 exclude_expsyms_CXX \
12499 include_expsyms_CXX; do
12500
12501 case $var in
12502 old_archive_cmds_CXX | \
12503 old_archive_from_new_cmds_CXX | \
12504 archive_cmds_CXX | \
12505 archive_expsym_cmds_CXX | \
12506 module_cmds_CXX | \
12507 module_expsym_cmds_CXX | \
12508 old_archive_from_expsyms_cmds_CXX | \
12509 export_symbols_cmds_CXX | \
12510 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12511 postinstall_cmds | postuninstall_cmds | \
12512 old_postinstall_cmds | old_postuninstall_cmds | \
12513 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12514 # Double-quote double-evaled strings.
12515 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12516 ;;
12517 *)
12518 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12519 ;;
12520 esac
12521 done
12522
12523 case $lt_echo in
12524 *'\$0 --fallback-echo"')
12525 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12526 ;;
12527 esac
12528
12529cfgfile="$ofile"
12530
12531 cat <<__EOF__ >> "$cfgfile"
12532# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12533
12534# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12535
12536# Shell to use when invoking shell scripts.
12537SHELL=$lt_SHELL
12538
12539# Whether or not to build shared libraries.
12540build_libtool_libs=$enable_shared
12541
12542# Whether or not to build static libraries.
12543build_old_libs=$enable_static
12544
12545# Whether or not to add -lc for building shared libraries.
12546build_libtool_need_lc=$archive_cmds_need_lc_CXX
12547
12548# Whether or not to disallow shared libs when runtime libs are static
12549allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12550
12551# Whether or not to optimize for fast installation.
12552fast_install=$enable_fast_install
12553
12554# The host system.
12555host_alias=$host_alias
12556host=$host
vapier7f19c022007-02-17 14:46:31 +000012557host_os=$host_os
12558
12559# The build system.
12560build_alias=$build_alias
12561build=$build
12562build_os=$build_os
a.rottmann9bc8b932004-02-29 15:18:31 +000012563
12564# An echo program that does not interpret backslashes.
12565echo=$lt_echo
12566
12567# The archiver.
12568AR=$lt_AR
12569AR_FLAGS=$lt_AR_FLAGS
12570
12571# A C compiler.
12572LTCC=$lt_LTCC
12573
vapier7f19c022007-02-17 14:46:31 +000012574# LTCC compiler flags.
12575LTCFLAGS=$lt_LTCFLAGS
12576
a.rottmann9bc8b932004-02-29 15:18:31 +000012577# A language-specific compiler.
12578CC=$lt_compiler_CXX
12579
12580# Is the compiler the GNU C compiler?
12581with_gcc=$GCC_CXX
12582
12583# An ERE matcher.
12584EGREP=$lt_EGREP
12585
12586# The linker used to build libraries.
12587LD=$lt_LD_CXX
12588
12589# Whether we need hard or soft links.
12590LN_S=$lt_LN_S
12591
12592# A BSD-compatible nm program.
12593NM=$lt_NM
12594
12595# A symbol stripping program
12596STRIP=$lt_STRIP
12597
12598# Used to examine libraries when file_magic_cmd begins "file"
12599MAGIC_CMD=$MAGIC_CMD
12600
12601# Used on cygwin: DLL creation program.
12602DLLTOOL="$DLLTOOL"
12603
12604# Used on cygwin: object dumper.
12605OBJDUMP="$OBJDUMP"
12606
12607# Used on cygwin: assembler.
12608AS="$AS"
12609
12610# The name of the directory that contains temporary libtool files.
12611objdir=$objdir
12612
12613# How to create reloadable object files.
12614reload_flag=$lt_reload_flag
12615reload_cmds=$lt_reload_cmds
12616
12617# How to pass a linker flag through the compiler.
12618wl=$lt_lt_prog_compiler_wl_CXX
12619
12620# Object file suffix (normally "o").
12621objext="$ac_objext"
12622
12623# Old archive suffix (normally "a").
12624libext="$libext"
12625
12626# Shared library suffix (normally ".so").
vapier7f19c022007-02-17 14:46:31 +000012627shrext_cmds='$shrext_cmds'
a.rottmann9bc8b932004-02-29 15:18:31 +000012628
12629# Executable file suffix (normally "").
12630exeext="$exeext"
12631
12632# Additional compiler flags for building library objects.
12633pic_flag=$lt_lt_prog_compiler_pic_CXX
12634pic_mode=$pic_mode
12635
12636# What is the maximum length of a command?
12637max_cmd_len=$lt_cv_sys_max_cmd_len
12638
12639# Does compiler simultaneously support -c and -o options?
12640compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12641
vapier7f19c022007-02-17 14:46:31 +000012642# Must we lock files when doing compilation?
a.rottmann9bc8b932004-02-29 15:18:31 +000012643need_locks=$lt_need_locks
12644
12645# Do we need the lib prefix for modules?
12646need_lib_prefix=$need_lib_prefix
12647
12648# Do we need a version for libraries?
12649need_version=$need_version
12650
12651# Whether dlopen is supported.
12652dlopen_support=$enable_dlopen
12653
12654# Whether dlopen of programs is supported.
12655dlopen_self=$enable_dlopen_self
12656
12657# Whether dlopen of statically linked programs is supported.
12658dlopen_self_static=$enable_dlopen_self_static
12659
12660# Compiler flag to prevent dynamic linking.
12661link_static_flag=$lt_lt_prog_compiler_static_CXX
12662
12663# Compiler flag to turn off builtin functions.
12664no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12665
12666# Compiler flag to allow reflexive dlopens.
12667export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12668
12669# Compiler flag to generate shared objects directly from archives.
12670whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12671
12672# Compiler flag to generate thread-safe objects.
12673thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12674
12675# Library versioning type.
12676version_type=$version_type
12677
12678# Format of library name prefix.
12679libname_spec=$lt_libname_spec
12680
12681# List of archive names. First name is the real one, the rest are links.
12682# The last name is the one that the linker finds with -lNAME.
12683library_names_spec=$lt_library_names_spec
12684
12685# The coded name of the library, if different from the real name.
12686soname_spec=$lt_soname_spec
12687
12688# Commands used to build and install an old-style archive.
12689RANLIB=$lt_RANLIB
12690old_archive_cmds=$lt_old_archive_cmds_CXX
12691old_postinstall_cmds=$lt_old_postinstall_cmds
12692old_postuninstall_cmds=$lt_old_postuninstall_cmds
12693
12694# Create an old-style archive from a shared archive.
12695old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12696
12697# Create a temporary old-style archive to link instead of a shared archive.
12698old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12699
12700# Commands used to build and install a shared archive.
12701archive_cmds=$lt_archive_cmds_CXX
12702archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12703postinstall_cmds=$lt_postinstall_cmds
12704postuninstall_cmds=$lt_postuninstall_cmds
12705
12706# Commands used to build a loadable module (assumed same as above if empty)
12707module_cmds=$lt_module_cmds_CXX
12708module_expsym_cmds=$lt_module_expsym_cmds_CXX
12709
12710# Commands to strip libraries.
12711old_striplib=$lt_old_striplib
12712striplib=$lt_striplib
12713
12714# Dependencies to place before the objects being linked to create a
12715# shared library.
12716predep_objects=$lt_predep_objects_CXX
12717
12718# Dependencies to place after the objects being linked to create a
12719# shared library.
12720postdep_objects=$lt_postdep_objects_CXX
12721
12722# Dependencies to place before the objects being linked to create a
12723# shared library.
12724predeps=$lt_predeps_CXX
12725
12726# Dependencies to place after the objects being linked to create a
12727# shared library.
12728postdeps=$lt_postdeps_CXX
12729
12730# The library search path used internally by the compiler when linking
12731# a shared library.
12732compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12733
12734# Method to check whether dependent libraries are shared objects.
12735deplibs_check_method=$lt_deplibs_check_method
12736
12737# Command to use when deplibs_check_method == file_magic.
12738file_magic_cmd=$lt_file_magic_cmd
12739
12740# Flag that allows shared libraries with undefined symbols to be built.
12741allow_undefined_flag=$lt_allow_undefined_flag_CXX
12742
12743# Flag that forces no undefined symbols.
12744no_undefined_flag=$lt_no_undefined_flag_CXX
12745
12746# Commands used to finish a libtool library installation in a directory.
12747finish_cmds=$lt_finish_cmds
12748
12749# Same as above, but a single script fragment to be evaled but not shown.
12750finish_eval=$lt_finish_eval
12751
12752# Take the output of nm and produce a listing of raw symbols and C names.
12753global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12754
12755# Transform the output of nm in a proper C declaration
12756global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12757
12758# Transform the output of nm in a C name address pair
12759global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12760
12761# This is the shared library runtime path variable.
12762runpath_var=$runpath_var
12763
12764# This is the shared library path variable.
12765shlibpath_var=$shlibpath_var
12766
12767# Is shlibpath searched before the hard-coded library search path?
12768shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12769
12770# How to hardcode a shared library path into an executable.
12771hardcode_action=$hardcode_action_CXX
12772
12773# Whether we should hardcode library paths into libraries.
12774hardcode_into_libs=$hardcode_into_libs
12775
12776# Flag to hardcode \$libdir into a binary during linking.
12777# This must work even if \$libdir does not exist.
12778hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12779
12780# If ld is used when linking, flag to hardcode \$libdir into
12781# a binary during linking. This must work even if \$libdir does
12782# not exist.
12783hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12784
12785# Whether we need a single -rpath flag with a separated argument.
12786hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12787
12788# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12789# resulting binary.
12790hardcode_direct=$hardcode_direct_CXX
12791
12792# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12793# resulting binary.
12794hardcode_minus_L=$hardcode_minus_L_CXX
12795
12796# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12797# the resulting binary.
12798hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12799
12800# Set to yes if building a shared library automatically hardcodes DIR into the library
12801# and all subsequent libraries and executables linked against it.
12802hardcode_automatic=$hardcode_automatic_CXX
12803
12804# Variables whose values should be saved in libtool wrapper scripts and
12805# restored at relink time.
12806variables_saved_for_relink="$variables_saved_for_relink"
12807
12808# Whether libtool must link a program against all its dependency libraries.
12809link_all_deplibs=$link_all_deplibs_CXX
12810
12811# Compile-time system search path for libraries
12812sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12813
12814# Run-time system search path for libraries
12815sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12816
12817# Fix the shell variable \$srcfile for the compiler.
12818fix_srcfile_path="$fix_srcfile_path_CXX"
12819
12820# Set to yes if exported symbols are required.
12821always_export_symbols=$always_export_symbols_CXX
12822
12823# The commands to list exported symbols.
12824export_symbols_cmds=$lt_export_symbols_cmds_CXX
12825
12826# The commands to extract the exported symbol list from a shared archive.
12827extract_expsyms_cmds=$lt_extract_expsyms_cmds
12828
12829# Symbols that should not be listed in the preloaded symbols.
12830exclude_expsyms=$lt_exclude_expsyms_CXX
12831
12832# Symbols that must always be exported.
12833include_expsyms=$lt_include_expsyms_CXX
12834
12835# ### END LIBTOOL TAG CONFIG: $tagname
12836
12837__EOF__
12838
12839
12840else
12841 # If there is no Makefile yet, we rely on a make rule to execute
12842 # `config.status --recheck' to rerun these tests and create the
12843 # libtool script then.
12844 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12845 if test -f "$ltmain_in"; then
12846 test -f Makefile && make "$ltmain"
12847 fi
12848fi
12849
12850
12851ac_ext=c
12852ac_cpp='$CPP $CPPFLAGS'
12853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12855ac_compiler_gnu=$ac_cv_c_compiler_gnu
12856
12857CC=$lt_save_CC
12858LDCXX=$LD
12859LD=$lt_save_LD
12860GCC=$lt_save_GCC
12861with_gnu_ldcxx=$with_gnu_ld
12862with_gnu_ld=$lt_save_with_gnu_ld
12863lt_cv_path_LDCXX=$lt_cv_path_LD
12864lt_cv_path_LD=$lt_save_path_LD
12865lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12866lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12867
12868 else
12869 tagname=""
12870 fi
12871 ;;
12872
12873 F77)
12874 if test -n "$F77" && test "X$F77" != "Xno"; then
12875
12876ac_ext=f
12877ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12878ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12879ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12880
12881
12882archive_cmds_need_lc_F77=no
12883allow_undefined_flag_F77=
12884always_export_symbols_F77=no
12885archive_expsym_cmds_F77=
12886export_dynamic_flag_spec_F77=
12887hardcode_direct_F77=no
12888hardcode_libdir_flag_spec_F77=
12889hardcode_libdir_flag_spec_ld_F77=
12890hardcode_libdir_separator_F77=
12891hardcode_minus_L_F77=no
12892hardcode_automatic_F77=no
12893module_cmds_F77=
12894module_expsym_cmds_F77=
12895link_all_deplibs_F77=unknown
12896old_archive_cmds_F77=$old_archive_cmds
12897no_undefined_flag_F77=
12898whole_archive_flag_spec_F77=
12899enable_shared_with_static_runtimes_F77=no
12900
12901# Source file extension for f77 test sources.
12902ac_ext=f
12903
12904# Object file extension for compiled f77 test sources.
12905objext=o
12906objext_F77=$objext
12907
12908# Code to be used in simple compile tests
12909lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12910
12911# Code to be used in simple link tests
12912lt_simple_link_test_code=" program t\n end\n"
12913
12914# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12915
12916# If no C compiler was specified, use CC.
12917LTCC=${LTCC-"$CC"}
12918
vapier7f19c022007-02-17 14:46:31 +000012919# If no C compiler flags were specified, use CFLAGS.
12920LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12921
a.rottmann9bc8b932004-02-29 15:18:31 +000012922# Allow CC to be a program name with arguments.
12923compiler=$CC
12924
12925
vapier7f19c022007-02-17 14:46:31 +000012926# save warnings/boilerplate of simple test code
12927ac_outfile=conftest.$ac_objext
12928printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12929eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12930_lt_compiler_boilerplate=`cat conftest.err`
12931$rm conftest*
12932
12933ac_outfile=conftest.$ac_objext
12934printf "$lt_simple_link_test_code" >conftest.$ac_ext
12935eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12936_lt_linker_boilerplate=`cat conftest.err`
12937$rm conftest*
12938
12939
a.rottmann9bc8b932004-02-29 15:18:31 +000012940# Allow CC to be a program name with arguments.
12941lt_save_CC="$CC"
12942CC=${F77-"f77"}
12943compiler=$CC
12944compiler_F77=$CC
vapier7f19c022007-02-17 14:46:31 +000012945for cc_temp in $compiler""; do
12946 case $cc_temp in
12947 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12948 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12949 \-*) ;;
12950 *) break;;
12951 esac
12952done
12953cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a.rottmann9bc8b932004-02-29 15:18:31 +000012954
a.rottmann9bc8b932004-02-29 15:18:31 +000012955
mlcreech94984912008-03-04 19:03:08 +000012956{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12957echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12958{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
12959echo "${ECHO_T}$can_build_shared" >&6; }
vapier7f19c022007-02-17 14:46:31 +000012960
mlcreech94984912008-03-04 19:03:08 +000012961{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12962echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012963test "$can_build_shared" = "no" && enable_shared=no
12964
12965# On AIX, shared libraries and static libraries use the same namespace, and
12966# are all built from PIC.
vapier7f19c022007-02-17 14:46:31 +000012967case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +000012968aix3*)
12969 test "$enable_shared" = yes && enable_static=no
12970 if test -n "$RANLIB"; then
12971 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12972 postinstall_cmds='$RANLIB $lib'
12973 fi
12974 ;;
vapier7f19c022007-02-17 14:46:31 +000012975aix4* | aix5*)
12976 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12977 test "$enable_shared" = yes && enable_static=no
12978 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000012979 ;;
12980esac
mlcreech94984912008-03-04 19:03:08 +000012981{ echo "$as_me:$LINENO: result: $enable_shared" >&5
12982echo "${ECHO_T}$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012983
mlcreech94984912008-03-04 19:03:08 +000012984{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12985echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012986# Make sure either enable_shared or enable_static is yes.
12987test "$enable_shared" = yes || enable_static=yes
mlcreech94984912008-03-04 19:03:08 +000012988{ echo "$as_me:$LINENO: result: $enable_static" >&5
12989echo "${ECHO_T}$enable_static" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012990
12991GCC_F77="$G77"
12992LD_F77="$LD"
12993
12994lt_prog_compiler_wl_F77=
12995lt_prog_compiler_pic_F77=
12996lt_prog_compiler_static_F77=
12997
mlcreech94984912008-03-04 19:03:08 +000012998{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12999echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013000
13001 if test "$GCC" = yes; then
13002 lt_prog_compiler_wl_F77='-Wl,'
13003 lt_prog_compiler_static_F77='-static'
13004
13005 case $host_os in
13006 aix*)
13007 # All AIX code is PIC.
13008 if test "$host_cpu" = ia64; then
13009 # AIX 5 now supports IA64 processor
13010 lt_prog_compiler_static_F77='-Bstatic'
13011 fi
13012 ;;
13013
13014 amigaos*)
13015 # FIXME: we need at least 68020 code to build shared libraries, but
13016 # adding the `-m68020' flag to GCC prevents building anything better,
13017 # like `-m68040'.
13018 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13019 ;;
13020
13021 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13022 # PIC is the default for these OSes.
13023 ;;
13024
13025 mingw* | pw32* | os2*)
13026 # This hack is so that the source file can tell whether it is being
13027 # built for inclusion in a dll (and should export symbols for example).
13028 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13029 ;;
13030
13031 darwin* | rhapsody*)
13032 # PIC is the default on this platform
13033 # Common symbols not allowed in MH_DYLIB files
13034 lt_prog_compiler_pic_F77='-fno-common'
13035 ;;
13036
vapier7f19c022007-02-17 14:46:31 +000013037 interix3*)
13038 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13039 # Instead, we relocate shared libraries at runtime.
13040 ;;
13041
a.rottmann9bc8b932004-02-29 15:18:31 +000013042 msdosdjgpp*)
13043 # Just because we use GCC doesn't mean we suddenly get shared libraries
13044 # on systems that don't support them.
13045 lt_prog_compiler_can_build_shared_F77=no
13046 enable_shared=no
13047 ;;
13048
13049 sysv4*MP*)
13050 if test -d /usr/nec; then
13051 lt_prog_compiler_pic_F77=-Kconform_pic
13052 fi
13053 ;;
13054
13055 hpux*)
13056 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13057 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +000013058 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000013059 hppa*64*|ia64*)
13060 # +Z the default
13061 ;;
13062 *)
13063 lt_prog_compiler_pic_F77='-fPIC'
13064 ;;
13065 esac
13066 ;;
13067
13068 *)
13069 lt_prog_compiler_pic_F77='-fPIC'
13070 ;;
13071 esac
13072 else
13073 # PORTME Check for flag to pass linker flags through the system compiler.
13074 case $host_os in
13075 aix*)
13076 lt_prog_compiler_wl_F77='-Wl,'
13077 if test "$host_cpu" = ia64; then
13078 # AIX 5 now supports IA64 processor
13079 lt_prog_compiler_static_F77='-Bstatic'
13080 else
13081 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13082 fi
13083 ;;
vapier7f19c022007-02-17 14:46:31 +000013084 darwin*)
13085 # PIC is the default on this platform
13086 # Common symbols not allowed in MH_DYLIB files
13087 case $cc_basename in
13088 xlc*)
13089 lt_prog_compiler_pic_F77='-qnocommon'
13090 lt_prog_compiler_wl_F77='-Wl,'
13091 ;;
13092 esac
13093 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013094
13095 mingw* | pw32* | os2*)
13096 # This hack is so that the source file can tell whether it is being
13097 # built for inclusion in a dll (and should export symbols for example).
13098 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13099 ;;
13100
13101 hpux9* | hpux10* | hpux11*)
13102 lt_prog_compiler_wl_F77='-Wl,'
13103 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13104 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +000013105 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000013106 hppa*64*|ia64*)
13107 # +Z the default
13108 ;;
13109 *)
13110 lt_prog_compiler_pic_F77='+Z'
13111 ;;
13112 esac
13113 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13114 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13115 ;;
13116
13117 irix5* | irix6* | nonstopux*)
13118 lt_prog_compiler_wl_F77='-Wl,'
13119 # PIC (with -KPIC) is the default.
13120 lt_prog_compiler_static_F77='-non_shared'
13121 ;;
13122
13123 newsos6)
13124 lt_prog_compiler_pic_F77='-KPIC'
13125 lt_prog_compiler_static_F77='-Bstatic'
13126 ;;
13127
13128 linux*)
vapier7f19c022007-02-17 14:46:31 +000013129 case $cc_basename in
a.rottmann9bc8b932004-02-29 15:18:31 +000013130 icc* | ecc*)
13131 lt_prog_compiler_wl_F77='-Wl,'
13132 lt_prog_compiler_pic_F77='-KPIC'
13133 lt_prog_compiler_static_F77='-static'
13134 ;;
vapier7f19c022007-02-17 14:46:31 +000013135 pgcc* | pgf77* | pgf90* | pgf95*)
13136 # Portland Group compilers (*not* the Pentium gcc compiler,
13137 # which looks to be a dead project)
13138 lt_prog_compiler_wl_F77='-Wl,'
13139 lt_prog_compiler_pic_F77='-fpic'
13140 lt_prog_compiler_static_F77='-Bstatic'
13141 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013142 ccc*)
13143 lt_prog_compiler_wl_F77='-Wl,'
13144 # All Alpha code is PIC.
13145 lt_prog_compiler_static_F77='-non_shared'
13146 ;;
13147 esac
13148 ;;
13149
13150 osf3* | osf4* | osf5*)
13151 lt_prog_compiler_wl_F77='-Wl,'
13152 # All OSF/1 code is PIC.
13153 lt_prog_compiler_static_F77='-non_shared'
13154 ;;
13155
a.rottmann9bc8b932004-02-29 15:18:31 +000013156 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013157 lt_prog_compiler_pic_F77='-KPIC'
13158 lt_prog_compiler_static_F77='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +000013159 case $cc_basename in
13160 f77* | f90* | f95*)
13161 lt_prog_compiler_wl_F77='-Qoption ld ';;
13162 *)
13163 lt_prog_compiler_wl_F77='-Wl,';;
13164 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000013165 ;;
13166
13167 sunos4*)
13168 lt_prog_compiler_wl_F77='-Qoption ld '
13169 lt_prog_compiler_pic_F77='-PIC'
13170 lt_prog_compiler_static_F77='-Bstatic'
13171 ;;
13172
vapier7f19c022007-02-17 14:46:31 +000013173 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013174 lt_prog_compiler_wl_F77='-Wl,'
13175 lt_prog_compiler_pic_F77='-KPIC'
13176 lt_prog_compiler_static_F77='-Bstatic'
13177 ;;
13178
13179 sysv4*MP*)
13180 if test -d /usr/nec ;then
13181 lt_prog_compiler_pic_F77='-Kconform_pic'
13182 lt_prog_compiler_static_F77='-Bstatic'
13183 fi
13184 ;;
13185
vapier7f19c022007-02-17 14:46:31 +000013186 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13187 lt_prog_compiler_wl_F77='-Wl,'
13188 lt_prog_compiler_pic_F77='-KPIC'
13189 lt_prog_compiler_static_F77='-Bstatic'
13190 ;;
13191
13192 unicos*)
13193 lt_prog_compiler_wl_F77='-Wl,'
13194 lt_prog_compiler_can_build_shared_F77=no
13195 ;;
13196
a.rottmann9bc8b932004-02-29 15:18:31 +000013197 uts4*)
13198 lt_prog_compiler_pic_F77='-pic'
13199 lt_prog_compiler_static_F77='-Bstatic'
13200 ;;
13201
13202 *)
13203 lt_prog_compiler_can_build_shared_F77=no
13204 ;;
13205 esac
13206 fi
13207
mlcreech94984912008-03-04 19:03:08 +000013208{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13209echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013210
13211#
13212# Check to make sure the PIC flag actually works.
13213#
13214if test -n "$lt_prog_compiler_pic_F77"; then
13215
mlcreech94984912008-03-04 19:03:08 +000013216{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13217echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013218if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13219 echo $ECHO_N "(cached) $ECHO_C" >&6
13220else
13221 lt_prog_compiler_pic_works_F77=no
13222 ac_outfile=conftest.$ac_objext
13223 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13224 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13225 # Insert the option either (1) after the last *FLAGS variable, or
13226 # (2) before a word containing "conftest.", or (3) at the end.
13227 # Note that $ac_compile itself does not contain backslashes and begins
13228 # with a dollar sign (not a hyphen), so the echo should work correctly.
13229 # The option is referenced via a variable to avoid confusing sed.
13230 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000013231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000013232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13233 -e 's:$: $lt_compiler_flag:'`
mlcreecha4edab02008-03-06 04:14:17 +000013234 (eval echo "\"\$as_me:13234: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000013235 (eval "$lt_compile" 2>conftest.err)
13236 ac_status=$?
13237 cat conftest.err >&5
mlcreecha4edab02008-03-06 04:14:17 +000013238 echo "$as_me:13238: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000013239 if (exit $ac_status) && test -s "$ac_outfile"; then
13240 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +000013241 # So say no if there are warnings other than the usual output.
13242 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13243 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13244 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013245 lt_prog_compiler_pic_works_F77=yes
13246 fi
13247 fi
13248 $rm conftest*
13249
13250fi
mlcreech94984912008-03-04 19:03:08 +000013251{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13252echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013253
13254if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13255 case $lt_prog_compiler_pic_F77 in
13256 "" | " "*) ;;
13257 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13258 esac
13259else
13260 lt_prog_compiler_pic_F77=
13261 lt_prog_compiler_can_build_shared_F77=no
13262fi
13263
13264fi
vapier7f19c022007-02-17 14:46:31 +000013265case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +000013266 # For platforms which do not support PIC, -DPIC is meaningless:
13267 *djgpp*)
13268 lt_prog_compiler_pic_F77=
13269 ;;
13270 *)
13271 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13272 ;;
13273esac
13274
vapier7f19c022007-02-17 14:46:31 +000013275#
13276# Check to make sure the static flag actually works.
13277#
13278wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
mlcreech94984912008-03-04 19:03:08 +000013279{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13280echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +000013281if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13282 echo $ECHO_N "(cached) $ECHO_C" >&6
13283else
13284 lt_prog_compiler_static_works_F77=no
13285 save_LDFLAGS="$LDFLAGS"
13286 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13287 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13288 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13289 # The linker can only warn and ignore the option if not recognized
13290 # So say no if there are warnings
13291 if test -s conftest.err; then
13292 # Append any errors to the config.log.
13293 cat conftest.err 1>&5
13294 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13296 if diff conftest.exp conftest.er2 >/dev/null; then
13297 lt_prog_compiler_static_works_F77=yes
13298 fi
13299 else
13300 lt_prog_compiler_static_works_F77=yes
13301 fi
13302 fi
13303 $rm conftest*
13304 LDFLAGS="$save_LDFLAGS"
13305
13306fi
mlcreech94984912008-03-04 19:03:08 +000013307{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13308echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
vapier7f19c022007-02-17 14:46:31 +000013309
13310if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13311 :
13312else
13313 lt_prog_compiler_static_F77=
13314fi
13315
13316
mlcreech94984912008-03-04 19:03:08 +000013317{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13318echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013319if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13320 echo $ECHO_N "(cached) $ECHO_C" >&6
13321else
13322 lt_cv_prog_compiler_c_o_F77=no
13323 $rm -r conftest 2>/dev/null
13324 mkdir conftest
13325 cd conftest
13326 mkdir out
13327 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13328
13329 lt_compiler_flag="-o out/conftest2.$ac_objext"
13330 # Insert the option either (1) after the last *FLAGS variable, or
13331 # (2) before a word containing "conftest.", or (3) at the end.
13332 # Note that $ac_compile itself does not contain backslashes and begins
13333 # with a dollar sign (not a hyphen), so the echo should work correctly.
13334 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000013335 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000013336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13337 -e 's:$: $lt_compiler_flag:'`
mlcreecha4edab02008-03-06 04:14:17 +000013338 (eval echo "\"\$as_me:13338: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000013339 (eval "$lt_compile" 2>out/conftest.err)
13340 ac_status=$?
13341 cat out/conftest.err >&5
mlcreecha4edab02008-03-06 04:14:17 +000013342 echo "$as_me:13342: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000013343 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13344 then
13345 # The compiler can only warn and ignore the option if not recognized
13346 # So say no if there are warnings
vapier7f19c022007-02-17 14:46:31 +000013347 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13348 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13349 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013350 lt_cv_prog_compiler_c_o_F77=yes
13351 fi
13352 fi
vapier7f19c022007-02-17 14:46:31 +000013353 chmod u+w . 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +000013354 $rm conftest*
13355 # SGI C++ compiler will create directory out/ii_files/ for
13356 # template instantiation
13357 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13358 $rm out/* && rmdir out
13359 cd ..
13360 rmdir conftest
13361 $rm conftest*
13362
13363fi
mlcreech94984912008-03-04 19:03:08 +000013364{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13365echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013366
13367
13368hard_links="nottested"
13369if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13370 # do not overwrite the value of need_locks provided by the user
mlcreech94984912008-03-04 19:03:08 +000013371 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13372echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013373 hard_links=yes
13374 $rm conftest*
13375 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13376 touch conftest.a
13377 ln conftest.a conftest.b 2>&5 || hard_links=no
13378 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mlcreech94984912008-03-04 19:03:08 +000013379 { echo "$as_me:$LINENO: result: $hard_links" >&5
13380echo "${ECHO_T}$hard_links" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013381 if test "$hard_links" = no; then
13382 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13383echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13384 need_locks=warn
13385 fi
13386else
13387 need_locks=no
13388fi
13389
mlcreech94984912008-03-04 19:03:08 +000013390{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13391echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013392
13393 runpath_var=
13394 allow_undefined_flag_F77=
13395 enable_shared_with_static_runtimes_F77=no
13396 archive_cmds_F77=
13397 archive_expsym_cmds_F77=
13398 old_archive_From_new_cmds_F77=
13399 old_archive_from_expsyms_cmds_F77=
13400 export_dynamic_flag_spec_F77=
13401 whole_archive_flag_spec_F77=
13402 thread_safe_flag_spec_F77=
13403 hardcode_libdir_flag_spec_F77=
13404 hardcode_libdir_flag_spec_ld_F77=
13405 hardcode_libdir_separator_F77=
13406 hardcode_direct_F77=no
13407 hardcode_minus_L_F77=no
13408 hardcode_shlibpath_var_F77=unsupported
13409 link_all_deplibs_F77=unknown
13410 hardcode_automatic_F77=no
13411 module_cmds_F77=
13412 module_expsym_cmds_F77=
13413 always_export_symbols_F77=no
13414 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13415 # include_expsyms should be a list of space-separated symbols to be *always*
13416 # included in the symbol list
13417 include_expsyms_F77=
13418 # exclude_expsyms can be an extended regexp of symbols to exclude
13419 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13420 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13421 # as well as any symbol that contains `d'.
13422 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13423 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13424 # platforms (ab)use it in PIC code, but their linkers get confused if
13425 # the symbol is explicitly referenced. Since portable code cannot
13426 # rely on this symbol name, it's probably fine to never include it in
13427 # preloaded symbol tables.
13428 extract_expsyms_cmds=
vapier7f19c022007-02-17 14:46:31 +000013429 # Just being paranoid about ensuring that cc_basename is set.
13430 for cc_temp in $compiler""; do
13431 case $cc_temp in
13432 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13433 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13434 \-*) ;;
13435 *) break;;
13436 esac
13437done
13438cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a.rottmann9bc8b932004-02-29 15:18:31 +000013439
13440 case $host_os in
13441 cygwin* | mingw* | pw32*)
13442 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13443 # When not using gcc, we currently assume that we are using
13444 # Microsoft Visual C++.
13445 if test "$GCC" != yes; then
13446 with_gnu_ld=no
13447 fi
13448 ;;
vapier7f19c022007-02-17 14:46:31 +000013449 interix*)
13450 # we just hope/assume this is gcc and not c89 (= MSVC++)
13451 with_gnu_ld=yes
13452 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013453 openbsd*)
13454 with_gnu_ld=no
13455 ;;
13456 esac
13457
13458 ld_shlibs_F77=yes
13459 if test "$with_gnu_ld" = yes; then
13460 # If archive_cmds runs LD, not CC, wlarc should be empty
13461 wlarc='${wl}'
13462
vapier7f19c022007-02-17 14:46:31 +000013463 # Set some defaults for GNU ld with shared library support. These
13464 # are reset later if shared libraries are not supported. Putting them
13465 # here allows them to be overridden if necessary.
13466 runpath_var=LD_RUN_PATH
13467 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13468 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13469 # ancient GNU ld didn't support --whole-archive et. al.
13470 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13471 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13472 else
13473 whole_archive_flag_spec_F77=
13474 fi
13475 supports_anon_versioning=no
13476 case `$LD -v 2>/dev/null` in
13477 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13478 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13479 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13480 *\ 2.11.*) ;; # other 2.11 versions
13481 *) supports_anon_versioning=yes ;;
13482 esac
13483
a.rottmann9bc8b932004-02-29 15:18:31 +000013484 # See if GNU ld supports shared libraries.
13485 case $host_os in
13486 aix3* | aix4* | aix5*)
13487 # On AIX/PPC, the GNU linker is very broken
13488 if test "$host_cpu" != ia64; then
13489 ld_shlibs_F77=no
13490 cat <<EOF 1>&2
13491
13492*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13493*** to be unable to reliably create shared libraries on AIX.
13494*** Therefore, libtool is disabling shared libraries support. If you
13495*** really care for shared libraries, you may want to modify your PATH
13496*** so that a non-GNU linker is found, and then restart.
13497
13498EOF
13499 fi
13500 ;;
13501
13502 amigaos*)
13503 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)'
13504 hardcode_libdir_flag_spec_F77='-L$libdir'
13505 hardcode_minus_L_F77=yes
13506
13507 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13508 # that the semantics of dynamic libraries on AmigaOS, at least up
13509 # to version 4, is to share data among multiple programs linked
13510 # with the same dynamic library. Since this doesn't match the
13511 # behavior of shared libraries on other platforms, we can't use
13512 # them.
13513 ld_shlibs_F77=no
13514 ;;
13515
13516 beos*)
13517 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13518 allow_undefined_flag_F77=unsupported
13519 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13520 # support --undefined. This deserves some investigation. FIXME
13521 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13522 else
13523 ld_shlibs_F77=no
13524 fi
13525 ;;
13526
13527 cygwin* | mingw* | pw32*)
13528 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13529 # as there is no search path for DLLs.
13530 hardcode_libdir_flag_spec_F77='-L$libdir'
13531 allow_undefined_flag_F77=unsupported
13532 always_export_symbols_F77=no
13533 enable_shared_with_static_runtimes_F77=yes
vapier7f19c022007-02-17 14:46:31 +000013534 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +000013535
13536 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +000013537 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +000013538 # If the export-symbols file already is a .def file (1st line
13539 # is EXPORTS), use it as is; otherwise, prepend...
13540 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13541 cp $export_symbols $output_objdir/$soname.def;
13542 else
13543 echo EXPORTS > $output_objdir/$soname.def;
13544 cat $export_symbols >> $output_objdir/$soname.def;
13545 fi~
vapier7f19c022007-02-17 14:46:31 +000013546 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +000013547 else
vapier7f19c022007-02-17 14:46:31 +000013548 ld_shlibs_F77=no
a.rottmann9bc8b932004-02-29 15:18:31 +000013549 fi
13550 ;;
13551
vapier7f19c022007-02-17 14:46:31 +000013552 interix3*)
13553 hardcode_direct_F77=no
13554 hardcode_shlibpath_var_F77=no
13555 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13556 export_dynamic_flag_spec_F77='${wl}-E'
13557 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13558 # Instead, shared libraries are loaded at an image base (0x10000000 by
13559 # default) and relocated if they conflict, which is a slow very memory
13560 # consuming and fragmenting process. To avoid this, we pick a random,
13561 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13562 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13563 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'
13564 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'
13565 ;;
13566
13567 linux*)
13568 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13569 tmp_addflag=
13570 case $cc_basename,$host_cpu in
13571 pgcc*) # Portland Group C compiler
13572 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'
13573 tmp_addflag=' $pic_flag'
13574 ;;
13575 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13576 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'
13577 tmp_addflag=' $pic_flag -Mnomain' ;;
13578 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13579 tmp_addflag=' -i_dynamic' ;;
13580 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13581 tmp_addflag=' -i_dynamic -nofor_main' ;;
13582 ifc* | ifort*) # Intel Fortran compiler
13583 tmp_addflag=' -nofor_main' ;;
13584 esac
13585 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13586
13587 if test $supports_anon_versioning = yes; then
13588 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13589 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13590 $echo "local: *; };" >> $output_objdir/$libname.ver~
13591 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13592 fi
13593 else
13594 ld_shlibs_F77=no
13595 fi
13596 ;;
13597
13598 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013599 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13600 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13601 wlarc=
13602 else
13603 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13604 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13605 fi
13606 ;;
13607
vapier7f19c022007-02-17 14:46:31 +000013608 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013609 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13610 ld_shlibs_F77=no
13611 cat <<EOF 1>&2
13612
13613*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13614*** create shared libraries on Solaris systems. Therefore, libtool
13615*** is disabling shared libraries support. We urge you to upgrade GNU
13616*** binutils to release 2.9.1 or newer. Another option is to modify
13617*** your PATH or compiler configuration so that the native linker is
13618*** used, and then restart.
13619
13620EOF
13621 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13622 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13623 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13624 else
13625 ld_shlibs_F77=no
13626 fi
13627 ;;
13628
vapier7f19c022007-02-17 14:46:31 +000013629 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13630 case `$LD -v 2>&1` in
13631 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13632 ld_shlibs_F77=no
13633 cat <<_LT_EOF 1>&2
13634
13635*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13636*** reliably create shared libraries on SCO systems. Therefore, libtool
13637*** is disabling shared libraries support. We urge you to upgrade GNU
13638*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13639*** your PATH or compiler configuration so that the native linker is
13640*** used, and then restart.
13641
13642_LT_EOF
13643 ;;
13644 *)
13645 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13646 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13647 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13648 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13649 else
13650 ld_shlibs_F77=no
13651 fi
13652 ;;
13653 esac
13654 ;;
13655
a.rottmann9bc8b932004-02-29 15:18:31 +000013656 sunos4*)
13657 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13658 wlarc=
13659 hardcode_direct_F77=yes
13660 hardcode_shlibpath_var_F77=no
13661 ;;
13662
a.rottmann9bc8b932004-02-29 15:18:31 +000013663 *)
13664 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13665 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13666 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13667 else
13668 ld_shlibs_F77=no
13669 fi
13670 ;;
13671 esac
13672
vapier7f19c022007-02-17 14:46:31 +000013673 if test "$ld_shlibs_F77" = no; then
13674 runpath_var=
13675 hardcode_libdir_flag_spec_F77=
13676 export_dynamic_flag_spec_F77=
13677 whole_archive_flag_spec_F77=
a.rottmann9bc8b932004-02-29 15:18:31 +000013678 fi
13679 else
13680 # PORTME fill in a description of your system's linker (not GNU ld)
13681 case $host_os in
13682 aix3*)
13683 allow_undefined_flag_F77=unsupported
13684 always_export_symbols_F77=yes
13685 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'
13686 # Note: this linker hardcodes the directories in LIBPATH if there
13687 # are no directories specified by -L.
13688 hardcode_minus_L_F77=yes
vapier7f19c022007-02-17 14:46:31 +000013689 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013690 # Neither direct hardcoding nor static linking is supported with a
13691 # broken collect2.
13692 hardcode_direct_F77=unsupported
13693 fi
13694 ;;
13695
13696 aix4* | aix5*)
13697 if test "$host_cpu" = ia64; then
13698 # On IA64, the linker does run time linking by default, so we don't
13699 # have to do anything special.
13700 aix_use_runtimelinking=no
13701 exp_sym_flag='-Bexport'
13702 no_entry_flag=""
13703 else
13704 # If we're using GNU nm, then we don't want the "-C" option.
13705 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13706 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13707 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'
13708 else
13709 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'
13710 fi
13711 aix_use_runtimelinking=no
13712
13713 # Test if we are trying to use run time linking or normal
13714 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13715 # need to do runtime linking.
13716 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13717 for ld_flag in $LDFLAGS; do
13718 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13719 aix_use_runtimelinking=yes
13720 break
13721 fi
13722 done
vapier7f19c022007-02-17 14:46:31 +000013723 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013724 esac
13725
13726 exp_sym_flag='-bexport'
13727 no_entry_flag='-bnoentry'
13728 fi
13729
13730 # When large executables or shared objects are built, AIX ld can
13731 # have problems creating the table of contents. If linking a library
13732 # or program results in "error TOC overflow" add -mminimal-toc to
13733 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13734 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13735
13736 archive_cmds_F77=''
13737 hardcode_direct_F77=yes
13738 hardcode_libdir_separator_F77=':'
13739 link_all_deplibs_F77=yes
13740
13741 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000013742 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013743 # We only want to do this on AIX 4.2 and lower, the check
13744 # below for broken collect2 doesn't work under 4.3+
13745 collect2name=`${CC} -print-prog-name=collect2`
13746 if test -f "$collect2name" && \
13747 strings "$collect2name" | grep resolve_lib_name >/dev/null
13748 then
13749 # We have reworked collect2
13750 hardcode_direct_F77=yes
13751 else
13752 # We have old collect2
13753 hardcode_direct_F77=unsupported
13754 # It fails to find uninstalled libraries when the uninstalled
13755 # path is not listed in the libpath. Setting hardcode_minus_L
13756 # to unsupported forces relinking
13757 hardcode_minus_L_F77=yes
13758 hardcode_libdir_flag_spec_F77='-L$libdir'
13759 hardcode_libdir_separator_F77=
13760 fi
vapier7f19c022007-02-17 14:46:31 +000013761 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013762 esac
13763 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +000013764 if test "$aix_use_runtimelinking" = yes; then
13765 shared_flag="$shared_flag "'${wl}-G'
13766 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000013767 else
13768 # not using gcc
13769 if test "$host_cpu" = ia64; then
13770 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13771 # chokes on -Wl,-G. The following line is correct:
13772 shared_flag='-G'
13773 else
vapier7f19c022007-02-17 14:46:31 +000013774 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013775 shared_flag='${wl}-G'
13776 else
13777 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +000013778 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000013779 fi
13780 fi
13781
13782 # It seems that -bexpall does not export symbols beginning with
13783 # underscore (_), so it is better to generate a list of symbols to export.
13784 always_export_symbols_F77=yes
13785 if test "$aix_use_runtimelinking" = yes; then
13786 # Warning - without using the other runtime loading flags (-brtl),
13787 # -berok will link without error, but may produce a broken library.
13788 allow_undefined_flag_F77='-berok'
13789 # Determine the default libpath from the value encoded in an empty executable.
13790 cat >conftest.$ac_ext <<_ACEOF
13791 program main
13792
13793 end
13794_ACEOF
13795rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000013796if { (ac_try="$ac_link"
13797case "(($ac_try" in
13798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13799 *) ac_try_echo=$ac_try;;
13800esac
13801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000013803 ac_status=$?
13804 grep -v '^ *+' conftest.er1 >conftest.err
13805 rm -f conftest.er1
13806 cat conftest.err >&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000013808 (exit $ac_status); } && {
13809 test -z "$ac_f77_werror_flag" ||
13810 test ! -s conftest.err
13811 } && test -s conftest$ac_exeext &&
13812 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013813
13814aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13815}'`
13816# Check for a 64-bit object if we didn't find anything.
13817if 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; }
13818}'`; fi
13819else
13820 echo "$as_me: failed program was:" >&5
13821sed 's/^/| /' conftest.$ac_ext >&5
13822
mlcreech94984912008-03-04 19:03:08 +000013823
a.rottmann9bc8b932004-02-29 15:18:31 +000013824fi
mlcreech94984912008-03-04 19:03:08 +000013825
13826rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +000013827 conftest$ac_exeext conftest.$ac_ext
13828if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13829
13830 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
vapier7f19c022007-02-17 14:46:31 +000013831 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"
a.rottmann9bc8b932004-02-29 15:18:31 +000013832 else
13833 if test "$host_cpu" = ia64; then
13834 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13835 allow_undefined_flag_F77="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +000013836 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"
a.rottmann9bc8b932004-02-29 15:18:31 +000013837 else
13838 # Determine the default libpath from the value encoded in an empty executable.
13839 cat >conftest.$ac_ext <<_ACEOF
13840 program main
13841
13842 end
13843_ACEOF
13844rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000013845if { (ac_try="$ac_link"
13846case "(($ac_try" in
13847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13848 *) ac_try_echo=$ac_try;;
13849esac
13850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13851 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000013852 ac_status=$?
13853 grep -v '^ *+' conftest.er1 >conftest.err
13854 rm -f conftest.er1
13855 cat conftest.err >&5
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000013857 (exit $ac_status); } && {
13858 test -z "$ac_f77_werror_flag" ||
13859 test ! -s conftest.err
13860 } && test -s conftest$ac_exeext &&
13861 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013862
13863aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13864}'`
13865# Check for a 64-bit object if we didn't find anything.
13866if 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; }
13867}'`; fi
13868else
13869 echo "$as_me: failed program was:" >&5
13870sed 's/^/| /' conftest.$ac_ext >&5
13871
mlcreech94984912008-03-04 19:03:08 +000013872
a.rottmann9bc8b932004-02-29 15:18:31 +000013873fi
mlcreech94984912008-03-04 19:03:08 +000013874
13875rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +000013876 conftest$ac_exeext conftest.$ac_ext
13877if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13878
13879 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13880 # Warning - without using the other run time loading flags,
13881 # -berok will link without error, but may produce a broken library.
13882 no_undefined_flag_F77=' ${wl}-bernotok'
13883 allow_undefined_flag_F77=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +000013884 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +000013885 whole_archive_flag_spec_F77='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +000013886 archive_cmds_need_lc_F77=yes
vapier7f19c022007-02-17 14:46:31 +000013887 # This is similar to how AIX traditionally builds its shared libraries.
13888 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000013889 fi
13890 fi
13891 ;;
13892
13893 amigaos*)
13894 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)'
13895 hardcode_libdir_flag_spec_F77='-L$libdir'
13896 hardcode_minus_L_F77=yes
13897 # see comment about different semantics on the GNU ld section
13898 ld_shlibs_F77=no
13899 ;;
13900
vapier7f19c022007-02-17 14:46:31 +000013901 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013902 export_dynamic_flag_spec_F77=-rdynamic
13903 ;;
13904
13905 cygwin* | mingw* | pw32*)
13906 # When not using gcc, we currently assume that we are using
13907 # Microsoft Visual C++.
13908 # hardcode_libdir_flag_spec is actually meaningless, as there is
13909 # no search path for DLLs.
13910 hardcode_libdir_flag_spec_F77=' '
13911 allow_undefined_flag_F77=unsupported
13912 # Tell ltmain to make .lib files, not .a files.
13913 libext=lib
13914 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +000013915 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000013916 # FIXME: Setting linknames here is a bad hack.
13917 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13918 # The linker will automatically build a .lib file if we build a DLL.
13919 old_archive_From_new_cmds_F77='true'
13920 # FIXME: Should let the user specify the lib program.
13921 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
vapier7f19c022007-02-17 14:46:31 +000013922 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
a.rottmann9bc8b932004-02-29 15:18:31 +000013923 enable_shared_with_static_runtimes_F77=yes
13924 ;;
13925
13926 darwin* | rhapsody*)
vapier7f19c022007-02-17 14:46:31 +000013927 case $host_os in
13928 rhapsody* | darwin1.[012])
13929 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13930 ;;
13931 *) # Darwin 1.3 on
13932 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13933 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13934 else
13935 case ${MACOSX_DEPLOYMENT_TARGET} in
13936 10.[012])
13937 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13938 ;;
13939 10.*)
13940 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13941 ;;
13942 esac
13943 fi
13944 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013945 esac
vapier7f19c022007-02-17 14:46:31 +000013946 archive_cmds_need_lc_F77=no
a.rottmann9bc8b932004-02-29 15:18:31 +000013947 hardcode_direct_F77=no
13948 hardcode_automatic_F77=yes
13949 hardcode_shlibpath_var_F77=unsupported
vapier7f19c022007-02-17 14:46:31 +000013950 whole_archive_flag_spec_F77=''
a.rottmann9bc8b932004-02-29 15:18:31 +000013951 link_all_deplibs_F77=yes
vapier7f19c022007-02-17 14:46:31 +000013952 if test "$GCC" = yes ; then
13953 output_verbose_link_cmd='echo'
13954 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13955 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13956 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13957 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}'
13958 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}'
a.rottmann9bc8b932004-02-29 15:18:31 +000013959 else
vapier7f19c022007-02-17 14:46:31 +000013960 case $cc_basename in
13961 xlc*)
13962 output_verbose_link_cmd='echo'
13963 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13964 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13965 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13966 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}'
13967 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}'
13968 ;;
13969 *)
13970 ld_shlibs_F77=no
13971 ;;
13972 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000013973 fi
13974 ;;
13975
13976 dgux*)
13977 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13978 hardcode_libdir_flag_spec_F77='-L$libdir'
13979 hardcode_shlibpath_var_F77=no
13980 ;;
13981
13982 freebsd1*)
13983 ld_shlibs_F77=no
13984 ;;
13985
13986 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13987 # support. Future versions do this automatically, but an explicit c++rt0.o
13988 # does not break anything, and helps significantly (at the cost of a little
13989 # extra space).
13990 freebsd2.2*)
13991 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13992 hardcode_libdir_flag_spec_F77='-R$libdir'
13993 hardcode_direct_F77=yes
13994 hardcode_shlibpath_var_F77=no
13995 ;;
13996
13997 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13998 freebsd2*)
13999 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14000 hardcode_direct_F77=yes
14001 hardcode_minus_L_F77=yes
14002 hardcode_shlibpath_var_F77=no
14003 ;;
14004
14005 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
vapier7f19c022007-02-17 14:46:31 +000014006 freebsd* | kfreebsd*-gnu | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014007 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14008 hardcode_libdir_flag_spec_F77='-R$libdir'
14009 hardcode_direct_F77=yes
14010 hardcode_shlibpath_var_F77=no
14011 ;;
14012
14013 hpux9*)
14014 if test "$GCC" = yes; then
14015 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'
14016 else
14017 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'
14018 fi
14019 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14020 hardcode_libdir_separator_F77=:
14021 hardcode_direct_F77=yes
14022
14023 # hardcode_minus_L: Not really in the search PATH,
14024 # but as the default location of the library.
14025 hardcode_minus_L_F77=yes
14026 export_dynamic_flag_spec_F77='${wl}-E'
14027 ;;
14028
vapier7f19c022007-02-17 14:46:31 +000014029 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014030 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +000014031 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14032 else
14033 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14034 fi
14035 if test "$with_gnu_ld" = no; then
14036 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14037 hardcode_libdir_separator_F77=:
14038
14039 hardcode_direct_F77=yes
14040 export_dynamic_flag_spec_F77='${wl}-E'
14041
14042 # hardcode_minus_L: Not really in the search PATH,
14043 # but as the default location of the library.
14044 hardcode_minus_L_F77=yes
14045 fi
14046 ;;
14047
14048 hpux11*)
14049 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14050 case $host_cpu in
14051 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014052 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14053 ;;
vapier7f19c022007-02-17 14:46:31 +000014054 ia64*)
14055 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14056 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000014057 *)
14058 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14059 ;;
14060 esac
14061 else
vapier7f19c022007-02-17 14:46:31 +000014062 case $host_cpu in
14063 hppa*64*)
14064 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14065 ;;
14066 ia64*)
14067 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000014068 ;;
14069 *)
vapier7f19c022007-02-17 14:46:31 +000014070 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000014071 ;;
14072 esac
14073 fi
14074 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +000014075 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14076 hardcode_libdir_separator_F77=:
a.rottmann9bc8b932004-02-29 15:18:31 +000014077
vapier7f19c022007-02-17 14:46:31 +000014078 case $host_cpu in
14079 hppa*64*|ia64*)
14080 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14081 hardcode_direct_F77=no
14082 hardcode_shlibpath_var_F77=no
a.rottmann9bc8b932004-02-29 15:18:31 +000014083 ;;
14084 *)
a.rottmann9bc8b932004-02-29 15:18:31 +000014085 hardcode_direct_F77=yes
14086 export_dynamic_flag_spec_F77='${wl}-E'
14087
14088 # hardcode_minus_L: Not really in the search PATH,
14089 # but as the default location of the library.
14090 hardcode_minus_L_F77=yes
14091 ;;
14092 esac
14093 fi
14094 ;;
14095
14096 irix5* | irix6* | nonstopux*)
14097 if test "$GCC" = yes; then
14098 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'
14099 else
14100 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'
14101 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14102 fi
14103 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14104 hardcode_libdir_separator_F77=:
14105 link_all_deplibs_F77=yes
14106 ;;
14107
vapier7f19c022007-02-17 14:46:31 +000014108 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014109 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14110 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14111 else
14112 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14113 fi
14114 hardcode_libdir_flag_spec_F77='-R$libdir'
14115 hardcode_direct_F77=yes
14116 hardcode_shlibpath_var_F77=no
14117 ;;
14118
14119 newsos6)
14120 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14121 hardcode_direct_F77=yes
14122 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14123 hardcode_libdir_separator_F77=:
14124 hardcode_shlibpath_var_F77=no
14125 ;;
14126
14127 openbsd*)
14128 hardcode_direct_F77=yes
14129 hardcode_shlibpath_var_F77=no
14130 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14131 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +000014132 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +000014133 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14134 export_dynamic_flag_spec_F77='${wl}-E'
14135 else
14136 case $host_os in
14137 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14138 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14139 hardcode_libdir_flag_spec_F77='-R$libdir'
14140 ;;
14141 *)
14142 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14143 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14144 ;;
14145 esac
14146 fi
14147 ;;
14148
14149 os2*)
14150 hardcode_libdir_flag_spec_F77='-L$libdir'
14151 hardcode_minus_L_F77=yes
14152 allow_undefined_flag_F77=unsupported
14153 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'
14154 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14155 ;;
14156
14157 osf3*)
14158 if test "$GCC" = yes; then
14159 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14160 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'
14161 else
14162 allow_undefined_flag_F77=' -expect_unresolved \*'
14163 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'
14164 fi
14165 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14166 hardcode_libdir_separator_F77=:
14167 ;;
14168
14169 osf4* | osf5*) # as osf3* with the addition of -msym flag
14170 if test "$GCC" = yes; then
14171 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14172 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'
14173 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14174 else
14175 allow_undefined_flag_F77=' -expect_unresolved \*'
14176 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'
14177 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~
vapier7f19c022007-02-17 14:46:31 +000014178 $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'
a.rottmann9bc8b932004-02-29 15:18:31 +000014179
14180 # Both c and cxx compiler support -rpath directly
14181 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14182 fi
14183 hardcode_libdir_separator_F77=:
14184 ;;
14185
a.rottmann9bc8b932004-02-29 15:18:31 +000014186 solaris*)
14187 no_undefined_flag_F77=' -z text'
14188 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000014189 wlarc='${wl}'
a.rottmann9bc8b932004-02-29 15:18:31 +000014190 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14191 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14192 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14193 else
vapier7f19c022007-02-17 14:46:31 +000014194 wlarc=''
a.rottmann9bc8b932004-02-29 15:18:31 +000014195 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14196 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14197 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14198 fi
14199 hardcode_libdir_flag_spec_F77='-R$libdir'
14200 hardcode_shlibpath_var_F77=no
14201 case $host_os in
14202 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +000014203 *)
14204 # The compiler driver will combine linker options so we
14205 # cannot just pass the convience library names through
14206 # without $wl, iff we do not link with $LD.
14207 # Luckily, gcc supports the same syntax we need for Sun Studio.
14208 # Supported since Solaris 2.6 (maybe 2.5.1?)
14209 case $wlarc in
14210 '')
14211 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14212 *)
14213 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' ;;
14214 esac ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000014215 esac
14216 link_all_deplibs_F77=yes
14217 ;;
14218
14219 sunos4*)
14220 if test "x$host_vendor" = xsequent; then
14221 # Use $CC to link under sequent, because it throws in some extra .o
14222 # files that make .init and .fini sections work.
14223 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14224 else
14225 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14226 fi
14227 hardcode_libdir_flag_spec_F77='-L$libdir'
14228 hardcode_direct_F77=yes
14229 hardcode_minus_L_F77=yes
14230 hardcode_shlibpath_var_F77=no
14231 ;;
14232
14233 sysv4)
14234 case $host_vendor in
14235 sni)
14236 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14237 hardcode_direct_F77=yes # is this really true???
14238 ;;
14239 siemens)
14240 ## LD is ld it makes a PLAMLIB
14241 ## CC just makes a GrossModule.
14242 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14243 reload_cmds_F77='$CC -r -o $output$reload_objs'
14244 hardcode_direct_F77=no
14245 ;;
14246 motorola)
14247 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14248 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14249 ;;
14250 esac
14251 runpath_var='LD_RUN_PATH'
14252 hardcode_shlibpath_var_F77=no
14253 ;;
14254
14255 sysv4.3*)
14256 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14257 hardcode_shlibpath_var_F77=no
14258 export_dynamic_flag_spec_F77='-Bexport'
14259 ;;
14260
14261 sysv4*MP*)
14262 if test -d /usr/nec; then
14263 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14264 hardcode_shlibpath_var_F77=no
14265 runpath_var=LD_RUN_PATH
14266 hardcode_runpath_var=yes
14267 ld_shlibs_F77=yes
14268 fi
14269 ;;
14270
vapier7f19c022007-02-17 14:46:31 +000014271 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14272 no_undefined_flag_F77='${wl}-z,text'
14273 archive_cmds_need_lc_F77=no
a.rottmann9bc8b932004-02-29 15:18:31 +000014274 hardcode_shlibpath_var_F77=no
vapier7f19c022007-02-17 14:46:31 +000014275 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +000014276
a.rottmann9bc8b932004-02-29 15:18:31 +000014277 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000014278 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14279 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000014280 else
vapier7f19c022007-02-17 14:46:31 +000014281 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14282 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000014283 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000014284 ;;
14285
vapier7f19c022007-02-17 14:46:31 +000014286 sysv5* | sco3.2v5* | sco5v6*)
14287 # Note: We can NOT use -z defs as we might desire, because we do not
14288 # link with -lc, and that would cause any symbols used from libc to
14289 # always be unresolved, which means just about no library would
14290 # ever link correctly. If we're not using GNU ld we use -z text
14291 # though, which does catch some bad symbols but isn't as heavy-handed
14292 # as -z defs.
14293 no_undefined_flag_F77='${wl}-z,text'
14294 allow_undefined_flag_F77='${wl}-z,nodefs'
14295 archive_cmds_need_lc_F77=no
a.rottmann9bc8b932004-02-29 15:18:31 +000014296 hardcode_shlibpath_var_F77=no
vapier7f19c022007-02-17 14:46:31 +000014297 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14298 hardcode_libdir_separator_F77=':'
14299 link_all_deplibs_F77=yes
14300 export_dynamic_flag_spec_F77='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +000014301 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +000014302
14303 if test "$GCC" = yes; then
14304 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14305 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14306 else
14307 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14308 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14309 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000014310 ;;
14311
14312 uts4*)
14313 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14314 hardcode_libdir_flag_spec_F77='-L$libdir'
14315 hardcode_shlibpath_var_F77=no
14316 ;;
14317
14318 *)
14319 ld_shlibs_F77=no
14320 ;;
14321 esac
14322 fi
14323
mlcreech94984912008-03-04 19:03:08 +000014324{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14325echo "${ECHO_T}$ld_shlibs_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000014326test "$ld_shlibs_F77" = no && can_build_shared=no
14327
a.rottmann9bc8b932004-02-29 15:18:31 +000014328#
14329# Do we need to explicitly link libc?
14330#
14331case "x$archive_cmds_need_lc_F77" in
14332x|xyes)
14333 # Assume -lc should be added
14334 archive_cmds_need_lc_F77=yes
14335
14336 if test "$enable_shared" = yes && test "$GCC" = yes; then
14337 case $archive_cmds_F77 in
14338 *'~'*)
14339 # FIXME: we may have to deal with multi-command sequences.
14340 ;;
14341 '$CC '*)
14342 # Test whether the compiler implicitly links with -lc since on some
14343 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14344 # to ld, don't add -lc before -lgcc.
mlcreech94984912008-03-04 19:03:08 +000014345 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14346echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000014347 $rm conftest*
14348 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14349
14350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14351 (eval $ac_compile) 2>&5
14352 ac_status=$?
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); } 2>conftest.err; then
14355 soname=conftest
14356 lib=conftest
14357 libobjs=conftest.$ac_objext
14358 deplibs=
14359 wl=$lt_prog_compiler_wl_F77
vapier7f19c022007-02-17 14:46:31 +000014360 pic_flag=$lt_prog_compiler_pic_F77
a.rottmann9bc8b932004-02-29 15:18:31 +000014361 compiler_flags=-v
14362 linker_flags=-v
14363 verstring=
14364 output_objdir=.
14365 libname=conftest
14366 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14367 allow_undefined_flag_F77=
14368 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14369 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14370 ac_status=$?
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); }
14373 then
14374 archive_cmds_need_lc_F77=no
14375 else
14376 archive_cmds_need_lc_F77=yes
14377 fi
14378 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14379 else
14380 cat conftest.err 1>&5
14381 fi
14382 $rm conftest*
mlcreech94984912008-03-04 19:03:08 +000014383 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14384echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000014385 ;;
14386 esac
14387 fi
14388 ;;
14389esac
14390
mlcreech94984912008-03-04 19:03:08 +000014391{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14392echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000014393library_names_spec=
14394libname_spec='lib$name'
14395soname_spec=
vapier7f19c022007-02-17 14:46:31 +000014396shrext_cmds=".so"
a.rottmann9bc8b932004-02-29 15:18:31 +000014397postinstall_cmds=
14398postuninstall_cmds=
14399finish_cmds=
14400finish_eval=
14401shlibpath_var=
14402shlibpath_overrides_runpath=unknown
14403version_type=none
14404dynamic_linker="$host_os ld.so"
14405sys_lib_dlsearch_path_spec="/lib /usr/lib"
14406if test "$GCC" = yes; then
14407 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14408 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14409 # if the path contains ";" then we assume it to be the separator
14410 # otherwise default to the standard path separator (i.e. ":") - it is
14411 # assumed that no part of a normal pathname contains ";" but that should
14412 # okay in the real world where ";" in dirpaths is itself problematic.
14413 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14414 else
14415 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14416 fi
14417else
14418 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14419fi
14420need_lib_prefix=unknown
14421hardcode_into_libs=no
14422
14423# when you set need_version to no, make sure it does not cause -set_version
14424# flags to be left without arguments
14425need_version=unknown
14426
14427case $host_os in
14428aix3*)
14429 version_type=linux
14430 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14431 shlibpath_var=LIBPATH
14432
14433 # AIX 3 has no versioning support, so we append a major version to the name.
14434 soname_spec='${libname}${release}${shared_ext}$major'
14435 ;;
14436
14437aix4* | aix5*)
14438 version_type=linux
14439 need_lib_prefix=no
14440 need_version=no
14441 hardcode_into_libs=yes
14442 if test "$host_cpu" = ia64; then
14443 # AIX 5 supports IA64
14444 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14445 shlibpath_var=LD_LIBRARY_PATH
14446 else
14447 # With GCC up to 2.95.x, collect2 would create an import file
14448 # for dependence libraries. The import file would start with
14449 # the line `#! .'. This would cause the generated library to
14450 # depend on `.', always an invalid library. This was fixed in
14451 # development snapshots of GCC prior to 3.0.
14452 case $host_os in
14453 aix4 | aix4.[01] | aix4.[01].*)
14454 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14455 echo ' yes '
14456 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14457 :
14458 else
14459 can_build_shared=no
14460 fi
14461 ;;
14462 esac
14463 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14464 # soname into executable. Probably we can add versioning support to
14465 # collect2, so additional links can be useful in future.
14466 if test "$aix_use_runtimelinking" = yes; then
14467 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14468 # instead of lib<name>.a to let people know that these are not
14469 # typical AIX shared libraries.
14470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14471 else
14472 # We preserve .a as extension for shared libraries through AIX4.2
14473 # and later when we are not doing run time linking.
14474 library_names_spec='${libname}${release}.a $libname.a'
14475 soname_spec='${libname}${release}${shared_ext}$major'
14476 fi
14477 shlibpath_var=LIBPATH
14478 fi
14479 ;;
14480
14481amigaos*)
14482 library_names_spec='$libname.ixlibrary $libname.a'
14483 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14484 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'
14485 ;;
14486
14487beos*)
14488 library_names_spec='${libname}${shared_ext}'
14489 dynamic_linker="$host_os ld.so"
14490 shlibpath_var=LIBRARY_PATH
14491 ;;
14492
vapier7f19c022007-02-17 14:46:31 +000014493bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014494 version_type=linux
14495 need_version=no
14496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14497 soname_spec='${libname}${release}${shared_ext}$major'
14498 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14499 shlibpath_var=LD_LIBRARY_PATH
14500 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14501 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14502 # the default ld.so.conf also contains /usr/contrib/lib and
14503 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14504 # libtool to hard-code these into programs
14505 ;;
14506
14507cygwin* | mingw* | pw32*)
14508 version_type=windows
vapier7f19c022007-02-17 14:46:31 +000014509 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000014510 need_version=no
14511 need_lib_prefix=no
14512
14513 case $GCC,$host_os in
14514 yes,cygwin* | yes,mingw* | yes,pw32*)
14515 library_names_spec='$libname.dll.a'
14516 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14517 postinstall_cmds='base_file=`basename \${file}`~
14518 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14519 dldir=$destdir/`dirname \$dlpath`~
14520 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +000014521 $install_prog $dir/$dlname \$dldir/$dlname~
14522 chmod a+x \$dldir/$dlname'
a.rottmann9bc8b932004-02-29 15:18:31 +000014523 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14524 dlpath=$dir/\$dldll~
14525 $rm \$dlpath'
14526 shlibpath_overrides_runpath=yes
14527
14528 case $host_os in
14529 cygwin*)
14530 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14531 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14532 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14533 ;;
14534 mingw*)
14535 # MinGW DLLs use traditional 'lib' prefix
14536 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14537 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14538 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14539 # It is most probably a Windows format PATH printed by
14540 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14541 # path with ; separators, and with drive letters. We can handle the
14542 # drive letters (cygwin fileutils understands them), so leave them,
14543 # especially as we might pass files found there to a mingw objdump,
14544 # which wouldn't understand a cygwinified path. Ahh.
14545 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14546 else
14547 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14548 fi
14549 ;;
14550 pw32*)
14551 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +000014552 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
a.rottmann9bc8b932004-02-29 15:18:31 +000014553 ;;
14554 esac
14555 ;;
14556
vapier7f19c022007-02-17 14:46:31 +000014557 linux*)
14558 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14559 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14560 supports_anon_versioning=no
14561 case `$LD -v 2>/dev/null` in
14562 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14563 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14564 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14565 *\ 2.11.*) ;; # other 2.11 versions
14566 *) supports_anon_versioning=yes ;;
14567 esac
14568 if test $supports_anon_versioning = yes; then
14569 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14570cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14571$echo "local: *; };" >> $output_objdir/$libname.ver~
14572 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14573 else
14574 $archive_expsym_cmds="$archive_cmds"
14575 fi
14576 else
14577 ld_shlibs=no
14578 fi
14579 ;;
14580
a.rottmann9bc8b932004-02-29 15:18:31 +000014581 *)
14582 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14583 ;;
14584 esac
14585 dynamic_linker='Win32 ld.exe'
14586 # FIXME: first we should search . and the directory the executable is in
14587 shlibpath_var=PATH
14588 ;;
14589
14590darwin* | rhapsody*)
14591 dynamic_linker="$host_os dyld"
14592 version_type=darwin
14593 need_lib_prefix=no
14594 need_version=no
14595 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14596 soname_spec='${libname}${release}${major}$shared_ext'
14597 shlibpath_overrides_runpath=yes
14598 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +000014599 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
a.rottmann9bc8b932004-02-29 15:18:31 +000014600 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14601 if test "$GCC" = yes; then
14602 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"`
14603 else
14604 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14605 fi
14606 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14607 ;;
14608
14609dgux*)
14610 version_type=linux
14611 need_lib_prefix=no
14612 need_version=no
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14614 soname_spec='${libname}${release}${shared_ext}$major'
14615 shlibpath_var=LD_LIBRARY_PATH
14616 ;;
14617
14618freebsd1*)
14619 dynamic_linker=no
14620 ;;
14621
14622kfreebsd*-gnu)
14623 version_type=linux
14624 need_lib_prefix=no
14625 need_version=no
14626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14627 soname_spec='${libname}${release}${shared_ext}$major'
14628 shlibpath_var=LD_LIBRARY_PATH
14629 shlibpath_overrides_runpath=no
14630 hardcode_into_libs=yes
14631 dynamic_linker='GNU ld.so'
14632 ;;
14633
vapier7f19c022007-02-17 14:46:31 +000014634freebsd* | dragonfly*)
14635 # DragonFly does not have aout. When/if they implement a new
14636 # versioning mechanism, adjust this.
14637 if test -x /usr/bin/objformat; then
14638 objformat=`/usr/bin/objformat`
14639 else
14640 case $host_os in
14641 freebsd[123]*) objformat=aout ;;
14642 *) objformat=elf ;;
14643 esac
14644 fi
14645 # Handle Gentoo/FreeBSD as it was Linux
14646 case $host_vendor in
14647 gentoo)
14648 version_type=linux ;;
14649 *)
14650 version_type=freebsd-$objformat ;;
14651 esac
14652
a.rottmann9bc8b932004-02-29 15:18:31 +000014653 case $version_type in
14654 freebsd-elf*)
14655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14656 need_version=no
14657 need_lib_prefix=no
14658 ;;
14659 freebsd-*)
14660 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14661 need_version=yes
14662 ;;
vapier7f19c022007-02-17 14:46:31 +000014663 linux)
14664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14665 soname_spec='${libname}${release}${shared_ext}$major'
14666 need_lib_prefix=no
14667 need_version=no
14668 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000014669 esac
14670 shlibpath_var=LD_LIBRARY_PATH
14671 case $host_os in
14672 freebsd2*)
14673 shlibpath_overrides_runpath=yes
14674 ;;
vapier7f19c022007-02-17 14:46:31 +000014675 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014676 shlibpath_overrides_runpath=yes
14677 hardcode_into_libs=yes
14678 ;;
vapier7f19c022007-02-17 14:46:31 +000014679 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14680 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a.rottmann9bc8b932004-02-29 15:18:31 +000014681 shlibpath_overrides_runpath=no
14682 hardcode_into_libs=yes
14683 ;;
vapier7f19c022007-02-17 14:46:31 +000014684 freebsd*) # from 4.6 on
14685 shlibpath_overrides_runpath=yes
14686 hardcode_into_libs=yes
14687 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000014688 esac
14689 ;;
14690
14691gnu*)
14692 version_type=linux
14693 need_lib_prefix=no
14694 need_version=no
14695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14696 soname_spec='${libname}${release}${shared_ext}$major'
14697 shlibpath_var=LD_LIBRARY_PATH
14698 hardcode_into_libs=yes
14699 ;;
14700
14701hpux9* | hpux10* | hpux11*)
14702 # Give a soname corresponding to the major version so that dld.sl refuses to
14703 # link against other versions.
14704 version_type=sunos
14705 need_lib_prefix=no
14706 need_version=no
vapier7f19c022007-02-17 14:46:31 +000014707 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000014708 ia64*)
vapier7f19c022007-02-17 14:46:31 +000014709 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +000014710 hardcode_into_libs=yes
14711 dynamic_linker="$host_os dld.so"
14712 shlibpath_var=LD_LIBRARY_PATH
14713 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14715 soname_spec='${libname}${release}${shared_ext}$major'
14716 if test "X$HPUX_IA64_MODE" = X32; then
14717 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14718 else
14719 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14720 fi
14721 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14722 ;;
14723 hppa*64*)
vapier7f19c022007-02-17 14:46:31 +000014724 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000014725 hardcode_into_libs=yes
14726 dynamic_linker="$host_os dld.sl"
14727 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14728 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14730 soname_spec='${libname}${release}${shared_ext}$major'
14731 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14732 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14733 ;;
14734 *)
vapier7f19c022007-02-17 14:46:31 +000014735 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000014736 dynamic_linker="$host_os dld.sl"
14737 shlibpath_var=SHLIB_PATH
14738 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14740 soname_spec='${libname}${release}${shared_ext}$major'
14741 ;;
14742 esac
14743 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14744 postinstall_cmds='chmod 555 $lib'
14745 ;;
14746
vapier7f19c022007-02-17 14:46:31 +000014747interix3*)
14748 version_type=linux
14749 need_lib_prefix=no
14750 need_version=no
14751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14752 soname_spec='${libname}${release}${shared_ext}$major'
14753 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14754 shlibpath_var=LD_LIBRARY_PATH
14755 shlibpath_overrides_runpath=no
14756 hardcode_into_libs=yes
14757 ;;
14758
a.rottmann9bc8b932004-02-29 15:18:31 +000014759irix5* | irix6* | nonstopux*)
14760 case $host_os in
14761 nonstopux*) version_type=nonstopux ;;
14762 *)
14763 if test "$lt_cv_prog_gnu_ld" = yes; then
14764 version_type=linux
14765 else
14766 version_type=irix
14767 fi ;;
14768 esac
14769 need_lib_prefix=no
14770 need_version=no
14771 soname_spec='${libname}${release}${shared_ext}$major'
14772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14773 case $host_os in
14774 irix5* | nonstopux*)
14775 libsuff= shlibsuff=
14776 ;;
14777 *)
14778 case $LD in # libtool.m4 will add one of these switches to LD
14779 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14780 libsuff= shlibsuff= libmagic=32-bit;;
14781 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14782 libsuff=32 shlibsuff=N32 libmagic=N32;;
14783 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14784 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14785 *) libsuff= shlibsuff= libmagic=never-match;;
14786 esac
14787 ;;
14788 esac
14789 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14790 shlibpath_overrides_runpath=no
14791 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14792 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14793 hardcode_into_libs=yes
14794 ;;
14795
14796# No shared lib support for Linux oldld, aout, or coff.
14797linux*oldld* | linux*aout* | linux*coff*)
14798 dynamic_linker=no
14799 ;;
14800
14801# This must be Linux ELF.
14802linux*)
14803 version_type=linux
14804 need_lib_prefix=no
14805 need_version=no
14806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14807 soname_spec='${libname}${release}${shared_ext}$major'
14808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14809 shlibpath_var=LD_LIBRARY_PATH
14810 shlibpath_overrides_runpath=no
14811 # This implies no fast_install, which is unacceptable.
14812 # Some rework will be needed to allow for fast_install
14813 # before this can be enabled.
14814 hardcode_into_libs=yes
14815
14816 # Append ld.so.conf contents to the search path
14817 if test -f /etc/ld.so.conf; then
vapier7f19c022007-02-17 14:46:31 +000014818 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' ' '`
14819 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +000014820 fi
14821
14822 # We used to test for /lib/ld.so.1 and disable shared libraries on
14823 # powerpc, because MkLinux only supported shared libraries with the
14824 # GNU dynamic linker. Since this was broken with cross compilers,
14825 # most powerpc-linux boxes support dynamic linking these days and
14826 # people can always --disable-shared, the test was removed, and we
14827 # assume the GNU/Linux dynamic linker is in use.
14828 dynamic_linker='GNU/Linux ld.so'
14829 ;;
14830
14831knetbsd*-gnu)
14832 version_type=linux
14833 need_lib_prefix=no
14834 need_version=no
14835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14836 soname_spec='${libname}${release}${shared_ext}$major'
14837 shlibpath_var=LD_LIBRARY_PATH
14838 shlibpath_overrides_runpath=no
14839 hardcode_into_libs=yes
14840 dynamic_linker='GNU ld.so'
14841 ;;
14842
14843netbsd*)
14844 version_type=sunos
14845 need_lib_prefix=no
14846 need_version=no
14847 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14850 dynamic_linker='NetBSD (a.out) ld.so'
14851 else
14852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14853 soname_spec='${libname}${release}${shared_ext}$major'
14854 dynamic_linker='NetBSD ld.elf_so'
14855 fi
14856 shlibpath_var=LD_LIBRARY_PATH
14857 shlibpath_overrides_runpath=yes
14858 hardcode_into_libs=yes
14859 ;;
14860
14861newsos6)
14862 version_type=linux
14863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14864 shlibpath_var=LD_LIBRARY_PATH
14865 shlibpath_overrides_runpath=yes
14866 ;;
14867
14868nto-qnx*)
14869 version_type=linux
14870 need_lib_prefix=no
14871 need_version=no
14872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14873 soname_spec='${libname}${release}${shared_ext}$major'
14874 shlibpath_var=LD_LIBRARY_PATH
14875 shlibpath_overrides_runpath=yes
14876 ;;
14877
14878openbsd*)
14879 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +000014880 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +000014881 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +000014882 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14883 case $host_os in
14884 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14885 *) need_version=no ;;
14886 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000014887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14888 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14889 shlibpath_var=LD_LIBRARY_PATH
14890 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14891 case $host_os in
14892 openbsd2.[89] | openbsd2.[89].*)
14893 shlibpath_overrides_runpath=no
14894 ;;
14895 *)
14896 shlibpath_overrides_runpath=yes
14897 ;;
14898 esac
14899 else
14900 shlibpath_overrides_runpath=yes
14901 fi
14902 ;;
14903
14904os2*)
14905 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +000014906 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000014907 need_lib_prefix=no
14908 library_names_spec='$libname${shared_ext} $libname.a'
14909 dynamic_linker='OS/2 ld.exe'
14910 shlibpath_var=LIBPATH
14911 ;;
14912
14913osf3* | osf4* | osf5*)
14914 version_type=osf
14915 need_lib_prefix=no
14916 need_version=no
14917 soname_spec='${libname}${release}${shared_ext}$major'
14918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14919 shlibpath_var=LD_LIBRARY_PATH
14920 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14921 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14922 ;;
14923
a.rottmann9bc8b932004-02-29 15:18:31 +000014924solaris*)
14925 version_type=linux
14926 need_lib_prefix=no
14927 need_version=no
14928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14929 soname_spec='${libname}${release}${shared_ext}$major'
14930 shlibpath_var=LD_LIBRARY_PATH
14931 shlibpath_overrides_runpath=yes
14932 hardcode_into_libs=yes
14933 # ldd complains unless libraries are executable
14934 postinstall_cmds='chmod +x $lib'
14935 ;;
14936
14937sunos4*)
14938 version_type=sunos
14939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14940 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14941 shlibpath_var=LD_LIBRARY_PATH
14942 shlibpath_overrides_runpath=yes
14943 if test "$with_gnu_ld" = yes; then
14944 need_lib_prefix=no
14945 fi
14946 need_version=yes
14947 ;;
14948
vapier7f19c022007-02-17 14:46:31 +000014949sysv4 | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014950 version_type=linux
14951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14952 soname_spec='${libname}${release}${shared_ext}$major'
14953 shlibpath_var=LD_LIBRARY_PATH
14954 case $host_vendor in
14955 sni)
14956 shlibpath_overrides_runpath=no
14957 need_lib_prefix=no
14958 export_dynamic_flag_spec='${wl}-Blargedynsym'
14959 runpath_var=LD_RUN_PATH
14960 ;;
14961 siemens)
14962 need_lib_prefix=no
14963 ;;
14964 motorola)
14965 need_lib_prefix=no
14966 need_version=no
14967 shlibpath_overrides_runpath=no
14968 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14969 ;;
14970 esac
14971 ;;
14972
14973sysv4*MP*)
14974 if test -d /usr/nec ;then
14975 version_type=linux
14976 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14977 soname_spec='$libname${shared_ext}.$major'
14978 shlibpath_var=LD_LIBRARY_PATH
14979 fi
14980 ;;
14981
vapier7f19c022007-02-17 14:46:31 +000014982sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14983 version_type=freebsd-elf
14984 need_lib_prefix=no
14985 need_version=no
14986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14987 soname_spec='${libname}${release}${shared_ext}$major'
14988 shlibpath_var=LD_LIBRARY_PATH
14989 hardcode_into_libs=yes
14990 if test "$with_gnu_ld" = yes; then
14991 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14992 shlibpath_overrides_runpath=no
14993 else
14994 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14995 shlibpath_overrides_runpath=yes
14996 case $host_os in
14997 sco3.2v5*)
14998 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14999 ;;
15000 esac
15001 fi
15002 sys_lib_dlsearch_path_spec='/usr/lib'
15003 ;;
15004
a.rottmann9bc8b932004-02-29 15:18:31 +000015005uts4*)
15006 version_type=linux
15007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15008 soname_spec='${libname}${release}${shared_ext}$major'
15009 shlibpath_var=LD_LIBRARY_PATH
15010 ;;
15011
15012*)
15013 dynamic_linker=no
15014 ;;
15015esac
mlcreech94984912008-03-04 19:03:08 +000015016{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15017echo "${ECHO_T}$dynamic_linker" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015018test "$dynamic_linker" = no && can_build_shared=no
15019
vapier7f19c022007-02-17 14:46:31 +000015020variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15021if test "$GCC" = yes; then
15022 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15023fi
15024
mlcreech94984912008-03-04 19:03:08 +000015025{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15026echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015027hardcode_action_F77=
15028if test -n "$hardcode_libdir_flag_spec_F77" || \
vapier7f19c022007-02-17 14:46:31 +000015029 test -n "$runpath_var_F77" || \
15030 test "X$hardcode_automatic_F77" = "Xyes" ; then
a.rottmann9bc8b932004-02-29 15:18:31 +000015031
15032 # We can hardcode non-existant directories.
15033 if test "$hardcode_direct_F77" != no &&
15034 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15035 # have to relink, otherwise we might link with an installed library
15036 # when we should be linking with a yet-to-be-installed one
15037 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15038 test "$hardcode_minus_L_F77" != no; then
15039 # Linking always hardcodes the temporary library directory.
15040 hardcode_action_F77=relink
15041 else
15042 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15043 hardcode_action_F77=immediate
15044 fi
15045else
15046 # We cannot hardcode anything, or else we can only hardcode existing
15047 # directories.
15048 hardcode_action_F77=unsupported
15049fi
mlcreech94984912008-03-04 19:03:08 +000015050{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15051echo "${ECHO_T}$hardcode_action_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015052
15053if test "$hardcode_action_F77" = relink; then
15054 # Fast installation is not supported
15055 enable_fast_install=no
15056elif test "$shlibpath_overrides_runpath" = yes ||
15057 test "$enable_shared" = no; then
15058 # Fast installation is not necessary
15059 enable_fast_install=needless
15060fi
15061
a.rottmann9bc8b932004-02-29 15:18:31 +000015062
15063# The else clause should only fire when bootstrapping the
15064# libtool distribution, otherwise you forgot to ship ltmain.sh
15065# with your package, and you will get complaints that there are
15066# no rules to generate ltmain.sh.
15067if test -f "$ltmain"; then
15068 # See if we are running on zsh, and set the options which allow our commands through
15069 # without removal of \ escapes.
15070 if test -n "${ZSH_VERSION+set}" ; then
15071 setopt NO_GLOB_SUBST
15072 fi
15073 # Now quote all the things that may contain metacharacters while being
15074 # careful not to overquote the AC_SUBSTed values. We take copies of the
15075 # variables and quote the copies for generation of the libtool script.
vapier7f19c022007-02-17 14:46:31 +000015076 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
a.rottmann9bc8b932004-02-29 15:18:31 +000015077 SED SHELL STRIP \
15078 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15079 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15080 deplibs_check_method reload_flag reload_cmds need_locks \
15081 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15082 lt_cv_sys_global_symbol_to_c_name_address \
15083 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15084 old_postinstall_cmds old_postuninstall_cmds \
15085 compiler_F77 \
15086 CC_F77 \
15087 LD_F77 \
15088 lt_prog_compiler_wl_F77 \
15089 lt_prog_compiler_pic_F77 \
15090 lt_prog_compiler_static_F77 \
15091 lt_prog_compiler_no_builtin_flag_F77 \
15092 export_dynamic_flag_spec_F77 \
15093 thread_safe_flag_spec_F77 \
15094 whole_archive_flag_spec_F77 \
15095 enable_shared_with_static_runtimes_F77 \
15096 old_archive_cmds_F77 \
15097 old_archive_from_new_cmds_F77 \
15098 predep_objects_F77 \
15099 postdep_objects_F77 \
15100 predeps_F77 \
15101 postdeps_F77 \
15102 compiler_lib_search_path_F77 \
15103 archive_cmds_F77 \
15104 archive_expsym_cmds_F77 \
15105 postinstall_cmds_F77 \
15106 postuninstall_cmds_F77 \
15107 old_archive_from_expsyms_cmds_F77 \
15108 allow_undefined_flag_F77 \
15109 no_undefined_flag_F77 \
15110 export_symbols_cmds_F77 \
15111 hardcode_libdir_flag_spec_F77 \
15112 hardcode_libdir_flag_spec_ld_F77 \
15113 hardcode_libdir_separator_F77 \
15114 hardcode_automatic_F77 \
15115 module_cmds_F77 \
15116 module_expsym_cmds_F77 \
15117 lt_cv_prog_compiler_c_o_F77 \
15118 exclude_expsyms_F77 \
15119 include_expsyms_F77; do
15120
15121 case $var in
15122 old_archive_cmds_F77 | \
15123 old_archive_from_new_cmds_F77 | \
15124 archive_cmds_F77 | \
15125 archive_expsym_cmds_F77 | \
15126 module_cmds_F77 | \
15127 module_expsym_cmds_F77 | \
15128 old_archive_from_expsyms_cmds_F77 | \
15129 export_symbols_cmds_F77 | \
15130 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15131 postinstall_cmds | postuninstall_cmds | \
15132 old_postinstall_cmds | old_postuninstall_cmds | \
15133 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15134 # Double-quote double-evaled strings.
15135 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15136 ;;
15137 *)
15138 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15139 ;;
15140 esac
15141 done
15142
15143 case $lt_echo in
15144 *'\$0 --fallback-echo"')
15145 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15146 ;;
15147 esac
15148
15149cfgfile="$ofile"
15150
15151 cat <<__EOF__ >> "$cfgfile"
15152# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15153
15154# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15155
15156# Shell to use when invoking shell scripts.
15157SHELL=$lt_SHELL
15158
15159# Whether or not to build shared libraries.
15160build_libtool_libs=$enable_shared
15161
15162# Whether or not to build static libraries.
15163build_old_libs=$enable_static
15164
15165# Whether or not to add -lc for building shared libraries.
15166build_libtool_need_lc=$archive_cmds_need_lc_F77
15167
15168# Whether or not to disallow shared libs when runtime libs are static
15169allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15170
15171# Whether or not to optimize for fast installation.
15172fast_install=$enable_fast_install
15173
15174# The host system.
15175host_alias=$host_alias
15176host=$host
vapier7f19c022007-02-17 14:46:31 +000015177host_os=$host_os
15178
15179# The build system.
15180build_alias=$build_alias
15181build=$build
15182build_os=$build_os
a.rottmann9bc8b932004-02-29 15:18:31 +000015183
15184# An echo program that does not interpret backslashes.
15185echo=$lt_echo
15186
15187# The archiver.
15188AR=$lt_AR
15189AR_FLAGS=$lt_AR_FLAGS
15190
15191# A C compiler.
15192LTCC=$lt_LTCC
15193
vapier7f19c022007-02-17 14:46:31 +000015194# LTCC compiler flags.
15195LTCFLAGS=$lt_LTCFLAGS
15196
a.rottmann9bc8b932004-02-29 15:18:31 +000015197# A language-specific compiler.
15198CC=$lt_compiler_F77
15199
15200# Is the compiler the GNU C compiler?
15201with_gcc=$GCC_F77
15202
15203# An ERE matcher.
15204EGREP=$lt_EGREP
15205
15206# The linker used to build libraries.
15207LD=$lt_LD_F77
15208
15209# Whether we need hard or soft links.
15210LN_S=$lt_LN_S
15211
15212# A BSD-compatible nm program.
15213NM=$lt_NM
15214
15215# A symbol stripping program
15216STRIP=$lt_STRIP
15217
15218# Used to examine libraries when file_magic_cmd begins "file"
15219MAGIC_CMD=$MAGIC_CMD
15220
15221# Used on cygwin: DLL creation program.
15222DLLTOOL="$DLLTOOL"
15223
15224# Used on cygwin: object dumper.
15225OBJDUMP="$OBJDUMP"
15226
15227# Used on cygwin: assembler.
15228AS="$AS"
15229
15230# The name of the directory that contains temporary libtool files.
15231objdir=$objdir
15232
15233# How to create reloadable object files.
15234reload_flag=$lt_reload_flag
15235reload_cmds=$lt_reload_cmds
15236
15237# How to pass a linker flag through the compiler.
15238wl=$lt_lt_prog_compiler_wl_F77
15239
15240# Object file suffix (normally "o").
15241objext="$ac_objext"
15242
15243# Old archive suffix (normally "a").
15244libext="$libext"
15245
15246# Shared library suffix (normally ".so").
vapier7f19c022007-02-17 14:46:31 +000015247shrext_cmds='$shrext_cmds'
a.rottmann9bc8b932004-02-29 15:18:31 +000015248
15249# Executable file suffix (normally "").
15250exeext="$exeext"
15251
15252# Additional compiler flags for building library objects.
15253pic_flag=$lt_lt_prog_compiler_pic_F77
15254pic_mode=$pic_mode
15255
15256# What is the maximum length of a command?
15257max_cmd_len=$lt_cv_sys_max_cmd_len
15258
15259# Does compiler simultaneously support -c and -o options?
15260compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15261
vapier7f19c022007-02-17 14:46:31 +000015262# Must we lock files when doing compilation?
a.rottmann9bc8b932004-02-29 15:18:31 +000015263need_locks=$lt_need_locks
15264
15265# Do we need the lib prefix for modules?
15266need_lib_prefix=$need_lib_prefix
15267
15268# Do we need a version for libraries?
15269need_version=$need_version
15270
15271# Whether dlopen is supported.
15272dlopen_support=$enable_dlopen
15273
15274# Whether dlopen of programs is supported.
15275dlopen_self=$enable_dlopen_self
15276
15277# Whether dlopen of statically linked programs is supported.
15278dlopen_self_static=$enable_dlopen_self_static
15279
15280# Compiler flag to prevent dynamic linking.
15281link_static_flag=$lt_lt_prog_compiler_static_F77
15282
15283# Compiler flag to turn off builtin functions.
15284no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15285
15286# Compiler flag to allow reflexive dlopens.
15287export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15288
15289# Compiler flag to generate shared objects directly from archives.
15290whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15291
15292# Compiler flag to generate thread-safe objects.
15293thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15294
15295# Library versioning type.
15296version_type=$version_type
15297
15298# Format of library name prefix.
15299libname_spec=$lt_libname_spec
15300
15301# List of archive names. First name is the real one, the rest are links.
15302# The last name is the one that the linker finds with -lNAME.
15303library_names_spec=$lt_library_names_spec
15304
15305# The coded name of the library, if different from the real name.
15306soname_spec=$lt_soname_spec
15307
15308# Commands used to build and install an old-style archive.
15309RANLIB=$lt_RANLIB
15310old_archive_cmds=$lt_old_archive_cmds_F77
15311old_postinstall_cmds=$lt_old_postinstall_cmds
15312old_postuninstall_cmds=$lt_old_postuninstall_cmds
15313
15314# Create an old-style archive from a shared archive.
15315old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15316
15317# Create a temporary old-style archive to link instead of a shared archive.
15318old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15319
15320# Commands used to build and install a shared archive.
15321archive_cmds=$lt_archive_cmds_F77
15322archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15323postinstall_cmds=$lt_postinstall_cmds
15324postuninstall_cmds=$lt_postuninstall_cmds
15325
15326# Commands used to build a loadable module (assumed same as above if empty)
15327module_cmds=$lt_module_cmds_F77
15328module_expsym_cmds=$lt_module_expsym_cmds_F77
15329
15330# Commands to strip libraries.
15331old_striplib=$lt_old_striplib
15332striplib=$lt_striplib
15333
15334# Dependencies to place before the objects being linked to create a
15335# shared library.
15336predep_objects=$lt_predep_objects_F77
15337
15338# Dependencies to place after the objects being linked to create a
15339# shared library.
15340postdep_objects=$lt_postdep_objects_F77
15341
15342# Dependencies to place before the objects being linked to create a
15343# shared library.
15344predeps=$lt_predeps_F77
15345
15346# Dependencies to place after the objects being linked to create a
15347# shared library.
15348postdeps=$lt_postdeps_F77
15349
15350# The library search path used internally by the compiler when linking
15351# a shared library.
15352compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15353
15354# Method to check whether dependent libraries are shared objects.
15355deplibs_check_method=$lt_deplibs_check_method
15356
15357# Command to use when deplibs_check_method == file_magic.
15358file_magic_cmd=$lt_file_magic_cmd
15359
15360# Flag that allows shared libraries with undefined symbols to be built.
15361allow_undefined_flag=$lt_allow_undefined_flag_F77
15362
15363# Flag that forces no undefined symbols.
15364no_undefined_flag=$lt_no_undefined_flag_F77
15365
15366# Commands used to finish a libtool library installation in a directory.
15367finish_cmds=$lt_finish_cmds
15368
15369# Same as above, but a single script fragment to be evaled but not shown.
15370finish_eval=$lt_finish_eval
15371
15372# Take the output of nm and produce a listing of raw symbols and C names.
15373global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15374
15375# Transform the output of nm in a proper C declaration
15376global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15377
15378# Transform the output of nm in a C name address pair
15379global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15380
15381# This is the shared library runtime path variable.
15382runpath_var=$runpath_var
15383
15384# This is the shared library path variable.
15385shlibpath_var=$shlibpath_var
15386
15387# Is shlibpath searched before the hard-coded library search path?
15388shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15389
15390# How to hardcode a shared library path into an executable.
15391hardcode_action=$hardcode_action_F77
15392
15393# Whether we should hardcode library paths into libraries.
15394hardcode_into_libs=$hardcode_into_libs
15395
15396# Flag to hardcode \$libdir into a binary during linking.
15397# This must work even if \$libdir does not exist.
15398hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15399
15400# If ld is used when linking, flag to hardcode \$libdir into
15401# a binary during linking. This must work even if \$libdir does
15402# not exist.
15403hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15404
15405# Whether we need a single -rpath flag with a separated argument.
15406hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15407
15408# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15409# resulting binary.
15410hardcode_direct=$hardcode_direct_F77
15411
15412# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15413# resulting binary.
15414hardcode_minus_L=$hardcode_minus_L_F77
15415
15416# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15417# the resulting binary.
15418hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15419
15420# Set to yes if building a shared library automatically hardcodes DIR into the library
15421# and all subsequent libraries and executables linked against it.
15422hardcode_automatic=$hardcode_automatic_F77
15423
15424# Variables whose values should be saved in libtool wrapper scripts and
15425# restored at relink time.
15426variables_saved_for_relink="$variables_saved_for_relink"
15427
15428# Whether libtool must link a program against all its dependency libraries.
15429link_all_deplibs=$link_all_deplibs_F77
15430
15431# Compile-time system search path for libraries
15432sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15433
15434# Run-time system search path for libraries
15435sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15436
15437# Fix the shell variable \$srcfile for the compiler.
15438fix_srcfile_path="$fix_srcfile_path_F77"
15439
15440# Set to yes if exported symbols are required.
15441always_export_symbols=$always_export_symbols_F77
15442
15443# The commands to list exported symbols.
15444export_symbols_cmds=$lt_export_symbols_cmds_F77
15445
15446# The commands to extract the exported symbol list from a shared archive.
15447extract_expsyms_cmds=$lt_extract_expsyms_cmds
15448
15449# Symbols that should not be listed in the preloaded symbols.
15450exclude_expsyms=$lt_exclude_expsyms_F77
15451
15452# Symbols that must always be exported.
15453include_expsyms=$lt_include_expsyms_F77
15454
15455# ### END LIBTOOL TAG CONFIG: $tagname
15456
15457__EOF__
15458
15459
15460else
15461 # If there is no Makefile yet, we rely on a make rule to execute
15462 # `config.status --recheck' to rerun these tests and create the
15463 # libtool script then.
15464 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15465 if test -f "$ltmain_in"; then
15466 test -f Makefile && make "$ltmain"
15467 fi
15468fi
15469
15470
15471ac_ext=c
15472ac_cpp='$CPP $CPPFLAGS'
15473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15475ac_compiler_gnu=$ac_cv_c_compiler_gnu
15476
15477CC="$lt_save_CC"
15478
15479 else
15480 tagname=""
15481 fi
15482 ;;
15483
15484 GCJ)
15485 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15486
15487
a.rottmann9bc8b932004-02-29 15:18:31 +000015488# Source file extension for Java test sources.
15489ac_ext=java
15490
15491# Object file extension for compiled Java test sources.
15492objext=o
15493objext_GCJ=$objext
15494
15495# Code to be used in simple compile tests
15496lt_simple_compile_test_code="class foo {}\n"
15497
15498# Code to be used in simple link tests
vapier7f19c022007-02-17 14:46:31 +000015499lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
a.rottmann9bc8b932004-02-29 15:18:31 +000015500
15501# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15502
15503# If no C compiler was specified, use CC.
15504LTCC=${LTCC-"$CC"}
15505
vapier7f19c022007-02-17 14:46:31 +000015506# If no C compiler flags were specified, use CFLAGS.
15507LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15508
a.rottmann9bc8b932004-02-29 15:18:31 +000015509# Allow CC to be a program name with arguments.
15510compiler=$CC
15511
15512
vapier7f19c022007-02-17 14:46:31 +000015513# save warnings/boilerplate of simple test code
15514ac_outfile=conftest.$ac_objext
15515printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15516eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15517_lt_compiler_boilerplate=`cat conftest.err`
15518$rm conftest*
15519
15520ac_outfile=conftest.$ac_objext
15521printf "$lt_simple_link_test_code" >conftest.$ac_ext
15522eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15523_lt_linker_boilerplate=`cat conftest.err`
15524$rm conftest*
15525
15526
a.rottmann9bc8b932004-02-29 15:18:31 +000015527# Allow CC to be a program name with arguments.
15528lt_save_CC="$CC"
15529CC=${GCJ-"gcj"}
15530compiler=$CC
15531compiler_GCJ=$CC
vapier7f19c022007-02-17 14:46:31 +000015532for cc_temp in $compiler""; do
15533 case $cc_temp in
15534 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15535 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15536 \-*) ;;
15537 *) break;;
15538 esac
15539done
15540cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15541
a.rottmann9bc8b932004-02-29 15:18:31 +000015542
15543# GCJ did not exist at the time GCC didn't implicitly link libc in.
15544archive_cmds_need_lc_GCJ=no
15545
vapier7f19c022007-02-17 14:46:31 +000015546old_archive_cmds_GCJ=$old_archive_cmds
15547
a.rottmann9bc8b932004-02-29 15:18:31 +000015548
15549lt_prog_compiler_no_builtin_flag_GCJ=
15550
15551if test "$GCC" = yes; then
15552 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15553
15554
mlcreech94984912008-03-04 19:03:08 +000015555{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15556echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015557if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15558 echo $ECHO_N "(cached) $ECHO_C" >&6
15559else
15560 lt_cv_prog_compiler_rtti_exceptions=no
15561 ac_outfile=conftest.$ac_objext
15562 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15563 lt_compiler_flag="-fno-rtti -fno-exceptions"
15564 # Insert the option either (1) after the last *FLAGS variable, or
15565 # (2) before a word containing "conftest.", or (3) at the end.
15566 # Note that $ac_compile itself does not contain backslashes and begins
15567 # with a dollar sign (not a hyphen), so the echo should work correctly.
15568 # The option is referenced via a variable to avoid confusing sed.
15569 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000015570 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000015571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15572 -e 's:$: $lt_compiler_flag:'`
mlcreecha4edab02008-03-06 04:14:17 +000015573 (eval echo "\"\$as_me:15573: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000015574 (eval "$lt_compile" 2>conftest.err)
15575 ac_status=$?
15576 cat conftest.err >&5
mlcreecha4edab02008-03-06 04:14:17 +000015577 echo "$as_me:15577: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000015578 if (exit $ac_status) && test -s "$ac_outfile"; then
15579 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +000015580 # So say no if there are warnings other than the usual output.
15581 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15583 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000015584 lt_cv_prog_compiler_rtti_exceptions=yes
15585 fi
15586 fi
15587 $rm conftest*
15588
15589fi
mlcreech94984912008-03-04 19:03:08 +000015590{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15591echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015592
15593if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15594 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15595else
15596 :
15597fi
15598
15599fi
15600
15601lt_prog_compiler_wl_GCJ=
15602lt_prog_compiler_pic_GCJ=
15603lt_prog_compiler_static_GCJ=
15604
mlcreech94984912008-03-04 19:03:08 +000015605{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15606echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015607
15608 if test "$GCC" = yes; then
15609 lt_prog_compiler_wl_GCJ='-Wl,'
15610 lt_prog_compiler_static_GCJ='-static'
15611
15612 case $host_os in
15613 aix*)
15614 # All AIX code is PIC.
15615 if test "$host_cpu" = ia64; then
15616 # AIX 5 now supports IA64 processor
15617 lt_prog_compiler_static_GCJ='-Bstatic'
15618 fi
15619 ;;
15620
15621 amigaos*)
15622 # FIXME: we need at least 68020 code to build shared libraries, but
15623 # adding the `-m68020' flag to GCC prevents building anything better,
15624 # like `-m68040'.
15625 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15626 ;;
15627
15628 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15629 # PIC is the default for these OSes.
15630 ;;
15631
15632 mingw* | pw32* | os2*)
15633 # This hack is so that the source file can tell whether it is being
15634 # built for inclusion in a dll (and should export symbols for example).
15635 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15636 ;;
15637
15638 darwin* | rhapsody*)
15639 # PIC is the default on this platform
15640 # Common symbols not allowed in MH_DYLIB files
15641 lt_prog_compiler_pic_GCJ='-fno-common'
15642 ;;
15643
vapier7f19c022007-02-17 14:46:31 +000015644 interix3*)
15645 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15646 # Instead, we relocate shared libraries at runtime.
15647 ;;
15648
a.rottmann9bc8b932004-02-29 15:18:31 +000015649 msdosdjgpp*)
15650 # Just because we use GCC doesn't mean we suddenly get shared libraries
15651 # on systems that don't support them.
15652 lt_prog_compiler_can_build_shared_GCJ=no
15653 enable_shared=no
15654 ;;
15655
15656 sysv4*MP*)
15657 if test -d /usr/nec; then
15658 lt_prog_compiler_pic_GCJ=-Kconform_pic
15659 fi
15660 ;;
15661
15662 hpux*)
15663 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15664 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +000015665 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000015666 hppa*64*|ia64*)
15667 # +Z the default
15668 ;;
15669 *)
15670 lt_prog_compiler_pic_GCJ='-fPIC'
15671 ;;
15672 esac
15673 ;;
15674
15675 *)
15676 lt_prog_compiler_pic_GCJ='-fPIC'
15677 ;;
15678 esac
15679 else
15680 # PORTME Check for flag to pass linker flags through the system compiler.
15681 case $host_os in
15682 aix*)
15683 lt_prog_compiler_wl_GCJ='-Wl,'
15684 if test "$host_cpu" = ia64; then
15685 # AIX 5 now supports IA64 processor
15686 lt_prog_compiler_static_GCJ='-Bstatic'
15687 else
15688 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15689 fi
15690 ;;
vapier7f19c022007-02-17 14:46:31 +000015691 darwin*)
15692 # PIC is the default on this platform
15693 # Common symbols not allowed in MH_DYLIB files
15694 case $cc_basename in
15695 xlc*)
15696 lt_prog_compiler_pic_GCJ='-qnocommon'
15697 lt_prog_compiler_wl_GCJ='-Wl,'
15698 ;;
15699 esac
15700 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000015701
15702 mingw* | pw32* | os2*)
15703 # This hack is so that the source file can tell whether it is being
15704 # built for inclusion in a dll (and should export symbols for example).
15705 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15706 ;;
15707
15708 hpux9* | hpux10* | hpux11*)
15709 lt_prog_compiler_wl_GCJ='-Wl,'
15710 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15711 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +000015712 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000015713 hppa*64*|ia64*)
15714 # +Z the default
15715 ;;
15716 *)
15717 lt_prog_compiler_pic_GCJ='+Z'
15718 ;;
15719 esac
15720 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15721 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15722 ;;
15723
15724 irix5* | irix6* | nonstopux*)
15725 lt_prog_compiler_wl_GCJ='-Wl,'
15726 # PIC (with -KPIC) is the default.
15727 lt_prog_compiler_static_GCJ='-non_shared'
15728 ;;
15729
15730 newsos6)
15731 lt_prog_compiler_pic_GCJ='-KPIC'
15732 lt_prog_compiler_static_GCJ='-Bstatic'
15733 ;;
15734
15735 linux*)
vapier7f19c022007-02-17 14:46:31 +000015736 case $cc_basename in
a.rottmann9bc8b932004-02-29 15:18:31 +000015737 icc* | ecc*)
15738 lt_prog_compiler_wl_GCJ='-Wl,'
15739 lt_prog_compiler_pic_GCJ='-KPIC'
15740 lt_prog_compiler_static_GCJ='-static'
15741 ;;
vapier7f19c022007-02-17 14:46:31 +000015742 pgcc* | pgf77* | pgf90* | pgf95*)
15743 # Portland Group compilers (*not* the Pentium gcc compiler,
15744 # which looks to be a dead project)
15745 lt_prog_compiler_wl_GCJ='-Wl,'
15746 lt_prog_compiler_pic_GCJ='-fpic'
15747 lt_prog_compiler_static_GCJ='-Bstatic'
15748 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000015749 ccc*)
15750 lt_prog_compiler_wl_GCJ='-Wl,'
15751 # All Alpha code is PIC.
15752 lt_prog_compiler_static_GCJ='-non_shared'
15753 ;;
15754 esac
15755 ;;
15756
15757 osf3* | osf4* | osf5*)
15758 lt_prog_compiler_wl_GCJ='-Wl,'
15759 # All OSF/1 code is PIC.
15760 lt_prog_compiler_static_GCJ='-non_shared'
15761 ;;
15762
a.rottmann9bc8b932004-02-29 15:18:31 +000015763 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +000015764 lt_prog_compiler_pic_GCJ='-KPIC'
15765 lt_prog_compiler_static_GCJ='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +000015766 case $cc_basename in
15767 f77* | f90* | f95*)
15768 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15769 *)
15770 lt_prog_compiler_wl_GCJ='-Wl,';;
15771 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000015772 ;;
15773
15774 sunos4*)
15775 lt_prog_compiler_wl_GCJ='-Qoption ld '
15776 lt_prog_compiler_pic_GCJ='-PIC'
15777 lt_prog_compiler_static_GCJ='-Bstatic'
15778 ;;
15779
vapier7f19c022007-02-17 14:46:31 +000015780 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +000015781 lt_prog_compiler_wl_GCJ='-Wl,'
15782 lt_prog_compiler_pic_GCJ='-KPIC'
15783 lt_prog_compiler_static_GCJ='-Bstatic'
15784 ;;
15785
15786 sysv4*MP*)
15787 if test -d /usr/nec ;then
15788 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15789 lt_prog_compiler_static_GCJ='-Bstatic'
15790 fi
15791 ;;
15792
vapier7f19c022007-02-17 14:46:31 +000015793 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15794 lt_prog_compiler_wl_GCJ='-Wl,'
15795 lt_prog_compiler_pic_GCJ='-KPIC'
15796 lt_prog_compiler_static_GCJ='-Bstatic'
15797 ;;
15798
15799 unicos*)
15800 lt_prog_compiler_wl_GCJ='-Wl,'
15801 lt_prog_compiler_can_build_shared_GCJ=no
15802 ;;
15803
a.rottmann9bc8b932004-02-29 15:18:31 +000015804 uts4*)
15805 lt_prog_compiler_pic_GCJ='-pic'
15806 lt_prog_compiler_static_GCJ='-Bstatic'
15807 ;;
15808
15809 *)
15810 lt_prog_compiler_can_build_shared_GCJ=no
15811 ;;
15812 esac
15813 fi
15814
mlcreech94984912008-03-04 19:03:08 +000015815{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15816echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015817
15818#
15819# Check to make sure the PIC flag actually works.
15820#
15821if test -n "$lt_prog_compiler_pic_GCJ"; then
15822
mlcreech94984912008-03-04 19:03:08 +000015823{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15824echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015825if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15826 echo $ECHO_N "(cached) $ECHO_C" >&6
15827else
15828 lt_prog_compiler_pic_works_GCJ=no
15829 ac_outfile=conftest.$ac_objext
15830 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15831 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15832 # Insert the option either (1) after the last *FLAGS variable, or
15833 # (2) before a word containing "conftest.", or (3) at the end.
15834 # Note that $ac_compile itself does not contain backslashes and begins
15835 # with a dollar sign (not a hyphen), so the echo should work correctly.
15836 # The option is referenced via a variable to avoid confusing sed.
15837 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000015838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000015839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15840 -e 's:$: $lt_compiler_flag:'`
mlcreecha4edab02008-03-06 04:14:17 +000015841 (eval echo "\"\$as_me:15841: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000015842 (eval "$lt_compile" 2>conftest.err)
15843 ac_status=$?
15844 cat conftest.err >&5
mlcreecha4edab02008-03-06 04:14:17 +000015845 echo "$as_me:15845: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000015846 if (exit $ac_status) && test -s "$ac_outfile"; then
15847 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +000015848 # So say no if there are warnings other than the usual output.
15849 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15850 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15851 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000015852 lt_prog_compiler_pic_works_GCJ=yes
15853 fi
15854 fi
15855 $rm conftest*
15856
15857fi
mlcreech94984912008-03-04 19:03:08 +000015858{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15859echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015860
15861if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15862 case $lt_prog_compiler_pic_GCJ in
15863 "" | " "*) ;;
15864 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15865 esac
15866else
15867 lt_prog_compiler_pic_GCJ=
15868 lt_prog_compiler_can_build_shared_GCJ=no
15869fi
15870
15871fi
vapier7f19c022007-02-17 14:46:31 +000015872case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +000015873 # For platforms which do not support PIC, -DPIC is meaningless:
15874 *djgpp*)
15875 lt_prog_compiler_pic_GCJ=
15876 ;;
15877 *)
15878 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15879 ;;
15880esac
15881
vapier7f19c022007-02-17 14:46:31 +000015882#
15883# Check to make sure the static flag actually works.
15884#
15885wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
mlcreech94984912008-03-04 19:03:08 +000015886{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15887echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +000015888if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15890else
15891 lt_prog_compiler_static_works_GCJ=no
15892 save_LDFLAGS="$LDFLAGS"
15893 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15894 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15895 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15896 # The linker can only warn and ignore the option if not recognized
15897 # So say no if there are warnings
15898 if test -s conftest.err; then
15899 # Append any errors to the config.log.
15900 cat conftest.err 1>&5
15901 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15902 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15903 if diff conftest.exp conftest.er2 >/dev/null; then
15904 lt_prog_compiler_static_works_GCJ=yes
15905 fi
15906 else
15907 lt_prog_compiler_static_works_GCJ=yes
15908 fi
15909 fi
15910 $rm conftest*
15911 LDFLAGS="$save_LDFLAGS"
15912
15913fi
mlcreech94984912008-03-04 19:03:08 +000015914{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15915echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
vapier7f19c022007-02-17 14:46:31 +000015916
15917if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15918 :
15919else
15920 lt_prog_compiler_static_GCJ=
15921fi
15922
15923
mlcreech94984912008-03-04 19:03:08 +000015924{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15925echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015926if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15927 echo $ECHO_N "(cached) $ECHO_C" >&6
15928else
15929 lt_cv_prog_compiler_c_o_GCJ=no
15930 $rm -r conftest 2>/dev/null
15931 mkdir conftest
15932 cd conftest
15933 mkdir out
15934 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15935
15936 lt_compiler_flag="-o out/conftest2.$ac_objext"
15937 # Insert the option either (1) after the last *FLAGS variable, or
15938 # (2) before a word containing "conftest.", or (3) at the end.
15939 # Note that $ac_compile itself does not contain backslashes and begins
15940 # with a dollar sign (not a hyphen), so the echo should work correctly.
15941 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000015942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000015943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15944 -e 's:$: $lt_compiler_flag:'`
mlcreecha4edab02008-03-06 04:14:17 +000015945 (eval echo "\"\$as_me:15945: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000015946 (eval "$lt_compile" 2>out/conftest.err)
15947 ac_status=$?
15948 cat out/conftest.err >&5
mlcreecha4edab02008-03-06 04:14:17 +000015949 echo "$as_me:15949: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000015950 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15951 then
15952 # The compiler can only warn and ignore the option if not recognized
15953 # So say no if there are warnings
vapier7f19c022007-02-17 14:46:31 +000015954 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15955 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15956 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000015957 lt_cv_prog_compiler_c_o_GCJ=yes
15958 fi
15959 fi
vapier7f19c022007-02-17 14:46:31 +000015960 chmod u+w . 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +000015961 $rm conftest*
15962 # SGI C++ compiler will create directory out/ii_files/ for
15963 # template instantiation
15964 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15965 $rm out/* && rmdir out
15966 cd ..
15967 rmdir conftest
15968 $rm conftest*
15969
15970fi
mlcreech94984912008-03-04 19:03:08 +000015971{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15972echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015973
15974
15975hard_links="nottested"
15976if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15977 # do not overwrite the value of need_locks provided by the user
mlcreech94984912008-03-04 19:03:08 +000015978 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15979echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015980 hard_links=yes
15981 $rm conftest*
15982 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15983 touch conftest.a
15984 ln conftest.a conftest.b 2>&5 || hard_links=no
15985 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mlcreech94984912008-03-04 19:03:08 +000015986 { echo "$as_me:$LINENO: result: $hard_links" >&5
15987echo "${ECHO_T}$hard_links" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015988 if test "$hard_links" = no; then
15989 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15990echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15991 need_locks=warn
15992 fi
15993else
15994 need_locks=no
15995fi
15996
mlcreech94984912008-03-04 19:03:08 +000015997{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15998echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015999
16000 runpath_var=
16001 allow_undefined_flag_GCJ=
16002 enable_shared_with_static_runtimes_GCJ=no
16003 archive_cmds_GCJ=
16004 archive_expsym_cmds_GCJ=
16005 old_archive_From_new_cmds_GCJ=
16006 old_archive_from_expsyms_cmds_GCJ=
16007 export_dynamic_flag_spec_GCJ=
16008 whole_archive_flag_spec_GCJ=
16009 thread_safe_flag_spec_GCJ=
16010 hardcode_libdir_flag_spec_GCJ=
16011 hardcode_libdir_flag_spec_ld_GCJ=
16012 hardcode_libdir_separator_GCJ=
16013 hardcode_direct_GCJ=no
16014 hardcode_minus_L_GCJ=no
16015 hardcode_shlibpath_var_GCJ=unsupported
16016 link_all_deplibs_GCJ=unknown
16017 hardcode_automatic_GCJ=no
16018 module_cmds_GCJ=
16019 module_expsym_cmds_GCJ=
16020 always_export_symbols_GCJ=no
16021 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16022 # include_expsyms should be a list of space-separated symbols to be *always*
16023 # included in the symbol list
16024 include_expsyms_GCJ=
16025 # exclude_expsyms can be an extended regexp of symbols to exclude
16026 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16027 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16028 # as well as any symbol that contains `d'.
16029 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16030 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16031 # platforms (ab)use it in PIC code, but their linkers get confused if
16032 # the symbol is explicitly referenced. Since portable code cannot
16033 # rely on this symbol name, it's probably fine to never include it in
16034 # preloaded symbol tables.
16035 extract_expsyms_cmds=
vapier7f19c022007-02-17 14:46:31 +000016036 # Just being paranoid about ensuring that cc_basename is set.
16037 for cc_temp in $compiler""; do
16038 case $cc_temp in
16039 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16040 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16041 \-*) ;;
16042 *) break;;
16043 esac
16044done
16045cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a.rottmann9bc8b932004-02-29 15:18:31 +000016046
16047 case $host_os in
16048 cygwin* | mingw* | pw32*)
16049 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16050 # When not using gcc, we currently assume that we are using
16051 # Microsoft Visual C++.
16052 if test "$GCC" != yes; then
16053 with_gnu_ld=no
16054 fi
16055 ;;
vapier7f19c022007-02-17 14:46:31 +000016056 interix*)
16057 # we just hope/assume this is gcc and not c89 (= MSVC++)
16058 with_gnu_ld=yes
16059 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016060 openbsd*)
16061 with_gnu_ld=no
16062 ;;
16063 esac
16064
16065 ld_shlibs_GCJ=yes
16066 if test "$with_gnu_ld" = yes; then
16067 # If archive_cmds runs LD, not CC, wlarc should be empty
16068 wlarc='${wl}'
16069
vapier7f19c022007-02-17 14:46:31 +000016070 # Set some defaults for GNU ld with shared library support. These
16071 # are reset later if shared libraries are not supported. Putting them
16072 # here allows them to be overridden if necessary.
16073 runpath_var=LD_RUN_PATH
16074 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16075 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16076 # ancient GNU ld didn't support --whole-archive et. al.
16077 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16078 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16079 else
16080 whole_archive_flag_spec_GCJ=
16081 fi
16082 supports_anon_versioning=no
16083 case `$LD -v 2>/dev/null` in
16084 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16085 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16086 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16087 *\ 2.11.*) ;; # other 2.11 versions
16088 *) supports_anon_versioning=yes ;;
16089 esac
16090
a.rottmann9bc8b932004-02-29 15:18:31 +000016091 # See if GNU ld supports shared libraries.
16092 case $host_os in
16093 aix3* | aix4* | aix5*)
16094 # On AIX/PPC, the GNU linker is very broken
16095 if test "$host_cpu" != ia64; then
16096 ld_shlibs_GCJ=no
16097 cat <<EOF 1>&2
16098
16099*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16100*** to be unable to reliably create shared libraries on AIX.
16101*** Therefore, libtool is disabling shared libraries support. If you
16102*** really care for shared libraries, you may want to modify your PATH
16103*** so that a non-GNU linker is found, and then restart.
16104
16105EOF
16106 fi
16107 ;;
16108
16109 amigaos*)
16110 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)'
16111 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16112 hardcode_minus_L_GCJ=yes
16113
16114 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16115 # that the semantics of dynamic libraries on AmigaOS, at least up
16116 # to version 4, is to share data among multiple programs linked
16117 # with the same dynamic library. Since this doesn't match the
16118 # behavior of shared libraries on other platforms, we can't use
16119 # them.
16120 ld_shlibs_GCJ=no
16121 ;;
16122
16123 beos*)
16124 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16125 allow_undefined_flag_GCJ=unsupported
16126 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16127 # support --undefined. This deserves some investigation. FIXME
16128 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16129 else
16130 ld_shlibs_GCJ=no
16131 fi
16132 ;;
16133
16134 cygwin* | mingw* | pw32*)
16135 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16136 # as there is no search path for DLLs.
16137 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16138 allow_undefined_flag_GCJ=unsupported
16139 always_export_symbols_GCJ=no
16140 enable_shared_with_static_runtimes_GCJ=yes
vapier7f19c022007-02-17 14:46:31 +000016141 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +000016142
16143 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +000016144 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +000016145 # If the export-symbols file already is a .def file (1st line
16146 # is EXPORTS), use it as is; otherwise, prepend...
16147 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16148 cp $export_symbols $output_objdir/$soname.def;
16149 else
16150 echo EXPORTS > $output_objdir/$soname.def;
16151 cat $export_symbols >> $output_objdir/$soname.def;
16152 fi~
vapier7f19c022007-02-17 14:46:31 +000016153 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +000016154 else
vapier7f19c022007-02-17 14:46:31 +000016155 ld_shlibs_GCJ=no
a.rottmann9bc8b932004-02-29 15:18:31 +000016156 fi
16157 ;;
16158
vapier7f19c022007-02-17 14:46:31 +000016159 interix3*)
16160 hardcode_direct_GCJ=no
16161 hardcode_shlibpath_var_GCJ=no
16162 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16163 export_dynamic_flag_spec_GCJ='${wl}-E'
16164 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16165 # Instead, shared libraries are loaded at an image base (0x10000000 by
16166 # default) and relocated if they conflict, which is a slow very memory
16167 # consuming and fragmenting process. To avoid this, we pick a random,
16168 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16169 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16170 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'
16171 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'
16172 ;;
16173
16174 linux*)
16175 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16176 tmp_addflag=
16177 case $cc_basename,$host_cpu in
16178 pgcc*) # Portland Group C compiler
16179 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'
16180 tmp_addflag=' $pic_flag'
16181 ;;
16182 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16183 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'
16184 tmp_addflag=' $pic_flag -Mnomain' ;;
16185 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16186 tmp_addflag=' -i_dynamic' ;;
16187 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16188 tmp_addflag=' -i_dynamic -nofor_main' ;;
16189 ifc* | ifort*) # Intel Fortran compiler
16190 tmp_addflag=' -nofor_main' ;;
16191 esac
16192 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16193
16194 if test $supports_anon_versioning = yes; then
16195 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16196 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16197 $echo "local: *; };" >> $output_objdir/$libname.ver~
16198 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16199 fi
16200 else
16201 ld_shlibs_GCJ=no
16202 fi
16203 ;;
16204
16205 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016206 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16207 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16208 wlarc=
16209 else
16210 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16211 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16212 fi
16213 ;;
16214
vapier7f19c022007-02-17 14:46:31 +000016215 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016216 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16217 ld_shlibs_GCJ=no
16218 cat <<EOF 1>&2
16219
16220*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16221*** create shared libraries on Solaris systems. Therefore, libtool
16222*** is disabling shared libraries support. We urge you to upgrade GNU
16223*** binutils to release 2.9.1 or newer. Another option is to modify
16224*** your PATH or compiler configuration so that the native linker is
16225*** used, and then restart.
16226
16227EOF
16228 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16229 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16230 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16231 else
16232 ld_shlibs_GCJ=no
16233 fi
16234 ;;
16235
vapier7f19c022007-02-17 14:46:31 +000016236 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16237 case `$LD -v 2>&1` in
16238 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16239 ld_shlibs_GCJ=no
16240 cat <<_LT_EOF 1>&2
16241
16242*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16243*** reliably create shared libraries on SCO systems. Therefore, libtool
16244*** is disabling shared libraries support. We urge you to upgrade GNU
16245*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16246*** your PATH or compiler configuration so that the native linker is
16247*** used, and then restart.
16248
16249_LT_EOF
16250 ;;
16251 *)
16252 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16253 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16254 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16255 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16256 else
16257 ld_shlibs_GCJ=no
16258 fi
16259 ;;
16260 esac
16261 ;;
16262
a.rottmann9bc8b932004-02-29 15:18:31 +000016263 sunos4*)
16264 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16265 wlarc=
16266 hardcode_direct_GCJ=yes
16267 hardcode_shlibpath_var_GCJ=no
16268 ;;
16269
a.rottmann9bc8b932004-02-29 15:18:31 +000016270 *)
16271 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16272 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16273 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16274 else
16275 ld_shlibs_GCJ=no
16276 fi
16277 ;;
16278 esac
16279
vapier7f19c022007-02-17 14:46:31 +000016280 if test "$ld_shlibs_GCJ" = no; then
16281 runpath_var=
16282 hardcode_libdir_flag_spec_GCJ=
16283 export_dynamic_flag_spec_GCJ=
16284 whole_archive_flag_spec_GCJ=
a.rottmann9bc8b932004-02-29 15:18:31 +000016285 fi
16286 else
16287 # PORTME fill in a description of your system's linker (not GNU ld)
16288 case $host_os in
16289 aix3*)
16290 allow_undefined_flag_GCJ=unsupported
16291 always_export_symbols_GCJ=yes
16292 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'
16293 # Note: this linker hardcodes the directories in LIBPATH if there
16294 # are no directories specified by -L.
16295 hardcode_minus_L_GCJ=yes
vapier7f19c022007-02-17 14:46:31 +000016296 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +000016297 # Neither direct hardcoding nor static linking is supported with a
16298 # broken collect2.
16299 hardcode_direct_GCJ=unsupported
16300 fi
16301 ;;
16302
16303 aix4* | aix5*)
16304 if test "$host_cpu" = ia64; then
16305 # On IA64, the linker does run time linking by default, so we don't
16306 # have to do anything special.
16307 aix_use_runtimelinking=no
16308 exp_sym_flag='-Bexport'
16309 no_entry_flag=""
16310 else
16311 # If we're using GNU nm, then we don't want the "-C" option.
16312 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16313 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16314 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'
16315 else
16316 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'
16317 fi
16318 aix_use_runtimelinking=no
16319
16320 # Test if we are trying to use run time linking or normal
16321 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16322 # need to do runtime linking.
16323 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16324 for ld_flag in $LDFLAGS; do
16325 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16326 aix_use_runtimelinking=yes
16327 break
16328 fi
16329 done
vapier7f19c022007-02-17 14:46:31 +000016330 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016331 esac
16332
16333 exp_sym_flag='-bexport'
16334 no_entry_flag='-bnoentry'
16335 fi
16336
16337 # When large executables or shared objects are built, AIX ld can
16338 # have problems creating the table of contents. If linking a library
16339 # or program results in "error TOC overflow" add -mminimal-toc to
16340 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16341 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16342
16343 archive_cmds_GCJ=''
16344 hardcode_direct_GCJ=yes
16345 hardcode_libdir_separator_GCJ=':'
16346 link_all_deplibs_GCJ=yes
16347
16348 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000016349 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016350 # We only want to do this on AIX 4.2 and lower, the check
16351 # below for broken collect2 doesn't work under 4.3+
16352 collect2name=`${CC} -print-prog-name=collect2`
16353 if test -f "$collect2name" && \
16354 strings "$collect2name" | grep resolve_lib_name >/dev/null
16355 then
16356 # We have reworked collect2
16357 hardcode_direct_GCJ=yes
16358 else
16359 # We have old collect2
16360 hardcode_direct_GCJ=unsupported
16361 # It fails to find uninstalled libraries when the uninstalled
16362 # path is not listed in the libpath. Setting hardcode_minus_L
16363 # to unsupported forces relinking
16364 hardcode_minus_L_GCJ=yes
16365 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16366 hardcode_libdir_separator_GCJ=
16367 fi
vapier7f19c022007-02-17 14:46:31 +000016368 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016369 esac
16370 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +000016371 if test "$aix_use_runtimelinking" = yes; then
16372 shared_flag="$shared_flag "'${wl}-G'
16373 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000016374 else
16375 # not using gcc
16376 if test "$host_cpu" = ia64; then
16377 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16378 # chokes on -Wl,-G. The following line is correct:
16379 shared_flag='-G'
16380 else
vapier7f19c022007-02-17 14:46:31 +000016381 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +000016382 shared_flag='${wl}-G'
16383 else
16384 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +000016385 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000016386 fi
16387 fi
16388
16389 # It seems that -bexpall does not export symbols beginning with
16390 # underscore (_), so it is better to generate a list of symbols to export.
16391 always_export_symbols_GCJ=yes
16392 if test "$aix_use_runtimelinking" = yes; then
16393 # Warning - without using the other runtime loading flags (-brtl),
16394 # -berok will link without error, but may produce a broken library.
16395 allow_undefined_flag_GCJ='-berok'
16396 # Determine the default libpath from the value encoded in an empty executable.
16397 cat >conftest.$ac_ext <<_ACEOF
16398/* confdefs.h. */
16399_ACEOF
16400cat confdefs.h >>conftest.$ac_ext
16401cat >>conftest.$ac_ext <<_ACEOF
16402/* end confdefs.h. */
16403
16404int
16405main ()
16406{
16407
16408 ;
16409 return 0;
16410}
16411_ACEOF
16412rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000016413if { (ac_try="$ac_link"
16414case "(($ac_try" in
16415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416 *) ac_try_echo=$ac_try;;
16417esac
16418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16419 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000016420 ac_status=$?
16421 grep -v '^ *+' conftest.er1 >conftest.err
16422 rm -f conftest.er1
16423 cat conftest.err >&5
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000016425 (exit $ac_status); } && {
16426 test -z "$ac_c_werror_flag" ||
16427 test ! -s conftest.err
16428 } && test -s conftest$ac_exeext &&
16429 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +000016430
16431aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16432}'`
16433# Check for a 64-bit object if we didn't find anything.
16434if 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; }
16435}'`; fi
16436else
16437 echo "$as_me: failed program was:" >&5
16438sed 's/^/| /' conftest.$ac_ext >&5
16439
mlcreech94984912008-03-04 19:03:08 +000016440
a.rottmann9bc8b932004-02-29 15:18:31 +000016441fi
mlcreech94984912008-03-04 19:03:08 +000016442
16443rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +000016444 conftest$ac_exeext conftest.$ac_ext
16445if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16446
16447 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
vapier7f19c022007-02-17 14:46:31 +000016448 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"
a.rottmann9bc8b932004-02-29 15:18:31 +000016449 else
16450 if test "$host_cpu" = ia64; then
16451 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16452 allow_undefined_flag_GCJ="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +000016453 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"
a.rottmann9bc8b932004-02-29 15:18:31 +000016454 else
16455 # Determine the default libpath from the value encoded in an empty executable.
16456 cat >conftest.$ac_ext <<_ACEOF
16457/* confdefs.h. */
16458_ACEOF
16459cat confdefs.h >>conftest.$ac_ext
16460cat >>conftest.$ac_ext <<_ACEOF
16461/* end confdefs.h. */
16462
16463int
16464main ()
16465{
16466
16467 ;
16468 return 0;
16469}
16470_ACEOF
16471rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000016472if { (ac_try="$ac_link"
16473case "(($ac_try" in
16474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16475 *) ac_try_echo=$ac_try;;
16476esac
16477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16478 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000016479 ac_status=$?
16480 grep -v '^ *+' conftest.er1 >conftest.err
16481 rm -f conftest.er1
16482 cat conftest.err >&5
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000016484 (exit $ac_status); } && {
16485 test -z "$ac_c_werror_flag" ||
16486 test ! -s conftest.err
16487 } && test -s conftest$ac_exeext &&
16488 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +000016489
16490aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16491}'`
16492# Check for a 64-bit object if we didn't find anything.
16493if 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; }
16494}'`; fi
16495else
16496 echo "$as_me: failed program was:" >&5
16497sed 's/^/| /' conftest.$ac_ext >&5
16498
mlcreech94984912008-03-04 19:03:08 +000016499
a.rottmann9bc8b932004-02-29 15:18:31 +000016500fi
mlcreech94984912008-03-04 19:03:08 +000016501
16502rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +000016503 conftest$ac_exeext conftest.$ac_ext
16504if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16505
16506 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16507 # Warning - without using the other run time loading flags,
16508 # -berok will link without error, but may produce a broken library.
16509 no_undefined_flag_GCJ=' ${wl}-bernotok'
16510 allow_undefined_flag_GCJ=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +000016511 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +000016512 whole_archive_flag_spec_GCJ='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +000016513 archive_cmds_need_lc_GCJ=yes
vapier7f19c022007-02-17 14:46:31 +000016514 # This is similar to how AIX traditionally builds its shared libraries.
16515 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'
a.rottmann9bc8b932004-02-29 15:18:31 +000016516 fi
16517 fi
16518 ;;
16519
16520 amigaos*)
16521 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)'
16522 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16523 hardcode_minus_L_GCJ=yes
16524 # see comment about different semantics on the GNU ld section
16525 ld_shlibs_GCJ=no
16526 ;;
16527
vapier7f19c022007-02-17 14:46:31 +000016528 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016529 export_dynamic_flag_spec_GCJ=-rdynamic
16530 ;;
16531
16532 cygwin* | mingw* | pw32*)
16533 # When not using gcc, we currently assume that we are using
16534 # Microsoft Visual C++.
16535 # hardcode_libdir_flag_spec is actually meaningless, as there is
16536 # no search path for DLLs.
16537 hardcode_libdir_flag_spec_GCJ=' '
16538 allow_undefined_flag_GCJ=unsupported
16539 # Tell ltmain to make .lib files, not .a files.
16540 libext=lib
16541 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +000016542 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000016543 # FIXME: Setting linknames here is a bad hack.
16544 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16545 # The linker will automatically build a .lib file if we build a DLL.
16546 old_archive_From_new_cmds_GCJ='true'
16547 # FIXME: Should let the user specify the lib program.
16548 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
vapier7f19c022007-02-17 14:46:31 +000016549 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
a.rottmann9bc8b932004-02-29 15:18:31 +000016550 enable_shared_with_static_runtimes_GCJ=yes
16551 ;;
16552
16553 darwin* | rhapsody*)
vapier7f19c022007-02-17 14:46:31 +000016554 case $host_os in
16555 rhapsody* | darwin1.[012])
16556 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16557 ;;
16558 *) # Darwin 1.3 on
16559 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16560 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16561 else
16562 case ${MACOSX_DEPLOYMENT_TARGET} in
16563 10.[012])
16564 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16565 ;;
16566 10.*)
16567 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16568 ;;
16569 esac
16570 fi
16571 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016572 esac
vapier7f19c022007-02-17 14:46:31 +000016573 archive_cmds_need_lc_GCJ=no
a.rottmann9bc8b932004-02-29 15:18:31 +000016574 hardcode_direct_GCJ=no
16575 hardcode_automatic_GCJ=yes
16576 hardcode_shlibpath_var_GCJ=unsupported
vapier7f19c022007-02-17 14:46:31 +000016577 whole_archive_flag_spec_GCJ=''
a.rottmann9bc8b932004-02-29 15:18:31 +000016578 link_all_deplibs_GCJ=yes
vapier7f19c022007-02-17 14:46:31 +000016579 if test "$GCC" = yes ; then
16580 output_verbose_link_cmd='echo'
16581 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16582 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16583 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16584 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}'
16585 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}'
a.rottmann9bc8b932004-02-29 15:18:31 +000016586 else
vapier7f19c022007-02-17 14:46:31 +000016587 case $cc_basename in
16588 xlc*)
16589 output_verbose_link_cmd='echo'
16590 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16591 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16592 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16593 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}'
16594 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}'
16595 ;;
16596 *)
16597 ld_shlibs_GCJ=no
16598 ;;
16599 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000016600 fi
16601 ;;
16602
16603 dgux*)
16604 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16605 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16606 hardcode_shlibpath_var_GCJ=no
16607 ;;
16608
16609 freebsd1*)
16610 ld_shlibs_GCJ=no
16611 ;;
16612
16613 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16614 # support. Future versions do this automatically, but an explicit c++rt0.o
16615 # does not break anything, and helps significantly (at the cost of a little
16616 # extra space).
16617 freebsd2.2*)
16618 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16619 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16620 hardcode_direct_GCJ=yes
16621 hardcode_shlibpath_var_GCJ=no
16622 ;;
16623
16624 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16625 freebsd2*)
16626 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16627 hardcode_direct_GCJ=yes
16628 hardcode_minus_L_GCJ=yes
16629 hardcode_shlibpath_var_GCJ=no
16630 ;;
16631
16632 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
vapier7f19c022007-02-17 14:46:31 +000016633 freebsd* | kfreebsd*-gnu | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016634 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16635 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16636 hardcode_direct_GCJ=yes
16637 hardcode_shlibpath_var_GCJ=no
16638 ;;
16639
16640 hpux9*)
16641 if test "$GCC" = yes; then
16642 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'
16643 else
16644 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'
16645 fi
16646 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16647 hardcode_libdir_separator_GCJ=:
16648 hardcode_direct_GCJ=yes
16649
16650 # hardcode_minus_L: Not really in the search PATH,
16651 # but as the default location of the library.
16652 hardcode_minus_L_GCJ=yes
16653 export_dynamic_flag_spec_GCJ='${wl}-E'
16654 ;;
16655
vapier7f19c022007-02-17 14:46:31 +000016656 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016657 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +000016658 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16659 else
16660 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16661 fi
16662 if test "$with_gnu_ld" = no; then
16663 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16664 hardcode_libdir_separator_GCJ=:
16665
16666 hardcode_direct_GCJ=yes
16667 export_dynamic_flag_spec_GCJ='${wl}-E'
16668
16669 # hardcode_minus_L: Not really in the search PATH,
16670 # but as the default location of the library.
16671 hardcode_minus_L_GCJ=yes
16672 fi
16673 ;;
16674
16675 hpux11*)
16676 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16677 case $host_cpu in
16678 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016679 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16680 ;;
vapier7f19c022007-02-17 14:46:31 +000016681 ia64*)
16682 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16683 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016684 *)
16685 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16686 ;;
16687 esac
16688 else
vapier7f19c022007-02-17 14:46:31 +000016689 case $host_cpu in
16690 hppa*64*)
16691 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16692 ;;
16693 ia64*)
16694 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000016695 ;;
16696 *)
vapier7f19c022007-02-17 14:46:31 +000016697 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000016698 ;;
16699 esac
16700 fi
16701 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +000016702 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16703 hardcode_libdir_separator_GCJ=:
a.rottmann9bc8b932004-02-29 15:18:31 +000016704
vapier7f19c022007-02-17 14:46:31 +000016705 case $host_cpu in
16706 hppa*64*|ia64*)
16707 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16708 hardcode_direct_GCJ=no
16709 hardcode_shlibpath_var_GCJ=no
a.rottmann9bc8b932004-02-29 15:18:31 +000016710 ;;
16711 *)
a.rottmann9bc8b932004-02-29 15:18:31 +000016712 hardcode_direct_GCJ=yes
16713 export_dynamic_flag_spec_GCJ='${wl}-E'
16714
16715 # hardcode_minus_L: Not really in the search PATH,
16716 # but as the default location of the library.
16717 hardcode_minus_L_GCJ=yes
16718 ;;
16719 esac
16720 fi
16721 ;;
16722
16723 irix5* | irix6* | nonstopux*)
16724 if test "$GCC" = yes; then
16725 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'
16726 else
16727 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'
16728 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16729 fi
16730 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16731 hardcode_libdir_separator_GCJ=:
16732 link_all_deplibs_GCJ=yes
16733 ;;
16734
vapier7f19c022007-02-17 14:46:31 +000016735 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016736 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16737 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16738 else
16739 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16740 fi
16741 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16742 hardcode_direct_GCJ=yes
16743 hardcode_shlibpath_var_GCJ=no
16744 ;;
16745
16746 newsos6)
16747 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16748 hardcode_direct_GCJ=yes
16749 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16750 hardcode_libdir_separator_GCJ=:
16751 hardcode_shlibpath_var_GCJ=no
16752 ;;
16753
16754 openbsd*)
16755 hardcode_direct_GCJ=yes
16756 hardcode_shlibpath_var_GCJ=no
16757 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16758 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +000016759 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +000016760 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16761 export_dynamic_flag_spec_GCJ='${wl}-E'
16762 else
16763 case $host_os in
16764 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16765 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16766 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16767 ;;
16768 *)
16769 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16770 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16771 ;;
16772 esac
16773 fi
16774 ;;
16775
16776 os2*)
16777 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16778 hardcode_minus_L_GCJ=yes
16779 allow_undefined_flag_GCJ=unsupported
16780 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'
16781 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16782 ;;
16783
16784 osf3*)
16785 if test "$GCC" = yes; then
16786 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16787 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'
16788 else
16789 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16790 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'
16791 fi
16792 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16793 hardcode_libdir_separator_GCJ=:
16794 ;;
16795
16796 osf4* | osf5*) # as osf3* with the addition of -msym flag
16797 if test "$GCC" = yes; then
16798 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16799 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'
16800 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16801 else
16802 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16803 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'
16804 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~
vapier7f19c022007-02-17 14:46:31 +000016805 $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'
a.rottmann9bc8b932004-02-29 15:18:31 +000016806
16807 # Both c and cxx compiler support -rpath directly
16808 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16809 fi
16810 hardcode_libdir_separator_GCJ=:
16811 ;;
16812
a.rottmann9bc8b932004-02-29 15:18:31 +000016813 solaris*)
16814 no_undefined_flag_GCJ=' -z text'
16815 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000016816 wlarc='${wl}'
a.rottmann9bc8b932004-02-29 15:18:31 +000016817 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16818 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16819 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16820 else
vapier7f19c022007-02-17 14:46:31 +000016821 wlarc=''
a.rottmann9bc8b932004-02-29 15:18:31 +000016822 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16823 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16824 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16825 fi
16826 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16827 hardcode_shlibpath_var_GCJ=no
16828 case $host_os in
16829 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +000016830 *)
16831 # The compiler driver will combine linker options so we
16832 # cannot just pass the convience library names through
16833 # without $wl, iff we do not link with $LD.
16834 # Luckily, gcc supports the same syntax we need for Sun Studio.
16835 # Supported since Solaris 2.6 (maybe 2.5.1?)
16836 case $wlarc in
16837 '')
16838 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16839 *)
16840 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' ;;
16841 esac ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016842 esac
16843 link_all_deplibs_GCJ=yes
16844 ;;
16845
16846 sunos4*)
16847 if test "x$host_vendor" = xsequent; then
16848 # Use $CC to link under sequent, because it throws in some extra .o
16849 # files that make .init and .fini sections work.
16850 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16851 else
16852 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16853 fi
16854 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16855 hardcode_direct_GCJ=yes
16856 hardcode_minus_L_GCJ=yes
16857 hardcode_shlibpath_var_GCJ=no
16858 ;;
16859
16860 sysv4)
16861 case $host_vendor in
16862 sni)
16863 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16864 hardcode_direct_GCJ=yes # is this really true???
16865 ;;
16866 siemens)
16867 ## LD is ld it makes a PLAMLIB
16868 ## CC just makes a GrossModule.
16869 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16870 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16871 hardcode_direct_GCJ=no
16872 ;;
16873 motorola)
16874 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16875 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16876 ;;
16877 esac
16878 runpath_var='LD_RUN_PATH'
16879 hardcode_shlibpath_var_GCJ=no
16880 ;;
16881
16882 sysv4.3*)
16883 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16884 hardcode_shlibpath_var_GCJ=no
16885 export_dynamic_flag_spec_GCJ='-Bexport'
16886 ;;
16887
16888 sysv4*MP*)
16889 if test -d /usr/nec; then
16890 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16891 hardcode_shlibpath_var_GCJ=no
16892 runpath_var=LD_RUN_PATH
16893 hardcode_runpath_var=yes
16894 ld_shlibs_GCJ=yes
16895 fi
16896 ;;
16897
vapier7f19c022007-02-17 14:46:31 +000016898 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16899 no_undefined_flag_GCJ='${wl}-z,text'
16900 archive_cmds_need_lc_GCJ=no
a.rottmann9bc8b932004-02-29 15:18:31 +000016901 hardcode_shlibpath_var_GCJ=no
vapier7f19c022007-02-17 14:46:31 +000016902 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +000016903
a.rottmann9bc8b932004-02-29 15:18:31 +000016904 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000016905 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16906 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000016907 else
vapier7f19c022007-02-17 14:46:31 +000016908 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16909 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000016910 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000016911 ;;
16912
vapier7f19c022007-02-17 14:46:31 +000016913 sysv5* | sco3.2v5* | sco5v6*)
16914 # Note: We can NOT use -z defs as we might desire, because we do not
16915 # link with -lc, and that would cause any symbols used from libc to
16916 # always be unresolved, which means just about no library would
16917 # ever link correctly. If we're not using GNU ld we use -z text
16918 # though, which does catch some bad symbols but isn't as heavy-handed
16919 # as -z defs.
16920 no_undefined_flag_GCJ='${wl}-z,text'
16921 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16922 archive_cmds_need_lc_GCJ=no
a.rottmann9bc8b932004-02-29 15:18:31 +000016923 hardcode_shlibpath_var_GCJ=no
vapier7f19c022007-02-17 14:46:31 +000016924 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16925 hardcode_libdir_separator_GCJ=':'
16926 link_all_deplibs_GCJ=yes
16927 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +000016928 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +000016929
16930 if test "$GCC" = yes; then
16931 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16932 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16933 else
16934 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16935 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16936 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000016937 ;;
16938
16939 uts4*)
16940 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16941 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16942 hardcode_shlibpath_var_GCJ=no
16943 ;;
16944
16945 *)
16946 ld_shlibs_GCJ=no
16947 ;;
16948 esac
16949 fi
16950
mlcreech94984912008-03-04 19:03:08 +000016951{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16952echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000016953test "$ld_shlibs_GCJ" = no && can_build_shared=no
16954
a.rottmann9bc8b932004-02-29 15:18:31 +000016955#
16956# Do we need to explicitly link libc?
16957#
16958case "x$archive_cmds_need_lc_GCJ" in
16959x|xyes)
16960 # Assume -lc should be added
16961 archive_cmds_need_lc_GCJ=yes
16962
16963 if test "$enable_shared" = yes && test "$GCC" = yes; then
16964 case $archive_cmds_GCJ in
16965 *'~'*)
16966 # FIXME: we may have to deal with multi-command sequences.
16967 ;;
16968 '$CC '*)
16969 # Test whether the compiler implicitly links with -lc since on some
16970 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16971 # to ld, don't add -lc before -lgcc.
mlcreech94984912008-03-04 19:03:08 +000016972 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16973echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000016974 $rm conftest*
16975 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16976
16977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16978 (eval $ac_compile) 2>&5
16979 ac_status=$?
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); } 2>conftest.err; then
16982 soname=conftest
16983 lib=conftest
16984 libobjs=conftest.$ac_objext
16985 deplibs=
16986 wl=$lt_prog_compiler_wl_GCJ
vapier7f19c022007-02-17 14:46:31 +000016987 pic_flag=$lt_prog_compiler_pic_GCJ
a.rottmann9bc8b932004-02-29 15:18:31 +000016988 compiler_flags=-v
16989 linker_flags=-v
16990 verstring=
16991 output_objdir=.
16992 libname=conftest
16993 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16994 allow_undefined_flag_GCJ=
16995 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16996 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16997 ac_status=$?
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }
17000 then
17001 archive_cmds_need_lc_GCJ=no
17002 else
17003 archive_cmds_need_lc_GCJ=yes
17004 fi
17005 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17006 else
17007 cat conftest.err 1>&5
17008 fi
17009 $rm conftest*
mlcreech94984912008-03-04 19:03:08 +000017010 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17011echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000017012 ;;
17013 esac
17014 fi
17015 ;;
17016esac
17017
mlcreech94984912008-03-04 19:03:08 +000017018{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17019echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000017020library_names_spec=
17021libname_spec='lib$name'
17022soname_spec=
vapier7f19c022007-02-17 14:46:31 +000017023shrext_cmds=".so"
a.rottmann9bc8b932004-02-29 15:18:31 +000017024postinstall_cmds=
17025postuninstall_cmds=
17026finish_cmds=
17027finish_eval=
17028shlibpath_var=
17029shlibpath_overrides_runpath=unknown
17030version_type=none
17031dynamic_linker="$host_os ld.so"
17032sys_lib_dlsearch_path_spec="/lib /usr/lib"
17033if test "$GCC" = yes; then
17034 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17035 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17036 # if the path contains ";" then we assume it to be the separator
17037 # otherwise default to the standard path separator (i.e. ":") - it is
17038 # assumed that no part of a normal pathname contains ";" but that should
17039 # okay in the real world where ";" in dirpaths is itself problematic.
17040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17041 else
17042 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17043 fi
17044else
17045 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17046fi
17047need_lib_prefix=unknown
17048hardcode_into_libs=no
17049
17050# when you set need_version to no, make sure it does not cause -set_version
17051# flags to be left without arguments
17052need_version=unknown
17053
17054case $host_os in
17055aix3*)
17056 version_type=linux
17057 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17058 shlibpath_var=LIBPATH
17059
17060 # AIX 3 has no versioning support, so we append a major version to the name.
17061 soname_spec='${libname}${release}${shared_ext}$major'
17062 ;;
17063
17064aix4* | aix5*)
17065 version_type=linux
17066 need_lib_prefix=no
17067 need_version=no
17068 hardcode_into_libs=yes
17069 if test "$host_cpu" = ia64; then
17070 # AIX 5 supports IA64
17071 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17072 shlibpath_var=LD_LIBRARY_PATH
17073 else
17074 # With GCC up to 2.95.x, collect2 would create an import file
17075 # for dependence libraries. The import file would start with
17076 # the line `#! .'. This would cause the generated library to
17077 # depend on `.', always an invalid library. This was fixed in
17078 # development snapshots of GCC prior to 3.0.
17079 case $host_os in
17080 aix4 | aix4.[01] | aix4.[01].*)
17081 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17082 echo ' yes '
17083 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17084 :
17085 else
17086 can_build_shared=no
17087 fi
17088 ;;
17089 esac
17090 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17091 # soname into executable. Probably we can add versioning support to
17092 # collect2, so additional links can be useful in future.
17093 if test "$aix_use_runtimelinking" = yes; then
17094 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17095 # instead of lib<name>.a to let people know that these are not
17096 # typical AIX shared libraries.
17097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17098 else
17099 # We preserve .a as extension for shared libraries through AIX4.2
17100 # and later when we are not doing run time linking.
17101 library_names_spec='${libname}${release}.a $libname.a'
17102 soname_spec='${libname}${release}${shared_ext}$major'
17103 fi
17104 shlibpath_var=LIBPATH
17105 fi
17106 ;;
17107
17108amigaos*)
17109 library_names_spec='$libname.ixlibrary $libname.a'
17110 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17111 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'
17112 ;;
17113
17114beos*)
17115 library_names_spec='${libname}${shared_ext}'
17116 dynamic_linker="$host_os ld.so"
17117 shlibpath_var=LIBRARY_PATH
17118 ;;
17119
vapier7f19c022007-02-17 14:46:31 +000017120bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000017121 version_type=linux
17122 need_version=no
17123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17124 soname_spec='${libname}${release}${shared_ext}$major'
17125 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17126 shlibpath_var=LD_LIBRARY_PATH
17127 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17128 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17129 # the default ld.so.conf also contains /usr/contrib/lib and
17130 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17131 # libtool to hard-code these into programs
17132 ;;
17133
17134cygwin* | mingw* | pw32*)
17135 version_type=windows
vapier7f19c022007-02-17 14:46:31 +000017136 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000017137 need_version=no
17138 need_lib_prefix=no
17139
17140 case $GCC,$host_os in
17141 yes,cygwin* | yes,mingw* | yes,pw32*)
17142 library_names_spec='$libname.dll.a'
17143 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17144 postinstall_cmds='base_file=`basename \${file}`~
17145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17146 dldir=$destdir/`dirname \$dlpath`~
17147 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +000017148 $install_prog $dir/$dlname \$dldir/$dlname~
17149 chmod a+x \$dldir/$dlname'
a.rottmann9bc8b932004-02-29 15:18:31 +000017150 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17151 dlpath=$dir/\$dldll~
17152 $rm \$dlpath'
17153 shlibpath_overrides_runpath=yes
17154
17155 case $host_os in
17156 cygwin*)
17157 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17158 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17159 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17160 ;;
17161 mingw*)
17162 # MinGW DLLs use traditional 'lib' prefix
17163 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17164 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17165 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17166 # It is most probably a Windows format PATH printed by
17167 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17168 # path with ; separators, and with drive letters. We can handle the
17169 # drive letters (cygwin fileutils understands them), so leave them,
17170 # especially as we might pass files found there to a mingw objdump,
17171 # which wouldn't understand a cygwinified path. Ahh.
17172 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17173 else
17174 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17175 fi
17176 ;;
17177 pw32*)
17178 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +000017179 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
a.rottmann9bc8b932004-02-29 15:18:31 +000017180 ;;
17181 esac
17182 ;;
17183
vapier7f19c022007-02-17 14:46:31 +000017184 linux*)
17185 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
17186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17187 supports_anon_versioning=no
17188 case `$LD -v 2>/dev/null` in
17189 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17190 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17191 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17192 *\ 2.11.*) ;; # other 2.11 versions
17193 *) supports_anon_versioning=yes ;;
17194 esac
17195 if test $supports_anon_versioning = yes; then
17196 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17197cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17198$echo "local: *; };" >> $output_objdir/$libname.ver~
17199 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17200 else
17201 $archive_expsym_cmds="$archive_cmds"
17202 fi
17203 else
17204 ld_shlibs=no
17205 fi
17206 ;;
17207
a.rottmann9bc8b932004-02-29 15:18:31 +000017208 *)
17209 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17210 ;;
17211 esac
17212 dynamic_linker='Win32 ld.exe'
17213 # FIXME: first we should search . and the directory the executable is in
17214 shlibpath_var=PATH
17215 ;;
17216
17217darwin* | rhapsody*)
17218 dynamic_linker="$host_os dyld"
17219 version_type=darwin
17220 need_lib_prefix=no
17221 need_version=no
17222 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17223 soname_spec='${libname}${release}${major}$shared_ext'
17224 shlibpath_overrides_runpath=yes
17225 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +000017226 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
a.rottmann9bc8b932004-02-29 15:18:31 +000017227 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17228 if test "$GCC" = yes; then
17229 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"`
17230 else
17231 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17232 fi
17233 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17234 ;;
17235
17236dgux*)
17237 version_type=linux
17238 need_lib_prefix=no
17239 need_version=no
17240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17241 soname_spec='${libname}${release}${shared_ext}$major'
17242 shlibpath_var=LD_LIBRARY_PATH
17243 ;;
17244
17245freebsd1*)
17246 dynamic_linker=no
17247 ;;
17248
17249kfreebsd*-gnu)
17250 version_type=linux
17251 need_lib_prefix=no
17252 need_version=no
17253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17254 soname_spec='${libname}${release}${shared_ext}$major'
17255 shlibpath_var=LD_LIBRARY_PATH
17256 shlibpath_overrides_runpath=no
17257 hardcode_into_libs=yes
17258 dynamic_linker='GNU ld.so'
17259 ;;
17260
vapier7f19c022007-02-17 14:46:31 +000017261freebsd* | dragonfly*)
17262 # DragonFly does not have aout. When/if they implement a new
17263 # versioning mechanism, adjust this.
17264 if test -x /usr/bin/objformat; then
17265 objformat=`/usr/bin/objformat`
17266 else
17267 case $host_os in
17268 freebsd[123]*) objformat=aout ;;
17269 *) objformat=elf ;;
17270 esac
17271 fi
17272 # Handle Gentoo/FreeBSD as it was Linux
17273 case $host_vendor in
17274 gentoo)
17275 version_type=linux ;;
17276 *)
17277 version_type=freebsd-$objformat ;;
17278 esac
17279
a.rottmann9bc8b932004-02-29 15:18:31 +000017280 case $version_type in
17281 freebsd-elf*)
17282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17283 need_version=no
17284 need_lib_prefix=no
17285 ;;
17286 freebsd-*)
17287 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17288 need_version=yes
17289 ;;
vapier7f19c022007-02-17 14:46:31 +000017290 linux)
17291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17292 soname_spec='${libname}${release}${shared_ext}$major'
17293 need_lib_prefix=no
17294 need_version=no
17295 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000017296 esac
17297 shlibpath_var=LD_LIBRARY_PATH
17298 case $host_os in
17299 freebsd2*)
17300 shlibpath_overrides_runpath=yes
17301 ;;
vapier7f19c022007-02-17 14:46:31 +000017302 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000017303 shlibpath_overrides_runpath=yes
17304 hardcode_into_libs=yes
17305 ;;
vapier7f19c022007-02-17 14:46:31 +000017306 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17307 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a.rottmann9bc8b932004-02-29 15:18:31 +000017308 shlibpath_overrides_runpath=no
17309 hardcode_into_libs=yes
17310 ;;
vapier7f19c022007-02-17 14:46:31 +000017311 freebsd*) # from 4.6 on
17312 shlibpath_overrides_runpath=yes
17313 hardcode_into_libs=yes
17314 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000017315 esac
17316 ;;
17317
17318gnu*)
17319 version_type=linux
17320 need_lib_prefix=no
17321 need_version=no
17322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17323 soname_spec='${libname}${release}${shared_ext}$major'
17324 shlibpath_var=LD_LIBRARY_PATH
17325 hardcode_into_libs=yes
17326 ;;
17327
17328hpux9* | hpux10* | hpux11*)
17329 # Give a soname corresponding to the major version so that dld.sl refuses to
17330 # link against other versions.
17331 version_type=sunos
17332 need_lib_prefix=no
17333 need_version=no
vapier7f19c022007-02-17 14:46:31 +000017334 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000017335 ia64*)
vapier7f19c022007-02-17 14:46:31 +000017336 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +000017337 hardcode_into_libs=yes
17338 dynamic_linker="$host_os dld.so"
17339 shlibpath_var=LD_LIBRARY_PATH
17340 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17342 soname_spec='${libname}${release}${shared_ext}$major'
17343 if test "X$HPUX_IA64_MODE" = X32; then
17344 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17345 else
17346 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17347 fi
17348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17349 ;;
17350 hppa*64*)
vapier7f19c022007-02-17 14:46:31 +000017351 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000017352 hardcode_into_libs=yes
17353 dynamic_linker="$host_os dld.sl"
17354 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17357 soname_spec='${libname}${release}${shared_ext}$major'
17358 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17360 ;;
17361 *)
vapier7f19c022007-02-17 14:46:31 +000017362 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000017363 dynamic_linker="$host_os dld.sl"
17364 shlibpath_var=SHLIB_PATH
17365 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17367 soname_spec='${libname}${release}${shared_ext}$major'
17368 ;;
17369 esac
17370 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17371 postinstall_cmds='chmod 555 $lib'
17372 ;;
17373
vapier7f19c022007-02-17 14:46:31 +000017374interix3*)
17375 version_type=linux
17376 need_lib_prefix=no
17377 need_version=no
17378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17379 soname_spec='${libname}${release}${shared_ext}$major'
17380 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17381 shlibpath_var=LD_LIBRARY_PATH
17382 shlibpath_overrides_runpath=no
17383 hardcode_into_libs=yes
17384 ;;
17385
a.rottmann9bc8b932004-02-29 15:18:31 +000017386irix5* | irix6* | nonstopux*)
17387 case $host_os in
17388 nonstopux*) version_type=nonstopux ;;
17389 *)
17390 if test "$lt_cv_prog_gnu_ld" = yes; then
17391 version_type=linux
17392 else
17393 version_type=irix
17394 fi ;;
17395 esac
17396 need_lib_prefix=no
17397 need_version=no
17398 soname_spec='${libname}${release}${shared_ext}$major'
17399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17400 case $host_os in
17401 irix5* | nonstopux*)
17402 libsuff= shlibsuff=
17403 ;;
17404 *)
17405 case $LD in # libtool.m4 will add one of these switches to LD
17406 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17407 libsuff= shlibsuff= libmagic=32-bit;;
17408 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17409 libsuff=32 shlibsuff=N32 libmagic=N32;;
17410 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17411 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17412 *) libsuff= shlibsuff= libmagic=never-match;;
17413 esac
17414 ;;
17415 esac
17416 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17417 shlibpath_overrides_runpath=no
17418 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17419 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17420 hardcode_into_libs=yes
17421 ;;
17422
17423# No shared lib support for Linux oldld, aout, or coff.
17424linux*oldld* | linux*aout* | linux*coff*)
17425 dynamic_linker=no
17426 ;;
17427
17428# This must be Linux ELF.
17429linux*)
17430 version_type=linux
17431 need_lib_prefix=no
17432 need_version=no
17433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17434 soname_spec='${libname}${release}${shared_ext}$major'
17435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17436 shlibpath_var=LD_LIBRARY_PATH
17437 shlibpath_overrides_runpath=no
17438 # This implies no fast_install, which is unacceptable.
17439 # Some rework will be needed to allow for fast_install
17440 # before this can be enabled.
17441 hardcode_into_libs=yes
17442
17443 # Append ld.so.conf contents to the search path
17444 if test -f /etc/ld.so.conf; then
vapier7f19c022007-02-17 14:46:31 +000017445 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' ' '`
17446 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +000017447 fi
17448
17449 # We used to test for /lib/ld.so.1 and disable shared libraries on
17450 # powerpc, because MkLinux only supported shared libraries with the
17451 # GNU dynamic linker. Since this was broken with cross compilers,
17452 # most powerpc-linux boxes support dynamic linking these days and
17453 # people can always --disable-shared, the test was removed, and we
17454 # assume the GNU/Linux dynamic linker is in use.
17455 dynamic_linker='GNU/Linux ld.so'
17456 ;;
17457
17458knetbsd*-gnu)
17459 version_type=linux
17460 need_lib_prefix=no
17461 need_version=no
17462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17463 soname_spec='${libname}${release}${shared_ext}$major'
17464 shlibpath_var=LD_LIBRARY_PATH
17465 shlibpath_overrides_runpath=no
17466 hardcode_into_libs=yes
17467 dynamic_linker='GNU ld.so'
17468 ;;
17469
17470netbsd*)
17471 version_type=sunos
17472 need_lib_prefix=no
17473 need_version=no
17474 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17477 dynamic_linker='NetBSD (a.out) ld.so'
17478 else
17479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17480 soname_spec='${libname}${release}${shared_ext}$major'
17481 dynamic_linker='NetBSD ld.elf_so'
17482 fi
17483 shlibpath_var=LD_LIBRARY_PATH
17484 shlibpath_overrides_runpath=yes
17485 hardcode_into_libs=yes
17486 ;;
17487
17488newsos6)
17489 version_type=linux
17490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17491 shlibpath_var=LD_LIBRARY_PATH
17492 shlibpath_overrides_runpath=yes
17493 ;;
17494
17495nto-qnx*)
17496 version_type=linux
17497 need_lib_prefix=no
17498 need_version=no
17499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17500 soname_spec='${libname}${release}${shared_ext}$major'
17501 shlibpath_var=LD_LIBRARY_PATH
17502 shlibpath_overrides_runpath=yes
17503 ;;
17504
17505openbsd*)
17506 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +000017507 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +000017508 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +000017509 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17510 case $host_os in
17511 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17512 *) need_version=no ;;
17513 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000017514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17515 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17516 shlibpath_var=LD_LIBRARY_PATH
17517 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17518 case $host_os in
17519 openbsd2.[89] | openbsd2.[89].*)
17520 shlibpath_overrides_runpath=no
17521 ;;
17522 *)
17523 shlibpath_overrides_runpath=yes
17524 ;;
17525 esac
17526 else
17527 shlibpath_overrides_runpath=yes
17528 fi
17529 ;;
17530
17531os2*)
17532 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +000017533 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000017534 need_lib_prefix=no
17535 library_names_spec='$libname${shared_ext} $libname.a'
17536 dynamic_linker='OS/2 ld.exe'
17537 shlibpath_var=LIBPATH
17538 ;;
17539
17540osf3* | osf4* | osf5*)
17541 version_type=osf
17542 need_lib_prefix=no
17543 need_version=no
17544 soname_spec='${libname}${release}${shared_ext}$major'
17545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17546 shlibpath_var=LD_LIBRARY_PATH
17547 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17548 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17549 ;;
17550
a.rottmann9bc8b932004-02-29 15:18:31 +000017551solaris*)
17552 version_type=linux
17553 need_lib_prefix=no
17554 need_version=no
17555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17556 soname_spec='${libname}${release}${shared_ext}$major'
17557 shlibpath_var=LD_LIBRARY_PATH
17558 shlibpath_overrides_runpath=yes
17559 hardcode_into_libs=yes
17560 # ldd complains unless libraries are executable
17561 postinstall_cmds='chmod +x $lib'
17562 ;;
17563
17564sunos4*)
17565 version_type=sunos
17566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17567 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17568 shlibpath_var=LD_LIBRARY_PATH
17569 shlibpath_overrides_runpath=yes
17570 if test "$with_gnu_ld" = yes; then
17571 need_lib_prefix=no
17572 fi
17573 need_version=yes
17574 ;;
17575
vapier7f19c022007-02-17 14:46:31 +000017576sysv4 | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +000017577 version_type=linux
17578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17579 soname_spec='${libname}${release}${shared_ext}$major'
17580 shlibpath_var=LD_LIBRARY_PATH
17581 case $host_vendor in
17582 sni)
17583 shlibpath_overrides_runpath=no
17584 need_lib_prefix=no
17585 export_dynamic_flag_spec='${wl}-Blargedynsym'
17586 runpath_var=LD_RUN_PATH
17587 ;;
17588 siemens)
17589 need_lib_prefix=no
17590 ;;
17591 motorola)
17592 need_lib_prefix=no
17593 need_version=no
17594 shlibpath_overrides_runpath=no
17595 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17596 ;;
17597 esac
17598 ;;
17599
17600sysv4*MP*)
17601 if test -d /usr/nec ;then
17602 version_type=linux
17603 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17604 soname_spec='$libname${shared_ext}.$major'
17605 shlibpath_var=LD_LIBRARY_PATH
17606 fi
17607 ;;
17608
vapier7f19c022007-02-17 14:46:31 +000017609sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17610 version_type=freebsd-elf
17611 need_lib_prefix=no
17612 need_version=no
17613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17614 soname_spec='${libname}${release}${shared_ext}$major'
17615 shlibpath_var=LD_LIBRARY_PATH
17616 hardcode_into_libs=yes
17617 if test "$with_gnu_ld" = yes; then
17618 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17619 shlibpath_overrides_runpath=no
17620 else
17621 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17622 shlibpath_overrides_runpath=yes
17623 case $host_os in
17624 sco3.2v5*)
17625 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17626 ;;
17627 esac
17628 fi
17629 sys_lib_dlsearch_path_spec='/usr/lib'
17630 ;;
17631
a.rottmann9bc8b932004-02-29 15:18:31 +000017632uts4*)
17633 version_type=linux
17634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17635 soname_spec='${libname}${release}${shared_ext}$major'
17636 shlibpath_var=LD_LIBRARY_PATH
17637 ;;
17638
17639*)
17640 dynamic_linker=no
17641 ;;
17642esac
mlcreech94984912008-03-04 19:03:08 +000017643{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17644echo "${ECHO_T}$dynamic_linker" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000017645test "$dynamic_linker" = no && can_build_shared=no
17646
vapier7f19c022007-02-17 14:46:31 +000017647variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17648if test "$GCC" = yes; then
17649 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17650fi
17651
mlcreech94984912008-03-04 19:03:08 +000017652{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17653echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000017654hardcode_action_GCJ=
17655if test -n "$hardcode_libdir_flag_spec_GCJ" || \
vapier7f19c022007-02-17 14:46:31 +000017656 test -n "$runpath_var_GCJ" || \
17657 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
a.rottmann9bc8b932004-02-29 15:18:31 +000017658
17659 # We can hardcode non-existant directories.
17660 if test "$hardcode_direct_GCJ" != no &&
17661 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17662 # have to relink, otherwise we might link with an installed library
17663 # when we should be linking with a yet-to-be-installed one
17664 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17665 test "$hardcode_minus_L_GCJ" != no; then
17666 # Linking always hardcodes the temporary library directory.
17667 hardcode_action_GCJ=relink
17668 else
17669 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17670 hardcode_action_GCJ=immediate
17671 fi
17672else
17673 # We cannot hardcode anything, or else we can only hardcode existing
17674 # directories.
17675 hardcode_action_GCJ=unsupported
17676fi
mlcreech94984912008-03-04 19:03:08 +000017677{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17678echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000017679
17680if test "$hardcode_action_GCJ" = relink; then
17681 # Fast installation is not supported
17682 enable_fast_install=no
17683elif test "$shlibpath_overrides_runpath" = yes ||
17684 test "$enable_shared" = no; then
17685 # Fast installation is not necessary
17686 enable_fast_install=needless
17687fi
17688
a.rottmann9bc8b932004-02-29 15:18:31 +000017689
17690# The else clause should only fire when bootstrapping the
17691# libtool distribution, otherwise you forgot to ship ltmain.sh
17692# with your package, and you will get complaints that there are
17693# no rules to generate ltmain.sh.
17694if test -f "$ltmain"; then
17695 # See if we are running on zsh, and set the options which allow our commands through
17696 # without removal of \ escapes.
17697 if test -n "${ZSH_VERSION+set}" ; then
17698 setopt NO_GLOB_SUBST
17699 fi
17700 # Now quote all the things that may contain metacharacters while being
17701 # careful not to overquote the AC_SUBSTed values. We take copies of the
17702 # variables and quote the copies for generation of the libtool script.
vapier7f19c022007-02-17 14:46:31 +000017703 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
a.rottmann9bc8b932004-02-29 15:18:31 +000017704 SED SHELL STRIP \
17705 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17706 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17707 deplibs_check_method reload_flag reload_cmds need_locks \
17708 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17709 lt_cv_sys_global_symbol_to_c_name_address \
17710 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17711 old_postinstall_cmds old_postuninstall_cmds \
17712 compiler_GCJ \
17713 CC_GCJ \
17714 LD_GCJ \
17715 lt_prog_compiler_wl_GCJ \
17716 lt_prog_compiler_pic_GCJ \
17717 lt_prog_compiler_static_GCJ \
17718 lt_prog_compiler_no_builtin_flag_GCJ \
17719 export_dynamic_flag_spec_GCJ \
17720 thread_safe_flag_spec_GCJ \
17721 whole_archive_flag_spec_GCJ \
17722 enable_shared_with_static_runtimes_GCJ \
17723 old_archive_cmds_GCJ \
17724 old_archive_from_new_cmds_GCJ \
17725 predep_objects_GCJ \
17726 postdep_objects_GCJ \
17727 predeps_GCJ \
17728 postdeps_GCJ \
17729 compiler_lib_search_path_GCJ \
17730 archive_cmds_GCJ \
17731 archive_expsym_cmds_GCJ \
17732 postinstall_cmds_GCJ \
17733 postuninstall_cmds_GCJ \
17734 old_archive_from_expsyms_cmds_GCJ \
17735 allow_undefined_flag_GCJ \
17736 no_undefined_flag_GCJ \
17737 export_symbols_cmds_GCJ \
17738 hardcode_libdir_flag_spec_GCJ \
17739 hardcode_libdir_flag_spec_ld_GCJ \
17740 hardcode_libdir_separator_GCJ \
17741 hardcode_automatic_GCJ \
17742 module_cmds_GCJ \
17743 module_expsym_cmds_GCJ \
17744 lt_cv_prog_compiler_c_o_GCJ \
17745 exclude_expsyms_GCJ \
17746 include_expsyms_GCJ; do
17747
17748 case $var in
17749 old_archive_cmds_GCJ | \
17750 old_archive_from_new_cmds_GCJ | \
17751 archive_cmds_GCJ | \
17752 archive_expsym_cmds_GCJ | \
17753 module_cmds_GCJ | \
17754 module_expsym_cmds_GCJ | \
17755 old_archive_from_expsyms_cmds_GCJ | \
17756 export_symbols_cmds_GCJ | \
17757 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17758 postinstall_cmds | postuninstall_cmds | \
17759 old_postinstall_cmds | old_postuninstall_cmds | \
17760 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17761 # Double-quote double-evaled strings.
17762 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17763 ;;
17764 *)
17765 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17766 ;;
17767 esac
17768 done
17769
17770 case $lt_echo in
17771 *'\$0 --fallback-echo"')
17772 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17773 ;;
17774 esac
17775
17776cfgfile="$ofile"
17777
17778 cat <<__EOF__ >> "$cfgfile"
17779# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17780
17781# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17782
17783# Shell to use when invoking shell scripts.
17784SHELL=$lt_SHELL
17785
17786# Whether or not to build shared libraries.
17787build_libtool_libs=$enable_shared
17788
17789# Whether or not to build static libraries.
17790build_old_libs=$enable_static
17791
17792# Whether or not to add -lc for building shared libraries.
17793build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17794
17795# Whether or not to disallow shared libs when runtime libs are static
17796allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17797
17798# Whether or not to optimize for fast installation.
17799fast_install=$enable_fast_install
17800
17801# The host system.
17802host_alias=$host_alias
17803host=$host
vapier7f19c022007-02-17 14:46:31 +000017804host_os=$host_os
17805
17806# The build system.
17807build_alias=$build_alias
17808build=$build
17809build_os=$build_os
a.rottmann9bc8b932004-02-29 15:18:31 +000017810
17811# An echo program that does not interpret backslashes.
17812echo=$lt_echo
17813
17814# The archiver.
17815AR=$lt_AR
17816AR_FLAGS=$lt_AR_FLAGS
17817
17818# A C compiler.
17819LTCC=$lt_LTCC
17820
vapier7f19c022007-02-17 14:46:31 +000017821# LTCC compiler flags.
17822LTCFLAGS=$lt_LTCFLAGS
17823
a.rottmann9bc8b932004-02-29 15:18:31 +000017824# A language-specific compiler.
17825CC=$lt_compiler_GCJ
17826
17827# Is the compiler the GNU C compiler?
17828with_gcc=$GCC_GCJ
17829
17830# An ERE matcher.
17831EGREP=$lt_EGREP
17832
17833# The linker used to build libraries.
17834LD=$lt_LD_GCJ
17835
17836# Whether we need hard or soft links.
17837LN_S=$lt_LN_S
17838
17839# A BSD-compatible nm program.
17840NM=$lt_NM
17841
17842# A symbol stripping program
17843STRIP=$lt_STRIP
17844
17845# Used to examine libraries when file_magic_cmd begins "file"
17846MAGIC_CMD=$MAGIC_CMD
17847
17848# Used on cygwin: DLL creation program.
17849DLLTOOL="$DLLTOOL"
17850
17851# Used on cygwin: object dumper.
17852OBJDUMP="$OBJDUMP"
17853
17854# Used on cygwin: assembler.
17855AS="$AS"
17856
17857# The name of the directory that contains temporary libtool files.
17858objdir=$objdir
17859
17860# How to create reloadable object files.
17861reload_flag=$lt_reload_flag
17862reload_cmds=$lt_reload_cmds
17863
17864# How to pass a linker flag through the compiler.
17865wl=$lt_lt_prog_compiler_wl_GCJ
17866
17867# Object file suffix (normally "o").
17868objext="$ac_objext"
17869
17870# Old archive suffix (normally "a").
17871libext="$libext"
17872
17873# Shared library suffix (normally ".so").
vapier7f19c022007-02-17 14:46:31 +000017874shrext_cmds='$shrext_cmds'
a.rottmann9bc8b932004-02-29 15:18:31 +000017875
17876# Executable file suffix (normally "").
17877exeext="$exeext"
17878
17879# Additional compiler flags for building library objects.
17880pic_flag=$lt_lt_prog_compiler_pic_GCJ
17881pic_mode=$pic_mode
17882
17883# What is the maximum length of a command?
17884max_cmd_len=$lt_cv_sys_max_cmd_len
17885
17886# Does compiler simultaneously support -c and -o options?
17887compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17888
vapier7f19c022007-02-17 14:46:31 +000017889# Must we lock files when doing compilation?
a.rottmann9bc8b932004-02-29 15:18:31 +000017890need_locks=$lt_need_locks
17891
17892# Do we need the lib prefix for modules?
17893need_lib_prefix=$need_lib_prefix
17894
17895# Do we need a version for libraries?
17896need_version=$need_version
17897
17898# Whether dlopen is supported.
17899dlopen_support=$enable_dlopen
17900
17901# Whether dlopen of programs is supported.
17902dlopen_self=$enable_dlopen_self
17903
17904# Whether dlopen of statically linked programs is supported.
17905dlopen_self_static=$enable_dlopen_self_static
17906
17907# Compiler flag to prevent dynamic linking.
17908link_static_flag=$lt_lt_prog_compiler_static_GCJ
17909
17910# Compiler flag to turn off builtin functions.
17911no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17912
17913# Compiler flag to allow reflexive dlopens.
17914export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17915
17916# Compiler flag to generate shared objects directly from archives.
17917whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17918
17919# Compiler flag to generate thread-safe objects.
17920thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17921
17922# Library versioning type.
17923version_type=$version_type
17924
17925# Format of library name prefix.
17926libname_spec=$lt_libname_spec
17927
17928# List of archive names. First name is the real one, the rest are links.
17929# The last name is the one that the linker finds with -lNAME.
17930library_names_spec=$lt_library_names_spec
17931
17932# The coded name of the library, if different from the real name.
17933soname_spec=$lt_soname_spec
17934
17935# Commands used to build and install an old-style archive.
17936RANLIB=$lt_RANLIB
17937old_archive_cmds=$lt_old_archive_cmds_GCJ
17938old_postinstall_cmds=$lt_old_postinstall_cmds
17939old_postuninstall_cmds=$lt_old_postuninstall_cmds
17940
17941# Create an old-style archive from a shared archive.
17942old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17943
17944# Create a temporary old-style archive to link instead of a shared archive.
17945old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17946
17947# Commands used to build and install a shared archive.
17948archive_cmds=$lt_archive_cmds_GCJ
17949archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17950postinstall_cmds=$lt_postinstall_cmds
17951postuninstall_cmds=$lt_postuninstall_cmds
17952
17953# Commands used to build a loadable module (assumed same as above if empty)
17954module_cmds=$lt_module_cmds_GCJ
17955module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17956
17957# Commands to strip libraries.
17958old_striplib=$lt_old_striplib
17959striplib=$lt_striplib
17960
17961# Dependencies to place before the objects being linked to create a
17962# shared library.
17963predep_objects=$lt_predep_objects_GCJ
17964
17965# Dependencies to place after the objects being linked to create a
17966# shared library.
17967postdep_objects=$lt_postdep_objects_GCJ
17968
17969# Dependencies to place before the objects being linked to create a
17970# shared library.
17971predeps=$lt_predeps_GCJ
17972
17973# Dependencies to place after the objects being linked to create a
17974# shared library.
17975postdeps=$lt_postdeps_GCJ
17976
17977# The library search path used internally by the compiler when linking
17978# a shared library.
17979compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17980
17981# Method to check whether dependent libraries are shared objects.
17982deplibs_check_method=$lt_deplibs_check_method
17983
17984# Command to use when deplibs_check_method == file_magic.
17985file_magic_cmd=$lt_file_magic_cmd
17986
17987# Flag that allows shared libraries with undefined symbols to be built.
17988allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17989
17990# Flag that forces no undefined symbols.
17991no_undefined_flag=$lt_no_undefined_flag_GCJ
17992
17993# Commands used to finish a libtool library installation in a directory.
17994finish_cmds=$lt_finish_cmds
17995
17996# Same as above, but a single script fragment to be evaled but not shown.
17997finish_eval=$lt_finish_eval
17998
17999# Take the output of nm and produce a listing of raw symbols and C names.
18000global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18001
18002# Transform the output of nm in a proper C declaration
18003global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18004
18005# Transform the output of nm in a C name address pair
18006global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18007
18008# This is the shared library runtime path variable.
18009runpath_var=$runpath_var
18010
18011# This is the shared library path variable.
18012shlibpath_var=$shlibpath_var
18013
18014# Is shlibpath searched before the hard-coded library search path?
18015shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18016
18017# How to hardcode a shared library path into an executable.
18018hardcode_action=$hardcode_action_GCJ
18019
18020# Whether we should hardcode library paths into libraries.
18021hardcode_into_libs=$hardcode_into_libs
18022
18023# Flag to hardcode \$libdir into a binary during linking.
18024# This must work even if \$libdir does not exist.
18025hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18026
18027# If ld is used when linking, flag to hardcode \$libdir into
18028# a binary during linking. This must work even if \$libdir does
18029# not exist.
18030hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18031
18032# Whether we need a single -rpath flag with a separated argument.
18033hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18034
18035# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18036# resulting binary.
18037hardcode_direct=$hardcode_direct_GCJ
18038
18039# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18040# resulting binary.
18041hardcode_minus_L=$hardcode_minus_L_GCJ
18042
18043# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18044# the resulting binary.
18045hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18046
18047# Set to yes if building a shared library automatically hardcodes DIR into the library
18048# and all subsequent libraries and executables linked against it.
18049hardcode_automatic=$hardcode_automatic_GCJ
18050
18051# Variables whose values should be saved in libtool wrapper scripts and
18052# restored at relink time.
18053variables_saved_for_relink="$variables_saved_for_relink"
18054
18055# Whether libtool must link a program against all its dependency libraries.
18056link_all_deplibs=$link_all_deplibs_GCJ
18057
18058# Compile-time system search path for libraries
18059sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18060
18061# Run-time system search path for libraries
18062sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18063
18064# Fix the shell variable \$srcfile for the compiler.
18065fix_srcfile_path="$fix_srcfile_path_GCJ"
18066
18067# Set to yes if exported symbols are required.
18068always_export_symbols=$always_export_symbols_GCJ
18069
18070# The commands to list exported symbols.
18071export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18072
18073# The commands to extract the exported symbol list from a shared archive.
18074extract_expsyms_cmds=$lt_extract_expsyms_cmds
18075
18076# Symbols that should not be listed in the preloaded symbols.
18077exclude_expsyms=$lt_exclude_expsyms_GCJ
18078
18079# Symbols that must always be exported.
18080include_expsyms=$lt_include_expsyms_GCJ
18081
18082# ### END LIBTOOL TAG CONFIG: $tagname
18083
18084__EOF__
18085
18086
18087else
18088 # If there is no Makefile yet, we rely on a make rule to execute
18089 # `config.status --recheck' to rerun these tests and create the
18090 # libtool script then.
18091 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18092 if test -f "$ltmain_in"; then
18093 test -f Makefile && make "$ltmain"
18094 fi
18095fi
18096
18097
18098ac_ext=c
18099ac_cpp='$CPP $CPPFLAGS'
18100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18102ac_compiler_gnu=$ac_cv_c_compiler_gnu
18103
18104CC="$lt_save_CC"
18105
18106 else
18107 tagname=""
18108 fi
18109 ;;
18110
18111 RC)
18112
18113
a.rottmann9bc8b932004-02-29 15:18:31 +000018114# Source file extension for RC test sources.
18115ac_ext=rc
18116
18117# Object file extension for compiled RC test sources.
18118objext=o
18119objext_RC=$objext
18120
18121# Code to be used in simple compile tests
18122lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18123
18124# Code to be used in simple link tests
18125lt_simple_link_test_code="$lt_simple_compile_test_code"
18126
18127# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18128
18129# If no C compiler was specified, use CC.
18130LTCC=${LTCC-"$CC"}
18131
vapier7f19c022007-02-17 14:46:31 +000018132# If no C compiler flags were specified, use CFLAGS.
18133LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18134
a.rottmann9bc8b932004-02-29 15:18:31 +000018135# Allow CC to be a program name with arguments.
18136compiler=$CC
18137
18138
vapier7f19c022007-02-17 14:46:31 +000018139# save warnings/boilerplate of simple test code
18140ac_outfile=conftest.$ac_objext
18141printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18142eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18143_lt_compiler_boilerplate=`cat conftest.err`
18144$rm conftest*
18145
18146ac_outfile=conftest.$ac_objext
18147printf "$lt_simple_link_test_code" >conftest.$ac_ext
18148eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18149_lt_linker_boilerplate=`cat conftest.err`
18150$rm conftest*
18151
18152
a.rottmann9bc8b932004-02-29 15:18:31 +000018153# Allow CC to be a program name with arguments.
18154lt_save_CC="$CC"
18155CC=${RC-"windres"}
18156compiler=$CC
18157compiler_RC=$CC
vapier7f19c022007-02-17 14:46:31 +000018158for cc_temp in $compiler""; do
18159 case $cc_temp in
18160 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18161 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18162 \-*) ;;
18163 *) break;;
18164 esac
18165done
18166cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18167
a.rottmann9bc8b932004-02-29 15:18:31 +000018168lt_cv_prog_compiler_c_o_RC=yes
18169
18170# The else clause should only fire when bootstrapping the
18171# libtool distribution, otherwise you forgot to ship ltmain.sh
18172# with your package, and you will get complaints that there are
18173# no rules to generate ltmain.sh.
18174if test -f "$ltmain"; then
18175 # See if we are running on zsh, and set the options which allow our commands through
18176 # without removal of \ escapes.
18177 if test -n "${ZSH_VERSION+set}" ; then
18178 setopt NO_GLOB_SUBST
18179 fi
18180 # Now quote all the things that may contain metacharacters while being
18181 # careful not to overquote the AC_SUBSTed values. We take copies of the
18182 # variables and quote the copies for generation of the libtool script.
vapier7f19c022007-02-17 14:46:31 +000018183 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
a.rottmann9bc8b932004-02-29 15:18:31 +000018184 SED SHELL STRIP \
18185 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18186 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18187 deplibs_check_method reload_flag reload_cmds need_locks \
18188 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18189 lt_cv_sys_global_symbol_to_c_name_address \
18190 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18191 old_postinstall_cmds old_postuninstall_cmds \
18192 compiler_RC \
18193 CC_RC \
18194 LD_RC \
18195 lt_prog_compiler_wl_RC \
18196 lt_prog_compiler_pic_RC \
18197 lt_prog_compiler_static_RC \
18198 lt_prog_compiler_no_builtin_flag_RC \
18199 export_dynamic_flag_spec_RC \
18200 thread_safe_flag_spec_RC \
18201 whole_archive_flag_spec_RC \
18202 enable_shared_with_static_runtimes_RC \
18203 old_archive_cmds_RC \
18204 old_archive_from_new_cmds_RC \
18205 predep_objects_RC \
18206 postdep_objects_RC \
18207 predeps_RC \
18208 postdeps_RC \
18209 compiler_lib_search_path_RC \
18210 archive_cmds_RC \
18211 archive_expsym_cmds_RC \
18212 postinstall_cmds_RC \
18213 postuninstall_cmds_RC \
18214 old_archive_from_expsyms_cmds_RC \
18215 allow_undefined_flag_RC \
18216 no_undefined_flag_RC \
18217 export_symbols_cmds_RC \
18218 hardcode_libdir_flag_spec_RC \
18219 hardcode_libdir_flag_spec_ld_RC \
18220 hardcode_libdir_separator_RC \
18221 hardcode_automatic_RC \
18222 module_cmds_RC \
18223 module_expsym_cmds_RC \
18224 lt_cv_prog_compiler_c_o_RC \
18225 exclude_expsyms_RC \
18226 include_expsyms_RC; do
18227
18228 case $var in
18229 old_archive_cmds_RC | \
18230 old_archive_from_new_cmds_RC | \
18231 archive_cmds_RC | \
18232 archive_expsym_cmds_RC | \
18233 module_cmds_RC | \
18234 module_expsym_cmds_RC | \
18235 old_archive_from_expsyms_cmds_RC | \
18236 export_symbols_cmds_RC | \
18237 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18238 postinstall_cmds | postuninstall_cmds | \
18239 old_postinstall_cmds | old_postuninstall_cmds | \
18240 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18241 # Double-quote double-evaled strings.
18242 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18243 ;;
18244 *)
18245 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18246 ;;
18247 esac
18248 done
18249
18250 case $lt_echo in
18251 *'\$0 --fallback-echo"')
18252 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18253 ;;
18254 esac
18255
18256cfgfile="$ofile"
18257
18258 cat <<__EOF__ >> "$cfgfile"
18259# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18260
18261# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18262
18263# Shell to use when invoking shell scripts.
18264SHELL=$lt_SHELL
18265
18266# Whether or not to build shared libraries.
18267build_libtool_libs=$enable_shared
18268
18269# Whether or not to build static libraries.
18270build_old_libs=$enable_static
18271
18272# Whether or not to add -lc for building shared libraries.
18273build_libtool_need_lc=$archive_cmds_need_lc_RC
18274
18275# Whether or not to disallow shared libs when runtime libs are static
18276allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18277
18278# Whether or not to optimize for fast installation.
18279fast_install=$enable_fast_install
18280
18281# The host system.
18282host_alias=$host_alias
18283host=$host
vapier7f19c022007-02-17 14:46:31 +000018284host_os=$host_os
18285
18286# The build system.
18287build_alias=$build_alias
18288build=$build
18289build_os=$build_os
a.rottmann9bc8b932004-02-29 15:18:31 +000018290
18291# An echo program that does not interpret backslashes.
18292echo=$lt_echo
18293
18294# The archiver.
18295AR=$lt_AR
18296AR_FLAGS=$lt_AR_FLAGS
18297
18298# A C compiler.
18299LTCC=$lt_LTCC
18300
vapier7f19c022007-02-17 14:46:31 +000018301# LTCC compiler flags.
18302LTCFLAGS=$lt_LTCFLAGS
18303
a.rottmann9bc8b932004-02-29 15:18:31 +000018304# A language-specific compiler.
18305CC=$lt_compiler_RC
18306
18307# Is the compiler the GNU C compiler?
18308with_gcc=$GCC_RC
18309
18310# An ERE matcher.
18311EGREP=$lt_EGREP
18312
18313# The linker used to build libraries.
18314LD=$lt_LD_RC
18315
18316# Whether we need hard or soft links.
18317LN_S=$lt_LN_S
18318
18319# A BSD-compatible nm program.
18320NM=$lt_NM
18321
18322# A symbol stripping program
18323STRIP=$lt_STRIP
18324
18325# Used to examine libraries when file_magic_cmd begins "file"
18326MAGIC_CMD=$MAGIC_CMD
18327
18328# Used on cygwin: DLL creation program.
18329DLLTOOL="$DLLTOOL"
18330
18331# Used on cygwin: object dumper.
18332OBJDUMP="$OBJDUMP"
18333
18334# Used on cygwin: assembler.
18335AS="$AS"
18336
18337# The name of the directory that contains temporary libtool files.
18338objdir=$objdir
18339
18340# How to create reloadable object files.
18341reload_flag=$lt_reload_flag
18342reload_cmds=$lt_reload_cmds
18343
18344# How to pass a linker flag through the compiler.
18345wl=$lt_lt_prog_compiler_wl_RC
18346
18347# Object file suffix (normally "o").
18348objext="$ac_objext"
18349
18350# Old archive suffix (normally "a").
18351libext="$libext"
18352
18353# Shared library suffix (normally ".so").
vapier7f19c022007-02-17 14:46:31 +000018354shrext_cmds='$shrext_cmds'
a.rottmann9bc8b932004-02-29 15:18:31 +000018355
18356# Executable file suffix (normally "").
18357exeext="$exeext"
18358
18359# Additional compiler flags for building library objects.
18360pic_flag=$lt_lt_prog_compiler_pic_RC
18361pic_mode=$pic_mode
18362
18363# What is the maximum length of a command?
18364max_cmd_len=$lt_cv_sys_max_cmd_len
18365
18366# Does compiler simultaneously support -c and -o options?
18367compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18368
vapier7f19c022007-02-17 14:46:31 +000018369# Must we lock files when doing compilation?
a.rottmann9bc8b932004-02-29 15:18:31 +000018370need_locks=$lt_need_locks
18371
18372# Do we need the lib prefix for modules?
18373need_lib_prefix=$need_lib_prefix
18374
18375# Do we need a version for libraries?
18376need_version=$need_version
18377
18378# Whether dlopen is supported.
18379dlopen_support=$enable_dlopen
18380
18381# Whether dlopen of programs is supported.
18382dlopen_self=$enable_dlopen_self
18383
18384# Whether dlopen of statically linked programs is supported.
18385dlopen_self_static=$enable_dlopen_self_static
18386
18387# Compiler flag to prevent dynamic linking.
18388link_static_flag=$lt_lt_prog_compiler_static_RC
18389
18390# Compiler flag to turn off builtin functions.
18391no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18392
18393# Compiler flag to allow reflexive dlopens.
18394export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18395
18396# Compiler flag to generate shared objects directly from archives.
18397whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18398
18399# Compiler flag to generate thread-safe objects.
18400thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18401
18402# Library versioning type.
18403version_type=$version_type
18404
18405# Format of library name prefix.
18406libname_spec=$lt_libname_spec
18407
18408# List of archive names. First name is the real one, the rest are links.
18409# The last name is the one that the linker finds with -lNAME.
18410library_names_spec=$lt_library_names_spec
18411
18412# The coded name of the library, if different from the real name.
18413soname_spec=$lt_soname_spec
18414
18415# Commands used to build and install an old-style archive.
18416RANLIB=$lt_RANLIB
18417old_archive_cmds=$lt_old_archive_cmds_RC
18418old_postinstall_cmds=$lt_old_postinstall_cmds
18419old_postuninstall_cmds=$lt_old_postuninstall_cmds
18420
18421# Create an old-style archive from a shared archive.
18422old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18423
18424# Create a temporary old-style archive to link instead of a shared archive.
18425old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18426
18427# Commands used to build and install a shared archive.
18428archive_cmds=$lt_archive_cmds_RC
18429archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18430postinstall_cmds=$lt_postinstall_cmds
18431postuninstall_cmds=$lt_postuninstall_cmds
18432
18433# Commands used to build a loadable module (assumed same as above if empty)
18434module_cmds=$lt_module_cmds_RC
18435module_expsym_cmds=$lt_module_expsym_cmds_RC
18436
18437# Commands to strip libraries.
18438old_striplib=$lt_old_striplib
18439striplib=$lt_striplib
18440
18441# Dependencies to place before the objects being linked to create a
18442# shared library.
18443predep_objects=$lt_predep_objects_RC
18444
18445# Dependencies to place after the objects being linked to create a
18446# shared library.
18447postdep_objects=$lt_postdep_objects_RC
18448
18449# Dependencies to place before the objects being linked to create a
18450# shared library.
18451predeps=$lt_predeps_RC
18452
18453# Dependencies to place after the objects being linked to create a
18454# shared library.
18455postdeps=$lt_postdeps_RC
18456
18457# The library search path used internally by the compiler when linking
18458# a shared library.
18459compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18460
18461# Method to check whether dependent libraries are shared objects.
18462deplibs_check_method=$lt_deplibs_check_method
18463
18464# Command to use when deplibs_check_method == file_magic.
18465file_magic_cmd=$lt_file_magic_cmd
18466
18467# Flag that allows shared libraries with undefined symbols to be built.
18468allow_undefined_flag=$lt_allow_undefined_flag_RC
18469
18470# Flag that forces no undefined symbols.
18471no_undefined_flag=$lt_no_undefined_flag_RC
18472
18473# Commands used to finish a libtool library installation in a directory.
18474finish_cmds=$lt_finish_cmds
18475
18476# Same as above, but a single script fragment to be evaled but not shown.
18477finish_eval=$lt_finish_eval
18478
18479# Take the output of nm and produce a listing of raw symbols and C names.
18480global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18481
18482# Transform the output of nm in a proper C declaration
18483global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18484
18485# Transform the output of nm in a C name address pair
18486global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18487
18488# This is the shared library runtime path variable.
18489runpath_var=$runpath_var
18490
18491# This is the shared library path variable.
18492shlibpath_var=$shlibpath_var
18493
18494# Is shlibpath searched before the hard-coded library search path?
18495shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18496
18497# How to hardcode a shared library path into an executable.
18498hardcode_action=$hardcode_action_RC
18499
18500# Whether we should hardcode library paths into libraries.
18501hardcode_into_libs=$hardcode_into_libs
18502
18503# Flag to hardcode \$libdir into a binary during linking.
18504# This must work even if \$libdir does not exist.
18505hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18506
18507# If ld is used when linking, flag to hardcode \$libdir into
18508# a binary during linking. This must work even if \$libdir does
18509# not exist.
18510hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18511
18512# Whether we need a single -rpath flag with a separated argument.
18513hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18514
18515# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18516# resulting binary.
18517hardcode_direct=$hardcode_direct_RC
18518
18519# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18520# resulting binary.
18521hardcode_minus_L=$hardcode_minus_L_RC
18522
18523# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18524# the resulting binary.
18525hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18526
18527# Set to yes if building a shared library automatically hardcodes DIR into the library
18528# and all subsequent libraries and executables linked against it.
18529hardcode_automatic=$hardcode_automatic_RC
18530
18531# Variables whose values should be saved in libtool wrapper scripts and
18532# restored at relink time.
18533variables_saved_for_relink="$variables_saved_for_relink"
18534
18535# Whether libtool must link a program against all its dependency libraries.
18536link_all_deplibs=$link_all_deplibs_RC
18537
18538# Compile-time system search path for libraries
18539sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18540
18541# Run-time system search path for libraries
18542sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18543
18544# Fix the shell variable \$srcfile for the compiler.
18545fix_srcfile_path="$fix_srcfile_path_RC"
18546
18547# Set to yes if exported symbols are required.
18548always_export_symbols=$always_export_symbols_RC
18549
18550# The commands to list exported symbols.
18551export_symbols_cmds=$lt_export_symbols_cmds_RC
18552
18553# The commands to extract the exported symbol list from a shared archive.
18554extract_expsyms_cmds=$lt_extract_expsyms_cmds
18555
18556# Symbols that should not be listed in the preloaded symbols.
18557exclude_expsyms=$lt_exclude_expsyms_RC
18558
18559# Symbols that must always be exported.
18560include_expsyms=$lt_include_expsyms_RC
18561
18562# ### END LIBTOOL TAG CONFIG: $tagname
18563
18564__EOF__
18565
18566
18567else
18568 # If there is no Makefile yet, we rely on a make rule to execute
18569 # `config.status --recheck' to rerun these tests and create the
18570 # libtool script then.
18571 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18572 if test -f "$ltmain_in"; then
18573 test -f Makefile && make "$ltmain"
18574 fi
18575fi
18576
18577
18578ac_ext=c
18579ac_cpp='$CPP $CPPFLAGS'
18580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18582ac_compiler_gnu=$ac_cv_c_compiler_gnu
18583
18584CC="$lt_save_CC"
18585
18586 ;;
18587
18588 *)
18589 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18590echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18591 { (exit 1); exit 1; }; }
18592 ;;
18593 esac
18594
18595 # Append the new tag name to the list of available tags.
18596 if test -n "$tagname" ; then
18597 available_tags="$available_tags $tagname"
18598 fi
18599 fi
18600 done
18601 IFS="$lt_save_ifs"
18602
18603 # Now substitute the updated list of available tags.
18604 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18605 mv "${ofile}T" "$ofile"
18606 chmod +x "$ofile"
18607 else
18608 rm -f "${ofile}T"
18609 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18610echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18611 { (exit 1); exit 1; }; }
18612 fi
18613fi
drh71eb93e2001-09-28 01:34:43 +000018614
drh71eb93e2001-09-28 01:34:43 +000018615
drh71eb93e2001-09-28 01:34:43 +000018616
18617# This can be used to rebuild libtool when needed
18618LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18619
18620# Always use our own libtool.
18621LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18622
18623# Prevent multiple expansion
18624
a.rottmann84e63352003-03-24 09:42:16 +000018625
a.rottmann9bc8b932004-02-29 15:18:31 +000018626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
drh71eb93e2001-09-28 01:34:43 +000018644# Find a good install program. We prefer a C program (faster),
18645# so one script is as good as another. But avoid the broken or
18646# incompatible versions:
18647# SysV /etc/install, /usr/sbin/install
18648# SunOS /usr/etc/install
18649# IRIX /sbin/install
18650# AIX /bin/install
18651# AmigaOS /C/install, which installs bootblocks on floppy discs
18652# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18653# AFS /usr/afsws/bin/install, which mishandles nonexistent args
18654# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +000018655# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +000018656# ./install, which can be erroneously created by make from ./install.sh.
mlcreech94984912008-03-04 19:03:08 +000018657{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18658echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +000018659if test -z "$INSTALL"; then
18660if test "${ac_cv_path_install+set}" = set; then
18661 echo $ECHO_N "(cached) $ECHO_C" >&6
18662else
a.rottmann84e63352003-03-24 09:42:16 +000018663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18664for as_dir in $PATH
18665do
18666 IFS=$as_save_IFS
18667 test -z "$as_dir" && as_dir=.
18668 # Account for people who put trailing slashes in PATH elements.
18669case $as_dir/ in
18670 ./ | .// | /cC/* | \
18671 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a.rottmann964dbb12004-02-26 19:47:42 +000018672 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +000018673 /usr/ucb/* ) ;;
18674 *)
18675 # OSF1 and SCO ODT 3.0 have their own names for install.
18676 # Don't use installbsd from OSF since it installs stuff as root
18677 # by default.
18678 for ac_prog in ginstall scoinst install; do
18679 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +000018680 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
a.rottmann964dbb12004-02-26 19:47:42 +000018681 if test $ac_prog = install &&
18682 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18683 # AIX install. It has an incompatible calling convention.
18684 :
18685 elif test $ac_prog = install &&
18686 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18687 # program-specific install script used by HP pwplus--don't use.
18688 :
18689 else
18690 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18691 break 3
18692 fi
18693 fi
drh71eb93e2001-09-28 01:34:43 +000018694 done
a.rottmann84e63352003-03-24 09:42:16 +000018695 done
18696 ;;
18697esac
18698done
mlcreech94984912008-03-04 19:03:08 +000018699IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +000018700
drh71eb93e2001-09-28 01:34:43 +000018701
18702fi
18703 if test "${ac_cv_path_install+set}" = set; then
18704 INSTALL=$ac_cv_path_install
18705 else
mlcreech94984912008-03-04 19:03:08 +000018706 # As a last resort, use the slow shell script. Don't cache a
18707 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +000018708 # break other packages using the cache if that directory is
mlcreech94984912008-03-04 19:03:08 +000018709 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +000018710 INSTALL=$ac_install_sh
18711 fi
18712fi
mlcreech94984912008-03-04 19:03:08 +000018713{ echo "$as_me:$LINENO: result: $INSTALL" >&5
18714echo "${ECHO_T}$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +000018715
18716# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18717# It thinks the first close brace ends the variable substitution.
18718test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18719
18720test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18721
18722test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18723
drhf1878b42006-01-23 18:06:52 +000018724for ac_prog in gawk mawk nawk awk
18725do
18726 # Extract the first word of "$ac_prog", so it can be a program name with args.
18727set dummy $ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +000018728{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drhf1878b42006-01-23 18:06:52 +000018730if test "${ac_cv_prog_AWK+set}" = set; then
18731 echo $ECHO_N "(cached) $ECHO_C" >&6
18732else
18733 if test -n "$AWK"; then
18734 ac_cv_prog_AWK="$AWK" # Let the user override the test.
18735else
18736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18737for as_dir in $PATH
18738do
18739 IFS=$as_save_IFS
18740 test -z "$as_dir" && as_dir=.
18741 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +000018742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
drhf1878b42006-01-23 18:06:52 +000018743 ac_cv_prog_AWK="$ac_prog"
18744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18745 break 2
18746 fi
18747done
18748done
mlcreech94984912008-03-04 19:03:08 +000018749IFS=$as_save_IFS
drhf1878b42006-01-23 18:06:52 +000018750
18751fi
18752fi
18753AWK=$ac_cv_prog_AWK
18754if test -n "$AWK"; then
mlcreech94984912008-03-04 19:03:08 +000018755 { echo "$as_me:$LINENO: result: $AWK" >&5
18756echo "${ECHO_T}$AWK" >&6; }
drhf1878b42006-01-23 18:06:52 +000018757else
mlcreech94984912008-03-04 19:03:08 +000018758 { echo "$as_me:$LINENO: result: no" >&5
18759echo "${ECHO_T}no" >&6; }
drhf1878b42006-01-23 18:06:52 +000018760fi
18761
mlcreech94984912008-03-04 19:03:08 +000018762
drhf1878b42006-01-23 18:06:52 +000018763 test -n "$AWK" && break
18764done
18765
a.rottmann84e63352003-03-24 09:42:16 +000018766
drh75897232000-05-29 14:26:00 +000018767#########
18768# Set up an appropriate program prefix
18769#
18770if test "$program_prefix" = "NONE"; then
18771 program_prefix=""
18772fi
18773
a.rottmann84e63352003-03-24 09:42:16 +000018774
drh4b2266a2004-11-27 15:52:16 +000018775VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
18776echo "Version set to $VERSION"
18777
18778RELEASE=`cat $srcdir/VERSION`
18779echo "Release set to $RELEASE"
a.rottmann84e63352003-03-24 09:42:16 +000018780
danielk197799ba19e2005-02-05 07:33:34 +000018781VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000018782 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000018783 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
danielk197799ba19e2005-02-05 07:33:34 +000018784echo "Version number set to $VERSION_NUMBER"
a.rottmann84e63352003-03-24 09:42:16 +000018785
drh26d0e2a2005-07-06 13:51:27 +000018786
drh75897232000-05-29 14:26:00 +000018787#########
18788# Check to see if the --with-hints=FILE option is used. If there is none,
18789# then check for a files named "$host.hints" and ../$hosts.hints where
18790# $host is the hostname of the build system. If still no hints are
18791# found, try looking in $system.hints and ../$system.hints where
18792# $system is the result of uname -s.
18793#
drh71eb93e2001-09-28 01:34:43 +000018794
mlcreech94984912008-03-04 19:03:08 +000018795# Check whether --with-hints was given.
drh75897232000-05-29 14:26:00 +000018796if test "${with_hints+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000018797 withval=$with_hints; hints=$withval
18798fi
18799
drh75897232000-05-29 14:26:00 +000018800if test "$hints" = ""; then
18801 host=`hostname | sed 's/\..*//'`
18802 if test -r $host.hints; then
18803 hints=$host.hints
18804 else
18805 if test -r ../$host.hints; then
18806 hints=../$host.hints
18807 fi
18808 fi
18809fi
18810if test "$hints" = ""; then
18811 sys=`uname -s`
18812 if test -r $sys.hints; then
18813 hints=$sys.hints
18814 else
18815 if test -r ../$sys.hints; then
18816 hints=../$sys.hints
18817 fi
18818 fi
18819fi
18820if test "$hints" != ""; then
mlcreech94984912008-03-04 19:03:08 +000018821 { echo "$as_me:$LINENO: result: reading hints from $hints" >&5
18822echo "${ECHO_T}reading hints from $hints" >&6; }
drh75897232000-05-29 14:26:00 +000018823 . $hints
18824fi
18825
18826#########
18827# Locate a compiler for the build machine. This compiler should
18828# generate command-line programs that run on the build machine.
18829#
vapier7f19c022007-02-17 14:46:31 +000018830if test x"$cross_compiling" = xno; then
18831 BUILD_CC=$CC
18832 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000018833else
vapier7f19c022007-02-17 14:46:31 +000018834 if test "${BUILD_CC+set}" != set; then
18835 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000018836do
18837 # Extract the first word of "$ac_prog", so it can be a program name with args.
18838set dummy $ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +000018839{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +000018841if test "${ac_cv_prog_BUILD_CC+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +000018842 echo $ECHO_N "(cached) $ECHO_C" >&6
18843else
vapier7f19c022007-02-17 14:46:31 +000018844 if test -n "$BUILD_CC"; then
18845 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000018846else
a.rottmann84e63352003-03-24 09:42:16 +000018847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18848for as_dir in $PATH
18849do
18850 IFS=$as_save_IFS
18851 test -z "$as_dir" && as_dir=.
18852 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +000018853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
vapier7f19c022007-02-17 14:46:31 +000018854 ac_cv_prog_BUILD_CC="$ac_prog"
a.rottmann84e63352003-03-24 09:42:16 +000018855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18856 break 2
18857 fi
18858done
drh71eb93e2001-09-28 01:34:43 +000018859done
mlcreech94984912008-03-04 19:03:08 +000018860IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000018861
drh71eb93e2001-09-28 01:34:43 +000018862fi
18863fi
vapier7f19c022007-02-17 14:46:31 +000018864BUILD_CC=$ac_cv_prog_BUILD_CC
18865if test -n "$BUILD_CC"; then
mlcreech94984912008-03-04 19:03:08 +000018866 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
18867echo "${ECHO_T}$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000018868else
mlcreech94984912008-03-04 19:03:08 +000018869 { echo "$as_me:$LINENO: result: no" >&5
18870echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000018871fi
drh75897232000-05-29 14:26:00 +000018872
mlcreech94984912008-03-04 19:03:08 +000018873
vapier7f19c022007-02-17 14:46:31 +000018874 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000018875done
drh75897232000-05-29 14:26:00 +000018876
vapier7f19c022007-02-17 14:46:31 +000018877 fi
18878 if test "${BUILD_CFLAGS+set}" != set; then
18879 BUILD_CFLAGS="-g"
18880 fi
drh71eb93e2001-09-28 01:34:43 +000018881fi
18882
a.rottmann84e63352003-03-24 09:42:16 +000018883
drh75897232000-05-29 14:26:00 +000018884
drh297ecf12001-04-05 15:57:13 +000018885##########
dougcurrie0f290bf2004-06-21 18:57:29 +000018886# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000018887#
mlcreech94984912008-03-04 19:03:08 +000018888# Check whether --enable-threadsafe was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000018889if test "${enable_threadsafe+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000018890 enableval=$enable_threadsafe;
drh297ecf12001-04-05 15:57:13 +000018891else
drh5a3032b2007-09-03 16:12:09 +000018892 enable_threadsafe=yes
mlcreech94984912008-03-04 19:03:08 +000018893fi
18894
18895{ echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
18896echo $ECHO_N "checking whether to support threadsafe operation... $ECHO_C" >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000018897if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000018898 SQLITE_THREADSAFE=0
mlcreech94984912008-03-04 19:03:08 +000018899 { echo "$as_me:$LINENO: result: no" >&5
18900echo "${ECHO_T}no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000018901else
drh5a3032b2007-09-03 16:12:09 +000018902 SQLITE_THREADSAFE=1
mlcreech94984912008-03-04 19:03:08 +000018903 { echo "$as_me:$LINENO: result: yes" >&5
18904echo "${ECHO_T}yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000018905fi
18906
a.rottmann964dbb12004-02-26 19:47:42 +000018907
drh5a3032b2007-09-03 16:12:09 +000018908if test "$SQLITE_THREADSAFE" = "1"; then
dougcurrie65623c72004-09-20 14:57:23 +000018909 LIBS=""
18910
mlcreech94984912008-03-04 19:03:08 +000018911{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18912echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
dougcurrie65623c72004-09-20 14:57:23 +000018913if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18914 echo $ECHO_N "(cached) $ECHO_C" >&6
18915else
18916 ac_check_lib_save_LIBS=$LIBS
18917LIBS="-lpthread $LIBS"
18918cat >conftest.$ac_ext <<_ACEOF
18919/* confdefs.h. */
18920_ACEOF
18921cat confdefs.h >>conftest.$ac_ext
18922cat >>conftest.$ac_ext <<_ACEOF
18923/* end confdefs.h. */
18924
mlcreech94984912008-03-04 19:03:08 +000018925/* Override any GCC internal prototype to avoid an error.
18926 Use char because int might match the return type of a GCC
18927 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000018928#ifdef __cplusplus
18929extern "C"
18930#endif
dougcurrie65623c72004-09-20 14:57:23 +000018931char pthread_create ();
18932int
18933main ()
18934{
mlcreech94984912008-03-04 19:03:08 +000018935return pthread_create ();
dougcurrie65623c72004-09-20 14:57:23 +000018936 ;
18937 return 0;
18938}
18939_ACEOF
18940rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000018941if { (ac_try="$ac_link"
18942case "(($ac_try" in
18943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18944 *) ac_try_echo=$ac_try;;
18945esac
18946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18947 (eval "$ac_link") 2>conftest.er1
dougcurrie65623c72004-09-20 14:57:23 +000018948 ac_status=$?
18949 grep -v '^ *+' conftest.er1 >conftest.err
18950 rm -f conftest.er1
18951 cat conftest.err >&5
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000018953 (exit $ac_status); } && {
18954 test -z "$ac_c_werror_flag" ||
18955 test ! -s conftest.err
18956 } && test -s conftest$ac_exeext &&
18957 $as_test_x conftest$ac_exeext; then
dougcurrie65623c72004-09-20 14:57:23 +000018958 ac_cv_lib_pthread_pthread_create=yes
18959else
18960 echo "$as_me: failed program was:" >&5
18961sed 's/^/| /' conftest.$ac_ext >&5
18962
mlcreech94984912008-03-04 19:03:08 +000018963 ac_cv_lib_pthread_pthread_create=no
dougcurrie65623c72004-09-20 14:57:23 +000018964fi
mlcreech94984912008-03-04 19:03:08 +000018965
18966rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
dougcurrie65623c72004-09-20 14:57:23 +000018967 conftest$ac_exeext conftest.$ac_ext
18968LIBS=$ac_check_lib_save_LIBS
18969fi
mlcreech94984912008-03-04 19:03:08 +000018970{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18971echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
dougcurrie65623c72004-09-20 14:57:23 +000018972if test $ac_cv_lib_pthread_pthread_create = yes; then
18973 cat >>confdefs.h <<_ACEOF
18974#define HAVE_LIBPTHREAD 1
18975_ACEOF
18976
18977 LIBS="-lpthread $LIBS"
18978
18979fi
18980
18981 TARGET_THREAD_LIB="$LIBS"
18982 LIBS=""
18983else
18984 TARGET_THREAD_LIB=""
18985fi
18986
18987
xdong28f79f72003-09-23 00:35:21 +000018988##########
drh91636d52005-11-24 23:14:00 +000018989# Do we want to allow a connection created in one thread to be used
18990# in another thread. This does not work on many Linux systems (ex: RedHat 9)
18991# due to bugs in the threading implementations. This is thus off by default.
18992#
mlcreech94984912008-03-04 19:03:08 +000018993# Check whether --enable-cross-thread-connections was given.
drh91636d52005-11-24 23:14:00 +000018994if test "${enable_cross_thread_connections+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000018995 enableval=$enable_cross_thread_connections;
drh91636d52005-11-24 23:14:00 +000018996else
18997 enable_xthreadconnect=no
mlcreech94984912008-03-04 19:03:08 +000018998fi
18999
19000{ echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
19001echo $ECHO_N "checking whether to allow connections to be shared across threads... $ECHO_C" >&6; }
drh91636d52005-11-24 23:14:00 +000019002if test "$enable_xthreadconnect" = "no"; then
19003 XTHREADCONNECT=''
mlcreech94984912008-03-04 19:03:08 +000019004 { echo "$as_me:$LINENO: result: no" >&5
19005echo "${ECHO_T}no" >&6; }
drh91636d52005-11-24 23:14:00 +000019006else
19007 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
mlcreech94984912008-03-04 19:03:08 +000019008 { echo "$as_me:$LINENO: result: yes" >&5
19009echo "${ECHO_T}yes" >&6; }
drh91636d52005-11-24 23:14:00 +000019010fi
19011
19012
19013##########
drh8e2e2a12006-02-01 01:55:17 +000019014# Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by
19015# default. Normally, a test at runtime is performed to determine the
19016# appropriate value of this variable. Use this option only if you're sure that
19017# threads can safely override each others locks in all runtime situations.
19018#
mlcreech94984912008-03-04 19:03:08 +000019019# Check whether --enable-threads-override-locks was given.
drh8e2e2a12006-02-01 01:55:17 +000019020if test "${enable_threads_override_locks+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019021 enableval=$enable_threads_override_locks;
drh8e2e2a12006-02-01 01:55:17 +000019022else
19023 enable_threads_override_locks=no
mlcreech94984912008-03-04 19:03:08 +000019024fi
19025
19026{ echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5
19027echo $ECHO_N "checking whether threads can override each others locks... $ECHO_C" >&6; }
drh8e2e2a12006-02-01 01:55:17 +000019028if test "$enable_threads_override_locks" = "no"; then
19029 THREADSOVERRIDELOCKS='-1'
mlcreech94984912008-03-04 19:03:08 +000019030 { echo "$as_me:$LINENO: result: no" >&5
19031echo "${ECHO_T}no" >&6; }
drh8e2e2a12006-02-01 01:55:17 +000019032else
19033 THREADSOVERRIDELOCKS='1'
mlcreech94984912008-03-04 19:03:08 +000019034 { echo "$as_me:$LINENO: result: yes" >&5
19035echo "${ECHO_T}yes" >&6; }
drh8e2e2a12006-02-01 01:55:17 +000019036fi
19037
19038
19039##########
xdong28f79f72003-09-23 00:35:21 +000019040# Do we want to support release
19041#
mlcreech94984912008-03-04 19:03:08 +000019042# Check whether --enable-releasemode was given.
xdong28f79f72003-09-23 00:35:21 +000019043if test "${enable_releasemode+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019044 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000019045else
19046 enable_releasemode=no
mlcreech94984912008-03-04 19:03:08 +000019047fi
19048
19049{ echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
19050echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6; }
xdong28f79f72003-09-23 00:35:21 +000019051if test "$enable_releasemode" = "no"; then
19052 ALLOWRELEASE=""
mlcreech94984912008-03-04 19:03:08 +000019053 { echo "$as_me:$LINENO: result: no" >&5
19054echo "${ECHO_T}no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000019055else
drh0b47d342007-11-27 14:50:06 +000019056 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
mlcreech94984912008-03-04 19:03:08 +000019057 { echo "$as_me:$LINENO: result: yes" >&5
19058echo "${ECHO_T}yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000019059fi
paulb0208cc2003-04-13 18:26:49 +000019060
a.rottmann964dbb12004-02-26 19:47:42 +000019061
paulb0208cc2003-04-13 18:26:49 +000019062##########
19063# Do we want temporary databases in memory
19064#
mlcreech94984912008-03-04 19:03:08 +000019065# Check whether --enable-tempstore was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000019066if test "${enable_tempstore+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019067 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000019068else
drh54414bb2005-10-10 00:05:50 +000019069 enable_tempstore=no
mlcreech94984912008-03-04 19:03:08 +000019070fi
19071
19072{ echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
19073echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000019074case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000019075 never )
paul2dc96f92003-04-20 11:46:34 +000019076 TEMP_STORE=0
mlcreech94984912008-03-04 19:03:08 +000019077 { echo "$as_me:$LINENO: result: never" >&5
19078echo "${ECHO_T}never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000019079 ;;
19080 no )
paul2dc96f92003-04-20 11:46:34 +000019081 TEMP_STORE=1
mlcreech94984912008-03-04 19:03:08 +000019082 { echo "$as_me:$LINENO: result: no" >&5
19083echo "${ECHO_T}no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000019084 ;;
19085 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000019086 TEMP_STORE=3
mlcreech94984912008-03-04 19:03:08 +000019087 { echo "$as_me:$LINENO: result: always" >&5
19088echo "${ECHO_T}always" >&6; }
paulb0208cc2003-04-13 18:26:49 +000019089 ;;
drh54414bb2005-10-10 00:05:50 +000019090 yes )
19091 TEMP_STORE=3
mlcreech94984912008-03-04 19:03:08 +000019092 { echo "$as_me:$LINENO: result: always" >&5
19093echo "${ECHO_T}always" >&6; }
drh54414bb2005-10-10 00:05:50 +000019094 ;;
paulb0208cc2003-04-13 18:26:49 +000019095 * )
drh54414bb2005-10-10 00:05:50 +000019096 TEMP_STORE=1
mlcreech94984912008-03-04 19:03:08 +000019097 { echo "$as_me:$LINENO: result: yes" >&5
19098echo "${ECHO_T}yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000019099 ;;
19100esac
19101
19102
19103
drh75897232000-05-29 14:26:00 +000019104###########
19105# Lots of things are different if we are compiling for Windows using
19106# the CYGWIN environment. So check for that special case and handle
19107# things accordingly.
19108#
mlcreech94984912008-03-04 19:03:08 +000019109{ echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
19110echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6; }
drh75897232000-05-29 14:26:00 +000019111if test "$config_BUILD_EXEEXT" = ".exe"; then
19112 CYGWIN=yes
mlcreech94984912008-03-04 19:03:08 +000019113 { echo "$as_me:$LINENO: result: yes" >&5
19114echo "${ECHO_T}yes" >&6; }
drh75897232000-05-29 14:26:00 +000019115else
mlcreech94984912008-03-04 19:03:08 +000019116 { echo "$as_me:$LINENO: result: unknown" >&5
19117echo "${ECHO_T}unknown" >&6; }
drh75897232000-05-29 14:26:00 +000019118fi
19119if test "$CYGWIN" != "yes"; then
mlcreech94984912008-03-04 19:03:08 +000019120 { echo "$as_me:$LINENO: checking host system type" >&5
19121echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
19122if test "${ac_cv_host+set}" = set; then
19123 echo $ECHO_N "(cached) $ECHO_C" >&6
19124else
19125 if test "x$host_alias" = x; then
19126 ac_cv_host=$ac_cv_build
19127else
19128 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
19129 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
19130echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
19131 { (exit 1); exit 1; }; }
19132fi
19133
19134fi
19135{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
19136echo "${ECHO_T}$ac_cv_host" >&6; }
19137case $ac_cv_host in
19138*-*-*) ;;
19139*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
19140echo "$as_me: error: invalid value of canonical host" >&2;}
19141 { (exit 1); exit 1; }; };;
19142esac
19143host=$ac_cv_host
19144ac_save_IFS=$IFS; IFS='-'
19145set x $ac_cv_host
19146shift
19147host_cpu=$1
19148host_vendor=$2
19149shift; shift
19150# Remember, the first character of IFS is used to create $*,
19151# except with old shells:
19152host_os=$*
19153IFS=$ac_save_IFS
19154case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
19155
a.rottmann84e63352003-03-24 09:42:16 +000019156
19157case $host_os in
drh71eb93e2001-09-28 01:34:43 +000019158 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000019159 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000019160esac
drh75897232000-05-29 14:26:00 +000019161
drh75897232000-05-29 14:26:00 +000019162fi
19163if test "$CYGWIN" = "yes"; then
19164 BUILD_EXEEXT=.exe
19165else
dougcurrie6194a5f2003-12-19 20:09:51 +000019166 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000019167fi
vapier7f19c022007-02-17 14:46:31 +000019168if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000019169 TARGET_EXEEXT=$BUILD_EXEEXT
19170else
19171 TARGET_EXEEXT=$config_TARGET_EXEEXT
19172fi
19173if test "$TARGET_EXEEXT" = ".exe"; then
drh60a1e4b2006-06-03 18:02:15 +000019174 if test $OS2_SHELL ; then
19175 OS_UNIX=0
19176 OS_WIN=0
19177 OS_OS2=1
19178 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_OS2=1"
19179 if test "$ac_compiler_gnu" == "yes" ; then
19180 TARGET_CFLAGS="$TARGET_CFLAGS -Zomf -Zexe -Zmap"
19181 BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe"
19182 fi
19183 else
19184 OS_UNIX=0
19185 OS_WIN=1
19186 OS_OS2=0
19187 tclsubdir=win
19188 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_WIN=1"
19189 fi
drh75897232000-05-29 14:26:00 +000019190else
19191 OS_UNIX=1
19192 OS_WIN=0
drh60a1e4b2006-06-03 18:02:15 +000019193 OS_OS2=0
drh75897232000-05-29 14:26:00 +000019194 tclsubdir=unix
dougcurrie0f290bf2004-06-21 18:57:29 +000019195 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_UNIX=1"
drh75897232000-05-29 14:26:00 +000019196fi
drh75897232000-05-29 14:26:00 +000019197
a.rottmann84e63352003-03-24 09:42:16 +000019198
19199
19200
19201
19202
drh75897232000-05-29 14:26:00 +000019203
drh75897232000-05-29 14:26:00 +000019204##########
drh7b5717e2004-11-25 13:50:01 +000019205# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000019206#
drh7b5717e2004-11-25 13:50:01 +000019207# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
19208# macros in the in the tcl.m4 file of the standard TCL distribution.
19209# Those macros could not be used directly since we have to make some
19210# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000019211#
mlcreech94984912008-03-04 19:03:08 +000019212# Check whether --enable-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000019213if test "${enable_tcl+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019214 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000019215else
drh7b5717e2004-11-25 13:50:01 +000019216 use_tcl=yes
mlcreech94984912008-03-04 19:03:08 +000019217fi
19218
drh7b5717e2004-11-25 13:50:01 +000019219if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000019220
mlcreech94984912008-03-04 19:03:08 +000019221# Check whether --with-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000019222if test "${with_tcl+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019223 withval=$with_tcl; with_tclconfig=${withval}
19224fi
19225
19226 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5
19227echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; }
drh7b5717e2004-11-25 13:50:01 +000019228 if test "${ac_cv_c_tclconfig+set}" = set; then
a.rottmann84e63352003-03-24 09:42:16 +000019229 echo $ECHO_N "(cached) $ECHO_C" >&6
19230else
a.rottmann84e63352003-03-24 09:42:16 +000019231
drh7b5717e2004-11-25 13:50:01 +000019232 # First check to see if --with-tcl was specified.
19233 if test x"${with_tclconfig}" != x ; then
19234 if test -f "${with_tclconfig}/tclConfig.sh" ; then
19235 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
19236 else
19237 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
19238echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
xdong28f79f72003-09-23 00:35:21 +000019239 { (exit 1); exit 1; }; }
drh7b5717e2004-11-25 13:50:01 +000019240 fi
19241 fi
19242 # then check for a private Tcl installation
19243 if test x"${ac_cv_c_tclconfig}" = x ; then
19244 for i in \
19245 ../tcl \
19246 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19247 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
19248 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
19249 ../../tcl \
19250 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19251 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
19252 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
19253 ../../../tcl \
19254 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19255 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
19256 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
19257 do
19258 if test -f "$i/unix/tclConfig.sh" ; then
19259 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
19260 break
19261 fi
19262 done
19263 fi
19264
19265 # check in a few common install locations
19266 if test x"${ac_cv_c_tclconfig}" = x ; then
19267 for i in \
19268 `ls -d ${libdir} 2>/dev/null` \
19269 `ls -d /usr/local/lib 2>/dev/null` \
19270 `ls -d /usr/contrib/lib 2>/dev/null` \
19271 `ls -d /usr/lib 2>/dev/null`
19272 do
19273 if test -f "$i/tclConfig.sh" ; then
19274 ac_cv_c_tclconfig=`(cd $i; pwd)`
19275 break
19276 fi
19277 done
19278 fi
19279
19280 # check in a few other private locations
19281 if test x"${ac_cv_c_tclconfig}" = x ; then
19282 for i in \
19283 ${srcdir}/../tcl \
19284 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19285 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
19286 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
19287 do
19288 if test -f "$i/unix/tclConfig.sh" ; then
19289 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
19290 break
19291 fi
19292 done
19293 fi
19294
drh75897232000-05-29 14:26:00 +000019295fi
19296
drh7b5717e2004-11-25 13:50:01 +000019297
19298 if test x"${ac_cv_c_tclconfig}" = x ; then
19299 use_tcl=no
19300 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
19301echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
19302 { echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
19303echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
19304 { echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
19305echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
19306 else
19307 TCL_BIN_DIR=${ac_cv_c_tclconfig}
mlcreech94984912008-03-04 19:03:08 +000019308 { echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
19309echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000019310
mlcreech94984912008-03-04 19:03:08 +000019311 { echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
19312echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6; }
drh7b5717e2004-11-25 13:50:01 +000019313 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
mlcreech94984912008-03-04 19:03:08 +000019314 { echo "$as_me:$LINENO: result: loading" >&5
19315echo "${ECHO_T}loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000019316 . $TCL_BIN_DIR/tclConfig.sh
19317 else
mlcreech94984912008-03-04 19:03:08 +000019318 { echo "$as_me:$LINENO: result: file not found" >&5
19319echo "${ECHO_T}file not found" >&6; }
drh75897232000-05-29 14:26:00 +000019320 fi
drh7b5717e2004-11-25 13:50:01 +000019321
19322 #
19323 # If the TCL_BIN_DIR is the build directory (not the install directory),
19324 # then set the common variable name to the value of the build variables.
19325 # For example, the variable TCL_LIB_SPEC will be set to the value
19326 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
19327 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
19328 # installed and uninstalled version of Tcl.
19329 #
19330
19331 if test -f $TCL_BIN_DIR/Makefile ; then
19332 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
19333 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
19334 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
19335 fi
19336
19337 #
19338 # eval is required to do the TCL_DBGX substitution
19339 #
19340
19341 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
19342 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
19343 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
19344
19345 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
19346 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
19347 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362 fi
drh75897232000-05-29 14:26:00 +000019363fi
drh7b5717e2004-11-25 13:50:01 +000019364if test "${use_tcl}" = "no" ; then
19365 HAVE_TCL=""
19366else
19367 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000019368fi
drh75897232000-05-29 14:26:00 +000019369
a.rottmann84e63352003-03-24 09:42:16 +000019370
drh75897232000-05-29 14:26:00 +000019371##########
19372# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000019373# that use "readline()" library.
19374#
vapier7f19c022007-02-17 14:46:31 +000019375TARGET_READLINE_LIBS=""
19376TARGET_READLINE_INC=""
19377TARGET_HAVE_READLINE=0
mlcreech94984912008-03-04 19:03:08 +000019378# Check whether --enable-readline was given.
vapier7f19c022007-02-17 14:46:31 +000019379if test "${enable_readline+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019380 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000019381else
vapier7f19c022007-02-17 14:46:31 +000019382 with_readline=auto
mlcreech94984912008-03-04 19:03:08 +000019383fi
19384
vapier7f19c022007-02-17 14:46:31 +000019385
19386if test x"$with_readline" != xno; then
19387 found="yes"
19388
19389
mlcreech94984912008-03-04 19:03:08 +000019390# Check whether --with-readline-lib was given.
vapier7f19c022007-02-17 14:46:31 +000019391if test "${with_readline_lib+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019392 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000019393else
19394 with_readline_lib="auto"
mlcreech94984912008-03-04 19:03:08 +000019395fi
19396
vapier7f19c022007-02-17 14:46:31 +000019397 if test "x$with_readline_lib" = xauto; then
19398 save_LIBS="$LIBS"
19399 LIBS=""
mlcreech94984912008-03-04 19:03:08 +000019400 { echo "$as_me:$LINENO: checking for library containing tgetent" >&5
19401echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
paul38372372003-04-22 08:04:49 +000019402if test "${ac_cv_search_tgetent+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +000019403 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019404else
drh71eb93e2001-09-28 01:34:43 +000019405 ac_func_search_save_LIBS=$LIBS
paul38372372003-04-22 08:04:49 +000019406cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000019407/* confdefs.h. */
19408_ACEOF
19409cat confdefs.h >>conftest.$ac_ext
19410cat >>conftest.$ac_ext <<_ACEOF
19411/* end confdefs.h. */
19412
mlcreech94984912008-03-04 19:03:08 +000019413/* Override any GCC internal prototype to avoid an error.
19414 Use char because int might match the return type of a GCC
19415 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000019416#ifdef __cplusplus
19417extern "C"
19418#endif
paul38372372003-04-22 08:04:49 +000019419char tgetent ();
19420int
19421main ()
19422{
mlcreech94984912008-03-04 19:03:08 +000019423return tgetent ();
paul38372372003-04-22 08:04:49 +000019424 ;
19425 return 0;
19426}
19427_ACEOF
mlcreech94984912008-03-04 19:03:08 +000019428for ac_lib in '' readline ncurses curses termcap; do
19429 if test -z "$ac_lib"; then
19430 ac_res="none required"
19431 else
19432 ac_res=-l$ac_lib
drh613a0fe2007-11-23 17:31:17 +000019433 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
mlcreech94984912008-03-04 19:03:08 +000019434 fi
19435 rm -f conftest.$ac_objext conftest$ac_exeext
19436if { (ac_try="$ac_link"
19437case "(($ac_try" in
19438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19439 *) ac_try_echo=$ac_try;;
19440esac
19441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19442 (eval "$ac_link") 2>conftest.er1
drh613a0fe2007-11-23 17:31:17 +000019443 ac_status=$?
19444 grep -v '^ *+' conftest.er1 >conftest.err
19445 rm -f conftest.er1
19446 cat conftest.err >&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000019448 (exit $ac_status); } && {
19449 test -z "$ac_c_werror_flag" ||
19450 test ! -s conftest.err
19451 } && test -s conftest$ac_exeext &&
19452 $as_test_x conftest$ac_exeext; then
19453 ac_cv_search_tgetent=$ac_res
vapier7f19c022007-02-17 14:46:31 +000019454else
drh613a0fe2007-11-23 17:31:17 +000019455 echo "$as_me: failed program was:" >&5
19456sed 's/^/| /' conftest.$ac_ext >&5
19457
mlcreech94984912008-03-04 19:03:08 +000019458
vapier7f19c022007-02-17 14:46:31 +000019459fi
mlcreech94984912008-03-04 19:03:08 +000019460
19461rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19462 conftest$ac_exeext
19463 if test "${ac_cv_search_tgetent+set}" = set; then
19464 break
drh613a0fe2007-11-23 17:31:17 +000019465fi
mlcreech94984912008-03-04 19:03:08 +000019466done
19467if test "${ac_cv_search_tgetent+set}" = set; then
19468 :
19469else
19470 ac_cv_search_tgetent=no
19471fi
19472rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000019473LIBS=$ac_func_search_save_LIBS
19474fi
mlcreech94984912008-03-04 19:03:08 +000019475{ echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
19476echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
19477ac_res=$ac_cv_search_tgetent
19478if test "$ac_res" != no; then
19479 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000019480 term_LIBS="$LIBS"
19481else
19482 term_LIBS=""
paul38372372003-04-22 08:04:49 +000019483fi
19484
mlcreech94984912008-03-04 19:03:08 +000019485 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
19486echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
paul38372372003-04-22 08:04:49 +000019487if test "${ac_cv_lib_readline_readline+set}" = set; then
19488 echo $ECHO_N "(cached) $ECHO_C" >&6
19489else
19490 ac_check_lib_save_LIBS=$LIBS
19491LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000019492cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019493/* confdefs.h. */
19494_ACEOF
19495cat confdefs.h >>conftest.$ac_ext
19496cat >>conftest.$ac_ext <<_ACEOF
19497/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000019498
mlcreech94984912008-03-04 19:03:08 +000019499/* Override any GCC internal prototype to avoid an error.
19500 Use char because int might match the return type of a GCC
19501 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000019502#ifdef __cplusplus
19503extern "C"
19504#endif
drh71eb93e2001-09-28 01:34:43 +000019505char readline ();
19506int
19507main ()
19508{
mlcreech94984912008-03-04 19:03:08 +000019509return readline ();
drh71eb93e2001-09-28 01:34:43 +000019510 ;
19511 return 0;
19512}
19513_ACEOF
19514rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000019515if { (ac_try="$ac_link"
19516case "(($ac_try" in
19517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518 *) ac_try_echo=$ac_try;;
19519esac
19520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19521 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019522 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019523 grep -v '^ *+' conftest.er1 >conftest.err
19524 rm -f conftest.er1
19525 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000019527 (exit $ac_status); } && {
19528 test -z "$ac_c_werror_flag" ||
19529 test ! -s conftest.err
19530 } && test -s conftest$ac_exeext &&
19531 $as_test_x conftest$ac_exeext; then
paul38372372003-04-22 08:04:49 +000019532 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000019533else
drh71eb93e2001-09-28 01:34:43 +000019534 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019535sed 's/^/| /' conftest.$ac_ext >&5
19536
mlcreech94984912008-03-04 19:03:08 +000019537 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000019538fi
mlcreech94984912008-03-04 19:03:08 +000019539
19540rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +000019541 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000019542LIBS=$ac_check_lib_save_LIBS
19543fi
mlcreech94984912008-03-04 19:03:08 +000019544{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
19545echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
paul38372372003-04-22 08:04:49 +000019546if test $ac_cv_lib_readline_readline = yes; then
vapier7f19c022007-02-17 14:46:31 +000019547 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000019548else
vapier7f19c022007-02-17 14:46:31 +000019549 found="no"
19550fi
drhf1878b42006-01-23 18:06:52 +000019551
vapier7f19c022007-02-17 14:46:31 +000019552 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
19553 LIBS="$save_LIBS"
19554 else
19555 TARGET_READLINE_LIBS="$with_readline_lib"
19556 fi
19557
19558
mlcreech94984912008-03-04 19:03:08 +000019559# Check whether --with-readline-inc was given.
vapier7f19c022007-02-17 14:46:31 +000019560if test "${with_readline_inc+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019561 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000019562else
vapier7f19c022007-02-17 14:46:31 +000019563 with_readline_inc="auto"
mlcreech94984912008-03-04 19:03:08 +000019564fi
19565
vapier7f19c022007-02-17 14:46:31 +000019566 if test "x$with_readline_inc" = xauto; then
19567 if test "${ac_cv_header_readline_h+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019568 { echo "$as_me:$LINENO: checking for readline.h" >&5
19569echo $ECHO_N "checking for readline.h... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +000019570if test "${ac_cv_header_readline_h+set}" = set; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019572fi
mlcreech94984912008-03-04 19:03:08 +000019573{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
19574echo "${ECHO_T}$ac_cv_header_readline_h" >&6; }
drh75897232000-05-29 14:26:00 +000019575else
a.rottmann84e63352003-03-24 09:42:16 +000019576 # Is the header compilable?
mlcreech94984912008-03-04 19:03:08 +000019577{ echo "$as_me:$LINENO: checking readline.h usability" >&5
19578echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000019579cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019580/* confdefs.h. */
19581_ACEOF
19582cat confdefs.h >>conftest.$ac_ext
19583cat >>conftest.$ac_ext <<_ACEOF
19584/* end confdefs.h. */
19585$ac_includes_default
drh75897232000-05-29 14:26:00 +000019586#include <readline.h>
drh71eb93e2001-09-28 01:34:43 +000019587_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019588rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +000019589if { (ac_try="$ac_compile"
19590case "(($ac_try" in
19591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592 *) ac_try_echo=$ac_try;;
19593esac
19594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19595 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000019596 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019597 grep -v '^ *+' conftest.er1 >conftest.err
19598 rm -f conftest.er1
19599 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000019601 (exit $ac_status); } && {
19602 test -z "$ac_c_werror_flag" ||
19603 test ! -s conftest.err
19604 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +000019605 ac_header_compiler=yes
19606else
19607 echo "$as_me: failed program was:" >&5
19608sed 's/^/| /' conftest.$ac_ext >&5
19609
mlcreech94984912008-03-04 19:03:08 +000019610 ac_header_compiler=no
a.rottmann84e63352003-03-24 09:42:16 +000019611fi
mlcreech94984912008-03-04 19:03:08 +000019612
19613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19614{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19615echo "${ECHO_T}$ac_header_compiler" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000019616
19617# Is the header present?
mlcreech94984912008-03-04 19:03:08 +000019618{ echo "$as_me:$LINENO: checking readline.h presence" >&5
19619echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000019620cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019621/* confdefs.h. */
19622_ACEOF
19623cat confdefs.h >>conftest.$ac_ext
19624cat >>conftest.$ac_ext <<_ACEOF
19625/* end confdefs.h. */
19626#include <readline.h>
19627_ACEOF
mlcreech94984912008-03-04 19:03:08 +000019628if { (ac_try="$ac_cpp conftest.$ac_ext"
19629case "(($ac_try" in
19630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631 *) ac_try_echo=$ac_try;;
19632esac
19633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019635 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019636 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +000019637 rm -f conftest.er1
19638 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000019640 (exit $ac_status); } >/dev/null && {
19641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19642 test ! -s conftest.err
19643 }; then
a.rottmann84e63352003-03-24 09:42:16 +000019644 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +000019645else
19646 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019647sed 's/^/| /' conftest.$ac_ext >&5
19648
19649 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +000019650fi
mlcreech94984912008-03-04 19:03:08 +000019651
drh71eb93e2001-09-28 01:34:43 +000019652rm -f conftest.err conftest.$ac_ext
mlcreech94984912008-03-04 19:03:08 +000019653{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19654echo "${ECHO_T}$ac_header_preproc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000019655
19656# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +000019657case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19658 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +000019659 { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
19660echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000019661 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
19662echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
19663 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +000019664 ;;
a.rottmann964dbb12004-02-26 19:47:42 +000019665 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +000019666 { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
19667echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000019668 { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
19669echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
19670 { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
19671echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
19672 { echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
19673echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000019674 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
19675echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000019676 { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
19677echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
mlcreech94984912008-03-04 19:03:08 +000019678
a.rottmann84e63352003-03-24 09:42:16 +000019679 ;;
19680esac
mlcreech94984912008-03-04 19:03:08 +000019681{ echo "$as_me:$LINENO: checking for readline.h" >&5
19682echo $ECHO_N "checking for readline.h... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000019683if test "${ac_cv_header_readline_h+set}" = set; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
19685else
19686 ac_cv_header_readline_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +000019687fi
mlcreech94984912008-03-04 19:03:08 +000019688{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
19689echo "${ECHO_T}$ac_cv_header_readline_h" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000019690
19691fi
drh71eb93e2001-09-28 01:34:43 +000019692if test $ac_cv_header_readline_h = yes; then
vapier7f19c022007-02-17 14:46:31 +000019693 found="yes"
19694else
drh75897232000-05-29 14:26:00 +000019695
vapier7f19c022007-02-17 14:46:31 +000019696 found="no"
19697 if test "$cross_compiling" != yes; then
19698 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
19699 for subdir in include include/readline; do
19700 as_ac_File=`echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
mlcreech94984912008-03-04 19:03:08 +000019701{ echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
19702echo $ECHO_N "checking for $dir/$subdir/readline.h... $ECHO_C" >&6; }
19703if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
drh71eb93e2001-09-28 01:34:43 +000019704 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000019705else
19706 test "$cross_compiling" = yes &&
19707 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
19708echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
19709 { (exit 1); exit 1; }; }
vapier7f19c022007-02-17 14:46:31 +000019710if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000019711 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000019712else
drh71eb93e2001-09-28 01:34:43 +000019713 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000019714fi
19715fi
mlcreech94984912008-03-04 19:03:08 +000019716ac_res=`eval echo '${'$as_ac_File'}'`
19717 { echo "$as_me:$LINENO: result: $ac_res" >&5
19718echo "${ECHO_T}$ac_res" >&6; }
drh71eb93e2001-09-28 01:34:43 +000019719if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000019720 found=yes
drh75897232000-05-29 14:26:00 +000019721fi
19722
vapier7f19c022007-02-17 14:46:31 +000019723 if test "$found" = "yes"; then
19724 TARGET_READLINE_INC="-I$dir/$subdir"
19725 break
19726 fi
19727 done
19728 test "$found" = "yes" && break
19729 done
19730 fi
19731
19732fi
19733
19734
19735 else
19736 TARGET_READLINE_INC="$with_readline_inc"
19737 fi
19738
19739 if test x"$found" = xno; then
19740 TARGET_READLINE_LIBS=""
19741 TARGET_READLINE_INC=""
19742 TARGET_HAVE_READLINE=0
19743 else
19744 TARGET_HAVE_READLINE=1
19745 fi
19746fi
19747
19748
19749
19750
19751
19752##########
19753# Figure out what C libraries are required to compile programs
19754# that use "fdatasync()" function.
19755#
mlcreech94984912008-03-04 19:03:08 +000019756{ echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
19757echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +000019758if test "${ac_cv_search_fdatasync+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +000019759 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000019760else
vapier7f19c022007-02-17 14:46:31 +000019761 ac_func_search_save_LIBS=$LIBS
19762cat >conftest.$ac_ext <<_ACEOF
19763/* confdefs.h. */
19764_ACEOF
19765cat confdefs.h >>conftest.$ac_ext
19766cat >>conftest.$ac_ext <<_ACEOF
19767/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000019768
mlcreech94984912008-03-04 19:03:08 +000019769/* Override any GCC internal prototype to avoid an error.
19770 Use char because int might match the return type of a GCC
19771 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000019772#ifdef __cplusplus
19773extern "C"
19774#endif
19775char fdatasync ();
19776int
19777main ()
19778{
mlcreech94984912008-03-04 19:03:08 +000019779return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000019780 ;
19781 return 0;
19782}
19783_ACEOF
mlcreech94984912008-03-04 19:03:08 +000019784for ac_lib in '' rt; do
19785 if test -z "$ac_lib"; then
19786 ac_res="none required"
19787 else
19788 ac_res=-l$ac_lib
drh613a0fe2007-11-23 17:31:17 +000019789 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
mlcreech94984912008-03-04 19:03:08 +000019790 fi
19791 rm -f conftest.$ac_objext conftest$ac_exeext
19792if { (ac_try="$ac_link"
19793case "(($ac_try" in
19794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19795 *) ac_try_echo=$ac_try;;
19796esac
19797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19798 (eval "$ac_link") 2>conftest.er1
drh613a0fe2007-11-23 17:31:17 +000019799 ac_status=$?
19800 grep -v '^ *+' conftest.er1 >conftest.err
19801 rm -f conftest.er1
19802 cat conftest.err >&5
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000019804 (exit $ac_status); } && {
19805 test -z "$ac_c_werror_flag" ||
19806 test ! -s conftest.err
19807 } && test -s conftest$ac_exeext &&
19808 $as_test_x conftest$ac_exeext; then
19809 ac_cv_search_fdatasync=$ac_res
vapier7f19c022007-02-17 14:46:31 +000019810else
drh613a0fe2007-11-23 17:31:17 +000019811 echo "$as_me: failed program was:" >&5
19812sed 's/^/| /' conftest.$ac_ext >&5
19813
mlcreech94984912008-03-04 19:03:08 +000019814
vapier7f19c022007-02-17 14:46:31 +000019815fi
mlcreech94984912008-03-04 19:03:08 +000019816
19817rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19818 conftest$ac_exeext
19819 if test "${ac_cv_search_fdatasync+set}" = set; then
19820 break
drh613a0fe2007-11-23 17:31:17 +000019821fi
mlcreech94984912008-03-04 19:03:08 +000019822done
19823if test "${ac_cv_search_fdatasync+set}" = set; then
19824 :
19825else
19826 ac_cv_search_fdatasync=no
19827fi
19828rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000019829LIBS=$ac_func_search_save_LIBS
19830fi
mlcreech94984912008-03-04 19:03:08 +000019831{ echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
19832echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
19833ac_res=$ac_cv_search_fdatasync
19834if test "$ac_res" != no; then
19835 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000019836
vapier7f19c022007-02-17 14:46:31 +000019837fi
19838
a.rottmann84e63352003-03-24 09:42:16 +000019839
drh75897232000-05-29 14:26:00 +000019840#########
tpoindex9d9f76c2005-01-03 21:28:56 +000019841# check for debug enabled
mlcreech94984912008-03-04 19:03:08 +000019842# Check whether --enable-debug was given.
tpoindex9d9f76c2005-01-03 21:28:56 +000019843if test "${enable_debug+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019844 enableval=$enable_debug; use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000019845else
19846 use_debug=no
mlcreech94984912008-03-04 19:03:08 +000019847fi
19848
tpoindex9d9f76c2005-01-03 21:28:56 +000019849if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000019850 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000019851else
19852 TARGET_DEBUG="-DNDEBUG"
19853fi
19854
19855
19856#########
mlcreech94984912008-03-04 19:03:08 +000019857# See whether we should use the amalgamation to build
19858# Check whether --enable-amalgamation was given.
19859if test "${enable_amalgamation+set}" = set; then
19860 enableval=$enable_amalgamation; use_amalgamation=$enableval
19861else
19862 use_amalgamation=yes
19863fi
19864
19865if test "${use_amalgamation}" = "yes" ; then
19866 USE_AMALGAMATION=1
19867else
19868 USE_AMALGAMATION=0
19869fi
19870
19871
19872#########
mlcreecha4edab02008-03-06 04:14:17 +000019873# See whether we should allow loadable extensions
19874# Check whether --enable-load-extension was given.
19875if test "${enable_load_extension+set}" = set; then
19876 enableval=$enable_load_extension; use_loadextension=$enableval
19877else
19878 use_loadextension=no
19879fi
19880
19881if test "${use_loadextension}" = "yes" ; then
19882 LOADEXTENSION_FLAGS=""
19883else
19884 LOADEXTENSION_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
19885fi
19886
19887
19888#########
drh2dfbbca2000-07-28 14:32:48 +000019889# Figure out whether or not we have a "usleep()" function.
19890#
mlcreech94984912008-03-04 19:03:08 +000019891{ echo "$as_me:$LINENO: checking for usleep" >&5
19892echo $ECHO_N "checking for usleep... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +000019893if test "${ac_cv_func_usleep+set}" = set; then
19894 echo $ECHO_N "(cached) $ECHO_C" >&6
drh2dfbbca2000-07-28 14:32:48 +000019895else
drh71eb93e2001-09-28 01:34:43 +000019896 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019897/* confdefs.h. */
19898_ACEOF
19899cat confdefs.h >>conftest.$ac_ext
19900cat >>conftest.$ac_ext <<_ACEOF
19901/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +000019902/* Define usleep to an innocuous variant, in case <limits.h> declares usleep.
19903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19904#define usleep innocuous_usleep
19905
drh2dfbbca2000-07-28 14:32:48 +000019906/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +000019907 which can conflict with char usleep (); below.
19908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19909 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +000019910
a.rottmann84e63352003-03-24 09:42:16 +000019911#ifdef __STDC__
19912# include <limits.h>
19913#else
19914# include <assert.h>
19915#endif
a.rottmann964dbb12004-02-26 19:47:42 +000019916
19917#undef usleep
19918
mlcreech94984912008-03-04 19:03:08 +000019919/* Override any GCC internal prototype to avoid an error.
19920 Use char because int might match the return type of a GCC
19921 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000019922#ifdef __cplusplus
19923extern "C"
19924#endif
drh71eb93e2001-09-28 01:34:43 +000019925char usleep ();
drh2dfbbca2000-07-28 14:32:48 +000019926/* The GNU C library defines this for functions which it implements
19927 to always fail with ENOSYS. Some functions are actually named
19928 something starting with __ and the normal name is an alias. */
mlcreech94984912008-03-04 19:03:08 +000019929#if defined __stub_usleep || defined __stub___usleep
drh2dfbbca2000-07-28 14:32:48 +000019930choke me
drh2dfbbca2000-07-28 14:32:48 +000019931#endif
19932
a.rottmann84e63352003-03-24 09:42:16 +000019933int
19934main ()
19935{
mlcreech94984912008-03-04 19:03:08 +000019936return usleep ();
drh71eb93e2001-09-28 01:34:43 +000019937 ;
19938 return 0;
19939}
19940_ACEOF
19941rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000019942if { (ac_try="$ac_link"
19943case "(($ac_try" in
19944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945 *) ac_try_echo=$ac_try;;
19946esac
19947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019949 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019950 grep -v '^ *+' conftest.er1 >conftest.err
19951 rm -f conftest.er1
19952 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000019954 (exit $ac_status); } && {
19955 test -z "$ac_c_werror_flag" ||
19956 test ! -s conftest.err
19957 } && test -s conftest$ac_exeext &&
19958 $as_test_x conftest$ac_exeext; then
drh71eb93e2001-09-28 01:34:43 +000019959 ac_cv_func_usleep=yes
drh2dfbbca2000-07-28 14:32:48 +000019960else
drh71eb93e2001-09-28 01:34:43 +000019961 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019962sed 's/^/| /' conftest.$ac_ext >&5
19963
mlcreech94984912008-03-04 19:03:08 +000019964 ac_cv_func_usleep=no
drh2dfbbca2000-07-28 14:32:48 +000019965fi
mlcreech94984912008-03-04 19:03:08 +000019966
19967rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +000019968 conftest$ac_exeext conftest.$ac_ext
drh2dfbbca2000-07-28 14:32:48 +000019969fi
mlcreech94984912008-03-04 19:03:08 +000019970{ echo "$as_me:$LINENO: result: $ac_cv_func_usleep" >&5
19971echo "${ECHO_T}$ac_cv_func_usleep" >&6; }
drh71eb93e2001-09-28 01:34:43 +000019972if test $ac_cv_func_usleep = yes; then
drh2dfbbca2000-07-28 14:32:48 +000019973 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_USLEEP=1"
drh2dfbbca2000-07-28 14:32:48 +000019974fi
19975
a.rottmann84e63352003-03-24 09:42:16 +000019976
drhaf6edf52005-10-04 18:38:49 +000019977#--------------------------------------------------------------------
19978# Redefine fdatasync as fsync on systems that lack fdatasync
19979#--------------------------------------------------------------------
19980
mlcreech94984912008-03-04 19:03:08 +000019981{ echo "$as_me:$LINENO: checking for fdatasync" >&5
19982echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
drhaf6edf52005-10-04 18:38:49 +000019983if test "${ac_cv_func_fdatasync+set}" = set; then
19984 echo $ECHO_N "(cached) $ECHO_C" >&6
19985else
19986 cat >conftest.$ac_ext <<_ACEOF
19987/* confdefs.h. */
19988_ACEOF
19989cat confdefs.h >>conftest.$ac_ext
19990cat >>conftest.$ac_ext <<_ACEOF
19991/* end confdefs.h. */
19992/* Define fdatasync to an innocuous variant, in case <limits.h> declares fdatasync.
19993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19994#define fdatasync innocuous_fdatasync
19995
19996/* System header to define __stub macros and hopefully few prototypes,
19997 which can conflict with char fdatasync (); below.
19998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19999 <limits.h> exists even on freestanding compilers. */
20000
20001#ifdef __STDC__
20002# include <limits.h>
20003#else
20004# include <assert.h>
20005#endif
20006
20007#undef fdatasync
20008
mlcreech94984912008-03-04 19:03:08 +000020009/* Override any GCC internal prototype to avoid an error.
20010 Use char because int might match the return type of a GCC
20011 builtin and then its argument prototype would still apply. */
drhaf6edf52005-10-04 18:38:49 +000020012#ifdef __cplusplus
20013extern "C"
drhaf6edf52005-10-04 18:38:49 +000020014#endif
drhaf6edf52005-10-04 18:38:49 +000020015char fdatasync ();
20016/* The GNU C library defines this for functions which it implements
20017 to always fail with ENOSYS. Some functions are actually named
20018 something starting with __ and the normal name is an alias. */
mlcreech94984912008-03-04 19:03:08 +000020019#if defined __stub_fdatasync || defined __stub___fdatasync
drhaf6edf52005-10-04 18:38:49 +000020020choke me
drhaf6edf52005-10-04 18:38:49 +000020021#endif
20022
20023int
20024main ()
20025{
mlcreech94984912008-03-04 19:03:08 +000020026return fdatasync ();
drhaf6edf52005-10-04 18:38:49 +000020027 ;
20028 return 0;
20029}
20030_ACEOF
20031rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000020032if { (ac_try="$ac_link"
20033case "(($ac_try" in
20034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035 *) ac_try_echo=$ac_try;;
20036esac
20037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038 (eval "$ac_link") 2>conftest.er1
drhaf6edf52005-10-04 18:38:49 +000020039 ac_status=$?
20040 grep -v '^ *+' conftest.er1 >conftest.err
20041 rm -f conftest.er1
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000020044 (exit $ac_status); } && {
20045 test -z "$ac_c_werror_flag" ||
20046 test ! -s conftest.err
20047 } && test -s conftest$ac_exeext &&
20048 $as_test_x conftest$ac_exeext; then
drhaf6edf52005-10-04 18:38:49 +000020049 ac_cv_func_fdatasync=yes
20050else
20051 echo "$as_me: failed program was:" >&5
20052sed 's/^/| /' conftest.$ac_ext >&5
20053
mlcreech94984912008-03-04 19:03:08 +000020054 ac_cv_func_fdatasync=no
drhaf6edf52005-10-04 18:38:49 +000020055fi
mlcreech94984912008-03-04 19:03:08 +000020056
20057rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
drhaf6edf52005-10-04 18:38:49 +000020058 conftest$ac_exeext conftest.$ac_ext
20059fi
mlcreech94984912008-03-04 19:03:08 +000020060{ echo "$as_me:$LINENO: result: $ac_cv_func_fdatasync" >&5
20061echo "${ECHO_T}$ac_cv_func_fdatasync" >&6; }
drhaf6edf52005-10-04 18:38:49 +000020062if test $ac_cv_func_fdatasync = yes; then
drhf2f23912005-10-05 10:29:36 +000020063 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_FDATASYNC=1"
drhaf6edf52005-10-04 18:38:49 +000020064fi
20065
20066
drh2dfbbca2000-07-28 14:32:48 +000020067#########
drh75897232000-05-29 14:26:00 +000020068# Generate the output files.
20069#
mlcreech94984912008-03-04 19:03:08 +000020070ac_config_files="$ac_config_files Makefile sqlite3.pc"
20071
drh71eb93e2001-09-28 01:34:43 +000020072cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000020073# This file is a shell script that caches the results of configure
20074# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000020075# scripts and configure runs, see configure's option --config-cache.
20076# It is not useful on other systems. If it contains results you don't
20077# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000020078#
drh71eb93e2001-09-28 01:34:43 +000020079# config.status only pays attention to the cache file if you give it
20080# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000020081#
a.rottmann84e63352003-03-24 09:42:16 +000020082# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000020083# loading this file, other *unset* `ac_cv_foo' will be assigned the
20084# following values.
20085
20086_ACEOF
20087
drh75897232000-05-29 14:26:00 +000020088# The following way of writing the cache mishandles newlines in values,
20089# but we know of no workaround that is simple, portable, and efficient.
mlcreech94984912008-03-04 19:03:08 +000020090# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000020091# Ultrix sh set writes to stderr and can't be redirected directly,
20092# and sets the high bit in the cache file unless we assign to the vars.
mlcreech94984912008-03-04 19:03:08 +000020093(
20094 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20095 eval ac_val=\$$ac_var
20096 case $ac_val in #(
20097 *${as_nl}*)
20098 case $ac_var in #(
20099 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20100echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20101 esac
20102 case $ac_var in #(
20103 _ | IFS | as_nl) ;; #(
20104 *) $as_unset $ac_var ;;
20105 esac ;;
20106 esac
20107 done
20108
drh71eb93e2001-09-28 01:34:43 +000020109 (set) 2>&1 |
mlcreech94984912008-03-04 19:03:08 +000020110 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20111 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +000020112 # `set' does not quote correctly, so add quotes (double-quote
20113 # substitution turns \\\\ into \\, and sed turns \\ into \).
20114 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000020115 "s/'/'\\\\''/g;
20116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mlcreech94984912008-03-04 19:03:08 +000020117 ;; #(
drh71eb93e2001-09-28 01:34:43 +000020118 *)
20119 # `set' quotes correctly as required by POSIX, so do not add quotes.
mlcreech94984912008-03-04 19:03:08 +000020120 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000020121 ;;
mlcreech94984912008-03-04 19:03:08 +000020122 esac |
20123 sort
20124) |
drh71eb93e2001-09-28 01:34:43 +000020125 sed '
mlcreech94984912008-03-04 19:03:08 +000020126 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000020127 t clear
mlcreech94984912008-03-04 19:03:08 +000020128 :clear
drh71eb93e2001-09-28 01:34:43 +000020129 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20130 t end
mlcreech94984912008-03-04 19:03:08 +000020131 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20132 :end' >>confcache
20133if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20134 if test -w "$cache_file"; then
20135 test "x$cache_file" != "x/dev/null" &&
20136 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20137echo "$as_me: updating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +000020138 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000020139 else
mlcreech94984912008-03-04 19:03:08 +000020140 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20141echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000020142 fi
20143fi
20144rm -f confcache
20145
drh75897232000-05-29 14:26:00 +000020146test "x$prefix" = xNONE && prefix=$ac_default_prefix
20147# Let make expand exec_prefix.
20148test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20149
drh75897232000-05-29 14:26:00 +000020150# Transform confdefs.h into DEFS.
20151# Protect against shell expansion while executing Makefile rules.
20152# Protect against Makefile macro expansion.
drh71eb93e2001-09-28 01:34:43 +000020153#
20154# If the first sed substitution is executed (which looks for macros that
mlcreech94984912008-03-04 19:03:08 +000020155# take arguments), then branch to the quote section. Otherwise,
drh71eb93e2001-09-28 01:34:43 +000020156# look for a macro that doesn't take arguments.
mlcreech94984912008-03-04 19:03:08 +000020157ac_script='
drh71eb93e2001-09-28 01:34:43 +000020158t clear
mlcreech94984912008-03-04 19:03:08 +000020159:clear
20160s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
drh71eb93e2001-09-28 01:34:43 +000020161t quote
mlcreech94984912008-03-04 19:03:08 +000020162s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
drh71eb93e2001-09-28 01:34:43 +000020163t quote
mlcreech94984912008-03-04 19:03:08 +000020164b any
20165:quote
20166s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20167s/\[/\\&/g
20168s/\]/\\&/g
20169s/\$/$$/g
20170H
20171:any
20172${
20173 g
20174 s/^\n//
20175 s/\n/ /g
20176 p
20177}
20178'
20179DEFS=`sed -n "$ac_script" confdefs.h`
drh75897232000-05-29 14:26:00 +000020180
a.rottmann84e63352003-03-24 09:42:16 +000020181
20182ac_libobjs=
20183ac_ltlibobjs=
20184for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20185 # 1. Remove the extension, and $U if already installed.
mlcreech94984912008-03-04 19:03:08 +000020186 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20187 ac_i=`echo "$ac_i" | sed "$ac_script"`
20188 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20189 # will be set to the directory where LIBOBJS objects are built.
20190 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20191 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000020192done
20193LIBOBJS=$ac_libobjs
20194
20195LTLIBOBJS=$ac_ltlibobjs
20196
20197
20198
drh75897232000-05-29 14:26:00 +000020199: ${CONFIG_STATUS=./config.status}
drh71eb93e2001-09-28 01:34:43 +000020200ac_clean_files_save=$ac_clean_files
20201ac_clean_files="$ac_clean_files $CONFIG_STATUS"
a.rottmann84e63352003-03-24 09:42:16 +000020202{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
drh71eb93e2001-09-28 01:34:43 +000020203echo "$as_me: creating $CONFIG_STATUS" >&6;}
20204cat >$CONFIG_STATUS <<_ACEOF
20205#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000020206# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000020207# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000020208# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000020209# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000020210
drh71eb93e2001-09-28 01:34:43 +000020211debug=false
a.rottmann84e63352003-03-24 09:42:16 +000020212ac_cs_recheck=false
20213ac_cs_silent=false
drh71eb93e2001-09-28 01:34:43 +000020214SHELL=\${CONFIG_SHELL-$SHELL}
drh71eb93e2001-09-28 01:34:43 +000020215_ACEOF
drh75897232000-05-29 14:26:00 +000020216
drh71eb93e2001-09-28 01:34:43 +000020217cat >>$CONFIG_STATUS <<\_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020218## --------------------- ##
20219## M4sh Initialization. ##
20220## --------------------- ##
20221
mlcreech94984912008-03-04 19:03:08 +000020222# Be more Bourne compatible
20223DUALCASE=1; export DUALCASE # for MKS sh
drh71eb93e2001-09-28 01:34:43 +000020224if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20225 emulate sh
20226 NULLCMD=:
a.rottmann84e63352003-03-24 09:42:16 +000020227 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20228 # is contrary to our usage. Disable this feature.
20229 alias -g '${1+"$@"}'='"$@"'
mlcreech94984912008-03-04 19:03:08 +000020230 setopt NO_GLOB_SUBST
drh613a0fe2007-11-23 17:31:17 +000020231else
mlcreech94984912008-03-04 19:03:08 +000020232 case `(set -o) 2>/dev/null` in
20233 *posix*) set -o posix ;;
20234esac
20235
a.rottmann84e63352003-03-24 09:42:16 +000020236fi
20237
20238
a.rottmann84e63352003-03-24 09:42:16 +000020239
20240
mlcreech94984912008-03-04 19:03:08 +000020241# PATH needs CR
a.rottmann84e63352003-03-24 09:42:16 +000020242# Avoid depending upon Character Ranges.
20243as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20244as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20245as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20246as_cr_digits='0123456789'
20247as_cr_alnum=$as_cr_Letters$as_cr_digits
20248
20249# The user is always right.
20250if test "${PATH_SEPARATOR+set}" != set; then
20251 echo "#! /bin/sh" >conf$$.sh
20252 echo "exit 0" >>conf$$.sh
20253 chmod +x conf$$.sh
20254 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20255 PATH_SEPARATOR=';'
20256 else
20257 PATH_SEPARATOR=:
20258 fi
20259 rm -f conf$$.sh
20260fi
20261
mlcreech94984912008-03-04 19:03:08 +000020262# Support unset when possible.
20263if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20264 as_unset=unset
20265else
20266 as_unset=false
20267fi
a.rottmann84e63352003-03-24 09:42:16 +000020268
mlcreech94984912008-03-04 19:03:08 +000020269
20270# IFS
20271# We need space, tab and new line, in precisely that order. Quoting is
20272# there to prevent editors from complaining about space-tab.
20273# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20274# splitting by setting IFS to empty value.)
20275as_nl='
20276'
20277IFS=" "" $as_nl"
20278
20279# Find who we are. Look in the path if we contain no directory separator.
20280case $0 in
20281 *[\\/]* ) as_myself=$0 ;;
20282 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann84e63352003-03-24 09:42:16 +000020283for as_dir in $PATH
20284do
20285 IFS=$as_save_IFS
20286 test -z "$as_dir" && as_dir=.
20287 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20288done
mlcreech94984912008-03-04 19:03:08 +000020289IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +000020290
mlcreech94984912008-03-04 19:03:08 +000020291 ;;
20292esac
20293# We did not find ourselves, most probably we were run as `sh COMMAND'
20294# in which case we are not to be found in the path.
20295if test "x$as_myself" = x; then
20296 as_myself=$0
20297fi
20298if test ! -f "$as_myself"; then
20299 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20300 { (exit 1); exit 1; }
20301fi
20302
20303# Work around bugs in pre-3.0 UWIN ksh.
20304for as_var in ENV MAIL MAILPATH
20305do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20306done
20307PS1='$ '
20308PS2='> '
20309PS4='+ '
20310
20311# NLS nuisances.
20312for as_var in \
20313 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20314 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20315 LC_TELEPHONE LC_TIME
drh613a0fe2007-11-23 17:31:17 +000020316do
mlcreech94984912008-03-04 19:03:08 +000020317 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20318 eval $as_var=C; export $as_var
20319 else
20320 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20321 fi
20322done
20323
20324# Required to use basename.
20325if expr a : '\(a\)' >/dev/null 2>&1 &&
20326 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20327 as_expr=expr
20328else
20329 as_expr=false
20330fi
20331
20332if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20333 as_basename=basename
20334else
20335 as_basename=false
20336fi
20337
20338
20339# Name of the executable.
20340as_me=`$as_basename -- "$0" ||
20341$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20342 X"$0" : 'X\(//\)$' \| \
20343 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20344echo X/"$0" |
20345 sed '/^.*\/\([^/][^/]*\)\/*$/{
20346 s//\1/
20347 q
20348 }
20349 /^X\/\(\/\/\)$/{
20350 s//\1/
20351 q
20352 }
20353 /^X\/\(\/\).*/{
20354 s//\1/
20355 q
20356 }
20357 s/.*/./; q'`
20358
20359# CDPATH.
20360$as_unset CDPATH
20361
20362
20363
a.rottmann84e63352003-03-24 09:42:16 +000020364 as_lineno_1=$LINENO
20365 as_lineno_2=$LINENO
a.rottmann84e63352003-03-24 09:42:16 +000020366 test "x$as_lineno_1" != "x$as_lineno_2" &&
mlcreech94984912008-03-04 19:03:08 +000020367 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
a.rottmann84e63352003-03-24 09:42:16 +000020368
20369 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20370 # uniformly replaced by the line number. The first 'sed' inserts a
mlcreech94984912008-03-04 19:03:08 +000020371 # line-number line after each line using $LINENO; the second 'sed'
20372 # does the real work. The second script uses 'N' to pair each
20373 # line-number line with the line containing $LINENO, and appends
20374 # trailing '-' during substitution so that $LINENO is not a special
20375 # case at line end.
a.rottmann84e63352003-03-24 09:42:16 +000020376 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
mlcreech94984912008-03-04 19:03:08 +000020377 # scripts with optimization help from Paolo Bonzini. Blame Lee
20378 # E. McMahon (1931-1989) for sed's syntax. :-)
20379 sed -n '
20380 p
20381 /[$]LINENO/=
20382 ' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +000020383 sed '
mlcreech94984912008-03-04 19:03:08 +000020384 s/[$]LINENO.*/&-/
20385 t lineno
20386 b
20387 :lineno
a.rottmann84e63352003-03-24 09:42:16 +000020388 N
mlcreech94984912008-03-04 19:03:08 +000020389 :loop
20390 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a.rottmann84e63352003-03-24 09:42:16 +000020391 t loop
mlcreech94984912008-03-04 19:03:08 +000020392 s/-\n.*//
a.rottmann84e63352003-03-24 09:42:16 +000020393 ' >$as_me.lineno &&
mlcreech94984912008-03-04 19:03:08 +000020394 chmod +x "$as_me.lineno" ||
20395 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
a.rottmann84e63352003-03-24 09:42:16 +000020396 { (exit 1); exit 1; }; }
20397
20398 # Don't try to exec as it changes $[0], causing all sort of problems
20399 # (the dirname of $[0] is not the place where we might find the
mlcreech94984912008-03-04 19:03:08 +000020400 # original and so on. Autoconf is especially sensitive to this).
20401 . "./$as_me.lineno"
a.rottmann84e63352003-03-24 09:42:16 +000020402 # Exit status is that of the last command.
20403 exit
20404}
20405
20406
mlcreech94984912008-03-04 19:03:08 +000020407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20408 as_dirname=dirname
20409else
20410 as_dirname=false
20411fi
20412
20413ECHO_C= ECHO_N= ECHO_T=
20414case `echo -n x` in
20415-n*)
20416 case `echo 'x\c'` in
20417 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20418 *) ECHO_C='\c';;
20419 esac;;
20420*)
20421 ECHO_N='-n';;
a.rottmann84e63352003-03-24 09:42:16 +000020422esac
drh71eb93e2001-09-28 01:34:43 +000020423
mlcreech94984912008-03-04 19:03:08 +000020424if expr a : '\(a\)' >/dev/null 2>&1 &&
20425 test "X`expr 00001 : '.*\(...\)'`" = X001; then
drh71eb93e2001-09-28 01:34:43 +000020426 as_expr=expr
20427else
20428 as_expr=false
20429fi
20430
20431rm -f conf$$ conf$$.exe conf$$.file
mlcreech94984912008-03-04 19:03:08 +000020432if test -d conf$$.dir; then
20433 rm -f conf$$.dir/conf$$.file
20434else
20435 rm -f conf$$.dir
20436 mkdir conf$$.dir
20437fi
drh71eb93e2001-09-28 01:34:43 +000020438echo >conf$$.file
20439if ln -s conf$$.file conf$$ 2>/dev/null; then
mlcreech94984912008-03-04 19:03:08 +000020440 as_ln_s='ln -s'
20441 # ... but there are two gotchas:
20442 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20443 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20444 # In both cases, we have to default to `cp -p'.
20445 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drh71eb93e2001-09-28 01:34:43 +000020446 as_ln_s='cp -p'
drh71eb93e2001-09-28 01:34:43 +000020447elif ln conf$$.file conf$$ 2>/dev/null; then
20448 as_ln_s=ln
20449else
20450 as_ln_s='cp -p'
20451fi
mlcreech94984912008-03-04 19:03:08 +000020452rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20453rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000020454
a.rottmann84e63352003-03-24 09:42:16 +000020455if mkdir -p . 2>/dev/null; then
20456 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000020457else
a.rottmann964dbb12004-02-26 19:47:42 +000020458 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000020459 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000020460fi
20461
mlcreech94984912008-03-04 19:03:08 +000020462if test -x / >/dev/null 2>&1; then
20463 as_test_x='test -x'
20464else
20465 if ls -dL / >/dev/null 2>&1; then
20466 as_ls_L_option=L
20467 else
20468 as_ls_L_option=
20469 fi
20470 as_test_x='
20471 eval sh -c '\''
20472 if test -d "$1"; then
20473 test -d "$1/.";
20474 else
20475 case $1 in
20476 -*)set "./$1";;
20477 esac;
20478 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20479 ???[sx]*):;;*)false;;esac;fi
20480 '\'' sh
20481 '
20482fi
20483as_executable_p=$as_test_x
a.rottmann84e63352003-03-24 09:42:16 +000020484
20485# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000020486as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000020487
20488# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000020489as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000020490
drh71eb93e2001-09-28 01:34:43 +000020491
drh71eb93e2001-09-28 01:34:43 +000020492exec 6>&1
20493
mlcreech94984912008-03-04 19:03:08 +000020494# Save the log message, to keep $[0] and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000020495# report actual input values of CONFIG_FILES etc. instead of their
mlcreech94984912008-03-04 19:03:08 +000020496# values after options handling.
20497ac_log="
a.rottmann84e63352003-03-24 09:42:16 +000020498This file was extended by $as_me, which was
mlcreech94984912008-03-04 19:03:08 +000020499generated by GNU Autoconf 2.61. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000020500
20501 CONFIG_FILES = $CONFIG_FILES
20502 CONFIG_HEADERS = $CONFIG_HEADERS
20503 CONFIG_LINKS = $CONFIG_LINKS
20504 CONFIG_COMMANDS = $CONFIG_COMMANDS
20505 $ $0 $@
20506
mlcreech94984912008-03-04 19:03:08 +000020507on `(hostname || uname -n) 2>/dev/null | sed 1q`
20508"
20509
drh71eb93e2001-09-28 01:34:43 +000020510_ACEOF
20511
mlcreech94984912008-03-04 19:03:08 +000020512cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020513# Files that config.status was made for.
mlcreech94984912008-03-04 19:03:08 +000020514config_files="$ac_config_files"
drh71eb93e2001-09-28 01:34:43 +000020515
mlcreech94984912008-03-04 19:03:08 +000020516_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020517
a.rottmann84e63352003-03-24 09:42:16 +000020518cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020519ac_cs_usage="\
20520\`$as_me' instantiates files from templates according to the
20521current configuration.
20522
20523Usage: $0 [OPTIONS] [FILE]...
20524
20525 -h, --help print this help, then exit
mlcreech94984912008-03-04 19:03:08 +000020526 -V, --version print version number and configuration settings, then exit
a.rottmann84e63352003-03-24 09:42:16 +000020527 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000020528 -d, --debug don't remove temporary files
20529 --recheck update $as_me by reconfiguring in the same conditions
20530 --file=FILE[:TEMPLATE]
a.rottmann964dbb12004-02-26 19:47:42 +000020531 instantiate the configuration file FILE
drh71eb93e2001-09-28 01:34:43 +000020532
20533Configuration files:
20534$config_files
20535
20536Report bugs to <bug-autoconf@gnu.org>."
drh613a0fe2007-11-23 17:31:17 +000020537
mlcreech94984912008-03-04 19:03:08 +000020538_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020539cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020540ac_cs_version="\\
20541config.status
mlcreech94984912008-03-04 19:03:08 +000020542configured by $0, generated by GNU Autoconf 2.61,
20543 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
drh75897232000-05-29 14:26:00 +000020544
mlcreech94984912008-03-04 19:03:08 +000020545Copyright (C) 2006 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000020546This config.status script is free software; the Free Software Foundation
20547gives unlimited permission to copy, distribute and modify it."
mlcreech94984912008-03-04 19:03:08 +000020548
20549ac_pwd='$ac_pwd'
20550srcdir='$srcdir'
20551INSTALL='$INSTALL'
a.rottmann84e63352003-03-24 09:42:16 +000020552_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020553
a.rottmann84e63352003-03-24 09:42:16 +000020554cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020555# If no file are specified by the user, then we need to provide default
20556# value. By we need to know if files were specified by the user.
20557ac_need_defaults=:
20558while test $# != 0
20559do
20560 case $1 in
20561 --*=*)
mlcreech94984912008-03-04 19:03:08 +000020562 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20563 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000020564 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000020565 ;;
mlcreech94984912008-03-04 19:03:08 +000020566 *)
a.rottmann84e63352003-03-24 09:42:16 +000020567 ac_option=$1
20568 ac_optarg=$2
20569 ac_shift=shift
20570 ;;
drh75897232000-05-29 14:26:00 +000020571 esac
20572
a.rottmann84e63352003-03-24 09:42:16 +000020573 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000020574 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000020575 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000020576 ac_cs_recheck=: ;;
mlcreech94984912008-03-04 19:03:08 +000020577 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20578 echo "$ac_cs_version"; exit ;;
20579 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000020580 debug=: ;;
20581 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000020582 $ac_shift
20583 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +000020584 ac_need_defaults=false;;
mlcreech94984912008-03-04 19:03:08 +000020585 --he | --h | --help | --hel | -h )
20586 echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000020587 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20588 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20589 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000020590
drh71eb93e2001-09-28 01:34:43 +000020591 # This is an error.
mlcreech94984912008-03-04 19:03:08 +000020592 -*) { echo "$as_me: error: unrecognized option: $1
20593Try \`$0 --help' for more information." >&2
drh71eb93e2001-09-28 01:34:43 +000020594 { (exit 1); exit 1; }; } ;;
20595
mlcreech94984912008-03-04 19:03:08 +000020596 *) ac_config_targets="$ac_config_targets $1"
20597 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000020598
20599 esac
20600 shift
20601done
20602
a.rottmann84e63352003-03-24 09:42:16 +000020603ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000020604
a.rottmann84e63352003-03-24 09:42:16 +000020605if $ac_cs_silent; then
20606 exec 6>/dev/null
20607 ac_configure_extra_args="$ac_configure_extra_args --silent"
20608fi
drh71eb93e2001-09-28 01:34:43 +000020609
20610_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020611cat >>$CONFIG_STATUS <<_ACEOF
20612if \$ac_cs_recheck; then
mlcreech94984912008-03-04 19:03:08 +000020613 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20614 CONFIG_SHELL=$SHELL
20615 export CONFIG_SHELL
20616 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
a.rottmann84e63352003-03-24 09:42:16 +000020617fi
drh71eb93e2001-09-28 01:34:43 +000020618
a.rottmann84e63352003-03-24 09:42:16 +000020619_ACEOF
mlcreech94984912008-03-04 19:03:08 +000020620cat >>$CONFIG_STATUS <<\_ACEOF
20621exec 5>>config.log
20622{
20623 echo
20624 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20625## Running $as_me. ##
20626_ASBOX
20627 echo "$ac_log"
20628} >&5
a.rottmann84e63352003-03-24 09:42:16 +000020629
mlcreech94984912008-03-04 19:03:08 +000020630_ACEOF
20631cat >>$CONFIG_STATUS <<_ACEOF
20632_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020633
20634cat >>$CONFIG_STATUS <<\_ACEOF
mlcreech94984912008-03-04 19:03:08 +000020635
20636# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000020637for ac_config_target in $ac_config_targets
20638do
mlcreech94984912008-03-04 19:03:08 +000020639 case $ac_config_target in
20640 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20641 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
20642
a.rottmann84e63352003-03-24 09:42:16 +000020643 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
drh71eb93e2001-09-28 01:34:43 +000020644echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20645 { (exit 1); exit 1; }; };;
20646 esac
20647done
20648
mlcreech94984912008-03-04 19:03:08 +000020649
drh71eb93e2001-09-28 01:34:43 +000020650# If the user did not use the arguments to specify the items to instantiate,
20651# then the envvar interface is used. Set only those that are not.
20652# We use the long form for the default assignment because of an extremely
20653# bizarre bug on SunOS 4.1.3.
20654if $ac_need_defaults; then
20655 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20656fi
20657
a.rottmann84e63352003-03-24 09:42:16 +000020658# Have a temporary directory for convenience. Make it in the build tree
mlcreech94984912008-03-04 19:03:08 +000020659# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000020660# creating and moving files from /tmp can sometimes cause problems.
mlcreech94984912008-03-04 19:03:08 +000020661# Hook for its removal unless debugging.
20662# Note that there is a small window in which the directory will not be cleaned:
20663# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000020664$debug ||
20665{
mlcreech94984912008-03-04 19:03:08 +000020666 tmp=
20667 trap 'exit_status=$?
20668 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20669' 0
drh71eb93e2001-09-28 01:34:43 +000020670 trap '{ (exit 1); exit 1; }' 1 2 13 15
20671}
drh71eb93e2001-09-28 01:34:43 +000020672# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000020673
drh71eb93e2001-09-28 01:34:43 +000020674{
mlcreech94984912008-03-04 19:03:08 +000020675 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +000020676 test -n "$tmp" && test -d "$tmp"
20677} ||
20678{
mlcreech94984912008-03-04 19:03:08 +000020679 tmp=./conf$$-$RANDOM
20680 (umask 077 && mkdir "$tmp")
drh71eb93e2001-09-28 01:34:43 +000020681} ||
20682{
a.rottmann84e63352003-03-24 09:42:16 +000020683 echo "$me: cannot create a temporary directory in ." >&2
drh71eb93e2001-09-28 01:34:43 +000020684 { (exit 1); exit 1; }
20685}
20686
drh71eb93e2001-09-28 01:34:43 +000020687#
mlcreech94984912008-03-04 19:03:08 +000020688# Set up the sed scripts for CONFIG_FILES section.
drh71eb93e2001-09-28 01:34:43 +000020689#
20690
20691# No need to generate the scripts if there are no CONFIG_FILES.
20692# This happens for instance when ./config.status config.h
mlcreech94984912008-03-04 19:03:08 +000020693if test -n "$CONFIG_FILES"; then
drh71eb93e2001-09-28 01:34:43 +000020694
a.rottmann84e63352003-03-24 09:42:16 +000020695_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020696
mlcreech94984912008-03-04 19:03:08 +000020697
20698
20699ac_delim='%!_!# '
20700for ac_last_try in false false false false false :; do
20701 cat >conf$$subs.sed <<_ACEOF
20702SHELL!$SHELL$ac_delim
20703PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20704PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20705PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20706PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20707PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20708PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20709exec_prefix!$exec_prefix$ac_delim
20710prefix!$prefix$ac_delim
20711program_transform_name!$program_transform_name$ac_delim
20712bindir!$bindir$ac_delim
20713sbindir!$sbindir$ac_delim
20714libexecdir!$libexecdir$ac_delim
20715datarootdir!$datarootdir$ac_delim
20716datadir!$datadir$ac_delim
20717sysconfdir!$sysconfdir$ac_delim
20718sharedstatedir!$sharedstatedir$ac_delim
20719localstatedir!$localstatedir$ac_delim
20720includedir!$includedir$ac_delim
20721oldincludedir!$oldincludedir$ac_delim
20722docdir!$docdir$ac_delim
20723infodir!$infodir$ac_delim
20724htmldir!$htmldir$ac_delim
20725dvidir!$dvidir$ac_delim
20726pdfdir!$pdfdir$ac_delim
20727psdir!$psdir$ac_delim
20728libdir!$libdir$ac_delim
20729localedir!$localedir$ac_delim
20730mandir!$mandir$ac_delim
20731DEFS!$DEFS$ac_delim
20732ECHO_C!$ECHO_C$ac_delim
20733ECHO_N!$ECHO_N$ac_delim
20734ECHO_T!$ECHO_T$ac_delim
20735LIBS!$LIBS$ac_delim
20736build_alias!$build_alias$ac_delim
20737host_alias!$host_alias$ac_delim
20738target_alias!$target_alias$ac_delim
20739build!$build$ac_delim
20740build_cpu!$build_cpu$ac_delim
20741build_vendor!$build_vendor$ac_delim
20742build_os!$build_os$ac_delim
20743host!$host$ac_delim
20744host_cpu!$host_cpu$ac_delim
20745host_vendor!$host_vendor$ac_delim
20746host_os!$host_os$ac_delim
20747CC!$CC$ac_delim
20748CFLAGS!$CFLAGS$ac_delim
20749LDFLAGS!$LDFLAGS$ac_delim
20750CPPFLAGS!$CPPFLAGS$ac_delim
20751ac_ct_CC!$ac_ct_CC$ac_delim
20752EXEEXT!$EXEEXT$ac_delim
20753OBJEXT!$OBJEXT$ac_delim
20754GREP!$GREP$ac_delim
20755EGREP!$EGREP$ac_delim
20756LN_S!$LN_S$ac_delim
20757ECHO!$ECHO$ac_delim
20758AR!$AR$ac_delim
20759RANLIB!$RANLIB$ac_delim
20760STRIP!$STRIP$ac_delim
20761CPP!$CPP$ac_delim
20762CXX!$CXX$ac_delim
20763CXXFLAGS!$CXXFLAGS$ac_delim
20764ac_ct_CXX!$ac_ct_CXX$ac_delim
20765CXXCPP!$CXXCPP$ac_delim
20766F77!$F77$ac_delim
20767FFLAGS!$FFLAGS$ac_delim
20768ac_ct_F77!$ac_ct_F77$ac_delim
20769LIBTOOL!$LIBTOOL$ac_delim
20770INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20771INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20772INSTALL_DATA!$INSTALL_DATA$ac_delim
20773AWK!$AWK$ac_delim
20774program_prefix!$program_prefix$ac_delim
20775VERSION!$VERSION$ac_delim
20776RELEASE!$RELEASE$ac_delim
20777VERSION_NUMBER!$VERSION_NUMBER$ac_delim
20778BUILD_CC!$BUILD_CC$ac_delim
20779BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
20780SQLITE_THREADSAFE!$SQLITE_THREADSAFE$ac_delim
20781TARGET_THREAD_LIB!$TARGET_THREAD_LIB$ac_delim
20782XTHREADCONNECT!$XTHREADCONNECT$ac_delim
20783THREADSOVERRIDELOCKS!$THREADSOVERRIDELOCKS$ac_delim
20784ALLOWRELEASE!$ALLOWRELEASE$ac_delim
20785TEMP_STORE!$TEMP_STORE$ac_delim
20786BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20787OS_UNIX!$OS_UNIX$ac_delim
20788OS_WIN!$OS_WIN$ac_delim
20789OS_OS2!$OS_OS2$ac_delim
20790TARGET_EXEEXT!$TARGET_EXEEXT$ac_delim
20791TCL_VERSION!$TCL_VERSION$ac_delim
20792TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim
20793TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim
20794TCL_LIBS!$TCL_LIBS$ac_delim
20795TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
20796TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
20797TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim
20798TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
20799_ACEOF
20800
20801 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20802 break
20803 elif $ac_last_try; then
20804 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20805echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20806 { (exit 1); exit 1; }; }
20807 else
20808 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000020809 fi
mlcreech94984912008-03-04 19:03:08 +000020810done
20811
20812ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20813if test -n "$ac_eof"; then
20814 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20815 ac_eof=`expr $ac_eof + 1`
20816fi
20817
20818cat >>$CONFIG_STATUS <<_ACEOF
20819cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20820/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20821_ACEOF
20822sed '
20823s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20824s/^/s,@/; s/!/@,|#_!!_#|/
20825:n
20826t n
20827s/'"$ac_delim"'$/,g/; t
20828s/$/\\/; p
20829N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20830' >>$CONFIG_STATUS <conf$$subs.sed
20831rm -f conf$$subs.sed
20832cat >>$CONFIG_STATUS <<_ACEOF
20833CEOF$ac_eof
20834_ACEOF
20835
20836
20837ac_delim='%!_!# '
20838for ac_last_try in false false false false false :; do
20839 cat >conf$$subs.sed <<_ACEOF
20840TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim
20841TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim
20842TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim
20843HAVE_TCL!$HAVE_TCL$ac_delim
20844TARGET_READLINE_LIBS!$TARGET_READLINE_LIBS$ac_delim
20845TARGET_READLINE_INC!$TARGET_READLINE_INC$ac_delim
20846TARGET_HAVE_READLINE!$TARGET_HAVE_READLINE$ac_delim
20847TARGET_DEBUG!$TARGET_DEBUG$ac_delim
20848USE_AMALGAMATION!$USE_AMALGAMATION$ac_delim
mlcreecha4edab02008-03-06 04:14:17 +000020849LOADEXTENSION_FLAGS!$LOADEXTENSION_FLAGS$ac_delim
mlcreech94984912008-03-04 19:03:08 +000020850LIBOBJS!$LIBOBJS$ac_delim
20851LTLIBOBJS!$LTLIBOBJS$ac_delim
20852_ACEOF
20853
mlcreecha4edab02008-03-06 04:14:17 +000020854 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
mlcreech94984912008-03-04 19:03:08 +000020855 break
20856 elif $ac_last_try; then
20857 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20858echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20859 { (exit 1); exit 1; }; }
20860 else
20861 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20862 fi
20863done
20864
20865ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20866if test -n "$ac_eof"; then
20867 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20868 ac_eof=`expr $ac_eof + 1`
20869fi
20870
20871cat >>$CONFIG_STATUS <<_ACEOF
20872cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20873/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20874_ACEOF
20875sed '
20876s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20877s/^/s,@/; s/!/@,|#_!!_#|/
20878:n
20879t n
20880s/'"$ac_delim"'$/,g/; t
20881s/$/\\/; p
20882N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20883' >>$CONFIG_STATUS <conf$$subs.sed
20884rm -f conf$$subs.sed
20885cat >>$CONFIG_STATUS <<_ACEOF
20886:end
20887s/|#_!!_#|//g
20888CEOF$ac_eof
20889_ACEOF
20890
20891
20892# VPATH may cause trouble with some makes, so we remove $(srcdir),
20893# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20894# trailing colons and then remove the whole line if VPATH becomes empty
20895# (actually we leave an empty line to preserve line numbers).
20896if test "x$srcdir" = x.; then
20897 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20898s/:*\$(srcdir):*/:/
20899s/:*\${srcdir}:*/:/
20900s/:*@srcdir@:*/:/
20901s/^\([^=]*=[ ]*\):*/\1/
20902s/:*$//
20903s/^[^=]*=[ ]*$//
20904}'
20905fi
20906
20907cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020908fi # test -n "$CONFIG_FILES"
20909
mlcreech94984912008-03-04 19:03:08 +000020910
20911for ac_tag in :F $CONFIG_FILES
20912do
20913 case $ac_tag in
20914 :[FHLC]) ac_mode=$ac_tag; continue;;
20915 esac
20916 case $ac_mode$ac_tag in
20917 :[FHL]*:*);;
20918 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20919echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20920 { (exit 1); exit 1; }; };;
20921 :[FH]-) ac_tag=-:-;;
20922 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20923 esac
20924 ac_save_IFS=$IFS
20925 IFS=:
20926 set x $ac_tag
20927 IFS=$ac_save_IFS
20928 shift
20929 ac_file=$1
20930 shift
20931
20932 case $ac_mode in
20933 :L) ac_source=$1;;
20934 :[FH])
20935 ac_file_inputs=
20936 for ac_f
20937 do
20938 case $ac_f in
20939 -) ac_f="$tmp/stdin";;
20940 *) # Look for the file first in the build tree, then in the source tree
20941 # (if the path is not absolute). The absolute path cannot be DOS-style,
20942 # because $ac_f cannot contain `:'.
20943 test -f "$ac_f" ||
20944 case $ac_f in
20945 [\\/$]*) false;;
20946 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20947 esac ||
20948 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20949echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20950 { (exit 1); exit 1; }; };;
20951 esac
20952 ac_file_inputs="$ac_file_inputs $ac_f"
20953 done
20954
20955 # Let's still pretend it is `configure' which instantiates (i.e., don't
20956 # use $as_me), people would be surprised to read:
20957 # /* config.h. Generated by config.status. */
20958 configure_input="Generated from "`IFS=:
20959 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20960 if test x"$ac_file" != x-; then
20961 configure_input="$ac_file. $configure_input"
20962 { echo "$as_me:$LINENO: creating $ac_file" >&5
20963echo "$as_me: creating $ac_file" >&6;}
20964 fi
20965
20966 case $ac_tag in
20967 *:-:* | *:-) cat >"$tmp/stdin";;
20968 esac
20969 ;;
drh71eb93e2001-09-28 01:34:43 +000020970 esac
20971
mlcreech94984912008-03-04 19:03:08 +000020972 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000020973$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000020974 X"$ac_file" : 'X\(//\)[^/]' \| \
20975 X"$ac_file" : 'X\(//\)$' \| \
mlcreech94984912008-03-04 19:03:08 +000020976 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
drh71eb93e2001-09-28 01:34:43 +000020977echo X"$ac_file" |
mlcreech94984912008-03-04 19:03:08 +000020978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20979 s//\1/
20980 q
20981 }
20982 /^X\(\/\/\)[^/].*/{
20983 s//\1/
20984 q
20985 }
20986 /^X\(\/\/\)$/{
20987 s//\1/
20988 q
20989 }
20990 /^X\(\/\).*/{
20991 s//\1/
20992 q
20993 }
20994 s/.*/./; q'`
20995 { as_dir="$ac_dir"
20996 case $as_dir in #(
20997 -*) as_dir=./$as_dir;;
20998 esac
20999 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
a.rottmann84e63352003-03-24 09:42:16 +000021000 as_dirs=
mlcreech94984912008-03-04 19:03:08 +000021001 while :; do
21002 case $as_dir in #(
21003 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21004 *) as_qdir=$as_dir;;
21005 esac
21006 as_dirs="'$as_qdir' $as_dirs"
21007 as_dir=`$as_dirname -- "$as_dir" ||
a.rottmann84e63352003-03-24 09:42:16 +000021008$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000021009 X"$as_dir" : 'X\(//\)[^/]' \| \
21010 X"$as_dir" : 'X\(//\)$' \| \
mlcreech94984912008-03-04 19:03:08 +000021011 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +000021012echo X"$as_dir" |
mlcreech94984912008-03-04 19:03:08 +000021013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21014 s//\1/
21015 q
21016 }
21017 /^X\(\/\/\)[^/].*/{
21018 s//\1/
21019 q
21020 }
21021 /^X\(\/\/\)$/{
21022 s//\1/
21023 q
21024 }
21025 /^X\(\/\).*/{
21026 s//\1/
21027 q
21028 }
21029 s/.*/./; q'`
21030 test -d "$as_dir" && break
a.rottmann84e63352003-03-24 09:42:16 +000021031 done
mlcreech94984912008-03-04 19:03:08 +000021032 test -z "$as_dirs" || eval "mkdir $as_dirs"
21033 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21034echo "$as_me: error: cannot create directory $as_dir" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000021035 { (exit 1); exit 1; }; }; }
a.rottmann84e63352003-03-24 09:42:16 +000021036 ac_builddir=.
21037
mlcreech94984912008-03-04 19:03:08 +000021038case "$ac_dir" in
21039.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21040*)
a.rottmann84e63352003-03-24 09:42:16 +000021041 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
mlcreech94984912008-03-04 19:03:08 +000021042 # A ".." for each directory in $ac_dir_suffix.
21043 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21044 case $ac_top_builddir_sub in
21045 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21046 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21047 esac ;;
21048esac
21049ac_abs_top_builddir=$ac_pwd
21050ac_abs_builddir=$ac_pwd$ac_dir_suffix
21051# for backward compatibility:
21052ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000021053
21054case $srcdir in
mlcreech94984912008-03-04 19:03:08 +000021055 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000021056 ac_srcdir=.
mlcreech94984912008-03-04 19:03:08 +000021057 ac_top_srcdir=$ac_top_builddir_sub
21058 ac_abs_top_srcdir=$ac_pwd ;;
21059 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000021060 ac_srcdir=$srcdir$ac_dir_suffix;
mlcreech94984912008-03-04 19:03:08 +000021061 ac_top_srcdir=$srcdir
21062 ac_abs_top_srcdir=$srcdir ;;
21063 *) # Relative name.
21064 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21065 ac_top_srcdir=$ac_top_build_prefix$srcdir
21066 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000021067esac
mlcreech94984912008-03-04 19:03:08 +000021068ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000021069
a.rottmann84e63352003-03-24 09:42:16 +000021070
mlcreech94984912008-03-04 19:03:08 +000021071 case $ac_mode in
21072 :F)
21073 #
21074 # CONFIG_FILE
21075 #
drh75897232000-05-29 14:26:00 +000021076
drh71eb93e2001-09-28 01:34:43 +000021077 case $INSTALL in
21078 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
mlcreech94984912008-03-04 19:03:08 +000021079 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000021080 esac
vapier7f19c022007-02-17 14:46:31 +000021081_ACEOF
mlcreech94984912008-03-04 19:03:08 +000021082
21083cat >>$CONFIG_STATUS <<\_ACEOF
21084# If the template does not know about datarootdir, expand it.
21085# FIXME: This hack should be removed a few years after 2.60.
21086ac_datarootdir_hack=; ac_datarootdir_seen=
21087
21088case `sed -n '/datarootdir/ {
21089 p
21090 q
21091}
21092/@datadir@/p
21093/@docdir@/p
21094/@infodir@/p
21095/@localedir@/p
21096/@mandir@/p
21097' $ac_file_inputs` in
21098*datarootdir*) ac_datarootdir_seen=yes;;
21099*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21100 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21101echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21102_ACEOF
21103cat >>$CONFIG_STATUS <<_ACEOF
21104 ac_datarootdir_hack='
21105 s&@datadir@&$datadir&g
21106 s&@docdir@&$docdir&g
21107 s&@infodir@&$infodir&g
21108 s&@localedir@&$localedir&g
21109 s&@mandir@&$mandir&g
21110 s&\\\${datarootdir}&$datarootdir&g' ;;
21111esac
21112_ACEOF
21113
21114# Neutralize VPATH when `$srcdir' = `.'.
21115# Shell code in configure.ac might set extrasub.
21116# FIXME: do we really want to maintain this feature?
vapier7f19c022007-02-17 14:46:31 +000021117cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021118 sed "$ac_vpsub
21119$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000021120_ACEOF
21121cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021122:t
21123/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
mlcreech94984912008-03-04 19:03:08 +000021124s&@configure_input@&$configure_input&;t t
21125s&@top_builddir@&$ac_top_builddir_sub&;t t
21126s&@srcdir@&$ac_srcdir&;t t
21127s&@abs_srcdir@&$ac_abs_srcdir&;t t
21128s&@top_srcdir@&$ac_top_srcdir&;t t
21129s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21130s&@builddir@&$ac_builddir&;t t
21131s&@abs_builddir@&$ac_abs_builddir&;t t
21132s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21133s&@INSTALL@&$ac_INSTALL&;t t
21134$ac_datarootdir_hack
21135" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
drh75897232000-05-29 14:26:00 +000021136
mlcreech94984912008-03-04 19:03:08 +000021137test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21138 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21139 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21140 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21141which seems to be undefined. Please make sure it is defined." >&5
21142echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21143which seems to be undefined. Please make sure it is defined." >&2;}
drh71eb93e2001-09-28 01:34:43 +000021144
mlcreech94984912008-03-04 19:03:08 +000021145 rm -f "$tmp/stdin"
21146 case $ac_file in
21147 -) cat "$tmp/out"; rm -f "$tmp/out";;
21148 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21149 esac
21150 ;;
21151
21152
21153
21154 esac
21155
21156done # for ac_tag
21157
drh71eb93e2001-09-28 01:34:43 +000021158
21159{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000021160_ACEOF
drh75897232000-05-29 14:26:00 +000021161chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000021162ac_clean_files=$ac_clean_files_save
21163
a.rottmann84e63352003-03-24 09:42:16 +000021164
drh71eb93e2001-09-28 01:34:43 +000021165# configure is writing to config.log, and then calls config.status.
21166# config.status does its own redirection, appending to config.log.
21167# Unfortunately, on DOS this fails, as config.log is still kept open
21168# by configure, so config.status won't be able to write to it; its
21169# output is simply discarded. So we exec the FD to /dev/null,
21170# effectively closing config.log, so it can be properly (re)opened and
21171# appended to by config.status. When coming back to configure, we
21172# need to make the FD available again.
21173if test "$no_create" != yes; then
21174 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000021175 ac_config_status_args=
21176 test "$silent" = yes &&
21177 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000021178 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000021179 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000021180 exec 5>>config.log
21181 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21182 # would make configure fail if this is the last instruction.
21183 $ac_cs_success || { (exit 1); exit 1; }
21184fi
drh613a0fe2007-11-23 17:31:17 +000021185